2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 *) as_dir=$as_dir/ ;;
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Do nothing but, unlike ":", preserve the value of $?.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 eval 'as_fn_append ()
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
412 as_val=`expr "$@" || test $? -eq 1`
418 # Do nothing but, unlike ":", preserve the value of $?.
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
432 as_status=$1; test $as_status -eq 0 && as_status=1
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
518 # Exit status is that of the last command.
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
551 mkdir conf$$.dir 2>/dev/null
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 elif ln conf$$.file conf$$ 2>/dev/null; then
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
576 test -d ./-p && rmdir ./-p
581 as_executable_p=as_fn_executable_p
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 test -n "$DJDIR" || exec 7<&0 </dev/null
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601 ac_default_prefix=/usr/local
603 ac_config_libobj_dir=.
610 # Identity of this package.
618 ac_unique_file="menuselect"
619 ac_unique_file="menuselect.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
652 ac_subst_vars='LTLIBOBJS
734 program_transform_name
747 enable_option_checking
755 ac_precious_vars='build_alias
772 # Initialize some variables set by options.
774 ac_init_version=false
775 ac_unrecognized_opts=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name=s,x,x,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 runstatedir='${localstatedir}/run'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE}'
812 infodir='${datarootdir}/info'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838 case $ac_dashdash$ac_option in
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: \`$ac_useropt'"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: \`$ac_useropt'"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -runstatedir | --runstatedir | --runstatedi | --runstated \
1060 | --runstate | --runstat | --runsta | --runst | --runs \
1061 | --run | --ru | --r)
1062 ac_prev=runstatedir ;;
1063 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1064 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1065 | --run=* | --ru=* | --r=*)
1066 runstatedir=$ac_optarg ;;
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1087 -site=* | --site=* | --sit=*)
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: \`$ac_useropt'"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1127 eval with_$ac_useropt=\$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: \`$ac_useropt'"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1143 eval with_$ac_useropt=no ;;
1146 # Obsolete; use --with-x.
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir runstatedir
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 printf "%s\n" X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1284 ac_srcdir_defaulted=no
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1318 \`configure' configures this package to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 if test -n "$ac_init_help"; then
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-debug Turn on debug mode
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-newt=PATH use newt files in PATH
1396 --with-curses=PATH use curses files in PATH
1397 --with-ncurses=PATH use ncurses files in PATH
1398 --with-libxml2=PATH use LibXML2 files in PATH
1399 --with-libtinfo=PATH use terminfo files in PATH
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 PKG_CONFIG path to pkg-config utility
1411 directories to add to pkg-config's search path
1413 path overriding pkg-config's built-in search path
1415 C compiler flags for LIBXML2, overriding pkg-config
1417 linker flags for LIBXML2, overriding pkg-config
1418 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
1419 GTK2_LIBS linker flags for GTK2, overriding pkg-config
1421 Use these variables to override the choices made by `configure' or to help
1422 it to find libraries and programs with nonstandard names/locations.
1424 Report bugs to the package provider.
1429 if test "$ac_init_help" = "recursive"; then
1430 # If there are subdirs, report their specific --help.
1431 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432 test -d "$ac_dir" ||
1433 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1441 # A ".." for each directory in $ac_dir_suffix.
1442 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443 case $ac_top_builddir_sub in
1444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1454 .) # We are building in place.
1456 ac_top_srcdir=$ac_top_builddir_sub
1457 ac_abs_top_srcdir=$ac_pwd ;;
1458 [\\/]* | ?:[\\/]* ) # Absolute name.
1459 ac_srcdir=$srcdir$ac_dir_suffix;
1460 ac_top_srcdir=$srcdir
1461 ac_abs_top_srcdir=$srcdir ;;
1463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464 ac_top_srcdir=$ac_top_build_prefix$srcdir
1465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1469 cd "$ac_dir" || { ac_status=$?; continue; }
1470 # Check for configure.gnu first; this name is used for a wrapper for
1471 # Metaconfig's "Configure" on case-insensitive file systems.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1479 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1489 generated by GNU Autoconf 2.71
1491 Copyright (C) 2021 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1500 ## ------------------------ ##
1501 ## Autoconf initialization. ##
1502 ## ------------------------ ##
1504 # ac_fn_c_try_compile LINENO
1505 # --------------------------
1506 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_compile ()
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext conftest.beam
1511 if { { ac_try="$ac_compile"
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 printf "%s\n" "$ac_try_echo"; } >&5
1518 (eval "$ac_compile") 2>conftest.err
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest.$ac_objext
1533 printf "%s\n" "$as_me: failed program was:" >&5
1534 sed 's/^/| /' conftest.$ac_ext >&5
1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539 as_fn_set_status $ac_retval
1541 } # ac_fn_c_try_compile
1543 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1544 # -------------------------------------------
1545 # Tests whether TYPE exists after having included INCLUDES, setting cache
1546 # variable VAR accordingly.
1547 ac_fn_c_check_type ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551 printf %s "checking for $2... " >&6; }
1552 if eval test \${$3+y}
1554 printf %s "(cached) " >&6
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1569 if ac_fn_c_try_compile "$LINENO"
1571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572 /* end confdefs.h. */
1583 if ac_fn_c_try_compile "$LINENO"
1589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 printf "%s\n" "$ac_res" >&6; }
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 } # ac_fn_c_check_type
1600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists and can be compiled using the include files in
1603 # INCLUDES, setting the cache variable VAR accordingly.
1604 ac_fn_c_check_header_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 printf %s "checking for $2... " >&6; }
1609 if eval test \${$3+y}
1611 printf %s "(cached) " >&6
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1618 if ac_fn_c_try_compile "$LINENO"
1624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628 printf "%s\n" "$ac_res" >&6; }
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 } # ac_fn_c_check_header_compile
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1665 printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_c_try_link
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1683 # executables *can* be run.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }
1711 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1712 printf "%s\n" "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_retval=$ac_status
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1723 # ac_fn_c_check_func LINENO FUNC VAR
1724 # ----------------------------------
1725 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1726 ac_fn_c_check_func ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 printf %s "checking for $2... " >&6; }
1731 if eval test \${$3+y}
1733 printf %s "(cached) " >&6
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below. */
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1769 if ac_fn_c_try_link "$LINENO"
1775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1776 conftest$ac_exeext conftest.$ac_ext
1779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 printf "%s\n" "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 } # ac_fn_c_check_func
1784 ac_configure_args_raw=
1789 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 as_fn_append ac_configure_args_raw " '$ac_arg'"
1794 case $ac_configure_args_raw in
1798 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1799 ac_unsafe_a="$ac_unsafe_z#~"
1800 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1801 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1804 cat >config.log <<_ACEOF
1805 This file contains any messages produced by compilers while
1806 running configure, to aid debugging if configure makes a mistake.
1808 It was created by $as_me, which was
1809 generated by GNU Autoconf 2.71. Invocation command line was
1811 $ $0$ac_configure_args_raw
1821 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1830 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1831 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1832 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1834 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1835 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1836 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 case $as_dir in #(((
1847 *) as_dir=$as_dir/ ;;
1849 printf "%s\n" "PATH: $as_dir"
1865 # Keep a trace of the command line.
1866 # Strip out --no-create and --no-recursion so they do not pile up.
1867 # Strip out --silent because we don't want to record it for future runs.
1868 # Also quote any args containing shell meta-characters.
1869 # Make two passes to allow for proper duplicate-argument suppression.
1873 ac_must_keep_next=false
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1884 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889 as_fn_append ac_configure_args1 " '$ac_arg'"
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1902 -* ) ac_must_keep_next=true ;;
1905 as_fn_append ac_configure_args " '$ac_arg'"
1910 { ac_configure_args0=; unset ac_configure_args0;}
1911 { ac_configure_args1=; unset ac_configure_args1;}
1913 # When interrupted or exit'd, cleanup temporary files, and complete
1914 # config.log. We remove comments because anyway the quotes in there
1915 # would cause problems or look ugly.
1916 # WARNING: Use '\'' to represent an apostrophe within the trap.
1917 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918 trap 'exit_status=$?
1921 # Save into config.log some information that might help in debugging.
1925 printf "%s\n" "## ---------------- ##
1926 ## Cache variables. ##
1927 ## ---------------- ##"
1929 # The following way of writing the cache mishandles newlines in values,
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1936 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1961 printf "%s\n" "## ----------------- ##
1962 ## Output variables. ##
1963 ## ----------------- ##"
1965 for ac_var in $ac_subst_vars
1967 eval ac_val=\$$ac_var
1969 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 printf "%s\n" "$ac_var='\''$ac_val'\''"
1975 if test -n "$ac_subst_files"; then
1976 printf "%s\n" "## ------------------- ##
1977 ## File substitutions. ##
1978 ## ------------------- ##"
1980 for ac_var in $ac_subst_files
1982 eval ac_val=\$$ac_var
1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 printf "%s\n" "$ac_var='\''$ac_val'\''"
1991 if test -s confdefs.h; then
1992 printf "%s\n" "## ----------- ##
1999 test "$ac_signal" != 0 &&
2000 printf "%s\n" "$as_me: caught signal $ac_signal"
2001 printf "%s\n" "$as_me: exit $exit_status"
2003 rm -f core *.core core.conftest.* &&
2004 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2007 for ac_signal in 1 2 13 15; do
2008 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2013 rm -f -r conftest* confdefs.h
2015 printf "%s\n" "/* confdefs.h */" > confdefs.h
2017 # Predefined preprocessor variables.
2019 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2021 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2023 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2025 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2027 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2029 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2032 # Let the site file select an alternate cache file if it wants to.
2033 # Prefer an explicitly selected file to automatically selected ones.
2034 if test -n "$CONFIG_SITE"; then
2035 ac_site_files="$CONFIG_SITE"
2036 elif test "x$prefix" != xNONE; then
2037 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2039 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2042 for ac_site_file in $ac_site_files
2044 case $ac_site_file in #(
2048 ac_site_file=./$ac_site_file ;;
2050 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2052 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2053 sed 's/^/| /' "$ac_site_file" >&5
2055 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2056 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2057 as_fn_error $? "failed to load site script $ac_site_file
2058 See \`config.log' for more details" "$LINENO" 5; }
2062 if test -r "$cache_file"; then
2063 # Some versions of bash will fail to source /dev/null (special files
2064 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2065 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2079 # Test code for whether the C compiler supports C89 (global declarations)
2080 ac_c_conftest_c89_globals='
2081 /* Does the compiler advertise C89 conformance?
2082 Do not test the value of __STDC__, because some compilers set it to 0
2083 while being otherwise adequately conformant. */
2084 #if !defined __STDC__
2085 # error "Compiler does not advertise C89 conformance"
2091 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2092 struct buf { int x; };
2093 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2094 static char *e (p, i)
2100 static char *f (char * (*g) (char **, int), char **p, ...)
2105 s = g (p, va_arg (v,int));
2110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2111 function prototypes and stuff, but not \xHH hex character constants.
2112 These do not provoke an error unfortunately, instead are silently treated
2113 as an "x". The following induces an error, until -std is added to get
2114 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2115 array size at least. It is necessary to write \x00 == 0 to get something
2116 that is true only with -std. */
2117 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2120 inside strings and character constants. */
2121 #define FOO(x) '\''x'\''
2122 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2124 int test (int i, double x);
2125 struct s1 {int (*f) (int a);};
2126 struct s2 {int (*f) (double a);};
2127 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2130 # Test code for whether the C compiler supports C89 (body of main).
2131 ac_c_conftest_c89_main='
2132 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2135 # Test code for whether the C compiler supports C99 (global declarations)
2136 ac_c_conftest_c99_globals='
2137 // Does the compiler advertise C99 conformance?
2138 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2139 # error "Compiler does not advertise C99 conformance"
2142 #include <stdbool.h>
2143 extern int puts (const char *);
2144 extern int printf (const char *, ...);
2145 extern int dprintf (int, const char *, ...);
2146 extern void *malloc (size_t);
2148 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2149 // dprintf is used instead of fprintf to avoid needing to declare
2151 #define debug(...) dprintf (2, __VA_ARGS__)
2152 #define showlist(...) puts (#__VA_ARGS__)
2153 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2155 test_varargs_macros (void)
2160 debug ("X = %d\n", x);
2161 showlist (The first, second, and third items.);
2162 report (x>y, "x is %d but y is %d", x, y);
2165 // Check long long types.
2166 #define BIG64 18446744073709551615ull
2167 #define BIG32 4294967295ul
2168 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2170 #error "your preprocessor is broken"
2174 #error "your preprocessor is broken"
2176 static long long int bignum = -9223372036854775807LL;
2177 static unsigned long long int ubignum = BIG64;
2179 struct incomplete_array
2187 const wchar_t *name;
2191 typedef const char *ccp;
2194 test_restrict (ccp restrict text)
2196 // See if C++-style comments work.
2197 // Iterate through items via the restricted pointer.
2198 // Also check for declarations in for loops.
2199 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2204 // Check varargs and va_copy.
2206 test_varargs (const char *format, ...)
2209 va_start (args, format);
2211 va_copy (args_copy, args);
2213 const char *str = "";
2221 case '\''s'\'': // string
2222 str = va_arg (args_copy, const char *);
2224 case '\''d'\'': // int
2225 number = va_arg (args_copy, int);
2227 case '\''f'\'': // float
2228 fnumber = va_arg (args_copy, double);
2237 return *str && number && fnumber;
2241 # Test code for whether the C compiler supports C99 (body of main).
2242 ac_c_conftest_c99_main='
2244 _Bool success = false;
2245 success |= (argc != 0);
2248 if (test_restrict ("String literal") == 0)
2250 char *restrict newvar = "Another string";
2253 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2254 test_varargs_macros ();
2256 // Check flexible array members.
2257 struct incomplete_array *ia =
2258 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2260 for (int i = 0; i < ia->datasize; ++i)
2261 ia->data[i] = i * 1.234;
2263 // Check named initializers.
2264 struct named_init ni = {
2266 .name = L"Test wide string",
2267 .average = 543.34343,
2272 int dynamic_array[ni.number];
2273 dynamic_array[0] = argv[0][0];
2274 dynamic_array[ni.number - 1] = 543;
2276 // work around unused variable warnings
2277 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2278 || dynamic_array[ni.number - 1] != 543);
2281 # Test code for whether the C compiler supports C11 (global declarations)
2282 ac_c_conftest_c11_globals='
2283 // Does the compiler advertise C11 conformance?
2284 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2285 # error "Compiler does not advertise C11 conformance"
2289 char _Alignas (double) aligned_as_double;
2290 char _Alignas (0) no_special_alignment;
2291 extern char aligned_as_int;
2292 char _Alignas (0) _Alignas (int) aligned_as_int;
2297 int_alignment = _Alignof (int),
2298 int_array_alignment = _Alignof (int[100]),
2299 char_alignment = _Alignof (char)
2301 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2304 int _Noreturn does_not_return (void) { for (;;) continue; }
2306 // Check _Static_assert.
2307 struct test_static_assert
2310 _Static_assert (sizeof (int) <= sizeof (long int),
2311 "_Static_assert does not work in struct");
2315 // Check UTF-8 literals.
2316 #define u8 syntax error!
2317 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2319 // Check duplicate typedefs.
2320 typedef long *long_ptr;
2321 typedef long int *long_ptr;
2322 typedef long_ptr long_ptr;
2324 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2328 struct { int i; int j; };
2329 struct { int k; long int l; } w;
2335 # Test code for whether the C compiler supports C11 (body of main).
2336 ac_c_conftest_c11_main='
2337 _Static_assert ((offsetof (struct anonymous, i)
2338 == offsetof (struct anonymous, w.k)),
2339 "Anonymous union alignment botch");
2345 # Test code for whether the C compiler supports C11 (complete).
2346 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2347 ${ac_c_conftest_c99_globals}
2348 ${ac_c_conftest_c11_globals}
2351 main (int argc, char **argv)
2354 ${ac_c_conftest_c89_main}
2355 ${ac_c_conftest_c99_main}
2356 ${ac_c_conftest_c11_main}
2361 # Test code for whether the C compiler supports C99 (complete).
2362 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2363 ${ac_c_conftest_c99_globals}
2366 main (int argc, char **argv)
2369 ${ac_c_conftest_c89_main}
2370 ${ac_c_conftest_c99_main}
2375 # Test code for whether the C compiler supports C89 (complete).
2376 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2379 main (int argc, char **argv)
2382 ${ac_c_conftest_c89_main}
2387 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2388 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2389 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2390 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2391 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2392 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2393 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2394 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2395 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2397 # Auxiliary files required by this configure script.
2398 ac_aux_files="config.guess config.sub"
2400 # Locations in which to look for auxiliary files.
2401 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2403 # Search for a directory containing all of the required auxiliary files,
2404 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2405 # If we don't find one directory that contains all the files we need,
2406 # we report the set of missing files from the *first* directory in
2407 # $ac_aux_dir_candidates and give up.
2408 ac_missing_aux_files=""
2409 ac_first_candidate=:
2410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $ac_aux_dir_candidates
2416 case $as_dir in #(((
2419 *) as_dir=$as_dir/ ;;
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2424 ac_aux_dir_found=yes
2426 for ac_aux in $ac_aux_files
2428 # As a special case, if "install-sh" is required, that requirement
2429 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2430 # and $ac_install_sh is set appropriately for whichever one is found.
2431 if test x"$ac_aux" = x"install-sh"
2433 if test -f "${as_dir}install-sh"; then
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2435 ac_install_sh="${as_dir}install-sh -c"
2436 elif test -f "${as_dir}install.sh"; then
2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2438 ac_install_sh="${as_dir}install.sh -c"
2439 elif test -f "${as_dir}shtool"; then
2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2441 ac_install_sh="${as_dir}shtool install -c"
2444 if $ac_first_candidate; then
2445 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2451 if test -f "${as_dir}${ac_aux}"; then
2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2455 if $ac_first_candidate; then
2456 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2463 if test "$ac_aux_dir_found" = yes; then
2464 ac_aux_dir="$as_dir"
2467 ac_first_candidate=false
2476 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 if test -f "${ac_aux_dir}config.guess"; then
2485 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2487 if test -f "${ac_aux_dir}config.sub"; then
2488 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2490 if test -f "$ac_aux_dir/configure"; then
2491 ac_configure="$SHELL ${ac_aux_dir}configure"
2494 # Check that the precious variables saved in the cache have kept the same
2496 ac_cache_corrupted=false
2497 for ac_var in $ac_precious_vars; do
2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499 eval ac_new_set=\$ac_env_${ac_var}_set
2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501 eval ac_new_val=\$ac_env_${ac_var}_value
2502 case $ac_old_set,$ac_new_set in
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506 ac_cache_corrupted=: ;;
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2513 if test "x$ac_old_val" != "x$ac_new_val"; then
2514 # differences in whitespace do not lead to failure.
2515 ac_old_val_w=`echo x $ac_old_val`
2516 ac_new_val_w=`echo x $ac_new_val`
2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520 ac_cache_corrupted=:
2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524 eval $ac_var=\$ac_old_val
2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2527 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2529 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2532 # Pass precious variables to config.status.
2533 if test "$ac_new_set" = set; then
2535 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536 *) ac_arg=$ac_var=$ac_new_val ;;
2538 case " $ac_configure_args " in
2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2544 if $ac_cache_corrupted; then
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2549 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2550 and start over" "$LINENO" 5
2552 ## -------------------- ##
2553 ## Main body of script. ##
2554 ## -------------------- ##
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564 # check existence of the package
2567 # specify output header file
2568 ac_config_headers="$ac_config_headers autoconfig.h"
2576 # Make sure we can run config.sub.
2577 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2578 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2581 printf %s "checking build system type... " >&6; }
2582 if test ${ac_cv_build+y}
2584 printf %s "(cached) " >&6
2586 ac_build_alias=$build_alias
2587 test "x$ac_build_alias" = x &&
2588 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2589 test "x$ac_build_alias" = x &&
2590 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2591 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2592 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2596 printf "%s\n" "$ac_cv_build" >&6; }
2597 case $ac_cv_build in
2599 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2602 ac_save_IFS=$IFS; IFS='-'
2608 # Remember, the first character of IFS is used to create $*,
2609 # except with old shells:
2612 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2616 printf %s "checking host system type... " >&6; }
2617 if test ${ac_cv_host+y}
2619 printf %s "(cached) " >&6
2621 if test "x$host_alias" = x; then
2622 ac_cv_host=$ac_cv_build
2624 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2625 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2630 printf "%s\n" "$ac_cv_host" >&6; }
2633 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2636 ac_save_IFS=$IFS; IFS='-'
2642 # Remember, the first character of IFS is used to create $*,
2643 # except with old shells:
2646 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2653 case "${host_os}" in
2655 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2656 LDFLAGS="${LDFLAGS} -L/usr/local/lib"
2659 CPPFLAGS="${CPPFLAGS} -I/usr/pkg/include"
2660 LDFLAGS="${LDFLAGS} -L/usr/pkg/lib"
2663 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
2664 LDFLAGS="${LDFLAGS} -L/usr/local/lib"
2672 # Checks for programs.
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2687 if test -n "$ac_tool_prefix"; then
2688 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2689 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 printf %s "checking for $ac_word... " >&6; }
2692 if test ${ac_cv_prog_CC+y}
2694 printf %s "(cached) " >&6
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 case $as_dir in #(((
2706 *) as_dir=$as_dir/ ;;
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2721 if test -n "$CC"; then
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 printf "%s\n" "$CC" >&6; }
2725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 printf "%s\n" "no" >&6; }
2731 if test -z "$ac_cv_prog_CC"; then
2733 # Extract the first word of "gcc", so it can be a program name with args.
2734 set dummy gcc; ac_word=$2
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 printf %s "checking for $ac_word... " >&6; }
2737 if test ${ac_cv_prog_ac_ct_CC+y}
2739 printf %s "(cached) " >&6
2741 if test -n "$ac_ct_CC"; then
2742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 case $as_dir in #(((
2751 *) as_dir=$as_dir/ ;;
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_CC="gcc"
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2766 if test -n "$ac_ct_CC"; then
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2768 printf "%s\n" "$ac_ct_CC" >&6; }
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 printf "%s\n" "no" >&6; }
2774 if test "x$ac_ct_CC" = x; then
2777 case $cross_compiling:$ac_tool_warned in
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2789 if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}cc; ac_word=$2
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 printf %s "checking for $ac_word... " >&6; }
2795 if test ${ac_cv_prog_CC+y}
2797 printf %s "(cached) " >&6
2799 if test -n "$CC"; then
2800 ac_cv_prog_CC="$CC" # Let the user override the test.
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 case $as_dir in #(((
2809 *) as_dir=$as_dir/ ;;
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2813 ac_cv_prog_CC="${ac_tool_prefix}cc"
2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2824 if test -n "$CC"; then
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 printf "%s\n" "$CC" >&6; }
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 printf "%s\n" "no" >&6; }
2835 if test -z "$CC"; then
2836 # Extract the first word of "cc", so it can be a program name with args.
2837 set dummy cc; ac_word=$2
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 printf %s "checking for $ac_word... " >&6; }
2840 if test ${ac_cv_prog_CC+y}
2842 printf %s "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 case $as_dir in #(((
2855 *) as_dir=$as_dir/ ;;
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2859 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860 ac_prog_rejected=yes
2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2871 if test $ac_prog_rejected = yes; then
2872 # We found a bogon in the path, so make sure we never use it.
2873 set dummy $ac_cv_prog_CC
2875 if test $# != 0; then
2876 # We chose a different compiler from the bogus one.
2877 # However, it has the same basename, so the bogon will be chosen
2878 # first if we set CC to just the basename; use the full file name.
2880 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2886 if test -n "$CC"; then
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2888 printf "%s\n" "$CC" >&6; }
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 printf "%s\n" "no" >&6; }
2896 if test -z "$CC"; then
2897 if test -n "$ac_tool_prefix"; then
2898 for ac_prog in cl.exe
2900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 printf %s "checking for $ac_word... " >&6; }
2904 if test ${ac_cv_prog_CC+y}
2906 printf %s "(cached) " >&6
2908 if test -n "$CC"; then
2909 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 case $as_dir in #(((
2918 *) as_dir=$as_dir/ ;;
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2933 if test -n "$CC"; then
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935 printf "%s\n" "$CC" >&6; }
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 printf "%s\n" "no" >&6; }
2942 test -n "$CC" && break
2945 if test -z "$CC"; then
2947 for ac_prog in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 printf %s "checking for $ac_word... " >&6; }
2953 if test ${ac_cv_prog_ac_ct_CC+y}
2955 printf %s "(cached) " >&6
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 case $as_dir in #(((
2967 *) as_dir=$as_dir/ ;;
2969 for ac_exec_ext in '' $ac_executable_extensions; do
2970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2971 ac_cv_prog_ac_ct_CC="$ac_prog"
2972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982 if test -n "$ac_ct_CC"; then
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984 printf "%s\n" "$ac_ct_CC" >&6; }
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 printf "%s\n" "no" >&6; }
2991 test -n "$ac_ct_CC" && break
2994 if test "x$ac_ct_CC" = x; then
2997 case $cross_compiling:$ac_tool_warned in
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001 ac_tool_warned=yes ;;
3008 if test -z "$CC"; then
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3011 set dummy ${ac_tool_prefix}clang; ac_word=$2
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 printf %s "checking for $ac_word... " >&6; }
3014 if test ${ac_cv_prog_CC+y}
3016 printf %s "(cached) " >&6
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 case $as_dir in #(((
3028 *) as_dir=$as_dir/ ;;
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_CC="${ac_tool_prefix}clang"
3033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3043 if test -n "$CC"; then
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 printf "%s\n" "$CC" >&6; }
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 printf "%s\n" "no" >&6; }
3053 if test -z "$ac_cv_prog_CC"; then
3055 # Extract the first word of "clang", so it can be a program name with args.
3056 set dummy clang; ac_word=$2
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 printf %s "checking for $ac_word... " >&6; }
3059 if test ${ac_cv_prog_ac_ct_CC+y}
3061 printf %s "(cached) " >&6
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 case $as_dir in #(((
3073 *) as_dir=$as_dir/ ;;
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_ac_ct_CC="clang"
3078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090 printf "%s\n" "$ac_ct_CC" >&6; }
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 printf "%s\n" "no" >&6; }
3096 if test "x$ac_ct_CC" = x; then
3099 case $cross_compiling:$ac_tool_warned in
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3102 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103 ac_tool_warned=yes ;;
3114 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $? "no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details" "$LINENO" 5; }
3119 # Provide some information about the compiler.
3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3123 for ac_option in --version -v -V -qversion -version; do
3124 { { ac_try="$ac_compiler $ac_option >&5"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 printf "%s\n" "$ac_try_echo"; } >&5
3131 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3133 if test -s conftest.err; then
3135 ... rest of stderr output deleted ...
3136 10q' conftest.err >conftest.er1
3137 cat conftest.er1 >&5
3139 rm -f conftest.er1 conftest.err
3140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3161 printf %s "checking whether the C compiler works... " >&6; }
3162 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3164 # The possible output files:
3165 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3168 for ac_file in $ac_files
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3172 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3177 if { { ac_try="$ac_link_default"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 printf "%s\n" "$ac_try_echo"; } >&5
3184 (eval "$ac_link_default") 2>&5
3186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }
3189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3190 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3191 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3192 # so that the user can short-circuit this test for compilers unknown to
3194 for ac_file in $ac_files ''
3196 test -f "$ac_file" || continue
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3201 # We found the default executable, but exeext='' is most
3205 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209 # We set ac_cv_exeext here because the later test for it is not
3210 # safe: cross compilers may not add the suffix if given an `-o'
3211 # argument, so we may need to know it at that point already.
3212 # Even if this section looks crufty: it has the advantage of
3219 test "$ac_cv_exeext" = no && ac_cv_exeext=
3224 if test -z "$ac_file"
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 printf "%s\n" "no" >&6; }
3228 printf "%s\n" "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error 77 "C compiler cannot create executables
3234 See \`config.log' for more details" "$LINENO" 5; }
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237 printf "%s\n" "yes" >&6; }
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3240 printf %s "checking for C compiler default output file name... " >&6; }
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3242 printf "%s\n" "$ac_file" >&6; }
3243 ac_exeext=$ac_cv_exeext
3245 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3246 ac_clean_files=$ac_clean_files_save
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3248 printf %s "checking for suffix of executables... " >&6; }
3249 if { { ac_try="$ac_link"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 printf "%s\n" "$ac_try_echo"; } >&5
3256 (eval "$ac_link") 2>&5
3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }
3261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3262 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3263 # work properly (i.e., refer to `conftest.exe'), while it won't with
3265 for ac_file in conftest.exe conftest conftest.*; do
3266 test -f "$ac_file" || continue
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3278 See \`config.log' for more details" "$LINENO" 5; }
3280 rm -f conftest conftest$ac_cv_exeext
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3282 printf "%s\n" "$ac_cv_exeext" >&6; }
3284 rm -f conftest.$ac_ext
3285 EXEEXT=$ac_cv_exeext
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3293 FILE *f = fopen ("conftest.out", "w");
3294 return ferror (f) || fclose (f) != 0;
3300 ac_clean_files="$ac_clean_files conftest.out"
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3304 printf %s "checking whether we are cross compiling... " >&6; }
3305 if test "$cross_compiling" != yes; then
3306 { { ac_try="$ac_link"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 printf "%s\n" "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }
3317 if { ac_try='./conftest$ac_cv_exeext'
3318 { { case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 printf "%s\n" "$ac_try_echo"; } >&5
3324 (eval "$ac_try") 2>&5
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; }; then
3330 if test "$cross_compiling" = maybe; then
3333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error 77 "cannot run C compiled programs.
3336 If you meant to cross compile, use \`--host'.
3337 See \`config.log' for more details" "$LINENO" 5; }
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3342 printf "%s\n" "$cross_compiling" >&6; }
3344 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3345 ac_clean_files=$ac_clean_files_save
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3347 printf %s "checking for suffix of object files... " >&6; }
3348 if test ${ac_cv_objext+y}
3350 printf %s "(cached) " >&6
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 rm -f conftest.o conftest.obj
3364 if { { ac_try="$ac_compile"
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 printf "%s\n" "$ac_try_echo"; } >&5
3371 (eval "$ac_compile") 2>&5
3373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3376 for ac_file in conftest.o conftest.obj conftest.*; do
3377 test -f "$ac_file" || continue;
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 printf "%s\n" "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error $? "cannot compute suffix of object files: cannot compile
3391 See \`config.log' for more details" "$LINENO" 5; }
3393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3396 printf "%s\n" "$ac_cv_objext" >&6; }
3397 OBJEXT=$ac_cv_objext
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3400 printf %s "checking whether the compiler supports GNU C... " >&6; }
3401 if test ${ac_cv_c_compiler_gnu+y}
3403 printf %s "(cached) " >&6
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3419 if ac_fn_c_try_compile "$LINENO"
3425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3430 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 if test $ac_compiler_gnu = yes; then
3438 ac_test_CFLAGS=${CFLAGS+y}
3439 ac_save_CFLAGS=$CFLAGS
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3441 printf %s "checking whether $CC accepts -g... " >&6; }
3442 if test ${ac_cv_prog_cc_g+y}
3444 printf %s "(cached) " >&6
3446 ac_save_c_werror_flag=$ac_c_werror_flag
3447 ac_c_werror_flag=yes
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3461 if ac_fn_c_try_compile "$LINENO"
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 if ac_fn_c_try_compile "$LINENO"
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3494 if ac_fn_c_try_compile "$LINENO"
3498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3503 ac_c_werror_flag=$ac_save_c_werror_flag
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3506 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3507 if test $ac_test_CFLAGS; then
3508 CFLAGS=$ac_save_CFLAGS
3509 elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3516 if test "$GCC" = yes; then
3523 if test x$ac_prog_cc_stdc = xno
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3526 printf %s "checking for $CC option to enable C11 features... " >&6; }
3527 if test ${ac_cv_prog_cc_c11+y}
3529 printf %s "(cached) " >&6
3531 ac_cv_prog_cc_c11=no
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 $ac_c_conftest_c11_program
3537 for ac_arg in '' -std=gnu11
3539 CC="$ac_save_CC $ac_arg"
3540 if ac_fn_c_try_compile "$LINENO"
3542 ac_cv_prog_cc_c11=$ac_arg
3544 rm -f core conftest.err conftest.$ac_objext conftest.beam
3545 test "x$ac_cv_prog_cc_c11" != "xno" && break
3547 rm -f conftest.$ac_ext
3551 if test "x$ac_cv_prog_cc_c11" = xno
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3554 printf "%s\n" "unsupported" >&6; }
3556 if test "x$ac_cv_prog_cc_c11" = x
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3559 printf "%s\n" "none needed" >&6; }
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3562 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3563 CC="$CC $ac_cv_prog_cc_c11"
3565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3569 if test x$ac_prog_cc_stdc = xno
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3572 printf %s "checking for $CC option to enable C99 features... " >&6; }
3573 if test ${ac_cv_prog_cc_c99+y}
3575 printf %s "(cached) " >&6
3577 ac_cv_prog_cc_c99=no
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581 $ac_c_conftest_c99_program
3583 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3585 CC="$ac_save_CC $ac_arg"
3586 if ac_fn_c_try_compile "$LINENO"
3588 ac_cv_prog_cc_c99=$ac_arg
3590 rm -f core conftest.err conftest.$ac_objext conftest.beam
3591 test "x$ac_cv_prog_cc_c99" != "xno" && break
3593 rm -f conftest.$ac_ext
3597 if test "x$ac_cv_prog_cc_c99" = xno
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3600 printf "%s\n" "unsupported" >&6; }
3602 if test "x$ac_cv_prog_cc_c99" = x
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3605 printf "%s\n" "none needed" >&6; }
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3608 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3609 CC="$CC $ac_cv_prog_cc_c99"
3611 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3615 if test x$ac_prog_cc_stdc = xno
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3618 printf %s "checking for $CC option to enable C89 features... " >&6; }
3619 if test ${ac_cv_prog_cc_c89+y}
3621 printf %s "(cached) " >&6
3623 ac_cv_prog_cc_c89=no
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 $ac_c_conftest_c89_program
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 CC="$ac_save_CC $ac_arg"
3632 if ac_fn_c_try_compile "$LINENO"
3634 ac_cv_prog_cc_c89=$ac_arg
3636 rm -f core conftest.err conftest.$ac_objext conftest.beam
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3639 rm -f conftest.$ac_ext
3643 if test "x$ac_cv_prog_cc_c89" = xno
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3646 printf "%s\n" "unsupported" >&6; }
3648 if test "x$ac_cv_prog_cc_c89" = x
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3651 printf "%s\n" "none needed" >&6; }
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3655 CC="$CC $ac_cv_prog_cc_c89"
3657 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
3669 printf %s "checking for GNU make... " >&6; }
3670 if test ${ac_cv_GNU_MAKE+y}
3672 printf %s "(cached) " >&6
3674 ac_cv_GNU_MAKE='Not Found' ;
3675 ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
3676 ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
3677 for a in make gmake gnumake ; do
3678 if test -z "$a" ; then continue ; fi ;
3679 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3681 ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
3682 ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
3689 printf "%s\n" "$ac_cv_GNU_MAKE" >&6; } ;
3690 if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
3691 as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
3694 GNU_MAKE=$ac_cv_GNU_MAKE
3705 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3706 if test -n "$ac_tool_prefix"; then
3707 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3708 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 printf %s "checking for $ac_word... " >&6; }
3711 if test ${ac_cv_path_PKG_CONFIG+y}
3713 printf %s "(cached) " >&6
3717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 case $as_dir in #(((
3727 *) as_dir=$as_dir/ ;;
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3742 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3743 if test -n "$PKG_CONFIG"; then
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3745 printf "%s\n" "$PKG_CONFIG" >&6; }
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
3753 if test -z "$ac_cv_path_PKG_CONFIG"; then
3754 ac_pt_PKG_CONFIG=$PKG_CONFIG
3755 # Extract the first word of "pkg-config", so it can be a program name with args.
3756 set dummy pkg-config; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3761 printf %s "(cached) " >&6
3763 case $ac_pt_PKG_CONFIG in
3765 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 case $as_dir in #(((
3775 *) as_dir=$as_dir/ ;;
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3779 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3790 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3791 if test -n "$ac_pt_PKG_CONFIG"; then
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3793 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 printf "%s\n" "no" >&6; }
3799 if test "x$ac_pt_PKG_CONFIG" = x; then
3802 case $cross_compiling:$ac_tool_warned in
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3805 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3806 ac_tool_warned=yes ;;
3808 PKG_CONFIG=$ac_pt_PKG_CONFIG
3811 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3815 if test -n "$PKG_CONFIG"; then
3816 _pkg_min_version=0.9.0
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3818 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3819 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3821 printf "%s\n" "yes" >&6; }
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 printf "%s\n" "no" >&6; }
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 # Check whether --enable-debug was given.
3836 if test ${enable_debug+y}
3838 enableval=$enable_debug; case "${enableval}" in
3839 y|ye|yes) MENUSELECT_DEBUG=yes ;;
3840 n|no) MENUSELECT_DEBUG=no ;;
3841 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
3848 ac_header= ac_cache=
3849 for ac_item in $ac_header_c_list
3851 if test $ac_cache; then
3852 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3853 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3854 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3856 ac_header= ac_cache=
3857 elif test $ac_header; then
3871 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3874 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3877 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3878 if test "x$ac_cv_type_size_t" = xyes
3883 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
3887 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3888 # for constant arguments. Useless!
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
3890 printf %s "checking for working alloca.h... " >&6; }
3891 if test ${ac_cv_working_alloca_h+y}
3893 printf %s "(cached) " >&6
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3901 char *p = (char *) alloca (2 * sizeof (int));
3907 if ac_fn_c_try_link "$LINENO"
3909 ac_cv_working_alloca_h=yes
3911 ac_cv_working_alloca_h=no
3913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3914 conftest$ac_exeext conftest.$ac_ext
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
3917 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
3918 if test $ac_cv_working_alloca_h = yes; then
3920 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
3925 printf %s "checking for alloca... " >&6; }
3926 if test ${ac_cv_func_alloca_works+y}
3928 printf %s "(cached) " >&6
3930 if test $ac_cv_working_alloca_h = yes; then
3931 ac_cv_func_alloca_works=yes
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3939 # define alloca __builtin_alloca
3940 # elif defined _MSC_VER
3941 # include <malloc.h>
3942 # define alloca _alloca
3947 void *alloca (size_t);
3954 char *p = (char *) alloca (1);
3960 if ac_fn_c_try_link "$LINENO"
3962 ac_cv_func_alloca_works=yes
3964 ac_cv_func_alloca_works=no
3966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3967 conftest$ac_exeext conftest.$ac_ext
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
3970 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
3973 if test $ac_cv_func_alloca_works = yes; then
3975 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
3978 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3979 # that cause trouble. Some versions do not even contain alloca or
3980 # contain a buggy version. If you still want to use their alloca,
3981 # use ar to extract alloca.o from them instead of compiling alloca.c.
3983 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3985 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
3989 printf %s "checking stack direction for C alloca... " >&6; }
3990 if test ${ac_cv_c_stack_direction+y}
3992 printf %s "(cached) " >&6
3994 if test "$cross_compiling" = yes
3996 ac_cv_c_stack_direction=0
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 $ac_includes_default
4002 find_stack_direction (int *addr, int depth)
4007 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4008 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4013 main (int argc, char **argv)
4015 return find_stack_direction (0, argc + !argv + 20) < 0;
4018 if ac_fn_c_try_run "$LINENO"
4020 ac_cv_c_stack_direction=1
4022 ac_cv_c_stack_direction=-1
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4025 conftest.$ac_objext conftest.beam conftest.$ac_ext
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4030 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
4031 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
4036 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
4037 if test "x$ac_cv_func_asprintf" = xyes
4039 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
4042 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
4043 if test "x$ac_cv_func_getloadavg" = xyes
4045 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
4048 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
4049 if test "x$ac_cv_func_setenv" = xyes
4051 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
4054 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
4055 if test "x$ac_cv_func_strcasestr" = xyes
4057 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
4060 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
4061 if test "x$ac_cv_func_strndup" = xyes
4063 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
4066 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
4067 if test "x$ac_cv_func_strnlen" = xyes
4069 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
4072 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
4073 if test "x$ac_cv_func_strsep" = xyes
4075 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
4078 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
4079 if test "x$ac_cv_func_unsetenv" = xyes
4081 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
4084 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
4085 if test "x$ac_cv_func_vasprintf" = xyes
4087 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
4092 # The frontend can use curses, ncurses, newt or GTK2 so check for all of them
4099 # Check whether --with-newt was given.
4100 if test ${with_newt+y}
4106 # -1 is a magic value used by menuselect to know that the package
4107 # was disabled, other than 'not found'
4111 ac_mandatory_list="${ac_mandatory_list} NEWT"
4114 NEWT_DIR="${withval}"
4115 ac_mandatory_list="${ac_mandatory_list} NEWT"
4128 CURSES_DESCRIP="curses"
4129 CURSES_OPTION="curses"
4132 # Check whether --with-curses was given.
4133 if test ${with_curses+y}
4135 withval=$with_curses;
4139 # -1 is a magic value used by menuselect to know that the package
4140 # was disabled, other than 'not found'
4144 ac_mandatory_list="${ac_mandatory_list} CURSES"
4147 CURSES_DIR="${withval}"
4148 ac_mandatory_list="${ac_mandatory_list} CURSES"
4161 NCURSES_DESCRIP="ncurses"
4162 NCURSES_OPTION="ncurses"
4165 # Check whether --with-ncurses was given.
4166 if test ${with_ncurses+y}
4168 withval=$with_ncurses;
4172 # -1 is a magic value used by menuselect to know that the package
4173 # was disabled, other than 'not found'
4177 ac_mandatory_list="${ac_mandatory_list} NCURSES"
4180 NCURSES_DIR="${withval}"
4181 ac_mandatory_list="${ac_mandatory_list} NCURSES"
4194 LIBXML2_DESCRIP="LibXML2"
4195 LIBXML2_OPTION="libxml2"
4198 # Check whether --with-libxml2 was given.
4199 if test ${with_libxml2+y}
4201 withval=$with_libxml2;
4205 # -1 is a magic value used by menuselect to know that the package
4206 # was disabled, other than 'not found'
4210 ac_mandatory_list="${ac_mandatory_list} LIBXML2"
4213 LIBXML2_DIR="${withval}"
4214 ac_mandatory_list="${ac_mandatory_list} LIBXML2"
4227 TINFO_DESCRIP="terminfo"
4228 TINFO_OPTION="libtinfo"
4231 # Check whether --with-libtinfo was given.
4232 if test ${with_libtinfo+y}
4234 withval=$with_libtinfo;
4238 # -1 is a magic value used by menuselect to know that the package
4239 # was disabled, other than 'not found'
4243 ac_mandatory_list="${ac_mandatory_list} TINFO"
4246 TINFO_DIR="${withval}"
4247 ac_mandatory_list="${ac_mandatory_list} TINFO"
4261 if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
4263 # if --with-NEWT=DIR has been specified, use it.
4264 if test "x${NEWT_DIR}" != "x"; then
4265 if test -d ${NEWT_DIR}/lib; then
4266 pbxlibdir="-L${NEWT_DIR}/lib"
4268 pbxlibdir="-L${NEWT_DIR}"
4272 ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newtBell in -lnewt" >&5
4275 printf %s "checking for newtBell in -lnewt... " >&6; }
4276 if test ${ac_cv_lib_newt_newtBell+y}
4278 printf %s "(cached) " >&6
4280 ac_check_lib_save_LIBS=$LIBS
4281 LIBS="-lnewt ${pbxlibdir} $LIBS"
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4285 /* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4297 if ac_fn_c_try_link "$LINENO"
4299 ac_cv_lib_newt_newtBell=yes
4301 ac_cv_lib_newt_newtBell=no
4303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4304 conftest$ac_exeext conftest.$ac_ext
4305 LIBS=$ac_check_lib_save_LIBS
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_newt_newtBell" >&5
4308 printf "%s\n" "$ac_cv_lib_newt_newtBell" >&6; }
4309 if test "x$ac_cv_lib_newt_newtBell" = xyes
4316 CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
4319 # now check for the header.
4320 if test "${AST_NEWT_FOUND}" = "yes"; then
4321 NEWT_LIB="${pbxlibdir} -lnewt "
4322 # if --with-NEWT=DIR has been specified, use it.
4323 if test "x${NEWT_DIR}" != "x"; then
4324 NEWT_INCLUDE="-I${NEWT_DIR}/include"
4326 NEWT_INCLUDE="${NEWT_INCLUDE} "
4328 # check for the header
4329 ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
4330 CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
4331 ac_fn_c_check_header_compile "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
4332 if test "x$ac_cv_header_newt_h" = xyes
4339 CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
4341 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
4347 cat >>confdefs.h <<_ACEOF
4357 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
4359 # if --with-NCURSES=DIR has been specified, use it.
4360 if test "x${NCURSES_DIR}" != "x"; then
4361 if test -d ${NCURSES_DIR}/lib; then
4362 pbxlibdir="-L${NCURSES_DIR}/lib"
4364 pbxlibdir="-L${NCURSES_DIR}"
4368 ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
4371 printf %s "checking for initscr in -lncurses... " >&6; }
4372 if test ${ac_cv_lib_ncurses_initscr+y}
4374 printf %s "(cached) " >&6
4376 ac_check_lib_save_LIBS=$LIBS
4377 LIBS="-lncurses ${pbxlibdir} $LIBS"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4381 /* Override any GCC internal prototype to avoid an error.
4382 Use char because int might match the return type of a GCC
4383 builtin and then its argument prototype would still apply. */
4393 if ac_fn_c_try_link "$LINENO"
4395 ac_cv_lib_ncurses_initscr=yes
4397 ac_cv_lib_ncurses_initscr=no
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4400 conftest$ac_exeext conftest.$ac_ext
4401 LIBS=$ac_check_lib_save_LIBS
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
4404 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
4405 if test "x$ac_cv_lib_ncurses_initscr" = xyes
4407 AST_NCURSES_FOUND=yes
4409 AST_NCURSES_FOUND=no
4412 CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
4415 # now check for the header.
4416 if test "${AST_NCURSES_FOUND}" = "yes"; then
4417 NCURSES_LIB="${pbxlibdir} -lncurses "
4418 # if --with-NCURSES=DIR has been specified, use it.
4419 if test "x${NCURSES_DIR}" != "x"; then
4420 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
4422 NCURSES_INCLUDE="${NCURSES_INCLUDE} "
4424 # check for the header
4425 ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
4426 CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
4427 ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
4428 if test "x$ac_cv_header_ncurses_h" = xyes
4430 NCURSES_HEADER_FOUND=1
4432 NCURSES_HEADER_FOUND=0
4435 CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
4437 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
4443 cat >>confdefs.h <<_ACEOF
4444 #define HAVE_NCURSES 1
4452 if test "${PBX_NCURSES}" != 1; then
4453 # some platforms have the header in a sub-directory, for example Solaris
4455 if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
4457 # if --with-NCURSES=DIR h