Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for fldigi 4.2.12.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2007, 2008, 2009 Stelios Bounanos, M0GLD (m0gld AT enotty DOT net)
8 #
9 #
10 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
11 # Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 then :
24 emulate sh
25 NULLCMD=:
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 setopt NO_GLOB_SUBST
30 else case e in #(
31 e) case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
35 ;;
36 esac ;;
37 esac
38 fi
39
40
41
42 # Reset variables that may have inherited troublesome values from
43 # the environment.
44
45 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46 # (If _AS_PATH_WALK were called with IFS unset, it would have the
47 # side effect of setting IFS to empty, thus disabling word splitting.)
48 # Quoting is to prevent editors from complaining about space-tab.
49 as_nl='
50 '
51 export as_nl
52 IFS=" "" $as_nl"
53
54 PS1='$ '
55 PS2='> '
56 PS4='+ '
57
58 # Ensure predictable behavior from utilities with locale-dependent output.
59 LC_ALL=C
60 export LC_ALL
61 LANGUAGE=C
62 export LANGUAGE
63
64 # We cannot yet rely on "unset" to work, but we need these variables
65 # to be unset--not just set to an empty or harmless value--now, to
66 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
67 # also avoids known problems related to "unset" and subshell syntax
68 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
69 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
70 do eval test \${$as_var+y} \
71 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 done
73
74 # Ensure that fds 0, 1, and 2 are open.
75 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
76 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
77 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
78
79 # The user is always right.
80 if ${PATH_SEPARATOR+false} :; then
81 PATH_SEPARATOR=:
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 PATH_SEPARATOR=';'
85 }
86 fi
87
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 case $as_dir in #(((
98 '') as_dir=./ ;;
99 */) ;;
100 *) as_dir=$as_dir/ ;;
101 esac
102 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as 'sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118
119 # Use a proper internal environment variable to ensure we don't fall
120 # into an infinite loop, continuously re-executing ourselves.
121 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
122 _as_can_reexec=no; export _as_can_reexec;
123 # We cannot yet assume a decent shell, so we have to provide a
124 # neutralization value for shells without unset; and this also
125 # works around shells that cannot unset nonexistent variables.
126 # Preserve -v and -x to the replacement shell.
127 BASH_ENV=/dev/null
128 ENV=/dev/null
129 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
130 case $- in # ((((
131 *v*x* | *x*v* ) as_opts=-vx ;;
132 *v* ) as_opts=-v ;;
133 *x* ) as_opts=-x ;;
134 * ) as_opts= ;;
135 esac
136 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
137 # Admittedly, this is quite paranoid, since all the known shells bail
138 # out after a failed 'exec'.
139 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 exit 255
141 fi
142 # We don't want this to propagate to other subprocesses.
143 { _as_can_reexec=; unset _as_can_reexec;}
144 if test "x$CONFIG_SHELL" = x; then
145 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 then :
147 emulate sh
148 NULLCMD=:
149 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
150 # is contrary to our usage. Disable this feature.
151 alias -g '\${1+\"\$@\"}'='\"\$@\"'
152 setopt NO_GLOB_SUBST
153 else case e in #(
154 e) case \`(set -o) 2>/dev/null\` in #(
155 *posix*) :
156 set -o posix ;; #(
157 *) :
158 ;;
159 esac ;;
160 esac
161 fi
162 "
163 as_required="as_fn_return () { (exit \$1); }
164 as_fn_success () { as_fn_return 0; }
165 as_fn_failure () { as_fn_return 1; }
166 as_fn_ret_success () { return 0; }
167 as_fn_ret_failure () { return 1; }
168
169 exitcode=0
170 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
171 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
172 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
173 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
174 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
175 then :
176
177 else case e in #(
178 e) exitcode=1; echo positional parameters were not saved. ;;
179 esac
180 fi
181 test x\$exitcode = x0 || exit 1
182 blah=\$(echo \$(echo blah))
183 test x\"\$blah\" = xblah || exit 1
184 test -x / || exit 1"
185 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
186 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
187 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
188 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
189 test \$(( 1 + 1 )) = 2 || exit 1"
190 if (eval "$as_required") 2>/dev/null
191 then :
192 as_have_required=yes
193 else case e in #(
194 e) as_have_required=no ;;
195 esac
196 fi
197 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
198 then :
199
200 else case e in #(
201 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
202 as_found=false
203 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
204 do
205 IFS=$as_save_IFS
206 case $as_dir in #(((
207 '') as_dir=./ ;;
208 */) ;;
209 *) as_dir=$as_dir/ ;;
210 esac
211 as_found=:
212 case $as_dir in #(
213 /*)
214 for as_base in sh bash ksh sh5; do
215 # Try only shells that exist, to save several forks.
216 as_shell=$as_dir$as_base
217 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
218 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
219 then :
220 CONFIG_SHELL=$as_shell as_have_required=yes
221 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
222 then :
223 break 2
224 fi
225 fi
226 done;;
227 esac
228 as_found=false
229 done
230 IFS=$as_save_IFS
231 if $as_found
232 then :
233
234 else case e in #(
235 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
237 then :
238 CONFIG_SHELL=$SHELL as_have_required=yes
239 fi ;;
240 esac
241 fi
242
243
244 if test "x$CONFIG_SHELL" != x
245 then :
246 export CONFIG_SHELL
247 # We cannot yet assume a decent shell, so we have to provide a
248 # neutralization value for shells without unset; and this also
249 # works around shells that cannot unset nonexistent variables.
250 # Preserve -v and -x to the replacement shell.
251 BASH_ENV=/dev/null
252 ENV=/dev/null
253 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254 case $- in # ((((
255 *v*x* | *x*v* ) as_opts=-vx ;;
256 *v* ) as_opts=-v ;;
257 *x* ) as_opts=-x ;;
258 * ) as_opts= ;;
259 esac
260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261 # Admittedly, this is quite paranoid, since all the known shells bail
262 # out after a failed 'exec'.
263 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264 exit 255
265 fi
266
267 if test x$as_have_required = xno
268 then :
269 printf "%s\n" "$0: This script requires a shell more modern than all"
270 printf "%s\n" "$0: the shells that I found on your system."
271 if test ${ZSH_VERSION+y} ; then
272 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 printf "%s\n" "$0: Please tell [email protected] and
276 $0: [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi ;;
283 esac
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 printf "%s\n" X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else case e in #(
391 e) as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 } ;;
395 esac
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409 else case e in #(
410 e) as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 } ;;
414 esac
415 fi # as_fn_arith
416
417
418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
419 # ----------------------------------------
420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
422 # script with STATUS, using 1 if that was 0.
423 as_fn_error ()
424 {
425 as_status=$1; test $as_status -eq 0 && as_status=1
426 if test "$4"; then
427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
429 fi
430 printf "%s\n" "$as_me: error: $2" >&2
431 as_fn_exit $as_status
432 } # as_fn_error
433
434 if expr a : '\(a\)' >/dev/null 2>&1 &&
435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
436 as_expr=expr
437 else
438 as_expr=false
439 fi
440
441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
442 as_basename=basename
443 else
444 as_basename=false
445 fi
446
447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
448 as_dirname=dirname
449 else
450 as_dirname=false
451 fi
452
453 as_me=`$as_basename -- "$0" ||
454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
455 X"$0" : 'X\(//\)$' \| \
456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
457 printf "%s\n" X/"$0" |
458 sed '/^.*\/\([^/][^/]*\)\/*$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\/\)$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\).*/{
467 s//\1/
468 q
469 }
470 s/.*/./; q'`
471
472 # Avoid depending upon Character Ranges.
473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
476 as_cr_digits='0123456789'
477 as_cr_alnum=$as_cr_Letters$as_cr_digits
478
479
480 as_lineno_1=$LINENO as_lineno_1a=$LINENO
481 as_lineno_2=$LINENO as_lineno_2a=$LINENO
482 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
483 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
484 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 sed -n '
486 p
487 /[$]LINENO/=
488 ' <$as_myself |
489 sed '
490 t clear
491 :clear
492 s/[$]LINENO.*/&-/
493 t lineno
494 b
495 :lineno
496 N
497 :loop
498 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
499 t loop
500 s/-\n.*//
501 ' >$as_me.lineno &&
502 chmod +x "$as_me.lineno" ||
503 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
504
505 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
506 # already done that, so ensure we don't try to do so again and fall
507 # in an infinite loop. This has already happened in practice.
508 _as_can_reexec=no; export _as_can_reexec
509 # Don't try to exec as it changes $[0], causing all sort of problems
510 # (the dirname of $[0] is not the place where we might find the
511 # original and so on. Autoconf is especially sensitive to this).
512 . "./$as_me.lineno"
513 # Exit status is that of the last command.
514 exit
515 }
516
517
518 # Determine whether it's possible to make 'echo' print without a newline.
519 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
520 # for compatibility with existing Makefiles.
521 ECHO_C= ECHO_N= ECHO_T=
522 case `echo -n x` in #(((((
523 -n*)
524 case `echo 'xy\c'` in
525 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
526 xy) ECHO_C='\c';;
527 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
528 ECHO_T=' ';;
529 esac;;
530 *)
531 ECHO_N='-n';;
532 esac
533
534 # For backward compatibility with old third-party macros, we provide
535 # the shell variables $as_echo and $as_echo_n. New code should use
536 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
537 as_echo='printf %s\n'
538 as_echo_n='printf %s'
539
540 rm -f conf$$ conf$$.exe conf$$.file
541 if test -d conf$$.dir; then
542 rm -f conf$$.dir/conf$$.file
543 else
544 rm -f conf$$.dir
545 mkdir conf$$.dir 2>/dev/null
546 fi
547 if (echo >conf$$.file) 2>/dev/null; then
548 if ln -s conf$$.file conf$$ 2>/dev/null; then
549 as_ln_s='ln -s'
550 # ... but there are two gotchas:
551 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
552 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
553 # In both cases, we have to default to 'cp -pR'.
554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
555 as_ln_s='cp -pR'
556 elif ln conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s=ln
558 else
559 as_ln_s='cp -pR'
560 fi
561 else
562 as_ln_s='cp -pR'
563 fi
564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
565 rmdir conf$$.dir 2>/dev/null
566
567 if mkdir -p . 2>/dev/null; then
568 as_mkdir_p='mkdir -p "$as_dir"'
569 else
570 test -d ./-p && rmdir ./-p
571 as_mkdir_p=false
572 fi
573
574 as_test_x='test -x'
575 as_executable_p=as_fn_executable_p
576
577 # Sed expression to map a string onto a valid CPP name.
578 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
579 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
580
581 # Sed expression to map a string onto a valid variable name.
582 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
583 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
584
585
586 test -n "$DJDIR" || exec 7<&0 </dev/null
587 exec 6>&1
588
589 # Name of the host.
590 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
591 # so uname gets run too.
592 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
593
594 #
595 # Initializations.
596 #
597 ac_default_prefix=/usr/local
598 ac_clean_files=
599 ac_config_libobj_dir=.
600 LIBOBJS=
601 cross_compiling=no
602 subdirs=
603 MFLAGS=
604 MAKEFLAGS=
605
606 # Identity of this package.
607 PACKAGE_NAME='fldigi'
608 PACKAGE_TARNAME='fldigi'
609 PACKAGE_VERSION='4.2.12'
610 PACKAGE_STRING='fldigi 4.2.12'
611 PACKAGE_BUGREPORT='[email protected]'
612 PACKAGE_URL=''
613
614 ac_unique_file="src/main.cxx"
615 # Factoring default headers for most tests.
616 ac_includes_default="\
617 #include <stddef.h>
618 #ifdef HAVE_STDIO_H
619 # include <stdio.h>
620 #endif
621 #ifdef HAVE_STDLIB_H
622 # include <stdlib.h>
623 #endif
624 #ifdef HAVE_STRING_H
625 # include <string.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_STRINGS_H
634 # include <strings.h>
635 #endif
636 #ifdef HAVE_SYS_TYPES_H
637 # include <sys/types.h>
638 #endif
639 #ifdef HAVE_SYS_STAT_H
640 # include <sys/stat.h>
641 #endif
642 #ifdef HAVE_UNISTD_H
643 # include <unistd.h>
644 #endif"
645
646 ac_header_c_list=
647 gt_needs=
648 ac_subst_vars='am__EXEEXT_FALSE
649 am__EXEEXT_TRUE
650 LTLIBOBJS
651 SILENT_CMDS
652 FLARQ_BUILD_LDADD
653 FLARQ_BUILD_LDFLAGS
654 FLARQ_BUILD_CXXFLAGS
655 FLARQ_BUILD_CPPFLAGS
656 FLDIGI_BUILD_LDADD
657 FLDIGI_BUILD_LDFLAGS
658 FLDIGI_BUILD_CFLAGS
659 FLDIGI_BUILD_CXXFLAGS
660 FLDIGI_BUILD_CPPFLAGS
661 HAVE_ASCIIDOC_NO_XMLLINT_FALSE
662 HAVE_ASCIIDOC_NO_XMLLINT_TRUE
663 HAVE_ASCIIDOC_FALSE
664 HAVE_ASCIIDOC_TRUE
665 A2X
666 ASCIIDOC
667 INTL_LIBS
668 INTL_CFLAGS
669 ENABLE_LIBMBEDTLS_FALSE
670 ENABLE_LIBMBEDTLS_TRUE
671 LIBMBEDTLS_LIBS
672 LIBMBEDTLS_CFLAGS
673 ENABLE_FLXMLRPC_FALSE
674 ENABLE_FLXMLRPC_TRUE
675 FLXMLRPC_LIBS
676 FLXMLRPC_CFLAGS
677 X_LIBS
678 X_CFLAGS
679 NEED_HAMLIB_LOCATOR_FALSE
680 NEED_HAMLIB_LOCATOR_TRUE
681 ENABLE_HAMLIB_FALSE
682 ENABLE_HAMLIB_TRUE
683 HAMLIB_LIBS
684 HAMLIB_CFLAGS
685 PULSEAUDIO_LIBS
686 PULSEAUDIO_CFLAGS
687 PORTAUDIO_LIBS
688 PORTAUDIO_CFLAGS
689 SNDFILE_LIBS
690 SNDFILE_CFLAGS
691 SAMPLERATE_LIBS
692 SAMPLERATE_CFLAGS
693 LIBGPIOD_LIBS
694 LIBGPIOD_CFLAGS
695 PNG_LIBS
696 PNG_CFLAGS
697 PKG_CONFIG_LIBDIR
698 PKG_CONFIG_PATH
699 PKG_CONFIG
700 HAVE_FLUID_FALSE
701 HAVE_FLUID_TRUE
702 FLUID
703 FLTK_LIBS
704 FLTK_CFLAGS
705 FLTK_CONFIG
706 ENABLE_BENCHMARK_FALSE
707 ENABLE_BENCHMARK_TRUE
708 COMPAT_STACK_FALSE
709 COMPAT_STACK_TRUE
710 RDYNAMIC
711 DEBUG_CFLAGS
712 ENABLE_DEBUG_FALSE
713 ENABLE_DEBUG_TRUE
714 BFD_LIBS
715 BFD_CFLAGS
716 OPT_CFLAGS
717 COMPAT_STRCASESTR_FALSE
718 COMPAT_STRCASESTR_TRUE
719 EXTRA_LIBS
720 COMPAT_REGEX_FALSE
721 COMPAT_REGEX_TRUE
722 PTW32_LIBS
723 PTW32_CFLAGS
724 MINGW32_FALSE
725 MINGW32_TRUE
726 WIN32_FALSE
727 WIN32_TRUE
728 HAVE_NSIS_FALSE
729 HAVE_NSIS_TRUE
730 HAVE_WINDRES_FALSE
731 HAVE_WINDRES_TRUE
732 MAKENSIS
733 WINDRES
734 DARWIN_FALSE
735 DARWIN_TRUE
736 MAC_UNIVERSAL_LDFLAGS
737 MAC_UNIVERSAL_CFLAGS
738 WANT_FLARQ_FALSE
739 WANT_FLARQ_TRUE
740 WANT_FLDIGI_FALSE
741 WANT_FLDIGI_TRUE
742 USE_NLS_FALSE
743 USE_NLS_TRUE
744 POSUB
745 LTLIBINTL
746 LIBINTL
747 INTLLIBS
748 LTLIBICONV
749 LIBICONV
750 INTL_MACOSX_LIBS
751 CPP
752 XGETTEXT_EXTRA_OPTIONS
753 MSGMERGE_FOR_MSGFMT_OPTION
754 MSGMERGE
755 XGETTEXT_015
756 XGETTEXT
757 GMSGFMT_015
758 GMSGFMT
759 MSGFMT
760 GETTEXT_MACRO_VERSION
761 USE_NLS
762 SED
763 POW_LIB
764 LIBOBJS
765 EGREP
766 GREP
767 CXX11_SWITCH
768 am__fastdepCC_FALSE
769 am__fastdepCC_TRUE
770 CCDEPMODE
771 ac_ct_CC
772 CFLAGS
773 CC
774 am__fastdepCXX_FALSE
775 am__fastdepCXX_TRUE
776 CXXDEPMODE
777 am__nodep
778 AMDEPBACKSLASH
779 AMDEP_FALSE
780 AMDEP_TRUE
781 am__include
782 DEPDIR
783 OBJEXT
784 EXEEXT
785 ac_ct_CXX
786 CPPFLAGS
787 LDFLAGS
788 CXXFLAGS
789 CXX
790 FLARQ_DOCS
791 PACKAGE_GUIDE
792 PACKAGE_DOCS
793 PACKAGE_NEWBUG
794 PACKAGE_PROJ
795 PACKAGE_DL
796 PACKAGE_HOME
797 FLARQ_AUTHORS
798 FLDIGI_AUTHORS
799 MAINT
800 MAINTAINER_MODE_FALSE
801 MAINTAINER_MODE_TRUE
802 am__xargs_n
803 am__rm_f_notfound
804 AM_BACKSLASH
805 AM_DEFAULT_VERBOSITY
806 AM_DEFAULT_V
807 AM_V
808 CSCOPE
809 ETAGS
810 CTAGS
811 am__untar
812 am__tar
813 AMTAR
814 am__leading_dot
815 SET_MAKE
816 AWK
817 mkdir_p
818 MKDIR_P
819 INSTALL_STRIP_PROGRAM
820 STRIP
821 install_sh
822 MAKEINFO
823 AUTOHEADER
824 AUTOMAKE
825 AUTOCONF
826 ACLOCAL
827 VERSION
828 PACKAGE
829 CYGPATH_W
830 am__isrc
831 INSTALL_DATA
832 INSTALL_SCRIPT
833 INSTALL_PROGRAM
834 target_os
835 target_vendor
836 target_cpu
837 target
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 AC_CONFIG_ARGS
847 FLARQ_VERSION
848 FLARQ_VERSION_PATCH
849 FLARQ_VERSION_MINOR
850 FLARQ_VERSION_MAJOR
851 FLDIGI_VERSION
852 FLDIGI_VERSION_PATCH
853 FLDIGI_VERSION_MINOR
854 FLDIGI_VERSION_MAJOR
855 target_alias
856 host_alias
857 build_alias
858 LIBS
859 ECHO_T
860 ECHO_N
861 ECHO_C
862 DEFS
863 mandir
864 localedir
865 libdir
866 psdir
867 pdfdir
868 dvidir
869 htmldir
870 infodir
871 docdir
872 oldincludedir
873 includedir
874 runstatedir
875 localstatedir
876 sharedstatedir
877 sysconfdir
878 datadir
879 datarootdir
880 libexecdir
881 sbindir
882 bindir
883 program_transform_name
884 prefix
885 exec_prefix
886 PACKAGE_URL
887 PACKAGE_BUGREPORT
888 PACKAGE_STRING
889 PACKAGE_VERSION
890 PACKAGE_TARNAME
891 PACKAGE_NAME
892 PATH_SEPARATOR
893 SHELL
894 am__quote'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_silent_rules
899 enable_maintainer_mode
900 enable_dependency_tracking
901 enable_nls
902 with_gnu_ld
903 enable_rpath
904 with_libiconv_prefix
905 with_libintl_prefix
906 enable_fldigi
907 enable_flarq
908 enable_mac_universal
909 with_ptw32
910 with_clock_gettime
911 enable_static
912 enable_optimizations
913 enable_debug
914 with_bfd
915 enable_benchmark
916 enable_tls
917 enable_oss
918 with_sndfile
919 with_pulseaudio
920 with_hamlib
921 with_flxmlrpc
922 with_libmbedtls
923 with_asciidoc
924 '
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CXX
929 CXXFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 CCC
934 CC
935 CFLAGS
936 CPP
937 PTW32_CFLAGS
938 PTW32_LIBS
939 BFD_CFLAGS
940 BFD_LIBS
941 FLTK_CONFIG
942 FLTK_CFLAGS
943 FLTK_LIBS
944 FLUID
945 PKG_CONFIG
946 PKG_CONFIG_PATH
947 PKG_CONFIG_LIBDIR
948 PNG_CFLAGS
949 PNG_LIBS
950 LIBGPIOD_CFLAGS
951 LIBGPIOD_LIBS
952 SAMPLERATE_CFLAGS
953 SAMPLERATE_LIBS
954 SNDFILE_CFLAGS
955 SNDFILE_LIBS
956 PORTAUDIO_CFLAGS
957 PORTAUDIO_LIBS
958 PULSEAUDIO_CFLAGS
959 PULSEAUDIO_LIBS
960 HAMLIB_CFLAGS
961 HAMLIB_LIBS
962 X_CFLAGS
963 X_LIBS
964 FLXMLRPC_CFLAGS
965 FLXMLRPC_LIBS
966 LIBMBEDTLS_CFLAGS
967 LIBMBEDTLS_LIBS
968 INTL_CFLAGS
969 INTL_LIBS'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 ac_unrecognized_opts=
976 ac_unrecognized_sep=
977 # The variables have the same names as the options, with
978 # dashes changed to underlines.
979 cache_file=/dev/null
980 exec_prefix=NONE
981 no_create=
982 no_recursion=
983 prefix=NONE
984 program_prefix=NONE
985 program_suffix=NONE
986 program_transform_name=s,x,x,
987 silent=
988 site=
989 srcdir=
990 verbose=
991 x_includes=NONE
992 x_libraries=NONE
993
994 # Installation directory options.
995 # These are left unexpanded so users can "make install exec_prefix=/foo"
996 # and all the variables that are supposed to be based on exec_prefix
997 # by default will actually change.
998 # Use braces instead of parens because sh, perl, etc. also accept them.
999 # (The list follows the same order as the GNU Coding Standards.)
1000 bindir='${exec_prefix}/bin'
1001 sbindir='${exec_prefix}/sbin'
1002 libexecdir='${exec_prefix}/libexec'
1003 datarootdir='${prefix}/share'
1004 datadir='${datarootdir}'
1005 sysconfdir='${prefix}/etc'
1006 sharedstatedir='${prefix}/com'
1007 localstatedir='${prefix}/var'
1008 runstatedir='${localstatedir}/run'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1020
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1024 do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1030 fi
1031
1032 case $ac_option in
1033 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *=) ac_optarg= ;;
1035 *) ac_optarg=yes ;;
1036 esac
1037
1038 case $ac_dashdash$ac_option in
1039 --)
1040 ac_dashdash=yes ;;
1041
1042 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 ac_prev=bindir ;;
1044 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1045 bindir=$ac_optarg ;;
1046
1047 -build | --build | --buil | --bui | --bu)
1048 ac_prev=build_alias ;;
1049 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1050 build_alias=$ac_optarg ;;
1051
1052 -cache-file | --cache-file | --cache-fil | --cache-fi \
1053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1054 ac_prev=cache_file ;;
1055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1057 cache_file=$ac_optarg ;;
1058
1059 --config-cache | -C)
1060 cache_file=config.cache ;;
1061
1062 -datadir | --datadir | --datadi | --datad)
1063 ac_prev=datadir ;;
1064 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1065 datadir=$ac_optarg ;;
1066
1067 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1068 | --dataroo | --dataro | --datar)
1069 ac_prev=datarootdir ;;
1070 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1071 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1072 datarootdir=$ac_optarg ;;
1073
1074 -disable-* | --disable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid feature name: '$ac_useropt'"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083 "enable_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval enable_$ac_useropt=no ;;
1089
1090 -docdir | --docdir | --docdi | --doc | --do)
1091 ac_prev=docdir ;;
1092 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1093 docdir=$ac_optarg ;;
1094
1095 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1096 ac_prev=dvidir ;;
1097 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1098 dvidir=$ac_optarg ;;
1099
1100 -enable-* | --enable-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid feature name: '$ac_useropt'"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1108 *"
1109 "enable_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval enable_$ac_useropt=\$ac_optarg ;;
1115
1116 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118 | --exec | --exe | --ex)
1119 ac_prev=exec_prefix ;;
1120 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122 | --exec=* | --exe=* | --ex=*)
1123 exec_prefix=$ac_optarg ;;
1124
1125 -gas | --gas | --ga | --g)
1126 # Obsolete; use --with-gas.
1127 with_gas=yes ;;
1128
1129 -help | --help | --hel | --he | -h)
1130 ac_init_help=long ;;
1131 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132 ac_init_help=recursive ;;
1133 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134 ac_init_help=short ;;
1135
1136 -host | --host | --hos | --ho)
1137 ac_prev=host_alias ;;
1138 -host=* | --host=* | --hos=* | --ho=*)
1139 host_alias=$ac_optarg ;;
1140
1141 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142 ac_prev=htmldir ;;
1143 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144 | --ht=*)
1145 htmldir=$ac_optarg ;;
1146
1147 -includedir | --includedir | --includedi | --included | --include \
1148 | --includ | --inclu | --incl | --inc)
1149 ac_prev=includedir ;;
1150 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151 | --includ=* | --inclu=* | --incl=* | --inc=*)
1152 includedir=$ac_optarg ;;
1153
1154 -infodir | --infodir | --infodi | --infod | --info | --inf)
1155 ac_prev=infodir ;;
1156 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157 infodir=$ac_optarg ;;
1158
1159 -libdir | --libdir | --libdi | --libd)
1160 ac_prev=libdir ;;
1161 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162 libdir=$ac_optarg ;;
1163
1164 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165 | --libexe | --libex | --libe)
1166 ac_prev=libexecdir ;;
1167 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168 | --libexe=* | --libex=* | --libe=*)
1169 libexecdir=$ac_optarg ;;
1170
1171 -localedir | --localedir | --localedi | --localed | --locale)
1172 ac_prev=localedir ;;
1173 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174 localedir=$ac_optarg ;;
1175
1176 -localstatedir | --localstatedir | --localstatedi | --localstated \
1177 | --localstate | --localstat | --localsta | --localst | --locals)
1178 ac_prev=localstatedir ;;
1179 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181 localstatedir=$ac_optarg ;;
1182
1183 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184 ac_prev=mandir ;;
1185 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186 mandir=$ac_optarg ;;
1187
1188 -nfp | --nfp | --nf)
1189 # Obsolete; use --without-fp.
1190 with_fp=no ;;
1191
1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193 | --no-cr | --no-c | -n)
1194 no_create=yes ;;
1195
1196 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198 no_recursion=yes ;;
1199
1200 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202 | --oldin | --oldi | --old | --ol | --o)
1203 ac_prev=oldincludedir ;;
1204 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207 oldincludedir=$ac_optarg ;;
1208
1209 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210 ac_prev=prefix ;;
1211 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212 prefix=$ac_optarg ;;
1213
1214 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215 | --program-pre | --program-pr | --program-p)
1216 ac_prev=program_prefix ;;
1217 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219 program_prefix=$ac_optarg ;;
1220
1221 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222 | --program-suf | --program-su | --program-s)
1223 ac_prev=program_suffix ;;
1224 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226 program_suffix=$ac_optarg ;;
1227
1228 -program-transform-name | --program-transform-name \
1229 | --program-transform-nam | --program-transform-na \
1230 | --program-transform-n | --program-transform- \
1231 | --program-transform | --program-transfor \
1232 | --program-transfo | --program-transf \
1233 | --program-trans | --program-tran \
1234 | --progr-tra | --program-tr | --program-t)
1235 ac_prev=program_transform_name ;;
1236 -program-transform-name=* | --program-transform-name=* \
1237 | --program-transform-nam=* | --program-transform-na=* \
1238 | --program-transform-n=* | --program-transform-=* \
1239 | --program-transform=* | --program-transfor=* \
1240 | --program-transfo=* | --program-transf=* \
1241 | --program-trans=* | --program-tran=* \
1242 | --progr-tra=* | --program-tr=* | --program-t=*)
1243 program_transform_name=$ac_optarg ;;
1244
1245 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246 ac_prev=pdfdir ;;
1247 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248 pdfdir=$ac_optarg ;;
1249
1250 -psdir | --psdir | --psdi | --psd | --ps)
1251 ac_prev=psdir ;;
1252 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253 psdir=$ac_optarg ;;
1254
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 silent=yes ;;
1258
1259 -runstatedir | --runstatedir | --runstatedi | --runstated \
1260 | --runstate | --runstat | --runsta | --runst | --runs \
1261 | --run | --ru | --r)
1262 ac_prev=runstatedir ;;
1263 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1264 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1265 | --run=* | --ru=* | --r=*)
1266 runstatedir=$ac_optarg ;;
1267
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 ac_prev=sbindir ;;
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 | --sbi=* | --sb=*)
1272 sbindir=$ac_optarg ;;
1273
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1277 | --sha | --sh)
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 | --sha=* | --sh=*)
1283 sharedstatedir=$ac_optarg ;;
1284
1285 -site | --site | --sit)
1286 ac_prev=site ;;
1287 -site=* | --site=* | --sit=*)
1288 site=$ac_optarg ;;
1289
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 ac_prev=srcdir ;;
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1294
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1301
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1306
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 verbose=yes ;;
1309
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1312
1313 -with-* | --with-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error $? "invalid package name: '$ac_useropt'"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1321 *"
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=\$ac_optarg ;;
1328
1329 -without-* | --without-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error $? "invalid package name: '$ac_useropt'"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338 "with_$ac_useropt"
1339 "*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval with_$ac_useropt=no ;;
1344
1345 --x)
1346 # Obsolete; use --with-x.
1347 with_x=yes ;;
1348
1349 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1350 | --x-incl | --x-inc | --x-in | --x-i)
1351 ac_prev=x_includes ;;
1352 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1353 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1354 x_includes=$ac_optarg ;;
1355
1356 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1357 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1358 ac_prev=x_libraries ;;
1359 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1360 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1361 x_libraries=$ac_optarg ;;
1362
1363 -*) as_fn_error $? "unrecognized option: '$ac_option'
1364 Try '$0 --help' for more information"
1365 ;;
1366
1367 *=*)
1368 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369 # Reject names that are not valid shell variable names.
1370 case $ac_envvar in #(
1371 '' | [0-9]* | *[!_$as_cr_alnum]* )
1372 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1373 esac
1374 eval $ac_envvar=\$ac_optarg
1375 export $ac_envvar ;;
1376
1377 *)
1378 # FIXME: should be removed in autoconf 3.0.
1379 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1380 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1382 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1383 ;;
1384
1385 esac
1386 done
1387
1388 if test -n "$ac_prev"; then
1389 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1390 as_fn_error $? "missing argument to $ac_option"
1391 fi
1392
1393 if test -n "$ac_unrecognized_opts"; then
1394 case $enable_option_checking in
1395 no) ;;
1396 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1397 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1398 esac
1399 fi
1400
1401 # Check all directory arguments for consistency.
1402 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 datadir sysconfdir sharedstatedir localstatedir includedir \
1404 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405 libdir localedir mandir runstatedir
1406 do
1407 eval ac_val=\$$ac_var
1408 # Remove trailing slashes.
1409 case $ac_val in
1410 */ )
1411 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1412 eval $ac_var=\$ac_val;;
1413 esac
1414 # Be sure to have absolute directory names.
1415 case $ac_val in
1416 [\\/$]* | ?:[\\/]* ) continue;;
1417 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1418 esac
1419 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1420 done
1421
1422 # There might be people who depend on the old broken behavior: '$host'
1423 # used to hold the argument of --host etc.
1424 # FIXME: To remove some day.
1425 build=$build_alias
1426 host=$host_alias
1427 target=$target_alias
1428
1429 # FIXME: To remove some day.
1430 if test "x$host_alias" != x; then
1431 if test "x$build_alias" = x; then
1432 cross_compiling=maybe
1433 elif test "x$build_alias" != "x$host_alias"; then
1434 cross_compiling=yes
1435 fi
1436 fi
1437
1438 ac_tool_prefix=
1439 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1440
1441 test "$silent" = yes && exec 6>/dev/null
1442
1443
1444 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1445 ac_ls_di=`ls -di .` &&
1446 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447 as_fn_error $? "working directory cannot be determined"
1448 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1449 as_fn_error $? "pwd does not report name of working directory"
1450
1451
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454 ac_srcdir_defaulted=yes
1455 # Try the directory containing this script, then the parent directory.
1456 ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458 X"$as_myself" : 'X\(//\)[^/]' \| \
1459 X"$as_myself" : 'X\(//\)$' \| \
1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 printf "%s\n" X"$as_myself" |
1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)[^/].*/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\/\)$/{
1471 s//\1/
1472 q
1473 }
1474 /^X\(\/\).*/{
1475 s//\1/
1476 q
1477 }
1478 s/.*/./; q'`
1479 srcdir=$ac_confdir
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 srcdir=..
1482 fi
1483 else
1484 ac_srcdir_defaulted=no
1485 fi
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1489 fi
1490 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1491 ac_abs_confdir=`(
1492 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1493 pwd)`
1494 # When building in place, set srcdir=.
1495 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 srcdir=.
1497 fi
1498 # Remove unnecessary trailing slashes from srcdir.
1499 # Double slashes in file names in object file debugging info
1500 # mess up M-x gdb in Emacs.
1501 case $srcdir in
1502 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503 esac
1504 for ac_var in $ac_precious_vars; do
1505 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_env_${ac_var}_value=\$${ac_var}
1507 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509 done
1510
1511 #
1512 # Report the --help message.
1513 #
1514 if test "$ac_init_help" = "long"; then
1515 # Omit some internal or obsolete options to make the list less imposing.
1516 # This message is too long to be a string in the A/UX 3.1 sh.
1517 cat <<_ACEOF
1518 'configure' configures fldigi 4.2.12 to adapt to many kinds of systems.
1519
1520 Usage: $0 [OPTION]... [VAR=VALUE]...
1521
1522 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523 VAR=VALUE. See below for descriptions of some of the useful variables.
1524
1525 Defaults for the options are specified in brackets.
1526
1527 Configuration:
1528 -h, --help display this help and exit
1529 --help=short display options specific to this package
1530 --help=recursive display the short help of all the included packages
1531 -V, --version display version information and exit
1532 -q, --quiet, --silent do not print 'checking ...' messages
1533 --cache-file=FILE cache test results in FILE [disabled]
1534 -C, --config-cache alias for '--cache-file=config.cache'
1535 -n, --no-create do not create output files
1536 --srcdir=DIR find the sources in DIR [configure dir or '..']
1537
1538 Installation directories:
1539 --prefix=PREFIX install architecture-independent files in PREFIX
1540 [$ac_default_prefix]
1541 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 [PREFIX]
1543
1544 By default, 'make install' will install all the files in
1545 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1546 an installation prefix other than '$ac_default_prefix' using '--prefix',
1547 for instance '--prefix=\$HOME'.
1548
1549 For better control, use the options below.
1550
1551 Fine tuning of the installation directories:
1552 --bindir=DIR user executables [EPREFIX/bin]
1553 --sbindir=DIR system admin executables [EPREFIX/sbin]
1554 --libexecdir=DIR program executables [EPREFIX/libexec]
1555 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1556 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1557 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1558 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/fldigi]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1572 _ACEOF
1573
1574 cat <<\_ACEOF
1575
1576 Program names:
1577 --program-prefix=PREFIX prepend PREFIX to installed program names
1578 --program-suffix=SUFFIX append SUFFIX to installed program names
1579 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1580
1581 System types:
1582 --build=BUILD configure for building on BUILD [guessed]
1583 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1584 --target=TARGET configure for building compilers for TARGET [HOST]
1585 _ACEOF
1586 fi
1587
1588 if test -n "$ac_init_help"; then
1589 case $ac_init_help in
1590 short | recursive ) echo "Configuration of fldigi 4.2.12:";;
1591 esac
1592 cat <<\_ACEOF
1593
1594 Optional Features:
1595 --disable-option-checking ignore unrecognized --enable/--with options
1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1598 --enable-silent-rules less verbose build output (undo: "make V=1")
1599 --disable-silent-rules verbose build output (undo: "make V=0")
1600 --enable-maintainer-mode
1601 enable make rules and dependencies not useful (and
1602 sometimes confusing) to the casual installer
1603 --enable-dependency-tracking
1604 do not reject slow dependency extractors
1605 --disable-dependency-tracking
1606 speeds up one-time build
1607
1608 Optional Features and Packages:
1609 --disable-option-checking ignore unrecognized --enable/--with options
1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1612 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1613 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1614 --disable-nls do not use Native Language Support
1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1616 --disable-rpath do not hardcode runtime library paths
1617 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1618 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1619 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1620 --without-libintl-prefix don't search for libintl in includedir and libdir
1621 --disable-fldigi do not build fldigi
1622 --disable-flarq do not build flarq
1623 --enable-mac-universal build a universal binary on Mac OS X [no]
1624 --with-ptw32[=DIR] search for pthreads-w32 in DIR/include and DIR/lib
1625 [mingw32 only]
1626 --without-clock_gettime Do not use clock_gettime lib
1627 --enable-static enable static linking for some libraries
1628 --enable-optimizations use CPU optimizations
1629 (none|sse|sse2|sse3|sse4|i486|i686|avx|avx2|x86-64|rpi1|rpi2|rpi3|rpi4|bbb|cyclone5|nativeARM|native)
1630 [none]
1631 --enable-debug turn on debugging
1632 --with-bfd[=DIR] search for libbfd in DIR/include and DIR/lib
1633 [mingw32 only]
1634 --enable-benchmark build for benchmark-only operation
1635 --enable-tls enable use of TLS [autodetect]
1636 --disable-oss disable support for OSS [autodetect]
1637 --with-sndfile enable reading/writing of audio files via libsndfile
1638 [autodetect]
1639 --with-pulseaudio enable support for PulseAudio [autodetect]
1640 --with-hamlib use hamradio control libraries [autodetect]
1641 --with-flxmlrpc use external flxmlrpc library [autodetect]
1642 --with-libmbedtls use mbedtls libraries [autodetect]
1643 --with-asciidoc build documentation using asciidoc [autodetect]
1644
1645 Some influential environment variables:
1646 CXX C++ compiler command
1647 CXXFLAGS C++ compiler flags
1648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649 nonstandard directory <lib dir>
1650 LIBS libraries to pass to the linker, e.g. -l<library>
1651 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1652 you have headers in a nonstandard directory <include dir>
1653 CC C compiler command
1654 CFLAGS C compiler flags
1655 CPP C preprocessor
1656 PTW32_CFLAGS
1657 C compiler flags for pthreads-w32
1658 PTW32_LIBS linker flags for pthreads-w32
1659 BFD_CFLAGS C compiler flags for libbfd
1660 BFD_LIBS linker flags for libbfd
1661 FLTK_CONFIG Path to fltk-config utility
1662 FLTK_CFLAGS C compiler flags for FLTK, overriding fltk-config
1663 FLTK_LIBS linker flags for FLTK, overriding fltk-config
1664 FLUID Fast Light User-Interface Designer
1665 PKG_CONFIG path to pkg-config utility
1666 PKG_CONFIG_PATH
1667 directories to add to pkg-config's search path
1668 PKG_CONFIG_LIBDIR
1669 path overriding pkg-config's built-in search path
1670 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
1671 PNG_LIBS linker flags for PNG, overriding pkg-config
1672 LIBGPIOD_CFLAGS
1673 C compiler flags for LIBGPIOD, overriding pkg-config
1674 LIBGPIOD_LIBS
1675 linker flags for LIBGPIOD, overriding pkg-config
1676 SAMPLERATE_CFLAGS
1677 C compiler flags for SAMPLERATE, overriding pkg-config
1678 SAMPLERATE_LIBS
1679 linker flags for SAMPLERATE, overriding pkg-config
1680 SNDFILE_CFLAGS
1681 C compiler flags for SNDFILE, overriding pkg-config
1682 SNDFILE_LIBS
1683 linker flags for SNDFILE, overriding pkg-config
1684 PORTAUDIO_CFLAGS
1685 C compiler flags for PORTAUDIO, overriding pkg-config
1686 PORTAUDIO_LIBS
1687 linker flags for PORTAUDIO, overriding pkg-config
1688 PULSEAUDIO_CFLAGS
1689 C compiler flags for PULSEAUDIO, overriding pkg-config
1690 PULSEAUDIO_LIBS
1691 linker flags for PULSEAUDIO, overriding pkg-config
1692 HAMLIB_CFLAGS
1693 C compiler flags for HAMLIB, overriding pkg-config
1694 HAMLIB_LIBS linker flags for HAMLIB, overriding pkg-config
1695 X_CFLAGS C compiler flags for X, overriding pkg-config
1696 X_LIBS linker flags for X, overriding pkg-config
1697 FLXMLRPC_CFLAGS
1698 C compiler flags for FLXMLRPC, overriding pkg-config
1699 FLXMLRPC_LIBS
1700 linker flags for FLXMLRPC, overriding pkg-config
1701 LIBMBEDTLS_CFLAGS
1702 C compiler flags for LIBMBEDTLS, overriding pkg-config
1703 LIBMBEDTLS_LIBS
1704 linker flags for LIBMBEDTLS, overriding pkg-config
1705 INTL_CFLAGS C compiler flags for libintl, overriding gettext macros
1706 INTL_LIBS linker flags for libintl, overriding gettext macros
1707
1708 Use these variables to override the choices made by 'configure' or to help
1709 it to find libraries and programs with nonstandard names/locations.
1710
1711 Report bugs to <[email protected]>.
1712 _ACEOF
1713 ac_status=$?
1714 fi
1715
1716 if test "$ac_init_help" = "recursive"; then
1717 # If there are subdirs, report their specific --help.
1718 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1719 test -d "$ac_dir" ||
1720 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1721 continue
1722 ac_builddir=.
1723
1724 case "$ac_dir" in
1725 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *)
1727 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1728 # A ".." for each directory in $ac_dir_suffix.
1729 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1730 case $ac_top_builddir_sub in
1731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1733 esac ;;
1734 esac
1735 ac_abs_top_builddir=$ac_pwd
1736 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1737 # for backward compatibility:
1738 ac_top_builddir=$ac_top_build_prefix
1739
1740 case $srcdir in
1741 .) # We are building in place.
1742 ac_srcdir=.
1743 ac_top_srcdir=$ac_top_builddir_sub
1744 ac_abs_top_srcdir=$ac_pwd ;;
1745 [\\/]* | ?:[\\/]* ) # Absolute name.
1746 ac_srcdir=$srcdir$ac_dir_suffix;
1747 ac_top_srcdir=$srcdir
1748 ac_abs_top_srcdir=$srcdir ;;
1749 *) # Relative name.
1750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1751 ac_top_srcdir=$ac_top_build_prefix$srcdir
1752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1753 esac
1754 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755
1756 cd "$ac_dir" || { ac_status=$?; continue; }
1757 # Check for configure.gnu first; this name is used for a wrapper for
1758 # Metaconfig's "Configure" on case-insensitive file systems.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1763 echo &&
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1765 else
1766 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 fi || ac_status=$?
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1769 done
1770 fi
1771
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1774 cat <<\_ACEOF
1775 fldigi configure 4.2.12
1776 generated by GNU Autoconf 2.72
1777
1778 Copyright (C) 2023 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1781
1782 Copyright (C) 2007, 2008, 2009 Stelios Bounanos, M0GLD (m0gld AT enotty DOT net)
1783 _ACEOF
1784 exit
1785 fi
1786
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1790
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext conftest.beam
1798 if { { ac_try="$ac_compile"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext
1817 then :
1818 ac_retval=0
1819 else case e in #(
1820 e) printf "%s\n" "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1 ;;
1824 esac
1825 fi
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_cxx_try_compile
1830
1831 # ac_fn_c_try_compile LINENO
1832 # --------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_compile ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext conftest.beam
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 printf "%s\n" "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext
1857 then :
1858 ac_retval=0
1859 else case e in #(
1860 e) printf "%s\n" "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1 ;;
1864 esac
1865 fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_compile
1870
1871 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists and can be compiled using the include files in
1874 # INCLUDES, setting the cache variable VAR accordingly.
1875 ac_fn_c_check_header_compile ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 printf %s "checking for $2... " >&6; }
1880 if eval test \${$3+y}
1881 then :
1882 printf %s "(cached) " >&6
1883 else case e in #(
1884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $4
1887 #include <$2>
1888 _ACEOF
1889 if ac_fn_c_try_compile "$LINENO"
1890 then :
1891 eval "$3=yes"
1892 else case e in #(
1893 e) eval "$3=no" ;;
1894 esac
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1897 esac
1898 fi
1899 eval ac_res=\$$3
1900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 printf "%s\n" "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_check_header_compile
1905
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 printf "%s\n" "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1926 fi
1927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1934 }
1935 then :
1936 ac_retval=0
1937 else case e in #(
1938 e) printf "%s\n" "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1 ;;
1942 esac
1943 fi
1944 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1945 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1946 # interfere with the next link command; also delete a directory that is
1947 # left behind by Apple's compiler. We do this before executing the actions.
1948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1951
1952 } # ac_fn_c_try_link
1953
1954 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1955 # -------------------------------------------
1956 # Tests whether TYPE exists after having included INCLUDES, setting cache
1957 # variable VAR accordingly.
1958 ac_fn_c_check_type ()
1959 {
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 printf %s "checking for $2... " >&6; }
1963 if eval test \${$3+y}
1964 then :
1965 printf %s "(cached) " >&6
1966 else case e in #(
1967 e) eval "$3=no"
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 int
1972 main (void)
1973 {
1974 if (sizeof ($2))
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"
1981 then :
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 int
1986 main (void)
1987 {
1988 if (sizeof (($2)))
1989 return 0;
1990 ;
1991 return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"
1995 then :
1996
1997 else case e in #(
1998 e) eval "$3=yes" ;;
1999 esac
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2004 esac
2005 fi
2006 eval ac_res=\$$3
2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 printf "%s\n" "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011 } # ac_fn_c_check_type
2012
2013 # ac_fn_c_find_intX_t LINENO BITS VAR
2014 # -----------------------------------
2015 # Finds a signed integer type with width BITS, setting cache variable VAR
2016 # accordingly.
2017 ac_fn_c_find_intX_t ()
2018 {
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2021 printf %s "checking for int$2_t... " >&6; }
2022 if eval test \${$3+y}
2023 then :
2024 printf %s "(cached) " >&6
2025 else case e in #(
2026 e) eval "$3=no"
2027 # Order is important - never check a type that is potentially smaller
2028 # than half of the expected target width.
2029 for ac_type in int$2_t 'int' 'long int' \
2030 'long long int' 'short int' 'signed char'; do
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $ac_includes_default
2034 enum { N = $2 / 2 - 1 };
2035 int
2036 main (void)
2037 {
2038 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2039 test_array [0] = 0;
2040 return test_array [0];
2041
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"
2047 then :
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $ac_includes_default
2051 enum { N = $2 / 2 - 1 };
2052 int
2053 main (void)
2054 {
2055 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2056 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2057 test_array [0] = 0;
2058 return test_array [0];
2059
2060 ;
2061 return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"
2065 then :
2066
2067 else case e in #(
2068 e) case $ac_type in #(
2069 int$2_t) :
2070 eval "$3=yes" ;; #(
2071 *) :
2072 eval "$3=\$ac_type" ;;
2073 esac ;;
2074 esac
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2079 if eval test \"x\$"$3"\" = x"no"
2080 then :
2081
2082 else case e in #(
2083 e) break ;;
2084 esac
2085 fi
2086 done ;;
2087 esac
2088 fi
2089 eval ac_res=\$$3
2090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 printf "%s\n" "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094 } # ac_fn_c_find_intX_t
2095
2096 # ac_fn_c_find_uintX_t LINENO BITS VAR
2097 # ------------------------------------
2098 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2099 # accordingly.
2100 ac_fn_c_find_uintX_t ()
2101 {
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2104 printf %s "checking for uint$2_t... " >&6; }
2105 if eval test \${$3+y}
2106 then :
2107 printf %s "(cached) " >&6
2108 else case e in #(
2109 e) eval "$3=no"
2110 # Order is important - never check a type that is potentially smaller
2111 # than half of the expected target width.
2112 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2113 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $ac_includes_default
2117 int
2118 main (void)
2119 {
2120 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2121 test_array [0] = 0;
2122 return test_array [0];
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"
2129 then :
2130 case $ac_type in #(
2131 uint$2_t) :
2132 eval "$3=yes" ;; #(
2133 *) :
2134 eval "$3=\$ac_type" ;;
2135 esac
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2138 if eval test \"x\$"$3"\" = x"no"
2139 then :
2140
2141 else case e in #(
2142 e) break ;;
2143 esac
2144 fi
2145 done ;;
2146 esac
2147 fi
2148 eval ac_res=\$$3
2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 printf "%s\n" "$ac_res" >&6; }
2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152
2153 } # ac_fn_c_find_uintX_t
2154
2155 # ac_fn_c_check_func LINENO FUNC VAR
2156 # ----------------------------------
2157 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2158 ac_fn_c_check_func ()
2159 {
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 printf %s "checking for $2... " >&6; }
2163 if eval test \${$3+y}
2164 then :
2165 printf %s "(cached) " >&6
2166 else case e in #(
2167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2171 #define $2 innocuous_$2
2172
2173 /* System header to define __stub macros and hopefully few prototypes,
2174 which can conflict with char $2 (void); below. */
2175
2176 #include <limits.h>
2177 #undef $2
2178
2179 /* Override any GCC internal prototype to avoid an error.
2180 Use char because int might match the return type of a GCC
2181 builtin and then its argument prototype would still apply. */
2182 #ifdef __cplusplus
2183 extern "C"
2184 #endif
2185 char $2 (void);
2186 /* The GNU C library defines this for functions which it implements
2187 to always fail with ENOSYS. Some functions are actually named
2188 something starting with __ and the normal name is an alias. */
2189 #if defined __stub_$2 || defined __stub___$2
2190 choke me
2191 #endif
2192
2193 int
2194 main (void)
2195 {
2196 return $2 ();
2197 ;
2198 return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_link "$LINENO"
2202 then :
2203 eval "$3=yes"
2204 else case e in #(
2205 e) eval "$3=no" ;;
2206 esac
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2209 conftest$ac_exeext conftest.$ac_ext ;;
2210 esac
2211 fi
2212 eval ac_res=\$$3
2213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 printf "%s\n" "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217 } # ac_fn_c_check_func
2218
2219 # ac_fn_c_try_run LINENO
2220 # ----------------------
2221 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2222 # executables *can* be run.
2223 ac_fn_c_try_run ()
2224 {
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 if { { ac_try="$ac_link"
2227 case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 printf "%s\n" "$ac_try_echo"; } >&5
2233 (eval "$ac_link") 2>&5
2234 ac_status=$?
2235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2237 { { case "(($ac_try" in
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2240 esac
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 printf "%s\n" "$ac_try_echo"; } >&5
2243 (eval "$ac_try") 2>&5
2244 ac_status=$?
2245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2246 test $ac_status = 0; }; }
2247 then :
2248 ac_retval=0
2249 else case e in #(
2250 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2251 printf "%s\n" "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_retval=$ac_status ;;
2255 esac
2256 fi
2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2260
2261 } # ac_fn_c_try_run
2262
2263 # ac_fn_c_try_cpp LINENO
2264 # ----------------------
2265 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_c_try_cpp ()
2267 {
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if { { ac_try="$ac_cpp conftest.$ac_ext"
2270 case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273 esac
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 printf "%s\n" "$ac_try_echo"; } >&5
2276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2277 ac_status=$?
2278 if test -s conftest.err; then
2279 grep -v '^ *+' conftest.err >conftest.er1
2280 cat conftest.er1 >&5
2281 mv -f conftest.er1 conftest.err
2282 fi
2283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2284 test $ac_status = 0; } > conftest.i && {
2285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2286 test ! -s conftest.err
2287 }
2288 then :
2289 ac_retval=0
2290 else case e in #(
2291 e) printf "%s\n" "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294 ac_retval=1 ;;
2295 esac
2296 fi
2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 as_fn_set_status $ac_retval
2299
2300 } # ac_fn_c_try_cpp
2301
2302 # ac_fn_cxx_try_link LINENO
2303 # -------------------------
2304 # Try to link conftest.$ac_ext, and return whether this succeeded.
2305 ac_fn_cxx_try_link ()
2306 {
2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2309 if { { ac_try="$ac_link"
2310 case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313 esac
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 printf "%s\n" "$ac_try_echo"; } >&5
2316 (eval "$ac_link") 2>conftest.err
2317 ac_status=$?
2318 if test -s conftest.err; then
2319 grep -v '^ *+' conftest.err >conftest.er1
2320 cat conftest.er1 >&5
2321 mv -f conftest.er1 conftest.err
2322 fi
2323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324 test $ac_status = 0; } && {
2325 test -z "$ac_cxx_werror_flag" ||
2326 test ! -s conftest.err
2327 } && test -s conftest$ac_exeext && {
2328 test "$cross_compiling" = yes ||
2329 test -x conftest$ac_exeext
2330 }
2331 then :
2332 ac_retval=0
2333 else case e in #(
2334 e) printf "%s\n" "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 ac_retval=1 ;;
2338 esac
2339 fi
2340 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2341 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2342 # interfere with the next link command; also delete a directory that is
2343 # left behind by Apple's compiler. We do this before executing the actions.
2344 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346 as_fn_set_status $ac_retval
2347
2348 } # ac_fn_cxx_try_link
2349
2350 # ac_fn_cxx_try_run LINENO
2351 # ------------------------
2352 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2353 # executables *can* be run.
2354 ac_fn_cxx_try_run ()
2355 {
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 printf "%s\n" "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>&5
2365 ac_status=$?
2366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2368 { { case "(($ac_try" in
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2371 esac
2372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373 printf "%s\n" "$ac_try_echo"; } >&5
2374 (eval "$ac_try") 2>&5
2375 ac_status=$?
2376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377 test $ac_status = 0; }; }
2378 then :
2379 ac_retval=0
2380 else case e in #(
2381 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2382 printf "%s\n" "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_retval=$ac_status ;;
2386 esac
2387 fi
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 as_fn_set_status $ac_retval
2391
2392 } # ac_fn_cxx_try_run
2393 ac_configure_args_raw=
2394 for ac_arg
2395 do
2396 case $ac_arg in
2397 *\'*)
2398 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 esac
2400 as_fn_append ac_configure_args_raw " '$ac_arg'"
2401 done
2402
2403 case $ac_configure_args_raw in
2404 *$as_nl*)
2405 ac_safe_unquote= ;;
2406 *)
2407 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2408 ac_unsafe_a="$ac_unsafe_z#~"
2409 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2410 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2411 esac
2412
2413 cat >config.log <<_ACEOF
2414 This file contains any messages produced by compilers while
2415 running configure, to aid debugging if configure makes a mistake.
2416
2417 It was created by fldigi $as_me 4.2.12, which was
2418 generated by GNU Autoconf 2.72. Invocation command line was
2419
2420 $ $0$ac_configure_args_raw
2421
2422 _ACEOF
2423 exec 5>>config.log
2424 {
2425 cat <<_ASUNAME
2426 ## --------- ##
2427 ## Platform. ##
2428 ## --------- ##
2429
2430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2435
2436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2438
2439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2446
2447 _ASUNAME
2448
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 case $as_dir in #(((
2454 '') as_dir=./ ;;
2455 */) ;;
2456 *) as_dir=$as_dir/ ;;
2457 esac
2458 printf "%s\n" "PATH: $as_dir"
2459 done
2460 IFS=$as_save_IFS
2461
2462 } >&5
2463
2464 cat >&5 <<_ACEOF
2465
2466
2467 ## ----------- ##
2468 ## Core tests. ##
2469 ## ----------- ##
2470
2471 _ACEOF
2472
2473
2474 # Keep a trace of the command line.
2475 # Strip out --no-create and --no-recursion so they do not pile up.
2476 # Strip out --silent because we don't want to record it for future runs.
2477 # Also quote any args containing shell meta-characters.
2478 # Make two passes to allow for proper duplicate-argument suppression.
2479 ac_configure_args=
2480 ac_configure_args0=
2481 ac_configure_args1=
2482 ac_must_keep_next=false
2483 for ac_pass in 1 2
2484 do
2485 for ac_arg
2486 do
2487 case $ac_arg in
2488 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2490 | -silent | --silent | --silen | --sile | --sil)
2491 continue ;;
2492 *\'*)
2493 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 esac
2495 case $ac_pass in
2496 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2497 2)
2498 as_fn_append ac_configure_args1 " '$ac_arg'"
2499 if test $ac_must_keep_next = true; then
2500 ac_must_keep_next=false # Got value, back to normal.
2501 else
2502 case $ac_arg in
2503 *=* | --config-cache | -C | -disable-* | --disable-* \
2504 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2505 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2506 | -with-* | --with-* | -without-* | --without-* | --x)
2507 case "$ac_configure_args0 " in
2508 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2509 esac
2510 ;;
2511 -* ) ac_must_keep_next=true ;;
2512 esac
2513 fi
2514 as_fn_append ac_configure_args " '$ac_arg'"
2515 ;;
2516 esac
2517 done
2518 done
2519 { ac_configure_args0=; unset ac_configure_args0;}
2520 { ac_configure_args1=; unset ac_configure_args1;}
2521
2522 # When interrupted or exit'd, cleanup temporary files, and complete
2523 # config.log. We remove comments because anyway the quotes in there
2524 # would cause problems or look ugly.
2525 # WARNING: Use '\'' to represent an apostrophe within the trap.
2526 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2527 trap 'exit_status=$?
2528 # Sanitize IFS.
2529 IFS=" "" $as_nl"
2530 # Save into config.log some information that might help in debugging.
2531 {
2532 echo
2533
2534 printf "%s\n" "## ---------------- ##
2535 ## Cache variables. ##
2536 ## ---------------- ##"
2537 echo
2538 # The following way of writing the cache mishandles newlines in values,
2539 (
2540 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2541 eval ac_val=\$$ac_var
2542 case $ac_val in #(
2543 *${as_nl}*)
2544 case $ac_var in #(
2545 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2546 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2547 esac
2548 case $ac_var in #(
2549 _ | IFS | as_nl) ;; #(
2550 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2551 *) { eval $ac_var=; unset $ac_var;} ;;
2552 esac ;;
2553 esac
2554 done
2555 (set) 2>&1 |
2556 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2557 *${as_nl}ac_space=\ *)
2558 sed -n \
2559 "s/'\''/'\''\\\\'\'''\''/g;
2560 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2561 ;; #(
2562 *)
2563 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2564 ;;
2565 esac |
2566 sort
2567 )
2568 echo
2569
2570 printf "%s\n" "## ----------------- ##
2571 ## Output variables. ##
2572 ## ----------------- ##"
2573 echo
2574 for ac_var in $ac_subst_vars
2575 do
2576 eval ac_val=\$$ac_var
2577 case $ac_val in
2578 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 esac
2580 printf "%s\n" "$ac_var='\''$ac_val'\''"
2581 done | sort
2582 echo
2583
2584 if test -n "$ac_subst_files"; then
2585 printf "%s\n" "## ------------------- ##
2586 ## File substitutions. ##
2587 ## ------------------- ##"
2588 echo
2589 for ac_var in $ac_subst_files
2590 do
2591 eval ac_val=\$$ac_var
2592 case $ac_val in
2593 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 esac
2595 printf "%s\n" "$ac_var='\''$ac_val'\''"
2596 done | sort
2597 echo
2598 fi
2599
2600 if test -s confdefs.h; then
2601 printf "%s\n" "## ----------- ##
2602 ## confdefs.h. ##
2603 ## ----------- ##"
2604 echo
2605 cat confdefs.h
2606 echo
2607 fi
2608 test "$ac_signal" != 0 &&
2609 printf "%s\n" "$as_me: caught signal $ac_signal"
2610 printf "%s\n" "$as_me: exit $exit_status"
2611 } >&5
2612 rm -f core *.core core.conftest.* &&
2613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2614 exit $exit_status
2615 ' 0
2616 for ac_signal in 1 2 13 15; do
2617 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2618 done
2619 ac_signal=0
2620
2621 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2622 rm -f -r conftest* confdefs.h
2623
2624 printf "%s\n" "/* confdefs.h */" > confdefs.h
2625
2626 # Predefined preprocessor variables.
2627
2628 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2629
2630 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2631
2632 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2633
2634 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2635
2636 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2637
2638 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2639
2640
2641 # Let the site file select an alternate cache file if it wants to.
2642 # Prefer an explicitly selected file to automatically selected ones.
2643 if test -n "$CONFIG_SITE"; then
2644 ac_site_files="$CONFIG_SITE"
2645 elif test "x$prefix" != xNONE; then
2646 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2647 else
2648 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2649 fi
2650
2651 for ac_site_file in $ac_site_files
2652 do
2653 case $ac_site_file in #(
2654 */*) :
2655 ;; #(
2656 *) :
2657 ac_site_file=./$ac_site_file ;;
2658 esac
2659 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2661 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2662 sed 's/^/| /' "$ac_site_file" >&5
2663 . "$ac_site_file" \
2664 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2665 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2666 as_fn_error $? "failed to load site script $ac_site_file
2667 See 'config.log' for more details" "$LINENO" 5; }
2668 fi
2669 done
2670
2671 if test -r "$cache_file"; then
2672 # Some versions of bash will fail to source /dev/null (special files
2673 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2674 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2676 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2677 case $cache_file in
2678 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2679 *) . "./$cache_file";;
2680 esac
2681 fi
2682 else
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2684 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2685 >$cache_file
2686 fi
2687
2688 # Test code for whether the C++ compiler supports C++98 (global declarations)
2689 ac_cxx_conftest_cxx98_globals='
2690 // Does the compiler advertise C++98 conformance?
2691 #if !defined __cplusplus || __cplusplus < 199711L
2692 # error "Compiler does not advertise C++98 conformance"
2693 #endif
2694
2695 // These inclusions are to reject old compilers that
2696 // lack the unsuffixed header files.
2697 #include <cstdlib>
2698 #include <exception>
2699
2700 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2701 extern void assert (int);
2702 namespace std {
2703 extern int strcmp (const char *, const char *);
2704 }
2705
2706 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2707 using std::exception;
2708 using std::strcmp;
2709
2710 namespace {
2711
2712 void test_exception_syntax()
2713 {
2714 try {
2715 throw "test";
2716 } catch (const char *s) {
2717 // Extra parentheses suppress a warning when building autoconf itself,
2718 // due to lint rules shared with more typical C programs.
2719 assert (!(strcmp) (s, "test"));
2720 }
2721 }
2722
2723 template <typename T> struct test_template
2724 {
2725 T const val;
2726 explicit test_template(T t) : val(t) {}
2727 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2728 };
2729
2730 } // anonymous namespace
2731 '
2732
2733 # Test code for whether the C++ compiler supports C++98 (body of main)
2734 ac_cxx_conftest_cxx98_main='
2735 assert (argc);
2736 assert (! argv[0]);
2737 {
2738 test_exception_syntax ();
2739 test_template<double> tt (2.0);
2740 assert (tt.add (4) == 6.0);
2741 assert (true && !false);
2742 }
2743 '
2744
2745 # Test code for whether the C++ compiler supports C++11 (global declarations)
2746 ac_cxx_conftest_cxx11_globals='
2747 // Does the compiler advertise C++ 2011 conformance?
2748 #if !defined __cplusplus || __cplusplus < 201103L
2749 # error "Compiler does not advertise C++11 conformance"
2750 #endif
2751
2752 namespace cxx11test
2753 {
2754 constexpr int get_val() { return 20; }
2755
2756 struct testinit
2757 {
2758 int i;
2759 double d;
2760 };
2761
2762 class delegate
2763 {
2764 public:
2765 delegate(int n) : n(n) {}
2766 delegate(): delegate(2354) {}
2767
2768 virtual int getval() { return this->n; };
2769 protected:
2770 int n;
2771 };
2772
2773 class overridden : public delegate
2774 {
2775 public:
2776 overridden(int n): delegate(n) {}
2777 virtual int getval() override final { return this->n * 2; }
2778 };
2779
2780 class nocopy
2781 {
2782 public:
2783 nocopy(int i): i(i) {}
2784 nocopy() = default;
2785 nocopy(const nocopy&) = delete;
2786 nocopy & operator=(const nocopy&) = delete;
2787 private:
2788 int i;
2789 };
2790
2791 // for testing lambda expressions
2792 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2793 {
2794 return f(v);
2795 }
2796
2797 // for testing variadic templates and trailing return types
2798 template <typename V> auto sum(V first) -> V
2799 {
2800 return first;
2801 }
2802 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2803 {
2804 return first + sum(rest...);
2805 }
2806 }
2807 '
2808
2809 # Test code for whether the C++ compiler supports C++11 (body of main)
2810 ac_cxx_conftest_cxx11_main='
2811 {
2812 // Test auto and decltype
2813 auto a1 = 6538;
2814 auto a2 = 48573953.4;
2815 auto a3 = "String literal";
2816
2817 int total = 0;
2818 for (auto i = a3; *i; ++i) { total += *i; }
2819
2820 decltype(a2) a4 = 34895.034;
2821 }
2822 {
2823 // Test constexpr
2824 short sa[cxx11test::get_val()] = { 0 };
2825 }
2826 {
2827 // Test initializer lists
2828 cxx11test::testinit il = { 4323, 435234.23544 };
2829 }
2830 {
2831 // Test range-based for
2832 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2833 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2834 for (auto &x : array) { x += 23; }
2835 }
2836 {
2837 // Test lambda expressions
2838 using cxx11test::eval;
2839 assert (eval ([](int x) { return x*2; }, 21) == 42);
2840 double d = 2.0;
2841 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2842 assert (d == 5.0);
2843 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2844 assert (d == 5.0);
2845 }
2846 {
2847 // Test use of variadic templates
2848 using cxx11test::sum;
2849 auto a = sum(1);
2850 auto b = sum(1, 2);
2851 auto c = sum(1.0, 2.0, 3.0);
2852 }
2853 {
2854 // Test constructor delegation
2855 cxx11test::delegate d1;
2856 cxx11test::delegate d2();
2857 cxx11test::delegate d3(45);
2858 }
2859 {
2860 // Test override and final
2861 cxx11test::overridden o1(55464);
2862 }
2863 {
2864 // Test nullptr
2865 char *c = nullptr;
2866 }
2867 {
2868 // Test template brackets
2869 test_template<::test_template<int>> v(test_template<int>(12));
2870 }
2871 {
2872 // Unicode literals
2873 char const *utf8 = u8"UTF-8 string \u2500";
2874 char16_t const *utf16 = u"UTF-8 string \u2500";
2875 char32_t const *utf32 = U"UTF-32 string \u2500";
2876 }
2877 '
2878
2879 # Test code for whether the C compiler supports C++11 (complete).
2880 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2881 ${ac_cxx_conftest_cxx11_globals}
2882
2883 int
2884 main (int argc, char **argv)
2885 {
2886 int ok = 0;
2887 ${ac_cxx_conftest_cxx98_main}
2888 ${ac_cxx_conftest_cxx11_main}
2889 return ok;
2890 }
2891 "
2892
2893 # Test code for whether the C compiler supports C++98 (complete).
2894 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2895 int
2896 main (int argc, char **argv)
2897 {
2898 int ok = 0;
2899 ${ac_cxx_conftest_cxx98_main}
2900 return ok;
2901 }
2902 "
2903
2904 # Test code for whether the C compiler supports C89 (global declarations)
2905 ac_c_conftest_c89_globals='
2906 /* Does the compiler advertise C89 conformance?
2907 Do not test the value of __STDC__, because some compilers set it to 0
2908 while being otherwise adequately conformant. */
2909 #if !defined __STDC__
2910 # error "Compiler does not advertise C89 conformance"
2911 #endif
2912
2913 #include <stddef.h>
2914 #include <stdarg.h>
2915 struct stat;
2916 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2917 struct buf { int x; };
2918 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2919 static char *e (char **p, int i)
2920 {
2921 return p[i];
2922 }
2923 static char *f (char * (*g) (char **, int), char **p, ...)
2924 {
2925 char *s;
2926 va_list v;
2927 va_start (v,p);
2928 s = g (p, va_arg (v,int));
2929 va_end (v);
2930 return s;
2931 }
2932
2933 /* C89 style stringification. */
2934 #define noexpand_stringify(a) #a
2935 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2936
2937 /* C89 style token pasting. Exercises some of the corner cases that
2938 e.g. old MSVC gets wrong, but not very hard. */
2939 #define noexpand_concat(a,b) a##b
2940 #define expand_concat(a,b) noexpand_concat(a,b)
2941 extern int vA;
2942 extern int vbee;
2943 #define aye A
2944 #define bee B
2945 int *pvA = &expand_concat(v,aye);
2946 int *pvbee = &noexpand_concat(v,bee);
2947
2948 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2949 function prototypes and stuff, but not \xHH hex character constants.
2950 These do not provoke an error unfortunately, instead are silently treated
2951 as an "x". The following induces an error, until -std is added to get
2952 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2953 array size at least. It is necessary to write \x00 == 0 to get something
2954 that is true only with -std. */
2955 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2956
2957 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2958 inside strings and character constants. */
2959 #define FOO(x) '\''x'\''
2960 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2961
2962 int test (int i, double x);
2963 struct s1 {int (*f) (int a);};
2964 struct s2 {int (*f) (double a);};
2965 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2966 int, int);'
2967
2968 # Test code for whether the C compiler supports C89 (body of main).
2969 ac_c_conftest_c89_main='
2970 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2971 '
2972
2973 # Test code for whether the C compiler supports C99 (global declarations)
2974 ac_c_conftest_c99_globals='
2975 /* Does the compiler advertise C99 conformance? */
2976 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2977 # error "Compiler does not advertise C99 conformance"
2978 #endif
2979
2980 // See if C++-style comments work.
2981
2982 #include <stdbool.h>
2983 extern int puts (const char *);
2984 extern int printf (const char *, ...);
2985 extern int dprintf (int, const char *, ...);
2986 extern void *malloc (size_t);
2987 extern void free (void *);
2988
2989 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2990 // dprintf is used instead of fprintf to avoid needing to declare
2991 // FILE and stderr.
2992 #define debug(...) dprintf (2, __VA_ARGS__)
2993 #define showlist(...) puts (#__VA_ARGS__)
2994 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2995 static void
2996 test_varargs_macros (void)
2997 {
2998 int x = 1234;
2999 int y = 5678;
3000 debug ("Flag");
3001 debug ("X = %d\n", x);
3002 showlist (The first, second, and third items.);
3003 report (x>y, "x is %d but y is %d", x, y);
3004 }
3005
3006 // Check long long types.
3007 #define BIG64 18446744073709551615ull
3008 #define BIG32 4294967295ul
3009 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3010 #if !BIG_OK
3011 #error "your preprocessor is broken"
3012 #endif
3013 #if BIG_OK
3014 #else
3015 #error "your preprocessor is broken"
3016 #endif
3017 static long long int bignum = -9223372036854775807LL;
3018 static unsigned long long int ubignum = BIG64;
3019
3020 struct incomplete_array
3021 {
3022 int datasize;
3023 double data[];
3024 };
3025
3026 struct named_init {
3027 int number;
3028 const wchar_t *name;
3029 double average;
3030 };
3031
3032 typedef const char *ccp;
3033
3034 static inline int
3035 test_restrict (ccp restrict text)
3036 {
3037 // Iterate through items via the restricted pointer.
3038 // Also check for declarations in for loops.
3039 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3040 continue;
3041 return 0;
3042 }
3043
3044 // Check varargs and va_copy.
3045 static bool
3046 test_varargs (const char *format, ...)
3047 {
3048 va_list args;
3049 va_start (args, format);
3050 va_list args_copy;
3051 va_copy (args_copy, args);
3052
3053 const char *str = "";
3054 int number = 0;
3055 float fnumber = 0;
3056
3057 while (*format)
3058 {
3059 switch (*format++)
3060 {
3061 case '\''s'\'': // string
3062 str = va_arg (args_copy, const char *);
3063 break;
3064 case '\''d'\'': // int
3065 number = va_arg (args_copy, int);
3066 break;
3067 case '\''f'\'': // float
3068 fnumber = va_arg (args_copy, double);
3069 break;
3070 default:
3071 break;
3072 }
3073 }
3074 va_end (args_copy);
3075 va_end (args);
3076
3077 return *str && number && fnumber;
3078 }
3079 '
3080
3081 # Test code for whether the C compiler supports C99 (body of main).
3082 ac_c_conftest_c99_main='
3083 // Check bool.
3084 _Bool success = false;
3085 success |= (argc != 0);
3086
3087 // Check restrict.
3088 if (test_restrict ("String literal") == 0)
3089 success = true;
3090 char *restrict newvar = "Another string";
3091
3092 // Check varargs.
3093 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3094 test_varargs_macros ();
3095
3096 // Check flexible array members.
3097 struct incomplete_array *ia =
3098 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3099 ia->datasize = 10;
3100 for (int i = 0; i < ia->datasize; ++i)
3101 ia->data[i] = i * 1.234;
3102 // Work around memory leak warnings.
3103 free (ia);
3104
3105 // Check named initializers.
3106 struct named_init ni = {
3107 .number = 34,
3108 .name = L"Test wide string",
3109 .average = 543.34343,
3110 };
3111
3112 ni.number = 58;
3113
3114 int dynamic_array[ni.number];
3115 dynamic_array[0] = argv[0][0];
3116 dynamic_array[ni.number - 1] = 543;
3117
3118 // work around unused variable warnings
3119 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3120 || dynamic_array[ni.number - 1] != 543);
3121 '
3122
3123 # Test code for whether the C compiler supports C11 (global declarations)
3124 ac_c_conftest_c11_globals='
3125 /* Does the compiler advertise C11 conformance? */
3126 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3127 # error "Compiler does not advertise C11 conformance"
3128 #endif
3129
3130 // Check _Alignas.
3131 char _Alignas (double) aligned_as_double;
3132 char _Alignas (0) no_special_alignment;
3133 extern char aligned_as_int;
3134 char _Alignas (0) _Alignas (int) aligned_as_int;
3135
3136 // Check _Alignof.
3137 enum
3138 {
3139 int_alignment = _Alignof (int),
3140 int_array_alignment = _Alignof (int[100]),
3141 char_alignment = _Alignof (char)
3142 };
3143 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3144
3145 // Check _Noreturn.
3146 int _Noreturn does_not_return (void) { for (;;) continue; }
3147
3148 // Check _Static_assert.
3149 struct test_static_assert
3150 {
3151 int x;
3152 _Static_assert (sizeof (int) <= sizeof (long int),
3153 "_Static_assert does not work in struct");
3154 long int y;
3155 };
3156
3157 // Check UTF-8 literals.
3158 #define u8 syntax error!
3159 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3160
3161 // Check duplicate typedefs.
3162 typedef long *long_ptr;
3163 typedef long int *long_ptr;
3164 typedef long_ptr long_ptr;
3165
3166 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3167 struct anonymous
3168 {
3169 union {
3170 struct { int i; int j; };
3171 struct { int k; long int l; } w;
3172 };
3173 int m;
3174 } v1;
3175 '
3176
3177 # Test code for whether the C compiler supports C11 (body of main).
3178 ac_c_conftest_c11_main='
3179 _Static_assert ((offsetof (struct anonymous, i)
3180 == offsetof (struct anonymous, w.k)),
3181 "Anonymous union alignment botch");
3182 v1.i = 2;
3183 v1.w.k = 5;
3184 ok |= v1.i != 5;
3185 '
3186
3187 # Test code for whether the C compiler supports C11 (complete).
3188 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3189 ${ac_c_conftest_c99_globals}
3190 ${ac_c_conftest_c11_globals}
3191
3192 int
3193 main (int argc, char **argv)
3194 {
3195 int ok = 0;
3196 ${ac_c_conftest_c89_main}
3197 ${ac_c_conftest_c99_main}
3198 ${ac_c_conftest_c11_main}
3199 return ok;
3200 }
3201 "
3202
3203 # Test code for whether the C compiler supports C99 (complete).
3204 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3205 ${ac_c_conftest_c99_globals}
3206
3207 int
3208 main (int argc, char **argv)
3209 {
3210 int ok = 0;
3211 ${ac_c_conftest_c89_main}
3212 ${ac_c_conftest_c99_main}
3213 return ok;
3214 }
3215 "
3216
3217 # Test code for whether the C compiler supports C89 (complete).
3218 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3219
3220 int
3221 main (int argc, char **argv)
3222 {
3223 int ok = 0;
3224 ${ac_c_conftest_c89_main}
3225 return ok;
3226 }
3227 "
3228
3229 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3230 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3231 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3232 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3233 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3234 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3235 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3236 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3237 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3238 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3239 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3240 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
3241 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3242 gt_needs="$gt_needs "
3243
3244 # Auxiliary files required by this configure script.
3245 ac_aux_files="config.rpath compile missing install-sh config.guess config.sub"
3246
3247 # Locations in which to look for auxiliary files.
3248 ac_aux_dir_candidates="${srcdir}/build-aux"
3249
3250 # Search for a directory containing all of the required auxiliary files,
3251 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3252 # If we don't find one directory that contains all the files we need,
3253 # we report the set of missing files from the *first* directory in
3254 # $ac_aux_dir_candidates and give up.
3255 ac_missing_aux_files=""
3256 ac_first_candidate=:
3257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 as_found=false
3260 for as_dir in $ac_aux_dir_candidates
3261 do
3262 IFS=$as_save_IFS
3263 case $as_dir in #(((
3264 '') as_dir=./ ;;
3265 */) ;;
3266 *) as_dir=$as_dir/ ;;
3267 esac
3268 as_found=:
3269
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3271 ac_aux_dir_found=yes
3272 ac_install_sh=
3273 for ac_aux in $ac_aux_files
3274 do
3275 # As a special case, if "install-sh" is required, that requirement
3276 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3277 # and $ac_install_sh is set appropriately for whichever one is found.
3278 if test x"$ac_aux" = x"install-sh"
3279 then
3280 if test -f "${as_dir}install-sh"; then
3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3282 ac_install_sh="${as_dir}install-sh -c"
3283 elif test -f "${as_dir}install.sh"; then
3284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3285 ac_install_sh="${as_dir}install.sh -c"
3286 elif test -f "${as_dir}shtool"; then
3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3288 ac_install_sh="${as_dir}shtool install -c"
3289 else
3290 ac_aux_dir_found=no
3291 if $ac_first_candidate; then
3292 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3293 else
3294 break
3295 fi
3296 fi
3297 else
3298 if test -f "${as_dir}${ac_aux}"; then
3299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3300 else
3301 ac_aux_dir_found=no
3302 if $ac_first_candidate; then
3303 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3304 else
3305 break
3306 fi
3307 fi
3308 fi
3309 done
3310 if test "$ac_aux_dir_found" = yes; then
3311 ac_aux_dir="$as_dir"
3312 break
3313 fi
3314 ac_first_candidate=false
3315
3316 as_found=false
3317 done
3318 IFS=$as_save_IFS
3319 if $as_found
3320 then :
3321
3322 else case e in #(
3323 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3324 esac
3325 fi
3326
3327
3328 # These three variables are undocumented and unsupported,
3329 # and are intended to be withdrawn in a future Autoconf release.
3330 # They can cause serious problems if a builder's source tree is in a directory
3331 # whose full name contains unusual characters.
3332 if test -f "${ac_aux_dir}config.guess"; then
3333 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3334 fi
3335 if test -f "${ac_aux_dir}config.sub"; then
3336 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3337 fi
3338 if test -f "$ac_aux_dir/configure"; then
3339 ac_configure="$SHELL ${ac_aux_dir}configure"
3340 fi
3341
3342 # Check that the precious variables saved in the cache have kept the same
3343 # value.
3344 ac_cache_corrupted=false
3345 for ac_var in $ac_precious_vars; do
3346 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3347 eval ac_new_set=\$ac_env_${ac_var}_set
3348 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3349 eval ac_new_val=\$ac_env_${ac_var}_value
3350 case $ac_old_set,$ac_new_set in
3351 set,)
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3353 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3354 ac_cache_corrupted=: ;;
3355 ,set)
3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3357 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3358 ac_cache_corrupted=: ;;
3359 ,);;
3360 *)
3361 if test "x$ac_old_val" != "x$ac_new_val"; then
3362 # differences in whitespace do not lead to failure.
3363 ac_old_val_w=`echo x $ac_old_val`
3364 ac_new_val_w=`echo x $ac_new_val`
3365 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3367 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3368 ac_cache_corrupted=:
3369 else
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3371 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3372 eval $ac_var=\$ac_old_val
3373 fi
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3375 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3377 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3378 fi;;
3379 esac
3380 # Pass precious variables to config.status.
3381 if test "$ac_new_set" = set; then
3382 case $ac_new_val in
3383 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3384 *) ac_arg=$ac_var=$ac_new_val ;;
3385 esac
3386 case " $ac_configure_args " in
3387 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3388 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3389 esac
3390 fi
3391 done
3392 if $ac_cache_corrupted; then
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3394 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3396 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3397 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3398 and start over" "$LINENO" 5
3399 fi
3400 ## -------------------- ##
3401 ## Main body of script. ##
3402 ## -------------------- ##
3403
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
3411
3412 # substitute in Makefiles
3413 FLDIGI_VERSION_MAJOR=4
3414
3415 FLDIGI_VERSION_MINOR=2
3416
3417 FLDIGI_VERSION_PATCH=.12
3418
3419 FLDIGI_VERSION=4.2.12
3420
3421 FLARQ_VERSION_MAJOR=4
3422
3423 FLARQ_VERSION_MINOR=3
3424
3425 FLARQ_VERSION_PATCH=.9
3426
3427 FLARQ_VERSION=4.3.9
3428
3429 # define in config.h
3430
3431 printf "%s\n" "#define FLDIGI_VERSION_MAJOR 4" >>confdefs.h
3432
3433
3434 printf "%s\n" "#define FLDIGI_VERSION_MINOR 2" >>confdefs.h
3435
3436
3437 printf "%s\n" "#define FLDIGI_VERSION_PATCH \".12\"" >>confdefs.h
3438
3439
3440 printf "%s\n" "#define FLARQ_VERSION_MAJOR 4" >>confdefs.h
3441
3442
3443 printf "%s\n" "#define FLARQ_VERSION_MINOR 3" >>confdefs.h
3444
3445
3446 printf "%s\n" "#define FLARQ_VERSION_PATCH \".9\"" >>confdefs.h
3447
3448
3449 printf "%s\n" "#define FLDIGI_VERSION \"4.2.12\"" >>confdefs.h
3450
3451
3452 printf "%s\n" "#define FLARQ_VERSION \"4.3.9\"" >>confdefs.h
3453
3454
3455 AC_CONFIG_ARGS=$ac_configure_args
3456
3457
3458
3459
3460 # define build, build_cpu, build_vendor, build_os
3461
3462
3463
3464 # Make sure we can run config.sub.
3465 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3466 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3467
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3469 printf %s "checking build system type... " >&6; }
3470 if test ${ac_cv_build+y}
3471 then :
3472 printf %s "(cached) " >&6
3473 else case e in #(
3474 e) ac_build_alias=$build_alias
3475 test "x$ac_build_alias" = x &&
3476 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3477 test "x$ac_build_alias" = x &&
3478 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3479 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3480 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3481 ;;
3482 esac
3483 fi
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3485 printf "%s\n" "$ac_cv_build" >&6; }
3486 case $ac_cv_build in
3487 *-*-*) ;;
3488 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3489 esac
3490 build=$ac_cv_build
3491 ac_save_IFS=$IFS; IFS='-'
3492 set x $ac_cv_build
3493 shift
3494 build_cpu=$1
3495 build_vendor=$2
3496 shift; shift
3497 # Remember, the first character of IFS is used to create $*,
3498 # except with old shells:
3499 build_os=$*
3500 IFS=$ac_save_IFS
3501 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3502
3503
3504 # define host, host_cpu, host_vendor, host_os
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3506 printf %s "checking host system type... " >&6; }
3507 if test ${ac_cv_host+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else case e in #(
3511 e) if test "x$host_alias" = x; then
3512 ac_cv_host=$ac_cv_build
3513 else
3514 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3515 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3516 fi
3517 ;;
3518 esac
3519 fi
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3521 printf "%s\n" "$ac_cv_host" >&6; }
3522 case $ac_cv_host in
3523 *-*-*) ;;
3524 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3525 esac
3526 host=$ac_cv_host
3527 ac_save_IFS=$IFS; IFS='-'
3528 set x $ac_cv_host
3529 shift
3530 host_cpu=$1
3531 host_vendor=$2
3532 shift; shift
3533 # Remember, the first character of IFS is used to create $*,
3534 # except with old shells:
3535 host_os=$*
3536 IFS=$ac_save_IFS
3537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3538
3539
3540 # define target, target_cpu, target_vendor, target_os
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3542 printf %s "checking target system type... " >&6; }
3543 if test ${ac_cv_target+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else case e in #(
3547 e) if test "x$target_alias" = x; then
3548 ac_cv_target=$ac_cv_host
3549 else
3550 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3551 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
3552 fi
3553 ;;
3554 esac
3555 fi
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3557 printf "%s\n" "$ac_cv_target" >&6; }
3558 case $ac_cv_target in
3559 *-*-*) ;;
3560 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3561 esac
3562 target=$ac_cv_target
3563 ac_save_IFS=$IFS; IFS='-'
3564 set x $ac_cv_target
3565 shift
3566 target_cpu=$1
3567 target_vendor=$2
3568 shift; shift
3569 # Remember, the first character of IFS is used to create $*,
3570 # except with old shells:
3571 target_os=$*
3572 IFS=$ac_save_IFS
3573 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3574
3575
3576 # The aliases save the names the user supplied, while $host etc.
3577 # will get canonicalized.
3578 test -n "$target_alias" &&
3579 test "$program_prefix$program_suffix$program_transform_name" = \
3580 NONENONEs,x,x, &&
3581 program_prefix=${target_alias}-
3582
3583 am__api_version='1.18'
3584
3585
3586 # Find a good install program. We prefer a C program (faster),
3587 # so one script is as good as another. But avoid the broken or
3588 # incompatible versions:
3589 # SysV /etc/install, /usr/sbin/install
3590 # SunOS /usr/etc/install
3591 # IRIX /sbin/install
3592 # AIX /bin/install
3593 # AmigaOS /C/install, which installs bootblocks on floppy discs
3594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3597 # OS/2's system install, which has a completely different semantic
3598 # ./install, which can be erroneously created by make from ./install.sh.
3599 # Reject install programs that cannot install multiple files.
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3601 printf %s "checking for a BSD-compatible install... " >&6; }
3602 if test -z "$INSTALL"; then
3603 if test ${ac_cv_path_install+y}
3604 then :
3605 printf %s "(cached) " >&6
3606 else case e in #(
3607 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610 IFS=$as_save_IFS
3611 case $as_dir in #(((
3612 '') as_dir=./ ;;
3613 */) ;;
3614 *) as_dir=$as_dir/ ;;
3615 esac
3616 # Account for fact that we put trailing slashes in our PATH walk.
3617 case $as_dir in #((
3618 ./ | /[cC]/* | \
3619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3620 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3621 /usr/ucb/* ) ;;
3622 *)
3623 # OSF1 and SCO ODT 3.0 have their own names for install.
3624 # Don't use installbsd from OSF since it installs stuff as root
3625 # by default.
3626 for ac_prog in ginstall scoinst install; do
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3629 if test $ac_prog = install &&
3630 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3631 # AIX install. It has an incompatible calling convention.
3632 :
3633 elif test $ac_prog = install &&
3634 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3635 # program-specific install script used by HP pwplus--don't use.
3636 :
3637 else
3638 rm -rf conftest.one conftest.two conftest.dir
3639 echo one > conftest.one
3640 echo two > conftest.two
3641 mkdir conftest.dir
3642 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3643 test -s conftest.one && test -s conftest.two &&
3644 test -s conftest.dir/conftest.one &&
3645 test -s conftest.dir/conftest.two
3646 then
3647 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3648 break 3
3649 fi
3650 fi
3651 fi
3652 done
3653 done
3654 ;;
3655 esac
3656
3657 done
3658 IFS=$as_save_IFS
3659
3660 rm -rf conftest.one conftest.two conftest.dir
3661 ;;
3662 esac
3663 fi
3664 if test ${ac_cv_path_install+y}; then
3665 INSTALL=$ac_cv_path_install
3666 else
3667 # As a last resort, use the slow shell script. Don't cache a
3668 # value for INSTALL within a source directory, because that will
3669 # break other packages using the cache if that directory is
3670 # removed, or if the value is a relative name.
3671 INSTALL=$ac_install_sh
3672 fi
3673 fi
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3675 printf "%s\n" "$INSTALL" >&6; }
3676
3677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3678 # It thinks the first close brace ends the variable substitution.
3679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3680
3681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3682
3683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3684
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3686 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3687 if test ${am_cv_sleep_fractional_seconds+y}
3688 then :
3689 printf %s "(cached) " >&6
3690 else case e in #(
3691 e) if sleep 0.001 2>/dev/null
3692 then :
3693 am_cv_sleep_fractional_seconds=yes
3694 else case e in #(
3695 e) am_cv_sleep_fractional_seconds=no ;;
3696 esac
3697 fi
3698 ;;
3699 esac
3700 fi
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3702 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3703
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3705 printf %s "checking filesystem timestamp resolution... " >&6; }
3706 if test ${am_cv_filesystem_timestamp_resolution+y}
3707 then :
3708 printf %s "(cached) " >&6
3709 else case e in #(
3710 e) # Default to the worst case.
3711 am_cv_filesystem_timestamp_resolution=2
3712
3713 # Only try to go finer than 1 sec if sleep can do it.
3714 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3715 # - 1 sec is not much of a win compared to 2 sec, and
3716 # - it takes 2 seconds to perform the test whether 1 sec works.
3717 #
3718 # Instead, just use the default 2s on platforms that have 1s resolution,
3719 # accept the extra 1s delay when using $sleep in the Automake tests, in
3720 # exchange for not incurring the 2s delay for running the test for all
3721 # packages.
3722 #
3723 am_try_resolutions=
3724 if test "$am_cv_sleep_fractional_seconds" = yes; then
3725 # Even a millisecond often causes a bunch of false positives,
3726 # so just try a hundredth of a second. The time saved between .001 and
3727 # .01 is not terribly consequential.
3728 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3729 fi
3730
3731 # In order to catch current-generation FAT out, we must *modify* files
3732 # that already exist; the *creation* timestamp is finer. Use names
3733 # that make ls -t sort them differently when they have equal
3734 # timestamps than when they have distinct timestamps, keeping
3735 # in mind that ls -t prints the *newest* file first.
3736 rm -f conftest.ts?
3737 : > conftest.ts1
3738 : > conftest.ts2
3739 : > conftest.ts3
3740
3741 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3742 # clobber the current shell's arguments. (Outer-level square brackets
3743 # are removed by m4; they're present so that m4 does not expand
3744 # <dollar><star>; be careful, easy to get confused.)
3745 if (
3746 set X `ls -t conftest.ts[12]` &&
3747 {
3748 test "$*" != "X conftest.ts1 conftest.ts2" ||
3749 test "$*" != "X conftest.ts2 conftest.ts1";
3750 }
3751 ); then :; else
3752 # If neither matched, then we have a broken ls. This can happen
3753 # if, for instance, CONFIG_SHELL is bash and it inherits a
3754 # broken ls alias from the environment. This has actually
3755 # happened. Such a system could not be considered "sane".
3756 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3758 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3759 as_fn_error $? "ls -t produces unexpected output.
3760 Make sure there is not a broken ls alias in your environment.
3761 See 'config.log' for more details" "$LINENO" 5; }
3762 fi
3763
3764 for am_try_res in $am_try_resolutions; do
3765 # Any one fine-grained sleep might happen to cross the boundary
3766 # between two values of a coarser actual resolution, but if we do
3767 # two fine-grained sleeps in a row, at least one of them will fall
3768 # entirely within a coarse interval.
3769 echo alpha > conftest.ts1
3770 sleep $am_try_res
3771 echo beta > conftest.ts2
3772 sleep $am_try_res
3773 echo gamma > conftest.ts3
3774
3775 # We assume that 'ls -t' will make use of high-resolution
3776 # timestamps if the operating system supports them at all.
3777 if (set X `ls -t conftest.ts?` &&
3778 test "$2" = conftest.ts3 &&
3779 test "$3" = conftest.ts2 &&
3780 test "$4" = conftest.ts1); then
3781 #
3782 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3783 # because we don't need to test make.
3784 make_ok=true
3785 if test $am_try_res != 1; then
3786 # But if we've succeeded so far with a subsecond resolution, we
3787 # have one more thing to check: make. It can happen that
3788 # everything else supports the subsecond mtimes, but make doesn't;
3789 # notably on macOS, which ships make 3.81 from 2006 (the last one
3790 # released under GPLv2). https://bugs.gnu.org/68808
3791 #
3792 # We test $MAKE if it is defined in the environment, else "make".
3793 # It might get overridden later, but our hope is that in practice
3794 # it does not matter: it is the system "make" which is (by far)
3795 # the most likely to be broken, whereas if the user overrides it,
3796 # probably they did so with a better, or at least not worse, make.
3797 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3798 #
3799 # Create a Makefile (real tab character here):
3800 rm -f conftest.mk
3801 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3802 echo ' touch conftest.ts2' >>conftest.mk
3803 #
3804 # Now, running
3805 # touch conftest.ts1; touch conftest.ts2; make
3806 # should touch ts1 because ts2 is newer. This could happen by luck,
3807 # but most often, it will fail if make's support is insufficient. So
3808 # test for several consecutive successes.
3809 #
3810 # (We reuse conftest.ts[12] because we still want to modify existing
3811 # files, not create new ones, per above.)
3812 n=0
3813 make=${MAKE-make}
3814 until test $n -eq 3; do
3815 echo one > conftest.ts1
3816 sleep $am_try_res
3817 echo two > conftest.ts2 # ts2 should now be newer than ts1
3818 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3819 make_ok=false
3820 break # out of $n loop
3821 fi
3822 n=`expr $n + 1`
3823 done
3824 fi
3825 #
3826 if $make_ok; then
3827 # Everything we know to check worked out, so call this resolution good.
3828 am_cv_filesystem_timestamp_resolution=$am_try_res
3829 break # out of $am_try_res loop
3830 fi
3831 # Otherwise, we'll go on to check the next resolution.
3832 fi
3833 done
3834 rm -f conftest.ts?
3835 # (end _am_filesystem_timestamp_resolution)
3836 ;;
3837 esac
3838 fi
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3840 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3841
3842 # This check should not be cached, as it may vary across builds of
3843 # different projects.
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3845 printf %s "checking whether build environment is sane... " >&6; }
3846 # Reject unsafe characters in $srcdir or the absolute working directory
3847 # name. Accept space and tab only in the latter.
3848 am_lf='
3849 '
3850 case `pwd` in
3851 *[\\\"\#\$\&\'\`$am_lf]*)
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 printf "%s\n" "no" >&6; }
3854 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3855 esac
3856 case $srcdir in
3857 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 printf "%s\n" "no" >&6; }
3860 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3861 esac
3862
3863 # Do 'set' in a subshell so we don't clobber the current shell's
3864 # arguments. Must try -L first in case configure is actually a
3865 # symlink; some systems play weird games with the mod time of symlinks
3866 # (eg FreeBSD returns the mod time of the symlink's containing
3867 # directory).
3868 am_build_env_is_sane=no
3869 am_has_slept=no
3870 rm -f conftest.file
3871 for am_try in 1 2; do
3872 echo "timestamp, slept: $am_has_slept" > conftest.file
3873 if (
3874 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3875 if test "$*" = "X"; then
3876 # -L didn't work.
3877 set X `ls -t "$srcdir/configure" conftest.file`
3878 fi
3879 test "$2" = conftest.file
3880 ); then
3881 am_build_env_is_sane=yes
3882 break
3883 fi
3884 # Just in case.
3885 sleep "$am_cv_filesystem_timestamp_resolution"
3886 am_has_slept=yes
3887 done
3888
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3890 printf "%s\n" "$am_build_env_is_sane" >&6; }
3891 if test "$am_build_env_is_sane" = no; then
3892 as_fn_error $? "newly created file is older than distributed files!
3893 Check your system clock" "$LINENO" 5
3894 fi
3895
3896 # If we didn't sleep, we still need to ensure time stamps of config.status and
3897 # generated files are strictly newer.
3898 am_sleep_pid=
3899 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3900 then :
3901
3902 else case e in #(
3903 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3904 am_sleep_pid=$!
3905 ;;
3906 esac
3907 fi
3908
3909 rm -f conftest.file
3910
3911 test "$program_prefix" != NONE &&
3912 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3913 # Use a double $ so make ignores it.
3914 test "$program_suffix" != NONE &&
3915 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3916 # Double any \ or $.
3917 # By default was 's,x,x', remove it if useless.
3918 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3919 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3920
3921
3922 # Expand $ac_aux_dir to an absolute path.
3923 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3924
3925
3926 if test x"${MISSING+set}" != xset; then
3927 MISSING="\${SHELL} '$am_aux_dir/missing'"
3928 fi
3929 # Use eval to expand $SHELL
3930 if eval "$MISSING --is-lightweight"; then
3931 am_missing_run="$MISSING "
3932 else
3933 am_missing_run=
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3935 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3936 fi
3937
3938 if test x"${install_sh+set}" != xset; then
3939 case $am_aux_dir in
3940 *\ * | *\ *)
3941 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3942 *)
3943 install_sh="\${SHELL} $am_aux_dir/install-sh"
3944 esac
3945 fi
3946
3947 # Installed binaries are usually stripped using 'strip' when the user
3948 # run "make install-strip". However 'strip' might not be the right
3949 # tool to use in cross-compilation environments, therefore Automake
3950 # will honor the 'STRIP' environment variable to overrule this program.
3951 if test "$cross_compiling" != no; then
3952 if test -n "$ac_tool_prefix"; then
3953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3954 set dummy ${ac_tool_prefix}strip; ac_word=$2
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 printf %s "checking for $ac_word... " >&6; }
3957 if test ${ac_cv_prog_STRIP+y}
3958 then :
3959 printf %s "(cached) " >&6
3960 else case e in #(
3961 e) if test -n "$STRIP"; then
3962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967 IFS=$as_save_IFS
3968 case $as_dir in #(((
3969 '') as_dir=./ ;;
3970 */) ;;
3971 *) as_dir=$as_dir/ ;;
3972 esac
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979 done
3980 done
3981 IFS=$as_save_IFS
3982
3983 fi ;;
3984 esac
3985 fi
3986 STRIP=$ac_cv_prog_STRIP
3987 if test -n "$STRIP"; then
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3989 printf "%s\n" "$STRIP" >&6; }
3990 else
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 printf "%s\n" "no" >&6; }
3993 fi
3994
3995
3996 fi
3997 if test -z "$ac_cv_prog_STRIP"; then
3998 ac_ct_STRIP=$STRIP
3999 # Extract the first word of "strip", so it can be a program name with args.
4000 set dummy strip; ac_word=$2
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 printf %s "checking for $ac_word... " >&6; }
4003 if test ${ac_cv_prog_ac_ct_STRIP+y}
4004 then :
4005 printf %s "(cached) " >&6
4006 else case e in #(
4007 e) if test -n "$ac_ct_STRIP"; then
4008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013 IFS=$as_save_IFS
4014 case $as_dir in #(((
4015 '') as_dir=./ ;;
4016 */) ;;
4017 *) as_dir=$as_dir/ ;;
4018 esac
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_STRIP="strip"
4022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi ;;
4030 esac
4031 fi
4032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4033 if test -n "$ac_ct_STRIP"; then
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4035 printf "%s\n" "$ac_ct_STRIP" >&6; }
4036 else
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 printf "%s\n" "no" >&6; }
4039 fi
4040
4041 if test "x$ac_ct_STRIP" = x; then
4042 STRIP=":"
4043 else
4044 case $cross_compiling:$ac_tool_warned in
4045 yes:)
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4047 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4048 ac_tool_warned=yes ;;
4049 esac
4050 STRIP=$ac_ct_STRIP
4051 fi
4052 else
4053 STRIP="$ac_cv_prog_STRIP"
4054 fi
4055
4056 fi
4057 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4058
4059
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4061 printf %s "checking for a race-free mkdir -p... " >&6; }
4062 if test -z "$MKDIR_P"; then
4063 if test ${ac_cv_path_mkdir+y}
4064 then :
4065 printf %s "(cached) " >&6
4066 else case e in #(
4067 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4069 do
4070 IFS=$as_save_IFS
4071 case $as_dir in #(((
4072 '') as_dir=./ ;;
4073 */) ;;
4074 *) as_dir=$as_dir/ ;;
4075 esac
4076 for ac_prog in mkdir gmkdir; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4079 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4080 'mkdir ('*'coreutils) '* | \
4081 *'BusyBox '* | \
4082 'mkdir (fileutils) '4.1*)
4083 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4084 break 3;;
4085 esac
4086 done
4087 done
4088 done
4089 IFS=$as_save_IFS
4090 ;;
4091 esac
4092 fi
4093
4094 test -d ./--version && rmdir ./--version
4095 if test ${ac_cv_path_mkdir+y}; then
4096 MKDIR_P="$ac_cv_path_mkdir -p"
4097 else
4098 # As a last resort, use plain mkdir -p,
4099 # in the hope it doesn't have the bugs of ancient mkdir.
4100 MKDIR_P='mkdir -p'
4101 fi
4102 fi
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4104 printf "%s\n" "$MKDIR_P" >&6; }
4105
4106 for ac_prog in gawk mawk nawk awk
4107 do
4108 # Extract the first word of "$ac_prog", so it can be a program name with args.
4109 set dummy $ac_prog; ac_word=$2
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 printf %s "checking for $ac_word... " >&6; }
4112 if test ${ac_cv_prog_AWK+y}
4113 then :
4114 printf %s "(cached) " >&6
4115 else case e in #(
4116 e) if test -n "$AWK"; then
4117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122 IFS=$as_save_IFS
4123 case $as_dir in #(((
4124 '') as_dir=./ ;;
4125 */) ;;
4126 *) as_dir=$as_dir/ ;;
4127 esac
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_AWK="$ac_prog"
4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136 IFS=$as_save_IFS
4137
4138 fi ;;
4139 esac
4140 fi
4141 AWK=$ac_cv_prog_AWK
4142 if test -n "$AWK"; then
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4144 printf "%s\n" "$AWK" >&6; }
4145 else
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 printf "%s\n" "no" >&6; }
4148 fi
4149
4150
4151 test -n "$AWK" && break
4152 done
4153
4154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4155 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4156 set x ${MAKE-make}
4157 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4158 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4159 then :
4160 printf %s "(cached) " >&6
4161 else case e in #(
4162 e) cat >conftest.make <<\_ACEOF
4163 SHELL = /bin/sh
4164 all:
4165 @echo '@@@%%%=$(MAKE)=@@@%%%'
4166 _ACEOF
4167 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4168 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4169 *@@@%%%=?*=@@@%%%*)
4170 eval ac_cv_prog_make_${ac_make}_set=yes;;
4171 *)
4172 eval ac_cv_prog_make_${ac_make}_set=no;;
4173 esac
4174 rm -f conftest.make ;;
4175 esac
4176 fi
4177 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 printf "%s\n" "yes" >&6; }
4180 SET_MAKE=
4181 else
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 printf "%s\n" "no" >&6; }
4184 SET_MAKE="MAKE=${MAKE-make}"
4185 fi
4186
4187 rm -rf .tst 2>/dev/null
4188 mkdir .tst 2>/dev/null
4189 if test -d .tst; then
4190 am__leading_dot=.
4191 else
4192 am__leading_dot=_
4193 fi
4194 rmdir .tst 2>/dev/null
4195
4196 AM_DEFAULT_VERBOSITY=1
4197 # Check whether --enable-silent-rules was given.
4198 if test ${enable_silent_rules+y}
4199 then :
4200 enableval=$enable_silent_rules;
4201 fi
4202
4203 am_make=${MAKE-make}
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4205 printf %s "checking whether $am_make supports nested variables... " >&6; }
4206 if test ${am_cv_make_support_nested_variables+y}
4207 then :
4208 printf %s "(cached) " >&6
4209 else case e in #(
4210 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4211 BAR0=false
4212 BAR1=true
4213 V=1
4214 am__doit:
4215 @$(TRUE)
4216 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4217 am_cv_make_support_nested_variables=yes
4218 else
4219 am_cv_make_support_nested_variables=no
4220 fi ;;
4221 esac
4222 fi
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4224 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4225 AM_BACKSLASH='\'
4226
4227 am__rm_f_notfound=
4228 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4229 then :
4230
4231 else case e in #(
4232 e) am__rm_f_notfound='""' ;;
4233 esac
4234 fi
4235
4236
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4238 printf %s "checking xargs -n works... " >&6; }
4239 if test ${am_cv_xargs_n_works+y}
4240 then :
4241 printf %s "(cached) " >&6
4242 else case e in #(
4243 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4244 3"
4245 then :
4246 am_cv_xargs_n_works=yes
4247 else case e in #(
4248 e) am_cv_xargs_n_works=no ;;
4249 esac
4250 fi ;;
4251 esac
4252 fi
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4254 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4255 if test "$am_cv_xargs_n_works" = yes
4256 then :
4257 am__xargs_n='xargs -n'
4258 else case e in #(
4259 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4260 ;;
4261 esac
4262 fi
4263
4264 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4265 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4266 # is not polluted with repeated "-I."
4267 am__isrc=' -I$(srcdir)'
4268 # test to see if srcdir already configured
4269 if test -f $srcdir/config.status; then
4270 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4271 fi
4272 fi
4273
4274 # test whether we have cygpath
4275 if test -z "$CYGPATH_W"; then
4276 if (cygpath --version) >/dev/null 2>/dev/null; then
4277 CYGPATH_W='cygpath -w'
4278 else
4279 CYGPATH_W=echo
4280 fi
4281 fi
4282
4283
4284 # Define the identity of the package.
4285 PACKAGE='fldigi'
4286 VERSION='4.2.12'
4287
4288
4289 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4290
4291
4292 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4293
4294 # Some tools Automake needs.
4295
4296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4297
4298
4299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4300
4301
4302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4303
4304
4305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4306
4307
4308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4309
4310 # For better backward compatibility. To be removed once Automake 1.9.x
4311 # dies out for good. For more background, see:
4312 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4313 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4314 mkdir_p='$(MKDIR_P)'
4315
4316 # We need awk for the "check" target (and possibly the TAP driver). The
4317 # system "awk" is bad on some platforms.
4318 # Always define AMTAR for backward compatibility. Yes, it's still used
4319 # in the wild :-( We should find a proper way to deprecate it ...
4320 AMTAR='$${TAR-tar}'
4321
4322
4323 # We'll loop over all known methods to create a tar archive until one works.
4324 _am_tools='gnutar plaintar pax cpio none'
4325
4326 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4327 # There is notably a 21 bits limit for the UID and the GID. In fact,
4328 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4329 # and bug#13588).
4330 am_max_uid=2097151 # 2^21 - 1
4331 am_max_gid=$am_max_uid
4332 # The $UID and $GID variables are not portable, so we need to resort
4333 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4334 # below are definitely unexpected, so allow the users to see them
4335 # (that is, avoid stderr redirection).
4336 am_uid=`id -u || echo unknown`
4337 am_gid=`id -g || echo unknown`
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4339 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4340 if test x$am_uid = xunknown; then
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4342 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4343 elif test $am_uid -le $am_max_uid; then
4344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345 printf "%s\n" "yes" >&6; }
4346 else
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 printf "%s\n" "no" >&6; }
4349 _am_tools=none
4350 fi
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4352 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4353 if test x$gm_gid = xunknown; then
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4355 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4356 elif test $am_gid -le $am_max_gid; then
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4358 printf "%s\n" "yes" >&6; }
4359 else
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 printf "%s\n" "no" >&6; }
4362 _am_tools=none
4363 fi
4364
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4366 printf %s "checking how to create a ustar tar archive... " >&6; }
4367
4368 # Go ahead even if we have the value already cached. We do so because we
4369 # need to set the values for the 'am__tar' and 'am__untar' variables.
4370 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4371
4372 for _am_tool in $_am_tools; do
4373 case $_am_tool in
4374 gnutar)
4375 for _am_tar in tar gnutar gtar; do
4376 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4377 ($_am_tar --version) >&5 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } && break
4381 done
4382 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4383 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4384 am__untar="$_am_tar -xf -"
4385 ;;
4386 plaintar)
4387 # Must skip GNU tar: if it does not support --format= it doesn't create
4388 # ustar tarball either.
4389 (tar --version) >/dev/null 2>&1 && continue
4390 am__tar='tar chf - "$$tardir"'
4391 am__tar_='tar chf - "$tardir"'
4392 am__untar='tar xf -'
4393 ;;
4394 pax)
4395 am__tar='pax -L -x ustar -w "$$tardir"'
4396 am__tar_='pax -L -x ustar -w "$tardir"'
4397 am__untar='pax -r'
4398 ;;
4399 cpio)
4400 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4401 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4402 am__untar='cpio -i -H ustar -d'
4403 ;;
4404 none)
4405 am__tar=false
4406 am__tar_=false
4407 am__untar=false
4408 ;;
4409 esac
4410
4411 # If the value was cached, stop now. We just wanted to have am__tar
4412 # and am__untar set.
4413 test -n "${am_cv_prog_tar_ustar}" && break
4414
4415 # tar/untar a dummy directory, and stop if the command works.
4416 rm -rf conftest.dir
4417 mkdir conftest.dir
4418 echo GrepMe > conftest.dir/file
4419 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4420 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }
4424 rm -rf conftest.dir
4425 if test -s conftest.tar; then
4426 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4427 ($am__untar <conftest.tar) >&5 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }
4431 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4432 (cat conftest.dir/file) >&5 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }
4436 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4437 fi
4438 done
4439 rm -rf conftest.dir
4440
4441 if test ${am_cv_prog_tar_ustar+y}
4442 then :
4443 printf %s "(cached) " >&6
4444 else case e in #(
4445 e) am_cv_prog_tar_ustar=$_am_tool ;;
4446 esac
4447 fi
4448
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4450 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4451
4452
4453
4454
4455
4456 # Variables for tags utilities; see am/tags.am
4457 if test -z "$CTAGS"; then
4458 CTAGS=ctags
4459 fi
4460
4461 if test -z "$ETAGS"; then
4462 ETAGS=etags
4463 fi
4464
4465 if test -z "$CSCOPE"; then
4466 CSCOPE=cscope
4467 fi
4468
4469
4470
4471
4472
4473
4474
4475
4476 AM_DEFAULT_VERBOSITY=0
4477
4478
4479
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4481 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4482 # Check whether --enable-maintainer-mode was given.
4483 if test ${enable_maintainer_mode+y}
4484 then :
4485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4486 else case e in #(
4487 e) USE_MAINTAINER_MODE=no ;;
4488 esac
4489 fi
4490
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4492 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4493 if test $USE_MAINTAINER_MODE = yes; then
4494 MAINTAINER_MODE_TRUE=
4495 MAINTAINER_MODE_FALSE='#'
4496 else
4497 MAINTAINER_MODE_TRUE='#'
4498 MAINTAINER_MODE_FALSE=
4499 fi
4500
4501 MAINT=$MAINTAINER_MODE_TRUE
4502
4503
4504
4505 ac_config_headers="$ac_config_headers src/config.h"
4506
4507
4508
4509
4510 FLDIGI_AUTHORS="Dave Freese, Stelios Bounanos, and others"
4511 FLARQ_AUTHORS="Dave Freese, Robert Stiles, and others"
4512 PACKAGE_HOME="https://www.w1hkj.org/Fldigi.html"
4513 PACKAGE_DL="https://www.w1hkj.org/download.html"
4514 PACKAGE_PROJ="http://sourceforge.net/projects/fldigi/files/"
4515 PACKAGE_NEWBUG=
4516 PACKAGE_DOCS="https://www.w1hkj.org/FldigiHelp/index.html"
4517 PACKAGE_GUIDE="https://www.w1hkj.org/beginners.html"
4518 FLARQ_DOCS="https://www.w1hkj.org/FlarqHelpFiles/flarq.html"
4519
4520 printf "%s\n" "#define FLDIGI_AUTHORS \"$FLDIGI_AUTHORS\"" >>confdefs.h
4521
4522
4523 printf "%s\n" "#define FLARQ_AUTHORS \"$FLARQ_AUTHORS\"" >>confdefs.h
4524
4525
4526 printf "%s\n" "#define PACKAGE_HOME \"$PACKAGE_HOME\"" >>confdefs.h
4527
4528
4529 printf "%s\n" "#define PACKAGE_DL \"$PACKAGE_DL\"" >>confdefs.h
4530
4531
4532 printf "%s\n" "#define PACKAGE_PROJ \"$PACKAGE_PROJ\"" >>confdefs.h
4533
4534
4535 printf "%s\n" "#define PACKAGE_NEWBUG \"$PACKAGE_NEWBUG\"" >>confdefs.h
4536
4537
4538 printf "%s\n" "#define PACKAGE_DOCS \"$PACKAGE_DOCS\"" >>confdefs.h
4539
4540
4541 printf "%s\n" "#define PACKAGE_GUIDE \"$PACKAGE_GUIDE\"" >>confdefs.h
4542
4543
4544 printf "%s\n" "#define FLARQ_DOCS \"$FLARQ_DOCS\"" >>confdefs.h
4545
4546 FLDIGI_AUTHORS=$FLDIGI_AUTHORS
4547
4548 FLARQ_AUTHORS=$FLARQ_AUTHORS
4549
4550 PACKAGE_HOME=$PACKAGE_HOME
4551
4552 PACKAGE_DL=$PACKAGE_DL
4553
4554 PACKAGE_PROJ=$PACKAGE_PROJ
4555
4556 PACKAGE_NEWBUG=$PACKAGE_NEWBUG
4557
4558 PACKAGE_DOCS=$PACKAGE_DOCS
4559
4560 PACKAGE_GUIDE=$PACKAGE_GUIDE
4561
4562 FLARQ_DOCS=$FLARQ_DOCS
4563
4564
4565
4566 # Checks for programs.
4567
4568
4569
4570
4571
4572
4573 ac_ext=cpp
4574 ac_cpp='$CXXCPP $CPPFLAGS'
4575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578 if test -z "$CXX"; then
4579 if test -n "$CCC"; then
4580 CXX=$CCC
4581 else
4582 if test -n "$ac_tool_prefix"; then
4583 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4584 do
4585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 printf %s "checking for $ac_word... " >&6; }
4589 if test ${ac_cv_prog_CXX+y}
4590 then :
4591 printf %s "(cached) " >&6
4592 else case e in #(
4593 e) if test -n "$CXX"; then
4594 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599 IFS=$as_save_IFS
4600 case $as_dir in #(((
4601 '') as_dir=./ ;;
4602 */) ;;
4603 *) as_dir=$as_dir/ ;;
4604 esac
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615 fi ;;
4616 esac
4617 fi
4618 CXX=$ac_cv_prog_CXX
4619 if test -n "$CXX"; then
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4621 printf "%s\n" "$CXX" >&6; }
4622 else
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 printf "%s\n" "no" >&6; }
4625 fi
4626
4627
4628 test -n "$CXX" && break
4629 done
4630 fi
4631 if test -z "$CXX"; then
4632 ac_ct_CXX=$CXX
4633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4634 do
4635 # Extract the first word of "$ac_prog", so it can be a program name with args.
4636 set dummy $ac_prog; ac_word=$2
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 printf %s "checking for $ac_word... " >&6; }
4639 if test ${ac_cv_prog_ac_ct_CXX+y}
4640 then :
4641 printf %s "(cached) " >&6
4642 else case e in #(
4643 e) if test -n "$ac_ct_CXX"; then
4644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 case $as_dir in #(((
4651 '') as_dir=./ ;;
4652 */) ;;
4653 *) as_dir=$as_dir/ ;;
4654 esac
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_prog"
4658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661 done
4662 done
4663 IFS=$as_save_IFS
4664
4665 fi ;;
4666 esac
4667 fi
4668 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4669 if test -n "$ac_ct_CXX"; then
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4671 printf "%s\n" "$ac_ct_CXX" >&6; }
4672 else
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 printf "%s\n" "no" >&6; }
4675 fi
4676
4677
4678 test -n "$ac_ct_CXX" && break
4679 done
4680
4681 if test "x$ac_ct_CXX" = x; then
4682 CXX="g++"
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685 yes:)
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned=yes ;;
4689 esac
4690 CXX=$ac_ct_CXX
4691 fi
4692 fi
4693
4694 fi
4695 fi
4696 # Provide some information about the compiler.
4697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4698 set X $ac_compile
4699 ac_compiler=$2
4700 for ac_option in --version -v -V -qversion; do
4701 { { ac_try="$ac_compiler $ac_option >&5"
4702 case "(($ac_try" in
4703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4705 esac
4706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4707 printf "%s\n" "$ac_try_echo"; } >&5
4708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4709 ac_status=$?
4710 if test -s conftest.err; then
4711 sed '10a\
4712 ... rest of stderr output deleted ...
4713 10q' conftest.err >conftest.er1
4714 cat conftest.er1 >&5
4715 fi
4716 rm -f conftest.er1 conftest.err
4717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4718 test $ac_status = 0; }
4719 done
4720
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723
4724 int
4725 main (void)
4726 {
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 ac_clean_files_save=$ac_clean_files
4733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4734 # Try to create an executable without -o first, disregard a.out.
4735 # It will help us diagnose broken compilers, and finding out an intuition
4736 # of exeext.
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4738 printf %s "checking whether the C++ compiler works... " >&6; }
4739 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4740
4741 # The possible output files:
4742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4743
4744 ac_rmfiles=
4745 for ac_file in $ac_files
4746 do
4747 case $ac_file in
4748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4750 esac
4751 done
4752 rm -f $ac_rmfiles
4753
4754 if { { ac_try="$ac_link_default"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4760 printf "%s\n" "$ac_try_echo"; } >&5
4761 (eval "$ac_link_default") 2>&5
4762 ac_status=$?
4763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4764 test $ac_status = 0; }
4765 then :
4766 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4767 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4768 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4769 # so that the user can short-circuit this test for compilers unknown to
4770 # Autoconf.
4771 for ac_file in $ac_files ''
4772 do
4773 test -f "$ac_file" || continue
4774 case $ac_file in
4775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4776 ;;
4777 [ab].out )
4778 # We found the default executable, but exeext='' is most
4779 # certainly right.
4780 break;;
4781 *.* )
4782 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4783 then :; else
4784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4785 fi
4786 # We set ac_cv_exeext here because the later test for it is not
4787 # safe: cross compilers may not add the suffix if given an '-o'
4788 # argument, so we may need to know it at that point already.
4789 # Even if this section looks crufty: it has the advantage of
4790 # actually working.
4791 break;;
4792 * )
4793 break;;
4794 esac
4795 done
4796 test "$ac_cv_exeext" = no && ac_cv_exeext=
4797
4798 else case e in #(
4799 e) ac_file='' ;;
4800 esac
4801 fi
4802 if test -z "$ac_file"
4803 then :
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 printf "%s\n" "no" >&6; }
4806 printf "%s\n" "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4810 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4811 as_fn_error 77 "C++ compiler cannot create executables
4812 See 'config.log' for more details" "$LINENO" 5; }
4813 else case e in #(
4814 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4815 printf "%s\n" "yes" >&6; } ;;
4816 esac
4817 fi
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4819 printf %s "checking for C++ compiler default output file name... " >&6; }
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4821 printf "%s\n" "$ac_file" >&6; }
4822 ac_exeext=$ac_cv_exeext
4823
4824 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4825 ac_clean_files=$ac_clean_files_save
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4827 printf %s "checking for suffix of executables... " >&6; }
4828 if { { ac_try="$ac_link"
4829 case "(($ac_try" in
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4832 esac
4833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4834 printf "%s\n" "$ac_try_echo"; } >&5
4835 (eval "$ac_link") 2>&5
4836 ac_status=$?
4837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4838 test $ac_status = 0; }
4839 then :
4840 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4841 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4842 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4843 # 'rm'.
4844 for ac_file in conftest.exe conftest conftest.*; do
4845 test -f "$ac_file" || continue
4846 case $ac_file in
4847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4849 break;;
4850 * ) break;;
4851 esac
4852 done
4853 else case e in #(
4854 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4855 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4856 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4857 See 'config.log' for more details" "$LINENO" 5; } ;;
4858 esac
4859 fi
4860 rm -f conftest conftest$ac_cv_exeext
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4862 printf "%s\n" "$ac_cv_exeext" >&6; }
4863
4864 rm -f conftest.$ac_ext
4865 EXEEXT=$ac_cv_exeext
4866 ac_exeext=$EXEEXT
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 #include <stdio.h>
4870 int
4871 main (void)
4872 {
4873 FILE *f = fopen ("conftest.out", "w");
4874 if (!f)
4875 return 1;
4876 return ferror (f) || fclose (f) != 0;
4877
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 ac_clean_files="$ac_clean_files conftest.out"
4883 # Check that the compiler produces executables we can run. If not, either
4884 # the compiler is broken, or we cross compile.
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4886 printf %s "checking whether we are cross compiling... " >&6; }
4887 if test "$cross_compiling" != yes; then
4888 { { ac_try="$ac_link"
4889 case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892 esac
4893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4894 printf "%s\n" "$ac_try_echo"; } >&5
4895 (eval "$ac_link") 2>&5
4896 ac_status=$?
4897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4898 test $ac_status = 0; }
4899 if { ac_try='./conftest$ac_cv_exeext'
4900 { { case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4905 printf "%s\n" "$ac_try_echo"; } >&5
4906 (eval "$ac_try") 2>&5
4907 ac_status=$?
4908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4909 test $ac_status = 0; }; }; then
4910 cross_compiling=no
4911 else
4912 if test "$cross_compiling" = maybe; then
4913 cross_compiling=yes
4914 else
4915 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4916 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4917 as_fn_error 77 "cannot run C++ compiled programs.
4918 If you meant to cross compile, use '--host'.
4919 See 'config.log' for more details" "$LINENO" 5; }
4920 fi
4921 fi
4922 fi
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4924 printf "%s\n" "$cross_compiling" >&6; }
4925
4926 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4927 conftest.o conftest.obj conftest.out
4928 ac_clean_files=$ac_clean_files_save
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4930 printf %s "checking for suffix of object files... " >&6; }
4931 if test ${ac_cv_objext+y}
4932 then :
4933 printf %s "(cached) " >&6
4934 else case e in #(
4935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4937
4938 int
4939 main (void)
4940 {
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.o conftest.obj
4947 if { { ac_try="$ac_compile"
4948 case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951 esac
4952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953 printf "%s\n" "$ac_try_echo"; } >&5
4954 (eval "$ac_compile") 2>&5
4955 ac_status=$?
4956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4957 test $ac_status = 0; }
4958 then :
4959 for ac_file in conftest.o conftest.obj conftest.*; do
4960 test -f "$ac_file" || continue;
4961 case $ac_file in
4962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4964 break;;
4965 esac
4966 done
4967 else case e in #(
4968 e) printf "%s\n" "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4972 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4973 as_fn_error $? "cannot compute suffix of object files: cannot compile
4974 See 'config.log' for more details" "$LINENO" 5; } ;;
4975 esac
4976 fi
4977 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4978 esac
4979 fi
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4981 printf "%s\n" "$ac_cv_objext" >&6; }
4982 OBJEXT=$ac_cv_objext
4983 ac_objext=$OBJEXT
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4985 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4986 if test ${ac_cv_cxx_compiler_gnu+y}
4987 then :
4988 printf %s "(cached) " >&6
4989 else case e in #(
4990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992
4993 int
4994 main (void)
4995 {
4996 #ifndef __GNUC__
4997 choke me
4998 #endif
4999
5000 ;
5001 return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_cxx_try_compile "$LINENO"
5005 then :
5006 ac_compiler_gnu=yes
5007 else case e in #(
5008 e) ac_compiler_gnu=no ;;
5009 esac
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5012 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5013 ;;
5014 esac
5015 fi
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5017 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5019
5020 if test $ac_compiler_gnu = yes; then
5021 GXX=yes
5022 else
5023 GXX=
5024 fi
5025 ac_test_CXXFLAGS=${CXXFLAGS+y}
5026 ac_save_CXXFLAGS=$CXXFLAGS
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5028 printf %s "checking whether $CXX accepts -g... " >&6; }
5029 if test ${ac_cv_prog_cxx_g+y}
5030 then :
5031 printf %s "(cached) " >&6
5032 else case e in #(
5033 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5034 ac_cxx_werror_flag=yes
5035 ac_cv_prog_cxx_g=no
5036 CXXFLAGS="-g"
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039
5040 int
5041 main (void)
5042 {
5043
5044 ;
5045 return 0;
5046 }
5047 _ACEOF
5048 if ac_fn_cxx_try_compile "$LINENO"
5049 then :
5050 ac_cv_prog_cxx_g=yes
5051 else case e in #(
5052 e) CXXFLAGS=""
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055
5056 int
5057 main (void)
5058 {
5059
5060 ;
5061 return 0;
5062 }
5063 _ACEOF
5064 if ac_fn_cxx_try_compile "$LINENO"
5065 then :
5066
5067 else case e in #(
5068 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5069 CXXFLAGS="-g"
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072
5073 int
5074 main (void)
5075 {
5076
5077 ;
5078 return 0;
5079 }
5080 _ACEOF
5081 if ac_fn_cxx_try_compile "$LINENO"
5082 then :
5083 ac_cv_prog_cxx_g=yes
5084 fi
5085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5086 esac
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5089 esac
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5092 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5093 esac
5094 fi
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5096 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5097 if test $ac_test_CXXFLAGS; then
5098 CXXFLAGS=$ac_save_CXXFLAGS
5099 elif test $ac_cv_prog_cxx_g = yes; then
5100 if test "$GXX" = yes; then
5101 CXXFLAGS="-g -O2"
5102 else
5103 CXXFLAGS="-g"
5104 fi
5105 else
5106 if test "$GXX" = yes; then
5107 CXXFLAGS="-O2"
5108 else
5109 CXXFLAGS=
5110 fi
5111 fi
5112 ac_prog_cxx_stdcxx=no
5113 if test x$ac_prog_cxx_stdcxx = xno
5114 then :
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5116 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5117 if test ${ac_cv_prog_cxx_cxx11+y}
5118 then :
5119 printf %s "(cached) " >&6
5120 else case e in #(
5121 e) ac_cv_prog_cxx_cxx11=no
5122 ac_save_CXX=$CXX
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 $ac_cxx_conftest_cxx11_program
5126 _ACEOF
5127 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5128 do
5129 CXX="$ac_save_CXX $ac_arg"
5130 if ac_fn_cxx_try_compile "$LINENO"
5131 then :
5132 ac_cv_prog_cxx_cxx11=$ac_arg
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.beam
5135 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5136 done
5137 rm -f conftest.$ac_ext
5138 CXX=$ac_save_CXX ;;
5139 esac
5140 fi
5141
5142 if test "x$ac_cv_prog_cxx_cxx11" = xno
5143 then :
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5145 printf "%s\n" "unsupported" >&6; }
5146 else case e in #(
5147 e) if test "x$ac_cv_prog_cxx_cxx11" = x
5148 then :
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5150 printf "%s\n" "none needed" >&6; }
5151 else case e in #(
5152 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5153 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5154 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5155 esac
5156 fi
5157 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5158 ac_prog_cxx_stdcxx=cxx11 ;;
5159 esac
5160 fi
5161 fi
5162 if test x$ac_prog_cxx_stdcxx = xno
5163 then :
5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5165 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5166 if test ${ac_cv_prog_cxx_cxx98+y}
5167 then :
5168 printf %s "(cached) " >&6
5169 else case e in #(
5170 e) ac_cv_prog_cxx_cxx98=no
5171 ac_save_CXX=$CXX
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 $ac_cxx_conftest_cxx98_program
5175 _ACEOF
5176 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5177 do
5178 CXX="$ac_save_CXX $ac_arg"
5179 if ac_fn_cxx_try_compile "$LINENO"
5180 then :
5181 ac_cv_prog_cxx_cxx98=$ac_arg
5182 fi
5183 rm -f core conftest.err conftest.$ac_objext conftest.beam
5184 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5185 done
5186 rm -f conftest.$ac_ext
5187 CXX=$ac_save_CXX ;;
5188 esac
5189 fi
5190
5191 if test "x$ac_cv_prog_cxx_cxx98" = xno
5192 then :
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5194 printf "%s\n" "unsupported" >&6; }
5195 else case e in #(
5196 e) if test "x$ac_cv_prog_cxx_cxx98" = x
5197 then :
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5199 printf "%s\n" "none needed" >&6; }
5200 else case e in #(
5201 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5202 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5203 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5204 esac
5205 fi
5206 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5207 ac_prog_cxx_stdcxx=cxx98 ;;
5208 esac
5209 fi
5210 fi
5211
5212 ac_ext=c
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217 DEPDIR="${am__leading_dot}deps"
5218
5219 ac_config_commands="$ac_config_commands depfiles"
5220
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5222 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5223 cat > confinc.mk << 'END'
5224 am__doit:
5225 @echo this is the am__doit target >confinc.out
5226 .PHONY: am__doit
5227 END
5228 am__include="#"
5229 am__quote=
5230 # BSD make does it like this.
5231 echo '.include "confinc.mk" # ignored' > confmf.BSD
5232 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5233 echo 'include confinc.mk # ignored' > confmf.GNU
5234 _am_result=no
5235 for s in GNU BSD; do
5236 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5237 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 case $?:`cat confinc.out 2>/dev/null` in #(
5242 '0:this is the am__doit target') :
5243 case $s in #(
5244 BSD) :
5245 am__include='.include' am__quote='"' ;; #(
5246 *) :
5247 am__include='include' am__quote='' ;;
5248 esac ;; #(
5249 *) :
5250 ;;
5251 esac
5252 if test "$am__include" != "#"; then
5253 _am_result="yes ($s style)"
5254 break
5255 fi
5256 done
5257 rm -f confinc.* confmf.*
5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5259 printf "%s\n" "${_am_result}" >&6; }
5260
5261 # Check whether --enable-dependency-tracking was given.
5262 if test ${enable_dependency_tracking+y}
5263 then :
5264 enableval=$enable_dependency_tracking;
5265 fi
5266
5267 if test "x$enable_dependency_tracking" != xno; then
5268 am_depcomp="$ac_aux_dir/depcomp"
5269 AMDEPBACKSLASH='\'
5270 am__nodep='_no'
5271 fi
5272 if test "x$enable_dependency_tracking" != xno; then
5273 AMDEP_TRUE=
5274 AMDEP_FALSE='#'
5275 else
5276 AMDEP_TRUE='#'
5277 AMDEP_FALSE=
5278 fi
5279
5280
5281
5282 depcc="$CXX" am_compiler_list=
5283
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5285 printf %s "checking dependency style of $depcc... " >&6; }
5286 if test ${am_cv_CXX_dependencies_compiler_type+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else case e in #(
5290 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5291 # We make a subdir and do the tests there. Otherwise we can end up
5292 # making bogus files that we don't know about and never remove. For
5293 # instance it was reported that on HP-UX the gcc test will end up
5294 # making a dummy file named 'D' -- because '-MD' means "put the output
5295 # in D".
5296 rm -rf conftest.dir
5297 mkdir conftest.dir
5298 # Copy depcomp to subdir because otherwise we won't find it if we're
5299 # using a relative directory.
5300 cp "$am_depcomp" conftest.dir
5301 cd conftest.dir
5302 # We will build objects and dependencies in a subdirectory because
5303 # it helps to detect inapplicable dependency modes. For instance
5304 # both Tru64's cc and ICC support -MD to output dependencies as a
5305 # side effect of compilation, but ICC will put the dependencies in
5306 # the current directory while Tru64 will put them in the object
5307 # directory.
5308 mkdir sub
5309
5310 am_cv_CXX_dependencies_compiler_type=none
5311 if test "$am_compiler_list" = ""; then
5312 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5313 fi
5314 am__universal=false
5315 case " $depcc " in #(
5316 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5317 esac
5318
5319 for depmode in $am_compiler_list; do
5320 # Setup a source with many dependencies, because some compilers
5321 # like to wrap large dependency lists on column 80 (with \), and
5322 # we should not choose a depcomp mode which is confused by this.
5323 #
5324 # We need to recreate these files for each test, as the compiler may
5325 # overwrite some of them when testing with obscure command lines.
5326 # This happens at least with the AIX C compiler.
5327 : > sub/conftest.c
5328 for i in 1 2 3 4 5 6; do
5329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5330 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5331 # Solaris 10 /bin/sh.
5332 echo '/* dummy */' > sub/conftst$i.h
5333 done
5334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5335
5336 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5337 # mode. It turns out that the SunPro C++ compiler does not properly
5338 # handle '-M -o', and we need to detect this. Also, some Intel
5339 # versions had trouble with output in subdirs.
5340 am__obj=sub/conftest.${OBJEXT-o}
5341 am__minus_obj="-o $am__obj"
5342 case $depmode in
5343 gcc)
5344 # This depmode causes a compiler race in universal mode.
5345 test "$am__universal" = false || continue
5346 ;;
5347 nosideeffect)
5348 # After this tag, mechanisms are not by side-effect, so they'll
5349 # only be used when explicitly requested.
5350 if test "x$enable_dependency_tracking" = xyes; then
5351 continue
5352 else
5353 break
5354 fi
5355 ;;
5356 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5357 # This compiler won't grok '-c -o', but also, the minuso test has
5358 # not run yet. These depmodes are late enough in the game, and
5359 # so weak that their functioning should not be impacted.
5360 am__obj=conftest.${OBJEXT-o}
5361 am__minus_obj=
5362 ;;
5363 none) break ;;
5364 esac
5365 if depmode=$depmode \
5366 source=sub/conftest.c object=$am__obj \
5367 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5368 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5369 >/dev/null 2>conftest.err &&
5370 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5371 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5372 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5373 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5374 # icc doesn't choke on unknown options, it will just issue warnings
5375 # or remarks (even with -Werror). So we grep stderr for any message
5376 # that says an option was ignored or not supported.
5377 # When given -MP, icc 7.0 and 7.1 complain thus:
5378 # icc: Command line warning: ignoring option '-M'; no argument required
5379 # The diagnosis changed in icc 8.0:
5380 # icc: Command line remark: option '-MP' not supported
5381 if (grep 'ignoring option' conftest.err ||
5382 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5383 am_cv_CXX_dependencies_compiler_type=$depmode
5384 break
5385 fi
5386 fi
5387 done
5388
5389 cd ..
5390 rm -rf conftest.dir
5391 else
5392 am_cv_CXX_dependencies_compiler_type=none
5393 fi
5394 ;;
5395 esac
5396 fi
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5398 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5399 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5400
5401 if
5402 test "x$enable_dependency_tracking" != xno \
5403 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5404 am__fastdepCXX_TRUE=
5405 am__fastdepCXX_FALSE='#'
5406 else
5407 am__fastdepCXX_TRUE='#'
5408 am__fastdepCXX_FALSE=
5409 fi
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426 if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 printf %s "checking for $ac_word... " >&6; }
5431 if test ${ac_cv_prog_CC+y}
5432 then :
5433 printf %s "(cached) " >&6
5434 else case e in #(
5435 e) if test -n "$CC"; then
5436 ac_cv_prog_CC="$CC" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441 IFS=$as_save_IFS
5442 case $as_dir in #(((
5443 '') as_dir=./ ;;
5444 */) ;;
5445 *) as_dir=$as_dir/ ;;
5446 esac
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453 done
5454 done
5455 IFS=$as_save_IFS
5456
5457 fi ;;
5458 esac
5459 fi
5460 CC=$ac_cv_prog_CC
5461 if test -n "$CC"; then
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5463 printf "%s\n" "$CC" >&6; }
5464 else
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 printf "%s\n" "no" >&6; }
5467 fi
5468
5469
5470 fi
5471 if test -z "$ac_cv_prog_CC"; then
5472 ac_ct_CC=$CC
5473 # Extract the first word of "gcc", so it can be a program name with args.
5474 set dummy gcc; ac_word=$2
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 printf %s "checking for $ac_word... " >&6; }
5477 if test ${ac_cv_prog_ac_ct_CC+y}
5478 then :
5479 printf %s "(cached) " >&6
5480 else case e in #(
5481 e) if test -n "$ac_ct_CC"; then
5482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 case $as_dir in #(((
5489 '') as_dir=./ ;;
5490 */) ;;
5491 *) as_dir=$as_dir/ ;;
5492 esac
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_ac_ct_CC="gcc"
5496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499 done
5500 done
5501 IFS=$as_save_IFS
5502
5503 fi ;;
5504 esac
5505 fi
5506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5507 if test -n "$ac_ct_CC"; then
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5509 printf "%s\n" "$ac_ct_CC" >&6; }
5510 else
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 printf "%s\n" "no" >&6; }
5513 fi
5514
5515 if test "x$ac_ct_CC" = x; then
5516 CC=""
5517 else
5518 case $cross_compiling:$ac_tool_warned in
5519 yes:)
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522 ac_tool_warned=yes ;;
5523 esac
5524 CC=$ac_ct_CC
5525 fi
5526 else
5527 CC="$ac_cv_prog_CC"
5528 fi
5529
5530 if test -z "$CC"; then
5531 if test -n "$ac_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5533 set dummy ${ac_tool_prefix}cc; ac_word=$2
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 printf %s "checking for $ac_word... " >&6; }
5536 if test ${ac_cv_prog_CC+y}
5537 then :
5538 printf %s "(cached) " >&6
5539 else case e in #(
5540 e) if test -n "$CC"; then
5541 ac_cv_prog_CC="$CC" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 case $as_dir in #(((
5548 '') as_dir=./ ;;
5549 */) ;;
5550 *) as_dir=$as_dir/ ;;
5551 esac
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_CC="${ac_tool_prefix}cc"
5555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi ;;
5563 esac
5564 fi
5565 CC=$ac_cv_prog_CC
5566 if test -n "$CC"; then
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5568 printf "%s\n" "$CC" >&6; }
5569 else
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 printf "%s\n" "no" >&6; }
5572 fi
5573
5574
5575 fi
5576 fi
5577 if test -z "$CC"; then
5578 # Extract the first word of "cc", so it can be a program name with args.
5579 set dummy cc; ac_word=$2
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 printf %s "checking for $ac_word... " >&6; }
5582 if test ${ac_cv_prog_CC+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else case e in #(
5586 e) if test -n "$CC"; then
5587 ac_cv_prog_CC="$CC" # Let the user override the test.
5588 else
5589 ac_prog_rejected=no
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 case $as_dir in #(((
5595 '') as_dir=./ ;;
5596 */) ;;
5597 *) as_dir=$as_dir/ ;;
5598 esac
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5601 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5602 ac_prog_rejected=yes
5603 continue
5604 fi
5605 ac_cv_prog_CC="cc"
5606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609 done
5610 done
5611 IFS=$as_save_IFS
5612
5613 if test $ac_prog_rejected = yes; then
5614 # We found a bogon in the path, so make sure we never use it.
5615 set dummy $ac_cv_prog_CC
5616 shift
5617 if test $# != 0; then
5618 # We chose a different compiler from the bogus one.
5619 # However, it has the same basename, so the bogon will be chosen
5620 # first if we set CC to just the basename; use the full file name.
5621 shift
5622 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5623 fi
5624 fi
5625 fi ;;
5626 esac
5627 fi
5628 CC=$ac_cv_prog_CC
5629 if test -n "$CC"; then
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5631 printf "%s\n" "$CC" >&6; }
5632 else
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 printf "%s\n" "no" >&6; }
5635 fi
5636
5637
5638 fi
5639 if test -z "$CC"; then
5640 if test -n "$ac_tool_prefix"; then
5641 for ac_prog in cl.exe
5642 do
5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 printf %s "checking for $ac_word... " >&6; }
5647 if test ${ac_cv_prog_CC+y}
5648 then :
5649 printf %s "(cached) " >&6
5650 else case e in #(
5651 e) if test -n "$CC"; then
5652 ac_cv_prog_CC="$CC" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657 IFS=$as_save_IFS
5658 case $as_dir in #(((
5659 '') as_dir=./ ;;
5660 */) ;;
5661 *) as_dir=$as_dir/ ;;
5662 esac
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669 done
5670 done
5671 IFS=$as_save_IFS
5672
5673 fi ;;
5674 esac
5675 fi
5676 CC=$ac_cv_prog_CC
5677 if test -n "$CC"; then
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5679 printf "%s\n" "$CC" >&6; }
5680 else
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 printf "%s\n" "no" >&6; }
5683 fi
5684
5685
5686 test -n "$CC" && break
5687 done
5688 fi
5689 if test -z "$CC"; then
5690 ac_ct_CC=$CC
5691 for ac_prog in cl.exe
5692 do
5693 # Extract the first word of "$ac_prog", so it can be a program name with args.
5694 set dummy $ac_prog; ac_word=$2
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 printf %s "checking for $ac_word... " >&6; }
5697 if test ${ac_cv_prog_ac_ct_CC+y}
5698 then :
5699 printf %s "(cached) " >&6
5700 else case e in #(
5701 e) if test -n "$ac_ct_CC"; then
5702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 case $as_dir in #(((
5709 '') as_dir=./ ;;
5710 */) ;;
5711 *) as_dir=$as_dir/ ;;
5712 esac
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_ac_ct_CC="$ac_prog"
5716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5717 break 2
5718 fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5722
5723 fi ;;
5724 esac
5725 fi
5726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5727 if test -n "$ac_ct_CC"; then
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5729 printf "%s\n" "$ac_ct_CC" >&6; }
5730 else
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 printf "%s\n" "no" >&6; }
5733 fi
5734
5735
5736 test -n "$ac_ct_CC" && break
5737 done
5738
5739 if test "x$ac_ct_CC" = x; then
5740 CC=""
5741 else
5742 case $cross_compiling:$ac_tool_warned in
5743 yes:)
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5746 ac_tool_warned=yes ;;
5747 esac
5748 CC=$ac_ct_CC
5749 fi
5750 fi
5751
5752 fi
5753 if test -z "$CC"; then
5754 if test -n "$ac_tool_prefix"; then
5755 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5756 set dummy ${ac_tool_prefix}clang; ac_word=$2
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 printf %s "checking for $ac_word... " >&6; }
5759 if test ${ac_cv_prog_CC+y}
5760 then :
5761 printf %s "(cached) " >&6
5762 else case e in #(
5763 e) if test -n "$CC"; then
5764 ac_cv_prog_CC="$CC" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769 IFS=$as_save_IFS
5770 case $as_dir in #(((
5771 '') as_dir=./ ;;
5772 */) ;;
5773 *) as_dir=$as_dir/ ;;
5774 esac
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_CC="${ac_tool_prefix}clang"
5778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785 fi ;;
5786 esac
5787 fi
5788 CC=$ac_cv_prog_CC
5789 if test -n "$CC"; then
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5791 printf "%s\n" "$CC" >&6; }
5792 else
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 printf "%s\n" "no" >&6; }
5795 fi
5796
5797
5798 fi
5799 if test -z "$ac_cv_prog_CC"; then
5800 ac_ct_CC=$CC
5801 # Extract the first word of "clang", so it can be a program name with args.
5802 set dummy clang; ac_word=$2
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 printf %s "checking for $ac_word... " >&6; }
5805 if test ${ac_cv_prog_ac_ct_CC+y}
5806 then :
5807 printf %s "(cached) " >&6
5808 else case e in #(
5809 e) if test -n "$ac_ct_CC"; then
5810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815 IFS=$as_save_IFS
5816 case $as_dir in #(((
5817 '') as_dir=./ ;;
5818 */) ;;
5819 *) as_dir=$as_dir/ ;;
5820 esac
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5823 ac_cv_prog_ac_ct_CC="clang"
5824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831 fi ;;
5832 esac
5833 fi
5834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5835 if test -n "$ac_ct_CC"; then
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5837 printf "%s\n" "$ac_ct_CC" >&6; }
5838 else
5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 printf "%s\n" "no" >&6; }
5841 fi
5842
5843 if test "x$ac_ct_CC" = x; then
5844 CC=""
5845 else
5846 case $cross_compiling:$ac_tool_warned in
5847 yes:)
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5849 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5850 ac_tool_warned=yes ;;
5851 esac
5852 CC=$ac_ct_CC
5853 fi
5854 else
5855 CC="$ac_cv_prog_CC"
5856 fi
5857
5858 fi
5859
5860
5861 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5862 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5863 as_fn_error $? "no acceptable C compiler found in \$PATH
5864 See 'config.log' for more details" "$LINENO" 5; }
5865
5866 # Provide some information about the compiler.
5867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5868 set X $ac_compile
5869 ac_compiler=$2
5870 for ac_option in --version -v -V -qversion -version; do
5871 { { ac_try="$ac_compiler $ac_option >&5"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5877 printf "%s\n" "$ac_try_echo"; } >&5
5878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5879 ac_status=$?
5880 if test -s conftest.err; then
5881 sed '10a\
5882 ... rest of stderr output deleted ...
5883 10q' conftest.err >conftest.er1
5884 cat conftest.er1 >&5
5885 fi
5886 rm -f conftest.er1 conftest.err
5887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; }
5889 done
5890
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5892 printf %s "checking whether the compiler supports GNU C... " >&6; }
5893 if test ${ac_cv_c_compiler_gnu+y}
5894 then :
5895 printf %s "(cached) " >&6
5896 else case e in #(
5897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899
5900 int
5901 main (void)
5902 {
5903 #ifndef __GNUC__
5904 choke me
5905 #endif
5906
5907 ;
5908 return 0;
5909 }
5910 _ACEOF
5911 if ac_fn_c_try_compile "$LINENO"
5912 then :
5913 ac_compiler_gnu=yes
5914 else case e in #(
5915 e) ac_compiler_gnu=no ;;
5916 esac
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5919 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5920 ;;
5921 esac
5922 fi
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5924 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5926
5927 if test $ac_compiler_gnu = yes; then
5928 GCC=yes
5929 else
5930 GCC=
5931 fi
5932 ac_test_CFLAGS=${CFLAGS+y}
5933 ac_save_CFLAGS=$CFLAGS
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5935 printf %s "checking whether $CC accepts -g... " >&6; }
5936 if test ${ac_cv_prog_cc_g+y}
5937 then :
5938 printf %s "(cached) " >&6
5939 else case e in #(
5940 e) ac_save_c_werror_flag=$ac_c_werror_flag
5941 ac_c_werror_flag=yes
5942 ac_cv_prog_cc_g=no
5943 CFLAGS="-g"
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946
5947 int
5948 main (void)
5949 {
5950
5951 ;
5952 return 0;
5953 }
5954 _ACEOF
5955 if ac_fn_c_try_compile "$LINENO"
5956 then :
5957 ac_cv_prog_cc_g=yes
5958 else case e in #(
5959 e) CFLAGS=""
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962
5963 int
5964 main (void)
5965 {
5966
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 if ac_fn_c_try_compile "$LINENO"
5972 then :
5973
5974 else case e in #(
5975 e) ac_c_werror_flag=$ac_save_c_werror_flag
5976 CFLAGS="-g"
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979
5980 int
5981 main (void)
5982 {
5983
5984 ;
5985 return 0;
5986 }
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"
5989 then :
5990 ac_cv_prog_cc_g=yes
5991 fi
5992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5993 esac
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5996 esac
5997 fi
5998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5999 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6000 esac
6001 fi
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6003 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6004 if test $ac_test_CFLAGS; then
6005 CFLAGS=$ac_save_CFLAGS
6006 elif test $ac_cv_prog_cc_g = yes; then
6007 if test "$GCC" = yes; then
6008 CFLAGS="-g -O2"
6009 else
6010 CFLAGS="-g"
6011 fi
6012 else
6013 if test "$GCC" = yes; then
6014 CFLAGS="-O2"
6015 else
6016 CFLAGS=
6017 fi
6018 fi
6019 ac_prog_cc_stdc=no
6020 if test x$ac_prog_cc_stdc = xno
6021 then :
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6023 printf %s "checking for $CC option to enable C11 features... " >&6; }
6024 if test ${ac_cv_prog_cc_c11+y}
6025 then :
6026 printf %s "(cached) " >&6
6027 else case e in #(
6028 e) ac_cv_prog_cc_c11=no
6029 ac_save_CC=$CC
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 $ac_c_conftest_c11_program
6033 _ACEOF
6034 for ac_arg in '' -std=gnu11
6035 do
6036 CC="$ac_save_CC $ac_arg"
6037 if ac_fn_c_try_compile "$LINENO"
6038 then :
6039 ac_cv_prog_cc_c11=$ac_arg
6040 fi
6041 rm -f core conftest.err conftest.$ac_objext conftest.beam
6042 test "x$ac_cv_prog_cc_c11" != "xno" && break
6043 done
6044 rm -f conftest.$ac_ext
6045 CC=$ac_save_CC ;;
6046 esac
6047 fi
6048
6049 if test "x$ac_cv_prog_cc_c11" = xno
6050 then :
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6052 printf "%s\n" "unsupported" >&6; }
6053 else case e in #(
6054 e) if test "x$ac_cv_prog_cc_c11" = x
6055 then :
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6057 printf "%s\n" "none needed" >&6; }
6058 else case e in #(
6059 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6060 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6061 CC="$CC $ac_cv_prog_cc_c11" ;;
6062 esac
6063 fi
6064 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6065 ac_prog_cc_stdc=c11 ;;
6066 esac
6067 fi
6068 fi
6069 if test x$ac_prog_cc_stdc = xno
6070 then :
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6072 printf %s "checking for $CC option to enable C99 features... " >&6; }
6073 if test ${ac_cv_prog_cc_c99+y}
6074 then :
6075 printf %s "(cached) " >&6
6076 else case e in #(
6077 e) ac_cv_prog_cc_c99=no
6078 ac_save_CC=$CC
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 $ac_c_conftest_c99_program
6082 _ACEOF
6083 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6084 do
6085 CC="$ac_save_CC $ac_arg"
6086 if ac_fn_c_try_compile "$LINENO"
6087 then :
6088 ac_cv_prog_cc_c99=$ac_arg
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.beam
6091 test "x$ac_cv_prog_cc_c99" != "xno" && break
6092 done
6093 rm -f conftest.$ac_ext
6094 CC=$ac_save_CC ;;
6095 esac
6096 fi
6097
6098 if test "x$ac_cv_prog_cc_c99" = xno
6099 then :
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6101 printf "%s\n" "unsupported" >&6; }
6102 else case e in #(
6103 e) if test "x$ac_cv_prog_cc_c99" = x
6104 then :
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6106 printf "%s\n" "none needed" >&6; }
6107 else case e in #(
6108 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6109 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6110 CC="$CC $ac_cv_prog_cc_c99" ;;
6111 esac
6112 fi
6113 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6114 ac_prog_cc_stdc=c99 ;;
6115 esac
6116 fi
6117 fi
6118 if test x$ac_prog_cc_stdc = xno
6119 then :
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6121 printf %s "checking for $CC option to enable C89 features... " >&6; }
6122 if test ${ac_cv_prog_cc_c89+y}
6123 then :
6124 printf %s "(cached) " >&6
6125 else case e in #(
6126 e) ac_cv_prog_cc_c89=no
6127 ac_save_CC=$CC
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130 $ac_c_conftest_c89_program
6131 _ACEOF
6132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6133 do
6134 CC="$ac_save_CC $ac_arg"
6135 if ac_fn_c_try_compile "$LINENO"
6136 then :
6137 ac_cv_prog_cc_c89=$ac_arg
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.beam
6140 test "x$ac_cv_prog_cc_c89" != "xno" && break
6141 done
6142 rm -f conftest.$ac_ext
6143 CC=$ac_save_CC ;;
6144 esac
6145 fi
6146
6147 if test "x$ac_cv_prog_cc_c89" = xno
6148 then :
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6150 printf "%s\n" "unsupported" >&6; }
6151 else case e in #(
6152 e) if test "x$ac_cv_prog_cc_c89" = x
6153 then :
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6155 printf "%s\n" "none needed" >&6; }
6156 else case e in #(
6157 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6158 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6159 CC="$CC $ac_cv_prog_cc_c89" ;;
6160 esac
6161 fi
6162 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6163 ac_prog_cc_stdc=c89 ;;
6164 esac
6165 fi
6166 fi
6167
6168 ac_ext=c
6169 ac_cpp='$CPP $CPPFLAGS'
6170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173
6174
6175 ac_ext=c
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6181 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6182 if test ${am_cv_prog_cc_c_o+y}
6183 then :
6184 printf %s "(cached) " >&6
6185 else case e in #(
6186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188
6189 int
6190 main (void)
6191 {
6192
6193 ;
6194 return 0;
6195 }
6196 _ACEOF
6197 # Make sure it works both with $CC and with simple cc.
6198 # Following AC_PROG_CC_C_O, we do the test twice because some
6199 # compilers refuse to overwrite an existing .o file with -o,
6200 # though they will create one.
6201 am_cv_prog_cc_c_o=yes
6202 for am_i in 1 2; do
6203 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6204 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); } \
6208 && test -f conftest2.$ac_objext; then
6209 : OK
6210 else
6211 am_cv_prog_cc_c_o=no
6212 break
6213 fi
6214 done
6215 # aligned with autoconf, so not including core; see bug#72225.
6216 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6217 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6218 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6219 unset am_i ;;
6220 esac
6221 fi
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6223 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6224 if test "$am_cv_prog_cc_c_o" != yes; then
6225 # Losing compiler, so override with the script.
6226 # FIXME: It is wrong to rewrite CC.
6227 # But if we don't then we get into trouble of one sort or another.
6228 # A longer-term fix would be to have automake use am__CC in this case,
6229 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6230 CC="$am_aux_dir/compile $CC"
6231 fi
6232 ac_ext=c
6233 ac_cpp='$CPP $CPPFLAGS'
6234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6237
6238
6239 depcc="$CC" am_compiler_list=
6240
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6242 printf %s "checking dependency style of $depcc... " >&6; }
6243 if test ${am_cv_CC_dependencies_compiler_type+y}
6244 then :
6245 printf %s "(cached) " >&6
6246 else case e in #(
6247 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6248 # We make a subdir and do the tests there. Otherwise we can end up
6249 # making bogus files that we don't know about and never remove. For
6250 # instance it was reported that on HP-UX the gcc test will end up
6251 # making a dummy file named 'D' -- because '-MD' means "put the output
6252 # in D".
6253 rm -rf conftest.dir
6254 mkdir conftest.dir
6255 # Copy depcomp to subdir because otherwise we won't find it if we're
6256 # using a relative directory.
6257 cp "$am_depcomp" conftest.dir
6258 cd conftest.dir
6259 # We will build objects and dependencies in a subdirectory because
6260 # it helps to detect inapplicable dependency modes. For instance
6261 # both Tru64's cc and ICC support -MD to output dependencies as a
6262 # side effect of compilation, but ICC will put the dependencies in
6263 # the current directory while Tru64 will put them in the object
6264 # directory.
6265 mkdir sub
6266
6267 am_cv_CC_dependencies_compiler_type=none
6268 if test "$am_compiler_list" = ""; then
6269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6270 fi
6271 am__universal=false
6272 case " $depcc " in #(
6273 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6274 esac
6275
6276 for depmode in $am_compiler_list; do
6277 # Setup a source with many dependencies, because some compilers
6278 # like to wrap large dependency lists on column 80 (with \), and
6279 # we should not choose a depcomp mode which is confused by this.
6280 #
6281 # We need to recreate these files for each test, as the compiler may
6282 # overwrite some of them when testing with obscure command lines.
6283 # This happens at least with the AIX C compiler.
6284 : > sub/conftest.c
6285 for i in 1 2 3 4 5 6; do
6286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6287 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6288 # Solaris 10 /bin/sh.
6289 echo '/* dummy */' > sub/conftst$i.h
6290 done
6291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6292
6293 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6294 # mode. It turns out that the SunPro C++ compiler does not properly
6295 # handle '-M -o', and we need to detect this. Also, some Intel
6296 # versions had trouble with output in subdirs.
6297 am__obj=sub/conftest.${OBJEXT-o}
6298 am__minus_obj="-o $am__obj"
6299 case $depmode in
6300 gcc)
6301 # This depmode causes a compiler race in universal mode.
6302 test "$am__universal" = false || continue
6303 ;;
6304 nosideeffect)
6305 # After this tag, mechanisms are not by side-effect, so they'll
6306 # only be used when explicitly requested.
6307 if test "x$enable_dependency_tracking" = xyes; then
6308 continue
6309 else
6310 break
6311 fi
6312 ;;
6313 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6314 # This compiler won't grok '-c -o', but also, the minuso test has
6315 # not run yet. These depmodes are late enough in the game, and
6316 # so weak that their functioning should not be impacted.
6317 am__obj=conftest.${OBJEXT-o}
6318 am__minus_obj=
6319 ;;
6320 none) break ;;
6321 esac
6322 if depmode=$depmode \
6323 source=sub/conftest.c object=$am__obj \
6324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6326 >/dev/null 2>conftest.err &&
6327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6331 # icc doesn't choke on unknown options, it will just issue warnings
6332 # or remarks (even with -Werror). So we grep stderr for any message
6333 # that says an option was ignored or not supported.
6334 # When given -MP, icc 7.0 and 7.1 complain thus:
6335 # icc: Command line warning: ignoring option '-M'; no argument required
6336 # The diagnosis changed in icc 8.0:
6337 # icc: Command line remark: option '-MP' not supported
6338 if (grep 'ignoring option' conftest.err ||
6339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6340 am_cv_CC_dependencies_compiler_type=$depmode
6341 break
6342 fi
6343 fi
6344 done
6345
6346 cd ..
6347 rm -rf conftest.dir
6348 else
6349 am_cv_CC_dependencies_compiler_type=none
6350 fi
6351 ;;
6352 esac
6353 fi
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6355 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6356 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6357
6358 if
6359 test "x$enable_dependency_tracking" != xno \
6360 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6361 am__fastdepCC_TRUE=
6362 am__fastdepCC_FALSE='#'
6363 else
6364 am__fastdepCC_TRUE='#'
6365 am__fastdepCC_FALSE=
6366 fi
6367
6368
6369
6370 ac_header= ac_cache=
6371 for ac_item in $ac_header_c_list
6372 do
6373 if test $ac_cache; then
6374 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6375 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6376 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6377 fi
6378 ac_header= ac_cache=
6379 elif test $ac_header; then
6380 ac_cache=$ac_item
6381 else
6382 ac_header=$ac_item
6383 fi
6384 done
6385
6386
6387
6388
6389
6390
6391
6392
6393 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6394 then :
6395
6396 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6397
6398 fi
6399
6400
6401
6402
6403
6404
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6406 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6407 if test ${ac_cv_safe_to_define___extensions__+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else case e in #(
6411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414 # define __EXTENSIONS__ 1
6415 $ac_includes_default
6416 int
6417 main (void)
6418 {
6419
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_compile "$LINENO"
6425 then :
6426 ac_cv_safe_to_define___extensions__=yes
6427 else case e in #(
6428 e) ac_cv_safe_to_define___extensions__=no ;;
6429 esac
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6432 esac
6433 fi
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6435 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6436
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6438 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6439 if test ${ac_cv_should_define__xopen_source+y}
6440 then :
6441 printf %s "(cached) " >&6
6442 else case e in #(
6443 e) ac_cv_should_define__xopen_source=no
6444 if test $ac_cv_header_wchar_h = yes
6445 then :
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448
6449 #include <wchar.h>
6450 mbstate_t x;
6451 int
6452 main (void)
6453 {
6454
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 if ac_fn_c_try_compile "$LINENO"
6460 then :
6461
6462 else case e in #(
6463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465
6466 #define _XOPEN_SOURCE 500
6467 #include <wchar.h>
6468 mbstate_t x;
6469 int
6470 main (void)
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_compile "$LINENO"
6478 then :
6479 ac_cv_should_define__xopen_source=yes
6480 fi
6481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6482 esac
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6485 fi ;;
6486 esac
6487 fi
6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6489 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6490
6491 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6492
6493 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6494
6495 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6496
6497 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6498
6499 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6500
6501 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6502
6503 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6504
6505 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6506
6507 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6508
6509 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6510
6511 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6512
6513 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6514
6515 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6516
6517 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6518
6519 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6520
6521 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6522
6523 if test $ac_cv_header_minix_config_h = yes
6524 then :
6525 MINIX=yes
6526 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6527
6528 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6529
6530 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6531
6532 else case e in #(
6533 e) MINIX= ;;
6534 esac
6535 fi
6536 if test $ac_cv_safe_to_define___extensions__ = yes
6537 then :
6538 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6539
6540 fi
6541 if test $ac_cv_should_define__xopen_source = yes
6542 then :
6543 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6544
6545 fi
6546
6547
6548 #Check for C++11 compliance
6549
6550 ax_cxx_compile_cxx11_required=false
6551 ac_ext=cpp
6552 ac_cpp='$CXXCPP $CPPFLAGS'
6553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6556 ac_success=no
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6558 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
6559 if test ${ax_cv_cxx_compile_cxx11+y}
6560 then :
6561 printf %s "(cached) " >&6
6562 else case e in #(
6563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565
6566 template <typename T>
6567 struct check
6568 {
6569 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6570 };
6571
6572 struct Base {
6573 virtual void f() {}
6574 };
6575 struct Child : public Base {
6576 virtual void f() {}
6577 };
6578
6579 typedef check<check<bool>> right_angle_brackets;
6580
6581 int a;
6582 decltype(a) b;
6583
6584 typedef check<int> check_type;
6585 check_type c;
6586 check_type&& cr = static_cast<check_type&&>(c);
6587
6588 auto d = a;
6589 auto l = [](){};
6590
6591 _ACEOF
6592 if ac_fn_cxx_try_compile "$LINENO"
6593 then :
6594 ax_cv_cxx_compile_cxx11=yes
6595 else case e in #(
6596 e) ax_cv_cxx_compile_cxx11=no ;;
6597 esac
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6600 esac
6601 fi
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6603 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
6604
6605 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6606 ac_success=yes
6607 fi
6608
6609 if test x$ac_success = xno; then
6610 for switch in -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x; do
6611 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6613 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
6614 if eval test \${$cachevar+y}
6615 then :
6616 printf %s "(cached) " >&6
6617 else case e in #(
6618 e) ac_save_CXXFLAGS="$CXXFLAGS"
6619 CXXFLAGS="$CXXFLAGS $switch"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622
6623 template <typename T>
6624 struct check
6625 {
6626 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6627 };
6628
6629 struct Base {
6630 virtual void f() {}
6631 };
6632 struct Child : public Base {
6633 virtual void f() {}
6634 };
6635
6636 typedef check<check<bool>> right_angle_brackets;
6637
6638 int a;
6639 decltype(a) b;
6640
6641 typedef check<int> check_type;
6642 check_type c;
6643 check_type&& cr = static_cast<check_type&&>(c);
6644
6645 auto d = a;
6646 auto l = [](){};
6647
6648 _ACEOF
6649 if ac_fn_cxx_try_compile "$LINENO"
6650 then :
6651 eval $cachevar=yes
6652 else case e in #(
6653 e) eval $cachevar=no ;;
6654 esac
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6657 CXXFLAGS="$ac_save_CXXFLAGS" ;;
6658 esac
6659 fi
6660 eval ac_res=\$$cachevar
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6662 printf "%s\n" "$ac_res" >&6; }
6663 if eval test x\$$cachevar = xyes; then
6664 CXXFLAGS="$CXXFLAGS $switch"
6665 CXX11_SWITCH="$switch"
6666
6667 ac_success=yes
6668 break
6669 fi
6670 done
6671 fi
6672
6673 ac_ext=c
6674 ac_cpp='$CPP $CPPFLAGS'
6675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678
6679
6680 if test x$ac_success = xno; then
6681 HAVE_CXX11=0
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6683 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
6684
6685 printf "%s\n" "#define HAVE_CXX11 0" >>confdefs.h
6686
6687 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6688 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6689 fi
6690 else
6691 HAVE_CXX11=1
6692
6693 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
6694
6695 fi
6696
6697
6698 # Checks for header files.
6699
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6701 printf %s "checking for grep that handles long lines and -e... " >&6; }
6702 if test ${ac_cv_path_GREP+y}
6703 then :
6704 printf %s "(cached) " >&6
6705 else case e in #(
6706 e) if test -z "$GREP"; then
6707 ac_path_GREP_found=false
6708 # Loop through the user's path and test for each of PROGNAME-LIST
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6711 do
6712 IFS=$as_save_IFS
6713 case $as_dir in #(((
6714 '') as_dir=./ ;;
6715 */) ;;
6716 *) as_dir=$as_dir/ ;;
6717 esac
6718 for ac_prog in grep ggrep
6719 do
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6722 as_fn_executable_p "$ac_path_GREP" || continue
6723 # Check for GNU ac_path_GREP and select it if it is found.
6724 # Check for GNU $ac_path_GREP
6725 case `"$ac_path_GREP" --version 2>&1` in #(
6726 *GNU*)
6727 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6728 #(
6729 *)
6730 ac_count=0
6731 printf %s 0123456789 >"conftest.in"
6732 while :
6733 do
6734 cat "conftest.in" "conftest.in" >"conftest.tmp"
6735 mv "conftest.tmp" "conftest.in"
6736 cp "conftest.in" "conftest.nl"
6737 printf "%s\n" 'GREP' >> "conftest.nl"
6738 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6740 as_fn_arith $ac_count + 1 && ac_count=$as_val
6741 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6742 # Best one so far, save it but keep looking for a better one
6743 ac_cv_path_GREP="$ac_path_GREP"
6744 ac_path_GREP_max=$ac_count
6745 fi
6746 # 10*(2^10) chars as input seems more than enough
6747 test $ac_count -gt 10 && break
6748 done
6749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6750 esac
6751
6752 $ac_path_GREP_found && break 3
6753 done
6754 done
6755 done
6756 IFS=$as_save_IFS
6757 if test -z "$ac_cv_path_GREP"; then
6758 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6759 fi
6760 else
6761 ac_cv_path_GREP=$GREP
6762 fi
6763 ;;
6764 esac
6765 fi
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6767 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6768 GREP="$ac_cv_path_GREP"
6769
6770
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6772 printf %s "checking for egrep... " >&6; }
6773 if test ${ac_cv_path_EGREP+y}
6774 then :
6775 printf %s "(cached) " >&6
6776 else case e in #(
6777 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6778 then ac_cv_path_EGREP="$GREP -E"
6779 else
6780 if test -z "$EGREP"; then
6781 ac_path_EGREP_found=false
6782 # Loop through the user's path and test for each of PROGNAME-LIST
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6785 do
6786 IFS=$as_save_IFS
6787 case $as_dir in #(((
6788 '') as_dir=./ ;;
6789 */) ;;
6790 *) as_dir=$as_dir/ ;;
6791 esac
6792 for ac_prog in egrep
6793 do
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6796 as_fn_executable_p "$ac_path_EGREP" || continue
6797 # Check for GNU ac_path_EGREP and select it if it is found.
6798 # Check for GNU $ac_path_EGREP
6799 case `"$ac_path_EGREP" --version 2>&1` in #(
6800 *GNU*)
6801 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6802 #(
6803 *)
6804 ac_count=0
6805 printf %s 0123456789 >"conftest.in"
6806 while :
6807 do
6808 cat "conftest.in" "conftest.in" >"conftest.tmp"
6809 mv "conftest.tmp" "conftest.in"
6810 cp "conftest.in" "conftest.nl"
6811 printf "%s\n" 'EGREP' >> "conftest.nl"
6812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6814 as_fn_arith $ac_count + 1 && ac_count=$as_val
6815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6816 # Best one so far, save it but keep looking for a better one
6817 ac_cv_path_EGREP="$ac_path_EGREP"
6818 ac_path_EGREP_max=$ac_count
6819 fi
6820 # 10*(2^10) chars as input seems more than enough
6821 test $ac_count -gt 10 && break
6822 done
6823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6824 esac
6825
6826 $ac_path_EGREP_found && break 3
6827 done
6828 done
6829 done
6830 IFS=$as_save_IFS
6831 if test -z "$ac_cv_path_EGREP"; then
6832 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6833 fi
6834 else
6835 ac_cv_path_EGREP=$EGREP
6836 fi
6837
6838 fi ;;
6839 esac
6840 fi
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6842 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6843 EGREP="$ac_cv_path_EGREP"
6844
6845 EGREP_TRADITIONAL=$EGREP
6846 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6847
6848 ac_header_dirent=no
6849 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6850 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6852 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
6853 if eval test \${$as_ac_Header+y}
6854 then :
6855 printf %s "(cached) " >&6
6856 else case e in #(
6857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <sys/types.h>
6860 #include <$ac_hdr>
6861
6862 int
6863 main (void)
6864 {
6865 if ((DIR *) 0)
6866 return 0;
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"
6872 then :
6873 eval "$as_ac_Header=yes"
6874 else case e in #(
6875 e) eval "$as_ac_Header=no" ;;
6876 esac
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6879 esac
6880 fi
6881 eval ac_res=\$$as_ac_Header
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6883 printf "%s\n" "$ac_res" >&6; }
6884 if eval test \"x\$"$as_ac_Header"\" = x"yes"
6885 then :
6886 cat >>confdefs.h <<_ACEOF
6887 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
6888 _ACEOF
6889
6890 ac_header_dirent=$ac_hdr; break
6891 fi
6892
6893 done
6894 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6895 if test $ac_header_dirent = dirent.h; then
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6897 printf %s "checking for library containing opendir... " >&6; }
6898 if test ${ac_cv_search_opendir+y}
6899 then :
6900 printf %s "(cached) " >&6
6901 else case e in #(
6902 e) ac_func_search_save_LIBS=$LIBS
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905
6906 /* Override any GCC internal prototype to avoid an error.
6907 Use char because int might match the return type of a GCC
6908 builtin and then its argument prototype would still apply.
6909 The 'extern "C"' is for builds by C++ compilers;
6910 although this is not generally supported in C code supporting it here
6911 has little cost and some practical benefit (sr 110532). */
6912 #ifdef __cplusplus
6913 extern "C"
6914 #endif
6915 char opendir (void);
6916 int
6917 main (void)
6918 {
6919 return opendir ();
6920 ;
6921 return 0;
6922 }
6923 _ACEOF
6924 for ac_lib in '' dir
6925 do
6926 if test -z "$ac_lib"; then
6927 ac_res="none required"
6928 else
6929 ac_res=-l$ac_lib
6930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6931 fi
6932 if ac_fn_c_try_link "$LINENO"
6933 then :
6934 ac_cv_search_opendir=$ac_res
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6937 conftest$ac_exeext
6938 if test ${ac_cv_search_opendir+y}
6939 then :
6940 break
6941 fi
6942 done
6943 if test ${ac_cv_search_opendir+y}
6944 then :
6945
6946 else case e in #(
6947 e) ac_cv_search_opendir=no ;;
6948 esac
6949 fi
6950 rm conftest.$ac_ext
6951 LIBS=$ac_func_search_save_LIBS ;;
6952 esac
6953 fi
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6955 printf "%s\n" "$ac_cv_search_opendir" >&6; }
6956 ac_res=$ac_cv_search_opendir
6957 if test "$ac_res" != no
6958 then :
6959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6960
6961 fi
6962
6963 else
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6965 printf %s "checking for library containing opendir... " >&6; }
6966 if test ${ac_cv_search_opendir+y}
6967 then :
6968 printf %s "(cached) " >&6
6969 else case e in #(
6970 e) ac_func_search_save_LIBS=$LIBS
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973
6974 /* Override any GCC internal prototype to avoid an error.
6975 Use char because int might match the return type of a GCC
6976 builtin and then its argument prototype would still apply.
6977 The 'extern "C"' is for builds by C++ compilers;
6978 although this is not generally supported in C code supporting it here
6979 has little cost and some practical benefit (sr 110532). */
6980 #ifdef __cplusplus
6981 extern "C"
6982 #endif
6983 char opendir (void);
6984 int
6985 main (void)
6986 {
6987 return opendir ();
6988 ;
6989 return 0;
6990 }
6991 _ACEOF
6992 for ac_lib in '' x
6993 do
6994 if test -z "$ac_lib"; then
6995 ac_res="none required"
6996 else
6997 ac_res=-l$ac_lib
6998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6999 fi
7000 if ac_fn_c_try_link "$LINENO"
7001 then :
7002 ac_cv_search_opendir=$ac_res
7003 fi
7004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7005 conftest$ac_exeext
7006 if test ${ac_cv_search_opendir+y}
7007 then :
7008 break
7009 fi
7010 done
7011 if test ${ac_cv_search_opendir+y}
7012 then :
7013
7014 else case e in #(
7015 e) ac_cv_search_opendir=no ;;
7016 esac
7017 fi
7018 rm conftest.$ac_ext
7019 LIBS=$ac_func_search_save_LIBS ;;
7020 esac
7021 fi
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7023 printf "%s\n" "$ac_cv_search_opendir" >&6; }
7024 ac_res=$ac_cv_search_opendir
7025 if test "$ac_res" != no
7026 then :
7027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7028
7029 fi
7030
7031 fi
7032
7033 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
7034 if test "x$ac_cv_header_arpa_inet_h" = xyes
7035 then :
7036 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
7037
7038 fi
7039 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
7040 if test "x$ac_cv_header_execinfo_h" = xyes
7041 then :
7042 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
7043
7044 fi
7045 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
7046 if test "x$ac_cv_header_fcntl_h" = xyes
7047 then :
7048 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
7049
7050 fi
7051 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
7052 if test "x$ac_cv_header_limits_h" = xyes
7053 then :
7054 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
7055
7056 fi
7057 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
7058 if test "x$ac_cv_header_memory_h" = xyes
7059 then :
7060 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
7061
7062 fi
7063 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
7064 if test "x$ac_cv_header_netdb_h" = xyes
7065 then :
7066 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
7067
7068 fi
7069 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
7070 if test "x$ac_cv_header_netinet_in_h" = xyes
7071 then :
7072 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
7073
7074 fi
7075 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
7076 if test "x$ac_cv_header_regex_h" = xyes
7077 then :
7078 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
7079
7080 fi
7081 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7082 if test "x$ac_cv_header_stdint_h" = xyes
7083 then :
7084 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
7085
7086 fi
7087 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7088 if test "x$ac_cv_header_stdlib_h" = xyes
7089 then :
7090 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
7091
7092 fi
7093 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
7094 if test "x$ac_cv_header_string_h" = xyes
7095 then :
7096 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
7097
7098 fi
7099 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
7100 if test "x$ac_cv_header_strings_h" = xyes
7101 then :
7102 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
7103
7104 fi
7105 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7106 if test "x$ac_cv_header_sys_ioctl_h" = xyes
7107 then :
7108 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7109
7110 fi
7111 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
7112 if test "x$ac_cv_header_sys_param_h" = xyes
7113 then :
7114 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
7115
7116 fi
7117 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7118 if test "x$ac_cv_header_sys_socket_h" = xyes
7119 then :
7120 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
7121
7122 fi
7123 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
7124 if test "x$ac_cv_header_sys_time_h" = xyes
7125 then :
7126 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
7127
7128 fi
7129 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
7130 if test "x$ac_cv_header_sys_utsname_h" = xyes
7131 then :
7132 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
7133
7134 fi
7135 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
7136 if test "x$ac_cv_header_termios_h" = xyes
7137 then :
7138 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
7139
7140 fi
7141 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7142 if test "x$ac_cv_header_unistd_h" = xyes
7143 then :
7144 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
7145
7146 fi
7147 ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default"
7148 if test "x$ac_cv_header_values_h" = xyes
7149 then :
7150 printf "%s\n" "#define HAVE_VALUES_H 1" >>confdefs.h
7151
7152 fi
7153 ac_fn_c_check_header_compile "$LINENO" "linux/ppdev.h" "ac_cv_header_linux_ppdev_h" "$ac_includes_default"
7154 if test "x$ac_cv_header_linux_ppdev_h" = xyes
7155 then :
7156 printf "%s\n" "#define HAVE_LINUX_PPDEV_H 1" >>confdefs.h
7157
7158 fi
7159 ac_fn_c_check_header_compile "$LINENO" "dev/ppbus/ppi.h" "ac_cv_header_dev_ppbus_ppi_h" "$ac_includes_default"
7160 if test "x$ac_cv_header_dev_ppbus_ppi_h" = xyes
7161 then :
7162 printf "%s\n" "#define HAVE_DEV_PPBUS_PPI_H 1" >>confdefs.h
7163
7164 fi
7165
7166
7167 # Checks for typedefs, structures, and compiler characteristics.
7168 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7169 if test "x$ac_cv_type__Bool" = xyes
7170 then :
7171
7172 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
7173
7174
7175 fi
7176
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
7178 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
7179 if test ${ac_cv_header_stdbool_h+y}
7180 then :
7181 printf %s "(cached) " >&6
7182 else case e in #(
7183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 #include <stdbool.h>
7186
7187 /* "true" and "false" should be usable in #if expressions and
7188 integer constant expressions, and "bool" should be a valid
7189 type name.
7190
7191 Although C99 requires bool, true, and false to be macros,
7192 C23 and C++11 overrule that, so do not test for that.
7193 Although C99 requires __bool_true_false_are_defined and
7194 _Bool, C23 says they are obsolescent, so do not require
7195 them. */
7196
7197 #if !true
7198 #error "'true' is not true"
7199 #endif
7200 #if true != 1
7201 #error "'true' is not equal to 1"
7202 #endif
7203 char b[true == 1 ? 1 : -1];
7204 char c[true];
7205
7206 #if false
7207 #error "'false' is not false"
7208 #endif
7209 #if false != 0
7210 #error "'false' is not equal to 0"
7211 #endif
7212 char d[false == 0 ? 1 : -1];
7213
7214 enum { e = false, f = true, g = false * true, h = true * 256 };
7215
7216 char i[(bool) 0.5 == true ? 1 : -1];
7217 char j[(bool) 0.0 == false ? 1 : -1];
7218 char k[sizeof (bool) > 0 ? 1 : -1];
7219
7220 struct sb { bool s: 1; bool t; } s;
7221 char l[sizeof s.t > 0 ? 1 : -1];
7222
7223 /* The following fails for
7224 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7225 bool m[h];
7226 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
7227 char o[-1 - (bool) 0 < 0 ? 1 : -1];
7228 /* Catch a bug in an HP-UX C compiler. See
7229 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7230 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
7231 */
7232 bool p = true;
7233 bool *pp = &p;
7234
7235 int
7236 main (void)
7237 {
7238
7239 bool ps = &s;
7240 *pp |= p;
7241 *pp |= ! p;
7242
7243 /* Refer to every declared value, so they cannot be
7244 discarded as unused. */
7245 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7246 + !l + !m + !n + !o + !p + !pp + !ps);
7247
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 if ac_fn_c_try_compile "$LINENO"
7253 then :
7254 ac_cv_header_stdbool_h=yes
7255 else case e in #(
7256 e) ac_cv_header_stdbool_h=no ;;
7257 esac
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7260 esac
7261 fi
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7263 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
7264
7265 if test $ac_cv_header_stdbool_h = yes; then
7266
7267 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
7268
7269 fi
7270
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7272 printf %s "checking for an ANSI C-conforming const... " >&6; }
7273 if test ${ac_cv_c_const+y}
7274 then :
7275 printf %s "(cached) " >&6
7276 else case e in #(
7277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279
7280 int
7281 main (void)
7282 {
7283
7284 #ifndef __cplusplus
7285 /* Ultrix mips cc rejects this sort of thing. */
7286 typedef int charset[2];
7287 const charset cs = { 0, 0 };
7288 /* SunOS 4.1.1 cc rejects this. */
7289 char const *const *pcpcc;
7290 char **ppc;
7291 /* NEC SVR4.0.2 mips cc rejects this. */
7292 struct point {int x, y;};
7293 static struct point const zero = {0,0};
7294 /* IBM XL C 1.02.0.0 rejects this.
7295 It does not let you subtract one const X* pointer from another in
7296 an arm of an if-expression whose if-part is not a constant
7297 expression */
7298 const char *g = "string";
7299 pcpcc = &g + (g ? g-g : 0);
7300 /* HPUX 7.0 cc rejects these. */
7301 ++pcpcc;
7302 ppc = (char**) pcpcc;
7303 pcpcc = (char const *const *) ppc;
7304 { /* SCO 3.2v4 cc rejects this sort of thing. */
7305 char tx;
7306 char *t = &tx;
7307 char const *s = 0 ? (char *) 0 : (char const *) 0;
7308
7309 *t++ = 0;
7310 if (s) return 0;
7311 }
7312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7313 int x[] = {25, 17};
7314 const int *foo = &x[0];
7315 ++foo;
7316 }
7317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7318 typedef const int *iptr;
7319 iptr p = 0;
7320 ++p;
7321 }
7322 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7324 struct s { int j; const int *ap[3]; } bx;
7325 struct s *b = &bx; b->j = 5;
7326 }
7327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7328 const int foo = 10;
7329 if (!foo) return 0;
7330 }
7331 return !cs[0] && !zero.x;
7332 #endif
7333
7334 ;
7335 return 0;
7336 }
7337 _ACEOF
7338 if ac_fn_c_try_compile "$LINENO"
7339 then :
7340 ac_cv_c_const=yes
7341 else case e in #(
7342 e) ac_cv_c_const=no ;;
7343 esac
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7346 esac
7347 fi
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7349 printf "%s\n" "$ac_cv_c_const" >&6; }
7350 if test $ac_cv_c_const = no; then
7351
7352 printf "%s\n" "#define const /**/" >>confdefs.h
7353
7354 fi
7355
7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7357 printf %s "checking for inline... " >&6; }
7358 if test ${ac_cv_c_inline+y}
7359 then :
7360 printf %s "(cached) " >&6
7361 else case e in #(
7362 e) ac_cv_c_inline=no
7363 for ac_kw in inline __inline__ __inline; do
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 #ifndef __cplusplus
7367 typedef int foo_t;
7368 static $ac_kw foo_t static_foo (void) {return 0; }
7369 $ac_kw foo_t foo (void) {return 0; }
7370 #endif
7371
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"
7374 then :
7375 ac_cv_c_inline=$ac_kw
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7378 test "$ac_cv_c_inline" != no && break
7379 done
7380 ;;
7381 esac
7382 fi
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7384 printf "%s\n" "$ac_cv_c_inline" >&6; }
7385
7386 case $ac_cv_c_inline in
7387 inline | yes) ;;
7388 *)
7389 case $ac_cv_c_inline in
7390 no) ac_val=;;
7391 *) ac_val=$ac_cv_c_inline;;
7392 esac
7393 cat >>confdefs.h <<_ACEOF
7394 #ifndef __cplusplus
7395 #define inline $ac_val
7396 #endif
7397 _ACEOF
7398 ;;
7399 esac
7400
7401 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
7402 case $ac_cv_c_int16_t in #(
7403 no|yes) ;; #(
7404 *)
7405
7406 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
7407 ;;
7408 esac
7409
7410 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7411 case $ac_cv_c_int32_t in #(
7412 no|yes) ;; #(
7413 *)
7414
7415 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
7416 ;;
7417 esac
7418
7419 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7420 case $ac_cv_c_int64_t in #(
7421 no|yes) ;; #(
7422 *)
7423
7424 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
7425 ;;
7426 esac
7427
7428 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
7429 case $ac_cv_c_int8_t in #(
7430 no|yes) ;; #(
7431 *)
7432
7433 printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
7434 ;;
7435 esac
7436
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7438 printf %s "checking for C/C++ restrict keyword... " >&6; }
7439 if test ${ac_cv_c_restrict+y}
7440 then :
7441 printf %s "(cached) " >&6
7442 else case e in #(
7443 e) ac_cv_c_restrict=no
7444 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
7445 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
7446 # Put 'restrict' last, because C++ lacks it.
7447 for ac_kw in __restrict__ __restrict _Restrict restrict; do
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7450 typedef int *int_ptr;
7451 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7452 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7453 int bar (int ip[$ac_kw]) { return ip[0]; }
7454
7455 int
7456 main (void)
7457 {
7458 int s[1];
7459 int *$ac_kw t = s;
7460 t[0] = 0;
7461 return foo (t) + bar (t);
7462
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 if ac_fn_c_try_compile "$LINENO"
7468 then :
7469 ac_cv_c_restrict=$ac_kw
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7472 test "$ac_cv_c_restrict" != no && break
7473 done
7474 ;;
7475 esac
7476 fi
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7478 printf "%s\n" "$ac_cv_c_restrict" >&6; }
7479
7480 case $ac_cv_c_restrict in
7481 restrict) ;;
7482 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
7483 ;;
7484 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
7485 ;;
7486 esac
7487
7488 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7489 if test "x$ac_cv_type_size_t" = xyes
7490 then :
7491
7492 else case e in #(
7493 e)
7494 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7495 ;;
7496 esac
7497 fi
7498
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7500 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7501 if test ${ac_cv_struct_tm+y}
7502 then :
7503 printf %s "(cached) " >&6
7504 else case e in #(
7505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <sys/types.h>
7508 #include <time.h>
7509
7510 int
7511 main (void)
7512 {
7513 struct tm tm;
7514 int *p = &tm.tm_sec;
7515 return !p;
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"
7521 then :
7522 ac_cv_struct_tm=time.h
7523 else case e in #(
7524 e) ac_cv_struct_tm=sys/time.h ;;
7525 esac
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7528 esac
7529 fi
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7531 printf "%s\n" "$ac_cv_struct_tm" >&6; }
7532 if test $ac_cv_struct_tm = sys/time.h; then
7533
7534 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
7535
7536 fi
7537
7538 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7539 case $ac_cv_c_uint16_t in #(
7540 no|yes) ;; #(
7541 *)
7542
7543
7544 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
7545 ;;
7546 esac
7547
7548 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7549 case $ac_cv_c_uint32_t in #(
7550 no|yes) ;; #(
7551 *)
7552
7553 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
7554
7555
7556 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
7557 ;;
7558 esac
7559
7560 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7561 case $ac_cv_c_uint64_t in #(
7562 no|yes) ;; #(
7563 *)
7564
7565 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
7566
7567
7568 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
7569 ;;
7570 esac
7571
7572 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7573 case $ac_cv_c_uint8_t in #(
7574 no|yes) ;; #(
7575 *)
7576
7577 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
7578
7579
7580 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
7581 ;;
7582 esac
7583
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7585 printf %s "checking for working volatile... " >&6; }
7586 if test ${ac_cv_c_volatile+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else case e in #(
7590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592
7593 int
7594 main (void)
7595 {
7596
7597 volatile int x;
7598 int * volatile y = (int *) 0;
7599 return !x && !y;
7600 ;
7601 return 0;
7602 }
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"
7605 then :
7606 ac_cv_c_volatile=yes
7607 else case e in #(
7608 e) ac_cv_c_volatile=no ;;
7609 esac
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7612 esac
7613 fi
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7615 printf "%s\n" "$ac_cv_c_volatile" >&6; }
7616 if test $ac_cv_c_volatile = no; then
7617
7618 printf "%s\n" "#define volatile /**/" >>confdefs.h
7619
7620 fi
7621
7622
7623 # Checks for library functions.
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7625 printf %s "checking whether closedir returns void... " >&6; }
7626 if test ${ac_cv_func_closedir_void+y}
7627 then :
7628 printf %s "(cached) " >&6
7629 else case e in #(
7630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632
7633 #include <$ac_header_dirent>
7634
7635 int
7636 main (void)
7637 {
7638
7639 return closedir(0);
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_compile "$LINENO"
7646 then :
7647 ac_cv_func_closedir_void=no
7648 else case e in #(
7649 e) ac_cv_func_closedir_void=yes ;;
7650 esac
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7653 esac
7654 fi
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7656 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
7657 if test $ac_cv_func_closedir_void = yes; then
7658
7659 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
7660
7661 fi
7662
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
7664 printf %s "checking for error_at_line... " >&6; }
7665 if test ${ac_cv_lib_error_at_line+y}
7666 then :
7667 printf %s "(cached) " >&6
7668 else case e in #(
7669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 #include <error.h>
7672 int
7673 main (void)
7674 {
7675 error_at_line (0, 0, "", 0, "an error occurred");
7676 ;
7677 return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_link "$LINENO"
7681 then :
7682 ac_cv_lib_error_at_line=yes
7683 else case e in #(
7684 e) ac_cv_lib_error_at_line=no ;;
7685 esac
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7688 conftest$ac_exeext conftest.$ac_ext ;;
7689 esac
7690 fi
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
7692 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
7693 if test $ac_cv_lib_error_at_line = no; then
7694 case " $LIBOBJS " in
7695 *" error.$ac_objext "* ) ;;
7696 *) LIBOBJS="$LIBOBJS error.$ac_objext"
7697 ;;
7698 esac
7699
7700 fi
7701
7702
7703
7704
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
7706 printf %s "checking types of arguments for select... " >&6; }
7707 if test ${ac_cv_func_select_args+y}
7708 then :
7709 printf %s "(cached) " >&6
7710 else case e in #(
7711 e) ac_cv_func_select_args='int,int *,struct timeval *'
7712 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7713 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
7714 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 $ac_includes_default
7718 #ifdef HAVE_SYS_SELECT_H
7719 # include <sys/select.h>
7720 #endif
7721 #ifdef HAVE_SYS_SOCKET_H
7722 # include <sys/socket.h>
7723 #endif
7724
7725 int
7726 main (void)
7727 {
7728 extern int select ($ac_arg1,
7729 $ac_arg234, $ac_arg234, $ac_arg234,
7730 $ac_arg5);
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_compile "$LINENO"
7736 then :
7737 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7740 done
7741 done
7742 done
7743 ;;
7744 esac
7745 fi
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
7747 printf "%s\n" "$ac_cv_func_select_args" >&6; }
7748 ac_save_IFS=$IFS; IFS=','
7749 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
7750 IFS=$ac_save_IFS
7751 shift
7752
7753 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
7754
7755
7756 printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
7757
7758
7759 printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
7760
7761 rm -rf conftest*
7762
7763
7764 for ac_func in strftime
7765 do :
7766 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
7767 if test "x$ac_cv_func_strftime" = xyes
7768 then :
7769 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
7770
7771 else case e in #(
7772 e) # strftime is in -lintl on SCO UNIX.
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
7774 printf %s "checking for strftime in -lintl... " >&6; }
7775 if test ${ac_cv_lib_intl_strftime+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else case e in #(
7779 e) ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-lintl $LIBS"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783
7784 /* Override any GCC internal prototype to avoid an error.
7785 Use char because int might match the return type of a GCC
7786 builtin and then its argument prototype would still apply.
7787 The 'extern "C"' is for builds by C++ compilers;
7788 although this is not generally supported in C code supporting it here
7789 has little cost and some practical benefit (sr 110532). */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char strftime (void);
7794 int
7795 main (void)
7796 {
7797 return strftime ();
7798 ;
7799 return 0;
7800 }
7801 _ACEOF
7802 if ac_fn_c_try_link "$LINENO"
7803 then :
7804 ac_cv_lib_intl_strftime=yes
7805 else case e in #(
7806 e) ac_cv_lib_intl_strftime=no ;;
7807 esac
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7810 conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS ;;
7812 esac
7813 fi
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
7815 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
7816 if test "x$ac_cv_lib_intl_strftime" = xyes
7817 then :
7818 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
7819
7820 LIBS="-lintl $LIBS"
7821 fi
7822 ;;
7823 esac
7824 fi
7825
7826 done
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
7828 printf %s "checking for working strtod... " >&6; }
7829 if test ${ac_cv_func_strtod+y}
7830 then :
7831 printf %s "(cached) " >&6
7832 else case e in #(
7833 e) if test "$cross_compiling" = yes
7834 then :
7835 ac_cv_func_strtod=no
7836 else case e in #(
7837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839
7840 $ac_includes_default
7841 int
7842 main (void)
7843 {
7844 {
7845 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
7846 char *string = " +69";
7847 char *term;
7848 double value;
7849 value = strtod (string, &term);
7850 if (value != 69 || term != (string + 4))
7851 return 1;
7852 }
7853
7854 {
7855 /* Under Solaris 2.4, strtod returns the wrong value for the
7856 terminating character under some conditions. */
7857 char *string = "NaN";
7858 char *term;
7859 strtod (string, &term);
7860 if (term != string && *(term - 1) == 0)
7861 return 1;
7862 }
7863 return 0;
7864 }
7865
7866 _ACEOF
7867 if ac_fn_c_try_run "$LINENO"
7868 then :
7869 ac_cv_func_strtod=yes
7870 else case e in #(
7871 e) ac_cv_func_strtod=no ;;
7872 esac
7873 fi
7874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7875 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7876 esac
7877 fi
7878 ;;
7879 esac
7880 fi
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
7882 printf "%s\n" "$ac_cv_func_strtod" >&6; }
7883 if test $ac_cv_func_strtod = no; then
7884 case " $LIBOBJS " in
7885 *" strtod.$ac_objext "* ) ;;
7886 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7887 ;;
7888 esac
7889
7890 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
7891 if test "x$ac_cv_func_pow" = xyes
7892 then :
7893
7894 fi
7895
7896 if test $ac_cv_func_pow = no; then
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
7898 printf %s "checking for pow in -lm... " >&6; }
7899 if test ${ac_cv_lib_m_pow+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else case e in #(
7903 e) ac_check_lib_save_LIBS=$LIBS
7904 LIBS="-lm $LIBS"
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907
7908 /* Override any GCC internal prototype to avoid an error.
7909 Use char because int might match the return type of a GCC
7910 builtin and then its argument prototype would still apply.
7911 The 'extern "C"' is for builds by C++ compilers;
7912 although this is not generally supported in C code supporting it here
7913 has little cost and some practical benefit (sr 110532). */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 char pow (void);
7918 int
7919 main (void)
7920 {
7921 return pow ();
7922 ;
7923 return 0;
7924 }
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"
7927 then :
7928 ac_cv_lib_m_pow=yes
7929 else case e in #(
7930 e) ac_cv_lib_m_pow=no ;;
7931 esac
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7934 conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_lib_save_LIBS ;;
7936 esac
7937 fi
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
7939 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
7940 if test "x$ac_cv_lib_m_pow" = xyes
7941 then :
7942 POW_LIB=-lm
7943 else case e in #(
7944 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
7945 printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
7946 esac
7947 fi
7948
7949 fi
7950
7951 fi
7952
7953 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
7954 if test "x$ac_cv_func_getaddrinfo" = xyes
7955 then :
7956 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
7957
7958 fi
7959 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7960 if test "x$ac_cv_func_gethostbyname" = xyes
7961 then :
7962 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
7963
7964 fi
7965 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
7966 if test "x$ac_cv_func_hstrerror" = xyes
7967 then :
7968 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
7969
7970 fi
7971 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
7972 if test "x$ac_cv_func_gmtime_r" = xyes
7973 then :
7974 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
7975
7976 fi
7977 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
7978 if test "x$ac_cv_func_localtime_r" = xyes
7979 then :
7980 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
7981
7982 fi
7983 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
7984 if test "x$ac_cv_func_memmove" = xyes
7985 then :
7986 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
7987
7988 fi
7989 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
7990 if test "x$ac_cv_func_memset" = xyes
7991 then :
7992 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
7993
7994 fi
7995 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
7996 if test "x$ac_cv_func_mkdir" = xyes
7997 then :
7998 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
7999
8000 fi
8001 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
8002 if test "x$ac_cv_func_select" = xyes
8003 then :
8004 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
8005
8006 fi
8007 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
8008 if test "x$ac_cv_func_setenv" = xyes
8009 then :
8010 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
8011
8012 fi
8013 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
8014 if test "x$ac_cv_func_snprintf" = xyes
8015 then :
8016 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
8017
8018 fi
8019 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
8020 if test "x$ac_cv_func_socket" = xyes
8021 then :
8022 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
8023
8024 fi
8025 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
8026 if test "x$ac_cv_func_socketpair" = xyes
8027 then :
8028 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
8029
8030 fi
8031 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
8032 if test "x$ac_cv_func_strcasecmp" = xyes
8033 then :
8034 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
8035
8036 fi
8037 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
8038 if test "x$ac_cv_func_strcasestr" = xyes
8039 then :
8040 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
8041
8042 fi
8043 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
8044 if test "x$ac_cv_func_strchr" = xyes
8045 then :
8046 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
8047
8048 fi
8049 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
8050 if test "x$ac_cv_func_strdup" = xyes
8051 then :
8052 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
8053
8054 fi
8055 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
8056 if test "x$ac_cv_func_strerror" = xyes
8057 then :
8058 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
8059
8060 fi
8061 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
8062 if test "x$ac_cv_func_strlcpy" = xyes
8063 then :
8064 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
8065
8066 fi
8067 ac_fn_c_check_func "$LINENO" "strncpy" "ac_cv_func_strncpy"
8068 if test "x$ac_cv_func_strncpy" = xyes
8069 then :
8070 printf "%s\n" "#define HAVE_STRNCPY 1" >>confdefs.h
8071
8072 fi
8073 ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
8074 if test "x$ac_cv_func_strncmp" = xyes
8075 then :
8076 printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
8077
8078 fi
8079 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
8080 if test "x$ac_cv_func_strnlen" = xyes
8081 then :
8082 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
8083
8084 fi
8085 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
8086 if test "x$ac_cv_func_strncasecmp" = xyes
8087 then :
8088 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
8089
8090 fi
8091 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
8092 if test "x$ac_cv_func_strrchr" = xyes
8093 then :
8094 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
8095
8096 fi
8097 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
8098 if test "x$ac_cv_func_strstr" = xyes
8099 then :
8100 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
8101
8102 fi
8103 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
8104 if test "x$ac_cv_func_strtol" = xyes
8105 then :
8106 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
8107
8108 fi
8109 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
8110 if test "x$ac_cv_func_uname" = xyes
8111 then :
8112 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
8113
8114 fi
8115 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
8116 if test "x$ac_cv_func_unsetenv" = xyes
8117 then :
8118 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
8119
8120 fi
8121 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
8122 if test "x$ac_cv_func_vsnprintf" = xyes
8123 then :
8124 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
8125
8126 fi
8127
8128
8129 # Check for O_CLOEXEC
8130
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
8132 printf %s "checking for O_CLOEXEC... " >&6; }
8133 if test ${ac_cv_o_cloexec+y}
8134 then :
8135 printf %s "(cached) " >&6
8136 else case e in #(
8137 e)
8138 ac_ext=c
8139 ac_cpp='$CPP $CPPFLAGS'
8140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8143
8144 save_CFLAGS="$CFLAGS"
8145 CFLAGS="$CFLAGS -I${srcdir}"
8146
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 #include <fcntl.h>
8150 int
8151 main (void)
8152 {
8153 int flags= O_CLOEXEC
8154 ;
8155 return 0;
8156 }
8157 _ACEOF
8158 if ac_fn_c_try_compile "$LINENO"
8159 then :
8160 ac_cv_o_cloexec="yes"
8161 else case e in #(
8162 e) ac_cv_o_cloexec="no" ;;
8163 esac
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8166 ac_ext=c
8167 ac_cpp='$CPP $CPPFLAGS'
8168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8171
8172 ;;
8173 esac
8174 fi
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
8176 printf "%s\n" "$ac_cv_o_cloexec" >&6; }
8177
8178 if test "x$ac_cv_o_cloexec" = "xyes"
8179 then :
8180
8181 printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
8182
8183 fi
8184
8185
8186
8187
8188
8189
8190 ### Internationalization
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8192 printf %s "checking for a sed that does not truncate output... " >&6; }
8193 if test ${ac_cv_path_SED+y}
8194 then :
8195 printf %s "(cached) " >&6
8196 else case e in #(
8197 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8198 for ac_i in 1 2 3 4 5 6 7; do
8199 ac_script="$ac_script$as_nl$ac_script"
8200 done
8201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8202 { ac_script=; unset ac_script;}
8203 if test -z "$SED"; then
8204 ac_path_SED_found=false
8205 # Loop through the user's path and test for each of PROGNAME-LIST
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8208 do
8209 IFS=$as_save_IFS
8210 case $as_dir in #(((
8211 '') as_dir=./ ;;
8212 */) ;;
8213 *) as_dir=$as_dir/ ;;
8214 esac
8215 for ac_prog in sed gsed
8216 do
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8219 as_fn_executable_p "$ac_path_SED" || continue
8220 # Check for GNU ac_path_SED and select it if it is found.
8221 # Check for GNU $ac_path_SED
8222 case `"$ac_path_SED" --version 2>&1` in #(
8223 *GNU*)
8224 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8225 #(
8226 *)
8227 ac_count=0
8228 printf %s 0123456789 >"conftest.in"
8229 while :
8230 do
8231 cat "conftest.in" "conftest.in" >"conftest.tmp"
8232 mv "conftest.tmp" "conftest.in"
8233 cp "conftest.in" "conftest.nl"
8234 printf "%s\n" '' >> "conftest.nl"
8235 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8237 as_fn_arith $ac_count + 1 && ac_count=$as_val
8238 if test $ac_count -gt ${ac_path_SED_max-0}; then
8239 # Best one so far, save it but keep looking for a better one
8240 ac_cv_path_SED="$ac_path_SED"
8241 ac_path_SED_max=$ac_count
8242 fi
8243 # 10*(2^10) chars as input seems more than enough
8244 test $ac_count -gt 10 && break
8245 done
8246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8247 esac
8248
8249 $ac_path_SED_found && break 3
8250 done
8251 done
8252 done
8253 IFS=$as_save_IFS
8254 if test -z "$ac_cv_path_SED"; then
8255 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8256 fi
8257 else
8258 ac_cv_path_SED=$SED
8259 fi
8260 ;;
8261 esac
8262 fi
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8264 printf "%s\n" "$ac_cv_path_SED" >&6; }
8265 SED="$ac_cv_path_SED"
8266 rm -f conftest.sed
8267
8268
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8270 printf %s "checking whether NLS is requested... " >&6; }
8271 # Check whether --enable-nls was given.
8272 if test ${enable_nls+y}
8273 then :
8274 enableval=$enable_nls; USE_NLS=$enableval
8275 else case e in #(
8276 e) USE_NLS=yes ;;
8277 esac
8278 fi
8279
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8281 printf "%s\n" "$USE_NLS" >&6; }
8282
8283
8284
8285
8286 GETTEXT_MACRO_VERSION=0.20
8287
8288
8289
8290
8291 # Prepare PATH_SEPARATOR.
8292 # The user is always right.
8293 if test "${PATH_SEPARATOR+set}" != set; then
8294 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8295 # contains only /bin. Note that ksh looks also at the FPATH variable,
8296 # so we have to set that as well for the test.
8297 PATH_SEPARATOR=:
8298 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8299 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8300 || PATH_SEPARATOR=';'
8301 }
8302 fi
8303
8304 # Find out how to test for executable files. Don't use a zero-byte file,
8305 # as systems may use methods other than mode bits to determine executability.
8306 cat >conf$$.file <<_ASEOF
8307 #! /bin/sh
8308 exit 0
8309 _ASEOF
8310 chmod +x conf$$.file
8311 if test -x conf$$.file >/dev/null 2>&1; then
8312 ac_executable_p="test -x"
8313 else
8314 ac_executable_p="test -f"
8315 fi
8316 rm -f conf$$.file
8317
8318 # Extract the first word of "msgfmt", so it can be a program name with args.
8319 set dummy msgfmt; ac_word=$2
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 printf %s "checking for $ac_word... " >&6; }
8322 if test ${ac_cv_path_MSGFMT+y}
8323 then :
8324 printf %s "(cached) " >&6
8325 else case e in #(
8326 e) case "$MSGFMT" in
8327 [\\/]* | ?:[\\/]*)
8328 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8329 ;;
8330 *)
8331 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8332 for ac_dir in $PATH; do
8333 IFS="$ac_save_IFS"
8334 test -z "$ac_dir" && ac_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8337 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8338 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8339 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8340 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8341 break 2
8342 fi
8343 fi
8344 done
8345 done
8346 IFS="$ac_save_IFS"
8347 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8348 ;;
8349 esac ;;
8350 esac
8351 fi
8352 MSGFMT="$ac_cv_path_MSGFMT"
8353 if test "$MSGFMT" != ":"; then
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8355 printf "%s\n" "$MSGFMT" >&6; }
8356 else
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 printf "%s\n" "no" >&6; }
8359 fi
8360
8361 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8362 set dummy gmsgfmt; ac_word=$2
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 printf %s "checking for $ac_word... " >&6; }
8365 if test ${ac_cv_path_GMSGFMT+y}
8366 then :
8367 printf %s "(cached) " >&6
8368 else case e in #(
8369 e) case $GMSGFMT in
8370 [\\/]* | ?:[\\/]*)
8371 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8372 ;;
8373 *)
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377 IFS=$as_save_IFS
8378 case $as_dir in #(((
8379 '') as_dir=./ ;;
8380 */) ;;
8381 *) as_dir=$as_dir/ ;;
8382 esac
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8385 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389 done
8390 done
8391 IFS=$as_save_IFS
8392
8393 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8394 ;;
8395 esac ;;
8396 esac
8397 fi
8398 GMSGFMT=$ac_cv_path_GMSGFMT
8399 if test -n "$GMSGFMT"; then
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8401 printf "%s\n" "$GMSGFMT" >&6; }
8402 else
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 printf "%s\n" "no" >&6; }
8405 fi
8406
8407
8408
8409 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8410 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8411 *) GMSGFMT_015=$GMSGFMT ;;
8412 esac
8413
8414
8415
8416 # Prepare PATH_SEPARATOR.
8417 # The user is always right.
8418 if test "${PATH_SEPARATOR+set}" != set; then
8419 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8420 # contains only /bin. Note that ksh looks also at the FPATH variable,
8421 # so we have to set that as well for the test.
8422 PATH_SEPARATOR=:
8423 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8424 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8425 || PATH_SEPARATOR=';'
8426 }
8427 fi
8428
8429 # Find out how to test for executable files. Don't use a zero-byte file,
8430 # as systems may use methods other than mode bits to determine executability.
8431 cat >conf$$.file <<_ASEOF
8432 #! /bin/sh
8433 exit 0
8434 _ASEOF
8435 chmod +x conf$$.file
8436 if test -x conf$$.file >/dev/null 2>&1; then
8437 ac_executable_p="test -x"
8438 else
8439 ac_executable_p="test -f"
8440 fi
8441 rm -f conf$$.file
8442
8443 # Extract the first word of "xgettext", so it can be a program name with args.
8444 set dummy xgettext; ac_word=$2
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 printf %s "checking for $ac_word... " >&6; }
8447 if test ${ac_cv_path_XGETTEXT+y}
8448 then :
8449 printf %s "(cached) " >&6
8450 else case e in #(
8451 e) case "$XGETTEXT" in
8452 [\\/]* | ?:[\\/]*)
8453 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8454 ;;
8455 *)
8456 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8457 for ac_dir in $PATH; do
8458 IFS="$ac_save_IFS"
8459 test -z "$ac_dir" && ac_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8462 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8463 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8464 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8465 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8466 break 2
8467 fi
8468 fi
8469 done
8470 done
8471 IFS="$ac_save_IFS"
8472 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8473 ;;
8474 esac ;;
8475 esac
8476 fi
8477 XGETTEXT="$ac_cv_path_XGETTEXT"
8478 if test "$XGETTEXT" != ":"; then
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8480 printf "%s\n" "$XGETTEXT" >&6; }
8481 else
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 printf "%s\n" "no" >&6; }
8484 fi
8485
8486 rm -f messages.po
8487
8488 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8489 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8490 *) XGETTEXT_015=$XGETTEXT ;;
8491 esac
8492
8493
8494
8495 # Prepare PATH_SEPARATOR.
8496 # The user is always right.
8497 if test "${PATH_SEPARATOR+set}" != set; then
8498 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8499 # contains only /bin. Note that ksh looks also at the FPATH variable,
8500 # so we have to set that as well for the test.
8501 PATH_SEPARATOR=:
8502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8503 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8504 || PATH_SEPARATOR=';'
8505 }
8506 fi
8507
8508 # Find out how to test for executable files. Don't use a zero-byte file,
8509 # as systems may use methods other than mode bits to determine executability.
8510 cat >conf$$.file <<_ASEOF
8511 #! /bin/sh
8512 exit 0
8513 _ASEOF
8514 chmod +x conf$$.file
8515 if test -x conf$$.file >/dev/null 2>&1; then
8516 ac_executable_p="test -x"
8517 else
8518 ac_executable_p="test -f"
8519 fi
8520 rm -f conf$$.file
8521
8522 # Extract the first word of "msgmerge", so it can be a program name with args.
8523 set dummy msgmerge; ac_word=$2
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 printf %s "checking for $ac_word... " >&6; }
8526 if test ${ac_cv_path_MSGMERGE+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else case e in #(
8530 e) case "$MSGMERGE" in
8531 [\\/]* | ?:[\\/]*)
8532 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8533 ;;
8534 *)
8535 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8536 for ac_dir in $PATH; do
8537 IFS="$ac_save_IFS"
8538 test -z "$ac_dir" && ac_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8541 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8542 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8543 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8544 break 2
8545 fi
8546 fi
8547 done
8548 done
8549 IFS="$ac_save_IFS"
8550 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8551 ;;
8552 esac ;;
8553 esac
8554 fi
8555 MSGMERGE="$ac_cv_path_MSGMERGE"
8556 if test "$MSGMERGE" != ":"; then
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8558 printf "%s\n" "$MSGMERGE" >&6; }
8559 else
8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 printf "%s\n" "no" >&6; }
8562 fi
8563
8564
8565 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8566 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8567 else
8568 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8569 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8570 else
8571 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8572 fi
8573 fi
8574
8575
8576 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8577
8578
8579 ac_config_commands="$ac_config_commands po-directories"
8580
8581
8582
8583 if test "X$prefix" = "XNONE"; then
8584 acl_final_prefix="$ac_default_prefix"
8585 else
8586 acl_final_prefix="$prefix"
8587 fi
8588 if test "X$exec_prefix" = "XNONE"; then
8589 acl_final_exec_prefix='${prefix}'
8590 else
8591 acl_final_exec_prefix="$exec_prefix"
8592 fi
8593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8596 prefix="$acl_save_prefix"
8597
8598
8599
8600 # Check whether --with-gnu-ld was given.
8601 if test ${with_gnu_ld+y}
8602 then :
8603 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8604 else case e in #(
8605 e) with_gnu_ld=no ;;
8606 esac
8607 fi
8608
8609 # Prepare PATH_SEPARATOR.
8610 # The user is always right.
8611 if test "${PATH_SEPARATOR+set}" != set; then
8612 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8613 # contains only /bin. Note that ksh looks also at the FPATH variable,
8614 # so we have to set that as well for the test.
8615 PATH_SEPARATOR=:
8616 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8617 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8618 || PATH_SEPARATOR=';'
8619 }
8620 fi
8621
8622 if test -n "$LD"; then
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8624 printf %s "checking for ld... " >&6; }
8625 elif test "$GCC" = yes; then
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8627 printf %s "checking for ld used by $CC... " >&6; }
8628 elif test "$with_gnu_ld" = yes; then
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8630 printf %s "checking for GNU ld... " >&6; }
8631 else
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8633 printf %s "checking for non-GNU ld... " >&6; }
8634 fi
8635 if test -n "$LD"; then
8636 # Let the user override the test with a path.
8637 :
8638 else
8639 if test ${acl_cv_path_LD+y}
8640 then :
8641 printf %s "(cached) " >&6
8642 else case e in #(
8643 e)
8644 acl_cv_path_LD= # Final result of this test
8645 ac_prog=ld # Program to search in $PATH
8646 if test "$GCC" = yes; then
8647 # Check if gcc -print-prog-name=ld gives a path.
8648 case $host in
8649 *-*-mingw*)
8650 # gcc leaves a trailing carriage return which upsets mingw
8651 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8652 *)
8653 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8654 esac
8655 case $acl_output in
8656 # Accept absolute paths.
8657 [\\/]* | ?:[\\/]*)
8658 re_direlt='/[^/][^/]*/\.\./'
8659 # Canonicalize the pathname of ld
8660 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8661 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8662 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8663 done
8664 # Got the pathname. No search in PATH is needed.
8665 acl_cv_path_LD="$acl_output"
8666 ac_prog=
8667 ;;
8668 "")
8669 # If it fails, then pretend we aren't using GCC.
8670 ;;
8671 *)
8672 # If it is relative, then search for the first ld in PATH.
8673 with_gnu_ld=unknown
8674 ;;
8675 esac
8676 fi
8677 if test -n "$ac_prog"; then
8678 # Search for $ac_prog in $PATH.
8679 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8680 for ac_dir in $PATH; do
8681 IFS="$acl_save_ifs"
8682 test -z "$ac_dir" && ac_dir=.
8683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8684 acl_cv_path_LD="$ac_dir/$ac_prog"
8685 # Check to see if the program is GNU ld. I'd rather use --version,
8686 # but apparently some variants of GNU ld only accept -v.
8687 # Break only if it was the GNU/non-GNU ld that we prefer.
8688 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8689 *GNU* | *'with BFD'*)
8690 test "$with_gnu_ld" != no && break
8691 ;;
8692 *)
8693 test "$with_gnu_ld" != yes && break
8694 ;;
8695 esac
8696 fi
8697 done
8698 IFS="$acl_save_ifs"
8699 fi
8700 case $host in
8701 *-*-aix*)
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #if defined __powerpc64__ || defined _ARCH_PPC64
8705 int ok;
8706 #else
8707 error fail
8708 #endif
8709
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"
8712 then :
8713 # The compiler produces 64-bit code. Add option '-b64' so that the
8714 # linker groks 64-bit object files.
8715 case "$acl_cv_path_LD " in
8716 *" -b64 "*) ;;
8717 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8718 esac
8719
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8722 ;;
8723 sparc64-*-netbsd*)
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #if defined __sparcv9 || defined __arch64__
8727 int ok;
8728 #else
8729 error fail
8730 #endif
8731
8732 _ACEOF
8733 if ac_fn_c_try_compile "$LINENO"
8734 then :
8735
8736 else case e in #(
8737 e) # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8738 # so that the linker groks 32-bit object files.
8739 case "$acl_cv_path_LD " in
8740 *" -m elf32_sparc "*) ;;
8741 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8742 esac
8743 ;;
8744 esac
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8747 ;;
8748 esac
8749 ;;
8750 esac
8751 fi
8752
8753 LD="$acl_cv_path_LD"
8754 fi
8755 if test -n "$LD"; then
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8757 printf "%s\n" "$LD" >&6; }
8758 else
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 printf "%s\n" "no" >&6; }
8761 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8762 fi
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8764 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8765 if test ${acl_cv_prog_gnu_ld+y}
8766 then :
8767 printf %s "(cached) " >&6
8768 else case e in #(
8769 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
8770 case `$LD -v 2>&1 </dev/null` in
8771 *GNU* | *'with BFD'*)
8772 acl_cv_prog_gnu_ld=yes
8773 ;;
8774 *)
8775 acl_cv_prog_gnu_ld=no
8776 ;;
8777 esac ;;
8778 esac
8779 fi
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8781 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8782 with_gnu_ld=$acl_cv_prog_gnu_ld
8783
8784
8785
8786
8787
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8789 printf %s "checking for shared library run path origin... " >&6; }
8790 if test ${acl_cv_rpath+y}
8791 then :
8792 printf %s "(cached) " >&6
8793 else case e in #(
8794 e)
8795 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8796 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8797 . ./conftest.sh
8798 rm -f ./conftest.sh
8799 acl_cv_rpath=done
8800 ;;
8801 esac
8802 fi
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8804 printf "%s\n" "$acl_cv_rpath" >&6; }
8805 wl="$acl_cv_wl"
8806 acl_libext="$acl_cv_libext"
8807 acl_shlibext="$acl_cv_shlibext"
8808 acl_libname_spec="$acl_cv_libname_spec"
8809 acl_library_names_spec="$acl_cv_library_names_spec"
8810 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8811 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8812 acl_hardcode_direct="$acl_cv_hardcode_direct"
8813 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8814 # Check whether --enable-rpath was given.
8815 if test ${enable_rpath+y}
8816 then :
8817 enableval=$enable_rpath; :
8818 else case e in #(
8819 e) enable_rpath=yes ;;
8820 esac
8821 fi
8822
8823
8824
8825
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8827 printf %s "checking 32-bit host C ABI... " >&6; }
8828 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8829 then :
8830 printf %s "(cached) " >&6
8831 else case e in #(
8832 e) if test -n "$gl_cv_host_cpu_c_abi"; then
8833 case "$gl_cv_host_cpu_c_abi" in
8834 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8835 gl_cv_host_cpu_c_abi_32bit=yes ;;
8836 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8837 gl_cv_host_cpu_c_abi_32bit=no ;;
8838 *)
8839 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8840 esac
8841 else
8842 case "$host_cpu" in
8843
8844 # CPUs that only support a 32-bit ABI.
8845 arc \
8846 | bfin \
8847 | cris* \
8848 | csky \
8849 | epiphany \
8850 | ft32 \
8851 | h8300 \
8852 | m68k \
8853 | microblaze | microblazeel \
8854 | nds32 | nds32le | nds32be \
8855 | nios2 | nios2eb | nios2el \
8856 | or1k* \
8857 | or32 \
8858 | sh | sh1234 | sh1234elb \
8859 | tic6x \
8860 | xtensa* )
8861 gl_cv_host_cpu_c_abi_32bit=yes
8862 ;;
8863
8864 # CPUs that only support a 64-bit ABI.
8865 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8866 | mmix )
8867 gl_cv_host_cpu_c_abi_32bit=no
8868 ;;
8869
8870 i[34567]86 )
8871 gl_cv_host_cpu_c_abi_32bit=yes
8872 ;;
8873
8874 x86_64 )
8875 # On x86_64 systems, the C compiler may be generating code in one of
8876 # these ABIs:
8877 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8878 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8879 # with native Windows (mingw, MSVC).
8880 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8881 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #if (defined __x86_64__ || defined __amd64__ \
8885 || defined _M_X64 || defined _M_AMD64) \
8886 && !(defined __ILP32__ || defined _ILP32)
8887 int ok;
8888 #else
8889 error fail
8890 #endif
8891
8892 _ACEOF
8893 if ac_fn_c_try_compile "$LINENO"
8894 then :
8895 gl_cv_host_cpu_c_abi_32bit=no
8896 else case e in #(
8897 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
8898 esac
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8901 ;;
8902
8903 arm* | aarch64 )
8904 # Assume arm with EABI.
8905 # On arm64 systems, the C compiler may be generating code in one of
8906 # these ABIs:
8907 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8908 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8909 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8913 int ok;
8914 #else
8915 error fail
8916 #endif
8917
8918 _ACEOF
8919 if ac_fn_c_try_compile "$LINENO"
8920 then :
8921 gl_cv_host_cpu_c_abi_32bit=no
8922 else case e in #(
8923 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
8924 esac
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8927 ;;
8928
8929 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8930 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8931 # code. In the latter case, it defines _LP64 and __LP64__.
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934 #ifdef __LP64__
8935 int ok;
8936 #else
8937 error fail
8938 #endif
8939
8940 _ACEOF
8941 if ac_fn_c_try_compile "$LINENO"
8942 then :
8943 gl_cv_host_cpu_c_abi_32bit=no
8944 else case e in #(
8945 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
8946 esac
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8949 ;;
8950
8951 ia64* )
8952 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8953 # 32-bit code. In the latter case, it defines _ILP32.
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 #ifdef _ILP32
8957 int ok;
8958 #else
8959 error fail
8960 #endif
8961
8962 _ACEOF
8963 if ac_fn_c_try_compile "$LINENO"
8964 then :
8965 gl_cv_host_cpu_c_abi_32bit=yes
8966 else case e in #(
8967 e) gl_cv_host_cpu_c_abi_32bit=no ;;
8968 esac
8969 fi
8970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8971 ;;
8972
8973 mips* )
8974 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8975 # at 32.
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8979 int ok;
8980 #else
8981 error fail
8982 #endif
8983
8984 _ACEOF
8985 if ac_fn_c_try_compile "$LINENO"
8986 then :
8987 gl_cv_host_cpu_c_abi_32bit=no
8988 else case e in #(
8989 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
8990 esac
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8993 ;;
8994
8995 powerpc* )
8996 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8997 # No need to distinguish them here; the caller may distinguish
8998 # them based on the OS.
8999 # On powerpc64 systems, the C compiler may still be generating
9000 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
9001 # be generating 64-bit code.
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 #if defined __powerpc64__ || defined _ARCH_PPC64
9005 int ok;
9006 #else
9007 error fail
9008 #endif
9009
9010 _ACEOF
9011 if ac_fn_c_try_compile "$LINENO"
9012 then :
9013 gl_cv_host_cpu_c_abi_32bit=no
9014 else case e in #(
9015 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
9016 esac
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9019 ;;
9020
9021 rs6000 )
9022 gl_cv_host_cpu_c_abi_32bit=yes
9023 ;;
9024
9025 riscv32 | riscv64 )
9026 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9027 # Size of 'long' and 'void *':
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030 #if defined __LP64__
9031 int ok;
9032 #else
9033 error fail
9034 #endif
9035
9036 _ACEOF
9037 if ac_fn_c_try_compile "$LINENO"
9038 then :
9039 gl_cv_host_cpu_c_abi_32bit=no
9040 else case e in #(
9041 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
9042 esac
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9045 ;;
9046
9047 s390* )
9048 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9049 # or 31-bit (= s390) code.
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9052 #if defined __LP64__ || defined __s390x__
9053 int ok;
9054 #else
9055 error fail
9056 #endif
9057
9058 _ACEOF
9059 if ac_fn_c_try_compile "$LINENO"
9060 then :
9061 gl_cv_host_cpu_c_abi_32bit=no
9062 else case e in #(
9063 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
9064 esac
9065 fi
9066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 ;;
9068
9069 sparc | sparc64 )
9070 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9071 # C compiler still generates 32-bit code.
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9074 #if defined __sparcv9 || defined __arch64__
9075 int ok;
9076 #else
9077 error fail
9078 #endif
9079
9080 _ACEOF
9081 if ac_fn_c_try_compile "$LINENO"
9082 then :
9083 gl_cv_host_cpu_c_abi_32bit=no
9084 else case e in #(
9085 e) gl_cv_host_cpu_c_abi_32bit=yes ;;
9086 esac
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9089 ;;
9090
9091 *)
9092 gl_cv_host_cpu_c_abi_32bit=unknown
9093 ;;
9094 esac
9095 fi
9096 ;;
9097 esac
9098 fi
9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9100 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9101
9102 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9103
9104 ac_ext=c
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9110 printf %s "checking how to run the C preprocessor... " >&6; }
9111 # On Suns, sometimes $CPP names a directory.
9112 if test -n "$CPP" && test -d "$CPP"; then
9113 CPP=
9114 fi
9115 if test -z "$CPP"; then
9116 if test ${ac_cv_prog_CPP+y}
9117 then :
9118 printf %s "(cached) " >&6
9119 else case e in #(
9120 e) # Double quotes because $CC needs to be expanded
9121 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
9122 do
9123 ac_preproc_ok=false
9124 for ac_c_preproc_warn_flag in '' yes
9125 do
9126 # Use a header file that comes with gcc, so configuring glibc
9127 # with a fresh cross-compiler works.
9128 # On the NeXT, cc -E runs the code through the compiler's parser,
9129 # not just through cpp. "Syntax error" is here to catch this case.
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 #include <limits.h>
9133 Syntax error
9134 _ACEOF
9135 if ac_fn_c_try_cpp "$LINENO"
9136 then :
9137
9138 else case e in #(
9139 e) # Broken: fails on valid input.
9140 continue ;;
9141 esac
9142 fi
9143 rm -f conftest.err conftest.i conftest.$ac_ext
9144
9145 # OK, works on sane cases. Now check whether nonexistent headers
9146 # can be detected and how.
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 #include <ac_nonexistent.h>
9150 _ACEOF
9151 if ac_fn_c_try_cpp "$LINENO"
9152 then :
9153 # Broken: success on invalid input.
9154 continue
9155 else case e in #(
9156 e) # Passes both tests.
9157 ac_preproc_ok=:
9158 break ;;
9159 esac
9160 fi
9161 rm -f conftest.err conftest.i conftest.$ac_ext
9162
9163 done
9164 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9165 rm -f conftest.i conftest.err conftest.$ac_ext
9166 if $ac_preproc_ok
9167 then :
9168 break
9169 fi
9170
9171 done
9172 ac_cv_prog_CPP=$CPP
9173 ;;
9174 esac
9175 fi
9176 CPP=$ac_cv_prog_CPP
9177 else
9178 ac_cv_prog_CPP=$CPP
9179 fi
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9181 printf "%s\n" "$CPP" >&6; }
9182 ac_preproc_ok=false
9183 for ac_c_preproc_warn_flag in '' yes
9184 do
9185 # Use a header file that comes with gcc, so configuring glibc
9186 # with a fresh cross-compiler works.
9187 # On the NeXT, cc -E runs the code through the compiler's parser,
9188 # not just through cpp. "Syntax error" is here to catch this case.
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <limits.h>
9192 Syntax error
9193 _ACEOF
9194 if ac_fn_c_try_cpp "$LINENO"
9195 then :
9196
9197 else case e in #(
9198 e) # Broken: fails on valid input.
9199 continue ;;
9200 esac
9201 fi
9202 rm -f conftest.err conftest.i conftest.$ac_ext
9203
9204 # OK, works on sane cases. Now check whether nonexistent headers
9205 # can be detected and how.
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 #include <ac_nonexistent.h>
9209 _ACEOF
9210 if ac_fn_c_try_cpp "$LINENO"
9211 then :
9212 # Broken: success on invalid input.
9213 continue
9214 else case e in #(
9215 e) # Passes both tests.
9216 ac_preproc_ok=:
9217 break ;;
9218 esac
9219 fi
9220 rm -f conftest.err conftest.i conftest.$ac_ext
9221
9222 done
9223 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9224 rm -f conftest.i conftest.err conftest.$ac_ext
9225 if $ac_preproc_ok
9226 then :
9227
9228 else case e in #(
9229 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9230 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9231 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9232 See 'config.log' for more details" "$LINENO" 5; } ;;
9233 esac
9234 fi
9235
9236 ac_ext=c
9237 ac_cpp='$CPP $CPPFLAGS'
9238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9241
9242
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
9244 printf %s "checking for egrep -e... " >&6; }
9245 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
9246 then :
9247 printf %s "(cached) " >&6
9248 else case e in #(
9249 e) if test -z "$EGREP_TRADITIONAL"; then
9250 ac_path_EGREP_TRADITIONAL_found=false
9251 # Loop through the user's path and test for each of PROGNAME-LIST
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9254 do
9255 IFS=$as_save_IFS
9256 case $as_dir in #(((
9257 '') as_dir=./ ;;
9258 */) ;;
9259 *) as_dir=$as_dir/ ;;
9260 esac
9261 for ac_prog in grep ggrep
9262 do
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9265 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9266 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9267 # Check for GNU $ac_path_EGREP_TRADITIONAL
9268 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9269 *GNU*)
9270 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9271 #(
9272 *)
9273 ac_count=0
9274 printf %s 0123456789 >"conftest.in"
9275 while :
9276 do
9277 cat "conftest.in" "conftest.in" >"conftest.tmp"
9278 mv "conftest.tmp" "conftest.in"
9279 cp "conftest.in" "conftest.nl"
9280 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9281 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9283 as_fn_arith $ac_count + 1 && ac_count=$as_val
9284 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9285 # Best one so far, save it but keep looking for a better one
9286 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9287 ac_path_EGREP_TRADITIONAL_max=$ac_count
9288 fi
9289 # 10*(2^10) chars as input seems more than enough
9290 test $ac_count -gt 10 && break
9291 done
9292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9293 esac
9294
9295 $ac_path_EGREP_TRADITIONAL_found && break 3
9296 done
9297 done
9298 done
9299 IFS=$as_save_IFS
9300 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9301 :
9302 fi
9303 else
9304 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9305 fi
9306
9307 if test "$ac_cv_path_EGREP_TRADITIONAL"
9308 then :
9309 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
9310 else case e in #(
9311 e) if test -z "$EGREP_TRADITIONAL"; then
9312 ac_path_EGREP_TRADITIONAL_found=false
9313 # Loop through the user's path and test for each of PROGNAME-LIST
9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9316 do
9317 IFS=$as_save_IFS
9318 case $as_dir in #(((
9319 '') as_dir=./ ;;
9320 */) ;;
9321 *) as_dir=$as_dir/ ;;
9322 esac
9323 for ac_prog in egrep
9324 do
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
9327 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
9328 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
9329 # Check for GNU $ac_path_EGREP_TRADITIONAL
9330 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
9331 *GNU*)
9332 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
9333 #(
9334 *)
9335 ac_count=0
9336 printf %s 0123456789 >"conftest.in"
9337 while :
9338 do
9339 cat "conftest.in" "conftest.in" >"conftest.tmp"
9340 mv "conftest.tmp" "conftest.in"
9341 cp "conftest.in" "conftest.nl"
9342 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
9343 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9345 as_fn_arith $ac_count + 1 && ac_count=$as_val
9346 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
9347 # Best one so far, save it but keep looking for a better one
9348 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
9349 ac_path_EGREP_TRADITIONAL_max=$ac_count
9350 fi
9351 # 10*(2^10) chars as input seems more than enough
9352 test $ac_count -gt 10 && break
9353 done
9354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9355 esac
9356
9357 $ac_path_EGREP_TRADITIONAL_found && break 3
9358 done
9359 done
9360 done
9361 IFS=$as_save_IFS
9362 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
9363 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9364 fi
9365 else
9366 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
9367 fi
9368 ;;
9369 esac
9370 fi ;;
9371 esac
9372 fi
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
9374 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
9375 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
9376
9377
9378
9379
9380
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9382 printf %s "checking for ELF binary format... " >&6; }
9383 if test ${gl_cv_elf+y}
9384 then :
9385 printf %s "(cached) " >&6
9386 else case e in #(
9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 #ifdef __ELF__
9390 Extensible Linking Format
9391 #endif
9392
9393 _ACEOF
9394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9395 $EGREP_TRADITIONAL "Extensible Linking Format" >/dev/null 2>&1
9396 then :
9397 gl_cv_elf=yes
9398 else case e in #(
9399 e) gl_cv_elf=no ;;
9400 esac
9401 fi
9402 rm -rf conftest*
9403
9404 ;;
9405 esac
9406 fi
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9408 printf "%s\n" "$gl_cv_elf" >&6; }
9409 if test $gl_cv_elf; then
9410 # Extract the ELF class of a file (5th byte) in decimal.
9411 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9412 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9413 # Use POSIX od.
9414 func_elfclass ()
9415 {
9416 od -A n -t d1 -j 4 -N 1
9417 }
9418 else
9419 # Use BSD hexdump.
9420 func_elfclass ()
9421 {
9422 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9423 echo
9424 }
9425 fi
9426 case $HOST_CPU_C_ABI_32BIT in
9427 yes)
9428 # 32-bit ABI.
9429 acl_is_expected_elfclass ()
9430 {
9431 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9432 }
9433 ;;
9434 no)
9435 # 64-bit ABI.
9436 acl_is_expected_elfclass ()
9437 {
9438 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9439 }
9440 ;;
9441 *)
9442 # Unknown.
9443 acl_is_expected_elfclass ()
9444 {
9445 :
9446 }
9447 ;;
9448 esac
9449 else
9450 acl_is_expected_elfclass ()
9451 {
9452 :
9453 }
9454 fi
9455
9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9457 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9458 if test ${acl_cv_libdirstems+y}
9459 then :
9460 printf %s "(cached) " >&6
9461 else case e in #(
9462 e) acl_libdirstem=lib
9463 acl_libdirstem2=
9464 acl_libdirstem3=
9465 case "$host_os" in
9466 solaris*)
9467 if test $HOST_CPU_C_ABI_32BIT = no; then
9468 acl_libdirstem2=lib/64
9469 case "$host_cpu" in
9470 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9471 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9472 esac
9473 fi
9474 ;;
9475 *)
9476 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9477 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9478 if test $HOST_CPU_C_ABI_32BIT != no; then
9479 # 32-bit or unknown ABI.
9480 if test -d /usr/lib32; then
9481 acl_libdirstem2=lib32
9482 fi
9483 fi
9484 if test $HOST_CPU_C_ABI_32BIT != yes; then
9485 # 64-bit or unknown ABI.
9486 if test -d /usr/lib64; then
9487 acl_libdirstem3=lib64
9488 fi
9489 fi
9490 if test -n "$searchpath"; then
9491 acl_save_IFS="${IFS= }"; IFS=":"
9492 for searchdir in $searchpath; do
9493 if test -d "$searchdir"; then
9494 case "$searchdir" in
9495 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9496 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9497 */../ | */.. )
9498 # Better ignore directories of this form. They are misleading.
9499 ;;
9500 *) searchdir=`cd "$searchdir" && pwd`
9501 case "$searchdir" in
9502 */lib32 ) acl_libdirstem2=lib32 ;;
9503 */lib64 ) acl_libdirstem3=lib64 ;;
9504 esac ;;
9505 esac
9506 fi
9507 done
9508 IFS="$acl_save_IFS"
9509 if test $HOST_CPU_C_ABI_32BIT = yes; then
9510 # 32-bit ABI.
9511 acl_libdirstem3=
9512 fi
9513 if test $HOST_CPU_C_ABI_32BIT = no; then
9514 # 64-bit ABI.
9515 acl_libdirstem2=
9516 fi
9517 fi
9518 ;;
9519 esac
9520 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9521 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9522 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9523 ;;
9524 esac
9525 fi
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9527 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9528 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9529 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9530 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542 use_additional=yes
9543
9544 acl_save_prefix="$prefix"
9545 prefix="$acl_final_prefix"
9546 acl_save_exec_prefix="$exec_prefix"
9547 exec_prefix="$acl_final_exec_prefix"
9548
9549 eval additional_includedir=\"$includedir\"
9550 eval additional_libdir=\"$libdir\"
9551 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9552 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9553
9554 exec_prefix="$acl_save_exec_prefix"
9555 prefix="$acl_save_prefix"
9556
9557
9558 # Check whether --with-libiconv-prefix was given.
9559 if test ${with_libiconv_prefix+y}
9560 then :
9561 withval=$with_libiconv_prefix;
9562 if test "X$withval" = "Xno"; then
9563 use_additional=no
9564 else
9565 if test "X$withval" = "X"; then
9566
9567 acl_save_prefix="$prefix"
9568 prefix="$acl_final_prefix"
9569 acl_save_exec_prefix="$exec_prefix"
9570 exec_prefix="$acl_final_exec_prefix"
9571
9572 eval additional_includedir=\"$includedir\"
9573 eval additional_libdir=\"$libdir\"
9574 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9575 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9576
9577 exec_prefix="$acl_save_exec_prefix"
9578 prefix="$acl_save_prefix"
9579
9580 else
9581 additional_includedir="$withval/include"
9582 additional_libdir="$withval/$acl_libdirstem"
9583 additional_libdir2="$withval/$acl_libdirstem2"
9584 additional_libdir3="$withval/$acl_libdirstem3"
9585 fi
9586 fi
9587
9588 fi
9589
9590 if test "X$additional_libdir2" = "X$additional_libdir"; then
9591 additional_libdir2=
9592 fi
9593 if test "X$additional_libdir3" = "X$additional_libdir"; then
9594 additional_libdir3=
9595 fi
9596 LIBICONV=
9597 LTLIBICONV=
9598 INCICONV=
9599 LIBICONV_PREFIX=
9600 HAVE_LIBICONV=
9601 rpathdirs=
9602 ltrpathdirs=
9603 names_already_handled=
9604 names_next_round='iconv '
9605 while test -n "$names_next_round"; do
9606 names_this_round="$names_next_round"
9607 names_next_round=
9608 for name in $names_this_round; do
9609 already_handled=
9610 for n in $names_already_handled; do
9611 if test "$n" = "$name"; then
9612 already_handled=yes
9613 break
9614 fi
9615 done
9616 if test -z "$already_handled"; then
9617 names_already_handled="$names_already_handled $name"
9618 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9619 eval value=\"\$HAVE_LIB$uppername\"
9620 if test -n "$value"; then
9621 if test "$value" = yes; then
9622 eval value=\"\$LIB$uppername\"
9623 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9624 eval value=\"\$LTLIB$uppername\"
9625 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9626 else
9627 :
9628 fi
9629 else
9630 found_dir=
9631 found_la=
9632 found_so=
9633 found_a=
9634 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9635 if test -n "$acl_shlibext"; then
9636 shrext=".$acl_shlibext" # typically: shrext=.so
9637 else
9638 shrext=
9639 fi
9640 if test $use_additional = yes; then
9641 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9642 if test "X$found_dir" = "X"; then
9643 eval dir=\$$additional_libdir_variable
9644 if test -n "$dir"; then
9645 if test -n "$acl_shlibext"; then
9646 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9647 found_dir="$dir"
9648 found_so="$dir/$libname$shrext"
9649 else
9650 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9651 ver=`(cd "$dir" && \
9652 for f in "$libname$shrext".*; do echo "$f"; done \
9653 | sed -e "s,^$libname$shrext\\\\.,," \
9654 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9655 | sed 1q ) 2>/dev/null`
9656 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9657 found_dir="$dir"
9658 found_so="$dir/$libname$shrext.$ver"
9659 fi
9660 else
9661 eval library_names=\"$acl_library_names_spec\"
9662 for f in $library_names; do
9663 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9664 found_dir="$dir"
9665 found_so="$dir/$f"
9666 break
9667 fi
9668 done
9669 fi
9670 fi
9671 fi
9672 if test "X$found_dir" = "X"; then
9673 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9674 found_dir="$dir"
9675 found_a="$dir/$libname.$acl_libext"
9676 fi
9677 fi
9678 if test "X$found_dir" != "X"; then
9679 if test -f "$dir/$libname.la"; then
9680 found_la="$dir/$libname.la"
9681 fi
9682 fi
9683 fi
9684 fi
9685 done
9686 fi
9687 if test "X$found_dir" = "X"; then
9688 for x in $LDFLAGS $LTLIBICONV; do
9689
9690 acl_save_prefix="$prefix"
9691 prefix="$acl_final_prefix"
9692 acl_save_exec_prefix="$exec_prefix"
9693 exec_prefix="$acl_final_exec_prefix"
9694 eval x=\"$x\"
9695 exec_prefix="$acl_save_exec_prefix"
9696 prefix="$acl_save_prefix"
9697
9698 case "$x" in
9699 -L*)
9700 dir=`echo "X$x" | sed -e 's/^X-L//'`
9701 if test -n "$acl_shlibext"; then
9702 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9703 found_dir="$dir"
9704 found_so="$dir/$libname$shrext"
9705 else
9706 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9707 ver=`(cd "$dir" && \
9708 for f in "$libname$shrext".*; do echo "$f"; done \
9709 | sed -e "s,^$libname$shrext\\\\.,," \
9710 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9711 | sed 1q ) 2>/dev/null`
9712 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9713 found_dir="$dir"
9714 found_so="$dir/$libname$shrext.$ver"
9715 fi
9716 else
9717 eval library_names=\"$acl_library_names_spec\"
9718 for f in $library_names; do
9719 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9720 found_dir="$dir"
9721 found_so="$dir/$f"
9722 break
9723 fi
9724 done
9725 fi
9726 fi
9727 fi
9728 if test "X$found_dir" = "X"; then
9729 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9730 found_dir="$dir"
9731 found_a="$dir/$libname.$acl_libext"
9732 fi
9733 fi
9734 if test "X$found_dir" != "X"; then
9735 if test -f "$dir/$libname.la"; then
9736 found_la="$dir/$libname.la"
9737 fi
9738 fi
9739 ;;
9740 esac
9741 if test "X$found_dir" != "X"; then
9742 break
9743 fi
9744 done
9745 fi
9746 if test "X$found_dir" != "X"; then
9747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9748 if test "X$found_so" != "X"; then
9749 if test "$enable_rpath" = no \
9750 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9751 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9752 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9754 else
9755 haveit=
9756 for x in $ltrpathdirs; do
9757 if test "X$x" = "X$found_dir"; then
9758 haveit=yes
9759 break
9760 fi
9761 done
9762 if test -z "$haveit"; then
9763 ltrpathdirs="$ltrpathdirs $found_dir"
9764 fi
9765 if test "$acl_hardcode_direct" = yes; then
9766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9767 else
9768 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9770 haveit=
9771 for x in $rpathdirs; do
9772 if test "X$x" = "X$found_dir"; then
9773 haveit=yes
9774 break
9775 fi
9776 done
9777 if test -z "$haveit"; then
9778 rpathdirs="$rpathdirs $found_dir"
9779 fi
9780 else
9781 haveit=
9782 for x in $LDFLAGS $LIBICONV; do
9783
9784 acl_save_prefix="$prefix"
9785 prefix="$acl_final_prefix"
9786 acl_save_exec_prefix="$exec_prefix"
9787 exec_prefix="$acl_final_exec_prefix"
9788 eval x=\"$x\"
9789 exec_prefix="$acl_save_exec_prefix"
9790 prefix="$acl_save_prefix"
9791
9792 if test "X$x" = "X-L$found_dir"; then
9793 haveit=yes
9794 break
9795 fi
9796 done
9797 if test -z "$haveit"; then
9798 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9799 fi
9800 if test "$acl_hardcode_minus_L" != no; then
9801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9802 else
9803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9804 fi
9805 fi
9806 fi
9807 fi
9808 else
9809 if test "X$found_a" != "X"; then
9810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9811 else
9812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9813 fi
9814 fi
9815 additional_includedir=
9816 case "$found_dir" in
9817 */$acl_libdirstem | */$acl_libdirstem/)
9818 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9819 if test "$name" = 'iconv'; then
9820 LIBICONV_PREFIX="$basedir"
9821 fi
9822 additional_includedir="$basedir/include"
9823 ;;
9824 */$acl_libdirstem2 | */$acl_libdirstem2/)
9825 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9826 if test "$name" = 'iconv'; then
9827 LIBICONV_PREFIX="$basedir"
9828 fi
9829 additional_includedir="$basedir/include"
9830 ;;
9831 */$acl_libdirstem3 | */$acl_libdirstem3/)
9832 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9833 if test "$name" = 'iconv'; then
9834 LIBICONV_PREFIX="$basedir"
9835 fi
9836 additional_includedir="$basedir/include"
9837 ;;
9838 esac
9839 if test "X$additional_includedir" != "X"; then
9840 if test "X$additional_includedir" != "X/usr/include"; then
9841 haveit=
9842 if test "X$additional_includedir" = "X/usr/local/include"; then
9843 if test -n "$GCC"; then
9844 case $host_os in
9845 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9846 esac
9847 fi
9848 fi
9849 if test -z "$haveit"; then
9850 for x in $CPPFLAGS $INCICONV; do
9851
9852 acl_save_prefix="$prefix"
9853 prefix="$acl_final_prefix"
9854 acl_save_exec_prefix="$exec_prefix"
9855 exec_prefix="$acl_final_exec_prefix"
9856 eval x=\"$x\"
9857 exec_prefix="$acl_save_exec_prefix"
9858 prefix="$acl_save_prefix"
9859
9860 if test "X$x" = "X-I$additional_includedir"; then
9861 haveit=yes
9862 break
9863 fi
9864 done
9865 if test -z "$haveit"; then
9866 if test -d "$additional_includedir"; then
9867 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9868 fi
9869 fi
9870 fi
9871 fi
9872 fi
9873 if test -n "$found_la"; then
9874 save_libdir="$libdir"
9875 case "$found_la" in
9876 */* | *\\*) . "$found_la" ;;
9877 *) . "./$found_la" ;;
9878 esac
9879 libdir="$save_libdir"
9880 for dep in $dependency_libs; do
9881 case "$dep" in
9882 -L*)
9883 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9884 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9885 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9886 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9887 haveit=
9888 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9889 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9890 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9891 if test -n "$GCC"; then
9892 case $host_os in
9893 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9894 esac
9895 fi
9896 fi
9897 if test -z "$haveit"; then
9898 haveit=
9899 for x in $LDFLAGS $LIBICONV; do
9900
9901 acl_save_prefix="$prefix"
9902 prefix="$acl_final_prefix"
9903 acl_save_exec_prefix="$exec_prefix"
9904 exec_prefix="$acl_final_exec_prefix"
9905 eval x=\"$x\"
9906 exec_prefix="$acl_save_exec_prefix"
9907 prefix="$acl_save_prefix"
9908
9909 if test "X$x" = "X-L$dependency_libdir"; then
9910 haveit=yes
9911 break
9912 fi
9913 done
9914 if test -z "$haveit"; then
9915 if test -d "$dependency_libdir"; then
9916 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9917 fi
9918 fi
9919 haveit=
9920 for x in $LDFLAGS $LTLIBICONV; do
9921
9922 acl_save_prefix="$prefix"
9923 prefix="$acl_final_prefix"
9924 acl_save_exec_prefix="$exec_prefix"
9925 exec_prefix="$acl_final_exec_prefix"
9926 eval x=\"$x\"
9927 exec_prefix="$acl_save_exec_prefix"
9928 prefix="$acl_save_prefix"
9929
9930 if test "X$x" = "X-L$dependency_libdir"; then
9931 haveit=yes
9932 break
9933 fi
9934 done
9935 if test -z "$haveit"; then
9936 if test -d "$dependency_libdir"; then
9937 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9938 fi
9939 fi
9940 fi
9941 fi
9942 ;;
9943 -R*)
9944 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9945 if test "$enable_rpath" != no; then
9946 haveit=
9947 for x in $rpathdirs; do
9948 if test "X$x" = "X$dir"; then
9949 haveit=yes
9950 break
9951 fi
9952 done
9953 if test -z "$haveit"; then
9954 rpathdirs="$rpathdirs $dir"
9955 fi
9956 haveit=
9957 for x in $ltrpathdirs; do
9958 if test "X$x" = "X$dir"; then
9959 haveit=yes
9960 break
9961 fi
9962 done
9963 if test -z "$haveit"; then
9964 ltrpathdirs="$ltrpathdirs $dir"
9965 fi
9966 fi
9967 ;;
9968 -l*)
9969 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9970 ;;
9971 *.la)
9972 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9973 ;;
9974 *)
9975 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9977 ;;
9978 esac
9979 done
9980 fi
9981 else
9982 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9984 fi
9985 fi
9986 fi
9987 done
9988 done
9989 if test "X$rpathdirs" != "X"; then
9990 if test -n "$acl_hardcode_libdir_separator"; then
9991 alldirs=
9992 for found_dir in $rpathdirs; do
9993 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9994 done
9995 acl_save_libdir="$libdir"
9996 libdir="$alldirs"
9997 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9998 libdir="$acl_save_libdir"
9999 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10000 else
10001 for found_dir in $rpathdirs; do
10002 acl_save_libdir="$libdir"
10003 libdir="$found_dir"
10004 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10005 libdir="$acl_save_libdir"
10006 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10007 done
10008 fi
10009 fi
10010 if test "X$ltrpathdirs" != "X"; then
10011 for found_dir in $ltrpathdirs; do
10012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10013 done
10014 fi
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10045 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
10046 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
10047 then :
10048 printf %s "(cached) " >&6
10049 else case e in #(
10050 e) gt_save_LIBS="$LIBS"
10051 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10054 #include <CoreFoundation/CFPreferences.h>
10055 int
10056 main (void)
10057 {
10058 CFPreferencesCopyAppValue(NULL, NULL)
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"
10064 then :
10065 gt_cv_func_CFPreferencesCopyAppValue=yes
10066 else case e in #(
10067 e) gt_cv_func_CFPreferencesCopyAppValue=no ;;
10068 esac
10069 fi
10070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS="$gt_save_LIBS" ;;
10073 esac
10074 fi
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10076 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10077 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10078
10079 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10080
10081 fi
10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
10083 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
10084 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
10085 then :
10086 printf %s "(cached) " >&6
10087 else case e in #(
10088 e) gt_save_LIBS="$LIBS"
10089 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10092 #include <CoreFoundation/CFLocale.h>
10093 int
10094 main (void)
10095 {
10096 CFLocaleCopyPreferredLanguages();
10097 ;
10098 return 0;
10099 }
10100 _ACEOF
10101 if ac_fn_c_try_link "$LINENO"
10102 then :
10103 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
10104 else case e in #(
10105 e) gt_cv_func_CFLocaleCopyPreferredLanguages=no ;;
10106 esac
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LIBS="$gt_save_LIBS" ;;
10111 esac
10112 fi
10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
10114 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
10115 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
10116
10117 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
10118
10119 fi
10120 INTL_MACOSX_LIBS=
10121 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
10122 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
10123 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10124 fi
10125
10126
10127
10128
10129
10130
10131 LIBINTL=
10132 LTLIBINTL=
10133 POSUB=
10134
10135 case " $gt_needs " in
10136 *" need-formatstring-macros "*) gt_api_version=3 ;;
10137 *" need-ngettext "*) gt_api_version=2 ;;
10138 *) gt_api_version=1 ;;
10139 esac
10140 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10141 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10142
10143 if test "$USE_NLS" = "yes"; then
10144 gt_use_preinstalled_gnugettext=no
10145
10146
10147 if test $gt_api_version -ge 3; then
10148 gt_revision_test_code='
10149 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10150 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10151 #endif
10152 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10153 '
10154 else
10155 gt_revision_test_code=
10156 fi
10157 if test $gt_api_version -ge 2; then
10158 gt_expression_test_code=' + * ngettext ("", "", 0)'
10159 else
10160 gt_expression_test_code=
10161 fi
10162
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10164 printf %s "checking for GNU gettext in libc... " >&6; }
10165 if eval test \${$gt_func_gnugettext_libc+y}
10166 then :
10167 printf %s "(cached) " >&6
10168 else case e in #(
10169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171
10172 #include <libintl.h>
10173 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10174 extern int _nl_msg_cat_cntr;
10175 extern int *_nl_domain_bindings;
10176 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
10177 #else
10178 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10179 #endif
10180 $gt_revision_test_code
10181
10182 int
10183 main (void)
10184 {
10185
10186 bindtextdomain ("", "");
10187 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10188
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"
10194 then :
10195 eval "$gt_func_gnugettext_libc=yes"
10196 else case e in #(
10197 e) eval "$gt_func_gnugettext_libc=no" ;;
10198 esac
10199 fi
10200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10201 conftest$ac_exeext conftest.$ac_ext ;;
10202 esac
10203 fi
10204 eval ac_res=\$$gt_func_gnugettext_libc
10205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10206 printf "%s\n" "$ac_res" >&6; }
10207
10208 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10209
10210
10211
10212
10213
10214 am_save_CPPFLAGS="$CPPFLAGS"
10215
10216 for element in $INCICONV; do
10217 haveit=
10218 for x in $CPPFLAGS; do
10219
10220 acl_save_prefix="$prefix"
10221 prefix="$acl_final_prefix"
10222 acl_save_exec_prefix="$exec_prefix"
10223 exec_prefix="$acl_final_exec_prefix"
10224 eval x=\"$x\"
10225 exec_prefix="$acl_save_exec_prefix"
10226 prefix="$acl_save_prefix"
10227
10228 if test "X$x" = "X$element"; then
10229 haveit=yes
10230 break
10231 fi
10232 done
10233 if test -z "$haveit"; then
10234 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10235 fi
10236 done
10237
10238
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10240 printf %s "checking for iconv... " >&6; }
10241 if test ${am_cv_func_iconv+y}
10242 then :
10243 printf %s "(cached) " >&6
10244 else case e in #(
10245 e)
10246 am_cv_func_iconv="no, consider installing GNU libiconv"
10247 am_cv_lib_iconv=no
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10250
10251 #include <stdlib.h>
10252 #include <iconv.h>
10253
10254 int
10255 main (void)
10256 {
10257 iconv_t cd = iconv_open("","");
10258 iconv(cd,NULL,NULL,NULL,NULL);
10259 iconv_close(cd);
10260 ;
10261 return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"
10265 then :
10266 am_cv_func_iconv=yes
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10269 conftest$ac_exeext conftest.$ac_ext
10270 if test "$am_cv_func_iconv" != yes; then
10271 am_save_LIBS="$LIBS"
10272 LIBS="$LIBS $LIBICONV"
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275
10276 #include <stdlib.h>
10277 #include <iconv.h>
10278
10279 int
10280 main (void)
10281 {
10282 iconv_t cd = iconv_open("","");
10283 iconv(cd,NULL,NULL,NULL,NULL);
10284 iconv_close(cd);
10285 ;
10286 return 0;
10287 }
10288 _ACEOF
10289 if ac_fn_c_try_link "$LINENO"
10290 then :
10291 am_cv_lib_iconv=yes
10292 am_cv_func_iconv=yes
10293 fi
10294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10295 conftest$ac_exeext conftest.$ac_ext
10296 LIBS="$am_save_LIBS"
10297 fi
10298 ;;
10299 esac
10300 fi
10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10302 printf "%s\n" "$am_cv_func_iconv" >&6; }
10303 if test "$am_cv_func_iconv" = yes; then
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10305 printf %s "checking for working iconv... " >&6; }
10306 if test ${am_cv_func_iconv_works+y}
10307 then :
10308 printf %s "(cached) " >&6
10309 else case e in #(
10310 e)
10311 am_save_LIBS="$LIBS"
10312 if test $am_cv_lib_iconv = yes; then
10313 LIBS="$LIBS $LIBICONV"
10314 fi
10315 am_cv_func_iconv_works=no
10316 for ac_iconv_const in '' 'const'; do
10317 if test "$cross_compiling" = yes
10318 then :
10319 case "$host_os" in
10320 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10321 *) am_cv_func_iconv_works="guessing yes" ;;
10322 esac
10323 else case e in #(
10324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326
10327 #include <iconv.h>
10328 #include <string.h>
10329
10330 #ifndef ICONV_CONST
10331 # define ICONV_CONST $ac_iconv_const
10332 #endif
10333
10334 int
10335 main (void)
10336 {
10337 int result = 0;
10338 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10339 returns. */
10340 {
10341 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10342 if (cd_utf8_to_88591 != (iconv_t)(-1))
10343 {
10344 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10345 char buf[10];
10346 ICONV_CONST char *inptr = input;
10347 size_t inbytesleft = strlen (input);
10348 char *outptr = buf;
10349 size_t outbytesleft = sizeof (buf);
10350 size_t res = iconv (cd_utf8_to_88591,
10351 &inptr, &inbytesleft,
10352 &outptr, &outbytesleft);
10353 if (res == 0)
10354 result |= 1;
10355 iconv_close (cd_utf8_to_88591);
10356 }
10357 }
10358 /* Test against Solaris 10 bug: Failures are not distinguishable from
10359 successful returns. */
10360 {
10361 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10362 if (cd_ascii_to_88591 != (iconv_t)(-1))
10363 {
10364 static ICONV_CONST char input[] = "\263";
10365 char buf[10];
10366 ICONV_CONST char *inptr = input;
10367 size_t inbytesleft = strlen (input);
10368 char *outptr = buf;
10369 size_t outbytesleft = sizeof (buf);
10370 size_t res = iconv (cd_ascii_to_88591,
10371 &inptr, &inbytesleft,
10372 &outptr, &outbytesleft);
10373 if (res == 0)
10374 result |= 2;
10375 iconv_close (cd_ascii_to_88591);
10376 }
10377 }
10378 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10379 {
10380 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10381 if (cd_88591_to_utf8 != (iconv_t)(-1))
10382 {
10383 static ICONV_CONST char input[] = "\304";
10384 static char buf[2] = { (char)0xDE, (char)0xAD };
10385 ICONV_CONST char *inptr = input;
10386 size_t inbytesleft = 1;
10387 char *outptr = buf;
10388 size_t outbytesleft = 1;
10389 size_t res = iconv (cd_88591_to_utf8,
10390 &inptr, &inbytesleft,
10391 &outptr, &outbytesleft);
10392 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10393 result |= 4;
10394 iconv_close (cd_88591_to_utf8);
10395 }
10396 }
10397 #if 0 /* This bug could be worked around by the caller. */
10398 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10399 {
10400 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10401 if (cd_88591_to_utf8 != (iconv_t)(-1))
10402 {
10403 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10404 char buf[50];
10405 ICONV_CONST char *inptr = input;
10406 size_t inbytesleft = strlen (input);
10407 char *outptr = buf;
10408 size_t outbytesleft = sizeof (buf);
10409 size_t res = iconv (cd_88591_to_utf8,
10410 &inptr, &inbytesleft,
10411 &outptr, &outbytesleft);
10412 if ((int)res > 0)
10413 result |= 8;
10414 iconv_close (cd_88591_to_utf8);
10415 }
10416 }
10417 #endif
10418 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10419 provided. */
10420 {
10421 /* Try standardized names. */
10422 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10423 /* Try IRIX, OSF/1 names. */
10424 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10425 /* Try AIX names. */
10426 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10427 /* Try HP-UX names. */
10428 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10429 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10430 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10431 result |= 16;
10432 if (cd1 != (iconv_t)(-1))
10433 iconv_close (cd1);
10434 if (cd2 != (iconv_t)(-1))
10435 iconv_close (cd2);
10436 if (cd3 != (iconv_t)(-1))
10437 iconv_close (cd3);
10438 if (cd4 != (iconv_t)(-1))
10439 iconv_close (cd4);
10440 }
10441 return result;
10442
10443 ;
10444 return 0;
10445 }
10446 _ACEOF
10447 if ac_fn_c_try_run "$LINENO"
10448 then :
10449 am_cv_func_iconv_works=yes
10450 fi
10451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10452 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10453 esac
10454 fi
10455
10456 test "$am_cv_func_iconv_works" = no || break
10457 done
10458 LIBS="$am_save_LIBS"
10459 ;;
10460 esac
10461 fi
10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10463 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10464 case "$am_cv_func_iconv_works" in
10465 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10466 *) am_func_iconv=yes ;;
10467 esac
10468 else
10469 am_func_iconv=no am_cv_lib_iconv=no
10470 fi
10471 if test "$am_func_iconv" = yes; then
10472
10473 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10474
10475 fi
10476 if test "$am_cv_lib_iconv" = yes; then
10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10478 printf %s "checking how to link with libiconv... " >&6; }
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10480 printf "%s\n" "$LIBICONV" >&6; }
10481 else
10482 CPPFLAGS="$am_save_CPPFLAGS"
10483 LIBICONV=
10484 LTLIBICONV=
10485 fi
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496 use_additional=yes
10497
10498 acl_save_prefix="$prefix"
10499 prefix="$acl_final_prefix"
10500 acl_save_exec_prefix="$exec_prefix"
10501 exec_prefix="$acl_final_exec_prefix"
10502
10503 eval additional_includedir=\"$includedir\"
10504 eval additional_libdir=\"$libdir\"
10505 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10506 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10507
10508 exec_prefix="$acl_save_exec_prefix"
10509 prefix="$acl_save_prefix"
10510
10511
10512 # Check whether --with-libintl-prefix was given.
10513 if test ${with_libintl_prefix+y}
10514 then :
10515 withval=$with_libintl_prefix;
10516 if test "X$withval" = "Xno"; then
10517 use_additional=no
10518 else
10519 if test "X$withval" = "X"; then
10520
10521 acl_save_prefix="$prefix"
10522 prefix="$acl_final_prefix"
10523 acl_save_exec_prefix="$exec_prefix"
10524 exec_prefix="$acl_final_exec_prefix"
10525
10526 eval additional_includedir=\"$includedir\"
10527 eval additional_libdir=\"$libdir\"
10528 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10529 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10530
10531 exec_prefix="$acl_save_exec_prefix"
10532 prefix="$acl_save_prefix"
10533
10534 else
10535 additional_includedir="$withval/include"
10536 additional_libdir="$withval/$acl_libdirstem"
10537 additional_libdir2="$withval/$acl_libdirstem2"
10538 additional_libdir3="$withval/$acl_libdirstem3"
10539 fi
10540 fi
10541
10542 fi
10543
10544 if test "X$additional_libdir2" = "X$additional_libdir"; then
10545 additional_libdir2=
10546 fi
10547 if test "X$additional_libdir3" = "X$additional_libdir"; then
10548 additional_libdir3=
10549 fi
10550 LIBINTL=
10551 LTLIBINTL=
10552 INCINTL=
10553 LIBINTL_PREFIX=
10554 HAVE_LIBINTL=
10555 rpathdirs=
10556 ltrpathdirs=
10557 names_already_handled=
10558 names_next_round='intl '
10559 while test -n "$names_next_round"; do
10560 names_this_round="$names_next_round"
10561 names_next_round=
10562 for name in $names_this_round; do
10563 already_handled=
10564 for n in $names_already_handled; do
10565 if test "$n" = "$name"; then
10566 already_handled=yes
10567 break
10568 fi
10569 done
10570 if test -z "$already_handled"; then
10571 names_already_handled="$names_already_handled $name"
10572 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10573 eval value=\"\$HAVE_LIB$uppername\"
10574 if test -n "$value"; then
10575 if test "$value" = yes; then
10576 eval value=\"\$LIB$uppername\"
10577 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10578 eval value=\"\$LTLIB$uppername\"
10579 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10580 else
10581 :
10582 fi
10583 else
10584 found_dir=
10585 found_la=
10586 found_so=
10587 found_a=
10588 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10589 if test -n "$acl_shlibext"; then
10590 shrext=".$acl_shlibext" # typically: shrext=.so
10591 else
10592 shrext=
10593 fi
10594 if test $use_additional = yes; then
10595 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10596 if test "X$found_dir" = "X"; then
10597 eval dir=\$$additional_libdir_variable
10598 if test -n "$dir"; then
10599 if test -n "$acl_shlibext"; then
10600 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10601 found_dir="$dir"
10602 found_so="$dir/$libname$shrext"
10603 else
10604 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10605 ver=`(cd "$dir" && \
10606 for f in "$libname$shrext".*; do echo "$f"; done \
10607 | sed -e "s,^$libname$shrext\\\\.,," \
10608 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10609 | sed 1q ) 2>/dev/null`
10610 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10611 found_dir="$dir"
10612 found_so="$dir/$libname$shrext.$ver"
10613 fi
10614 else
10615 eval library_names=\"$acl_library_names_spec\"
10616 for f in $library_names; do
10617 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10618 found_dir="$dir"
10619 found_so="$dir/$f"
10620 break
10621 fi
10622 done
10623 fi
10624 fi
10625 fi
10626 if test "X$found_dir" = "X"; then
10627 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10628 found_dir="$dir"
10629 found_a="$dir/$libname.$acl_libext"
10630 fi
10631 fi
10632 if test "X$found_dir" != "X"; then
10633 if test -f "$dir/$libname.la"; then
10634 found_la="$dir/$libname.la"
10635 fi
10636 fi
10637 fi
10638 fi
10639 done
10640 fi
10641 if test "X$found_dir" = "X"; then
10642 for x in $LDFLAGS $LTLIBINTL; do
10643
10644 acl_save_prefix="$prefix"
10645 prefix="$acl_final_prefix"
10646 acl_save_exec_prefix="$exec_prefix"
10647 exec_prefix="$acl_final_exec_prefix"
10648 eval x=\"$x\"
10649 exec_prefix="$acl_save_exec_prefix"
10650 prefix="$acl_save_prefix"
10651
10652 case "$x" in
10653 -L*)
10654 dir=`echo "X$x" | sed -e 's/^X-L//'`
10655 if test -n "$acl_shlibext"; then
10656 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10657 found_dir="$dir"
10658 found_so="$dir/$libname$shrext"
10659 else
10660 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10661 ver=`(cd "$dir" && \
10662 for f in "$libname$shrext".*; do echo "$f"; done \
10663 | sed -e "s,^$libname$shrext\\\\.,," \
10664 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10665 | sed 1q ) 2>/dev/null`
10666 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10667 found_dir="$dir"
10668 found_so="$dir/$libname$shrext.$ver"
10669 fi
10670 else
10671 eval library_names=\"$acl_library_names_spec\"
10672 for f in $library_names; do
10673 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10674 found_dir="$dir"
10675 found_so="$dir/$f"
10676 break
10677 fi
10678 done
10679 fi
10680 fi
10681 fi
10682 if test "X$found_dir" = "X"; then
10683 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10684 found_dir="$dir"
10685 found_a="$dir/$libname.$acl_libext"
10686 fi
10687 fi
10688 if test "X$found_dir" != "X"; then
10689 if test -f "$dir/$libname.la"; then
10690 found_la="$dir/$libname.la"
10691 fi
10692 fi
10693 ;;
10694 esac
10695 if test "X$found_dir" != "X"; then
10696 break
10697 fi
10698 done
10699 fi
10700 if test "X$found_dir" != "X"; then
10701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10702 if test "X$found_so" != "X"; then
10703 if test "$enable_rpath" = no \
10704 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10705 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10706 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10707 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10708 else
10709 haveit=
10710 for x in $ltrpathdirs; do
10711 if test "X$x" = "X$found_dir"; then
10712 haveit=yes
10713 break
10714 fi
10715 done
10716 if test -z "$haveit"; then
10717 ltrpathdirs="$ltrpathdirs $found_dir"
10718 fi
10719 if test "$acl_hardcode_direct" = yes; then
10720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10721 else
10722 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10723 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10724 haveit=
10725 for x in $rpathdirs; do
10726 if test "X$x" = "X$found_dir"; then
10727 haveit=yes
10728 break
10729 fi
10730 done
10731 if test -z "$haveit"; then
10732 rpathdirs="$rpathdirs $found_dir"
10733 fi
10734 else
10735 haveit=
10736 for x in $LDFLAGS $LIBINTL; do
10737
10738 acl_save_prefix="$prefix"
10739 prefix="$acl_final_prefix"
10740 acl_save_exec_prefix="$exec_prefix"
10741 exec_prefix="$acl_final_exec_prefix"
10742 eval x=\"$x\"
10743 exec_prefix="$acl_save_exec_prefix"
10744 prefix="$acl_save_prefix"
10745
10746 if test "X$x" = "X-L$found_dir"; then
10747 haveit=yes
10748 break
10749 fi
10750 done
10751 if test -z "$haveit"; then
10752 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10753 fi
10754 if test "$acl_hardcode_minus_L" != no; then
10755 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10756 else
10757 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10758 fi
10759 fi
10760 fi
10761 fi
10762 else
10763 if test "X$found_a" != "X"; then
10764 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10765 else
10766 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10767 fi
10768 fi
10769 additional_includedir=
10770 case "$found_dir" in
10771 */$acl_libdirstem | */$acl_libdirstem/)
10772 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10773 if test "$name" = 'intl'; then
10774 LIBINTL_PREFIX="$basedir"
10775 fi
10776 additional_includedir="$basedir/include"
10777 ;;
10778 */$acl_libdirstem2 | */$acl_libdirstem2/)
10779 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10780 if test "$name" = 'intl'; then
10781 LIBINTL_PREFIX="$basedir"
10782 fi
10783 additional_includedir="$basedir/include"
10784 ;;
10785 */$acl_libdirstem3 | */$acl_libdirstem3/)
10786 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10787 if test "$name" = 'intl'; then
10788 LIBINTL_PREFIX="$basedir"
10789 fi
10790 additional_includedir="$basedir/include"
10791 ;;
10792 esac
10793 if test "X$additional_includedir" != "X"; then
10794 if test "X$additional_includedir" != "X/usr/include"; then
10795 haveit=
10796 if test "X$additional_includedir" = "X/usr/local/include"; then
10797 if test -n "$GCC"; then
10798 case $host_os in
10799 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10800 esac
10801 fi
10802 fi
10803 if test -z "$haveit"; then
10804 for x in $CPPFLAGS $INCINTL; do
10805
10806 acl_save_prefix="$prefix"
10807 prefix="$acl_final_prefix"
10808 acl_save_exec_prefix="$exec_prefix"
10809 exec_prefix="$acl_final_exec_prefix"
10810 eval x=\"$x\"
10811 exec_prefix="$acl_save_exec_prefix"
10812 prefix="$acl_save_prefix"
10813
10814 if test "X$x" = "X-I$additional_includedir"; then
10815 haveit=yes
10816 break
10817 fi
10818 done
10819 if test -z "$haveit"; then
10820 if test -d "$additional_includedir"; then
10821 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10822 fi
10823 fi
10824 fi
10825 fi
10826 fi
10827 if test -n "$found_la"; then
10828 save_libdir="$libdir"
10829 case "$found_la" in
10830 */* | *\\*) . "$found_la" ;;
10831 *) . "./$found_la" ;;
10832 esac
10833 libdir="$save_libdir"
10834 for dep in $dependency_libs; do
10835 case "$dep" in
10836 -L*)
10837 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10838 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10839 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10840 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10841 haveit=
10842 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10843 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10844 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10845 if test -n "$GCC"; then
10846 case $host_os in
10847 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10848 esac
10849 fi
10850 fi
10851 if test -z "$haveit"; then
10852 haveit=
10853 for x in $LDFLAGS $LIBINTL; do
10854
10855 acl_save_prefix="$prefix"
10856 prefix="$acl_final_prefix"
10857 acl_save_exec_prefix="$exec_prefix"
10858 exec_prefix="$acl_final_exec_prefix"
10859 eval x=\"$x\"
10860 exec_prefix="$acl_save_exec_prefix"
10861 prefix="$acl_save_prefix"
10862
10863 if test "X$x" = "X-L$dependency_libdir"; then
10864 haveit=yes
10865 break
10866 fi
10867 done
10868 if test -z "$haveit"; then
10869 if test -d "$dependency_libdir"; then
10870 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10871 fi
10872 fi
10873 haveit=
10874 for x in $LDFLAGS $LTLIBINTL; do
10875
10876 acl_save_prefix="$prefix"
10877 prefix="$acl_final_prefix"
10878 acl_save_exec_prefix="$exec_prefix"
10879 exec_prefix="$acl_final_exec_prefix"
10880 eval x=\"$x\"
10881 exec_prefix="$acl_save_exec_prefix"
10882 prefix="$acl_save_prefix"
10883
10884 if test "X$x" = "X-L$dependency_libdir"; then
10885 haveit=yes
10886 break
10887 fi
10888 done
10889 if test -z "$haveit"; then
10890 if test -d "$dependency_libdir"; then
10891 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10892 fi
10893 fi
10894 fi
10895 fi
10896 ;;
10897 -R*)
10898 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10899 if test "$enable_rpath" != no; then
10900 haveit=
10901 for x in $rpathdirs; do
10902 if test "X$x" = "X$dir"; then
10903 haveit=yes
10904 break
10905 fi
10906 done
10907 if test -z "$haveit"; then
10908 rpathdirs="$rpathdirs $dir"
10909 fi
10910 haveit=
10911 for x in $ltrpathdirs; do
10912 if test "X$x" = "X$dir"; then
10913 haveit=yes
10914 break
10915 fi
10916 done
10917 if test -z "$haveit"; then
10918 ltrpathdirs="$ltrpathdirs $dir"
10919 fi
10920 fi
10921 ;;
10922 -l*)
10923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10924 ;;
10925 *.la)
10926 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10927 ;;
10928 *)
10929 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10930 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10931 ;;
10932 esac
10933 done
10934 fi
10935 else
10936 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10937 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10938 fi
10939 fi
10940 fi
10941 done
10942 done
10943 if test "X$rpathdirs" != "X"; then
10944 if test -n "$acl_hardcode_libdir_separator"; then
10945 alldirs=
10946 for found_dir in $rpathdirs; do
10947 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10948 done
10949 acl_save_libdir="$libdir"
10950 libdir="$alldirs"
10951 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10952 libdir="$acl_save_libdir"
10953 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10954 else
10955 for found_dir in $rpathdirs; do
10956 acl_save_libdir="$libdir"
10957 libdir="$found_dir"
10958 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10959 libdir="$acl_save_libdir"
10960 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10961 done
10962 fi
10963 fi
10964 if test "X$ltrpathdirs" != "X"; then
10965 for found_dir in $ltrpathdirs; do
10966 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10967 done
10968 fi
10969
10970
10971
10972
10973
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10975 printf %s "checking for GNU gettext in libintl... " >&6; }
10976 if eval test \${$gt_func_gnugettext_libintl+y}
10977 then :
10978 printf %s "(cached) " >&6
10979 else case e in #(
10980 e) gt_save_CPPFLAGS="$CPPFLAGS"
10981 CPPFLAGS="$CPPFLAGS $INCINTL"
10982 gt_save_LIBS="$LIBS"
10983 LIBS="$LIBS $LIBINTL"
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986
10987 #include <libintl.h>
10988 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10989 extern int _nl_msg_cat_cntr;
10990 extern
10991 #ifdef __cplusplus
10992 "C"
10993 #endif
10994 const char *_nl_expand_alias (const char *);
10995 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10996 #else
10997 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10998 #endif
10999 $gt_revision_test_code
11000
11001 int
11002 main (void)
11003 {
11004
11005 bindtextdomain ("", "");
11006 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
11007
11008 ;
11009 return 0;
11010 }
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"
11013 then :
11014 eval "$gt_func_gnugettext_libintl=yes"
11015 else case e in #(
11016 e) eval "$gt_func_gnugettext_libintl=no" ;;
11017 esac
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11020 conftest$ac_exeext conftest.$ac_ext
11021 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11022 LIBS="$LIBS $LIBICONV"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025
11026 #include <libintl.h>
11027 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11028 extern int _nl_msg_cat_cntr;
11029 extern
11030 #ifdef __cplusplus
11031 "C"
11032 #endif
11033 const char *_nl_expand_alias (const char *);
11034 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
11035 #else
11036 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
11037 #endif
11038 $gt_revision_test_code
11039
11040 int
11041 main (void)
11042 {
11043
11044 bindtextdomain ("", "");
11045 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
11046
11047 ;
11048 return 0;
11049 }
11050 _ACEOF
11051 if ac_fn_c_try_link "$LINENO"
11052 then :
11053 LIBINTL="$LIBINTL $LIBICONV"
11054 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11055 eval "$gt_func_gnugettext_libintl=yes"
11056
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11059 conftest$ac_exeext conftest.$ac_ext
11060 fi
11061 CPPFLAGS="$gt_save_CPPFLAGS"
11062 LIBS="$gt_save_LIBS" ;;
11063 esac
11064 fi
11065 eval ac_res=\$$gt_func_gnugettext_libintl
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11067 printf "%s\n" "$ac_res" >&6; }
11068 fi
11069
11070 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11071 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11072 && test "$PACKAGE" != gettext-runtime \
11073 && test "$PACKAGE" != gettext-tools; }; then
11074 gt_use_preinstalled_gnugettext=yes
11075 else
11076 LIBINTL=
11077 LTLIBINTL=
11078 INCINTL=
11079 fi
11080
11081
11082
11083 if test -n "$INTL_MACOSX_LIBS"; then
11084 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11085 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11086 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11087 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11088 fi
11089 fi
11090
11091 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11092 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11093
11094 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
11095
11096 else
11097 USE_NLS=no
11098 fi
11099 fi
11100
11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11102 printf %s "checking whether to use NLS... " >&6; }
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11104 printf "%s\n" "$USE_NLS" >&6; }
11105 if test "$USE_NLS" = "yes"; then
11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11107 printf %s "checking where the gettext function comes from... " >&6; }
11108 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11109 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11110 gt_source="external libintl"
11111 else
11112 gt_source="libc"
11113 fi
11114 else
11115 gt_source="included intl directory"
11116 fi
11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11118 printf "%s\n" "$gt_source" >&6; }
11119 fi
11120
11121 if test "$USE_NLS" = "yes"; then
11122
11123 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11124 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11126 printf %s "checking how to link with libintl... " >&6; }
11127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11128 printf "%s\n" "$LIBINTL" >&6; }
11129
11130 for element in $INCINTL; do
11131 haveit=
11132 for x in $CPPFLAGS; do
11133
11134 acl_save_prefix="$prefix"
11135 prefix="$acl_final_prefix"
11136 acl_save_exec_prefix="$exec_prefix"
11137 exec_prefix="$acl_final_exec_prefix"
11138 eval x=\"$x\"
11139 exec_prefix="$acl_save_exec_prefix"
11140 prefix="$acl_save_prefix"
11141
11142 if test "X$x" = "X$element"; then
11143 haveit=yes
11144 break
11145 fi
11146 done
11147 if test -z "$haveit"; then
11148 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11149 fi
11150 done
11151
11152 fi
11153
11154
11155 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
11156
11157
11158 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
11159
11160 fi
11161
11162 POSUB=po
11163 fi
11164
11165
11166
11167 INTLLIBS="$LIBINTL"
11168
11169
11170
11171
11172
11173
11174
11175 if test "x$USE_NLS" = "xyes"; then
11176 USE_NLS_TRUE=
11177 USE_NLS_FALSE='#'
11178 else
11179 USE_NLS_TRUE='#'
11180 USE_NLS_FALSE=
11181 fi
11182
11183
11184 ### Programs
11185 # Determine if fldigi and flarq have been requested and can be built
11186 # Set ac_cv_want_fldigi and ac_cv_want_flarq to yes/no
11187 # Set WANT_FLDIGI and WANT_FLARQ Makefile conditionals
11188
11189 # Check whether --enable-fldigi was given.
11190 if test ${enable_fldigi+y}
11191 then :
11192 enableval=$enable_fldigi; case "${enableval}" in
11193 yes|no) ac_cv_want_fldigi="${enableval}" ;;
11194 *) as_fn_error $? "bad value ${enableval} for --disable-fldigi" "$LINENO" 5 ;;
11195 esac
11196 else case e in #(
11197 e) ac_cv_want_fldigi=yes ;;
11198 esac
11199 fi
11200
11201
11202 if test "x$ac_cv_want_fldigi" = "xyes"; then
11203 WANT_FLDIGI_TRUE=
11204 WANT_FLDIGI_FALSE='#'
11205 else
11206 WANT_FLDIGI_TRUE='#'
11207 WANT_FLDIGI_FALSE=
11208 fi
11209
11210
11211 # Check whether --enable-flarq was given.
11212 if test ${enable_flarq+y}
11213 then :
11214 enableval=$enable_flarq; case "${enableval}" in
11215 yes|no) ac_cv_want_flarq="${enableval}" ;;
11216 *) as_fn_error $? "bad value ${enableval} for --disable-flarq" "$LINENO" 5 ;;
11217 esac
11218 else case e in #(
11219 e) ac_cv_want_flarq=yes ;;
11220 esac
11221 fi
11222
11223
11224 if test "x$ac_cv_want_flarq" = "xyes"; then
11225 WANT_FLARQ_TRUE=
11226 WANT_FLARQ_FALSE='#'
11227 else
11228 WANT_FLARQ_TRUE='#'
11229 WANT_FLARQ_FALSE=
11230 fi
11231
11232
11233
11234 ###### OS support
11235 ### OSX
11236 # Set ac_cv_mac_universal to yes/no
11237 # Set DARWIN Makefile conditional
11238 # Substitute MAC_UNIVERSAL_CFLAGS and MAC_UNIVERSAL_LDFLAGS in Makefile
11239
11240 case "$target_os" in
11241 darwin*)
11242 target_darwin="yes"
11243 ;;
11244 *)
11245 target_darwin="no"
11246 ;;
11247 esac
11248
11249 if test "$target_darwin" = "yes"; then
11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using bundled GNU regex on $target_os" >&5
11251 printf "%s\n" "$as_me: using bundled GNU regex on $target_os" >&6;}
11252 # pretend that the regex.h check failed so that we use the bundled regex code
11253 ac_cv_header_regex_h=no
11254
11255 printf "%s\n" "#define HAVE_REGEX_H 0" >>confdefs.h
11256
11257 fi
11258
11259 # Check whether --enable-mac-universal was given.
11260 if test ${enable_mac_universal+y}
11261 then :
11262 enableval=$enable_mac_universal; case "${enableval}" in
11263 yes|no) ac_cv_mac_universal="${enableval}" ;;
11264 *) as_fn_error $? "bad value \"${enableval}\" for --enable-mac-universal" "$LINENO" 5 ;;
11265 esac
11266 else case e in #(
11267 e) ac_cv_mac_universal=no ;;
11268 esac
11269 fi
11270
11271
11272 if test "x$target_darwin" = "xyes" && test "x$ac_cv_mac_universal" = "xyes"; then
11273 mac_minversion="-mmacosx-version-min=10.4"
11274 case "$target_os" in
11275 darwin8*)
11276 mac_arches="-arch i386 -arch ppc"
11277 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
11278 ;;
11279 darwin9*)
11280 mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64"
11281 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
11282 ;;
11283 darwin10*)
11284 mac_arches="-arch i386 -arch x86_64"
11285 mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.6.sdk"
11286 ;;
11287 darwin20*)
11288 mac_arches="-arch arm64 -arch x86_64"
11289 mac_sysroot=""
11290 ;;
11291 *)
11292 mac_arches=""
11293 mac_sysroot=""
11294 ;;
11295 esac
11296 MAC_UNIVERSAL_CFLAGS="$mac_arches $mac_sysroot $mac_minversion"
11297 MAC_UNIVERSAL_LDFLAGS="$mac_arches"
11298 fi
11299
11300
11301
11302 if test "x$target_darwin" = "xyes"; then
11303 DARWIN_TRUE=
11304 DARWIN_FALSE='#'
11305 else
11306 DARWIN_TRUE='#'
11307 DARWIN_FALSE=
11308 fi
11309
11310
11311
11312 ### win32
11313 # Set WIN32 Makefile conditional
11314 # Set HAVE_WINDRES Makefile conditional
11315 # Substitute WINDRES in Makefile
11316
11317 case "$target_os" in
11318 *mingw*)
11319 target_win32="yes"
11320 target_mingw32="yes"
11321 ;;
11322 *cygwin*|*win32*|*w32*)
11323 target_win32="yes"
11324 ;;
11325 *)
11326 target_win32="no"
11327 ;;
11328 esac
11329
11330 if test "x$target_win32" = "xyes"; then
11331 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11332 set dummy ${ac_tool_prefix}windres; ac_word=$2
11333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 printf %s "checking for $ac_word... " >&6; }
11335 if test ${ac_cv_prog_WINDRES+y}
11336 then :
11337 printf %s "(cached) " >&6
11338 else case e in #(
11339 e) if test -n "$WINDRES"; then
11340 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11344 do
11345 IFS=$as_save_IFS
11346 case $as_dir in #(((
11347 '') as_dir=./ ;;
11348 */) ;;
11349 *) as_dir=$as_dir/ ;;
11350 esac
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11353 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
11354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11355 break 2
11356 fi
11357 done
11358 done
11359 IFS=$as_save_IFS
11360
11361 fi ;;
11362 esac
11363 fi
11364 WINDRES=$ac_cv_prog_WINDRES
11365 if test -n "$WINDRES"; then
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11367 printf "%s\n" "$WINDRES" >&6; }
11368 else
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 printf "%s\n" "no" >&6; }
11371 fi
11372
11373
11374 if test "x$WINDRES" = "x" ; then
11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The windres utility could not be found" >&5
11376 printf "%s\n" "$as_me: WARNING: The windres utility could not be found" >&2;}
11377 fi
11378
11379 printf "%s\n" "#define __WOE32__ 1" >>confdefs.h
11380
11381
11382 printf "%s\n" "#define __MINGW32__ 1" >>confdefs.h
11383
11384
11385 printf "%s\n" "#define _WINDOWS 1" >>confdefs.h
11386
11387 fi
11388
11389 if test "x$target_mingw32" = "xyes"; then
11390 # Extract the first word of "makensis", so it can be a program name with args.
11391 set dummy makensis; ac_word=$2
11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 printf %s "checking for $ac_word... " >&6; }
11394 if test ${ac_cv_prog_MAKENSIS+y}
11395 then :
11396 printf %s "(cached) " >&6
11397 else case e in #(
11398 e) if test -n "$MAKENSIS"; then
11399 ac_cv_prog_MAKENSIS="$MAKENSIS" # Let the user override the test.
11400 else
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11403 do
11404 IFS=$as_save_IFS
11405 case $as_dir in #(((
11406 '') as_dir=./ ;;
11407 */) ;;
11408 *) as_dir=$as_dir/ ;;
11409 esac
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11412 ac_cv_prog_MAKENSIS="makensis"
11413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11414 break 2
11415 fi
11416 done
11417 done
11418 IFS=$as_save_IFS
11419
11420 fi ;;
11421 esac
11422 fi
11423 MAKENSIS=$ac_cv_prog_MAKENSIS
11424 if test -n "$MAKENSIS"; then
11425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKENSIS" >&5
11426 printf "%s\n" "$MAKENSIS" >&6; }
11427 else
11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11429 printf "%s\n" "no" >&6; }
11430 fi
11431
11432
11433 fi
11434
11435
11436 if test "x$WINDRES" != "x"; then
11437 HAVE_WINDRES_TRUE=
11438 HAVE_WINDRES_FALSE='#'
11439 else
11440 HAVE_WINDRES_TRUE='#'
11441 HAVE_WINDRES_FALSE=
11442 fi
11443
11444
11445 if test "x$MAKENSIS" != "x"; then
11446 HAVE_NSIS_TRUE=
11447 HAVE_NSIS_FALSE='#'
11448 else
11449 HAVE_NSIS_TRUE='#'
11450 HAVE_NSIS_FALSE=
11451 fi
11452
11453 if test "x$target_win32" = "xyes"; then
11454 WIN32_TRUE=
11455 WIN32_FALSE='#'
11456 else
11457 WIN32_TRUE='#'
11458 WIN32_FALSE=
11459 fi
11460
11461 if test "x$target_mingw32" = "xyes"; then
11462 MINGW32_TRUE=
11463 MINGW32_FALSE='#'
11464 else
11465 MINGW32_TRUE='#'
11466 MINGW32_FALSE=
11467 fi
11468
11469
11470
11471
11472
11473
11474
11475 # Check whether --with-ptw32 was given.
11476 if test ${with_ptw32+y}
11477 then :
11478 withval=$with_ptw32; ac_cv_want_ptw32="$withval"
11479 else case e in #(
11480 e) ac_cv_want_ptw32=no ;;
11481 esac
11482 fi
11483
11484
11485 if test "x$ac_cv_want_ptw32" != "xno"; then
11486 if test "x$ac_cv_want_ptw32" != "xyes"; then # set -I and -L switches
11487 ptw32_default_cflags="-I${ac_cv_want_ptw32}/include"
11488 ptw32_default_libs="-L${ac_cv_want_ptw32}/lib"
11489 fi
11490 ptw32_default_libs="$ptw32_default_libs -lpthreadGC2 -lws2_32"
11491
11492 # don't override the user-specified vars
11493 PTW32_CFLAGS="${PTW32_CFLAGS:-$ptw32_default_cflags}"
11494 PTW32_LIBS="${PTW32_LIBS:-$ptw32_default_libs}"
11495 ac_cv_want_ptw32="yes"
11496 else
11497 if test "x$target_mingw32" = "xyes"; then
11498 PTW32_LIBS="-lpthread -lwsock32 -lws2_32"
11499 fi
11500 fi
11501
11502
11503
11504
11505
11506 ### Non-POSIX compatibility (i.e. mingw32)
11507 # Sets various Makefile conditionals; see m4/np-compat.m4
11508
11509
11510
11511
11512
11513 # Check whether --with-clock_gettime was given.
11514 if test ${with_clock_gettime+y}
11515 then :
11516 withval=$with_clock_gettime; case "${withval}" in
11517 yes|no) ac_cv_with_clock_gettime="${withval}" ;;
11518 *) as_fn_error $? "bad value ${withval} for --without-clock_gettime" "$LINENO" 5 ;;
11519 esac
11520 else case e in #(
11521 e) ac_cv_with_clock_gettime=yes ;;
11522 esac
11523 fi
11524
11525
11526 if test "x$ac_cv_with_clock_gettime" = "xyes"; then
11527
11528
11529
11530
11531 LIBS_search_libs_save="$LIBS"
11532 LIBS=""
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11534 printf %s "checking for library containing clock_gettime... " >&6; }
11535 if test ${ac_cv_search_clock_gettime+y}
11536 then :
11537 printf %s "(cached) " >&6
11538 else case e in #(
11539 e) ac_func_search_save_LIBS=$LIBS
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply.
11546 The 'extern "C"' is for builds by C++ compilers;
11547 although this is not generally supported in C code supporting it here
11548 has little cost and some practical benefit (sr 110532). */
11549 #ifdef __cplusplus
11550 extern "C"
11551 #endif
11552 char clock_gettime (void);
11553 int
11554 main (void)
11555 {
11556 return clock_gettime ();
11557 ;
11558 return 0;
11559 }
11560 _ACEOF
11561 for ac_lib in '' rt
11562 do
11563 if test -z "$ac_lib"; then
11564 ac_res="none required"
11565 else
11566 ac_res=-l$ac_lib
11567 LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
11568 fi
11569 if ac_fn_c_try_link "$LINENO"
11570 then :
11571 ac_cv_search_clock_gettime=$ac_res
11572 fi
11573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11574 conftest$ac_exeext
11575 if test ${ac_cv_search_clock_gettime+y}
11576 then :
11577 break
11578 fi
11579 done
11580 if test ${ac_cv_search_clock_gettime+y}
11581 then :
11582
11583 else case e in #(
11584 e) ac_cv_search_clock_gettime=no ;;
11585 esac
11586 fi
11587 rm conftest.$ac_ext
11588 LIBS=$ac_func_search_save_LIBS ;;
11589 esac
11590 fi
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11592 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
11593 ac_res=$ac_cv_search_clock_gettime
11594 if test "$ac_res" != no
11595 then :
11596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11597 ac_cv_have_func_clock_gettime=1
11598 else case e in #(
11599 e) ac_cv_have_func_clock_gettime=0 ;;
11600 esac
11601 fi
11602
11603 if test "x$LIBS" != "x"; then
11604 echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
11605 fi
11606
11607 printf "%s\n" "#define HAVE_CLOCK_GETTIME $ac_cv_have_func_clock_gettime" >>confdefs.h
11608
11609 LIBS="$LIBS_search_libs_save"
11610
11611
11612 fi
11613
11614 if test "x$target_mingw32" = "xyes"; then
11615 # Newer versions of mingw32 comes with pthread.
11616 sem_libs="pthreadGC2 pthread"
11617 # pretend that the regex.h check failed so that we use the bundled regex code
11618 ac_cv_header_regex_h=no
11619
11620 printf "%s\n" "#define HAVE_REGEX_H 0" >>confdefs.h
11621
11622 else
11623 sem_libs="pthread rt"
11624 fi
11625 if test "x$ac_cv_header_regex_h" != "xyes"; then
11626 COMPAT_REGEX_TRUE=
11627 COMPAT_REGEX_FALSE='#'
11628 else
11629 COMPAT_REGEX_TRUE='#'
11630 COMPAT_REGEX_FALSE=
11631 fi
11632
11633
11634 other_libs=""
11635
11636 if test "x$ac_cv_want_ptw32" = "xyes"; then
11637 CFLAGS_saved="$CFLAGS"
11638 LDFLAGS_saved="$LDFLAGS"
11639 EXTRA_LIBS_saved="$EXTRA_LIBS"
11640 CFLAGS="$CFLAGS $PTW32_CFLAGS"
11641 LDFLAGS="$LDFLAGS $PTW32_LIBS"
11642 other_libs=-lws2_32
11643 fi
11644
11645
11646
11647
11648
11649 LIBS_search_libs_save="$LIBS"
11650 LIBS=""
11651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11652 printf %s "checking for library containing dlopen... " >&6; }
11653 if test ${ac_cv_search_dlopen+y}
11654 then :
11655 printf %s "(cached) " >&6
11656 else case e in #(
11657 e) ac_func_search_save_LIBS=$LIBS
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply.
11664 The 'extern "C"' is for builds by C++ compilers;
11665 although this is not generally supported in C code supporting it here
11666 has little cost and some practical benefit (sr 110532). */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char dlopen (void);
11671 int
11672 main (void)
11673 {
11674 return dlopen ();
11675 ;
11676 return 0;
11677 }
11678 _ACEOF
11679 for ac_lib in '' dl
11680 do
11681 if test -z "$ac_lib"; then
11682 ac_res="none required"
11683 else
11684 ac_res=-l$ac_lib
11685 LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
11686 fi
11687 if ac_fn_c_try_link "$LINENO"
11688 then :
11689 ac_cv_search_dlopen=$ac_res
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11692 conftest$ac_exeext
11693 if test ${ac_cv_search_dlopen+y}
11694 then :
11695 break
11696 fi
11697 done
11698 if test ${ac_cv_search_dlopen+y}
11699 then :
11700
11701 else case e in #(
11702 e) ac_cv_search_dlopen=no ;;
11703 esac
11704 fi
11705 rm conftest.$ac_ext
11706 LIBS=$ac_func_search_save_LIBS ;;
11707 esac
11708 fi
11709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11710 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
11711 ac_res=$ac_cv_search_dlopen
11712 if test "$ac_res" != no
11713 then :
11714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11715 ac_cv_have_func_dlopen=1
11716 else case e in #(
11717 e) ac_cv_have_func_dlopen=0 ;;
11718 esac
11719 fi
11720
11721 if test "x$LIBS" != "x"; then
11722 echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
11723 fi
11724
11725 printf "%s\n" "#define HAVE_DLOPEN $ac_cv_have_func_dlopen" >>confdefs.h
11726
11727 LIBS="$LIBS_search_libs_save"
11728
11729
11730
11731
11732
11733
11734 LIBS_search_libs_save="$LIBS"
11735 LIBS=""
11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_unlink" >&5
11737 printf %s "checking for library containing sem_unlink... " >&6; }
11738 if test ${ac_cv_search_sem_unlink+y}
11739 then :
11740 printf %s "(cached) " >&6
11741 else case e in #(
11742 e) ac_func_search_save_LIBS=$LIBS
11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11745
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply.
11749 The 'extern "C"' is for builds by C++ compilers;
11750 although this is not generally supported in C code supporting it here
11751 has little cost and some practical benefit (sr 110532). */
11752 #ifdef __cplusplus
11753 extern "C"
11754 #endif
11755 char sem_unlink (void);
11756 int
11757 main (void)
11758 {
11759 return sem_unlink ();
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 for ac_lib in '' $sem_libs
11765 do
11766 if test -z "$ac_lib"; then
11767 ac_res="none required"
11768 else
11769 ac_res=-l$ac_lib
11770 LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
11771 fi
11772 if ac_fn_c_try_link "$LINENO"
11773 then :
11774 ac_cv_search_sem_unlink=$ac_res
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11777 conftest$ac_exeext
11778 if test ${ac_cv_search_sem_unlink+y}
11779 then :
11780 break
11781 fi
11782 done
11783 if test ${ac_cv_search_sem_unlink+y}
11784 then :
11785
11786 else case e in #(
11787 e) ac_cv_search_sem_unlink=no ;;
11788 esac
11789 fi
11790 rm conftest.$ac_ext
11791 LIBS=$ac_func_search_save_LIBS ;;
11792 esac
11793 fi
11794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_unlink" >&5
11795 printf "%s\n" "$ac_cv_search_sem_unlink" >&6; }
11796 ac_res=$ac_cv_search_sem_unlink
11797 if test "$ac_res" != no
11798 then :
11799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11800 ac_cv_have_func_sem_unlink=1
11801 else case e in #(
11802 e) ac_cv_have_func_sem_unlink=0 ;;
11803 esac
11804 fi
11805
11806 if test "x$LIBS" != "x"; then
11807 echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
11808 fi
11809
11810 printf "%s\n" "#define HAVE_SEM_UNLINK $ac_cv_have_func_sem_unlink" >>confdefs.h
11811
11812 LIBS="$LIBS_search_libs_save"
11813
11814
11815
11816
11817
11818
11819 LIBS_search_libs_save="$LIBS"
11820 LIBS=""
11821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_timedwait" >&5
11822 printf %s "checking for library containing sem_timedwait... " >&6; }
11823 if test ${ac_cv_search_sem_timedwait+y}
11824 then :
11825 printf %s "(cached) " >&6
11826 else case e in #(
11827 e) ac_func_search_save_LIBS=$LIBS
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830
11831 /* Override any GCC internal prototype to avoid an error.
11832 Use char because int might match the return type of a GCC
11833 builtin and then its argument prototype would still apply.
11834 The 'extern "C"' is for builds by C++ compilers;
11835 although this is not generally supported in C code supporting it here
11836 has little cost and some practical benefit (sr 110532). */
11837 #ifdef __cplusplus
11838 extern "C"
11839 #endif
11840 char sem_timedwait (void);
11841 int
11842 main (void)
11843 {
11844 return sem_timedwait ();
11845 ;
11846 return 0;
11847 }
11848 _ACEOF
11849 for ac_lib in '' $sem_libs
11850 do
11851 if test -z "$ac_lib"; then
11852 ac_res="none required"
11853 else
11854 ac_res=-l$ac_lib
11855 LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
11856 fi
11857 if ac_fn_c_try_link "$LINENO"
11858 then :
11859 ac_cv_search_sem_timedwait=$ac_res
11860 fi
11861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11862 conftest$ac_exeext
11863 if test ${ac_cv_search_sem_timedwait+y}
11864 then :
11865 break
11866 fi
11867 done
11868 if test ${ac_cv_search_sem_timedwait+y}
11869 then :
11870
11871 else case e in #(
11872 e) ac_cv_search_sem_timedwait=no ;;
11873 esac
11874 fi
11875 rm conftest.$ac_ext
11876 LIBS=$ac_func_search_save_LIBS ;;
11877 esac
11878 fi
11879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_timedwait" >&5
11880 printf "%s\n" "$ac_cv_search_sem_timedwait" >&6; }
11881 ac_res=$ac_cv_search_sem_timedwait
11882 if test "$ac_res" != no
11883 then :
11884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11885 ac_cv_have_func_sem_timedwait=1
11886 else case e in #(
11887 e) ac_cv_have_func_sem_timedwait=0 ;;
11888 esac
11889 fi
11890
11891 if test "x$LIBS" != "x"; then
11892 echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
11893 fi
11894
11895 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT $ac_cv_have_func_sem_timedwait" >>confdefs.h
11896
11897 LIBS="$LIBS_search_libs_save"
11898
11899
11900
11901 if test "x$ac_cv_want_ptw32" = "xyes"; then
11902 CFLAGS="$CFLAGS_saved"
11903 LDFLAGS="$LDFLAGS_saved"
11904 EXTRA_LIBS="$EXTRA_LIBS_saved"
11905 fi
11906
11907
11908 if test "x$ac_cv_func_strcasestr" != "xyes"; then
11909 COMPAT_STRCASESTR_TRUE=
11910 COMPAT_STRCASESTR_FALSE='#'
11911 else
11912 COMPAT_STRCASESTR_TRUE='#'
11913 COMPAT_STRCASESTR_FALSE=
11914 fi
11915
11916
11917
11918
11919 ### static flag
11920 # Set ac_cv_static to yes/no
11921 # Substitute RTLIB in Makefile
11922
11923 # Check whether --enable-static was given.
11924 if test ${enable_static+y}
11925 then :
11926 enableval=$enable_static; case "${enableval}" in
11927 yes|no) ac_cv_static="${enableval}" ;;
11928 *) as_fn_error $? "bad value ${enableval} for --enable-static" "$LINENO" 5 ;;
11929 esac
11930 else case e in #(
11931 e) ac_cv_static=no ;;
11932 esac
11933 fi
11934
11935
11936
11937 ### optimizations
11938 # Set ac_cv_opt to arg
11939 # Substitute OPT_FLAGS in Makefile
11940
11941 # Check whether --enable-optimizations was given.
11942 if test ${enable_optimizations+y}
11943 then :
11944 enableval=$enable_optimizations; case "${enableval}" in
11945 none|sse|sse2|sse3|sse4|i486|i686|avx|avx2|x86-64|rpi1|rpi2|rpi3|rpi4|bbb|cyclone5|nativeARM|native)
11946 ac_cv_opt="${enableval}"
11947 ;;
11948 *)
11949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: possible values: none|sse|sse2|sse3|sse4|avx|avx2|i486|i686|x86-64|native" >&5
11950 printf "%s\n" "$as_me: WARNING: possible values: none|sse|sse2|sse3|sse4|avx|avx2|i486|i686|x86-64|native" >&2;}
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: possible values: none|rpi1|rpi2|rpi3|rpi4|bbb|cyclone5|nativeARM" >&5
11952 printf "%s\n" "$as_me: WARNING: possible values: none|rpi1|rpi2|rpi3|rpi4|bbb|cyclone5|nativeARM" >&2;}
11953 as_fn_error $? "bad value ${enableval} for --enable-optimizations" "$LINENO" 5
11954 ;;
11955 esac
11956 else case e in #(
11957 e) ac_cv_opt=none ;;
11958 esac
11959 fi
11960
11961
11962 OPT_CFLAGS="-O2"
11963 OPT_CFLAGS_X86="-O2 -mno-3dnow"
11964 OPT_CFLAGS_ARM="-O2 -mfloat-abi=hard"
11965
11966 case "$ac_cv_opt" in
11967 sse)
11968 OPT_CFLAGS="$OPT_CFLAGS_x86 -mmmx -msse -mfpmath=sse"
11969 ;;
11970 sse2)
11971 OPT_CFLAGS="$OPT_CFLAGS_x86 -mmmx -msse -msse2 -mfpmath=sse"
11972 ;;
11973 sse3)
11974 OPT_CFLAGS="$OPT_CFLAGS_x86 -mmmx -msse -msse2 -msse3 -mfpmath=sse"
11975 ;;
11976 sse4)
11977 OPT_CFLAGS="$OPT_CFLAGS_x86 -mmmx -msse -msse2 -msse3 -msse4 -mfpmath=sse"
11978 ;;
11979 avx)
11980 OPT_CFLAGS="$OPT_CFLAGS_x86 -mavx -mfpmath=sse"
11981 ;;
11982 avx2)
11983 OPT_CFLAGS="$OPT_CFLAGS_x86 -mavx2 -mfpmath=sse"
11984 ;;
11985 i486)
11986 OPT_CFLAGS="$OPT_CFLAGS_x86 -march=i486 -mtune=i486 -mno-mmx -mno-sse -mfpmath=387"
11987 ;;
11988 i686)
11989 OPT_CFLAGS="$OPT_CFLAGS_x86 -march=i686 -mtune=i686 -mmmx -msse -mfpmath=sse"
11990 ;;
11991 x86-64)
11992 OPT_CFLAGS="$OPT_CFLAGS_x86 -march=x86-64 -mtune=k8 -mmmx -msse -msse2 -mfpmath=sse"
11993 ;;
11994 rpi1)
11995 OPT_CFLAGS="$OPT_CFLAGS_ARM -mcpu=arm1176jzf-s -mfpu=vfp"
11996 ;;
11997 rpi2)
11998 OPT_CFLAGS="$OPT_CFLAGS_ARM -mcpu=cortex-a7 -mfpu=neon-vfpv4"
11999 ;;
12000 rpi3)
12001 OPT_CFLAGS="$OPT_CFLAGS_ARM -mcpu=cortex-a7 -mfpu=neon-vfpv4"
12002 ;;
12003 rpi4)
12004 OPT_CFLAGS="$OPT_CFLAGS_ARM -mcpu=cortex-a7 -mfpu=neon-vfpv4"
12005 ;;
12006 bbb)
12007 OPT_CFLAGS="$OPT_CFLAGS_ARM -mcpu=cortex-a8 -mfpu=neon"
12008 ;;
12009 cyclone5)
12010 OPT_CFLAGS="$OPT_CFLAGS_ARM -mcpu=cortex-a9 -mfpu=neon"
12011 ;;
12012 nativeARM)
12013 OPT_CFLAGS="$OPT_CFLAGS_ARM -mcpu=native -mfpu=auto" # GCC for ARM uses -mcpu only for best-results
12014 ;;
12015 native)
12016 OPT_CFLAGS="$OPT_CFLAGS_X86 -march=native -mtune=native -mfpmath=sse"
12017 ;;
12018 none)
12019 ;;
12020 esac
12021
12022
12023
12024
12025 ### debug flag
12026 # Set ac_cv_debug to yes/no
12027 # Override CXXFLAGS
12028 # Set ENABLE_DEBUG Makefile conditional
12029 # Substitute RDYNAMIC in Makefile
12030
12031
12032 # Check whether --enable-debug was given.
12033 if test ${enable_debug+y}
12034 then :
12035 enableval=$enable_debug; case "${enableval}" in
12036 yes|no) ac_cv_debug="${enableval}" ;;
12037 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
12038 esac
12039 else case e in #(
12040 e) ac_cv_debug=no ;;
12041 esac
12042 fi
12043
12044
12045
12046
12047
12048 # Check whether --with-bfd was given.
12049 if test ${with_bfd+y}
12050 then :
12051 withval=$with_bfd; ac_cv_want_bfd="$withval"
12052 else case e in #(
12053 e) ac_cv_want_bfd=yes ;;
12054 esac
12055 fi
12056
12057
12058 if test "x$ac_cv_debug" = "xyes" && test "x$ac_cv_want_bfd" != "xno" && \
12059 test "x$target_mingw32" = "xyes"; then
12060 if test "x$ac_cv_want_bfd" != "xyes"; then # set -I and -L switches
12061 bfd_default_cflags="-I${ac_cv_want_bfd}/include"
12062 bfd_default_libs="-L${ac_cv_want_bfd}/lib"
12063 fi
12064 # don't override the user-specified vars
12065 BFD_CFLAGS="${BFD_CFLAGS:-$bfd_default_cflags}"
12066 BFD_LIBS="${BFD_LIBS:-$bfd_default_libs}"
12067 ac_cv_want_bfd="yes"
12068
12069 CPPFLAGS_saved="$CPPFLAGS"
12070 LDFLAGS_saved="$LDFLAGS"
12071 CPPFLAGS="$CPPFLAGS $BFD_CFLAGS"
12072 LDFLAGS="$LDFLAGS $BFD_LIBS"
12073
12074 ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
12075 if test "x$ac_cv_header_bfd_h" = xyes
12076 then :
12077 ac_cv_have_bfd="yes"
12078 else case e in #(
12079 e) ac_cv_have_bfd="no" ;;
12080 esac
12081 fi
12082
12083 if test "x$ac_cv_have_bfd" = "xyes"; then
12084 bfd_other_libs="-liberty -lpsapi -limagehlp"
12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_set_format in -lbfd" >&5
12086 printf %s "checking for bfd_set_format in -lbfd... " >&6; }
12087 if test ${ac_cv_lib_bfd_bfd_set_format+y}
12088 then :
12089 printf %s "(cached) " >&6
12090 else case e in #(
12091 e) ac_check_lib_save_LIBS=$LIBS
12092 LIBS="-lbfd $bfd_other_libs $LIBS"
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095
12096 /* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply.
12099 The 'extern "C"' is for builds by C++ compilers;
12100 although this is not generally supported in C code supporting it here
12101 has little cost and some practical benefit (sr 110532). */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char bfd_set_format (void);
12106 int
12107 main (void)
12108 {
12109 return bfd_set_format ();
12110 ;
12111 return 0;
12112 }
12113 _ACEOF
12114 if ac_fn_c_try_link "$LINENO"
12115 then :
12116 ac_cv_lib_bfd_bfd_set_format=yes
12117 else case e in #(
12118 e) ac_cv_lib_bfd_bfd_set_format=no ;;
12119 esac
12120 fi
12121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12122 conftest$ac_exeext conftest.$ac_ext
12123 LIBS=$ac_check_lib_save_LIBS ;;
12124 esac
12125 fi
12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_set_format" >&5
12127 printf "%s\n" "$ac_cv_lib_bfd_bfd_set_format" >&6; }
12128 if test "x$ac_cv_lib_bfd_bfd_set_format" = xyes
12129 then :
12130 ac_cv_have_bfd="yes"
12131 else case e in #(
12132 e) ac_cv_have_bfd="no" ;;
12133 esac
12134 fi
12135
12136 fi
12137 CPPFLAGS="$CPPFLAGS_saved"
12138 LDFLAGS="$LDFLAGS_saved"
12139 if test "x$ac_cv_have_bfd" = "xyes"; then
12140 BFD_LIBS="$BFD_LIBS -lbfd $bfd_other_libs"
12141 fi
12142 fi
12143
12144 if test "x$ac_cv_debug" = "xyes"; then
12145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debug info flag" >&5
12146 printf %s "checking for debug info flag... " >&6; }
12147 if test "x$GXX" = "xyes"; then
12148 if test "x$target_mingw32" = "xyes"; then
12149 gflag="-gstabs"
12150 else
12151 gflag="-ggdb3"
12152 fi
12153 else
12154 gflag="-g"
12155 fi
12156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gflag" >&5
12157 printf "%s\n" "$gflag" >&6; }
12158 DEBUG_CFLAGS="-O0 -fno-inline-functions $gflag -Wall"
12159
12160
12161 LDFLAGS_saved="$LDFLAGS"
12162 LDFLAGS="$LDFLAGS -rdynamic"
12163
12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
12165 printf %s "checking whether $CC supports -rdynamic... " >&6; }
12166 # don't try this on win32; it succeeds but emits a warning at link time
12167 if test "x$target_win32" != "xyes"; then
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170
12171 int
12172 main (void)
12173 {
12174
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"
12180 then :
12181 ac_cv_rdynamic=yes
12182 else case e in #(
12183 e) ac_cv_rdynamic=no ;;
12184 esac
12185 fi
12186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12187 conftest$ac_exeext conftest.$ac_ext
12188 else
12189 ac_cv_rdynamic=no
12190 fi
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rdynamic" >&5
12192 printf "%s\n" "$ac_cv_rdynamic" >&6; }
12193
12194 ac_ext=cpp
12195 ac_cpp='$CXXCPP $CPPFLAGS'
12196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12199
12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -rdynamic" >&5
12201 printf %s "checking whether $CXX supports -rdynamic... " >&6; }
12202 if test "x$target_win32" != "xyes"; then
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205
12206 int
12207 main (void)
12208 {
12209
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_cxx_try_link "$LINENO"
12215 then :
12216 ac_cv_rdynamic=yes
12217 else case e in #(
12218 e) ac_cv_rdynamic=no ;;
12219 esac
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12222 conftest$ac_exeext conftest.$ac_ext
12223 else
12224 ac_cv_rdynamic=no
12225 fi
12226 ac_ext=c
12227 ac_cpp='$CPP $CPPFLAGS'
12228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12231
12232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rdynamic" >&5
12233 printf "%s\n" "$ac_cv_rdynamic" >&6; }
12234
12235 LDFLAGS="$LDFLAGS_saved"
12236
12237 if test "x$ac_cv_rdynamic" = "xyes"; then
12238 RDYNAMIC=-rdynamic
12239 fi
12240
12241 CXXFLAGS=""
12242 CFLAGS="$CXXFLAGS"
12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: debugging enabled; overriding CXXFLAGS" >&5
12244 printf "%s\n" "$as_me: debugging enabled; overriding CXXFLAGS" >&6;}
12245
12246 if test "x$target_darwin" = "xyes"; then
12247 ac_cv_compat_stack=yes
12248
12249 printf "%s\n" "#define HAVE_DBG_STACK 1" >>confdefs.h
12250
12251 elif test "x$target_mingw32" = "xyes" && test "x$ac_cv_have_bfd" = "xyes"; then
12252 ac_cv_compat_stack=yes
12253
12254 printf "%s\n" "#define HAVE_DBG_STACK 1" >>confdefs.h
12255
12256 else
12257 ac_cv_compat_stack=no
12258
12259 printf "%s\n" "#define HAVE_DBG_STACK 0" >>confdefs.h
12260
12261 fi
12262 fi
12263 if test "x$ac_cv_debug" = "xyes"; then
12264 ENABLE_DEBUG_TRUE=
12265 ENABLE_DEBUG_FALSE='#'
12266 else
12267 ENABLE_DEBUG_TRUE='#'
12268 ENABLE_DEBUG_FALSE=
12269 fi
12270
12271
12272
12273
12274 if test "x$ac_cv_compat_stack" = "xyes"; then
12275 COMPAT_STACK_TRUE=
12276 COMPAT_STACK_FALSE='#'
12277 else
12278 COMPAT_STACK_TRUE='#'
12279 COMPAT_STACK_FALSE=
12280 fi
12281
12282
12283
12284 ### benchmark mode
12285 # Set ac_cv_benchmark to yes/no
12286 # Define BENCHMARK_MODE in config.h
12287 # Set ENABLE_BENCHMARK Makefile conditional
12288
12289 # Check whether --enable-benchmark was given.
12290 if test ${enable_benchmark+y}
12291 then :
12292 enableval=$enable_benchmark; case "${enableval}" in
12293 yes|no) ac_cv_benchmark="${enableval}" ;;
12294 *) as_fn_error $? "bad value ${enableval} for --enable-benchmark" "$LINENO" 5 ;;
12295 esac
12296 else case e in #(
12297 e) ac_cv_benchmark=no ;;
12298 esac
12299 fi
12300
12301
12302 if test "x$ac_cv_benchmark" = "xyes"; then
12303
12304 printf "%s\n" "#define BENCHMARK_MODE 1" >>confdefs.h
12305
12306 else
12307
12308 printf "%s\n" "#define BENCHMARK_MODE 0" >>confdefs.h
12309
12310 fi
12311
12312 if test "x$ac_cv_benchmark" = "xyes"; then
12313 ENABLE_BENCHMARK_TRUE=
12314 ENABLE_BENCHMARK_FALSE='#'
12315 else
12316 ENABLE_BENCHMARK_TRUE='#'
12317 ENABLE_BENCHMARK_FALSE=
12318 fi
12319
12320
12321
12322 ### TLS flag
12323 # Set ac_cv_tls to yes/no
12324 # Define USE_TLS in config.h
12325
12326 # Check whether --enable-tls was given.
12327 if test ${enable_tls+y}
12328 then :
12329 enableval=$enable_tls; case "${enableval}" in
12330 yes|no) ac_cv_want_tls="${enableval}" ;;
12331 *) as_fn_error $? "bad value \"${enableval}\" for --enable-tls" "$LINENO" 5 ;;
12332 esac
12333 else case e in #(
12334 e) ac_cv_want_tls=check ;;
12335 esac
12336 fi
12337
12338
12339 if test "x$target_mingw32" = "xyes"; then
12340 ac_cv_want_tls=no
12341 fi
12342
12343 if test "x$ac_cv_want_tls" = "xno"; then
12344
12345 printf "%s\n" "#define USE_TLS 0" >>confdefs.h
12346
12347 ac_cv_tls=no
12348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
12349 printf %s "checking for TLS support... " >&6; }
12350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12351 printf "%s\n" "disabled" >&6; }
12352 else
12353
12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
12355 printf %s "checking for TLS support... " >&6; }
12356 ac_ext=cpp
12357 ac_cpp='$CXXCPP $CPPFLAGS'
12358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12361
12362
12363 if test "$cross_compiling" = yes
12364 then :
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367 __thread int a; int b; int main() { return a = b; }
12368 _ACEOF
12369 if ac_fn_cxx_try_link "$LINENO"
12370 then :
12371 ac_cv_tls=yes
12372 else case e in #(
12373 e) ac_cv_tls=no ;;
12374 esac
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12377 conftest$ac_exeext conftest.$ac_ext
12378
12379 else case e in #(
12380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12382 __thread int a; int b; int main() { return a = b; }
12383 _ACEOF
12384 if ac_fn_cxx_try_run "$LINENO"
12385 then :
12386 chktls_save_CXXFLAGS="$CXXFLAGS"
12387 thread_CXXFLAGS=failed
12388 for flag in "" "-pthread" "-lpthread"; do
12389 CXXFLAGS="$flag $chktls_save_CXXFLAGS"
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392 #include <pthread.h>
12393 void *g(void *d) { return NULL; }
12394 int
12395 main (void)
12396 {
12397 pthread_t t; pthread_create(&t, NULL, g, NULL);
12398 ;
12399 return 0;
12400 }
12401
12402 _ACEOF
12403 if ac_fn_cxx_try_link "$LINENO"
12404 then :
12405 thread_CXXFLAGS="$flag"
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12408 conftest$ac_exeext conftest.$ac_ext
12409 if test "x$thread_CXXFLAGS" != "xfailed"; then
12410 break
12411 fi
12412 done
12413 CXXFLAGS="$chktls_save_CXXFLAGS"
12414
12415 if test "x$thread_CXXFLAGS" != "xfailed"; then
12416 CXXFLAGS="$thread_CXXFLAGS $chktls_save_CXXFLAGS"
12417 if test "$cross_compiling" = yes
12418 then :
12419 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12420 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12421 as_fn_error $? "cannot run test program while cross compiling
12422 See 'config.log' for more details" "$LINENO" 5; }
12423 else case e in #(
12424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <pthread.h>
12427 __thread int a;
12428 static int *a_in_other_thread;
12429 static void *thread_func(void *arg)
12430 {
12431 a_in_other_thread = &a;
12432 return (void *)0;
12433 }
12434 int
12435 main (void)
12436 {
12437 pthread_t thread;
12438 void *thread_retval;
12439 int *a_in_main_thread;
12440 if (pthread_create(&thread, (pthread_attr_t *)0,
12441 thread_func, (void *)0))
12442 return 0;
12443 a_in_main_thread = &a;
12444 if (pthread_join (thread, &thread_retval))
12445 return 0;
12446 return (a_in_other_thread == a_in_main_thread);
12447 ;
12448 return 0;
12449 }
12450
12451 _ACEOF
12452 if ac_fn_cxx_try_run "$LINENO"
12453 then :
12454 ac_cv_tls=yes
12455 else case e in #(
12456 e) ac_cv_tls=no ;;
12457 esac
12458 fi
12459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12460 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12461 esac
12462 fi
12463
12464 CXXFLAGS="$chktls_save_CXXFLAGS"
12465 fi
12466 else case e in #(
12467 e) ac_cv_tls=no ;;
12468 esac
12469 fi
12470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12471 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12472 esac
12473 fi
12474
12475
12476 ac_ext=c
12477 ac_cpp='$CPP $CPPFLAGS'
12478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12481
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
12483 printf "%s\n" "$ac_cv_tls" >&6; }
12484
12485 if test "x$ac_cv_want_tls" = "xcheck"; then
12486 if test "x$ac_cv_tls" = "xyes"; then
12487
12488 printf "%s\n" "#define USE_TLS 1" >>confdefs.h
12489
12490 else
12491
12492 printf "%s\n" "#define USE_TLS 0" >>confdefs.h
12493
12494 fi
12495 else # $ac_cv_want_tls is yes
12496 if test "x$ac_cv_tls" = "xno"; then
12497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12498 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12499 as_fn_error $? "--enable-tls was given, but TLS is not supported
12500 See 'config.log' for more details" "$LINENO" 5; }
12501 else
12502
12503 printf "%s\n" "#define USE_TLS 1" >>confdefs.h
12504
12505 fi
12506 fi
12507 fi
12508
12509
12510 ### std::bind or alternatives
12511 # Set ac_cv_std_bind or ac_cv_std_tr1_bind to yes/no
12512 # Define HAVE_STD_BIND or HAVE_STD_TR1_BIND in config.h
12513 # Substitute BOOST_CPPFLAGS and BOOST_LDFLAGS in Makefile
12514 # if falling back to Boost
12515
12516 ac_ext=cpp
12517 ac_cpp='$CXXCPP $CPPFLAGS'
12518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12521
12522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for std::bind in <functional>" >&5
12523 printf %s "checking for std::bind in <functional>... " >&6; }
12524 if test ${ax_cv_std_bind+y}
12525 then :
12526 printf %s "(cached) " >&6
12527 else case e in #(
12528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530
12531 #include <functional>
12532 void f(void) { }
12533 int main(int argc, char **argv)
12534 {
12535 std::bind(f)();
12536 return 0;
12537 }
12538
12539 _ACEOF
12540 if ac_fn_cxx_try_compile "$LINENO"
12541 then :
12542 ac_cv_std_bind=yes
12543 else case e in #(
12544 e) ac_cv_std_bind=no ;;
12545 esac
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12548 esac
12549 fi
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_std_bind" >&5
12551 printf "%s\n" "$ax_cv_std_bind" >&6; }
12552
12553 ac_success=no
12554 if test "x$ac_cv_std_bind" = "xyes"; then
12555 ac_success=yes
12556
12557 printf "%s\n" "#define HAVE_STD_BIND 1" >>confdefs.h
12558
12559 else
12560
12561 printf "%s\n" "#define HAVE_STD_BIND 0" >>confdefs.h
12562
12563 fi
12564
12565 if test x$ac_success = xno; then
12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for std::tr1::bind in <tr1/functional>" >&5
12567 printf %s "checking for std::tr1::bind in <tr1/functional>... " >&6; }
12568 if test ${ax_cv_std_tr1_bind+y}
12569 then :
12570 printf %s "(cached) " >&6
12571 else case e in #(
12572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574
12575 #include <tr1/functional>
12576 void f(void) { }
12577 int main(int argc, char **argv)
12578 {
12579 std::tr1::bind(f)();
12580 return 0;
12581 }
12582
12583 _ACEOF
12584 if ac_fn_cxx_try_compile "$LINENO"
12585 then :
12586 ac_cv_std_tr1_bind=yes
12587 else case e in #(
12588 e) ac_cv_std_tr1_bind=no ;;
12589 esac
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12592 esac
12593 fi
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_std_tr1_bind" >&5
12595 printf "%s\n" "$ax_cv_std_tr1_bind" >&6; }
12596
12597 if test "x$ac_cv_std_tr1_bind" = "xyes"; then
12598 ac_success=yes
12599
12600 printf "%s\n" "#define HAVE_STD_TR1_BIND 1" >>confdefs.h
12601
12602 else
12603
12604 printf "%s\n" "#define HAVE_STD_TR1_BIND 0" >>confdefs.h
12605
12606 fi
12607 fi
12608
12609 if test x$ac_success = xno; then
12610 for switch in -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x; do
12611 cachevar=`printf "%s\n" "ax_cv_std_bind_$switch" | sed "$as_sed_sh"`
12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX supports std::bind() feature with $switch" >&5
12613 printf %s "checking for $CXX supports std::bind() feature with $switch... " >&6; }
12614 if eval test \${$cachevar+y}
12615 then :
12616 printf %s "(cached) " >&6
12617 else case e in #(
12618 e) ac_save_CXXFLAGS="$CXXFLAGS"
12619 CXXFLAGS="$CXXFLAGS $switch"
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622
12623 #include <functional>
12624 void f(void) { }
12625 int main(int argc, char **argv)
12626 {
12627 std::bind(f)();
12628 return 0;
12629 }
12630
12631 _ACEOF
12632 if ac_fn_cxx_try_compile "$LINENO"
12633 then :
12634 eval $cachevar=yes
12635 else case e in #(
12636 e) eval $cachevar=no ;;
12637 esac
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12640 CXXFLAGS="$ac_save_CXXFLAGS" ;;
12641 esac
12642 fi
12643 eval ac_res=\$$cachevar
12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12645 printf "%s\n" "$ac_res" >&6; }
12646
12647 if eval test x\$$cachevar = xyes; then
12648 CXXFLAGS="$CXXFLAGS $switch"
12649 ac_cv_std_bind=yes
12650 ac_success=yes
12651 break
12652 fi
12653 done
12654 fi
12655
12656 ac_ext=c
12657 ac_cpp='$CPP $CPPFLAGS'
12658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12661
12662
12663 if test "x$ac_success" = "xno"; then
12664 as_fn_error $? "Could not find std::bind or std::tr1::bind" "$LINENO" 5
12665 fi
12666
12667
12668 ### std::hash or alternatives
12669 # Set ac_cv_std_hash or ac_cv_std_tr1_hash to yes/no
12670 # Define HAVE_STD_HASH or HAVE_STD_TR1_HASH in config.h
12671 # Substitute BOOST_CPPFLAGS and BOOST_LDFLAGS in Makefile
12672 # if falling back to Boost
12673
12674 ac_ext=cpp
12675 ac_cpp='$CXXCPP $CPPFLAGS'
12676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12679
12680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for std::hash in <unordered_map>" >&5
12681 printf %s "checking for std::hash in <unordered_map>... " >&6; }
12682 if test ${ax_cv_std_hash+y}
12683 then :
12684 printf %s "(cached) " >&6
12685 else case e in #(
12686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688
12689 #include <unordered_map>
12690 void f(void) { }
12691 int main(int argc, char **argv)
12692 {
12693 std::hash<int>()(1);
12694 return 0;
12695 }
12696
12697 _ACEOF
12698 if ac_fn_cxx_try_compile "$LINENO"
12699 then :
12700 ac_cv_std_hash=yes
12701 else case e in #(
12702 e) ac_cv_std_hash=no ;;
12703 esac
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12706 esac
12707 fi
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_std_hash" >&5
12709 printf "%s\n" "$ax_cv_std_hash" >&6; }
12710
12711 ac_success=no
12712 if test "x$ac_cv_std_hash" = "xyes"; then
12713 ac_success=yes
12714
12715 printf "%s\n" "#define HAVE_STD_HASH 1" >>confdefs.h
12716
12717 else
12718
12719 printf "%s\n" "#define HAVE_STD_HASH 0" >>confdefs.h
12720
12721 fi
12722
12723 if test x$ac_success = xno; then
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for std::tr1::hash in <tr1/unordered_map>" >&5
12725 printf %s "checking for std::tr1::hash in <tr1/unordered_map>... " >&6; }
12726 if test ${ax_cv_std_tr1_hash+y}
12727 then :
12728 printf %s "(cached) " >&6
12729 else case e in #(
12730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732
12733 #include <tr1/unordered_map>
12734 void f(void) { }
12735 int main(int argc, char **argv)
12736 {
12737 std::tr1::hash<int>()(1);
12738 return 0;
12739 }
12740
12741 _ACEOF
12742 if ac_fn_cxx_try_compile "$LINENO"
12743 then :
12744 ac_cv_std_tr1_hash=yes
12745 else case e in #(
12746 e) ac_cv_std_tr1_hash=no ;;
12747 esac
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12750 esac
12751 fi
12752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_std_tr1_hash" >&5
12753 printf "%s\n" "$ax_cv_std_tr1_hash" >&6; }
12754
12755 if test "x$ac_cv_std_tr1_hash" = "xyes"; then
12756 ac_success=yes
12757
12758 printf "%s\n" "#define HAVE_STD_TR1_HASH 1" >>confdefs.h
12759
12760 else
12761
12762 printf "%s\n" "#define HAVE_STD_TR1_HASH 0" >>confdefs.h
12763
12764 fi
12765 fi
12766
12767 if test x$ac_success = xno; then
12768 for switch in -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x; do
12769 cachevar=`printf "%s\n" "ax_cv_std_hash_$switch" | sed "$as_sed_sh"`
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX supports std::hash() feature with $switch" >&5
12771 printf %s "checking for $CXX supports std::hash() feature with $switch... " >&6; }
12772 if eval test \${$cachevar+y}
12773 then :
12774 printf %s "(cached) " >&6
12775 else case e in #(
12776 e) ac_save_CXXFLAGS="$CXXFLAGS"
12777 CXXFLAGS="$CXXFLAGS $switch"
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780
12781 #include <unordered_map>
12782 void f(void) { }
12783 int main(int argc, char **argv)
12784 {
12785 std::hash<int>()(1);
12786 return 0;
12787 }
12788
12789 _ACEOF
12790 if ac_fn_cxx_try_compile "$LINENO"
12791 then :
12792 eval $cachevar=yes
12793 else case e in #(
12794 e) eval $cachevar=no ;;
12795 esac
12796 fi
12797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12798 CXXFLAGS="$ac_save_CXXFLAGS" ;;
12799 esac
12800 fi
12801 eval ac_res=\$$cachevar
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12803 printf "%s\n" "$ac_res" >&6; }
12804
12805 if eval test x\$$cachevar = xyes; then
12806 CXXFLAGS="$CXXFLAGS $switch"
12807 ac_cv_std_hash=yes
12808 ac_success=yes
12809 break
12810 fi
12811 done
12812 fi
12813
12814 if test "x$ac_cv_std_hash" = "xyes"; then
12815 ac_success=yes
12816
12817 printf "%s\n" "#define HAVE_STD_HASH 1" >>confdefs.h
12818
12819 else
12820
12821 printf "%s\n" "#define HAVE_STD_HASH 0" >>confdefs.h
12822
12823 fi
12824
12825
12826 gcc_dver=$($CXX -dumpversion)
12827 gcc_minver=4.1.0
12828
12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX version >= $gcc_minver" >&5
12830 printf %s "checking for $CXX version >= $gcc_minver... " >&6; }
12831
12832
12833
12834 # Used to indicate true or false condition
12835 ax_compare_version=false
12836
12837 # Convert the two version strings to be compared into a format that
12838 # allows a simple string comparison. The end result is that a version
12839 # string of the form 1.12.5-r617 will be converted to the form
12840 # 0001001200050617. In other words, each number is zero padded to four
12841 # digits, and non digits are removed.
12842
12843 ax_compare_version_A=`echo "$gcc_dver" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12844 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12845 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12846 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12847 -e 's/[^0-9]//g'`
12848
12849
12850 ax_compare_version_B=`echo "$gcc_minver" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
12851 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
12852 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
12853 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
12854 -e 's/[^0-9]//g'`
12855
12856
12857 ax_compare_version=`echo "x$ax_compare_version_A
12858 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
12859
12860
12861
12862 if test "$ax_compare_version" = "true" ; then
12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($gcc_dver)" >&5
12864 printf "%s\n" "yes ($gcc_dver)" >&6; }; GCCVER="ok"
12865 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no ($gcc_dver)" >&5
12866 printf "%s\n" "no ($gcc_dver)" >&6; }; GCCVER="bad"
12867 fi
12868
12869
12870 if test "y$GCCVER" = "yok"; then
12871
12872 printf "%s\n" "#define GCC_VER_OK 1" >>confdefs.h
12873
12874 else
12875
12876 printf "%s\n" "#define GCC_VER_OK 0" >>confdefs.h
12877
12878 fi
12879
12880 ac_ext=c
12881 ac_cpp='$CPP $CPPFLAGS'
12882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12885
12886
12887 if test "x$ac_success" = "xno"; then
12888 as_fn_error $? "Could not find std::hash or std::tr1::hash" "$LINENO" 5
12889 fi
12890
12891
12892 ### FLTK
12893 # Substitute FLTK_CFLAGS and FLTK_LIBS in Makefile
12894 # Set FLUID variable
12895 # Set HAVE_FLUID Makefile conditional
12896
12897
12898
12899
12900
12901 if test "x$FLTK_CFLAGS" = "x" && test "x$FLTK_LIBS" = "x"; then
12902 if test "x$FLTK_CONFIG" = "x"; then
12903 # Extract the first word of "fltk-config", so it can be a program name with args.
12904 set dummy fltk-config; ac_word=$2
12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906 printf %s "checking for $ac_word... " >&6; }
12907 if test ${ac_cv_path_FLTK_CONFIG+y}
12908 then :
12909 printf %s "(cached) " >&6
12910 else case e in #(
12911 e) case $FLTK_CONFIG in
12912 [\\/]* | ?:[\\/]*)
12913 ac_cv_path_FLTK_CONFIG="$FLTK_CONFIG" # Let the user override the test with a path.
12914 ;;
12915 *)
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12918 do
12919 IFS=$as_save_IFS
12920 case $as_dir in #(((
12921 '') as_dir=./ ;;
12922 */) ;;
12923 *) as_dir=$as_dir/ ;;
12924 esac
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12927 ac_cv_path_FLTK_CONFIG="$as_dir$ac_word$ac_exec_ext"
12928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12929 break 2
12930 fi
12931 done
12932 done
12933 IFS=$as_save_IFS
12934
12935 test -z "$ac_cv_path_FLTK_CONFIG" && ac_cv_path_FLTK_CONFIG="no"
12936 ;;
12937 esac ;;
12938 esac
12939 fi
12940 FLTK_CONFIG=$ac_cv_path_FLTK_CONFIG
12941 if test -n "$FLTK_CONFIG"; then
12942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLTK_CONFIG" >&5
12943 printf "%s\n" "$FLTK_CONFIG" >&6; }
12944 else
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 printf "%s\n" "no" >&6; }
12947 fi
12948
12949
12950 else
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fltk-config" >&5
12952 printf %s "checking for fltk-config... " >&6; }
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLTK_CONFIG" >&5
12954 printf "%s\n" "$FLTK_CONFIG" >&6; }
12955 fi
12956 if test "$FLTK_CONFIG" = "no"; then
12957 as_fn_error $? "
12958 *** The fltk-config script could not be found. Please install the development
12959 *** headers and libraries for FLTK 1.1.x, or set PATH to the directory that
12960 *** contains fltk-config.
12961 " "$LINENO" 5
12962 fi
12963 HAVE_FLTK_API_VERSION=no
12964 FLTK_API_VERSION="`$FLTK_CONFIG --version`"
12965 if test $? -ne 0; then
12966 as_fn_error $? "$FLTK_CONFIG failed" "$LINENO" 5
12967 fi
12968 if test -n "$(expr $FLTK_API_VERSION : '1\.13')"; then
12969 HAVE_FLTK_API_VERSION=yes
12970 fi
12971 FLDIGI_FLTK_API_MAJOR=${FLTK_API_VERSION%%.*}
12972
12973 FLDIGI_FLTK_API_MINOR=${FLTK_API_VERSION#*.};
12974 FLDIGI_FLTK_API_MINOR=${FLDIGI_FLTK_API_MINOR%%.*}
12975
12976 FLDIGI_FLTK_API_PATCH=${FLTK_API_VERSION#*.};
12977 FLDIGI_FLTK_API_PATCH=${FLDIGI_FLTK_API_PATCH#*.};
12978
12979 if test "${HAVE_FLTK_API_VERSION}" = "no"; then
12980 as_fn_error $? "
12981 *** The version of FLTK found on your system provides API version $FLTK_API_VERSION.
12982 *** To build $PACKAGE you need a FLTK version that provides API 1.3 or 1.4.
12983 " "$LINENO" 5
12984 fi
12985 if test $FLDIGI_FLTK_API_MINOR -gt 4; then
12986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $PACKAGE_TARNAME may not work with FLTK $FLTK_API_VERSION" >&5
12987 printf "%s\n" "$as_me: WARNING: $PACKAGE_TARNAME may not work with FLTK $FLTK_API_VERSION" >&2;}
12988 fi
12989 FLTK_CFLAGS=`$FLTK_CONFIG --cxxflags`
12990 if test "x$ac_cv_static" != "xyes"; then
12991 FLTK_LIBS=`$FLTK_CONFIG --ldflags --use-images`
12992 else
12993 FLTK_LIBS=`$FLTK_CONFIG --ldstaticflags --use-images`
12994 fi
12995 else
12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not checking for FLTK" >&5
12997 printf "%s\n" "$as_me: not checking for FLTK" >&6;}
12998 fi
12999
13000
13001
13002 cat >>confdefs.h <<_ACEOF
13003 #define FLTK_BUILD_VERSION "`$FLTK_CONFIG --version`"
13004 _ACEOF
13005
13006
13007 printf "%s\n" "#define FLDIGI_FLTK_API_MAJOR $FLDIGI_FLTK_API_MAJOR" >>confdefs.h
13008
13009
13010 printf "%s\n" "#define FLDIGI_FLTK_API_MINOR $FLDIGI_FLTK_API_MINOR" >>confdefs.h
13011
13012
13013 printf "%s\n" "#define FLDIGI_FLTK_API_PATCH $FLDIGI_FLTK_API_PATCH" >>confdefs.h
13014
13015
13016
13017 # Extract the first word of "fluid", so it can be a program name with args.
13018 set dummy fluid; ac_word=$2
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13020 printf %s "checking for $ac_word... " >&6; }
13021 if test ${ac_cv_prog_FLUID+y}
13022 then :
13023 printf %s "(cached) " >&6
13024 else case e in #(
13025 e) if test -n "$FLUID"; then
13026 ac_cv_prog_FLUID="$FLUID" # Let the user override the test.
13027 else
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031 IFS=$as_save_IFS
13032 case $as_dir in #(((
13033 '') as_dir=./ ;;
13034 */) ;;
13035 *) as_dir=$as_dir/ ;;
13036 esac
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13039 ac_cv_prog_FLUID="fluid"
13040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13041 break 2
13042 fi
13043 done
13044 done
13045 IFS=$as_save_IFS
13046
13047 fi ;;
13048 esac
13049 fi
13050 FLUID=$ac_cv_prog_FLUID
13051 if test -n "$FLUID"; then
13052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLUID" >&5
13053 printf "%s\n" "$FLUID" >&6; }
13054 else
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13056 printf "%s\n" "no" >&6; }
13057 fi
13058
13059
13060 if test -n "$FLUID"; then
13061 HAVE_FLUID_TRUE=
13062 HAVE_FLUID_FALSE='#'
13063 else
13064 HAVE_FLUID_TRUE='#'
13065 HAVE_FLUID_FALSE=
13066 fi
13067
13068
13069
13070 ### OSS
13071 # Set ac_cv_oss to yes/no
13072 # Define USE_OSS in config.h
13073
13074
13075
13076 if test "x$target_darwin" = "xno" && test "x$target_win32" = "xno"; then
13077 # Check whether --enable-oss was given.
13078 if test ${enable_oss+y}
13079 then :
13080 enableval=$enable_oss; case "${enableval}" in
13081 yes|no) ac_cv_want_oss="${enableval}" ;;
13082 *) as_fn_error $? "bad value \"${enableval}\" for --disable-oss" "$LINENO" 5 ;;
13083 esac
13084 else case e in #(
13085 e) ac_cv_want_oss=check ;;
13086 esac
13087 fi
13088
13089 else
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling OSS driver on $target_os" >&5
13091 printf "%s\n" "$as_me: disabling OSS driver on $target_os" >&6;}
13092 ac_cv_want_oss=no
13093 fi
13094
13095 ac_cv_oss=no
13096 if test "x$ac_cv_want_oss" = "xno"; then
13097
13098 printf "%s\n" "#define USE_OSS 0" >>confdefs.h
13099
13100 else
13101 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
13102 if test "x$ac_cv_header_sys_soundcard_h" = xyes
13103 then :
13104 ac_cv_oss=yes
13105 else case e in #(
13106 e) ac_fn_c_check_header_compile "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
13107 if test "x$ac_cv_header_machine_soundcard_h" = xyes
13108 then :
13109 ac_cv_oss=yes
13110 else case e in #(
13111 e) ac_fn_c_check_header_compile "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
13112 if test "x$ac_cv_header_soundcard_h" = xyes
13113 then :
13114 ac_cv_oss=yes
13115 fi
13116 ;;
13117 esac
13118 fi
13119 ;;
13120 esac
13121 fi
13122
13123 if test "x$ac_cv_want_oss" = "xcheck"; then
13124 if test "x$ac_cv_oss" = "xyes"; then
13125
13126 printf "%s\n" "#define USE_OSS 1" >>confdefs.h
13127
13128 else
13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disabling OSS driver" >&5
13130 printf "%s\n" "$as_me: disabling OSS driver" >&6;}
13131
13132 printf "%s\n" "#define USE_OSS 0" >>confdefs.h
13133
13134 fi
13135 else # $ac_cv_want_oss is yes
13136 if test "x$ac_cv_oss" = "xno"; then
13137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13138 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13139 as_fn_error $? "--enable-oss was given, but test for OSS failed
13140 See 'config.log' for more details" "$LINENO" 5; }
13141 else
13142
13143 printf "%s\n" "#define USE_OSS 1" >>confdefs.h
13144
13145 fi
13146 fi
13147 fi
13148
13149
13150 ### libpng
13151 # Required if $ac_cv_want_fldigi is "yes"
13152 # Set ac_cv_png to yes/no (not used)
13153 # Define USE_PNG in config.h (as above)
13154 # Substitute PNG_CFLAGS and PNG_LIBS in Makefile
13155 if test "x$ac_cv_want_fldigi" = "xyes"; then
13156
13157
13158
13159
13160
13161
13162
13163 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13164 if test -n "$ac_tool_prefix"; then
13165 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13166 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168 printf %s "checking for $ac_word... " >&6; }
13169 if test ${ac_cv_path_PKG_CONFIG+y}
13170 then :
13171 printf %s "(cached) " >&6
13172 else case e in #(
13173 e) case $PKG_CONFIG in
13174 [\\/]* | ?:[\\/]*)
13175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13176 ;;
13177 *)
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181 IFS=$as_save_IFS
13182 case $as_dir in #(((
13183 '') as_dir=./ ;;
13184 */) ;;
13185 *) as_dir=$as_dir/ ;;
13186 esac
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13189 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13191 break 2
13192 fi
13193 done
13194 done
13195 IFS=$as_save_IFS
13196
13197 ;;
13198 esac ;;
13199 esac
13200 fi
13201 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13202 if test -n "$PKG_CONFIG"; then
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13204 printf "%s\n" "$PKG_CONFIG" >&6; }
13205 else
13206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 printf "%s\n" "no" >&6; }
13208 fi
13209
13210
13211 fi
13212 if test -z "$ac_cv_path_PKG_CONFIG"; then
13213 ac_pt_PKG_CONFIG=$PKG_CONFIG
13214 # Extract the first word of "pkg-config", so it can be a program name with args.
13215 set dummy pkg-config; ac_word=$2
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 printf %s "checking for $ac_word... " >&6; }
13218 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13219 then :
13220 printf %s "(cached) " >&6
13221 else case e in #(
13222 e) case $ac_pt_PKG_CONFIG in
13223 [\\/]* | ?:[\\/]*)
13224 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13225 ;;
13226 *)
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13229 do
13230 IFS=$as_save_IFS
13231 case $as_dir in #(((
13232 '') as_dir=./ ;;
13233 */) ;;
13234 *) as_dir=$as_dir/ ;;
13235 esac
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13238 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13240 break 2
13241 fi
13242 done
13243 done
13244 IFS=$as_save_IFS
13245
13246 ;;
13247 esac ;;
13248 esac
13249 fi
13250 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13251 if test -n "$ac_pt_PKG_CONFIG"; then
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13253 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13254 else
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 printf "%s\n" "no" >&6; }
13257 fi
13258
13259 if test "x$ac_pt_PKG_CONFIG" = x; then
13260 PKG_CONFIG=""
13261 else
13262 case $cross_compiling:$ac_tool_warned in
13263 yes:)
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13265 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13266 ac_tool_warned=yes ;;
13267 esac
13268 PKG_CONFIG=$ac_pt_PKG_CONFIG
13269 fi
13270 else
13271 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13272 fi
13273
13274 fi
13275 if test -n "$PKG_CONFIG"; then
13276 _pkg_min_version=0.9.0
13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13278 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13279 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13281 printf "%s\n" "yes" >&6; }
13282 else
13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 printf "%s\n" "no" >&6; }
13285 PKG_CONFIG=""
13286 fi
13287 fi
13288 if test -z "$PKG_CONFIG"; then
13289 as_fn_error $? "pkg-config not found" "$LINENO" 5
13290 fi
13291
13292
13293
13294
13295
13296 ac_cv_want_png=yes
13297
13298 test "x$ac_cv_want_png" = "x" && ac_cv_want_png="check"
13299 case "x$ac_cv_want_png" in
13300 "xno")
13301 ac_cv_png=no
13302 ;;
13303 "xcheck")
13304
13305 pkg_failed=no
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.2.8" >&5
13307 printf %s "checking for libpng >= 1.2.8... " >&6; }
13308
13309 if test -n "$PNG_CFLAGS"; then
13310 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13311 elif test -n "$PKG_CONFIG"; then
13312 if test -n "$PKG_CONFIG" && \
13313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.8\""; } >&5
13314 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.8") 2>&5
13315 ac_status=$?
13316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13317 test $ac_status = 0; }; then
13318 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.8" 2>/dev/null`
13319 test "x$?" != "x0" && pkg_failed=yes
13320 else
13321 pkg_failed=yes
13322 fi
13323 else
13324 pkg_failed=untried
13325 fi
13326 if test -n "$PNG_LIBS"; then
13327 pkg_cv_PNG_LIBS="$PNG_LIBS"
13328 elif test -n "$PKG_CONFIG"; then
13329 if test -n "$PKG_CONFIG" && \
13330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.8\""; } >&5
13331 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.8") 2>&5
13332 ac_status=$?
13333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334 test $ac_status = 0; }; then
13335 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.8" 2>/dev/null`
13336 test "x$?" != "x0" && pkg_failed=yes
13337 else
13338 pkg_failed=yes
13339 fi
13340 else
13341 pkg_failed=untried
13342 fi
13343
13344
13345
13346 if test $pkg_failed = yes; then
13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 printf "%s\n" "no" >&6; }
13349
13350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13351 _pkg_short_errors_supported=yes
13352 else
13353 _pkg_short_errors_supported=no
13354 fi
13355 if test $_pkg_short_errors_supported = yes; then
13356 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.2.8" 2>&1`
13357 else
13358 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.2.8" 2>&1`
13359 fi
13360 # Put the nasty error message in config.log where it belongs
13361 echo "$PNG_PKG_ERRORS" >&5
13362
13363 ac_cv_png=no
13364 elif test $pkg_failed = untried; then
13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 printf "%s\n" "no" >&6; }
13367 ac_cv_png=no
13368 else
13369 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13370 PNG_LIBS=$pkg_cv_PNG_LIBS
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13372 printf "%s\n" "yes" >&6; }
13373 ac_cv_png=yes
13374 fi
13375 ;;
13376 "xyes")
13377
13378 pkg_failed=no
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.2.8" >&5
13380 printf %s "checking for libpng >= 1.2.8... " >&6; }
13381
13382 if test -n "$PNG_CFLAGS"; then
13383 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13384 elif test -n "$PKG_CONFIG"; then
13385 if test -n "$PKG_CONFIG" && \
13386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.8\""; } >&5
13387 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.8") 2>&5
13388 ac_status=$?
13389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13390 test $ac_status = 0; }; then
13391 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2.8" 2>/dev/null`
13392 test "x$?" != "x0" && pkg_failed=yes
13393 else
13394 pkg_failed=yes
13395 fi
13396 else
13397 pkg_failed=untried
13398 fi
13399 if test -n "$PNG_LIBS"; then
13400 pkg_cv_PNG_LIBS="$PNG_LIBS"
13401 elif test -n "$PKG_CONFIG"; then
13402 if test -n "$PKG_CONFIG" && \
13403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2.8\""; } >&5
13404 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2.8") 2>&5
13405 ac_status=$?
13406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13407 test $ac_status = 0; }; then
13408 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2.8" 2>/dev/null`
13409 test "x$?" != "x0" && pkg_failed=yes
13410 else
13411 pkg_failed=yes
13412 fi
13413 else
13414 pkg_failed=untried
13415 fi
13416
13417
13418
13419 if test $pkg_failed = yes; then
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 printf "%s\n" "no" >&6; }
13422
13423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13424 _pkg_short_errors_supported=yes
13425 else
13426 _pkg_short_errors_supported=no
13427 fi
13428 if test $_pkg_short_errors_supported = yes; then
13429 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.2.8" 2>&1`
13430 else
13431 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.2.8" 2>&1`
13432 fi
13433 # Put the nasty error message in config.log where it belongs
13434 echo "$PNG_PKG_ERRORS" >&5
13435
13436 as_fn_error $? "Package requirements (libpng >= 1.2.8) were not met:
13437
13438 $PNG_PKG_ERRORS
13439
13440 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13441 installed software in a non-standard prefix.
13442
13443 Alternatively, you may set the environment variables PNG_CFLAGS
13444 and PNG_LIBS to avoid the need to call pkg-config.
13445 See the pkg-config man page for more details." "$LINENO" 5
13446 elif test $pkg_failed = untried; then
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13448 printf "%s\n" "no" >&6; }
13449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13450 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13451 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13452 is in your PATH or set the PKG_CONFIG environment variable to the full
13453 path to pkg-config.
13454
13455 Alternatively, you may set the environment variables PNG_CFLAGS
13456 and PNG_LIBS to avoid the need to call pkg-config.
13457 See the pkg-config man page for more details.
13458
13459 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13460 See 'config.log' for more details" "$LINENO" 5; }
13461 else
13462 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13463 PNG_LIBS=$pkg_cv_PNG_LIBS
13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13465 printf "%s\n" "yes" >&6; }
13466
13467 fi
13468 # if we get here the test has succeeded
13469 ac_cv_png=yes
13470 ;;
13471 esac
13472
13473 if test "x$ac_cv_png" = "xyes"; then
13474
13475 printf "%s\n" "#define USE_PNG 1" >>confdefs.h
13476
13477 pkg_png_version=`$PKG_CONFIG --modversion "libpng >= 1.2.8" 2>/dev/null`
13478 else
13479
13480 printf "%s\n" "#define USE_PNG 0" >>confdefs.h
13481
13482 pkg_png_version=""
13483 fi
13484
13485
13486
13487
13488 printf "%s\n" "#define PNG_BUILD_VERSION \"$pkg_png_version\"" >>confdefs.h
13489
13490
13491 :
13492
13493 fi
13494
13495 ### libgpiod
13496 # Set ac_cv_libgpiod to yes/no
13497 # Define USE_LIBGPIOD in config.h
13498 # Substitute LIBGPIOD_CFLAGS and LIBGPIOD_LIBS in Makefile
13499 if test "x$ac_cv_want_fldigi" = "xyes"; then
13500
13501
13502
13503
13504
13505
13506
13507 test "x$ac_cv_want_libgpiod" = "x" && ac_cv_want_libgpiod="check"
13508 case "x$ac_cv_want_libgpiod" in
13509 "xno")
13510 ac_cv_libgpiod=no
13511 ;;
13512 "xcheck")
13513
13514 pkg_failed=no
13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgpiod >= 2.2.1" >&5
13516 printf %s "checking for libgpiod >= 2.2.1... " >&6; }
13517
13518 if test -n "$LIBGPIOD_CFLAGS"; then
13519 pkg_cv_LIBGPIOD_CFLAGS="$LIBGPIOD_CFLAGS"
13520 elif test -n "$PKG_CONFIG"; then
13521 if test -n "$PKG_CONFIG" && \
13522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpiod >= 2.2.1\""; } >&5
13523 ($PKG_CONFIG --exists --print-errors "libgpiod >= 2.2.1") 2>&5
13524 ac_status=$?
13525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13526 test $ac_status = 0; }; then
13527 pkg_cv_LIBGPIOD_CFLAGS=`$PKG_CONFIG --cflags "libgpiod >= 2.2.1" 2>/dev/null`
13528 test "x$?" != "x0" && pkg_failed=yes
13529 else
13530 pkg_failed=yes
13531 fi
13532 else
13533 pkg_failed=untried
13534 fi
13535 if test -n "$LIBGPIOD_LIBS"; then
13536 pkg_cv_LIBGPIOD_LIBS="$LIBGPIOD_LIBS"
13537 elif test -n "$PKG_CONFIG"; then
13538 if test -n "$PKG_CONFIG" && \
13539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpiod >= 2.2.1\""; } >&5
13540 ($PKG_CONFIG --exists --print-errors "libgpiod >= 2.2.1") 2>&5
13541 ac_status=$?
13542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13543 test $ac_status = 0; }; then
13544 pkg_cv_LIBGPIOD_LIBS=`$PKG_CONFIG --libs "libgpiod >= 2.2.1" 2>/dev/null`
13545 test "x$?" != "x0" && pkg_failed=yes
13546 else
13547 pkg_failed=yes
13548 fi
13549 else
13550 pkg_failed=untried
13551 fi
13552
13553
13554
13555 if test $pkg_failed = yes; then
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13557 printf "%s\n" "no" >&6; }
13558
13559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13560 _pkg_short_errors_supported=yes
13561 else
13562 _pkg_short_errors_supported=no
13563 fi
13564 if test $_pkg_short_errors_supported = yes; then
13565 LIBGPIOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgpiod >= 2.2.1" 2>&1`
13566 else
13567 LIBGPIOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgpiod >= 2.2.1" 2>&1`
13568 fi
13569 # Put the nasty error message in config.log where it belongs
13570 echo "$LIBGPIOD_PKG_ERRORS" >&5
13571
13572 ac_cv_libgpiod=no
13573 elif test $pkg_failed = untried; then
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 printf "%s\n" "no" >&6; }
13576 ac_cv_libgpiod=no
13577 else
13578 LIBGPIOD_CFLAGS=$pkg_cv_LIBGPIOD_CFLAGS
13579 LIBGPIOD_LIBS=$pkg_cv_LIBGPIOD_LIBS
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13581 printf "%s\n" "yes" >&6; }
13582 ac_cv_libgpiod=yes
13583 fi
13584 ;;
13585 "xyes")
13586
13587 pkg_failed=no
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgpiod >= 2.2.1" >&5
13589 printf %s "checking for libgpiod >= 2.2.1... " >&6; }
13590
13591 if test -n "$LIBGPIOD_CFLAGS"; then
13592 pkg_cv_LIBGPIOD_CFLAGS="$LIBGPIOD_CFLAGS"
13593 elif test -n "$PKG_CONFIG"; then
13594 if test -n "$PKG_CONFIG" && \
13595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpiod >= 2.2.1\""; } >&5
13596 ($PKG_CONFIG --exists --print-errors "libgpiod >= 2.2.1") 2>&5
13597 ac_status=$?
13598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13599 test $ac_status = 0; }; then
13600 pkg_cv_LIBGPIOD_CFLAGS=`$PKG_CONFIG --cflags "libgpiod >= 2.2.1" 2>/dev/null`
13601 test "x$?" != "x0" && pkg_failed=yes
13602 else
13603 pkg_failed=yes
13604 fi
13605 else
13606 pkg_failed=untried
13607 fi
13608 if test -n "$LIBGPIOD_LIBS"; then
13609 pkg_cv_LIBGPIOD_LIBS="$LIBGPIOD_LIBS"
13610 elif test -n "$PKG_CONFIG"; then
13611 if test -n "$PKG_CONFIG" && \
13612 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgpiod >= 2.2.1\""; } >&5
13613 ($PKG_CONFIG --exists --print-errors "libgpiod >= 2.2.1") 2>&5
13614 ac_status=$?
13615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616 test $ac_status = 0; }; then
13617 pkg_cv_LIBGPIOD_LIBS=`$PKG_CONFIG --libs "libgpiod >= 2.2.1" 2>/dev/null`
13618 test "x$?" != "x0" && pkg_failed=yes
13619 else
13620 pkg_failed=yes
13621 fi
13622 else
13623 pkg_failed=untried
13624 fi
13625
13626
13627
13628 if test $pkg_failed = yes; then
13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 printf "%s\n" "no" >&6; }
13631
13632 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13633 _pkg_short_errors_supported=yes
13634 else
13635 _pkg_short_errors_supported=no
13636 fi
13637 if test $_pkg_short_errors_supported = yes; then
13638 LIBGPIOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgpiod >= 2.2.1" 2>&1`
13639 else
13640 LIBGPIOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgpiod >= 2.2.1" 2>&1`
13641 fi
13642 # Put the nasty error message in config.log where it belongs
13643 echo "$LIBGPIOD_PKG_ERRORS" >&5
13644
13645 as_fn_error $? "Package requirements (libgpiod >= 2.2.1) were not met:
13646
13647 $LIBGPIOD_PKG_ERRORS
13648
13649 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13650 installed software in a non-standard prefix.
13651
13652 Alternatively, you may set the environment variables LIBGPIOD_CFLAGS
13653 and LIBGPIOD_LIBS to avoid the need to call pkg-config.
13654 See the pkg-config man page for more details." "$LINENO" 5
13655 elif test $pkg_failed = untried; then
13656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 printf "%s\n" "no" >&6; }
13658 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13659 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13660 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13661 is in your PATH or set the PKG_CONFIG environment variable to the full
13662 path to pkg-config.
13663
13664 Alternatively, you may set the environment variables LIBGPIOD_CFLAGS
13665 and LIBGPIOD_LIBS to avoid the need to call pkg-config.
13666 See the pkg-config man page for more details.
13667
13668 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13669 See 'config.log' for more details" "$LINENO" 5; }
13670 else
13671 LIBGPIOD_CFLAGS=$pkg_cv_LIBGPIOD_CFLAGS
13672 LIBGPIOD_LIBS=$pkg_cv_LIBGPIOD_LIBS
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13674 printf "%s\n" "yes" >&6; }
13675
13676 fi
13677 # if we get here the test has succeeded
13678 ac_cv_libgpiod=yes
13679 ;;
13680 esac
13681
13682 if test "x$ac_cv_libgpiod" = "xyes"; then
13683
13684 printf "%s\n" "#define USE_LIBGPIOD 1" >>confdefs.h
13685
13686 pkg_libgpiod_version=`$PKG_CONFIG --modversion "libgpiod >= 2.2.1" 2>/dev/null`
13687 else
13688
13689 printf "%s\n" "#define USE_LIBGPIOD 0" >>confdefs.h
13690
13691 pkg_libgpiod_version=""
13692 fi
13693
13694
13695
13696
13697 printf "%s\n" "#define LIBGPIOD_BUILD_VERSION \"$pkg_libgpiod_version\"" >>confdefs.h
13698
13699
13700 :
13701
13702 fi
13703
13704 ### libsamplerate
13705 # Required if $ac_cv_want_fldigi is "yes"
13706 # Set ac_cv_samplerate to yes/no (not used)
13707 # Define USE_SAMPLERATE in config.h (as above)
13708 # Substitute SAMPLERATE_CFLAGS and SAMPLERATE_LIBS in Makefile
13709 if test "x$ac_cv_want_fldigi" = "xyes"; then
13710
13711
13712
13713
13714
13715 ac_cv_want_samplerate=yes
13716
13717 test "x$ac_cv_want_samplerate" = "x" && ac_cv_want_samplerate="check"
13718 case "x$ac_cv_want_samplerate" in
13719 "xno")
13720 ac_cv_samplerate=no
13721 ;;
13722 "xcheck")
13723
13724 pkg_failed=no
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for samplerate >= 0.1.1" >&5
13726 printf %s "checking for samplerate >= 0.1.1... " >&6; }
13727
13728 if test -n "$SAMPLERATE_CFLAGS"; then
13729 pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
13730 elif test -n "$PKG_CONFIG"; then
13731 if test -n "$PKG_CONFIG" && \
13732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.1\""; } >&5
13733 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.1") 2>&5
13734 ac_status=$?
13735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; }; then
13737 pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.1.1" 2>/dev/null`
13738 test "x$?" != "x0" && pkg_failed=yes
13739 else
13740 pkg_failed=yes
13741 fi
13742 else
13743 pkg_failed=untried
13744 fi
13745 if test -n "$SAMPLERATE_LIBS"; then
13746 pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
13747 elif test -n "$PKG_CONFIG"; then
13748 if test -n "$PKG_CONFIG" && \
13749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.1\""; } >&5
13750 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.1") 2>&5
13751 ac_status=$?
13752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }; then
13754 pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.1.1" 2>/dev/null`
13755 test "x$?" != "x0" && pkg_failed=yes
13756 else
13757 pkg_failed=yes
13758 fi
13759 else
13760 pkg_failed=untried
13761 fi
13762
13763
13764
13765 if test $pkg_failed = yes; then
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 printf "%s\n" "no" >&6; }
13768
13769 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13770 _pkg_short_errors_supported=yes
13771 else
13772 _pkg_short_errors_supported=no
13773 fi
13774 if test $_pkg_short_errors_supported = yes; then
13775 SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate >= 0.1.1" 2>&1`
13776 else
13777 SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate >= 0.1.1" 2>&1`
13778 fi
13779 # Put the nasty error message in config.log where it belongs
13780 echo "$SAMPLERATE_PKG_ERRORS" >&5
13781
13782 ac_cv_samplerate=no
13783 elif test $pkg_failed = untried; then
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 printf "%s\n" "no" >&6; }
13786 ac_cv_samplerate=no
13787 else
13788 SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
13789 SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13791 printf "%s\n" "yes" >&6; }
13792 ac_cv_samplerate=yes
13793 fi
13794 ;;
13795 "xyes")
13796
13797 pkg_failed=no
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for samplerate >= 0.1.1" >&5
13799 printf %s "checking for samplerate >= 0.1.1... " >&6; }
13800
13801 if test -n "$SAMPLERATE_CFLAGS"; then
13802 pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
13803 elif test -n "$PKG_CONFIG"; then
13804 if test -n "$PKG_CONFIG" && \
13805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.1\""; } >&5
13806 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.1") 2>&5
13807 ac_status=$?
13808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13809 test $ac_status = 0; }; then
13810 pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.1.1" 2>/dev/null`
13811 test "x$?" != "x0" && pkg_failed=yes
13812 else
13813 pkg_failed=yes
13814 fi
13815 else
13816 pkg_failed=untried
13817 fi
13818 if test -n "$SAMPLERATE_LIBS"; then
13819 pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
13820 elif test -n "$PKG_CONFIG"; then
13821 if test -n "$PKG_CONFIG" && \
13822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.1.1\""; } >&5
13823 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.1.1") 2>&5
13824 ac_status=$?
13825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13826 test $ac_status = 0; }; then
13827 pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.1.1" 2>/dev/null`
13828 test "x$?" != "x0" && pkg_failed=yes
13829 else
13830 pkg_failed=yes
13831 fi
13832 else
13833 pkg_failed=untried
13834 fi
13835
13836
13837
13838 if test $pkg_failed = yes; then
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 printf "%s\n" "no" >&6; }
13841
13842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13843 _pkg_short_errors_supported=yes
13844 else
13845 _pkg_short_errors_supported=no
13846 fi
13847 if test $_pkg_short_errors_supported = yes; then
13848 SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate >= 0.1.1" 2>&1`
13849 else
13850 SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate >= 0.1.1" 2>&1`
13851 fi
13852 # Put the nasty error message in config.log where it belongs
13853 echo "$SAMPLERATE_PKG_ERRORS" >&5
13854
13855 as_fn_error $? "Package requirements (samplerate >= 0.1.1) were not met:
13856
13857 $SAMPLERATE_PKG_ERRORS
13858
13859 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13860 installed software in a non-standard prefix.
13861
13862 Alternatively, you may set the environment variables SAMPLERATE_CFLAGS
13863 and SAMPLERATE_LIBS to avoid the need to call pkg-config.
13864 See the pkg-config man page for more details." "$LINENO" 5
13865 elif test $pkg_failed = untried; then
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 printf "%s\n" "no" >&6; }
13868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13869 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13870 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13871 is in your PATH or set the PKG_CONFIG environment variable to the full
13872 path to pkg-config.
13873
13874 Alternatively, you may set the environment variables SAMPLERATE_CFLAGS
13875 and SAMPLERATE_LIBS to avoid the need to call pkg-config.
13876 See the pkg-config man page for more details.
13877
13878 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13879 See 'config.log' for more details" "$LINENO" 5; }
13880 else
13881 SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
13882 SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13884 printf "%s\n" "yes" >&6; }
13885
13886 fi
13887 # if we get here the test has succeeded
13888 ac_cv_samplerate=yes
13889 ;;
13890 esac
13891
13892 if test "x$ac_cv_samplerate" = "xyes"; then
13893
13894 printf "%s\n" "#define USE_SAMPLERATE 1" >>confdefs.h
13895
13896 pkg_samplerate_version=`$PKG_CONFIG --modversion "samplerate >= 0.1.1" 2>/dev/null`
13897 else
13898
13899 printf "%s\n" "#define USE_SAMPLERATE 0" >>confdefs.h
13900
13901 pkg_samplerate_version=""
13902 fi
13903
13904
13905
13906
13907 printf "%s\n" "#define SAMPLERATE_BUILD_VERSION \"$pkg_samplerate_version\"" >>confdefs.h
13908
13909
13910 :
13911
13912 fi
13913
13914 ### libsndfile
13915 # Set ac_cv_sndfile to yes/no
13916 # Define USE_SNDFILE in config.h
13917 # Substitute SNDFILE_CFLAGS and SNDFILE_LIBS in Makefile
13918 # name, version, show-in-help?, optional?, help-text, [am-cond]
13919 if test "x$ac_cv_want_fldigi" = "xyes"; then
13920
13921
13922
13923
13924
13925 # Check whether --with-sndfile was given.
13926 if test ${with_sndfile+y}
13927 then :
13928 withval=$with_sndfile; case "${withval}" in
13929 yes|no) ac_cv_want_sndfile="${withval}" ;;
13930 *) as_fn_error $? "bad value \"${withval}\" for --with-sndfile" "$LINENO" 5 ;;
13931 esac
13932 else case e in #(
13933 e) ac_cv_want_sndfile=check ;;
13934 esac
13935 fi
13936
13937
13938 ac_cv_want_sndfile=yes
13939
13940 test "x$ac_cv_want_sndfile" = "x" && ac_cv_want_sndfile="check"
13941 case "x$ac_cv_want_sndfile" in
13942 "xno")
13943 ac_cv_sndfile=no
13944 ;;
13945 "xcheck")
13946
13947 pkg_failed=no
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndfile >= 1.0.10" >&5
13949 printf %s "checking for sndfile >= 1.0.10... " >&6; }
13950
13951 if test -n "$SNDFILE_CFLAGS"; then
13952 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
13953 elif test -n "$PKG_CONFIG"; then
13954 if test -n "$PKG_CONFIG" && \
13955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.10\""; } >&5
13956 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.10") 2>&5
13957 ac_status=$?
13958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959 test $ac_status = 0; }; then
13960 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.10" 2>/dev/null`
13961 test "x$?" != "x0" && pkg_failed=yes
13962 else
13963 pkg_failed=yes
13964 fi
13965 else
13966 pkg_failed=untried
13967 fi
13968 if test -n "$SNDFILE_LIBS"; then
13969 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
13970 elif test -n "$PKG_CONFIG"; then
13971 if test -n "$PKG_CONFIG" && \
13972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.10\""; } >&5
13973 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.10") 2>&5
13974 ac_status=$?
13975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13976 test $ac_status = 0; }; then
13977 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.10" 2>/dev/null`
13978 test "x$?" != "x0" && pkg_failed=yes
13979 else
13980 pkg_failed=yes
13981 fi
13982 else
13983 pkg_failed=untried
13984 fi
13985
13986
13987
13988 if test $pkg_failed = yes; then
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990 printf "%s\n" "no" >&6; }
13991
13992 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13993 _pkg_short_errors_supported=yes
13994 else
13995 _pkg_short_errors_supported=no
13996 fi
13997 if test $_pkg_short_errors_supported = yes; then
13998 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.10" 2>&1`
13999 else
14000 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.10" 2>&1`
14001 fi
14002 # Put the nasty error message in config.log where it belongs
14003 echo "$SNDFILE_PKG_ERRORS" >&5
14004
14005 ac_cv_sndfile=no
14006 elif test $pkg_failed = untried; then
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 printf "%s\n" "no" >&6; }
14009 ac_cv_sndfile=no
14010 else
14011 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
14012 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14014 printf "%s\n" "yes" >&6; }
14015 ac_cv_sndfile=yes
14016 fi
14017 ;;
14018 "xyes")
14019
14020 pkg_failed=no
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndfile >= 1.0.10" >&5
14022 printf %s "checking for sndfile >= 1.0.10... " >&6; }
14023
14024 if test -n "$SNDFILE_CFLAGS"; then
14025 pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
14026 elif test -n "$PKG_CONFIG"; then
14027 if test -n "$PKG_CONFIG" && \
14028 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.10\""; } >&5
14029 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.10") 2>&5
14030 ac_status=$?
14031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14032 test $ac_status = 0; }; then
14033 pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.10" 2>/dev/null`
14034 test "x$?" != "x0" && pkg_failed=yes
14035 else
14036 pkg_failed=yes
14037 fi
14038 else
14039 pkg_failed=untried
14040 fi
14041 if test -n "$SNDFILE_LIBS"; then
14042 pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
14043 elif test -n "$PKG_CONFIG"; then
14044 if test -n "$PKG_CONFIG" && \
14045 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.10\""; } >&5
14046 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.10") 2>&5
14047 ac_status=$?
14048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14049 test $ac_status = 0; }; then
14050 pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.10" 2>/dev/null`
14051 test "x$?" != "x0" && pkg_failed=yes
14052 else
14053 pkg_failed=yes
14054 fi
14055 else
14056 pkg_failed=untried
14057 fi
14058
14059
14060
14061 if test $pkg_failed = yes; then
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063 printf "%s\n" "no" >&6; }
14064
14065 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14066 _pkg_short_errors_supported=yes
14067 else
14068 _pkg_short_errors_supported=no
14069 fi
14070 if test $_pkg_short_errors_supported = yes; then
14071 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.10" 2>&1`
14072 else
14073 SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.10" 2>&1`
14074 fi
14075 # Put the nasty error message in config.log where it belongs
14076 echo "$SNDFILE_PKG_ERRORS" >&5
14077
14078 as_fn_error $? "Package requirements (sndfile >= 1.0.10) were not met:
14079
14080 $SNDFILE_PKG_ERRORS
14081
14082 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14083 installed software in a non-standard prefix.
14084
14085 Alternatively, you may set the environment variables SNDFILE_CFLAGS
14086 and SNDFILE_LIBS to avoid the need to call pkg-config.
14087 See the pkg-config man page for more details." "$LINENO" 5
14088 elif test $pkg_failed = untried; then
14089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14090 printf "%s\n" "no" >&6; }
14091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14092 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14093 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14094 is in your PATH or set the PKG_CONFIG environment variable to the full
14095 path to pkg-config.
14096
14097 Alternatively, you may set the environment variables SNDFILE_CFLAGS
14098 and SNDFILE_LIBS to avoid the need to call pkg-config.
14099 See the pkg-config man page for more details.
14100
14101 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14102 See 'config.log' for more details" "$LINENO" 5; }
14103 else
14104 SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
14105 SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14107 printf "%s\n" "yes" >&6; }
14108
14109 fi
14110 # if we get here the test has succeeded
14111 ac_cv_sndfile=yes
14112 ;;
14113 esac
14114
14115 if test "x$ac_cv_sndfile" = "xyes"; then
14116
14117 printf "%s\n" "#define USE_SNDFILE 1" >>confdefs.h
14118
14119 pkg_sndfile_version=`$PKG_CONFIG --modversion "sndfile >= 1.0.10" 2>/dev/null`
14120 else
14121
14122 printf "%s\n" "#define USE_SNDFILE 0" >>confdefs.h
14123
14124 pkg_sndfile_version=""
14125 fi
14126
14127
14128
14129
14130 printf "%s\n" "#define SNDFILE_BUILD_VERSION \"$pkg_sndfile_version\"" >>confdefs.h
14131
14132
14133 :
14134
14135 fi
14136
14137 ### portaudio
14138 # Set ac_cv_portaudio to yes/no
14139 # Define USE_PORTAUDIO in config.h
14140 # Substitute PORTAUDIO_CFLAGS and PORTAUDIO_LIBS in Makefile
14141 if test "x$ac_cv_want_fldigi" = "xyes"; then
14142
14143
14144
14145
14146
14147 ac_cv_want_portaudio=yes
14148
14149 test "x$ac_cv_want_portaudio" = "x" && ac_cv_want_portaudio="check"
14150 case "x$ac_cv_want_portaudio" in
14151 "xno")
14152 ac_cv_portaudio=no
14153 ;;
14154 "xcheck")
14155
14156 pkg_failed=no
14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for portaudio-2.0 >= 19" >&5
14158 printf %s "checking for portaudio-2.0 >= 19... " >&6; }
14159
14160 if test -n "$PORTAUDIO_CFLAGS"; then
14161 pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
14162 elif test -n "$PKG_CONFIG"; then
14163 if test -n "$PKG_CONFIG" && \
14164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
14165 ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
14166 ac_status=$?
14167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19" 2>/dev/null`
14170 test "x$?" != "x0" && pkg_failed=yes
14171 else
14172 pkg_failed=yes
14173 fi
14174 else
14175 pkg_failed=untried
14176 fi
14177 if test -n "$PORTAUDIO_LIBS"; then
14178 pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
14179 elif test -n "$PKG_CONFIG"; then
14180 if test -n "$PKG_CONFIG" && \
14181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
14182 ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
14183 ac_status=$?
14184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14185 test $ac_status = 0; }; then
14186 pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19" 2>/dev/null`
14187 test "x$?" != "x0" && pkg_failed=yes
14188 else
14189 pkg_failed=yes
14190 fi
14191 else
14192 pkg_failed=untried
14193 fi
14194
14195
14196
14197 if test $pkg_failed = yes; then
14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 printf "%s\n" "no" >&6; }
14200
14201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14202 _pkg_short_errors_supported=yes
14203 else
14204 _pkg_short_errors_supported=no
14205 fi
14206 if test $_pkg_short_errors_supported = yes; then
14207 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0 >= 19" 2>&1`
14208 else
14209 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0 >= 19" 2>&1`
14210 fi
14211 # Put the nasty error message in config.log where it belongs
14212 echo "$PORTAUDIO_PKG_ERRORS" >&5
14213
14214 ac_cv_portaudio=no
14215 elif test $pkg_failed = untried; then
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14217 printf "%s\n" "no" >&6; }
14218 ac_cv_portaudio=no
14219 else
14220 PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
14221 PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14223 printf "%s\n" "yes" >&6; }
14224 ac_cv_portaudio=yes
14225 fi
14226 ;;
14227 "xyes")
14228
14229 pkg_failed=no
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for portaudio-2.0 >= 19" >&5
14231 printf %s "checking for portaudio-2.0 >= 19... " >&6; }
14232
14233 if test -n "$PORTAUDIO_CFLAGS"; then
14234 pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
14235 elif test -n "$PKG_CONFIG"; then
14236 if test -n "$PKG_CONFIG" && \
14237 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
14238 ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
14239 ac_status=$?
14240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; then
14242 pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19" 2>/dev/null`
14243 test "x$?" != "x0" && pkg_failed=yes
14244 else
14245 pkg_failed=yes
14246 fi
14247 else
14248 pkg_failed=untried
14249 fi
14250 if test -n "$PORTAUDIO_LIBS"; then
14251 pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
14252 elif test -n "$PKG_CONFIG"; then
14253 if test -n "$PKG_CONFIG" && \
14254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0 >= 19\""; } >&5
14255 ($PKG_CONFIG --exists --print-errors "portaudio-2.0 >= 19") 2>&5
14256 ac_status=$?
14257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14258 test $ac_status = 0; }; then
14259 pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19" 2>/dev/null`
14260 test "x$?" != "x0" && pkg_failed=yes
14261 else
14262 pkg_failed=yes
14263 fi
14264 else
14265 pkg_failed=untried
14266 fi
14267
14268
14269
14270 if test $pkg_failed = yes; then
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 printf "%s\n" "no" >&6; }
14273
14274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14275 _pkg_short_errors_supported=yes
14276 else
14277 _pkg_short_errors_supported=no
14278 fi
14279 if test $_pkg_short_errors_supported = yes; then
14280 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0 >= 19" 2>&1`
14281 else
14282 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0 >= 19" 2>&1`
14283 fi
14284 # Put the nasty error message in config.log where it belongs
14285 echo "$PORTAUDIO_PKG_ERRORS" >&5
14286
14287 as_fn_error $? "Package requirements (portaudio-2.0 >= 19) were not met:
14288
14289 $PORTAUDIO_PKG_ERRORS
14290
14291 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14292 installed software in a non-standard prefix.
14293
14294 Alternatively, you may set the environment variables PORTAUDIO_CFLAGS
14295 and PORTAUDIO_LIBS to avoid the need to call pkg-config.
14296 See the pkg-config man page for more details." "$LINENO" 5
14297 elif test $pkg_failed = untried; then
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 printf "%s\n" "no" >&6; }
14300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14301 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14302 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14303 is in your PATH or set the PKG_CONFIG environment variable to the full
14304 path to pkg-config.
14305
14306 Alternatively, you may set the environment variables PORTAUDIO_CFLAGS
14307 and PORTAUDIO_LIBS to avoid the need to call pkg-config.
14308 See the pkg-config man page for more details.
14309
14310 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14311 See 'config.log' for more details" "$LINENO" 5; }
14312 else
14313 PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
14314 PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14316 printf "%s\n" "yes" >&6; }
14317
14318 fi
14319 # if we get here the test has succeeded
14320 ac_cv_portaudio=yes
14321 ;;
14322 esac
14323
14324 if test "x$ac_cv_portaudio" = "xyes"; then
14325
14326 printf "%s\n" "#define USE_PORTAUDIO 1" >>confdefs.h
14327
14328 pkg_portaudio_version=`$PKG_CONFIG --modversion "portaudio-2.0 >= 19" 2>/dev/null`
14329 else
14330
14331 printf "%s\n" "#define USE_PORTAUDIO 0" >>confdefs.h
14332
14333 pkg_portaudio_version=""
14334 fi
14335
14336
14337
14338
14339 printf "%s\n" "#define PORTAUDIO_BUILD_VERSION \"$pkg_portaudio_version\"" >>confdefs.h
14340
14341
14342 :
14343
14344 fi
14345
14346 ### pulseaudio
14347 # Set ac_cv_pulseaudio to yes/no
14348 # Define USE_PULSEAUDIO in config.h
14349 # Substitute PULSEAUDIO_CFLAGS and PULSEAUDIO_LIBS in Makefile
14350
14351
14352
14353
14354
14355 # Check whether --with-pulseaudio was given.
14356 if test ${with_pulseaudio+y}
14357 then :
14358 withval=$with_pulseaudio; case "${withval}" in
14359 yes|no) ac_cv_want_pulseaudio="${withval}" ;;
14360 *) as_fn_error $? "bad value \"${withval}\" for --with-pulseaudio" "$LINENO" 5 ;;
14361 esac
14362 else case e in #(
14363 e) ac_cv_want_pulseaudio=check ;;
14364 esac
14365 fi
14366
14367
14368
14369
14370 test "x$ac_cv_want_pulseaudio" = "x" && ac_cv_want_pulseaudio="check"
14371 case "x$ac_cv_want_pulseaudio" in
14372 "xno")
14373 ac_cv_pulseaudio=no
14374 ;;
14375 "xcheck")
14376
14377 pkg_failed=no
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9.7" >&5
14379 printf %s "checking for libpulse-simple >= 0.9.7... " >&6; }
14380
14381 if test -n "$PULSEAUDIO_CFLAGS"; then
14382 pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
14383 elif test -n "$PKG_CONFIG"; then
14384 if test -n "$PKG_CONFIG" && \
14385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9.7\""; } >&5
14386 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9.7") 2>&5
14387 ac_status=$?
14388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14389 test $ac_status = 0; }; then
14390 pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9.7" 2>/dev/null`
14391 test "x$?" != "x0" && pkg_failed=yes
14392 else
14393 pkg_failed=yes
14394 fi
14395 else
14396 pkg_failed=untried
14397 fi
14398 if test -n "$PULSEAUDIO_LIBS"; then
14399 pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
14400 elif test -n "$PKG_CONFIG"; then
14401 if test -n "$PKG_CONFIG" && \
14402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9.7\""; } >&5
14403 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9.7") 2>&5
14404 ac_status=$?
14405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14406 test $ac_status = 0; }; then
14407 pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9.7" 2>/dev/null`
14408 test "x$?" != "x0" && pkg_failed=yes
14409 else
14410 pkg_failed=yes
14411 fi
14412 else
14413 pkg_failed=untried
14414 fi
14415
14416
14417
14418 if test $pkg_failed = yes; then
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14420 printf "%s\n" "no" >&6; }
14421
14422 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14423 _pkg_short_errors_supported=yes
14424 else
14425 _pkg_short_errors_supported=no
14426 fi
14427 if test $_pkg_short_errors_supported = yes; then
14428 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9.7" 2>&1`
14429 else
14430 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9.7" 2>&1`
14431 fi
14432 # Put the nasty error message in config.log where it belongs
14433 echo "$PULSEAUDIO_PKG_ERRORS" >&5
14434
14435 ac_cv_pulseaudio=no
14436 elif test $pkg_failed = untried; then
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 printf "%s\n" "no" >&6; }
14439 ac_cv_pulseaudio=no
14440 else
14441 PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
14442 PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14444 printf "%s\n" "yes" >&6; }
14445 ac_cv_pulseaudio=yes
14446 fi
14447 ;;
14448 "xyes")
14449
14450 pkg_failed=no
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9.7" >&5
14452 printf %s "checking for libpulse-simple >= 0.9.7... " >&6; }
14453
14454 if test -n "$PULSEAUDIO_CFLAGS"; then
14455 pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
14456 elif test -n "$PKG_CONFIG"; then
14457 if test -n "$PKG_CONFIG" && \
14458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9.7\""; } >&5
14459 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9.7") 2>&5
14460 ac_status=$?
14461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14462 test $ac_status = 0; }; then
14463 pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9.7" 2>/dev/null`
14464 test "x$?" != "x0" && pkg_failed=yes
14465 else
14466 pkg_failed=yes
14467 fi
14468 else
14469 pkg_failed=untried
14470 fi
14471 if test -n "$PULSEAUDIO_LIBS"; then
14472 pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
14473 elif test -n "$PKG_CONFIG"; then
14474 if test -n "$PKG_CONFIG" && \
14475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9.7\""; } >&5
14476 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9.7") 2>&5
14477 ac_status=$?
14478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14479 test $ac_status = 0; }; then
14480 pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9.7" 2>/dev/null`
14481 test "x$?" != "x0" && pkg_failed=yes
14482 else
14483 pkg_failed=yes
14484 fi
14485 else
14486 pkg_failed=untried
14487 fi
14488
14489
14490
14491 if test $pkg_failed = yes; then
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14493 printf "%s\n" "no" >&6; }
14494
14495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14496 _pkg_short_errors_supported=yes
14497 else
14498 _pkg_short_errors_supported=no
14499 fi
14500 if test $_pkg_short_errors_supported = yes; then
14501 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9.7" 2>&1`
14502 else
14503 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9.7" 2>&1`
14504 fi
14505 # Put the nasty error message in config.log where it belongs
14506 echo "$PULSEAUDIO_PKG_ERRORS" >&5
14507
14508 as_fn_error $? "Package requirements (libpulse-simple >= 0.9.7) were not met:
14509
14510 $PULSEAUDIO_PKG_ERRORS
14511
14512 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14513 installed software in a non-standard prefix.
14514
14515 Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
14516 and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
14517 See the pkg-config man page for more details." "$LINENO" 5
14518 elif test $pkg_failed = untried; then
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 printf "%s\n" "no" >&6; }
14521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14522 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14523 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14524 is in your PATH or set the PKG_CONFIG environment variable to the full
14525 path to pkg-config.
14526
14527 Alternatively, you may set the environment variables PULSEAUDIO_CFLAGS
14528 and PULSEAUDIO_LIBS to avoid the need to call pkg-config.
14529 See the pkg-config man page for more details.
14530
14531 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14532 See 'config.log' for more details" "$LINENO" 5; }
14533 else
14534 PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
14535 PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14537 printf "%s\n" "yes" >&6; }
14538
14539 fi
14540 # if we get here the test has succeeded
14541 ac_cv_pulseaudio=yes
14542 ;;
14543 esac
14544
14545 if test "x$ac_cv_pulseaudio" = "xyes"; then
14546
14547 printf "%s\n" "#define USE_PULSEAUDIO 1" >>confdefs.h
14548
14549 pkg_pulseaudio_version=`$PKG_CONFIG --modversion "libpulse-simple >= 0.9.7" 2>/dev/null`
14550 else
14551
14552 printf "%s\n" "#define USE_PULSEAUDIO 0" >>confdefs.h
14553
14554 pkg_pulseaudio_version=""
14555 fi
14556
14557
14558
14559
14560 printf "%s\n" "#define PULSEAUDIO_BUILD_VERSION \"$pkg_pulseaudio_version\"" >>confdefs.h
14561
14562
14563 :
14564
14565
14566 if test "x$ac_cv_oss" = "xno" && \
14567 test "x$ac_cv_portaudio" = "xno" && \
14568 test "x$ac_cv_pulseaudio" = "xno"; then
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** $PACKAGE will be compiled without audio device support ***" >&5
14570 printf "%s\n" "$as_me: WARNING: *** $PACKAGE will be compiled without audio device support ***" >&2;}
14571 fi
14572
14573 ### hamlib
14574 # Set ac_cv_hamlib to yes/no
14575 # Define USE_HAMLIB in config.h
14576 # Substitute HAMLIB_CFLAGS and HAMLIB_LIBS in Makefile
14577 # Set ENABLE_HAMLIB Makefile conditional
14578
14579
14580
14581
14582
14583 # Check whether --with-hamlib was given.
14584 if test ${with_hamlib+y}
14585 then :
14586 withval=$with_hamlib; case "${withval}" in
14587 yes|no) ac_cv_want_hamlib="${withval}" ;;
14588 *) as_fn_error $? "bad value \"${withval}\" for --with-hamlib" "$LINENO" 5 ;;
14589 esac
14590 else case e in #(
14591 e) ac_cv_want_hamlib=check ;;
14592 esac
14593 fi
14594
14595
14596
14597
14598 test "x$ac_cv_want_hamlib" = "x" && ac_cv_want_hamlib="check"
14599 case "x$ac_cv_want_hamlib" in
14600 "xno")
14601 ac_cv_hamlib=no
14602 ;;
14603 "xcheck")
14604
14605 pkg_failed=no
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hamlib >= 1.2.4" >&5
14607 printf %s "checking for hamlib >= 1.2.4... " >&6; }
14608
14609 if test -n "$HAMLIB_CFLAGS"; then
14610 pkg_cv_HAMLIB_CFLAGS="$HAMLIB_CFLAGS"
14611 elif test -n "$PKG_CONFIG"; then
14612 if test -n "$PKG_CONFIG" && \
14613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hamlib >= 1.2.4\""; } >&5
14614 ($PKG_CONFIG --exists --print-errors "hamlib >= 1.2.4") 2>&5
14615 ac_status=$?
14616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }; then
14618 pkg_cv_HAMLIB_CFLAGS=`$PKG_CONFIG --cflags "hamlib >= 1.2.4" 2>/dev/null`
14619 test "x$?" != "x0" && pkg_failed=yes
14620 else
14621 pkg_failed=yes
14622 fi
14623 else
14624 pkg_failed=untried
14625 fi
14626 if test -n "$HAMLIB_LIBS"; then
14627 pkg_cv_HAMLIB_LIBS="$HAMLIB_LIBS"
14628 elif test -n "$PKG_CONFIG"; then
14629 if test -n "$PKG_CONFIG" && \
14630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hamlib >= 1.2.4\""; } >&5
14631 ($PKG_CONFIG --exists --print-errors "hamlib >= 1.2.4") 2>&5
14632 ac_status=$?
14633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14634 test $ac_status = 0; }; then
14635 pkg_cv_HAMLIB_LIBS=`$PKG_CONFIG --libs "hamlib >= 1.2.4" 2>/dev/null`
14636 test "x$?" != "x0" && pkg_failed=yes
14637 else
14638 pkg_failed=yes
14639 fi
14640 else
14641 pkg_failed=untried
14642 fi
14643
14644
14645
14646 if test $pkg_failed = yes; then
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648 printf "%s\n" "no" >&6; }
14649
14650 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14651 _pkg_short_errors_supported=yes
14652 else
14653 _pkg_short_errors_supported=no
14654 fi
14655 if test $_pkg_short_errors_supported = yes; then
14656 HAMLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hamlib >= 1.2.4" 2>&1`
14657 else
14658 HAMLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hamlib >= 1.2.4" 2>&1`
14659 fi
14660 # Put the nasty error message in config.log where it belongs
14661 echo "$HAMLIB_PKG_ERRORS" >&5
14662
14663 ac_cv_hamlib=no
14664 elif test $pkg_failed = untried; then
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 printf "%s\n" "no" >&6; }
14667 ac_cv_hamlib=no
14668 else
14669 HAMLIB_CFLAGS=$pkg_cv_HAMLIB_CFLAGS
14670 HAMLIB_LIBS=$pkg_cv_HAMLIB_LIBS
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14672 printf "%s\n" "yes" >&6; }
14673 ac_cv_hamlib=yes
14674 fi
14675 ;;
14676 "xyes")
14677
14678 pkg_failed=no
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hamlib >= 1.2.4" >&5
14680 printf %s "checking for hamlib >= 1.2.4... " >&6; }
14681
14682 if test -n "$HAMLIB_CFLAGS"; then
14683 pkg_cv_HAMLIB_CFLAGS="$HAMLIB_CFLAGS"
14684 elif test -n "$PKG_CONFIG"; then
14685 if test -n "$PKG_CONFIG" && \
14686 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hamlib >= 1.2.4\""; } >&5
14687 ($PKG_CONFIG --exists --print-errors "hamlib >= 1.2.4") 2>&5
14688 ac_status=$?
14689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14690 test $ac_status = 0; }; then
14691 pkg_cv_HAMLIB_CFLAGS=`$PKG_CONFIG --cflags "hamlib >= 1.2.4" 2>/dev/null`
14692 test "x$?" != "x0" && pkg_failed=yes
14693 else
14694 pkg_failed=yes
14695 fi
14696 else
14697 pkg_failed=untried
14698 fi
14699 if test -n "$HAMLIB_LIBS"; then
14700 pkg_cv_HAMLIB_LIBS="$HAMLIB_LIBS"
14701 elif test -n "$PKG_CONFIG"; then
14702 if test -n "$PKG_CONFIG" && \
14703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hamlib >= 1.2.4\""; } >&5
14704 ($PKG_CONFIG --exists --print-errors "hamlib >= 1.2.4") 2>&5
14705 ac_status=$?
14706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14707 test $ac_status = 0; }; then
14708 pkg_cv_HAMLIB_LIBS=`$PKG_CONFIG --libs "hamlib >= 1.2.4" 2>/dev/null`
14709 test "x$?" != "x0" && pkg_failed=yes
14710 else
14711 pkg_failed=yes
14712 fi
14713 else
14714 pkg_failed=untried
14715 fi
14716
14717
14718
14719 if test $pkg_failed = yes; then
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14721 printf "%s\n" "no" >&6; }
14722
14723 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14724 _pkg_short_errors_supported=yes
14725 else
14726 _pkg_short_errors_supported=no
14727 fi
14728 if test $_pkg_short_errors_supported = yes; then
14729 HAMLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hamlib >= 1.2.4" 2>&1`
14730 else
14731 HAMLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hamlib >= 1.2.4" 2>&1`
14732 fi
14733 # Put the nasty error message in config.log where it belongs
14734 echo "$HAMLIB_PKG_ERRORS" >&5
14735
14736 as_fn_error $? "Package requirements (hamlib >= 1.2.4) were not met:
14737
14738 $HAMLIB_PKG_ERRORS
14739
14740 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14741 installed software in a non-standard prefix.
14742
14743 Alternatively, you may set the environment variables HAMLIB_CFLAGS
14744 and HAMLIB_LIBS to avoid the need to call pkg-config.
14745 See the pkg-config man page for more details." "$LINENO" 5
14746 elif test $pkg_failed = untried; then
14747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 printf "%s\n" "no" >&6; }
14749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14750 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14751 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14752 is in your PATH or set the PKG_CONFIG environment variable to the full
14753 path to pkg-config.
14754
14755 Alternatively, you may set the environment variables HAMLIB_CFLAGS
14756 and HAMLIB_LIBS to avoid the need to call pkg-config.
14757 See the pkg-config man page for more details.
14758
14759 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14760 See 'config.log' for more details" "$LINENO" 5; }
14761 else
14762 HAMLIB_CFLAGS=$pkg_cv_HAMLIB_CFLAGS
14763 HAMLIB_LIBS=$pkg_cv_HAMLIB_LIBS
14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14765 printf "%s\n" "yes" >&6; }
14766
14767 fi
14768 # if we get here the test has succeeded
14769 ac_cv_hamlib=yes
14770 ;;
14771 esac
14772
14773 if test "x$ac_cv_hamlib" = "xyes"; then
14774
14775 printf "%s\n" "#define USE_HAMLIB 1" >>confdefs.h
14776
14777 pkg_hamlib_version=`$PKG_CONFIG --modversion "hamlib >= 1.2.4" 2>/dev/null`
14778 else
14779
14780 printf "%s\n" "#define USE_HAMLIB 0" >>confdefs.h
14781
14782 pkg_hamlib_version=""
14783 fi
14784
14785
14786
14787
14788 printf "%s\n" "#define HAMLIB_BUILD_VERSION \"$pkg_hamlib_version\"" >>confdefs.h
14789
14790
14791 if test "x$ac_cv_hamlib" = "xyes"; then
14792 ENABLE_HAMLIB_TRUE=
14793 ENABLE_HAMLIB_FALSE='#'
14794 else
14795 ENABLE_HAMLIB_TRUE='#'
14796 ENABLE_HAMLIB_FALSE=
14797 fi
14798
14799
14800 # We compile our own copy of hamlib's locator.c if hamlib is not available
14801 # or if it is version <= 1.2.9, which has a broken azimuth_long_path function
14802
14803
14804
14805 # Used to indicate true or false condition
14806 ax_compare_version=false
14807
14808 # Convert the two version strings to be compared into a format that
14809 # allows a simple string comparison. The end result is that a version
14810 # string of the form 1.12.5-r617 will be converted to the form
14811 # 0001001200050617. In other words, each number is zero padded to four
14812 # digits, and non digits are removed.
14813
14814 ax_compare_version_A=`echo "$pkg_hamlib_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14815 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14816 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14817 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14818 -e 's/[^0-9]//g'`
14819
14820
14821 ax_compare_version_B=`echo "1.2.9" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14822 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14823 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14824 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14825 -e 's/[^0-9]//g'`
14826
14827
14828 ax_compare_version=`echo "x$ax_compare_version_A
14829 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
14830
14831
14832
14833 if test "$ax_compare_version" = "true" ; then
14834 need_locator_c=yes
14835 else need_locator_c=no
14836 fi
14837
14838 if test "$need_locator_c" = "yes"; then
14839 NEED_HAMLIB_LOCATOR_TRUE=
14840 NEED_HAMLIB_LOCATOR_FALSE='#'
14841 else
14842 NEED_HAMLIB_LOCATOR_TRUE='#'
14843 NEED_HAMLIB_LOCATOR_FALSE=
14844 fi
14845
14846
14847 ### X11
14848 # Set ac_cv_x to yes/no
14849 # Define USE_X in config.h
14850 # Substitute X_CFLAGS and X_LIBS in Makefile
14851 if test "x$target_darwin" = "xno" && test "x$target_win32" = "xno"; then
14852
14853
14854
14855
14856
14857
14858
14859 test "x$ac_cv_want_x" = "x" && ac_cv_want_x="check"
14860 case "x$ac_cv_want_x" in
14861 "xno")
14862 ac_cv_x=no
14863 ;;
14864 "xcheck")
14865
14866 pkg_failed=no
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
14868 printf %s "checking for x11... " >&6; }
14869
14870 if test -n "$X_CFLAGS"; then
14871 pkg_cv_X_CFLAGS="$X_CFLAGS"
14872 elif test -n "$PKG_CONFIG"; then
14873 if test -n "$PKG_CONFIG" && \
14874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14875 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14876 ac_status=$?
14877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14878 test $ac_status = 0; }; then
14879 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
14880 test "x$?" != "x0" && pkg_failed=yes
14881 else
14882 pkg_failed=yes
14883 fi
14884 else
14885 pkg_failed=untried
14886 fi
14887 if test -n "$X_LIBS"; then
14888 pkg_cv_X_LIBS="$X_LIBS"
14889 elif test -n "$PKG_CONFIG"; then
14890 if test -n "$PKG_CONFIG" && \
14891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14892 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14893 ac_status=$?
14894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14895 test $ac_status = 0; }; then
14896 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
14897 test "x$?" != "x0" && pkg_failed=yes
14898 else
14899 pkg_failed=yes
14900 fi
14901 else
14902 pkg_failed=untried
14903 fi
14904
14905
14906
14907 if test $pkg_failed = yes; then
14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14909 printf "%s\n" "no" >&6; }
14910
14911 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14912 _pkg_short_errors_supported=yes
14913 else
14914 _pkg_short_errors_supported=no
14915 fi
14916 if test $_pkg_short_errors_supported = yes; then
14917 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
14918 else
14919 X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
14920 fi
14921 # Put the nasty error message in config.log where it belongs
14922 echo "$X_PKG_ERRORS" >&5
14923
14924 ac_cv_x=no
14925 elif test $pkg_failed = untried; then
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 printf "%s\n" "no" >&6; }
14928 ac_cv_x=no
14929 else
14930 X_CFLAGS=$pkg_cv_X_CFLAGS
14931 X_LIBS=$pkg_cv_X_LIBS
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14933 printf "%s\n" "yes" >&6; }
14934 ac_cv_x=yes
14935 fi
14936 ;;
14937 "xyes")
14938
14939 pkg_failed=no
14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
14941 printf %s "checking for x11... " >&6; }
14942
14943 if test -n "$X_CFLAGS"; then
14944 pkg_cv_X_CFLAGS="$X_CFLAGS"
14945 elif test -n "$PKG_CONFIG"; then
14946 if test -n "$PKG_CONFIG" && \
14947 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14948 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14949 ac_status=$?
14950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14951 test $ac_status = 0; }; then
14952 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
14953 test "x$?" != "x0" && pkg_failed=yes
14954 else
14955 pkg_failed=yes
14956 fi
14957 else
14958 pkg_failed=untried
14959 fi
14960 if test -n "$X_LIBS"; then
14961 pkg_cv_X_LIBS="$X_LIBS"
14962 elif test -n "$PKG_CONFIG"; then
14963 if test -n "$PKG_CONFIG" && \
14964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
14965 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
14966 ac_status=$?
14967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14968 test $ac_status = 0; }; then
14969 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
14970 test "x$?" != "x0" && pkg_failed=yes
14971 else
14972 pkg_failed=yes
14973 fi
14974 else
14975 pkg_failed=untried
14976 fi
14977
14978
14979
14980 if test $pkg_failed = yes; then
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 printf "%s\n" "no" >&6; }
14983
14984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14985 _pkg_short_errors_supported=yes
14986 else
14987 _pkg_short_errors_supported=no
14988 fi
14989 if test $_pkg_short_errors_supported = yes; then
14990 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
14991 else
14992 X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
14993 fi
14994 # Put the nasty error message in config.log where it belongs
14995 echo "$X_PKG_ERRORS" >&5
14996
14997 as_fn_error $? "Package requirements (x11) were not met:
14998
14999 $X_PKG_ERRORS
15000
15001 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15002 installed software in a non-standard prefix.
15003
15004 Alternatively, you may set the environment variables X_CFLAGS
15005 and X_LIBS to avoid the need to call pkg-config.
15006 See the pkg-config man page for more details." "$LINENO" 5
15007 elif test $pkg_failed = untried; then
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009 printf "%s\n" "no" >&6; }
15010 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15011 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15012 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15013 is in your PATH or set the PKG_CONFIG environment variable to the full
15014 path to pkg-config.
15015
15016 Alternatively, you may set the environment variables X_CFLAGS
15017 and X_LIBS to avoid the need to call pkg-config.
15018 See the pkg-config man page for more details.
15019
15020 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15021 See 'config.log' for more details" "$LINENO" 5; }
15022 else
15023 X_CFLAGS=$pkg_cv_X_CFLAGS
15024 X_LIBS=$pkg_cv_X_LIBS
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15026 printf "%s\n" "yes" >&6; }
15027
15028 fi
15029 # if we get here the test has succeeded
15030 ac_cv_x=yes
15031 ;;
15032 esac
15033
15034 if test "x$ac_cv_x" = "xyes"; then
15035
15036 printf "%s\n" "#define USE_X 1" >>confdefs.h
15037
15038 pkg_x_version=`$PKG_CONFIG --modversion "x11" 2>/dev/null`
15039 else
15040
15041 printf "%s\n" "#define USE_X 0" >>confdefs.h
15042
15043 pkg_x_version=""
15044 fi
15045
15046
15047
15048
15049 printf "%s\n" "#define X_BUILD_VERSION \"$pkg_x_version\"" >>confdefs.h
15050
15051
15052 :
15053
15054 fi
15055
15056 ### libflxmlrpc
15057 # Set ac_cv_flxmlrpc to yes/no
15058 # Define USE_FLXMLRPC in config.h
15059 # Substitute FLXMLRPC_CFLAGS and FLXMLRPC_LIBS in Makefile
15060
15061
15062
15063
15064
15065
15066 # Check whether --with-flxmlrpc was given.
15067 if test ${with_flxmlrpc+y}
15068 then :
15069 withval=$with_flxmlrpc; case "${withval}" in
15070 yes|no) ac_cv_want_flxmlrpc="${withval}" ;;
15071 *) as_fn_error $? "bad value \"${withval}\" for --with-flxmlrpc" "$LINENO" 5 ;;
15072 esac
15073 else case e in #(
15074 e) ac_cv_want_flxmlrpc=check ;;
15075 esac
15076 fi
15077
15078
15079
15080
15081 test "x$ac_cv_want_flxmlrpc" = "x" && ac_cv_want_flxmlrpc="check"
15082 case "x$ac_cv_want_flxmlrpc" in
15083 "xno")
15084 ac_cv_flxmlrpc=no
15085 ;;
15086 "xcheck")
15087
15088 pkg_failed=no
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flxmlrpc >= 1.0.1" >&5
15090 printf %s "checking for flxmlrpc >= 1.0.1... " >&6; }
15091
15092 if test -n "$FLXMLRPC_CFLAGS"; then
15093 pkg_cv_FLXMLRPC_CFLAGS="$FLXMLRPC_CFLAGS"
15094 elif test -n "$PKG_CONFIG"; then
15095 if test -n "$PKG_CONFIG" && \
15096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flxmlrpc >= 1.0.1\""; } >&5
15097 ($PKG_CONFIG --exists --print-errors "flxmlrpc >= 1.0.1") 2>&5
15098 ac_status=$?
15099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; }; then
15101 pkg_cv_FLXMLRPC_CFLAGS=`$PKG_CONFIG --cflags "flxmlrpc >= 1.0.1" 2>/dev/null`
15102 test "x$?" != "x0" && pkg_failed=yes
15103 else
15104 pkg_failed=yes
15105 fi
15106 else
15107 pkg_failed=untried
15108 fi
15109 if test -n "$FLXMLRPC_LIBS"; then
15110 pkg_cv_FLXMLRPC_LIBS="$FLXMLRPC_LIBS"
15111 elif test -n "$PKG_CONFIG"; then
15112 if test -n "$PKG_CONFIG" && \
15113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flxmlrpc >= 1.0.1\""; } >&5
15114 ($PKG_CONFIG --exists --print-errors "flxmlrpc >= 1.0.1") 2>&5
15115 ac_status=$?
15116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15117 test $ac_status = 0; }; then
15118 pkg_cv_FLXMLRPC_LIBS=`$PKG_CONFIG --libs "flxmlrpc >= 1.0.1" 2>/dev/null`
15119 test "x$?" != "x0" && pkg_failed=yes
15120 else
15121 pkg_failed=yes
15122 fi
15123 else
15124 pkg_failed=untried
15125 fi
15126
15127
15128
15129 if test $pkg_failed = yes; then
15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15131 printf "%s\n" "no" >&6; }
15132
15133 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15134 _pkg_short_errors_supported=yes
15135 else
15136 _pkg_short_errors_supported=no
15137 fi
15138 if test $_pkg_short_errors_supported = yes; then
15139 FLXMLRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flxmlrpc >= 1.0.1" 2>&1`
15140 else
15141 FLXMLRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flxmlrpc >= 1.0.1" 2>&1`
15142 fi
15143 # Put the nasty error message in config.log where it belongs
15144 echo "$FLXMLRPC_PKG_ERRORS" >&5
15145
15146 ac_cv_flxmlrpc=no
15147 elif test $pkg_failed = untried; then
15148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 printf "%s\n" "no" >&6; }
15150 ac_cv_flxmlrpc=no
15151 else
15152 FLXMLRPC_CFLAGS=$pkg_cv_FLXMLRPC_CFLAGS
15153 FLXMLRPC_LIBS=$pkg_cv_FLXMLRPC_LIBS
15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15155 printf "%s\n" "yes" >&6; }
15156 ac_cv_flxmlrpc=yes
15157 fi
15158 ;;
15159 "xyes")
15160
15161 pkg_failed=no
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flxmlrpc >= 1.0.1" >&5
15163 printf %s "checking for flxmlrpc >= 1.0.1... " >&6; }
15164
15165 if test -n "$FLXMLRPC_CFLAGS"; then
15166 pkg_cv_FLXMLRPC_CFLAGS="$FLXMLRPC_CFLAGS"
15167 elif test -n "$PKG_CONFIG"; then
15168 if test -n "$PKG_CONFIG" && \
15169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flxmlrpc >= 1.0.1\""; } >&5
15170 ($PKG_CONFIG --exists --print-errors "flxmlrpc >= 1.0.1") 2>&5
15171 ac_status=$?
15172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15173 test $ac_status = 0; }; then
15174 pkg_cv_FLXMLRPC_CFLAGS=`$PKG_CONFIG --cflags "flxmlrpc >= 1.0.1" 2>/dev/null`
15175 test "x$?" != "x0" && pkg_failed=yes
15176 else
15177 pkg_failed=yes
15178 fi
15179 else
15180 pkg_failed=untried
15181 fi
15182 if test -n "$FLXMLRPC_LIBS"; then
15183 pkg_cv_FLXMLRPC_LIBS="$FLXMLRPC_LIBS"
15184 elif test -n "$PKG_CONFIG"; then
15185 if test -n "$PKG_CONFIG" && \
15186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flxmlrpc >= 1.0.1\""; } >&5
15187 ($PKG_CONFIG --exists --print-errors "flxmlrpc >= 1.0.1") 2>&5
15188 ac_status=$?
15189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15190 test $ac_status = 0; }; then
15191 pkg_cv_FLXMLRPC_LIBS=`$PKG_CONFIG --libs "flxmlrpc >= 1.0.1" 2>/dev/null`
15192 test "x$?" != "x0" && pkg_failed=yes
15193 else
15194 pkg_failed=yes
15195 fi
15196 else
15197 pkg_failed=untried
15198 fi
15199
15200
15201
15202 if test $pkg_failed = yes; then
15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204 printf "%s\n" "no" >&6; }
15205
15206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15207 _pkg_short_errors_supported=yes
15208 else
15209 _pkg_short_errors_supported=no
15210 fi
15211 if test $_pkg_short_errors_supported = yes; then
15212 FLXMLRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flxmlrpc >= 1.0.1" 2>&1`
15213 else
15214 FLXMLRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flxmlrpc >= 1.0.1" 2>&1`
15215 fi
15216 # Put the nasty error message in config.log where it belongs
15217 echo "$FLXMLRPC_PKG_ERRORS" >&5
15218
15219 as_fn_error $? "Package requirements (flxmlrpc >= 1.0.1) were not met:
15220
15221 $FLXMLRPC_PKG_ERRORS
15222
15223 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15224 installed software in a non-standard prefix.
15225
15226 Alternatively, you may set the environment variables FLXMLRPC_CFLAGS
15227 and FLXMLRPC_LIBS to avoid the need to call pkg-config.
15228 See the pkg-config man page for more details." "$LINENO" 5
15229 elif test $pkg_failed = untried; then
15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 printf "%s\n" "no" >&6; }
15232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15233 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15234 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15235 is in your PATH or set the PKG_CONFIG environment variable to the full
15236 path to pkg-config.
15237
15238 Alternatively, you may set the environment variables FLXMLRPC_CFLAGS
15239 and FLXMLRPC_LIBS to avoid the need to call pkg-config.
15240 See the pkg-config man page for more details.
15241
15242 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15243 See 'config.log' for more details" "$LINENO" 5; }
15244 else
15245 FLXMLRPC_CFLAGS=$pkg_cv_FLXMLRPC_CFLAGS
15246 FLXMLRPC_LIBS=$pkg_cv_FLXMLRPC_LIBS
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15248 printf "%s\n" "yes" >&6; }
15249
15250 fi
15251 # if we get here the test has succeeded
15252 ac_cv_flxmlrpc=yes
15253 ;;
15254 esac
15255
15256 if test "x$ac_cv_flxmlrpc" = "xyes"; then
15257
15258 printf "%s\n" "#define USE_FLXMLRPC 1" >>confdefs.h
15259
15260 pkg_flxmlrpc_version=`$PKG_CONFIG --modversion "flxmlrpc >= 1.0.1" 2>/dev/null`
15261 else
15262
15263 printf "%s\n" "#define USE_FLXMLRPC 0" >>confdefs.h
15264
15265 pkg_flxmlrpc_version=""
15266 fi
15267
15268
15269
15270
15271 printf "%s\n" "#define FLXMLRPC_BUILD_VERSION \"$pkg_flxmlrpc_version\"" >>confdefs.h
15272
15273
15274 if test "x$ac_cv_flxmlrpc" = "xyes"; then
15275 ENABLE_FLXMLRPC_TRUE=
15276 ENABLE_FLXMLRPC_FALSE='#'
15277 else
15278 ENABLE_FLXMLRPC_TRUE='#'
15279 ENABLE_FLXMLRPC_FALSE=
15280 fi
15281
15282
15283
15284 ### libmbedtls
15285 # Set ac_cv_mbedtls to yes/no
15286 # Define USE_LIBMBEDTLS in config.h
15287 # Substitute LIBMBEDTLS_CFLAGS and LIBMBEDTLS_LIBS in Makefile
15288
15289
15290
15291
15292
15293 # Check whether --with-libmbedtls was given.
15294 if test ${with_libmbedtls+y}
15295 then :
15296 withval=$with_libmbedtls; case "${withval}" in
15297 yes|no) ac_cv_want_libmbedtls="${withval}" ;;
15298 *) as_fn_error $? "bad value \"${withval}\" for --with-libmbedtls" "$LINENO" 5 ;;
15299 esac
15300 else case e in #(
15301 e) ac_cv_want_libmbedtls=check ;;
15302 esac
15303 fi
15304
15305
15306
15307
15308 test "x$ac_cv_want_libmbedtls" = "x" && ac_cv_want_libmbedtls="check"
15309 case "x$ac_cv_want_libmbedtls" in
15310 "xno")
15311 ac_cv_libmbedtls=no
15312 ;;
15313 "xcheck")
15314
15315 pkg_failed=no
15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmbedtls >= 2.16.0" >&5
15317 printf %s "checking for libmbedtls >= 2.16.0... " >&6; }
15318
15319 if test -n "$LIBMBEDTLS_CFLAGS"; then
15320 pkg_cv_LIBMBEDTLS_CFLAGS="$LIBMBEDTLS_CFLAGS"
15321 elif test -n "$PKG_CONFIG"; then
15322 if test -n "$PKG_CONFIG" && \
15323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmbedtls >= 2.16.0\""; } >&5
15324 ($PKG_CONFIG --exists --print-errors "libmbedtls >= 2.16.0") 2>&5
15325 ac_status=$?
15326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15327 test $ac_status = 0; }; then
15328 pkg_cv_LIBMBEDTLS_CFLAGS=`$PKG_CONFIG --cflags "libmbedtls >= 2.16.0" 2>/dev/null`
15329 test "x$?" != "x0" && pkg_failed=yes
15330 else
15331 pkg_failed=yes
15332 fi
15333 else
15334 pkg_failed=untried
15335 fi
15336 if test -n "$LIBMBEDTLS_LIBS"; then
15337 pkg_cv_LIBMBEDTLS_LIBS="$LIBMBEDTLS_LIBS"
15338 elif test -n "$PKG_CONFIG"; then
15339 if test -n "$PKG_CONFIG" && \
15340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmbedtls >= 2.16.0\""; } >&5
15341 ($PKG_CONFIG --exists --print-errors "libmbedtls >= 2.16.0") 2>&5
15342 ac_status=$?
15343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15344 test $ac_status = 0; }; then
15345 pkg_cv_LIBMBEDTLS_LIBS=`$PKG_CONFIG --libs "libmbedtls >= 2.16.0" 2>/dev/null`
15346 test "x$?" != "x0" && pkg_failed=yes
15347 else
15348 pkg_failed=yes
15349 fi
15350 else
15351 pkg_failed=untried
15352 fi
15353
15354
15355
15356 if test $pkg_failed = yes; then
15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15358 printf "%s\n" "no" >&6; }
15359
15360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15361 _pkg_short_errors_supported=yes
15362 else
15363 _pkg_short_errors_supported=no
15364 fi
15365 if test $_pkg_short_errors_supported = yes; then
15366 LIBMBEDTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmbedtls >= 2.16.0" 2>&1`
15367 else
15368 LIBMBEDTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmbedtls >= 2.16.0" 2>&1`
15369 fi
15370 # Put the nasty error message in config.log where it belongs
15371 echo "$LIBMBEDTLS_PKG_ERRORS" >&5
15372
15373 ac_cv_libmbedtls=no
15374 elif test $pkg_failed = untried; then
15375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15376 printf "%s\n" "no" >&6; }
15377 ac_cv_libmbedtls=no
15378 else
15379 LIBMBEDTLS_CFLAGS=$pkg_cv_LIBMBEDTLS_CFLAGS
15380 LIBMBEDTLS_LIBS=$pkg_cv_LIBMBEDTLS_LIBS
15381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15382 printf "%s\n" "yes" >&6; }
15383 ac_cv_libmbedtls=yes
15384 fi
15385 ;;
15386 "xyes")
15387
15388 pkg_failed=no
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmbedtls >= 2.16.0" >&5
15390 printf %s "checking for libmbedtls >= 2.16.0... " >&6; }
15391
15392 if test -n "$LIBMBEDTLS_CFLAGS"; then
15393 pkg_cv_LIBMBEDTLS_CFLAGS="$LIBMBEDTLS_CFLAGS"
15394 elif test -n "$PKG_CONFIG"; then
15395 if test -n "$PKG_CONFIG" && \
15396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmbedtls >= 2.16.0\""; } >&5
15397 ($PKG_CONFIG --exists --print-errors "libmbedtls >= 2.16.0") 2>&5
15398 ac_status=$?
15399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15400 test $ac_status = 0; }; then
15401 pkg_cv_LIBMBEDTLS_CFLAGS=`$PKG_CONFIG --cflags "libmbedtls >= 2.16.0" 2>/dev/null`
15402 test "x$?" != "x0" && pkg_failed=yes
15403 else
15404 pkg_failed=yes
15405 fi
15406 else
15407 pkg_failed=untried
15408 fi
15409 if test -n "$LIBMBEDTLS_LIBS"; then
15410 pkg_cv_LIBMBEDTLS_LIBS="$LIBMBEDTLS_LIBS"
15411 elif test -n "$PKG_CONFIG"; then
15412 if test -n "$PKG_CONFIG" && \
15413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmbedtls >= 2.16.0\""; } >&5
15414 ($PKG_CONFIG --exists --print-errors "libmbedtls >= 2.16.0") 2>&5
15415 ac_status=$?
15416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15417 test $ac_status = 0; }; then
15418 pkg_cv_LIBMBEDTLS_LIBS=`$PKG_CONFIG --libs "libmbedtls >= 2.16.0" 2>/dev/null`
15419 test "x$?" != "x0" && pkg_failed=yes
15420 else
15421 pkg_failed=yes
15422 fi
15423 else
15424 pkg_failed=untried
15425 fi
15426
15427
15428
15429 if test $pkg_failed = yes; then
15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15431 printf "%s\n" "no" >&6; }
15432
15433 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15434 _pkg_short_errors_supported=yes
15435 else
15436 _pkg_short_errors_supported=no
15437 fi
15438 if test $_pkg_short_errors_supported = yes; then
15439 LIBMBEDTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmbedtls >= 2.16.0" 2>&1`
15440 else
15441 LIBMBEDTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmbedtls >= 2.16.0" 2>&1`
15442 fi
15443 # Put the nasty error message in config.log where it belongs
15444 echo "$LIBMBEDTLS_PKG_ERRORS" >&5
15445
15446 as_fn_error $? "Package requirements (libmbedtls >= 2.16.0) were not met:
15447
15448 $LIBMBEDTLS_PKG_ERRORS
15449
15450 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15451 installed software in a non-standard prefix.
15452
15453 Alternatively, you may set the environment variables LIBMBEDTLS_CFLAGS
15454 and LIBMBEDTLS_LIBS to avoid the need to call pkg-config.
15455 See the pkg-config man page for more details." "$LINENO" 5
15456 elif test $pkg_failed = untried; then
15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 printf "%s\n" "no" >&6; }
15459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15460 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15461 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15462 is in your PATH or set the PKG_CONFIG environment variable to the full
15463 path to pkg-config.
15464
15465 Alternatively, you may set the environment variables LIBMBEDTLS_CFLAGS
15466 and LIBMBEDTLS_LIBS to avoid the need to call pkg-config.
15467 See the pkg-config man page for more details.
15468
15469 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15470 See 'config.log' for more details" "$LINENO" 5; }
15471 else
15472 LIBMBEDTLS_CFLAGS=$pkg_cv_LIBMBEDTLS_CFLAGS
15473 LIBMBEDTLS_LIBS=$pkg_cv_LIBMBEDTLS_LIBS
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15475 printf "%s\n" "yes" >&6; }
15476
15477 fi
15478 # if we get here the test has succeeded
15479 ac_cv_libmbedtls=yes
15480 ;;
15481 esac
15482
15483 if test "x$ac_cv_libmbedtls" = "xyes"; then
15484
15485 printf "%s\n" "#define USE_LIBMBEDTLS 1" >>confdefs.h
15486
15487 pkg_libmbedtls_version=`$PKG_CONFIG --modversion "libmbedtls >= 2.16.0" 2>/dev/null`
15488 else
15489
15490 printf "%s\n" "#define USE_LIBMBEDTLS 0" >>confdefs.h
15491
15492 pkg_libmbedtls_version=""
15493 fi
15494
15495
15496
15497
15498 printf "%s\n" "#define LIBMBEDTLS_BUILD_VERSION \"$pkg_libmbedtls_version\"" >>confdefs.h
15499
15500
15501 if test "x$ac_cv_libmbedtls" = "xyes"; then
15502 ENABLE_LIBMBEDTLS_TRUE=
15503 ENABLE_LIBMBEDTLS_FALSE='#'
15504 else
15505 ENABLE_LIBMBEDTLS_TRUE='#'
15506 ENABLE_LIBMBEDTLS_FALSE=
15507 fi
15508
15509
15510
15511 ### libintl
15512 # Substitute INTL_CFLAGS in Makefile
15513 # Substitute INTL_LIBS in Makefile
15514 # (default to LIBINTL)
15515
15516
15517
15518
15519 if test "x$INTL_LIBS" = "x"; then
15520 INTL_LIBS="$LIBINTL"
15521 fi
15522
15523
15524
15525
15526
15527 ### libhid
15528 # Set ac_cv_udev to yes/no
15529 # Define USE_LIBHID in config.h
15530 # Substitute LIBHID_CFLAGS and LIBHID_LIBS in Makefile
15531 #if test "x$ac_cv_want_fldigi" = "xyes"; then
15532 #AC_FLDIGI_PKG_CHECK([libhid], [libhid], [no], [no],
15533 # [use udev libraries [autodetect]],
15534 # [ENABLE_LIBHID])
15535 #fi
15536
15537 ### asciidoc
15538 # substitute ASCIIDOC and A2X in doc/Makefile
15539 # set HAVE_ASCIIDOC Makefile conditional
15540
15541
15542 # Check whether --with-asciidoc was given.
15543 if test ${with_asciidoc+y}
15544 then :
15545 withval=$with_asciidoc; case "${withval}" in
15546 yes|no) ac_cv_want_asciidoc="${withval}" ;;
15547 *) as_fn_error $? "bad value \"${withval}\" for --with-asciidoc" "$LINENO" 5 ;;
15548 esac
15549 else case e in #(
15550 e) ac_cv_want_asciidoc=check ;;
15551 esac
15552 fi
15553
15554
15555 if test "x$ac_cv_want_asciidoc" != "xno"; then
15556 # Extract the first word of "asciidoc", so it can be a program name with args.
15557 set dummy asciidoc; ac_word=$2
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15559 printf %s "checking for $ac_word... " >&6; }
15560 if test ${ac_cv_path_ASCIIDOC+y}
15561 then :
15562 printf %s "(cached) " >&6
15563 else case e in #(
15564 e) case $ASCIIDOC in
15565 [\\/]* | ?:[\\/]*)
15566 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
15567 ;;
15568 *)
15569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15570 for as_dir in $PATH
15571 do
15572 IFS=$as_save_IFS
15573 case $as_dir in #(((
15574 '') as_dir=./ ;;
15575 */) ;;
15576 *) as_dir=$as_dir/ ;;
15577 esac
15578 for ac_exec_ext in '' $ac_executable_extensions; do
15579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15580 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext"
15581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15582 break 2
15583 fi
15584 done
15585 done
15586 IFS=$as_save_IFS
15587
15588 ;;
15589 esac ;;
15590 esac
15591 fi
15592 ASCIIDOC=$ac_cv_path_ASCIIDOC
15593 if test -n "$ASCIIDOC"; then
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
15595 printf "%s\n" "$ASCIIDOC" >&6; }
15596 else
15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 printf "%s\n" "no" >&6; }
15599 fi
15600
15601
15602 asciidoc_min=8.2.0
15603 if test "x$ASCIIDOC" != "x"; then
15604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for asciidoc >= $asciidoc_min" >&5
15605 printf %s "checking for asciidoc >= $asciidoc_min... " >&6; }
15606 asciidoc_ver=$($ASCIIDOC --version | sed -n '1 s/.* //; p')
15607
15608
15609
15610 # Used to indicate true or false condition
15611 ax_compare_version=false
15612
15613 # Convert the two version strings to be compared into a format that
15614 # allows a simple string comparison. The end result is that a version
15615 # string of the form 1.12.5-r617 will be converted to the form
15616 # 0001001200050617. In other words, each number is zero padded to four
15617 # digits, and non digits are removed.
15618
15619 ax_compare_version_A=`echo "$asciidoc_ver" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15620 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15621 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15622 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15623 -e 's/[^0-9]//g'`
15624
15625
15626 ax_compare_version_B=`echo "$asciidoc_min" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15627 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15628 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15629 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15630 -e 's/[^0-9]//g'`
15631
15632
15633 ax_compare_version=`echo "x$ax_compare_version_A
15634 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15635
15636
15637
15638 if test "$ax_compare_version" = "true" ; then
15639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($asciidoc_ver)" >&5
15640 printf "%s\n" "yes ($asciidoc_ver)" >&6; }
15641 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no ($asciidoc_ver)" >&5
15642 printf "%s\n" "no ($asciidoc_ver)" >&6; }; ASCIIDOC=""
15643 fi
15644
15645 fi
15646 if test "x$ASCIIDOC" != "x"; then
15647 # Extract the first word of "a2x", so it can be a program name with args.
15648 set dummy a2x; ac_word=$2
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15650 printf %s "checking for $ac_word... " >&6; }
15651 if test ${ac_cv_path_A2X+y}
15652 then :
15653 printf %s "(cached) " >&6
15654 else case e in #(
15655 e) case $A2X in
15656 [\\/]* | ?:[\\/]*)
15657 ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
15658 ;;
15659 *)
15660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15661 for as_dir in $PATH
15662 do
15663 IFS=$as_save_IFS
15664 case $as_dir in #(((
15665 '') as_dir=./ ;;
15666 */) ;;
15667 *) as_dir=$as_dir/ ;;
15668 esac
15669 for ac_exec_ext in '' $ac_executable_extensions; do
15670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15671 ac_cv_path_A2X="$as_dir$ac_word$ac_exec_ext"
15672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15673 break 2
15674 fi
15675 done
15676 done
15677 IFS=$as_save_IFS
15678
15679 ;;
15680 esac ;;
15681 esac
15682 fi
15683 A2X=$ac_cv_path_A2X
15684 if test -n "$A2X"; then
15685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
15686 printf "%s\n" "$A2X" >&6; }
15687 else
15688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 printf "%s\n" "no" >&6; }
15690 fi
15691
15692
15693
15694
15695
15696 # Used to indicate true or false condition
15697 ax_compare_version=false
15698
15699 # Convert the two version strings to be compared into a format that
15700 # allows a simple string comparison. The end result is that a version
15701 # string of the form 1.12.5-r617 will be converted to the form
15702 # 0001001200050617. In other words, each number is zero padded to four
15703 # digits, and non digits are removed.
15704
15705 ax_compare_version_A=`echo "$asciidoc_ver" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15706 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15707 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15708 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15709 -e 's/[^0-9]//g'`
15710
15711
15712 ax_compare_version_B=`echo "8.3.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
15713 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
15714 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
15715 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
15716 -e 's/[^0-9]//g'`
15717
15718
15719 ax_compare_version=`echo "x$ax_compare_version_A
15720 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
15721
15722
15723
15724 if test "$ax_compare_version" = "true" ; then
15725 no_xmllint=yes
15726 else no_xmllint=no
15727 fi
15728
15729 fi
15730 if test "x$ac_cv_want_asciidoc" = "xyes"; then
15731 if test "x$ASCIIDOC" = "x" -o "x$A2X" = "x"; then
15732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15733 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15734 as_fn_error $? "--with-asciidoc was given, but check for asciidoc failed
15735 See 'config.log' for more details" "$LINENO" 5; }
15736 elif test "x$A2X" = "x"; then
15737 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15738 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15739 as_fn_error $? "--with-asciidoc was given, but check for a2x failed
15740 See 'config.log' for more details" "$LINENO" 5; }
15741 fi
15742 fi
15743 fi
15744
15745
15746
15747 if test "x$ASCIIDOC" != "x" -a "x$A2X" != "x"; then
15748 HAVE_ASCIIDOC_TRUE=
15749 HAVE_ASCIIDOC_FALSE='#'
15750 else
15751 HAVE_ASCIIDOC_TRUE='#'
15752 HAVE_ASCIIDOC_FALSE=
15753 fi
15754
15755 if test "$no_xmllint" = "yes"; then
15756 HAVE_ASCIIDOC_NO_XMLLINT_TRUE=
15757 HAVE_ASCIIDOC_NO_XMLLINT_FALSE='#'
15758 else
15759 HAVE_ASCIIDOC_NO_XMLLINT_TRUE='#'
15760 HAVE_ASCIIDOC_NO_XMLLINT_FALSE=
15761 fi
15762
15763
15764
15765 ### build info
15766 # Define various build variables in config.h
15767
15768 # Define build flags and substitute in Makefile.in
15769 # CPPFLAGS
15770 FLDIGI_BUILD_CPPFLAGS="-I\$(srcdir) -I\$(srcdir)/include \
15771 -I\$(srcdir)/irrxml \
15772 -I\$(srcdir)/libtiniconv \
15773 -I\$(srcdir)/fileselector"
15774 if test "x$ac_cv_flxmlrpc" != "xyes"; then
15775 FLDIGI_BUILD_CPPFLAGS="$FLDIGI_BUILD_CPPFLAGS -I\$(srcdir)/xmlrpcpp"
15776 fi
15777 if test "x$ac_cv_libmbedtls" != "xyes"; then
15778 FLDIGI_BUILD_CPPFLAGS="$FLDIGI_BUILD_CPPFLAGS -I\$(srcdir)/mbedtls"
15779 fi
15780 # CXXFLAGS
15781 FLDIGI_BUILD_CXXFLAGS="\
15782 $PORTAUDIO_CFLAGS $FLTK_CFLAGS $X_CFLAGS \
15783 $SNDFILE_CFLAGS $SAMPLERATE_CFLAGS $PULSEAUDIO_CFLAGS \
15784 $HAMLIB_CFLAGS $PNG_CFLAGS $XMLRPC_CFLAGS $MAC_UNIVERSAL_CFLAGS \
15785 $LIBMBEDTLS_CFLAGS $LIBGPIOD_CFLAGS \
15786 $INTL_CFLAGS $PTW32_CFLAGS $BFD_CFLAGS -pipe -Wall -fexceptions $OPT_CFLAGS $DEBUG_CFLAGS"
15787
15788 # CFLAGS
15789 FLDIGI_BUILD_CFLAGS="$LIBMBEDTLS_CFLAGS $LIBGPIOD_CFLAGS -pipe -Wall -fexceptions"
15790
15791 if test "x$target_darwin" = "xno"; then
15792 FLDIGI_BUILD_CXXFLAGS="$FLDIGI_BUILD_CXXFLAGS --param=max-vartrack-size=0"
15793 fi
15794
15795 if test "x$target_mingw32" = "xyes"; then
15796 FLDIGI_BUILD_CXXFLAGS="-mthreads $FLDIGI_BUILD_CXXFLAGS"
15797 fi
15798
15799 if test "x$ac_cv_flxmlrpc" != "xyes"; then
15800 FLDIGI_BUILD_CXXFLAGS="$FLDIGI_BUILD_CXXFLAGS -I\$(srcdir)/xmlrpcpp"
15801 fi
15802
15803 if test "x$target_darwin" = "xyes"; then
15804 FLDIGI_BUILD_CXXFLAGS="$FLDIGI_BUILD_CXXFLAGS -fno-stack-check -mmacosx-version-min=10.11"
15805 FLDIGI_BUILD_CPPFLAGS="$FLDIGI_BUILD_CPPFLAGS -fno-stack-check -mmacosx-version-min=10.11"
15806 fi
15807
15808 # LDFLAGS
15809 FLDIGI_BUILD_LDFLAGS="$MAC_UNIVERSAL_LDFLAGS"
15810 if test "x$target_mingw32" = "xyes"; then
15811 FLDIGI_BUILD_LDFLAGS="-mthreads $FLDIGI_BUILD_LDFLAGS"
15812 fi
15813
15814 # LDADD
15815 FLDIGI_BUILD_LDADD="\
15816 $PORTAUDIO_LIBS $FLTK_LIBS $X_LIBS \
15817 $SNDFILE_LIBS $SAMPLERATE_LIBS $PULSEAUDIO_LIBS \
15818 $HAMLIB_LIBS $PNG_LIBS $XMLRPC_LIBS $INTL_LIBS $PTW32_LIBS $BFD_LIBS \
15819 $EXTRA_LIBS $FLXMLRPC_LIBS $LIBMBEDTLS_LIBS $LIBUDEV_LIBS $LIBGPIOD_LIBS"
15820
15821 # CPPFLAGS
15822 FLARQ_BUILD_CPPFLAGS="-I\$(srcdir) -I\$(srcdir)/include -I\$(srcdir)/fileselector \
15823 -I\$(srcdir)/flarq-src -I\$(srcdir)/flarq-src/include"
15824
15825 if test "x$target_darwin" = "xno"; then
15826 FLDIGI_BUILD_CXXFLAGS="$FLDIGI_BUILD_CXXFLAGS --param=max-vartrack-size=0"
15827 fi
15828
15829 if test "x$ac_cv_flxmlrpc" != "xyes"; then
15830 FLARQ_BUILD_CPPFLAGS="$FLARQ_BUILD_CPPFLAGS -I\$(srcdir)/xmlrpcpp"
15831 fi
15832 # CXXFLAGS
15833 FLARQ_BUILD_CXXFLAGS="$FLTK_CFLAGS $X_CFLAGS $MAC_UNIVERSAL_CFLAGS $INTL_CFLAGS $PTW32_CFLAGS \
15834 $BFD_CFLAGS -pipe -Wall -fexceptions $OPT_CFLAGS $DEBUG_CFLAGS"
15835
15836 if test "x$target_mingw32" = "xyes"; then
15837 FLARQ_BUILD_CXXFLAGS="-mthreads $FLARQ_BUILD_CXXFLAGS"
15838 fi
15839
15840 if test "x$ac_cv_flxmlrpc" != "xyes"; then
15841 FLARQ_BUILD_CXXFLAGS="$FLARQ_BUILD_CXXFLAGS -I\$(srcdir)/xmlrpcpp"
15842 fi
15843
15844 if test "x$ac_cv_libmbedtls" = "xyes"; then
15845 FLDIGI_BUILD_LDADD="$FLDIGI_BUILD_LDADD $LIBMBEDTLS_LDFLAGS"
15846 fi
15847
15848 if test "x$target_darwin" = "xyes"; then
15849 FLARQ_BUILD_CXXFLAGS="$FLARQ_BUILD_CXXFLAGS -fno-stack-check -mmacosx-version-min=10.11"
15850 FLARQ_BUILD_CPPFLAGS="$FLARQ_BUILD_CPPFLAGS -fno-stack-check -mmacosx-version-min=10.11"
15851 fi
15852
15853 # UDEV SUPPORT
15854 if test "x$target_darwin" = "xyes"; then
15855 FLDIGI_BUILD_LDADD="$FLDIGI_BUILD_LDADD -framework IOKit -framework CoreFoundation"
15856 else if test "x$target_mingw32" = "xyes"; then
15857 FLDIGI_BUILD_LDADD="$FLDIGI_BUILD_LDADD -lsetupapi -lhid"
15858 else
15859 FLDIGI_BUILD_LDADD="$FLDIGI_BUILD_LDADD -ludev"
15860 fi
15861 fi
15862
15863 # LDFLAGS
15864 FLARQ_BUILD_LDFLAGS="$MAC_UNIVERSAL_LDFLAGS"
15865 if test "x$target_mingw32" = "xyes"; then
15866 FLARQ_BUILD_LDFLAGS="-mthreads $FLARQ_BUILD_LDFLAGS"
15867 fi
15868 # LDADD
15869 FLARQ_BUILD_LDADD="$FLTK_LIBS $X_LIBS $INTL_LIBS $PTW32_LIBS $BFD_LIBS $EXTRA_LIBS $FLXMLRPC_LIBS"
15870 if test "x$target_mingw32" = "xyes"; then
15871 FLARQ_BUILD_LDADD="-lwinmm $FLARQ_BUILD_LDADD"
15872 fi
15873
15874 if test "x$ac_cv_debug" = "xyes"; then
15875 FLDIGI_BUILD_CXXFLAGS="$FLDIGI_BUILD_CXXFLAGS -UNDEBUG"
15876 FLDIGI_BUILD_LDFLAGS="$FLDIGI_BUILD_LDFLAGS $RDYNAMIC"
15877 FLARQ_BUILD_CXXFLAGS="$FLARQ_BUILD_CXXFLAGS -UNDEBUG"
15878 FLARQ_BUILD_LDFLAGS="$FLARQ_BUILD_LDFLAGS $RDYNAMIC"
15879 else
15880 FLDIGI_BUILD_CXXFLAGS="$FLDIGI_BUILD_CXXFLAGS -DNDEBUG"
15881 FLARQ_BUILD_CXXFLAGS="$FLARQ_BUILD_CXXFLAGS -DNDEBUG"
15882 fi
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895 #define build variables for config.h
15896
15897 printf "%s\n" "#define BUILD_BUILD_PLATFORM \"$build\"" >>confdefs.h
15898
15899
15900 printf "%s\n" "#define BUILD_HOST_PLATFORM \"$host\"" >>confdefs.h
15901
15902
15903 printf "%s\n" "#define BUILD_TARGET_PLATFORM \"$target\"" >>confdefs.h
15904
15905
15906 test "x$LC_ALL" != "x" && LC_ALL_saved="$LC_ALL"
15907 LC_ALL=C
15908 export LC_ALL
15909
15910
15911 ac_sh_dq="\"`echo $ac_configure_args | sed 's/"/\\\\"/g'`\""
15912
15913
15914 printf "%s\n" "#define BUILD_CONFIGURE_ARGS $ac_sh_dq" >>confdefs.h
15915
15916
15917 # Allow BUILD_DATE, BUILD_USER, BUILD_HOST to be externally overridden by
15918 # environment variables.
15919
15920 ac_sh_dq="\"$BUILD_DATE\""
15921 test "x$BUILD_DATE" = "x" &&
15922 ac_sh_dq="\"`date | sed 's/"/\\\\"/g'`\""
15923
15924
15925 printf "%s\n" "#define BUILD_DATE $ac_sh_dq" >>confdefs.h
15926
15927
15928 ac_sh_dq="\"$BUILD_USER\""
15929 test "x$BUILD_USER" = "x" &&
15930 ac_sh_dq="\"`whoami | sed 's/"/\\\\"/g'`\""
15931
15932
15933 printf "%s\n" "#define BUILD_USER $ac_sh_dq" >>confdefs.h
15934
15935
15936 ac_sh_dq="\"$BUILD_HOST\""
15937 test "x$BUILD_HOST" = "x" &&
15938 ac_sh_dq="\"`hostname | sed 's/"/\\\\"/g'`\""
15939
15940
15941 printf "%s\n" "#define BUILD_HOST $ac_sh_dq" >>confdefs.h
15942
15943
15944
15945 ac_sh_dq="\"`$CXX -v 2>&1 | tail -1 | sed 's/"/\\\\"/g'`\""
15946
15947
15948 printf "%s\n" "#define BUILD_COMPILER $ac_sh_dq" >>confdefs.h
15949
15950
15951
15952 ac_sh_dq="\"`echo $FLDIGI_BUILD_CPPFLAGS $FLDIGI_BUILD_CXXFLAGS | sed 's/"/\\\\"/g'`\""
15953
15954
15955 printf "%s\n" "#define FLDIGI_BUILD_CXXFLAGS $ac_sh_dq" >>confdefs.h
15956
15957
15958 printf "%s\n" "#define FLDIGI_BUILD_CFLAGS $ac_sh_dq" >>confdefs.h
15959
15960
15961 ac_sh_dq="\"`echo $FLDIGI_BUILD_LDFLAGS $FLDIGI_BUILD_LDADD | sed 's/"/\\\\"/g'`\""
15962
15963
15964 printf "%s\n" "#define FLDIGI_BUILD_LDFLAGS $ac_sh_dq" >>confdefs.h
15965
15966
15967
15968 ac_sh_dq="\"`echo $FLARQ_BUILD_CPPFLAGS $FLARQ_BUILD_CXXFLAGS | sed 's/"/\\\\"/g'`\""
15969
15970
15971 printf "%s\n" "#define FLARQ_BUILD_CXXFLAGS $ac_sh_dq" >>confdefs.h
15972
15973
15974 ac_sh_dq="\"`echo $FLARQ_BUILD_LDFLAGS $FLARQ_BUILD_LDADD | sed 's/"/\\\\"/g'`\""
15975
15976
15977 printf "%s\n" "#define FLARQ_BUILD_LDFLAGS $ac_sh_dq" >>confdefs.h
15978
15979
15980 if test "x$LC_ALL_saved" != "x"; then
15981 LC_ALL="$LC_ALL_saved"
15982 export LC_ALL
15983 fi
15984
15985
15986 ### silent build rules
15987
15988
15989 SILENT_CMDS='silent_cmd = @echo " $(1)" $(2);
15990 ifeq ($(AM_DEFAULT_VERBOSITY),0)
15991 silent = $(if $(subst 0,,$(V)),,$(silent_cmd))
15992 else
15993 ifeq ($(V),0)
15994 silent = $(silent_cmd)
15995 endif
15996 endif'
15997
15998
15999
16000 ### output
16001
16002
16003 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in doc/Makefile"
16004
16005 cat >confcache <<\_ACEOF
16006 # This file is a shell script that caches the results of configure
16007 # tests run on this system so they can be shared between configure
16008 # scripts and configure runs, see configure's option --config-cache.
16009 # It is not useful on other systems. If it contains results you don't
16010 # want to keep, you may remove or edit it.
16011 #
16012 # config.status only pays attention to the cache file if you give it
16013 # the --recheck option to rerun configure.
16014 #
16015 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
16016 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
16017 # following values.
16018
16019 _ACEOF
16020
16021 # The following way of writing the cache mishandles newlines in values,
16022 # but we know of no workaround that is simple, portable, and efficient.
16023 # So, we kill variables containing newlines.
16024 # Ultrix sh set writes to stderr and can't be redirected directly,
16025 # and sets the high bit in the cache file unless we assign to the vars.
16026 (
16027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16028 eval ac_val=\$$ac_var
16029 case $ac_val in #(
16030 *${as_nl}*)
16031 case $ac_var in #(
16032 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16033 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16034 esac
16035 case $ac_var in #(
16036 _ | IFS | as_nl) ;; #(
16037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16038 *) { eval $ac_var=; unset $ac_var;} ;;
16039 esac ;;
16040 esac
16041 done
16042
16043 (set) 2>&1 |
16044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16045 *${as_nl}ac_space=\ *)
16046 # 'set' does not quote correctly, so add quotes: double-quote
16047 # substitution turns \\\\ into \\, and sed turns \\ into \.
16048 sed -n \
16049 "s/'/'\\\\''/g;
16050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16051 ;; #(
16052 *)
16053 # 'set' quotes correctly as required by POSIX, so do not add quotes.
16054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16055 ;;
16056 esac |
16057 sort
16058 ) |
16059 sed '
16060 /^ac_cv_env_/b end
16061 t clear
16062 :clear
16063 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16064 t end
16065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16066 :end' >>confcache
16067 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16068 if test -w "$cache_file"; then
16069 if test "x$cache_file" != "x/dev/null"; then
16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16071 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16072 if test ! -f "$cache_file" || test -h "$cache_file"; then
16073 cat confcache >"$cache_file"
16074 else
16075 case $cache_file in #(
16076 */* | ?:*)
16077 mv -f confcache "$cache_file"$$ &&
16078 mv -f "$cache_file"$$ "$cache_file" ;; #(
16079 *)
16080 mv -f confcache "$cache_file" ;;
16081 esac
16082 fi
16083 fi
16084 else
16085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16086 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16087 fi
16088 fi
16089 rm -f confcache
16090
16091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16092 # Let make expand exec_prefix.
16093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16094
16095 DEFS=-DHAVE_CONFIG_H
16096
16097 ac_libobjs=
16098 ac_ltlibobjs=
16099 U=
16100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16101 # 1. Remove the extension, and $U if already installed.
16102 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16103 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16104 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16105 # will be set to the directory where LIBOBJS objects are built.
16106 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16107 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16108 done
16109 LIBOBJS=$ac_libobjs
16110
16111 LTLIBOBJS=$ac_ltlibobjs
16112
16113
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16115 printf %s "checking that generated files are newer than configure... " >&6; }
16116 if test -n "$am_sleep_pid"; then
16117 # Hide warnings about reused PIDs.
16118 wait $am_sleep_pid 2>/dev/null
16119 fi
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16121 printf "%s\n" "done" >&6; }
16122 case $enable_silent_rules in # (((
16123 yes) AM_DEFAULT_VERBOSITY=0;;
16124 no) AM_DEFAULT_VERBOSITY=1;;
16125 esac
16126 if test $am_cv_make_support_nested_variables = yes; then
16127 AM_V='$(V)'
16128 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16129 else
16130 AM_V=$AM_DEFAULT_VERBOSITY
16131 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16132 fi
16133
16134 if test -n "$EXEEXT"; then
16135 am__EXEEXT_TRUE=
16136 am__EXEEXT_FALSE='#'
16137 else
16138 am__EXEEXT_TRUE='#'
16139 am__EXEEXT_FALSE=
16140 fi
16141
16142 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16143 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16145 fi
16146 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16147 as_fn_error $? "conditional \"AMDEP\" was never defined.
16148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16149 fi
16150 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16151 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16153 fi
16154 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16155 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16157 fi
16158 if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
16159 as_fn_error $? "conditional \"USE_NLS\" was never defined.
16160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16161 fi
16162 if test -z "${WANT_FLDIGI_TRUE}" && test -z "${WANT_FLDIGI_FALSE}"; then
16163 as_fn_error $? "conditional \"WANT_FLDIGI\" was never defined.
16164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16165 fi
16166 if test -z "${WANT_FLARQ_TRUE}" && test -z "${WANT_FLARQ_FALSE}"; then
16167 as_fn_error $? "conditional \"WANT_FLARQ\" was never defined.
16168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16169 fi
16170 if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
16171 as_fn_error $? "conditional \"DARWIN\" was never defined.
16172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16173 fi
16174 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
16175 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
16176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16177 fi
16178 if test -z "${HAVE_NSIS_TRUE}" && test -z "${HAVE_NSIS_FALSE}"; then
16179 as_fn_error $? "conditional \"HAVE_NSIS\" was never defined.
16180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16181 fi
16182 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16183 as_fn_error $? "conditional \"WIN32\" was never defined.
16184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16185 fi
16186 if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
16187 as_fn_error $? "conditional \"MINGW32\" was never defined.
16188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16189 fi
16190 if test -z "${COMPAT_REGEX_TRUE}" && test -z "${COMPAT_REGEX_FALSE}"; then
16191 as_fn_error $? "conditional \"COMPAT_REGEX\" was never defined.
16192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16193 fi
16194 if test -z "${COMPAT_STRCASESTR_TRUE}" && test -z "${COMPAT_STRCASESTR_FALSE}"; then
16195 as_fn_error $? "conditional \"COMPAT_STRCASESTR\" was never defined.
16196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16197 fi
16198 if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
16199 as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
16200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16201 fi
16202 if test -z "${COMPAT_STACK_TRUE}" && test -z "${COMPAT_STACK_FALSE}"; then
16203 as_fn_error $? "conditional \"COMPAT_STACK\" was never defined.
16204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16205 fi
16206 if test -z "${ENABLE_BENCHMARK_TRUE}" && test -z "${ENABLE_BENCHMARK_FALSE}"; then
16207 as_fn_error $? "conditional \"ENABLE_BENCHMARK\" was never defined.
16208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16209 fi
16210 if test -z "${HAVE_FLUID_TRUE}" && test -z "${HAVE_FLUID_FALSE}"; then
16211 as_fn_error $? "conditional \"HAVE_FLUID\" was never defined.
16212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16213 fi
16214 if test -z "${ENABLE_HAMLIB_TRUE}" && test -z "${ENABLE_HAMLIB_FALSE}"; then
16215 as_fn_error $? "conditional \"ENABLE_HAMLIB\" was never defined.
16216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16217 fi
16218 if test -z "${NEED_HAMLIB_LOCATOR_TRUE}" && test -z "${NEED_HAMLIB_LOCATOR_FALSE}"; then
16219 as_fn_error $? "conditional \"NEED_HAMLIB_LOCATOR\" was never defined.
16220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16221 fi
16222 if test -z "${ENABLE_FLXMLRPC_TRUE}" && test -z "${ENABLE_FLXMLRPC_FALSE}"; then
16223 as_fn_error $? "conditional \"ENABLE_FLXMLRPC\" was never defined.
16224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16225 fi
16226 if test -z "${ENABLE_LIBMBEDTLS_TRUE}" && test -z "${ENABLE_LIBMBEDTLS_FALSE}"; then
16227 as_fn_error $? "conditional \"ENABLE_LIBMBEDTLS\" was never defined.
16228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16229 fi
16230 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
16231 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
16232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16233 fi
16234 if test -z "${HAVE_ASCIIDOC_NO_XMLLINT_TRUE}" && test -z "${HAVE_ASCIIDOC_NO_XMLLINT_FALSE}"; then
16235 as_fn_error $? "conditional \"HAVE_ASCIIDOC_NO_XMLLINT\" was never defined.
16236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16237 fi
16238
16239 : "${CONFIG_STATUS=./config.status}"
16240 ac_write_fail=0
16241 ac_clean_files_save=$ac_clean_files
16242 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16244 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16245 as_write_fail=0
16246 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16247 #! $SHELL
16248 # Generated by $as_me.
16249 # Run this file to recreate the current configuration.
16250 # Compiler output produced by configure, useful for debugging
16251 # configure, is in config.log if it exists.
16252
16253 debug=false
16254 ac_cs_recheck=false
16255 ac_cs_silent=false
16256
16257 SHELL=\${CONFIG_SHELL-$SHELL}
16258 export SHELL
16259 _ASEOF
16260 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16261 ## -------------------- ##
16262 ## M4sh Initialization. ##
16263 ## -------------------- ##
16264
16265 # Be more Bourne compatible
16266 DUALCASE=1; export DUALCASE # for MKS sh
16267 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16268 then :
16269 emulate sh
16270 NULLCMD=:
16271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16272 # is contrary to our usage. Disable this feature.
16273 alias -g '${1+"$@"}'='"$@"'
16274 setopt NO_GLOB_SUBST
16275 else case e in #(
16276 e) case `(set -o) 2>/dev/null` in #(
16277 *posix*) :
16278 set -o posix ;; #(
16279 *) :
16280 ;;
16281 esac ;;
16282 esac
16283 fi
16284
16285
16286
16287 # Reset variables that may have inherited troublesome values from
16288 # the environment.
16289
16290 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16291 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16292 # side effect of setting IFS to empty, thus disabling word splitting.)
16293 # Quoting is to prevent editors from complaining about space-tab.
16294 as_nl='
16295 '
16296 export as_nl
16297 IFS=" "" $as_nl"
16298
16299 PS1='$ '
16300 PS2='> '
16301 PS4='+ '
16302
16303 # Ensure predictable behavior from utilities with locale-dependent output.
16304 LC_ALL=C
16305 export LC_ALL
16306 LANGUAGE=C
16307 export LANGUAGE
16308
16309 # We cannot yet rely on "unset" to work, but we need these variables
16310 # to be unset--not just set to an empty or harmless value--now, to
16311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16312 # also avoids known problems related to "unset" and subshell syntax
16313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16315 do eval test \${$as_var+y} \
16316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16317 done
16318
16319 # Ensure that fds 0, 1, and 2 are open.
16320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16322 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16323
16324 # The user is always right.
16325 if ${PATH_SEPARATOR+false} :; then
16326 PATH_SEPARATOR=:
16327 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16328 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16329 PATH_SEPARATOR=';'
16330 }
16331 fi
16332
16333
16334 # Find who we are. Look in the path if we contain no directory separator.
16335 as_myself=
16336 case $0 in #((
16337 *[\\/]* ) as_myself=$0 ;;
16338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16339 for as_dir in $PATH
16340 do
16341 IFS=$as_save_IFS
16342 case $as_dir in #(((
16343 '') as_dir=./ ;;
16344 */) ;;
16345 *) as_dir=$as_dir/ ;;
16346 esac
16347 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16348 done
16349 IFS=$as_save_IFS
16350
16351 ;;
16352 esac
16353 # We did not find ourselves, most probably we were run as 'sh COMMAND'
16354 # in which case we are not to be found in the path.
16355 if test "x$as_myself" = x; then
16356 as_myself=$0
16357 fi
16358 if test ! -f "$as_myself"; then
16359 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16360 exit 1
16361 fi
16362
16363
16364
16365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16366 # ----------------------------------------
16367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16369 # script with STATUS, using 1 if that was 0.
16370 as_fn_error ()
16371 {
16372 as_status=$1; test $as_status -eq 0 && as_status=1
16373 if test "$4"; then
16374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16376 fi
16377 printf "%s\n" "$as_me: error: $2" >&2
16378 as_fn_exit $as_status
16379 } # as_fn_error
16380
16381
16382 # as_fn_set_status STATUS
16383 # -----------------------
16384 # Set $? to STATUS, without forking.
16385 as_fn_set_status ()
16386 {
16387 return $1
16388 } # as_fn_set_status
16389
16390 # as_fn_exit STATUS
16391 # -----------------
16392 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16393 as_fn_exit ()
16394 {
16395 set +e
16396 as_fn_set_status $1
16397 exit $1
16398 } # as_fn_exit
16399
16400 # as_fn_unset VAR
16401 # ---------------
16402 # Portably unset VAR.
16403 as_fn_unset ()
16404 {
16405 { eval $1=; unset $1;}
16406 }
16407 as_unset=as_fn_unset
16408
16409 # as_fn_append VAR VALUE
16410 # ----------------------
16411 # Append the text in VALUE to the end of the definition contained in VAR. Take
16412 # advantage of any shell optimizations that allow amortized linear growth over
16413 # repeated appends, instead of the typical quadratic growth present in naive
16414 # implementations.
16415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16416 then :
16417 eval 'as_fn_append ()
16418 {
16419 eval $1+=\$2
16420 }'
16421 else case e in #(
16422 e) as_fn_append ()
16423 {
16424 eval $1=\$$1\$2
16425 } ;;
16426 esac
16427 fi # as_fn_append
16428
16429 # as_fn_arith ARG...
16430 # ------------------
16431 # Perform arithmetic evaluation on the ARGs, and store the result in the
16432 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16433 # must be portable across $(()) and expr.
16434 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16435 then :
16436 eval 'as_fn_arith ()
16437 {
16438 as_val=$(( $* ))
16439 }'
16440 else case e in #(
16441 e) as_fn_arith ()
16442 {
16443 as_val=`expr "$@" || test $? -eq 1`
16444 } ;;
16445 esac
16446 fi # as_fn_arith
16447
16448
16449 if expr a : '\(a\)' >/dev/null 2>&1 &&
16450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16451 as_expr=expr
16452 else
16453 as_expr=false
16454 fi
16455
16456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16457 as_basename=basename
16458 else
16459 as_basename=false
16460 fi
16461
16462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16463 as_dirname=dirname
16464 else
16465 as_dirname=false
16466 fi
16467
16468 as_me=`$as_basename -- "$0" ||
16469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16470 X"$0" : 'X\(//\)$' \| \
16471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16472 printf "%s\n" X/"$0" |
16473 sed '/^.*\/\([^/][^/]*\)\/*$/{
16474 s//\1/
16475 q
16476 }
16477 /^X\/\(\/\/\)$/{
16478 s//\1/
16479 q
16480 }
16481 /^X\/\(\/\).*/{
16482 s//\1/
16483 q
16484 }
16485 s/.*/./; q'`
16486
16487 # Avoid depending upon Character Ranges.
16488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16491 as_cr_digits='0123456789'
16492 as_cr_alnum=$as_cr_Letters$as_cr_digits
16493
16494
16495 # Determine whether it's possible to make 'echo' print without a newline.
16496 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16497 # for compatibility with existing Makefiles.
16498 ECHO_C= ECHO_N= ECHO_T=
16499 case `echo -n x` in #(((((
16500 -n*)
16501 case `echo 'xy\c'` in
16502 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16503 xy) ECHO_C='\c';;
16504 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16505 ECHO_T=' ';;
16506 esac;;
16507 *)
16508 ECHO_N='-n';;
16509 esac
16510
16511 # For backward compatibility with old third-party macros, we provide
16512 # the shell variables $as_echo and $as_echo_n. New code should use
16513 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16514 as_echo='printf %s\n'
16515 as_echo_n='printf %s'
16516
16517 rm -f conf$$ conf$$.exe conf$$.file
16518 if test -d conf$$.dir; then
16519 rm -f conf$$.dir/conf$$.file
16520 else
16521 rm -f conf$$.dir
16522 mkdir conf$$.dir 2>/dev/null
16523 fi
16524 if (echo >conf$$.file) 2>/dev/null; then
16525 if ln -s conf$$.file conf$$ 2>/dev/null; then
16526 as_ln_s='ln -s'
16527 # ... but there are two gotchas:
16528 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16529 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16530 # In both cases, we have to default to 'cp -pR'.
16531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16532 as_ln_s='cp -pR'
16533 elif ln conf$$.file conf$$ 2>/dev/null; then
16534 as_ln_s=ln
16535 else
16536 as_ln_s='cp -pR'
16537 fi
16538 else
16539 as_ln_s='cp -pR'
16540 fi
16541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16542 rmdir conf$$.dir 2>/dev/null
16543
16544
16545 # as_fn_mkdir_p
16546 # -------------
16547 # Create "$as_dir" as a directory, including parents if necessary.
16548 as_fn_mkdir_p ()
16549 {
16550
16551 case $as_dir in #(
16552 -*) as_dir=./$as_dir;;
16553 esac
16554 test -d "$as_dir" || eval $as_mkdir_p || {
16555 as_dirs=
16556 while :; do
16557 case $as_dir in #(
16558 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16559 *) as_qdir=$as_dir;;
16560 esac
16561 as_dirs="'$as_qdir' $as_dirs"
16562 as_dir=`$as_dirname -- "$as_dir" ||
16563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16564 X"$as_dir" : 'X\(//\)[^/]' \| \
16565 X"$as_dir" : 'X\(//\)$' \| \
16566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16567 printf "%s\n" X"$as_dir" |
16568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16569 s//\1/
16570 q
16571 }
16572 /^X\(\/\/\)[^/].*/{
16573 s//\1/
16574 q
16575 }
16576 /^X\(\/\/\)$/{
16577 s//\1/
16578 q
16579 }
16580 /^X\(\/\).*/{
16581 s//\1/
16582 q
16583 }
16584 s/.*/./; q'`
16585 test -d "$as_dir" && break
16586 done
16587 test -z "$as_dirs" || eval "mkdir $as_dirs"
16588 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16589
16590
16591 } # as_fn_mkdir_p
16592 if mkdir -p . 2>/dev/null; then
16593 as_mkdir_p='mkdir -p "$as_dir"'
16594 else
16595 test -d ./-p && rmdir ./-p
16596 as_mkdir_p=false
16597 fi
16598
16599
16600 # as_fn_executable_p FILE
16601 # -----------------------
16602 # Test if FILE is an executable regular file.
16603 as_fn_executable_p ()
16604 {
16605 test -f "$1" && test -x "$1"
16606 } # as_fn_executable_p
16607 as_test_x='test -x'
16608 as_executable_p=as_fn_executable_p
16609
16610 # Sed expression to map a string onto a valid CPP name.
16611 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16612 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16613
16614 # Sed expression to map a string onto a valid variable name.
16615 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16616 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16617
16618
16619 exec 6>&1
16620 ## ----------------------------------- ##
16621 ## Main body of $CONFIG_STATUS script. ##
16622 ## ----------------------------------- ##
16623 _ASEOF
16624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16625
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 # Save the log message, to keep $0 and so on meaningful, and to
16628 # report actual input values of CONFIG_FILES etc. instead of their
16629 # values after options handling.
16630 ac_log="
16631 This file was extended by fldigi $as_me 4.2.12, which was
16632 generated by GNU Autoconf 2.72. Invocation command line was
16633
16634 CONFIG_FILES = $CONFIG_FILES
16635 CONFIG_HEADERS = $CONFIG_HEADERS
16636 CONFIG_LINKS = $CONFIG_LINKS
16637 CONFIG_COMMANDS = $CONFIG_COMMANDS
16638 $ $0 $@
16639
16640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16641 "
16642
16643 _ACEOF
16644
16645 case $ac_config_files in *"
16646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16647 esac
16648
16649 case $ac_config_headers in *"
16650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16651 esac
16652
16653
16654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16655 # Files that config.status was made for.
16656 config_files="$ac_config_files"
16657 config_headers="$ac_config_headers"
16658 config_commands="$ac_config_commands"
16659
16660 _ACEOF
16661
16662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16663 ac_cs_usage="\
16664 '$as_me' instantiates files and other configuration actions
16665 from templates according to the current configuration. Unless the files
16666 and actions are specified as TAGs, all are instantiated by default.
16667
16668 Usage: $0 [OPTION]... [TAG]...
16669
16670 -h, --help print this help, then exit
16671 -V, --version print version number and configuration settings, then exit
16672 --config print configuration, then exit
16673 -q, --quiet, --silent
16674 do not print progress messages
16675 -d, --debug don't remove temporary files
16676 --recheck update $as_me by reconfiguring in the same conditions
16677 --file=FILE[:TEMPLATE]
16678 instantiate the configuration file FILE
16679 --header=FILE[:TEMPLATE]
16680 instantiate the configuration header FILE
16681
16682 Configuration files:
16683 $config_files
16684
16685 Configuration headers:
16686 $config_headers
16687
16688 Configuration commands:
16689 $config_commands
16690
16691 Report bugs to <[email protected]>."
16692
16693 _ACEOF
16694 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16695 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16697 ac_cs_config='$ac_cs_config_escaped'
16698 ac_cs_version="\\
16699 fldigi config.status 4.2.12
16700 configured by $0, generated by GNU Autoconf 2.72,
16701 with options \\"\$ac_cs_config\\"
16702
16703 Copyright (C) 2023 Free Software Foundation, Inc.
16704 This config.status script is free software; the Free Software Foundation
16705 gives unlimited permission to copy, distribute and modify it."
16706
16707 ac_pwd='$ac_pwd'
16708 srcdir='$srcdir'
16709 INSTALL='$INSTALL'
16710 MKDIR_P='$MKDIR_P'
16711 AWK='$AWK'
16712 test -n "\$AWK" || AWK=awk
16713 _ACEOF
16714
16715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16716 # The default lists apply if the user does not specify any file.
16717 ac_need_defaults=:
16718 while test $# != 0
16719 do
16720 case $1 in
16721 --*=?*)
16722 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16724 ac_shift=:
16725 ;;
16726 --*=)
16727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16728 ac_optarg=
16729 ac_shift=:
16730 ;;
16731 *)
16732 ac_option=$1
16733 ac_optarg=$2
16734 ac_shift=shift
16735 ;;
16736 esac
16737
16738 case $ac_option in
16739 # Handling of the options.
16740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16741 ac_cs_recheck=: ;;
16742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16743 printf "%s\n" "$ac_cs_version"; exit ;;
16744 --config | --confi | --conf | --con | --co | --c )
16745 printf "%s\n" "$ac_cs_config"; exit ;;
16746 --debug | --debu | --deb | --de | --d | -d )
16747 debug=: ;;
16748 --file | --fil | --fi | --f )
16749 $ac_shift
16750 case $ac_optarg in
16751 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16752 '') as_fn_error $? "missing file argument" ;;
16753 esac
16754 as_fn_append CONFIG_FILES " '$ac_optarg'"
16755 ac_need_defaults=false;;
16756 --header | --heade | --head | --hea )
16757 $ac_shift
16758 case $ac_optarg in
16759 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16760 esac
16761 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16762 ac_need_defaults=false;;
16763 --he | --h)
16764 # Conflict between --help and --header
16765 as_fn_error $? "ambiguous option: '$1'
16766 Try '$0 --help' for more information.";;
16767 --help | --hel | -h )
16768 printf "%s\n" "$ac_cs_usage"; exit ;;
16769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16770 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16771 ac_cs_silent=: ;;
16772
16773 # This is an error.
16774 -*) as_fn_error $? "unrecognized option: '$1'
16775 Try '$0 --help' for more information." ;;
16776
16777 *) as_fn_append ac_config_targets " $1"
16778 ac_need_defaults=false ;;
16779
16780 esac
16781 shift
16782 done
16783
16784 ac_configure_extra_args=
16785
16786 if $ac_cs_silent; then
16787 exec 6>/dev/null
16788 ac_configure_extra_args="$ac_configure_extra_args --silent"
16789 fi
16790
16791 _ACEOF
16792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16793 if \$ac_cs_recheck; then
16794 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16795 shift
16796 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16797 CONFIG_SHELL='$SHELL'
16798 export CONFIG_SHELL
16799 exec "\$@"
16800 fi
16801
16802 _ACEOF
16803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16804 exec 5>>config.log
16805 {
16806 echo
16807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16808 ## Running $as_me. ##
16809 _ASBOX
16810 printf "%s\n" "$ac_log"
16811 } >&5
16812
16813 _ACEOF
16814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815 #
16816 # INIT-COMMANDS
16817 #
16818 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16819 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16820 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16821 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16822 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16823 LINGUAS="${LINGUAS-%UNSET%}"
16824
16825
16826 _ACEOF
16827
16828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16829
16830 # Handling of arguments.
16831 for ac_config_target in $ac_config_targets
16832 do
16833 case $ac_config_target in
16834 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16835 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16836 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16838 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16839 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16840 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16841
16842 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16843 esac
16844 done
16845
16846
16847 # If the user did not use the arguments to specify the items to instantiate,
16848 # then the envvar interface is used. Set only those that are not.
16849 # We use the long form for the default assignment because of an extremely
16850 # bizarre bug on SunOS 4.1.3.
16851 if $ac_need_defaults; then
16852 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16853 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16854 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16855 fi
16856
16857 # Have a temporary directory for convenience. Make it in the build tree
16858 # simply because there is no reason against having it here, and in addition,
16859 # creating and moving files from /tmp can sometimes cause problems.
16860 # Hook for its removal unless debugging.
16861 # Note that there is a small window in which the directory will not be cleaned:
16862 # after its creation but before its name has been assigned to '$tmp'.
16863 $debug ||
16864 {
16865 tmp= ac_tmp=
16866 trap 'exit_status=$?
16867 : "${ac_tmp:=$tmp}"
16868 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16869 ' 0
16870 trap 'as_fn_exit 1' 1 2 13 15
16871 }
16872 # Create a (secure) tmp directory for tmp files.
16873
16874 {
16875 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16876 test -d "$tmp"
16877 } ||
16878 {
16879 tmp=./conf$$-$RANDOM
16880 (umask 077 && mkdir "$tmp")
16881 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16882 ac_tmp=$tmp
16883
16884 # Set up the scripts for CONFIG_FILES section.
16885 # No need to generate them if there are no CONFIG_FILES.
16886 # This happens for instance with './config.status config.h'.
16887 if test -n "$CONFIG_FILES"; then
16888
16889
16890 ac_cr=`echo X | tr X '\015'`
16891 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16892 # But we know of no other shell where ac_cr would be empty at this
16893 # point, so we can use a bashism as a fallback.
16894 if test "x$ac_cr" = x; then
16895 eval ac_cr=\$\'\\r\'
16896 fi
16897 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16898 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16899 ac_cs_awk_cr='\\r'
16900 else
16901 ac_cs_awk_cr=$ac_cr
16902 fi
16903
16904 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16905 _ACEOF
16906
16907
16908 {
16909 echo "cat >conf$$subs.awk <<_ACEOF" &&
16910 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16911 echo "_ACEOF"
16912 } >conf$$subs.sh ||
16913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16914 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16915 ac_delim='%!_!# '
16916 for ac_last_try in false false false false false :; do
16917 . ./conf$$subs.sh ||
16918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16919
16920 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16921 if test $ac_delim_n = $ac_delim_num; then
16922 break
16923 elif $ac_last_try; then
16924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16925 else
16926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16927 fi
16928 done
16929 rm -f conf$$subs.sh
16930
16931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16932 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16933 _ACEOF
16934 sed -n '
16935 h
16936 s/^/S["/; s/!.*/"]=/
16937 p
16938 g
16939 s/^[^!]*!//
16940 :repl
16941 t repl
16942 s/'"$ac_delim"'$//
16943 t delim
16944 :nl
16945 h
16946 s/\(.\{148\}\)..*/\1/
16947 t more1
16948 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16949 p
16950 n
16951 b repl
16952 :more1
16953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16954 p
16955 g
16956 s/.\{148\}//
16957 t nl
16958 :delim
16959 h
16960 s/\(.\{148\}\)..*/\1/
16961 t more2
16962 s/["\\]/\\&/g; s/^/"/; s/$/"/
16963 p
16964 b
16965 :more2
16966 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16967 p
16968 g
16969 s/.\{148\}//
16970 t delim
16971 ' <conf$$subs.awk | sed '
16972 /^[^""]/{
16973 N
16974 s/\n//
16975 }
16976 ' >>$CONFIG_STATUS || ac_write_fail=1
16977 rm -f conf$$subs.awk
16978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16979 _ACAWK
16980 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16981 for (key in S) S_is_set[key] = 1
16982 FS = ""
16983
16984 }
16985 {
16986 line = $ 0
16987 nfields = split(line, field, "@")
16988 substed = 0
16989 len = length(field[1])
16990 for (i = 2; i < nfields; i++) {
16991 key = field[i]
16992 keylen = length(key)
16993 if (S_is_set[key]) {
16994 value = S[key]
16995 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16996 len += length(value) + length(field[++i])
16997 substed = 1
16998 } else
16999 len += 1 + keylen
17000 }
17001
17002 print line
17003 }
17004
17005 _ACAWK
17006 _ACEOF
17007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17009 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17010 else
17011 cat
17012 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17013 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17014 _ACEOF
17015
17016 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17017 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17018 # trailing colons and then remove the whole line if VPATH becomes empty
17019 # (actually we leave an empty line to preserve line numbers).
17020 if test "x$srcdir" = x.; then
17021 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17022 h
17023 s///
17024 s/^/:/
17025 s/[ ]*$/:/
17026 s/:\$(srcdir):/:/g
17027 s/:\${srcdir}:/:/g
17028 s/:@srcdir@:/:/g
17029 s/^:*//
17030 s/:*$//
17031 x
17032 s/\(=[ ]*\).*/\1/
17033 G
17034 s/\n//
17035 s/^[^=]*=[ ]*$//
17036 }'
17037 fi
17038
17039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17040 fi # test -n "$CONFIG_FILES"
17041
17042 # Set up the scripts for CONFIG_HEADERS section.
17043 # No need to generate them if there are no CONFIG_HEADERS.
17044 # This happens for instance with './config.status Makefile'.
17045 if test -n "$CONFIG_HEADERS"; then
17046 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17047 BEGIN {
17048 _ACEOF
17049
17050 # Transform confdefs.h into an awk script 'defines.awk', embedded as
17051 # here-document in config.status, that substitutes the proper values into
17052 # config.h.in to produce config.h.
17053
17054 # Create a delimiter string that does not exist in confdefs.h, to ease
17055 # handling of long lines.
17056 ac_delim='%!_!# '
17057 for ac_last_try in false false :; do
17058 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17059 if test -z "$ac_tt"; then
17060 break
17061 elif $ac_last_try; then
17062 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17063 else
17064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17065 fi
17066 done
17067
17068 # For the awk script, D is an array of macro values keyed by name,
17069 # likewise P contains macro parameters if any. Preserve backslash
17070 # newline sequences.
17071
17072 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17073 sed -n '
17074 s/.\{148\}/&'"$ac_delim"'/g
17075 t rset
17076 :rset
17077 s/^[ ]*#[ ]*define[ ][ ]*/ /
17078 t def
17079 d
17080 :def
17081 s/\\$//
17082 t bsnl
17083 s/["\\]/\\&/g
17084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17085 D["\1"]=" \3"/p
17086 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17087 d
17088 :bsnl
17089 s/["\\]/\\&/g
17090 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17091 D["\1"]=" \3\\\\\\n"\\/p
17092 t cont
17093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17094 t cont
17095 d
17096 :cont
17097 n
17098 s/.\{148\}/&'"$ac_delim"'/g
17099 t clear
17100 :clear
17101 s/\\$//
17102 t bsnlc
17103 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17104 d
17105 :bsnlc
17106 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17107 b cont
17108 ' <confdefs.h | sed '
17109 s/'"$ac_delim"'/"\\\
17110 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17111
17112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17113 for (key in D) D_is_set[key] = 1
17114 FS = ""
17115 }
17116 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17117 line = \$ 0
17118 split(line, arg, " ")
17119 if (arg[1] == "#") {
17120 defundef = arg[2]
17121 mac1 = arg[3]
17122 } else {
17123 defundef = substr(arg[1], 2)
17124 mac1 = arg[2]
17125 }
17126 split(mac1, mac2, "(") #)
17127 macro = mac2[1]
17128 prefix = substr(line, 1, index(line, defundef) - 1)
17129 if (D_is_set[macro]) {
17130 # Preserve the white space surrounding the "#".
17131 print prefix "define", macro P[macro] D[macro]
17132 next
17133 } else {
17134 # Replace #undef with comments. This is necessary, for example,
17135 # in the case of _POSIX_SOURCE, which is predefined and required
17136 # on some systems where configure will not decide to define it.
17137 if (defundef == "undef") {
17138 print "/*", prefix defundef, macro, "*/"
17139 next
17140 }
17141 }
17142 }
17143 { print }
17144 _ACAWK
17145 _ACEOF
17146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17147 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17148 fi # test -n "$CONFIG_HEADERS"
17149
17150
17151 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17152 shift
17153 for ac_tag
17154 do
17155 case $ac_tag in
17156 :[FHLC]) ac_mode=$ac_tag; continue;;
17157 esac
17158 case $ac_mode$ac_tag in
17159 :[FHL]*:*);;
17160 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
17161 :[FH]-) ac_tag=-:-;;
17162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17163 esac
17164 ac_save_IFS=$IFS
17165 IFS=:
17166 set x $ac_tag
17167 IFS=$ac_save_IFS
17168 shift
17169 ac_file=$1
17170 shift
17171
17172 case $ac_mode in
17173 :L) ac_source=$1;;
17174 :[FH])
17175 ac_file_inputs=
17176 for ac_f
17177 do
17178 case $ac_f in
17179 -) ac_f="$ac_tmp/stdin";;
17180 *) # Look for the file first in the build tree, then in the source tree
17181 # (if the path is not absolute). The absolute path cannot be DOS-style,
17182 # because $ac_f cannot contain ':'.
17183 test -f "$ac_f" ||
17184 case $ac_f in
17185 [\\/$]*) false;;
17186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17187 esac ||
17188 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17189 esac
17190 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17191 as_fn_append ac_file_inputs " '$ac_f'"
17192 done
17193
17194 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17195 # use $as_me), people would be surprised to read:
17196 # /* config.h. Generated by config.status. */
17197 configure_input='Generated from '`
17198 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17199 `' by configure.'
17200 if test x"$ac_file" != x-; then
17201 configure_input="$ac_file. $configure_input"
17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17203 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17204 fi
17205 # Neutralize special characters interpreted by sed in replacement strings.
17206 case $configure_input in #(
17207 *\&* | *\|* | *\\* )
17208 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17209 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17210 *) ac_sed_conf_input=$configure_input;;
17211 esac
17212
17213 case $ac_tag in
17214 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17216 esac
17217 ;;
17218 esac
17219
17220 ac_dir=`$as_dirname -- "$ac_file" ||
17221 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17222 X"$ac_file" : 'X\(//\)[^/]' \| \
17223 X"$ac_file" : 'X\(//\)$' \| \
17224 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17225 printf "%s\n" X"$ac_file" |
17226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17227 s//\1/
17228 q
17229 }
17230 /^X\(\/\/\)[^/].*/{
17231 s//\1/
17232 q
17233 }
17234 /^X\(\/\/\)$/{
17235 s//\1/
17236 q
17237 }
17238 /^X\(\/\).*/{
17239 s//\1/
17240 q
17241 }
17242 s/.*/./; q'`
17243 as_dir="$ac_dir"; as_fn_mkdir_p
17244 ac_builddir=.
17245
17246 case "$ac_dir" in
17247 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17248 *)
17249 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17250 # A ".." for each directory in $ac_dir_suffix.
17251 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17252 case $ac_top_builddir_sub in
17253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17255 esac ;;
17256 esac
17257 ac_abs_top_builddir=$ac_pwd
17258 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17259 # for backward compatibility:
17260 ac_top_builddir=$ac_top_build_prefix
17261
17262 case $srcdir in
17263 .) # We are building in place.
17264 ac_srcdir=.
17265 ac_top_srcdir=$ac_top_builddir_sub
17266 ac_abs_top_srcdir=$ac_pwd ;;
17267 [\\/]* | ?:[\\/]* ) # Absolute name.
17268 ac_srcdir=$srcdir$ac_dir_suffix;
17269 ac_top_srcdir=$srcdir
17270 ac_abs_top_srcdir=$srcdir ;;
17271 *) # Relative name.
17272 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17273 ac_top_srcdir=$ac_top_build_prefix$srcdir
17274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17275 esac
17276 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17277
17278
17279 case $ac_mode in
17280 :F)
17281 #
17282 # CONFIG_FILE
17283 #
17284
17285 case $INSTALL in
17286 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17287 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17288 esac
17289 ac_MKDIR_P=$MKDIR_P
17290 case $MKDIR_P in
17291 [\\/$]* | ?:[\\/]* ) ;;
17292 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17293 esac
17294 _ACEOF
17295
17296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17297 # If the template does not know about datarootdir, expand it.
17298 # FIXME: This hack should be removed a few years after 2.60.
17299 ac_datarootdir_hack=; ac_datarootdir_seen=
17300 ac_sed_dataroot='
17301 /datarootdir/ {
17302 p
17303 q
17304 }
17305 /@datadir@/p
17306 /@docdir@/p
17307 /@infodir@/p
17308 /@localedir@/p
17309 /@mandir@/p'
17310 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17311 *datarootdir*) ac_datarootdir_seen=yes;;
17312 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17314 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17315 _ACEOF
17316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17317 ac_datarootdir_hack='
17318 s&@datadir@&$datadir&g
17319 s&@docdir@&$docdir&g
17320 s&@infodir@&$infodir&g
17321 s&@localedir@&$localedir&g
17322 s&@mandir@&$mandir&g
17323 s&\\\${datarootdir}&$datarootdir&g' ;;
17324 esac
17325 _ACEOF
17326
17327 # Neutralize VPATH when '$srcdir' = '.'.
17328 # Shell code in configure.ac might set extrasub.
17329 # FIXME: do we really want to maintain this feature?
17330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17331 ac_sed_extra="$ac_vpsub
17332 $extrasub
17333 _ACEOF
17334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17335 :t
17336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17337 s|@configure_input@|$ac_sed_conf_input|;t t
17338 s&@top_builddir@&$ac_top_builddir_sub&;t t
17339 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17340 s&@srcdir@&$ac_srcdir&;t t
17341 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17342 s&@top_srcdir@&$ac_top_srcdir&;t t
17343 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17344 s&@builddir@&$ac_builddir&;t t
17345 s&@abs_builddir@&$ac_abs_builddir&;t t
17346 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17347 s&@INSTALL@&$ac_INSTALL&;t t
17348 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17349 $ac_datarootdir_hack
17350 "
17351 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17352 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17353
17354 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17355 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17356 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17357 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17359 which seems to be undefined. Please make sure it is defined" >&5
17360 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17361 which seems to be undefined. Please make sure it is defined" >&2;}
17362
17363 rm -f "$ac_tmp/stdin"
17364 case $ac_file in
17365 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17366 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17367 esac \
17368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17369 ;;
17370 :H)
17371 #
17372 # CONFIG_HEADER
17373 #
17374 if test x"$ac_file" != x-; then
17375 {
17376 printf "%s\n" "/* $configure_input */" >&1 \
17377 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17378 } >"$ac_tmp/config.h" \
17379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17380 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17382 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17383 else
17384 rm -f "$ac_file"
17385 mv "$ac_tmp/config.h" "$ac_file" \
17386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17387 fi
17388 else
17389 printf "%s\n" "/* $configure_input */" >&1 \
17390 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17391 || as_fn_error $? "could not create -" "$LINENO" 5
17392 fi
17393 # Compute "$ac_file"'s index in $config_headers.
17394 _am_arg="$ac_file"
17395 _am_stamp_count=1
17396 for _am_header in $config_headers :; do
17397 case $_am_header in
17398 $_am_arg | $_am_arg:* )
17399 break ;;
17400 * )
17401 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17402 esac
17403 done
17404 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17405 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17406 X"$_am_arg" : 'X\(//\)[^/]' \| \
17407 X"$_am_arg" : 'X\(//\)$' \| \
17408 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17409 printf "%s\n" X"$_am_arg" |
17410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17411 s//\1/
17412 q
17413 }
17414 /^X\(\/\/\)[^/].*/{
17415 s//\1/
17416 q
17417 }
17418 /^X\(\/\/\)$/{
17419 s//\1/
17420 q
17421 }
17422 /^X\(\/\).*/{
17423 s//\1/
17424 q
17425 }
17426 s/.*/./; q'`/stamp-h$_am_stamp_count
17427 ;;
17428
17429 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17430 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17431 ;;
17432 esac
17433
17434
17435 case $ac_file$ac_mode in
17436 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17437 # Older Autoconf quotes --file arguments for eval, but not when files
17438 # are listed without --file. Let's play safe and only enable the eval
17439 # if we detect the quoting.
17440 # TODO: see whether this extra hack can be removed once we start
17441 # requiring Autoconf 2.70 or later.
17442 case $CONFIG_FILES in #(
17443 *\'*) :
17444 eval set x "$CONFIG_FILES" ;; #(
17445 *) :
17446 set x $CONFIG_FILES ;; #(
17447 *) :
17448 ;;
17449 esac
17450 shift
17451 # Used to flag and report bootstrapping failures.
17452 am_rc=0
17453 for am_mf
17454 do
17455 # Strip MF so we end up with the name of the file.
17456 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17457 # Check whether this is an Automake generated Makefile which includes
17458 # dependency-tracking related rules and includes.
17459 # Grep'ing the whole file directly is not great: AIX grep has a line
17460 # limit of 2048, but all sed's we know have understand at least 4000.
17461 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17462 || continue
17463 am_dirpart=`$as_dirname -- "$am_mf" ||
17464 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17465 X"$am_mf" : 'X\(//\)[^/]' \| \
17466 X"$am_mf" : 'X\(//\)$' \| \
17467 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17468 printf "%s\n" X"$am_mf" |
17469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17470 s//\1/
17471 q
17472 }
17473 /^X\(\/\/\)[^/].*/{
17474 s//\1/
17475 q
17476 }
17477 /^X\(\/\/\)$/{
17478 s//\1/
17479 q
17480 }
17481 /^X\(\/\).*/{
17482 s//\1/
17483 q
17484 }
17485 s/.*/./; q'`
17486 am_filepart=`$as_basename -- "$am_mf" ||
17487 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17488 X"$am_mf" : 'X\(//\)$' \| \
17489 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17490 printf "%s\n" X/"$am_mf" |
17491 sed '/^.*\/\([^/][^/]*\)\/*$/{
17492 s//\1/
17493 q
17494 }
17495 /^X\/\(\/\/\)$/{
17496 s//\1/
17497 q
17498 }
17499 /^X\/\(\/\).*/{
17500 s//\1/
17501 q
17502 }
17503 s/.*/./; q'`
17504 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17505 && sed -e '/# am--include-marker/d' "$am_filepart" \
17506 | $MAKE -f - am--depfiles" >&5
17507 (cd "$am_dirpart" \
17508 && sed -e '/# am--include-marker/d' "$am_filepart" \
17509 | $MAKE -f - am--depfiles) >&5 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); } || am_rc=$?
17513 done
17514 if test $am_rc -ne 0; then
17515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17516 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17517 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17518 for automatic dependency tracking. If GNU make was not used, consider
17519 re-running the configure script with MAKE=\"gmake\" (or whatever is
17520 necessary). You can also try re-running configure with the
17521 '--disable-dependency-tracking' option to at least be able to build
17522 the package (albeit without support for automatic dependency tracking).
17523 See 'config.log' for more details" "$LINENO" 5; }
17524 fi
17525 { am_dirpart=; unset am_dirpart;}
17526 { am_filepart=; unset am_filepart;}
17527 { am_mf=; unset am_mf;}
17528 { am_rc=; unset am_rc;}
17529 rm -f conftest-deps.mk
17530 }
17531 ;;
17532 "po-directories":C)
17533 for ac_file in $CONFIG_FILES; do
17534 # Support "outfile[:infile[:infile...]]"
17535 case "$ac_file" in
17536 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17537 esac
17538 # PO directories have a Makefile.in generated from Makefile.in.in.
17539 case "$ac_file" in */Makefile.in)
17540 # Adjust a relative srcdir.
17541 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17542 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17543 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17544 # In autoconf-2.13 it is called $ac_given_srcdir.
17545 # In autoconf-2.50 it is called $srcdir.
17546 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17547 case "$ac_given_srcdir" in
17548 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17549 /*) top_srcdir="$ac_given_srcdir" ;;
17550 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17551 esac
17552 # Treat a directory as a PO directory if and only if it has a
17553 # POTFILES.in file. This allows packages to have multiple PO
17554 # directories under different names or in different locations.
17555 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17556 rm -f "$ac_dir/POTFILES"
17557 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17558 gt_tab=`printf '\t'`
17559 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17560 POMAKEFILEDEPS="POTFILES.in"
17561 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17562 # on $ac_dir but don't depend on user-specified configuration
17563 # parameters.
17564 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17565 # The LINGUAS file contains the set of available languages.
17566 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17567 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17568 fi
17569 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17570 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17571 else
17572 # The set of available languages was given in configure.in.
17573 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17574 fi
17575 # Compute POFILES
17576 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17577 # Compute UPDATEPOFILES
17578 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17579 # Compute DUMMYPOFILES
17580 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17581 # Compute GMOFILES
17582 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17583 case "$ac_given_srcdir" in
17584 .) srcdirpre= ;;
17585 *) srcdirpre='$(srcdir)/' ;;
17586 esac
17587 POFILES=
17588 UPDATEPOFILES=
17589 DUMMYPOFILES=
17590 GMOFILES=
17591 for lang in $ALL_LINGUAS; do
17592 POFILES="$POFILES $srcdirpre$lang.po"
17593 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17594 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17595 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17596 done
17597 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17598 # environment variable.
17599 INST_LINGUAS=
17600 if test -n "$ALL_LINGUAS"; then
17601 for presentlang in $ALL_LINGUAS; do
17602 useit=no
17603 if test "%UNSET%" != "$LINGUAS"; then
17604 desiredlanguages="$LINGUAS"
17605 else
17606 desiredlanguages="$ALL_LINGUAS"
17607 fi
17608 for desiredlang in $desiredlanguages; do
17609 # Use the presentlang catalog if desiredlang is
17610 # a. equal to presentlang, or
17611 # b. a variant of presentlang (because in this case,
17612 # presentlang can be used as a fallback for messages
17613 # which are not translated in the desiredlang catalog).
17614 case "$desiredlang" in
17615 "$presentlang"*) useit=yes;;
17616 esac
17617 done
17618 if test $useit = yes; then
17619 INST_LINGUAS="$INST_LINGUAS $presentlang"
17620 fi
17621 done
17622 fi
17623 CATALOGS=
17624 if test -n "$INST_LINGUAS"; then
17625 for lang in $INST_LINGUAS; do
17626 CATALOGS="$CATALOGS $lang.gmo"
17627 done
17628 fi
17629 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17630 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17631 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17632 if test -f "$f"; then
17633 case "$f" in
17634 *.orig | *.bak | *~) ;;
17635 *) cat "$f" >> "$ac_dir/Makefile" ;;
17636 esac
17637 fi
17638 done
17639 fi
17640 ;;
17641 esac
17642 done ;;
17643
17644 esac
17645 done # for ac_tag
17646
17647
17648 as_fn_exit 0
17649 _ACEOF
17650 ac_clean_files=$ac_clean_files_save
17651
17652 test $ac_write_fail = 0 ||
17653 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17654
17655
17656 # configure is writing to config.log, and then calls config.status.
17657 # config.status does its own redirection, appending to config.log.
17658 # Unfortunately, on DOS this fails, as config.log is still kept open
17659 # by configure, so config.status won't be able to write to it; its
17660 # output is simply discarded. So we exec the FD to /dev/null,
17661 # effectively closing config.log, so it can be properly (re)opened and
17662 # appended to by config.status. When coming back to configure, we
17663 # need to make the FD available again.
17664 if test "$no_create" != yes; then
17665 ac_cs_success=:
17666 ac_config_status_args=
17667 test "$silent" = yes &&
17668 ac_config_status_args="$ac_config_status_args --quiet"
17669 exec 5>/dev/null
17670 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17671 exec 5>>config.log
17672 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17673 # would make configure fail if this is the last instruction.
17674 $ac_cs_success || as_fn_exit 1
17675 fi
17676 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17678 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17679 fi
17680
17681
17682
17683 ### summary
17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
17685 Configuration summary:
17686
17687 Version ..................... $VERSION
17688
17689 Static linking .............. $ac_cv_static
17690 CPU optimizations ........... $ac_cv_opt
17691 Debugging ................... $ac_cv_debug
17692
17693 fldigi ...................... $ac_cv_want_fldigi
17694 flarq ....................... $ac_cv_want_flarq
17695
17696 i18n ........................ $USE_NLS
17697 " >&5
17698 printf "%s\n" "
17699 Configuration summary:
17700
17701 Version ..................... $VERSION
17702
17703 Static linking .............. $ac_cv_static
17704 CPU optimizations ........... $ac_cv_opt
17705 Debugging ................... $ac_cv_debug
17706
17707 fldigi ...................... $ac_cv_want_fldigi
17708 flarq ....................... $ac_cv_want_flarq
17709
17710 i18n ........................ $USE_NLS
17711 " >&6; }
17712
17713 ac_xmlrpc_report="internal lib";
17714
17715 if test "x$ac_cv_flxmlrpc" = "xyes"; then
17716 ac_xmlrpc_report="external lib";
17717 fi
17718
17719 ac_mbedtls_report="internal lib";
17720
17721 if test "x$ac_cv_libmbedtls" = "xyes"; then
17722 ac_mbedtls_report="external lib";
17723 fi
17724
17725 if test "x$ac_cv_want_fldigi" = "xyes"; then
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fldigi build options:
17727
17728 oss ......................... $ac_cv_oss
17729 portaudio ................... $ac_cv_portaudio
17730 pulseaudio .................. $ac_cv_pulseaudio
17731 libgpiod .................... $ac_cv_libgpiod
17732
17733 libmbedtls .................. $ac_mbedtls_report
17734 flxmlrpc .................... $ac_xmlrpc_report
17735
17736 hamlib ...................... $ac_cv_hamlib
17737 " >&5
17738 printf "%s\n" " fldigi build options:
17739
17740 oss ......................... $ac_cv_oss
17741 portaudio ................... $ac_cv_portaudio
17742 pulseaudio .................. $ac_cv_pulseaudio
17743 libgpiod .................... $ac_cv_libgpiod
17744
17745 libmbedtls .................. $ac_mbedtls_report
17746 flxmlrpc .................... $ac_xmlrpc_report
17747
17748 hamlib ...................... $ac_cv_hamlib
17749 " >&6; }
17750 fi
17751