2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU Make 4.4.
5 # Report bugs to <bug-make@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # 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 and bug-make@gnu.org
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
280 SHELL=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir=./$as_dir;;
334 test -d "$as_dir" || eval $as_mkdir_p || {
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 as_val=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status=$1; test $as_status -eq 0 && as_status=1
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
552 mkdir conf$$.dir 2>/dev/null
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 elif ln conf$$.file conf$$ 2>/dev/null; then
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
577 test -d ./-p && rmdir ./-p
582 as_executable_p=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" || exec 7<&0 </dev/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix=/usr/local
604 ac_config_libobj_dir=.
611 # Identity of this package.
612 PACKAGE_NAME='GNU Make'
613 PACKAGE_TARNAME='make'
614 PACKAGE_VERSION='4.4'
615 PACKAGE_STRING='GNU Make 4.4'
616 PACKAGE_BUGREPORT='bug-make@gnu.org'
617 PACKAGE_URL='https://www.gnu.org/software/make/'
619 ac_unique_file="src/vpath.c"
620 ac_config_libobj_dir=lib
621 # Factoring default headers for most tests.
622 ac_includes_default="\
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
655 ac_subst_vars='gltests_LIBOBJDEPS
688 XGETTEXT_EXTRA_OPTIONS
696 GETTEXT_MACRO_VERSION
702 GL_CFLAG_GNULIB_WARNINGS
703 GL_CFLAG_ALLOW_WARNINGS
705 GL_GENERATE_STDBOOL_H_FALSE
706 GL_GENERATE_STDBOOL_H_TRUE
710 USE_SYSTEM_GLOB_FALSE
714 GL_COND_OBJ_GETLOADAVG_FALSE
715 GL_COND_OBJ_GETLOADAVG_TRUE
719 GL_GENERATE_ALLOCA_H_FALSE
720 GL_GENERATE_ALLOCA_H_TRUE
724 GL_COND_LIBTOOL_FALSE
771 INSTALL_STRIP_PROGRAM
814 program_transform_name
826 ac_subst_files='MAINT_MAKEFILE'
828 enable_option_checking
830 enable_dependency_tracking
841 enable_case_insensitive_file_system
847 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 runstatedir='${localstatedir}/run'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: \`$ac_useropt'"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: \`$ac_useropt'"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1150 -runstatedir | --runstatedir | --runstatedi | --runstated \
1151 | --runstate | --runstat | --runsta | --runst | --runs \
1152 | --run | --ru | --r)
1153 ac_prev=runstatedir ;;
1154 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1155 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1156 | --run=* | --ru=* | --r=*)
1157 runstatedir=$ac_optarg ;;
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 sbindir=$ac_optarg ;;
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 sharedstatedir=$ac_optarg ;;
1176 -site | --site | --sit)
1178 -site=* | --site=* | --sit=*)
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: \`$ac_useropt'"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1218 eval with_$ac_useropt=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: \`$ac_useropt'"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1234 eval with_$ac_useropt=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 case $ac_envvar in #(
1262 '' | [0-9]* | *[!_$as_cr_alnum]* )
1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 as_fn_error $? "missing argument to $ac_option"
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir runstatedir
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1305 # Be sure to have absolute directory names.
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 as_fn_error $? "working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 as_fn_error $? "pwd does not report name of working directory"
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 printf "%s\n" X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1409 \`configure' configures GNU Make 4.4 to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking ...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/make]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of GNU Make 4.4:";;
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-silent-rules less verbose build output (undo: "make V=1")
1489 --disable-silent-rules verbose build output (undo: "make V=0")
1490 --enable-dependency-tracking
1491 do not reject slow dependency extractors
1492 --disable-dependency-tracking
1493 speeds up one-time build
1494 --disable-largefile omit support for large files
1495 --disable-year2038 omit support for timestamps past the year 2038
1496 --enable-cross-guesses={conservative|risky}
1497 specify policy for cross-compilation guesses
1498 --disable-nls do not use Native Language Support
1499 --disable-rpath do not hardcode runtime library paths
1500 --enable-case-insensitive-file-system
1501 assume file systems are case insensitive
1502 --disable-job-server disallow recursive make communication during -jN
1503 --disable-load disable support for the 'load' operation
1504 --disable-posix-spawn disable support for posix_spawn()
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1511 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1512 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1513 --without-libintl-prefix don't search for libintl in includedir and libdir
1514 --with-guile Support GNU Guile for embedded scripting
1515 --with-customs=DIR enable remote jobs via Customs--see README.customs
1516 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1518 Some influential environment variables:
1519 CC C compiler command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1522 nonstandard directory <lib dir>
1523 LIBS libraries to pass to the linker, e.g. -l<library>
1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525 you have headers in a nonstandard directory <include dir>
1527 PKG_CONFIG path to pkg-config utility
1529 directories to add to pkg-config's search path
1531 path overriding pkg-config's built-in search path
1533 C compiler flags for GUILE, overriding pkg-config
1534 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1539 Report bugs to <bug-make@gnu.org>.
1540 GNU Make home page: <https://www.gnu.org/software/make/>.
1541 General help using GNU software: <https://www.gnu.org/gethelp/>.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1571 .) # We are building in place.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for configure.gnu first; this name is used for a wrapper for
1588 # Metaconfig's "Configure" on case-insensitive file systems.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1596 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1605 GNU Make configure 4.4
1606 generated by GNU Autoconf 2.71
1608 Copyright (C) 2021 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest.beam
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 printf "%s\n" "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext
1648 printf "%s\n" "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 printf %s "checking for $2... " >&6; }
1667 if eval test \${$3+y}
1669 printf %s "(cached) " >&6
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1676 if ac_fn_c_try_compile "$LINENO"
1682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 printf "%s\n" "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 } # ac_fn_c_check_header_compile
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } > conftest.i && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1719 printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1729 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1730 # -------------------------------------------
1731 # Tests whether TYPE exists after having included INCLUDES, setting cache
1732 # variable VAR accordingly.
1733 ac_fn_c_check_type ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 printf %s "checking for $2... " >&6; }
1738 if eval test \${$3+y}
1740 printf %s "(cached) " >&6
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1755 if ac_fn_c_try_compile "$LINENO"
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1769 if ac_fn_c_try_compile "$LINENO"
1775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_type
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 printf "%s\n" "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 test -x conftest$ac_exeext
1818 printf "%s\n" "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_link
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1836 # executables *can* be run.
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_link"
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 printf "%s\n" "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853 *) ac_try_echo=$ac_try;;
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 printf "%s\n" "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }
1864 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1865 printf "%s\n" "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=$ac_status
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 printf %s "checking for $2... " >&6; }
1884 if eval test \${$3+y}
1886 printf %s "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below. */
1900 /* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1907 /* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910 #if defined __stub_$2 || defined __stub___$2
1922 if ac_fn_c_try_link "$LINENO"
1928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1929 conftest$ac_exeext conftest.$ac_ext
1932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 printf "%s\n" "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_func
1938 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1939 # ------------------------------------------------------------------
1940 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1941 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1944 ac_save_ac_compile="$ac_compile"
1945 if test -n "$ac_compile_for_check_decl"; then
1946 ac_compile="$ac_compile_for_check_decl"
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 as_decl_name=`echo $2|sed 's/ *(.*//'`
1950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1951 printf %s "checking whether $as_decl_name is declared... " >&6; }
1952 if eval test \${$3+y}
1954 printf %s "(cached) " >&6
1956 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1957 eval ac_save_FLAGS=\$$6
1958 as_fn_append $6 " $5"
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1965 #ifndef $as_decl_name
1967 (void) $as_decl_use;
1969 (void) $as_decl_name;
1977 if ac_fn_c_try_compile "$LINENO"
1983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1984 eval $6=\$ac_save_FLAGS
1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 printf "%s\n" "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 ac_compile="$ac_save_ac_compile"
1993 } # ac_fn_check_decl
1995 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996 # ----------------------------------------------------
1997 # Tries to find if the field MEMBER exists in type AGGR, after including
1998 # INCLUDES, setting cache variable VAR accordingly.
1999 ac_fn_c_check_member ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003 printf %s "checking for $2.$3... " >&6; }
2004 if eval test \${$4+y}
2006 printf %s "(cached) " >&6
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2032 if (sizeof ac_aggr.$3)
2038 if ac_fn_c_try_compile "$LINENO"
2044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 printf "%s\n" "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_member
2054 ac_configure_args_raw=
2059 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2061 as_fn_append ac_configure_args_raw " '$ac_arg'"
2064 case $ac_configure_args_raw in
2068 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2069 ac_unsafe_a="$ac_unsafe_z#~"
2070 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2071 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2074 cat >config.log <<_ACEOF
2075 This file contains any messages produced by compilers while
2076 running configure, to aid debugging if configure makes a mistake.
2078 It was created by GNU Make $as_me 4.4, which was
2079 generated by GNU Autoconf 2.71. Invocation command line was
2081 $ $0$ac_configure_args_raw
2091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 case $as_dir in #(((
2117 *) as_dir=$as_dir/ ;;
2119 printf "%s\n" "PATH: $as_dir"
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2143 ac_must_keep_next=false
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2154 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2159 as_fn_append ac_configure_args1 " '$ac_arg'"
2160 if test $ac_must_keep_next = true; then
2161 ac_must_keep_next=false # Got value, back to normal.
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172 -* ) ac_must_keep_next=true ;;
2175 as_fn_append ac_configure_args " '$ac_arg'"
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log. We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2191 # Save into config.log some information that might help in debugging.
2195 printf "%s\n" "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2199 # The following way of writing the cache mishandles newlines in values,
2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202 eval ac_val=\$$ac_var
2206 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210 _ | IFS | as_nl) ;; #(
2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212 *) { eval $ac_var=; unset $ac_var;} ;;
2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218 *${as_nl}ac_space=\ *)
2220 "s/'\''/'\''\\\\'\'''\''/g;
2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231 printf "%s\n" "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2235 for ac_var in $ac_subst_vars
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 printf "%s\n" "$ac_var='\''$ac_val'\''"
2245 if test -n "$ac_subst_files"; then
2246 printf "%s\n" "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2250 for ac_var in $ac_subst_files
2252 eval ac_val=\$$ac_var
2254 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 printf "%s\n" "$ac_var='\''$ac_val'\''"
2261 if test -s confdefs.h; then
2262 printf "%s\n" "## ----------- ##
2269 test "$ac_signal" != 0 &&
2270 printf "%s\n" "$as_me: caught signal $ac_signal"
2271 printf "%s\n" "$as_me: exit $exit_status"
2273 rm -f core *.core core.conftest.* &&
2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277 for ac_signal in 1 2 13 15; do
2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2285 printf "%s\n" "/* confdefs.h */" > confdefs.h
2287 # Predefined preprocessor variables.
2289 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2291 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2293 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2295 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2297 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2299 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer an explicitly selected file to automatically selected ones.
2304 if test -n "$CONFIG_SITE"; then
2305 ac_site_files="$CONFIG_SITE"
2306 elif test "x$prefix" != xNONE; then
2307 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2309 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2312 for ac_site_file in $ac_site_files
2314 case $ac_site_file in #(
2318 ac_site_file=./$ac_site_file ;;
2320 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2325 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2349 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2350 # Test code for whether the C compiler supports C89 (global declarations)
2351 ac_c_conftest_c89_globals='
2352 /* Does the compiler advertise C89 conformance?
2353 Do not test the value of __STDC__, because some compilers set it to 0
2354 while being otherwise adequately conformant. */
2355 #if !defined __STDC__
2356 # error "Compiler does not advertise C89 conformance"
2362 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2363 struct buf { int x; };
2364 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2365 static char *e (p, i)
2371 static char *f (char * (*g) (char **, int), char **p, ...)
2376 s = g (p, va_arg (v,int));
2381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2382 function prototypes and stuff, but not \xHH hex character constants.
2383 These do not provoke an error unfortunately, instead are silently treated
2384 as an "x". The following induces an error, until -std is added to get
2385 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2386 array size at least. It is necessary to write \x00 == 0 to get something
2387 that is true only with -std. */
2388 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2391 inside strings and character constants. */
2392 #define FOO(x) '\''x'\''
2393 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2395 int test (int i, double x);
2396 struct s1 {int (*f) (int a);};
2397 struct s2 {int (*f) (double a);};
2398 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2401 # Test code for whether the C compiler supports C89 (body of main).
2402 ac_c_conftest_c89_main='
2403 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2406 # Test code for whether the C compiler supports C99 (global declarations)
2407 ac_c_conftest_c99_globals='
2408 // Does the compiler advertise C99 conformance?
2409 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2410 # error "Compiler does not advertise C99 conformance"
2413 #include <stdbool.h>
2414 extern int puts (const char *);
2415 extern int printf (const char *, ...);
2416 extern int dprintf (int, const char *, ...);
2417 extern void *malloc (size_t);
2419 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2420 // dprintf is used instead of fprintf to avoid needing to declare
2422 #define debug(...) dprintf (2, __VA_ARGS__)
2423 #define showlist(...) puts (#__VA_ARGS__)
2424 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2426 test_varargs_macros (void)
2431 debug ("X = %d\n", x);
2432 showlist (The first, second, and third items.);
2433 report (x>y, "x is %d but y is %d", x, y);
2436 // Check long long types.
2437 #define BIG64 18446744073709551615ull
2438 #define BIG32 4294967295ul
2439 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2441 #error "your preprocessor is broken"
2445 #error "your preprocessor is broken"
2447 static long long int bignum = -9223372036854775807LL;
2448 static unsigned long long int ubignum = BIG64;
2450 struct incomplete_array
2458 const wchar_t *name;
2462 typedef const char *ccp;
2465 test_restrict (ccp restrict text)
2467 // See if C++-style comments work.
2468 // Iterate through items via the restricted pointer.
2469 // Also check for declarations in for loops.
2470 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2475 // Check varargs and va_copy.
2477 test_varargs (const char *format, ...)
2480 va_start (args, format);
2482 va_copy (args_copy, args);
2484 const char *str = "";
2492 case '\''s'\'': // string
2493 str = va_arg (args_copy, const char *);
2495 case '\''d'\'': // int
2496 number = va_arg (args_copy, int);
2498 case '\''f'\'': // float
2499 fnumber = va_arg (args_copy, double);
2508 return *str && number && fnumber;
2512 # Test code for whether the C compiler supports C99 (body of main).
2513 ac_c_conftest_c99_main='
2515 _Bool success = false;
2516 success |= (argc != 0);
2519 if (test_restrict ("String literal") == 0)
2521 char *restrict newvar = "Another string";
2524 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2525 test_varargs_macros ();
2527 // Check flexible array members.
2528 struct incomplete_array *ia =
2529 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2531 for (int i = 0; i < ia->datasize; ++i)
2532 ia->data[i] = i * 1.234;
2534 // Check named initializers.
2535 struct named_init ni = {
2537 .name = L"Test wide string",
2538 .average = 543.34343,
2543 int dynamic_array[ni.number];
2544 dynamic_array[0] = argv[0][0];
2545 dynamic_array[ni.number - 1] = 543;
2547 // work around unused variable warnings
2548 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2549 || dynamic_array[ni.number - 1] != 543);
2552 # Test code for whether the C compiler supports C11 (global declarations)
2553 ac_c_conftest_c11_globals='
2554 // Does the compiler advertise C11 conformance?
2555 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2556 # error "Compiler does not advertise C11 conformance"
2560 char _Alignas (double) aligned_as_double;
2561 char _Alignas (0) no_special_alignment;
2562 extern char aligned_as_int;
2563 char _Alignas (0) _Alignas (int) aligned_as_int;
2568 int_alignment = _Alignof (int),
2569 int_array_alignment = _Alignof (int[100]),
2570 char_alignment = _Alignof (char)
2572 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2575 int _Noreturn does_not_return (void) { for (;;) continue; }
2577 // Check _Static_assert.
2578 struct test_static_assert
2581 _Static_assert (sizeof (int) <= sizeof (long int),
2582 "_Static_assert does not work in struct");
2586 // Check UTF-8 literals.
2587 #define u8 syntax error!
2588 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2590 // Check duplicate typedefs.
2591 typedef long *long_ptr;
2592 typedef long int *long_ptr;
2593 typedef long_ptr long_ptr;
2595 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2599 struct { int i; int j; };
2600 struct { int k; long int l; } w;
2606 # Test code for whether the C compiler supports C11 (body of main).
2607 ac_c_conftest_c11_main='
2608 _Static_assert ((offsetof (struct anonymous, i)
2609 == offsetof (struct anonymous, w.k)),
2610 "Anonymous union alignment botch");
2616 # Test code for whether the C compiler supports C11 (complete).
2617 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2618 ${ac_c_conftest_c99_globals}
2619 ${ac_c_conftest_c11_globals}
2622 main (int argc, char **argv)
2625 ${ac_c_conftest_c89_main}
2626 ${ac_c_conftest_c99_main}
2627 ${ac_c_conftest_c11_main}
2632 # Test code for whether the C compiler supports C99 (complete).
2633 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2634 ${ac_c_conftest_c99_globals}
2637 main (int argc, char **argv)
2640 ${ac_c_conftest_c89_main}
2641 ${ac_c_conftest_c99_main}
2646 # Test code for whether the C compiler supports C89 (complete).
2647 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2650 main (int argc, char **argv)
2653 ${ac_c_conftest_c89_main}
2658 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2659 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2660 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2661 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2662 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2663 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2664 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2665 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2666 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2667 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2668 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2669 gt_needs="$gt_needs "
2670 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2671 as_fn_append ac_func_c_list " fork HAVE_FORK"
2672 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2674 # Auxiliary files required by this configure script.
2675 ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
2677 # Locations in which to look for auxiliary files.
2678 ac_aux_dir_candidates="${srcdir}/build-aux"
2680 # Search for a directory containing all of the required auxiliary files,
2681 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2682 # If we don't find one directory that contains all the files we need,
2683 # we report the set of missing files from the *first* directory in
2684 # $ac_aux_dir_candidates and give up.
2685 ac_missing_aux_files=""
2686 ac_first_candidate=:
2687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $ac_aux_dir_candidates
2693 case $as_dir in #(((
2696 *) as_dir=$as_dir/ ;;
2700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2701 ac_aux_dir_found=yes
2703 for ac_aux in $ac_aux_files
2705 # As a special case, if "install-sh" is required, that requirement
2706 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2707 # and $ac_install_sh is set appropriately for whichever one is found.
2708 if test x"$ac_aux" = x"install-sh"
2710 if test -f "${as_dir}install-sh"; then
2711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2712 ac_install_sh="${as_dir}install-sh -c"
2713 elif test -f "${as_dir}install.sh"; then
2714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2715 ac_install_sh="${as_dir}install.sh -c"
2716 elif test -f "${as_dir}shtool"; then
2717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2718 ac_install_sh="${as_dir}shtool install -c"
2721 if $ac_first_candidate; then
2722 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2728 if test -f "${as_dir}${ac_aux}"; then
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2732 if $ac_first_candidate; then
2733 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2740 if test "$ac_aux_dir_found" = yes; then
2741 ac_aux_dir="$as_dir"
2744 ac_first_candidate=false
2753 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 if test -f "${ac_aux_dir}config.guess"; then
2762 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2764 if test -f "${ac_aux_dir}config.sub"; then
2765 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2767 if test -f "$ac_aux_dir/configure"; then
2768 ac_configure="$SHELL ${ac_aux_dir}configure"
2771 # Check that the precious variables saved in the cache have kept the same
2773 ac_cache_corrupted=false
2774 for ac_var in $ac_precious_vars; do
2775 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2776 eval ac_new_set=\$ac_env_${ac_var}_set
2777 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2778 eval ac_new_val=\$ac_env_${ac_var}_value
2779 case $ac_old_set,$ac_new_set in
2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2782 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2783 ac_cache_corrupted=: ;;
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2786 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2787 ac_cache_corrupted=: ;;
2790 if test "x$ac_old_val" != "x$ac_new_val"; then
2791 # differences in whitespace do not lead to failure.
2792 ac_old_val_w=`echo x $ac_old_val`
2793 ac_new_val_w=`echo x $ac_new_val`
2794 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2796 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2797 ac_cache_corrupted=:
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2800 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2801 eval $ac_var=\$ac_old_val
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2804 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2806 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2809 # Pass precious variables to config.status.
2810 if test "$ac_new_set" = set; then
2812 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2813 *) ac_arg=$ac_var=$ac_new_val ;;
2815 case " $ac_configure_args " in
2816 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2817 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2821 if $ac_cache_corrupted; then
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2825 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2826 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2827 and start over" "$LINENO" 5
2829 ## -------------------- ##
2830 ## Main body of script. ##
2831 ## -------------------- ##
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2846 ac_config_headers="$ac_config_headers src/config.h"
2852 # We have to enable "foreign" because ChangeLog is auto-generated
2853 # Automake 1.15 and gnulib don't get along: gnulib has some strange error
2854 # in the way it handles getloadavg.c which causes make distcheck to fail.
2855 # https://lists.gnu.org/archive/html/bug-gnulib/2018-06/msg00024.html
2856 am__api_version='1.16'
2860 # Find a good install program. We prefer a C program (faster),
2861 # so one script is as good as another. But avoid the broken or
2862 # incompatible versions:
2863 # SysV /etc/install, /usr/sbin/install
2864 # SunOS /usr/etc/install
2865 # IRIX /sbin/install
2867 # AmigaOS /C/install, which installs bootblocks on floppy discs
2868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2871 # OS/2's system install, which has a completely different semantic
2872 # ./install, which can be erroneously created by make from ./install.sh.
2873 # Reject install programs that cannot install multiple files.
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2875 printf %s "checking for a BSD-compatible install... " >&6; }
2876 if test -z "$INSTALL"; then
2877 if test ${ac_cv_path_install+y}
2879 printf %s "(cached) " >&6
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 case $as_dir in #(((
2888 *) as_dir=$as_dir/ ;;
2890 # Account for fact that we put trailing slashes in our PATH walk.
2893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2897 # OSF1 and SCO ODT 3.0 have their own names for install.
2898 # Don't use installbsd from OSF since it installs stuff as root
2900 for ac_prog in ginstall scoinst install; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2903 if test $ac_prog = install &&
2904 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905 # AIX install. It has an incompatible calling convention.
2907 elif test $ac_prog = install &&
2908 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909 # program-specific install script used by HP pwplus--don't use.
2912 rm -rf conftest.one conftest.two conftest.dir
2913 echo one > conftest.one
2914 echo two > conftest.two
2916 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2917 test -s conftest.one && test -s conftest.two &&
2918 test -s conftest.dir/conftest.one &&
2919 test -s conftest.dir/conftest.two
2921 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2934 rm -rf conftest.one conftest.two conftest.dir
2937 if test ${ac_cv_path_install+y}; then
2938 INSTALL=$ac_cv_path_install
2940 # As a last resort, use the slow shell script. Don't cache a
2941 # value for INSTALL within a source directory, because that will
2942 # break other packages using the cache if that directory is
2943 # removed, or if the value is a relative name.
2944 INSTALL=$ac_install_sh
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2948 printf "%s\n" "$INSTALL" >&6; }
2950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2951 # It thinks the first close brace ends the variable substitution.
2952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2959 printf %s "checking whether build environment is sane... " >&6; }
2960 # Reject unsafe characters in $srcdir or the absolute working directory
2961 # name. Accept space and tab only in the latter.
2965 *[\\\"\#\$\&\'\`$am_lf]*)
2966 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2969 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2970 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2973 # Do 'set' in a subshell so we don't clobber the current shell's
2974 # arguments. Must try -L first in case configure is actually a
2975 # symlink; some systems play weird games with the mod time of symlinks
2976 # (eg FreeBSD returns the mod time of the symlink's containing
2980 for am_try in 1 2; do
2981 echo "timestamp, slept: $am_has_slept" > conftest.file
2982 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2983 if test "$*" = "X"; then
2985 set X `ls -t "$srcdir/configure" conftest.file`
2987 if test "$*" != "X $srcdir/configure conftest.file" \
2988 && test "$*" != "X conftest.file $srcdir/configure"; then
2990 # If neither matched, then we have a broken ls. This can happen
2991 # if, for instance, CONFIG_SHELL is bash and it inherits a
2992 # broken ls alias from the environment. This has actually
2993 # happened. Such a system could not be considered "sane".
2994 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2995 alias in your environment" "$LINENO" 5
2997 if test "$2" = conftest.file || test $am_try -eq 2; then
3004 test "$2" = conftest.file
3010 as_fn_error $? "newly created file is older than distributed files!
3011 Check your system clock" "$LINENO" 5
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 printf "%s\n" "yes" >&6; }
3015 # If we didn't sleep, we still need to ensure time stamps of config.status and
3016 # generated files are strictly newer.
3018 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3025 test "$program_prefix" != NONE &&
3026 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3027 # Use a double $ so make ignores it.
3028 test "$program_suffix" != NONE &&
3029 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3030 # Double any \ or $.
3031 # By default was `s,x,x', remove it if useless.
3032 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3033 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3036 # Expand $ac_aux_dir to an absolute path.
3037 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3040 if test x"${MISSING+set}" != xset; then
3041 MISSING="\${SHELL} '$am_aux_dir/missing'"
3043 # Use eval to expand $SHELL
3044 if eval "$MISSING --is-lightweight"; then
3045 am_missing_run="$MISSING "
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3049 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3052 if test x"${install_sh+set}" != xset; then
3055 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3057 install_sh="\${SHELL} $am_aux_dir/install-sh"
3061 # Installed binaries are usually stripped using 'strip' when the user
3062 # run "make install-strip". However 'strip' might not be the right
3063 # tool to use in cross-compilation environments, therefore Automake
3064 # will honor the 'STRIP' environment variable to overrule this program.
3065 if test "$cross_compiling" != no; then
3066 if test -n "$ac_tool_prefix"; then
3067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}strip; ac_word=$2
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 printf %s "checking for $ac_word... " >&6; }
3071 if test ${ac_cv_prog_STRIP+y}
3073 printf %s "(cached) " >&6
3075 if test -n "$STRIP"; then
3076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 case $as_dir in #(((
3085 *) as_dir=$as_dir/ ;;
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3099 STRIP=$ac_cv_prog_STRIP
3100 if test -n "$STRIP"; then
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102 printf "%s\n" "$STRIP" >&6; }
3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 printf "%s\n" "no" >&6; }
3110 if test -z "$ac_cv_prog_STRIP"; then
3112 # Extract the first word of "strip", so it can be a program name with args.
3113 set dummy strip; ac_word=$2
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 printf %s "checking for $ac_word... " >&6; }
3116 if test ${ac_cv_prog_ac_ct_STRIP+y}
3118 printf %s "(cached) " >&6
3120 if test -n "$ac_ct_STRIP"; then
3121 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 case $as_dir in #(((
3130 *) as_dir=$as_dir/ ;;
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_STRIP="strip"
3135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3145 if test -n "$ac_ct_STRIP"; then
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3147 printf "%s\n" "$ac_ct_STRIP" >&6; }
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 printf "%s\n" "no" >&6; }
3153 if test "x$ac_ct_STRIP" = x; then
3156 case $cross_compiling:$ac_tool_warned in
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3159 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160 ac_tool_warned=yes ;;
3165 STRIP="$ac_cv_prog_STRIP"
3169 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3173 printf %s "checking for a race-free mkdir -p... " >&6; }
3174 if test -z "$MKDIR_P"; then
3175 if test ${ac_cv_path_mkdir+y}
3177 printf %s "(cached) " >&6
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3183 case $as_dir in #(((
3186 *) as_dir=$as_dir/ ;;
3188 for ac_prog in mkdir gmkdir; do
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3191 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3192 'mkdir ('*'coreutils) '* | \
3194 'mkdir (fileutils) '4.1*)
3195 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3205 test -d ./--version && rmdir ./--version
3206 if test ${ac_cv_path_mkdir+y}; then
3207 MKDIR_P="$ac_cv_path_mkdir -p"
3209 # As a last resort, use the slow shell script. Don't cache a
3210 # value for MKDIR_P within a source directory, because that will
3211 # break other packages using the cache if that directory is
3212 # removed, or if the value is a relative name.
3213 MKDIR_P="$ac_install_sh -d"
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3217 printf "%s\n" "$MKDIR_P" >&6; }
3219 for ac_prog in gawk mawk nawk awk
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 printf %s "checking for $ac_word... " >&6; }
3225 if test ${ac_cv_prog_AWK+y}
3227 printf %s "(cached) " >&6
3229 if test -n "$AWK"; then
3230 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 case $as_dir in #(((
3239 *) as_dir=$as_dir/ ;;
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_AWK="$ac_prog"
3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3254 if test -n "$AWK"; then
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3256 printf "%s\n" "$AWK" >&6; }
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 printf "%s\n" "no" >&6; }
3263 test -n "$AWK" && break
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3267 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3269 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3270 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3272 printf %s "(cached) " >&6
3274 cat >conftest.make <<\_ACEOF
3277 @echo '@@@%%%=$(MAKE)=@@@%%%'
3279 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3282 eval ac_cv_prog_make_${ac_make}_set=yes;;
3284 eval ac_cv_prog_make_${ac_make}_set=no;;
3288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 printf "%s\n" "yes" >&6; }
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 printf "%s\n" "no" >&6; }
3295 SET_MAKE="MAKE=${MAKE-make}"
3298 rm -rf .tst 2>/dev/null
3299 mkdir .tst 2>/dev/null
3300 if test -d .tst; then
3305 rmdir .tst 2>/dev/null
3307 # Check whether --enable-silent-rules was given.
3308 if test ${enable_silent_rules+y}
3310 enableval=$enable_silent_rules;
3313 case $enable_silent_rules in # (((
3314 yes) AM_DEFAULT_VERBOSITY=0;;
3315 no) AM_DEFAULT_VERBOSITY=1;;
3316 *) AM_DEFAULT_VERBOSITY=1;;
3318 am_make=${MAKE-make}
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3320 printf %s "checking whether $am_make supports nested variables... " >&6; }
3321 if test ${am_cv_make_support_nested_variables+y}
3323 printf %s "(cached) " >&6
3325 if printf "%s\n" 'TRUE=$(BAR$(V))
3331 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3332 am_cv_make_support_nested_variables=yes
3334 am_cv_make_support_nested_variables=no
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3338 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3339 if test $am_cv_make_support_nested_variables = yes; then
3341 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3343 AM_V=$AM_DEFAULT_VERBOSITY
3344 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3348 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3349 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3350 # is not polluted with repeated "-I."
3351 am__isrc=' -I$(srcdir)'
3352 # test to see if srcdir already configured
3353 if test -f $srcdir/config.status; then
3354 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3358 # test whether we have cygpath
3359 if test -z "$CYGPATH_W"; then
3360 if (cygpath --version) >/dev/null 2>/dev/null; then
3361 CYGPATH_W='cygpath -w'
3368 # Define the identity of the package.
3373 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3376 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3378 # Some tools Automake needs.
3380 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3383 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3386 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3389 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3392 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3394 # For better backward compatibility. To be removed once Automake 1.9.x
3395 # dies out for good. For more background, see:
3396 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3397 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3398 mkdir_p='$(MKDIR_P)'
3400 # We need awk for the "check" target (and possibly the TAP driver). The
3401 # system "awk" is bad on some platforms.
3402 # Always define AMTAR for backward compatibility. Yes, it's still used
3403 # in the wild :-( We should find a proper way to deprecate it ...
3407 # We'll loop over all known methods to create a tar archive until one works.
3408 _am_tools='gnutar pax cpio none'
3410 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3416 # Variables for tags utilities; see am/tags.am
3417 if test -z "$CTAGS"; then
3421 if test -z "$ETAGS"; then
3425 if test -z "$CSCOPE"; then
3431 # POSIX will say in a future version that running "rm -f" with no argument
3432 # is OK; and we want to be able to make that assumption in our Makefile
3433 # recipes. So use an aggressive probe to check that the usage we want is
3434 # actually supported "in the wild" to an acceptable degree.
3435 # See automake bug#10828.
3436 # To make any issue more visible, cause the running configure to be aborted
3437 # by default if the 'rm' program in use doesn't match our expectations; the
3438 # user can still override this though.
3439 if rm -f && rm -fr && rm -rf; then : OK; else
3443 Your 'rm' program seems unable to run without file operands specified
3444 on the command line, even when the '-f' option is present. This is contrary
3445 to the behaviour of most rm programs out there, and not conforming with
3446 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3448 Please tell bug-automake@gnu.org about your system, including the value
3449 of your $PATH and any error possibly output before this message. This
3450 can help us improve future automake versions.
3453 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3454 echo 'Configuration will proceed anyway, since you have set the' >&2
3455 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3459 Aborting the configuration process, to ensure you take notice of the issue.
3461 You can download and install GNU coreutils to get an 'rm' implementation
3462 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3464 If you want to complete the configuration process using your problematic
3465 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3466 to "yes", and re-run configure.
3469 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3474 # Checks for programs.
3484 DEPDIR="${am__leading_dot}deps"
3486 ac_config_commands="$ac_config_commands depfiles"
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3489 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3490 cat > confinc.mk << 'END'
3492 @echo this is the am__doit target >confinc.out
3497 # BSD make does it like this.
3498 echo '.include "confinc.mk" # ignored' > confmf.BSD
3499 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3500 echo 'include confinc.mk # ignored' > confmf.GNU
3502 for s in GNU BSD; do
3503 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3504 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }
3508 case $?:`cat confinc.out 2>/dev/null` in #(
3509 '0:this is the am__doit target') :
3512 am__include='.include' am__quote='"' ;; #(
3514 am__include='include' am__quote='' ;;
3519 if test "$am__include" != "#"; then
3520 _am_result="yes ($s style)"
3524 rm -f confinc.* confmf.*
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3526 printf "%s\n" "${_am_result}" >&6; }
3528 # Check whether --enable-dependency-tracking was given.
3529 if test ${enable_dependency_tracking+y}
3531 enableval=$enable_dependency_tracking;
3534 if test "x$enable_dependency_tracking" != xno; then
3535 am_depcomp="$ac_aux_dir/depcomp"
3539 if test "x$enable_dependency_tracking" != xno; then
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 if test -n "$ac_tool_prefix"; then
3554 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 printf %s "checking for $ac_word... " >&6; }
3558 if test ${ac_cv_prog_CC+y}
3560 printf %s "(cached) " >&6
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 case $as_dir in #(((
3572 *) as_dir=$as_dir/ ;;
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3587 if test -n "$CC"; then
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 printf "%s\n" "$CC" >&6; }
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 printf "%s\n" "no" >&6; }
3597 if test -z "$ac_cv_prog_CC"; then
3599 # Extract the first word of "gcc", so it can be a program name with args.
3600 set dummy gcc; ac_word=$2
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 printf %s "checking for $ac_word... " >&6; }
3603 if test ${ac_cv_prog_ac_ct_CC+y}
3605 printf %s "(cached) " >&6
3607 if test -n "$ac_ct_CC"; then
3608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 case $as_dir in #(((
3617 *) as_dir=$as_dir/ ;;
3619 for ac_exec_ext in '' $ac_executable_extensions; do
3620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3621 ac_cv_prog_ac_ct_CC="gcc"
3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 printf "%s\n" "$ac_ct_CC" >&6; }
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 printf "%s\n" "no" >&6; }
3640 if test "x$ac_ct_CC" = x; then
3643 case $cross_compiling:$ac_tool_warned in
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647 ac_tool_warned=yes ;;
3655 if test -z "$CC"; then
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}cc; ac_word=$2
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 printf %s "checking for $ac_word... " >&6; }
3661 if test ${ac_cv_prog_CC+y}
3663 printf %s "(cached) " >&6
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 case $as_dir in #(((
3675 *) as_dir=$as_dir/ ;;
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679 ac_cv_prog_CC="${ac_tool_prefix}cc"
3680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3690 if test -n "$CC"; then
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 printf "%s\n" "$CC" >&6; }
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 printf "%s\n" "no" >&6; }
3701 if test -z "$CC"; then
3702 # Extract the first word of "cc", so it can be a program name with args.
3703 set dummy cc; ac_word=$2
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 printf %s "checking for $ac_word... " >&6; }
3706 if test ${ac_cv_prog_CC+y}
3708 printf %s "(cached) " >&6
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 case $as_dir in #(((
3721 *) as_dir=$as_dir/ ;;
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3725 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726 ac_prog_rejected=yes
3730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3737 if test $ac_prog_rejected = yes; then
3738 # We found a bogon in the path, so make sure we never use it.
3739 set dummy $ac_cv_prog_CC
3741 if test $# != 0; then
3742 # We chose a different compiler from the bogus one.
3743 # However, it has the same basename, so the bogon will be chosen
3744 # first if we set CC to just the basename; use the full file name.
3746 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3752 if test -n "$CC"; then
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 printf "%s\n" "$CC" >&6; }
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 printf "%s\n" "no" >&6; }
3762 if test -z "$CC"; then
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog in cl.exe
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 printf %s "checking for $ac_word... " >&6; }
3770 if test ${ac_cv_prog_CC+y}
3772 printf %s "(cached) " >&6
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 case $as_dir in #(((
3784 *) as_dir=$as_dir/ ;;
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3788 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3799 if test -n "$CC"; then
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3801 printf "%s\n" "$CC" >&6; }
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 printf "%s\n" "no" >&6; }
3808 test -n "$CC" && break
3811 if test -z "$CC"; then
3813 for ac_prog in cl.exe
3815 # Extract the first word of "$ac_prog", so it can be a program name with args.
3816 set dummy $ac_prog; ac_word=$2
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 printf %s "checking for $ac_word... " >&6; }
3819 if test ${ac_cv_prog_ac_ct_CC+y}
3821 printf %s "(cached) " >&6
3823 if test -n "$ac_ct_CC"; then
3824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 case $as_dir in #(((
3833 *) as_dir=$as_dir/ ;;
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_CC="$ac_prog"
3838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3848 if test -n "$ac_ct_CC"; then
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3850 printf "%s\n" "$ac_ct_CC" >&6; }
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 printf "%s\n" "no" >&6; }
3857 test -n "$ac_ct_CC" && break
3860 if test "x$ac_ct_CC" = x; then
3863 case $cross_compiling:$ac_tool_warned in
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867 ac_tool_warned=yes ;;
3874 if test -z "$CC"; then
3875 if test -n "$ac_tool_prefix"; then
3876 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}clang; ac_word=$2
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 printf %s "checking for $ac_word... " >&6; }
3880 if test ${ac_cv_prog_CC+y}
3882 printf %s "(cached) " >&6
3884 if test -n "$CC"; then
3885 ac_cv_prog_CC="$CC" # Let the user override the test.
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 case $as_dir in #(((
3894 *) as_dir=$as_dir/ ;;
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_CC="${ac_tool_prefix}clang"
3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3909 if test -n "$CC"; then
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 printf "%s\n" "$CC" >&6; }
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 printf "%s\n" "no" >&6; }
3919 if test -z "$ac_cv_prog_CC"; then
3921 # Extract the first word of "clang", so it can be a program name with args.
3922 set dummy clang; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_ac_ct_CC+y}
3927 printf %s "(cached) " >&6
3929 if test -n "$ac_ct_CC"; then
3930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 case $as_dir in #(((
3939 *) as_dir=$as_dir/ ;;
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_CC="clang"
3944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3954 if test -n "$ac_ct_CC"; then
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3956 printf "%s\n" "$ac_ct_CC" >&6; }
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3962 if test "x$ac_ct_CC" = x; then
3965 case $cross_compiling:$ac_tool_warned in
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969 ac_tool_warned=yes ;;
3980 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "no acceptable C compiler found in \$PATH
3983 See \`config.log' for more details" "$LINENO" 5; }
3985 # Provide some information about the compiler.
3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3989 for ac_option in --version -v -V -qversion -version; do
3990 { { ac_try="$ac_compiler $ac_option >&5"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996 printf "%s\n" "$ac_try_echo"; } >&5
3997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3999 if test -s conftest.err; then
4001 ... rest of stderr output deleted ...
4002 10q' conftest.err >conftest.er1
4003 cat conftest.er1 >&5
4005 rm -f conftest.er1 conftest.err
4006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 ac_clean_files_save=$ac_clean_files
4022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4023 # Try to create an executable without -o first, disregard a.out.
4024 # It will help us diagnose broken compilers, and finding out an intuition
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4027 printf %s "checking whether the C compiler works... " >&6; }
4028 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4030 # The possible output files:
4031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4034 for ac_file in $ac_files
4037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4038 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4043 if { { ac_try="$ac_link_default"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 printf "%s\n" "$ac_try_echo"; } >&5
4050 (eval "$ac_link_default") 2>&5
4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4057 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4058 # so that the user can short-circuit this test for compilers unknown to
4060 for ac_file in $ac_files ''
4062 test -f "$ac_file" || continue
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4067 # We found the default executable, but exeext='' is most
4071 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4075 # We set ac_cv_exeext here because the later test for it is not
4076 # safe: cross compilers may not add the suffix if given an `-o'
4077 # argument, so we may need to know it at that point already.
4078 # Even if this section looks crufty: it has the advantage of
4085 test "$ac_cv_exeext" = no && ac_cv_exeext=
4090 if test -z "$ac_file"
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 printf "%s\n" "no" >&6; }
4094 printf "%s\n" "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error 77 "C compiler cannot create executables
4100 See \`config.log' for more details" "$LINENO" 5; }
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 printf "%s\n" "yes" >&6; }
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4106 printf %s "checking for C compiler default output file name... " >&6; }
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4108 printf "%s\n" "$ac_file" >&6; }
4109 ac_exeext=$ac_cv_exeext
4111 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4112 ac_clean_files=$ac_clean_files_save
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114 printf %s "checking for suffix of executables... " >&6; }
4115 if { { ac_try="$ac_link"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 printf "%s\n" "$ac_try_echo"; } >&5
4122 (eval "$ac_link") 2>&5
4124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }
4127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4129 # work properly (i.e., refer to `conftest.exe'), while it won't with
4131 for ac_file in conftest.exe conftest conftest.*; do
4132 test -f "$ac_file" || continue
4134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4143 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4144 See \`config.log' for more details" "$LINENO" 5; }
4146 rm -f conftest conftest$ac_cv_exeext
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4148 printf "%s\n" "$ac_cv_exeext" >&6; }
4150 rm -f conftest.$ac_ext
4151 EXEEXT=$ac_cv_exeext
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4159 FILE *f = fopen ("conftest.out", "w");
4160 return ferror (f) || fclose (f) != 0;
4166 ac_clean_files="$ac_clean_files conftest.out"
4167 # Check that the compiler produces executables we can run. If not, either
4168 # the compiler is broken, or we cross compile.
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4170 printf %s "checking whether we are cross compiling... " >&6; }
4171 if test "$cross_compiling" != yes; then
4172 { { ac_try="$ac_link"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 printf "%s\n" "$ac_try_echo"; } >&5
4179 (eval "$ac_link") 2>&5
4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4182 test $ac_status = 0; }
4183 if { ac_try='./conftest$ac_cv_exeext'
4184 { { case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 printf "%s\n" "$ac_try_echo"; } >&5
4190 (eval "$ac_try") 2>&5
4192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193 test $ac_status = 0; }; }; then
4196 if test "$cross_compiling" = maybe; then
4199 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error 77 "cannot run C compiled programs.
4202 If you meant to cross compile, use \`--host'.
4203 See \`config.log' for more details" "$LINENO" 5; }
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4208 printf "%s\n" "$cross_compiling" >&6; }
4210 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4211 ac_clean_files=$ac_clean_files_save
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4213 printf %s "checking for suffix of object files... " >&6; }
4214 if test ${ac_cv_objext+y}
4216 printf %s "(cached) " >&6
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4229 rm -f conftest.o conftest.obj
4230 if { { ac_try="$ac_compile"
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4236 printf "%s\n" "$ac_try_echo"; } >&5
4237 (eval "$ac_compile") 2>&5
4239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4240 test $ac_status = 0; }
4242 for ac_file in conftest.o conftest.obj conftest.*; do
4243 test -f "$ac_file" || continue;
4245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4246 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4251 printf "%s\n" "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4256 as_fn_error $? "cannot compute suffix of object files: cannot compile
4257 See \`config.log' for more details" "$LINENO" 5; }
4259 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4262 printf "%s\n" "$ac_cv_objext" >&6; }
4263 OBJEXT=$ac_cv_objext
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4266 printf %s "checking whether the compiler supports GNU C... " >&6; }
4267 if test ${ac_cv_c_compiler_gnu+y}
4269 printf %s "(cached) " >&6
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4285 if ac_fn_c_try_compile "$LINENO"
4291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4292 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4296 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 if test $ac_compiler_gnu = yes; then
4304 ac_test_CFLAGS=${CFLAGS+y}
4305 ac_save_CFLAGS=$CFLAGS
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307 printf %s "checking whether $CC accepts -g... " >&6; }
4308 if test ${ac_cv_prog_cc_g+y}
4310 printf %s "(cached) " >&6
4312 ac_save_c_werror_flag=$ac_c_werror_flag
4313 ac_c_werror_flag=yes
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4327 if ac_fn_c_try_compile "$LINENO"
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4343 if ac_fn_c_try_compile "$LINENO"
4347 ac_c_werror_flag=$ac_save_c_werror_flag
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 if ac_fn_c_try_compile "$LINENO"
4364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4372 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4373 if test $ac_test_CFLAGS; then
4374 CFLAGS=$ac_save_CFLAGS
4375 elif test $ac_cv_prog_cc_g = yes; then
4376 if test "$GCC" = yes; then
4382 if test "$GCC" = yes; then
4389 if test x$ac_prog_cc_stdc = xno
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4392 printf %s "checking for $CC option to enable C11 features... " >&6; }
4393 if test ${ac_cv_prog_cc_c11+y}
4395 printf %s "(cached) " >&6
4397 ac_cv_prog_cc_c11=no
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 $ac_c_conftest_c11_program
4403 for ac_arg in '' -std=gnu11
4405 CC="$ac_save_CC $ac_arg"
4406 if ac_fn_c_try_compile "$LINENO"
4408 ac_cv_prog_cc_c11=$ac_arg
4410 rm -f core conftest.err conftest.$ac_objext conftest.beam
4411 test "x$ac_cv_prog_cc_c11" != "xno" && break
4413 rm -f conftest.$ac_ext
4417 if test "x$ac_cv_prog_cc_c11" = xno
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4420 printf "%s\n" "unsupported" >&6; }
4422 if test "x$ac_cv_prog_cc_c11" = x
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4425 printf "%s\n" "none needed" >&6; }
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4428 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4429 CC="$CC $ac_cv_prog_cc_c11"
4431 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4435 if test x$ac_prog_cc_stdc = xno
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4438 printf %s "checking for $CC option to enable C99 features... " >&6; }
4439 if test ${ac_cv_prog_cc_c99+y}
4441 printf %s "(cached) " >&6
4443 ac_cv_prog_cc_c99=no
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 $ac_c_conftest_c99_program
4449 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4451 CC="$ac_save_CC $ac_arg"
4452 if ac_fn_c_try_compile "$LINENO"
4454 ac_cv_prog_cc_c99=$ac_arg
4456 rm -f core conftest.err conftest.$ac_objext conftest.beam
4457 test "x$ac_cv_prog_cc_c99" != "xno" && break
4459 rm -f conftest.$ac_ext
4463 if test "x$ac_cv_prog_cc_c99" = xno
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4466 printf "%s\n" "unsupported" >&6; }
4468 if test "x$ac_cv_prog_cc_c99" = x
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4471 printf "%s\n" "none needed" >&6; }
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4474 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4475 CC="$CC $ac_cv_prog_cc_c99"
4477 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4481 if test x$ac_prog_cc_stdc = xno
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4484 printf %s "checking for $CC option to enable C89 features... " >&6; }
4485 if test ${ac_cv_prog_cc_c89+y}
4487 printf %s "(cached) " >&6
4489 ac_cv_prog_cc_c89=no
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 $ac_c_conftest_c89_program
4495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4497 CC="$ac_save_CC $ac_arg"
4498 if ac_fn_c_try_compile "$LINENO"
4500 ac_cv_prog_cc_c89=$ac_arg
4502 rm -f core conftest.err conftest.$ac_objext conftest.beam
4503 test "x$ac_cv_prog_cc_c89" != "xno" && break
4505 rm -f conftest.$ac_ext
4509 if test "x$ac_cv_prog_cc_c89" = xno
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512 printf "%s\n" "unsupported" >&6; }
4514 if test "x$ac_cv_prog_cc_c89" = x
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4517 printf "%s\n" "none needed" >&6; }
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4520 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4521 CC="$CC $ac_cv_prog_cc_c89"
4523 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4541 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4542 if test ${am_cv_prog_cc_c_o+y}
4544 printf %s "(cached) " >&6
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4557 # Make sure it works both with $CC and with simple cc.
4558 # Following AC_PROG_CC_C_O, we do the test twice because some
4559 # compilers refuse to overwrite an existing .o file with -o,
4560 # though they will create one.
4561 am_cv_prog_cc_c_o=yes
4563 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4564 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } \
4568 && test -f conftest2.$ac_objext; then
4571 am_cv_prog_cc_c_o=no
4575 rm -f core conftest*
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4579 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4580 if test "$am_cv_prog_cc_c_o" != yes; then
4581 # Losing compiler, so override with the script.
4582 # FIXME: It is wrong to rewrite CC.
4583 # But if we don't then we get into trouble of one sort or another.
4584 # A longer-term fix would be to have automake use am__CC in this case,
4585 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4586 CC="$am_aux_dir/compile $CC"
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
4597 printf %s "checking whether the compiler is clang... " >&6; }
4598 if test ${gl_cv_compiler_clang+y}
4600 printf %s "(cached) " >&6
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4618 if ac_fn_c_try_compile "$LINENO"
4620 gl_cv_compiler_clang=no
4622 gl_cv_compiler_clang=yes
4624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
4628 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
4632 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
4633 if test ${gl_cv_compiler_check_decl_option+y}
4635 printf %s "(cached) " >&6
4637 if test $gl_cv_compiler_clang = yes; then
4638 save_ac_compile="$ac_compile"
4639 ac_compile="$ac_compile -Werror=implicit-function-declaration"
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4651 if ac_fn_c_try_compile "$LINENO"
4653 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
4655 gl_cv_compiler_check_decl_option=none
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4658 ac_compile="$save_ac_compile"
4660 gl_cv_compiler_check_decl_option=none
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
4665 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
4666 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
4667 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
4669 ac_compile_for_check_decl="$ac_compile"
4673 depcc="$CC" am_compiler_list=
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4676 printf %s "checking dependency style of $depcc... " >&6; }
4677 if test ${am_cv_CC_dependencies_compiler_type+y}
4679 printf %s "(cached) " >&6
4681 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4682 # We make a subdir and do the tests there. Otherwise we can end up
4683 # making bogus files that we don't know about and never remove. For
4684 # instance it was reported that on HP-UX the gcc test will end up
4685 # making a dummy file named 'D' -- because '-MD' means "put the output
4689 # Copy depcomp to subdir because otherwise we won't find it if we're
4690 # using a relative directory.
4691 cp "$am_depcomp" conftest.dir
4693 # We will build objects and dependencies in a subdirectory because
4694 # it helps to detect inapplicable dependency modes. For instance
4695 # both Tru64's cc and ICC support -MD to output dependencies as a
4696 # side effect of compilation, but ICC will put the dependencies in
4697 # the current directory while Tru64 will put them in the object
4701 am_cv_CC_dependencies_compiler_type=none
4702 if test "$am_compiler_list" = ""; then
4703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4706 case " $depcc " in #(
4707 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4710 for depmode in $am_compiler_list; do
4711 # Setup a source with many dependencies, because some compilers
4712 # like to wrap large dependency lists on column 80 (with \), and
4713 # we should not choose a depcomp mode which is confused by this.
4715 # We need to recreate these files for each test, as the compiler may
4716 # overwrite some of them when testing with obscure command lines.
4717 # This happens at least with the AIX C compiler.
4719 for i in 1 2 3 4 5 6; do
4720 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4721 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4722 # Solaris 10 /bin/sh.
4723 echo '/* dummy */' > sub/conftst$i.h
4725 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4727 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4728 # mode. It turns out that the SunPro C++ compiler does not properly
4729 # handle '-M -o', and we need to detect this. Also, some Intel
4730 # versions had trouble with output in subdirs.
4731 am__obj=sub/conftest.${OBJEXT-o}
4732 am__minus_obj="-o $am__obj"
4735 # This depmode causes a compiler race in universal mode.
4736 test "$am__universal" = false || continue
4739 # After this tag, mechanisms are not by side-effect, so they'll
4740 # only be used when explicitly requested.
4741 if test "x$enable_dependency_tracking" = xyes; then
4747 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4748 # This compiler won't grok '-c -o', but also, the minuso test has
4749 # not run yet. These depmodes are late enough in the game, and
4750 # so weak that their functioning should not be impacted.
4751 am__obj=conftest.${OBJEXT-o}
4756 if depmode=$depmode \
4757 source=sub/conftest.c object=$am__obj \
4758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4759 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4760 >/dev/null 2>conftest.err &&
4761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4763 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4765 # icc doesn't choke on unknown options, it will just issue warnings
4766 # or remarks (even with -Werror). So we grep stderr for any message
4767 # that says an option was ignored or not supported.
4768 # When given -MP, icc 7.0 and 7.1 complain thusly:
4769 # icc: Command line warning: ignoring option '-M'; no argument required
4770 # The diagnosis changed in icc 8.0:
4771 # icc: Command line remark: option '-MP' not supported
4772 if (grep 'ignoring option' conftest.err ||
4773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4774 am_cv_CC_dependencies_compiler_type=$depmode
4783 am_cv_CC_dependencies_compiler_type=none
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4788 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4789 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4792 test "x$enable_dependency_tracking" != xno \
4793 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4795 am__fastdepCC_FALSE='#'
4797 am__fastdepCC_TRUE='#'
4798 am__fastdepCC_FALSE=
4803 ac_header= ac_cache=
4804 for ac_item in $ac_header_c_list
4806 if test $ac_cache; then
4807 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4808 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4809 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4811 ac_header= ac_cache=
4812 elif test $ac_header; then
4826 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4829 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4839 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4840 if test ${ac_cv_safe_to_define___extensions__+y}
4842 printf %s "(cached) " >&6
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4847 # define __EXTENSIONS__ 1
4848 $ac_includes_default
4857 if ac_fn_c_try_compile "$LINENO"
4859 ac_cv_safe_to_define___extensions__=yes
4861 ac_cv_safe_to_define___extensions__=no
4863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4866 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4869 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4870 if test ${ac_cv_should_define__xopen_source+y}
4872 printf %s "(cached) " >&6
4874 ac_cv_should_define__xopen_source=no
4875 if test $ac_cv_header_wchar_h = yes
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4890 if ac_fn_c_try_compile "$LINENO"
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4897 #define _XOPEN_SOURCE 500
4908 if ac_fn_c_try_compile "$LINENO"
4910 ac_cv_should_define__xopen_source=yes
4912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4918 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4920 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4922 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4924 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4926 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4928 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4930 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4932 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4934 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4936 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4938 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4940 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4942 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4944 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4946 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4948 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4950 if test $ac_cv_header_minix_config_h = yes
4953 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4955 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4957 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4962 if test $ac_cv_safe_to_define___extensions__ = yes
4964 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4967 if test $ac_cv_should_define__xopen_source = yes
4969 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 printf %s "checking for $ac_word... " >&6; }
4983 if test ${ac_cv_prog_CC+y}
4985 printf %s "(cached) " >&6
4987 if test -n "$CC"; then
4988 ac_cv_prog_CC="$CC" # Let the user override the test.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 case $as_dir in #(((
4997 *) as_dir=$as_dir/ ;;
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5012 if test -n "$CC"; then
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 printf "%s\n" "$CC" >&6; }
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 printf "%s\n" "no" >&6; }
5022 if test -z "$ac_cv_prog_CC"; then
5024 # Extract the first word of "gcc", so it can be a program name with args.
5025 set dummy gcc; ac_word=$2
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 printf %s "checking for $ac_word... " >&6; }
5028 if test ${ac_cv_prog_ac_ct_CC+y}
5030 printf %s "(cached) " >&6
5032 if test -n "$ac_ct_CC"; then
5033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 case $as_dir in #(((
5042 *) as_dir=$as_dir/ ;;
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_ac_ct_CC="gcc"
5047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5057 if test -n "$ac_ct_CC"; then
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5059 printf "%s\n" "$ac_ct_CC" >&6; }
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 printf "%s\n" "no" >&6; }
5065 if test "x$ac_ct_CC" = x; then
5068 case $cross_compiling:$ac_tool_warned in
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5080 if test -z "$CC"; then
5081 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}cc; ac_word=$2
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 printf %s "checking for $ac_word... " >&6; }
5086 if test ${ac_cv_prog_CC+y}
5088 printf %s "(cached) " >&6
5090 if test -n "$CC"; then
5091 ac_cv_prog_CC="$CC" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 case $as_dir in #(((
5100 *) as_dir=$as_dir/ ;;
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_CC="${ac_tool_prefix}cc"
5105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5115 if test -n "$CC"; then
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5117 printf "%s\n" "$CC" >&6; }
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 printf "%s\n" "no" >&6; }
5126 if test -z "$CC"; then
5127 # Extract the first word of "cc", so it can be a program name with args.
5128 set dummy cc; ac_word=$2
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 printf %s "checking for $ac_word... " >&6; }
5131 if test ${ac_cv_prog_CC+y}
5133 printf %s "(cached) " >&6
5135 if test -n "$CC"; then
5136 ac_cv_prog_CC="$CC" # Let the user override the test.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 case $as_dir in #(((
5146 *) as_dir=$as_dir/ ;;
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5150 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5151 ac_prog_rejected=yes
5155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5162 if test $ac_prog_rejected = yes; then
5163 # We found a bogon in the path, so make sure we never use it.
5164 set dummy $ac_cv_prog_CC
5166 if test $# != 0; then
5167 # We chose a different compiler from the bogus one.
5168 # However, it has the same basename, so the bogon will be chosen
5169 # first if we set CC to just the basename; use the full file name.
5171 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5177 if test -n "$CC"; then
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5179 printf "%s\n" "$CC" >&6; }
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 printf "%s\n" "no" >&6; }
5187 if test -z "$CC"; then
5188 if test -n "$ac_tool_prefix"; then
5189 for ac_prog in cl.exe
5191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 printf %s "checking for $ac_word... " >&6; }
5195 if test ${ac_cv_prog_CC+y}
5197 printf %s "(cached) " >&6
5199 if test -n "$CC"; then
5200 ac_cv_prog_CC="$CC" # Let the user override the test.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 case $as_dir in #(((
5209 *) as_dir=$as_dir/ ;;
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5224 if test -n "$CC"; then
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5226 printf "%s\n" "$CC" >&6; }
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 printf "%s\n" "no" >&6; }
5233 test -n "$CC" && break
5236 if test -z "$CC"; then
5238 for ac_prog in cl.exe
5240 # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 printf %s "checking for $ac_word... " >&6; }
5244 if test ${ac_cv_prog_ac_ct_CC+y}
5246 printf %s "(cached) " >&6
5248 if test -n "$ac_ct_CC"; then
5249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 case $as_dir in #(((
5258 *) as_dir=$as_dir/ ;;
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_ac_ct_CC="$ac_prog"
5263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5273 if test -n "$ac_ct_CC"; then
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5275 printf "%s\n" "$ac_ct_CC" >&6; }
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 printf "%s\n" "no" >&6; }
5282 test -n "$ac_ct_CC" && break
5285 if test "x$ac_ct_CC" = x; then
5288 case $cross_compiling:$ac_tool_warned in
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292 ac_tool_warned=yes ;;
5299 if test -z "$CC"; then
5300 if test -n "$ac_tool_prefix"; then
5301 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5302 set dummy ${ac_tool_prefix}clang; ac_word=$2
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 printf %s "checking for $ac_word... " >&6; }
5305 if test ${ac_cv_prog_CC+y}
5307 printf %s "(cached) " >&6
5309 if test -n "$CC"; then
5310 ac_cv_prog_CC="$CC" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 case $as_dir in #(((
5319 *) as_dir=$as_dir/ ;;
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_CC="${ac_tool_prefix}clang"
5324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5334 if test -n "$CC"; then
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5336 printf "%s\n" "$CC" >&6; }
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 printf "%s\n" "no" >&6; }
5344 if test -z "$ac_cv_prog_CC"; then
5346 # Extract the first word of "clang", so it can be a program name with args.
5347 set dummy clang; ac_word=$2
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 printf %s "checking for $ac_word... " >&6; }
5350 if test ${ac_cv_prog_ac_ct_CC+y}
5352 printf %s "(cached) " >&6
5354 if test -n "$ac_ct_CC"; then
5355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 case $as_dir in #(((
5364 *) as_dir=$as_dir/ ;;
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_ac_ct_CC="clang"
5369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5379 if test -n "$ac_ct_CC"; then
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5381 printf "%s\n" "$ac_ct_CC" >&6; }
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 printf "%s\n" "no" >&6; }
5387 if test "x$ac_ct_CC" = x; then
5390 case $cross_compiling:$ac_tool_warned in
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5405 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error $? "no acceptable C compiler found in \$PATH
5408 See \`config.log' for more details" "$LINENO" 5; }
5410 # Provide some information about the compiler.
5411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5414 for ac_option in --version -v -V -qversion -version; do
5415 { { ac_try="$ac_compiler $ac_option >&5"
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5421 printf "%s\n" "$ac_try_echo"; } >&5
5422 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5424 if test -s conftest.err; then
5426 ... rest of stderr output deleted ...
5427 10q' conftest.err >conftest.er1
5428 cat conftest.er1 >&5
5430 rm -f conftest.er1 conftest.err
5431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5432 test $ac_status = 0; }
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5436 printf %s "checking whether the compiler supports GNU C... " >&6; }
5437 if test ${ac_cv_c_compiler_gnu+y}
5439 printf %s "(cached) " >&6
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5455 if ac_fn_c_try_compile "$LINENO"
5461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5462 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5466 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469 if test $ac_compiler_gnu = yes; then
5474 ac_test_CFLAGS=${CFLAGS+y}
5475 ac_save_CFLAGS=$CFLAGS
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5477 printf %s "checking whether $CC accepts -g... " >&6; }
5478 if test ${ac_cv_prog_cc_g+y}
5480 printf %s "(cached) " >&6
5482 ac_save_c_werror_flag=$ac_c_werror_flag
5483 ac_c_werror_flag=yes
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5497 if ac_fn_c_try_compile "$LINENO"
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5513 if ac_fn_c_try_compile "$LINENO"
5517 ac_c_werror_flag=$ac_save_c_werror_flag
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5530 if ac_fn_c_try_compile "$LINENO"
5534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5539 ac_c_werror_flag=$ac_save_c_werror_flag
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5542 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5543 if test $ac_test_CFLAGS; then
5544 CFLAGS=$ac_save_CFLAGS
5545 elif test $ac_cv_prog_cc_g = yes; then
5546 if test "$GCC" = yes; then
5552 if test "$GCC" = yes; then
5559 if test x$ac_prog_cc_stdc = xno
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5562 printf %s "checking for $CC option to enable C11 features... " >&6; }
5563 if test ${ac_cv_prog_cc_c11+y}
5565 printf %s "(cached) " >&6
5567 ac_cv_prog_cc_c11=no
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 $ac_c_conftest_c11_program
5573 for ac_arg in '' -std=gnu11
5575 CC="$ac_save_CC $ac_arg"
5576 if ac_fn_c_try_compile "$LINENO"
5578 ac_cv_prog_cc_c11=$ac_arg
5580 rm -f core conftest.err conftest.$ac_objext conftest.beam
5581 test "x$ac_cv_prog_cc_c11" != "xno" && break
5583 rm -f conftest.$ac_ext
5587 if test "x$ac_cv_prog_cc_c11" = xno
5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5590 printf "%s\n" "unsupported" >&6; }
5592 if test "x$ac_cv_prog_cc_c11" = x
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5595 printf "%s\n" "none needed" >&6; }
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5598 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5599 CC="$CC $ac_cv_prog_cc_c11"
5601 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5605 if test x$ac_prog_cc_stdc = xno
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5608 printf %s "checking for $CC option to enable C99 features... " >&6; }
5609 if test ${ac_cv_prog_cc_c99+y}
5611 printf %s "(cached) " >&6
5613 ac_cv_prog_cc_c99=no
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 $ac_c_conftest_c99_program
5619 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5621 CC="$ac_save_CC $ac_arg"
5622 if ac_fn_c_try_compile "$LINENO"
5624 ac_cv_prog_cc_c99=$ac_arg
5626 rm -f core conftest.err conftest.$ac_objext conftest.beam
5627 test "x$ac_cv_prog_cc_c99" != "xno" && break
5629 rm -f conftest.$ac_ext
5633 if test "x$ac_cv_prog_cc_c99" = xno
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5636 printf "%s\n" "unsupported" >&6; }
5638 if test "x$ac_cv_prog_cc_c99" = x
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5641 printf "%s\n" "none needed" >&6; }
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5644 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5645 CC="$CC $ac_cv_prog_cc_c99"
5647 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5651 if test x$ac_prog_cc_stdc = xno
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5654 printf %s "checking for $CC option to enable C89 features... " >&6; }
5655 if test ${ac_cv_prog_cc_c89+y}
5657 printf %s "(cached) " >&6
5659 ac_cv_prog_cc_c89=no
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 $ac_c_conftest_c89_program
5665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5667 CC="$ac_save_CC $ac_arg"
5668 if ac_fn_c_try_compile "$LINENO"
5670 ac_cv_prog_cc_c89=$ac_arg
5672 rm -f core conftest.err conftest.$ac_objext conftest.beam
5673 test "x$ac_cv_prog_cc_c89" != "xno" && break
5675 rm -f conftest.$ac_ext
5679 if test "x$ac_cv_prog_cc_c89" = xno
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5682 printf "%s\n" "unsupported" >&6; }
5684 if test "x$ac_cv_prog_cc_c89" = x
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5687 printf "%s\n" "none needed" >&6; }
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5690 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5691 CC="$CC $ac_cv_prog_cc_c89"
5693 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5711 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5712 if test ${am_cv_prog_cc_c_o+y}
5714 printf %s "(cached) " >&6
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5727 # Make sure it works both with $CC and with simple cc.
5728 # Following AC_PROG_CC_C_O, we do the test twice because some
5729 # compilers refuse to overwrite an existing .o file with -o,
5730 # though they will create one.
5731 am_cv_prog_cc_c_o=yes
5733 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5734 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } \
5738 && test -f conftest2.$ac_objext; then
5741 am_cv_prog_cc_c_o=no
5745 rm -f core conftest*
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5749 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5750 if test "$am_cv_prog_cc_c_o" != yes; then
5751 # Losing compiler, so override with the script.
5752 # FIXME: It is wrong to rewrite CC.
5753 # But if we don't then we get into trouble of one sort or another.
5754 # A longer-term fix would be to have automake use am__CC in this case,
5755 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5756 CC="$am_aux_dir/compile $CC"
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5767 printf %s "checking whether the compiler is clang... " >&6; }
5768 if test ${gl_cv_compiler_clang+y}
5770 printf %s "(cached) " >&6
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5788 if ac_fn_c_try_compile "$LINENO"
5790 gl_cv_compiler_clang=no
5792 gl_cv_compiler_clang=yes
5794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5798 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5802 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5803 if test ${gl_cv_compiler_check_decl_option+y}
5805 printf %s "(cached) " >&6
5807 if test $gl_cv_compiler_clang = yes; then
5808 save_ac_compile="$ac_compile"
5809 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5821 if ac_fn_c_try_compile "$LINENO"
5823 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5825 gl_cv_compiler_check_decl_option=none
5827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5828 ac_compile="$save_ac_compile"
5830 gl_cv_compiler_check_decl_option=none
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5835 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5836 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5837 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5839 ac_compile_for_check_decl="$ac_compile"
5843 depcc="$CC" am_compiler_list=
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5846 printf %s "checking dependency style of $depcc... " >&6; }
5847 if test ${am_cv_CC_dependencies_compiler_type+y}
5849 printf %s "(cached) " >&6
5851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5852 # We make a subdir and do the tests there. Otherwise we can end up
5853 # making bogus files that we don't know about and never remove. For
5854 # instance it was reported that on HP-UX the gcc test will end up
5855 # making a dummy file named 'D' -- because '-MD' means "put the output
5859 # Copy depcomp to subdir because otherwise we won't find it if we're
5860 # using a relative directory.
5861 cp "$am_depcomp" conftest.dir
5863 # We will build objects and dependencies in a subdirectory because
5864 # it helps to detect inapplicable dependency modes. For instance
5865 # both Tru64's cc and ICC support -MD to output dependencies as a
5866 # side effect of compilation, but ICC will put the dependencies in
5867 # the current directory while Tru64 will put them in the object
5871 am_cv_CC_dependencies_compiler_type=none
5872 if test "$am_compiler_list" = ""; then
5873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5876 case " $depcc " in #(
5877 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5880 for depmode in $am_compiler_list; do
5881 # Setup a source with many dependencies, because some compilers
5882 # like to wrap large dependency lists on column 80 (with \), and
5883 # we should not choose a depcomp mode which is confused by this.
5885 # We need to recreate these files for each test, as the compiler may
5886 # overwrite some of them when testing with obscure command lines.
5887 # This happens at least with the AIX C compiler.
5889 for i in 1 2 3 4 5 6; do
5890 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5891 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5892 # Solaris 10 /bin/sh.
5893 echo '/* dummy */' > sub/conftst$i.h
5895 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5897 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5898 # mode. It turns out that the SunPro C++ compiler does not properly
5899 # handle '-M -o', and we need to detect this. Also, some Intel
5900 # versions had trouble with output in subdirs.
5901 am__obj=sub/conftest.${OBJEXT-o}
5902 am__minus_obj="-o $am__obj"
5905 # This depmode causes a compiler race in universal mode.
5906 test "$am__universal" = false || continue
5909 # After this tag, mechanisms are not by side-effect, so they'll
5910 # only be used when explicitly requested.
5911 if test "x$enable_dependency_tracking" = xyes; then
5917 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5918 # This compiler won't grok '-c -o', but also, the minuso test has
5919 # not run yet. These depmodes are late enough in the game, and
5920 # so weak that their functioning should not be impacted.
5921 am__obj=conftest.${OBJEXT-o}
5926 if depmode=$depmode \
5927 source=sub/conftest.c object=$am__obj \
5928 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5929 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5930 >/dev/null 2>conftest.err &&
5931 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5932 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5933 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5934 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5935 # icc doesn't choke on unknown options, it will just issue warnings
5936 # or remarks (even with -Werror). So we grep stderr for any message
5937 # that says an option was ignored or not supported.
5938 # When given -MP, icc 7.0 and 7.1 complain thusly:
5939 # icc: Command line warning: ignoring option '-M'; no argument required
5940 # The diagnosis changed in icc 8.0:
5941 # icc: Command line remark: option '-MP' not supported
5942 if (grep 'ignoring option' conftest.err ||
5943 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5944 am_cv_CC_dependencies_compiler_type=$depmode
5953 am_cv_CC_dependencies_compiler_type=none
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5958 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5959 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5962 test "x$enable_dependency_tracking" != xno \
5963 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5965 am__fastdepCC_FALSE='#'
5967 am__fastdepCC_TRUE='#'
5968 am__fastdepCC_FALSE=
5976 # Make sure we can run config.sub.
5977 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5978 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5981 printf %s "checking build system type... " >&6; }
5982 if test ${ac_cv_build+y}
5984 printf %s "(cached) " >&6
5986 ac_build_alias=$build_alias
5987 test "x$ac_build_alias" = x &&
5988 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5989 test "x$ac_build_alias" = x &&
5990 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5991 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5992 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5996 printf "%s\n" "$ac_cv_build" >&6; }
5997 case $ac_cv_build in
5999 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6002 ac_save_IFS=$IFS; IFS='-'
6008 # Remember, the first character of IFS is used to create $*,
6009 # except with old shells:
6012 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6016 printf %s "checking host system type... " >&6; }
6017 if test ${ac_cv_host+y}
6019 printf %s "(cached) " >&6
6021 if test "x$host_alias" = x; then
6022 ac_cv_host=$ac_cv_build
6024 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6025 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6030 printf "%s\n" "$ac_cv_host" >&6; }
6033 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6036 ac_save_IFS=$IFS; IFS='-'
6042 # Remember, the first character of IFS is used to create $*,
6043 # except with old shells:
6046 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6056 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
6062 ac_cpp='$CPP $CPPFLAGS'
6063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6067 printf %s "checking how to run the C preprocessor... " >&6; }
6068 # On Suns, sometimes $CPP names a directory.
6069 if test -n "$CPP" && test -d "$CPP"; then
6072 if test -z "$CPP"; then
6073 if test ${ac_cv_prog_CPP+y}
6075 printf %s "(cached) " >&6
6077 # Double quotes because $CC needs to be expanded
6078 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6081 for ac_c_preproc_warn_flag in '' yes
6083 # Use a header file that comes with gcc, so configuring glibc
6084 # with a fresh cross-compiler works.
6085 # On the NeXT, cc -E runs the code through the compiler's parser,
6086 # not just through cpp. "Syntax error" is here to catch this case.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6092 if ac_fn_c_try_cpp "$LINENO"
6096 # Broken: fails on valid input.
6099 rm -f conftest.err conftest.i conftest.$ac_ext
6101 # OK, works on sane cases. Now check whether nonexistent headers
6102 # can be detected and how.
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #include <ac_nonexistent.h>
6107 if ac_fn_c_try_cpp "$LINENO"
6109 # Broken: success on invalid input.
6112 # Passes both tests.
6116 rm -f conftest.err conftest.i conftest.$ac_ext
6119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6120 rm -f conftest.i conftest.err conftest.$ac_ext
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6135 printf "%s\n" "$CPP" >&6; }
6137 for ac_c_preproc_warn_flag in '' yes
6139 # Use a header file that comes with gcc, so configuring glibc
6140 # with a fresh cross-compiler works.
6141 # On the NeXT, cc -E runs the code through the compiler's parser,
6142 # not just through cpp. "Syntax error" is here to catch this case.
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6148 if ac_fn_c_try_cpp "$LINENO"
6152 # Broken: fails on valid input.
6155 rm -f conftest.err conftest.i conftest.$ac_ext
6157 # OK, works on sane cases. Now check whether nonexistent headers
6158 # can be detected and how.
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 #include <ac_nonexistent.h>
6163 if ac_fn_c_try_cpp "$LINENO"
6165 # Broken: success on invalid input.
6168 # Passes both tests.
6172 rm -f conftest.err conftest.i conftest.$ac_ext
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.i conftest.err conftest.$ac_ext
6181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6183 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details" "$LINENO" 5; }
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6195 printf %s "checking for grep that handles long lines and -e... " >&6; }
6196 if test ${ac_cv_path_GREP+y}
6198 printf %s "(cached) " >&6
6200 if test -z "$GREP"; then
6201 ac_path_GREP_found=false
6202 # Loop through the user's path and test for each of PROGNAME-LIST
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6207 case $as_dir in #(((
6210 *) as_dir=$as_dir/ ;;
6212 for ac_prog in grep ggrep
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6216 as_fn_executable_p "$ac_path_GREP" || continue
6217 # Check for GNU ac_path_GREP and select it if it is found.
6218 # Check for GNU $ac_path_GREP
6219 case `"$ac_path_GREP" --version 2>&1` in
6221 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6224 printf %s 0123456789 >"conftest.in"
6227 cat "conftest.in" "conftest.in" >"conftest.tmp"
6228 mv "conftest.tmp" "conftest.in"
6229 cp "conftest.in" "conftest.nl"
6230 printf "%s\n" 'GREP' >> "conftest.nl"
6231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233 as_fn_arith $ac_count + 1 && ac_count=$as_val
6234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6235 # Best one so far, save it but keep looking for a better one
6236 ac_cv_path_GREP="$ac_path_GREP"
6237 ac_path_GREP_max=$ac_count
6239 # 10*(2^10) chars as input seems more than enough
6240 test $ac_count -gt 10 && break
6242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245 $ac_path_GREP_found && break 3
6250 if test -z "$ac_cv_path_GREP"; then
6251 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6254 ac_cv_path_GREP=$GREP
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6259 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6260 GREP="$ac_cv_path_GREP"
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6264 printf %s "checking for egrep... " >&6; }
6265 if test ${ac_cv_path_EGREP+y}
6267 printf %s "(cached) " >&6
6269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6270 then ac_cv_path_EGREP="$GREP -E"
6272 if test -z "$EGREP"; then
6273 ac_path_EGREP_found=false
6274 # Loop through the user's path and test for each of PROGNAME-LIST
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6279 case $as_dir in #(((
6282 *) as_dir=$as_dir/ ;;
6284 for ac_prog in egrep
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6288 as_fn_executable_p "$ac_path_EGREP" || continue
6289 # Check for GNU ac_path_EGREP and select it if it is found.
6290 # Check for GNU $ac_path_EGREP
6291 case `"$ac_path_EGREP" --version 2>&1` in
6293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6296 printf %s 0123456789 >"conftest.in"
6299 cat "conftest.in" "conftest.in" >"conftest.tmp"
6300 mv "conftest.tmp" "conftest.in"
6301 cp "conftest.in" "conftest.nl"
6302 printf "%s\n" 'EGREP' >> "conftest.nl"
6303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305 as_fn_arith $ac_count + 1 && ac_count=$as_val
6306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6307 # Best one so far, save it but keep looking for a better one
6308 ac_cv_path_EGREP="$ac_path_EGREP"
6309 ac_path_EGREP_max=$ac_count
6311 # 10*(2^10) chars as input seems more than enough
6312 test $ac_count -gt 10 && break
6314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6317 $ac_path_EGREP_found && break 3
6322 if test -z "$ac_cv_path_EGREP"; then
6323 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6326 ac_cv_path_EGREP=$EGREP
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6332 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6333 EGREP="$ac_cv_path_EGREP"
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6340 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6341 if test ${gl_cv_c_amsterdam_compiler+y}
6343 printf %s "(cached) " >&6
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6355 $EGREP "Amsterdam" >/dev/null 2>&1
6357 gl_cv_c_amsterdam_compiler=yes
6359 gl_cv_c_amsterdam_compiler=no
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6366 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6368 if test $gl_cv_c_amsterdam_compiler = yes; then
6369 if test -z "$AR"; then
6372 if test -z "$ARFLAGS"; then
6379 if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}ar; ac_word=$2
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 printf %s "checking for $ac_word... " >&6; }
6384 if test ${ac_cv_prog_AR+y}
6386 printf %s "(cached) " >&6
6388 if test -n "$AR"; then
6389 ac_cv_prog_AR="$AR" # Let the user override the test.
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 case $as_dir in #(((
6398 *) as_dir=$as_dir/ ;;
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6402 ac_cv_prog_AR="${ac_tool_prefix}ar"
6403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6413 if test -n "$AR"; then
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6415 printf "%s\n" "$AR" >&6; }
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 printf "%s\n" "no" >&6; }
6423 if test -z "$ac_cv_prog_AR"; then
6425 # Extract the first word of "ar", so it can be a program name with args.
6426 set dummy ar; ac_word=$2
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 printf %s "checking for $ac_word... " >&6; }
6429 if test ${ac_cv_prog_ac_ct_AR+y}
6431 printf %s "(cached) " >&6
6433 if test -n "$ac_ct_AR"; then
6434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 case $as_dir in #(((
6443 *) as_dir=$as_dir/ ;;
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_AR="ar"
6448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6458 if test -n "$ac_ct_AR"; then
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6460 printf "%s\n" "$ac_ct_AR" >&6; }
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 printf "%s\n" "no" >&6; }
6466 if test "x$ac_ct_AR" = x; then
6469 case $cross_compiling:$ac_tool_warned in
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6481 if test -z "$ARFLAGS"; then
6487 if test -z "$RANLIB"; then
6488 if test $gl_cv_c_amsterdam_compiler = yes; then
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 printf %s "checking for $ac_word... " >&6; }
6496 if test ${ac_cv_prog_RANLIB+y}
6498 printf %s "(cached) " >&6
6500 if test -n "$RANLIB"; then
6501 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 case $as_dir in #(((
6510 *) as_dir=$as_dir/ ;;
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6524 RANLIB=$ac_cv_prog_RANLIB
6525 if test -n "$RANLIB"; then
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527 printf "%s\n" "$RANLIB" >&6; }
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 printf "%s\n" "no" >&6; }
6535 if test -z "$ac_cv_prog_RANLIB"; then
6536 ac_ct_RANLIB=$RANLIB
6537 # Extract the first word of "ranlib", so it can be a program name with args.
6538 set dummy ranlib; ac_word=$2
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 printf %s "checking for $ac_word... " >&6; }
6541 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6543 printf %s "(cached) " >&6
6545 if test -n "$ac_ct_RANLIB"; then
6546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 case $as_dir in #(((
6555 *) as_dir=$as_dir/ ;;
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_ac_ct_RANLIB="ranlib"
6560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6570 if test -n "$ac_ct_RANLIB"; then
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6572 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 printf "%s\n" "no" >&6; }
6578 if test "x$ac_ct_RANLIB" = x; then
6581 case $cross_compiling:$ac_tool_warned in
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6587 RANLIB=$ac_ct_RANLIB
6590 RANLIB="$ac_cv_prog_RANLIB"
6597 # Check whether --enable-largefile was given.
6598 if test ${enable_largefile+y}
6600 enableval=$enable_largefile;
6603 if test "$enable_largefile" != no
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6606 printf %s "checking for special C compiler options needed for large files... " >&6; }
6607 if test ${ac_cv_sys_largefile_CC+y}
6609 printf %s "(cached) " >&6
6611 ac_cv_sys_largefile_CC=no
6612 if test "$GCC" != yes; then
6615 # IRIX 6.2 and later do not support large files by default,
6616 # so use the C compiler's -n32 option if that helps.
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 #include <sys/types.h>
6620 /* Check that off_t can represent 2**63 - 1 correctly.
6621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6622 since some C++ compilers masquerading as C compilers
6623 incorrectly reject 9223372036854775807. */
6624 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6626 && LARGE_OFF_T % 2147483647 == 1)
6636 if ac_fn_c_try_compile "$LINENO"
6640 rm -f core conftest.err conftest.$ac_objext conftest.beam
6642 if ac_fn_c_try_compile "$LINENO"
6644 ac_cv_sys_largefile_CC=' -n32'; break
6646 rm -f core conftest.err conftest.$ac_objext conftest.beam
6650 rm -f conftest.$ac_ext
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6654 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
6655 if test "$ac_cv_sys_largefile_CC" != no; then
6656 CC=$CC$ac_cv_sys_largefile_CC
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6660 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6661 if test ${ac_cv_sys_file_offset_bits+y}
6663 printf %s "(cached) " >&6
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 #include <sys/types.h>
6669 /* Check that off_t can represent 2**63 - 1 correctly.
6670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6671 since some C++ compilers masquerading as C compilers
6672 incorrectly reject 9223372036854775807. */
6673 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6675 && LARGE_OFF_T % 2147483647 == 1)
6685 if ac_fn_c_try_compile "$LINENO"
6687 ac_cv_sys_file_offset_bits=no; break
6689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 #undef _FILE_OFFSET_BITS
6693 #define _FILE_OFFSET_BITS 64
6694 #include <sys/types.h>
6695 /* Check that off_t can represent 2**63 - 1 correctly.
6696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6697 since some C++ compilers masquerading as C compilers
6698 incorrectly reject 9223372036854775807. */
6699 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6701 && LARGE_OFF_T % 2147483647 == 1)
6711 if ac_fn_c_try_compile "$LINENO"
6713 ac_cv_sys_file_offset_bits=64; break
6715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6716 ac_cv_sys_file_offset_bits=unknown
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6721 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
6722 case $ac_cv_sys_file_offset_bits in #(
6725 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
6729 case $ac_cv_sys_file_offset_bits in #(
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6732 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
6733 if test ${ac_cv_sys_large_files+y}
6735 printf %s "(cached) " >&6
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 /* Check that off_t can represent 2**63 - 1 correctly.
6742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6743 since some C++ compilers masquerading as C compilers
6744 incorrectly reject 9223372036854775807. */
6745 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6747 && LARGE_OFF_T % 2147483647 == 1)
6757 if ac_fn_c_try_compile "$LINENO"
6759 ac_cv_sys_large_files=no; break
6761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6765 #define _LARGE_FILES 1
6766 #include <sys/types.h>
6767 /* Check that off_t can represent 2**63 - 1 correctly.
6768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6769 since some C++ compilers masquerading as C compilers
6770 incorrectly reject 9223372036854775807. */
6771 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6773 && LARGE_OFF_T % 2147483647 == 1)
6783 if ac_fn_c_try_compile "$LINENO"
6785 ac_cv_sys_large_files=1; break
6787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6788 ac_cv_sys_large_files=unknown
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6793 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
6794 case $ac_cv_sys_large_files in #(
6797 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
6800 rm -rf conftest* ;; #(
6803 # Check whether --enable-year2038 was given.
6804 if test ${enable_year2038+y}
6806 enableval=$enable_year2038;
6809 if test "$enable_year2038" != no
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
6813 printf %s "checking for time_t past the year 2038... " >&6; }
6814 if test ${gl_cv_type_time_t_y2038+y}
6816 printf %s "(cached) " >&6
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6822 /* Check that time_t can represent 2**32 - 1 correctly. */
6823 #define LARGE_TIME_T \\
6824 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
6825 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
6826 && LARGE_TIME_T % 65537 == 0)
6830 if ac_fn_c_try_compile "$LINENO"
6832 gl_cv_type_time_t_y2038=yes
6834 gl_cv_type_time_t_y2038=no
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
6840 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; }
6841 if test "$gl_cv_type_time_t_y2038" = no; then
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
6843 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
6844 if test ${gl_cv_type_time_t_bits_macro+y}
6846 printf %s "(cached) " >&6
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #define _TIME_BITS 64
6851 #define _FILE_OFFSET_BITS 64
6854 /* Check that time_t can represent 2**32 - 1 correctly. */
6855 #define LARGE_TIME_T \\
6856 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
6857 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
6858 && LARGE_TIME_T % 65537 == 0)
6862 if ac_fn_c_try_compile "$LINENO"
6864 gl_cv_type_time_t_bits_macro=yes
6866 gl_cv_type_time_t_bits_macro=no
6868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
6872 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; }
6873 if test "$gl_cv_type_time_t_bits_macro" = yes; then
6875 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
6878 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6880 gl_cv_type_time_t_y2038=yes
6883 if test $gl_cv_type_time_t_y2038 = no; then
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #ifdef _USE_32BIT_TIME_T
6893 if ac_fn_c_try_compile "$LINENO"
6895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6896 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6897 as_fn_error $? "The 'time_t' type stops working after January 2038.
6898 Remove _USE_32BIT_TIME_T from the compiler flags.
6899 See \`config.log' for more details" "$LINENO" 5; }
6901 # If not cross-compiling and says we should check,
6902 # and 'touch' works with a large timestamp, then evidently wider time_t
6903 # is desired and supported, so fail and ask the builder to fix the
6904 # problem. Otherwise, just warn the builder.
6906 if test "$gl_warned_about_y2038" != yes; then
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
6908 and this package needs a wider 'time_t' type
6909 if there is any way to access timestamps after that.
6910 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
6911 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
6912 and this package needs a wider 'time_t' type
6913 if there is any way to access timestamps after that.
6914 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
6915 gl_warned_about_y2038=yes
6919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6933 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
6940 # Pre-early section.
6944 # Code from module alloca:
6945 # Code from module alloca-opt:
6946 # Code from module concat-filename:
6947 # Code from module extensions:
6948 # Code from module fdl:
6949 # Code from module filename:
6950 # Code from module findprog-in:
6951 # Code from module gen-header:
6952 # Code from module getloadavg:
6953 # Code from module host-cpu-c-abi:
6954 # Code from module intprops:
6955 # Code from module largefile:
6958 # Code from module make-glob:
6959 # Code from module make-macros:
6960 # Code from module snippet/warn-on-use:
6961 # Code from module stdbool:
6971 # Check whether --enable-cross-guesses was given.
6972 if test ${enable_cross_guesses+y}
6974 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6976 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6977 enableval=conservative
6979 gl_cross_guesses="$enableval"
6981 gl_cross_guesses=conservative
6984 if test $gl_cross_guesses = risky; then
6985 gl_cross_guess_normal="guessing yes"
6986 gl_cross_guess_inverted="guessing no"
6988 gl_cross_guess_normal="guessing no"
6989 gl_cross_guess_inverted="guessing yes"
6991 LIBC_FATAL_STDERR_=1
6992 export LIBC_FATAL_STDERR_
6995 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6996 if test "x$ac_cv_type_size_t" = xyes
7001 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7006 # for constant arguments. Useless!
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7008 printf %s "checking for working alloca.h... " >&6; }
7009 if test ${ac_cv_working_alloca_h+y}
7011 printf %s "(cached) " >&6
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7019 char *p = (char *) alloca (2 * sizeof (int));
7025 if ac_fn_c_try_link "$LINENO"
7027 ac_cv_working_alloca_h=yes
7029 ac_cv_working_alloca_h=no
7031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7032 conftest$ac_exeext conftest.$ac_ext
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7035 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7036 if test $ac_cv_working_alloca_h = yes; then
7038 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7043 printf %s "checking for alloca... " >&6; }
7044 if test ${ac_cv_func_alloca_works+y}
7046 printf %s "(cached) " >&6
7048 if test $ac_cv_working_alloca_h = yes; then
7049 ac_cv_func_alloca_works=yes
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7057 # define alloca __builtin_alloca
7058 # elif defined _MSC_VER
7059 # include <malloc.h>
7060 # define alloca _alloca
7065 void *alloca (size_t);
7072 char *p = (char *) alloca (1);
7078 if ac_fn_c_try_link "$LINENO"
7080 ac_cv_func_alloca_works=yes
7082 ac_cv_func_alloca_works=no
7084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7085 conftest$ac_exeext conftest.$ac_ext
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7088 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7091 if test $ac_cv_func_alloca_works = yes; then
7093 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7096 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7097 # that cause trouble. Some versions do not even contain alloca or
7098 # contain a buggy version. If you still want to use their alloca,
7099 # use ar to extract alloca.o from them instead of compiling alloca.c.
7105 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7107 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7111 printf %s "checking stack direction for C alloca... " >&6; }
7112 if test ${ac_cv_c_stack_direction+y}
7114 printf %s "(cached) " >&6
7116 if test "$cross_compiling" = yes
7118 ac_cv_c_stack_direction=0
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 $ac_includes_default
7124 find_stack_direction (int *addr, int depth)
7129 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7130 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7135 main (int argc, char **argv)
7137 return find_stack_direction (0, argc + !argv + 20) < 0;
7140 if ac_fn_c_try_run "$LINENO"
7142 ac_cv_c_stack_direction=1
7144 ac_cv_c_stack_direction=-1
7146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7147 conftest.$ac_objext conftest.beam conftest.$ac_ext
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7152 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7153 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7159 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
7160 if test "x$ac_cv_func_eaccess" = xyes
7165 printf "%s\n" "#define eaccess access" >>confdefs.h
7171 HAVE_DECL_GETLOADAVG=1;
7182 GL_GNULIB_GETLOADAVG=0
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
7187 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
7188 if test ${ac_cv_c_undeclared_builtin_options+y}
7190 printf %s "(cached) " >&6
7192 ac_save_CFLAGS=$CFLAGS
7193 ac_cv_c_undeclared_builtin_options='cannot detect'
7194 for ac_arg in '' -fno-builtin; do
7195 CFLAGS="$ac_save_CFLAGS $ac_arg"
7196 # This test program should *not* compile successfully.
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7208 if ac_fn_c_try_compile "$LINENO"
7212 # This test program should compile successfully.
7213 # No library function is consistently available on
7214 # freestanding implementations, so test against a dummy
7215 # declaration. Include always-available headers on the
7216 # off chance that they somehow elicit warnings.
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7223 extern void ac_decl (int, char *);
7228 (void) ac_decl (0, (char *) 0);
7235 if ac_fn_c_try_compile "$LINENO"
7237 if test x"$ac_arg" = x
7239 ac_cv_c_undeclared_builtin_options='none needed'
7241 ac_cv_c_undeclared_builtin_options=$ac_arg
7245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7249 CFLAGS=$ac_save_CFLAGS
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
7253 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
7254 case $ac_cv_c_undeclared_builtin_options in #(
7256 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7258 as_fn_error $? "cannot make $CC report undeclared builtins
7259 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7261 ac_c_undeclared_builtin_options='' ;; #(
7263 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7277 $EGREP "MicrosoftCompiler" >/dev/null 2>&1
7280 echo 'int dummy;' > conftest.c
7281 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
7282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286 test $ac_status = 0; }; } >/dev/null 2>&1
7287 if test -f conftest.o; then
7292 gl_c_asm_opt='-c -Fa'
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
7308 printf %s "checking host CPU and C ABI... " >&6; }
7309 if test ${gl_cv_host_cpu_c_abi+y}
7311 printf %s "(cached) " >&6
7316 gl_cv_host_cpu_c_abi=i386
7320 # On x86_64 systems, the C compiler may be generating code in one of
7322 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7323 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7324 # with native Windows (mingw, MSVC).
7325 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7326 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 #if (defined __x86_64__ || defined __amd64__ \
7330 || defined _M_X64 || defined _M_AMD64)
7337 if ac_fn_c_try_compile "$LINENO"
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 #if defined __ILP32__ || defined _ILP32
7348 if ac_fn_c_try_compile "$LINENO"
7350 gl_cv_host_cpu_c_abi=x86_64-x32
7352 gl_cv_host_cpu_c_abi=x86_64
7354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 gl_cv_host_cpu_c_abi=i386
7358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7361 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
7362 gl_cv_host_cpu_c_abi=alpha
7366 # Assume arm with EABI.
7367 # On arm64 systems, the C compiler may be generating code in one of
7369 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7370 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7371 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7381 if ac_fn_c_try_compile "$LINENO"
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 #if defined __ILP32__ || defined _ILP32
7392 if ac_fn_c_try_compile "$LINENO"
7394 gl_cv_host_cpu_c_abi=arm64-ilp32
7396 gl_cv_host_cpu_c_abi=arm64
7398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7400 # Don't distinguish little-endian and big-endian arm, since they
7401 # don't require different machine code for simple operations and
7402 # since the user can distinguish them through the preprocessor
7403 # defines __ARMEL__ vs. __ARMEB__.
7404 # But distinguish arm which passes floating-point arguments and
7405 # return values in integer registers (r0, r1, ...) - this is
7406 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
7407 # passes them in float registers (s0, s1, ...) and double registers
7408 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
7409 # sets the preprocessor defines __ARM_PCS (for the first case) and
7410 # __ARM_PCS_VFP (for the second case), but older GCC does not.
7411 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
7412 # Look for a reference to the register d0 in the .s file.
7413 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
7414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418 test $ac_status = 0; }; } >/dev/null 2>&1
7419 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
7420 gl_cv_host_cpu_c_abi=armhf
7422 gl_cv_host_cpu_c_abi=arm
7427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7430 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7431 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7432 # code. In the latter case, it defines _LP64 and __LP64__.
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7442 if ac_fn_c_try_compile "$LINENO"
7444 gl_cv_host_cpu_c_abi=hppa64
7446 gl_cv_host_cpu_c_abi=hppa
7448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7452 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7453 # 32-bit code. In the latter case, it defines _ILP32.
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7463 if ac_fn_c_try_compile "$LINENO"
7465 gl_cv_host_cpu_c_abi=ia64-ilp32
7467 gl_cv_host_cpu_c_abi=ia64
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7473 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7484 if ac_fn_c_try_compile "$LINENO"
7486 gl_cv_host_cpu_c_abi=mips64
7488 # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
7489 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
7490 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
7491 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7494 #if (_MIPS_SIM == _ABIN32)
7501 if ac_fn_c_try_compile "$LINENO"
7503 gl_cv_host_cpu_c_abi=mipsn32
7505 gl_cv_host_cpu_c_abi=mips
7507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7513 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7514 # No need to distinguish them here; the caller may distinguish
7515 # them based on the OS.
7516 # On powerpc64 systems, the C compiler may still be generating
7517 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7518 # be generating 64-bit code.
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 #if defined __powerpc64__ || defined __LP64__
7528 if ac_fn_c_try_compile "$LINENO"
7530 # On powerpc64, there are two ABIs on Linux: The AIX compatible
7531 # one and the ELFv2 one. The latter defines _CALL_ELF=2.
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #if defined _CALL_ELF && _CALL_ELF == 2
7541 if ac_fn_c_try_compile "$LINENO"
7543 gl_cv_host_cpu_c_abi=powerpc64-elfv2
7545 gl_cv_host_cpu_c_abi=powerpc64
7547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7550 gl_cv_host_cpu_c_abi=powerpc
7552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7556 gl_cv_host_cpu_c_abi=powerpc
7560 # There are 2 architectures (with variants): rv32* and rv64*.
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 #if __riscv_xlen == 64
7570 if ac_fn_c_try_compile "$LINENO"
7576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7577 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7578 # Size of 'long' and 'void *':
7579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #if defined __LP64__
7588 if ac_fn_c_try_compile "$LINENO"
7594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7596 # __riscv_float_abi_double:
7597 # 'float' and 'double' are passed in floating-point registers.
7598 # __riscv_float_abi_single:
7599 # 'float' are passed in floating-point registers.
7600 # __riscv_float_abi_soft:
7601 # No values are passed in floating-point registers.
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #if defined __riscv_float_abi_double
7611 if ac_fn_c_try_compile "$LINENO"
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 #if defined __riscv_float_abi_single
7624 if ac_fn_c_try_compile "$LINENO"
7630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7634 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
7638 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7639 # or 31-bit (= s390) code.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #if defined __LP64__ || defined __s390x__
7649 if ac_fn_c_try_compile "$LINENO"
7651 gl_cv_host_cpu_c_abi=s390x
7653 gl_cv_host_cpu_c_abi=s390
7655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7659 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7660 # C compiler still generates 32-bit code.
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #if defined __sparcv9 || defined __arch64__
7670 if ac_fn_c_try_compile "$LINENO"
7672 gl_cv_host_cpu_c_abi=sparc64
7674 gl_cv_host_cpu_c_abi=sparc
7676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7680 gl_cv_host_cpu_c_abi="$host_cpu"
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
7686 printf "%s\n" "$gl_cv_host_cpu_c_abi" >&6; }
7688 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
7689 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
7694 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
7695 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
7696 # earlier, but KAI C++ 3.2d doesn't like this.
7697 sed -e 's/-/_/g' >> confdefs.h <<EOF
7698 #ifndef __${HOST_CPU}__
7699 #define __${HOST_CPU}__ 1
7701 #ifndef __${HOST_CPU_C_ABI}__
7702 #define __${HOST_CPU_C_ABI}__ 1
7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
7713 printf %s "checking for 64-bit off_t... " >&6; }
7714 if test ${gl_cv_type_off_t_64+y}
7716 printf %s "(cached) " >&6
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <sys/types.h>
7721 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
7731 if ac_fn_c_try_compile "$LINENO"
7733 gl_cv_type_off_t_64=yes
7735 gl_cv_type_off_t_64=no
7737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
7741 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
7742 if test $gl_cv_type_off_t_64 = no; then
7743 WINDOWS_64_BIT_OFF_T=1
7745 WINDOWS_64_BIT_OFF_T=0
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
7748 printf %s "checking for 64-bit st_size... " >&6; }
7749 if test ${gl_cv_member_st_size_64+y}
7751 printf %s "(cached) " >&6
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #include <sys/types.h>
7757 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
7767 if ac_fn_c_try_compile "$LINENO"
7769 gl_cv_member_st_size_64=yes
7771 gl_cv_member_st_size_64=no
7773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
7777 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
7778 if test $gl_cv_member_st_size_64 = no; then
7779 WINDOWS_64_BIT_ST_SIZE=1
7781 WINDOWS_64_BIT_ST_SIZE=0
7785 WINDOWS_64_BIT_OFF_T=0
7786 WINDOWS_64_BIT_ST_SIZE=0
7790 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7791 if test "x$ac_cv_type__Bool" = xyes
7794 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
7800 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
7801 if test ${ac_cv_header_stdbool_h+y}
7803 printf %s "(cached) " >&6
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #include <stdbool.h>
7809 /* "true" and "false" should be usable in #if expressions and
7810 integer constant expressions, and "bool" should be a valid
7813 Although C 1999 requires bool, true, and false to be macros,
7814 C 2023 and C++ 2011 overrule that, so do not test for that.
7815 Although C 1999 requires __bool_true_false_are_defined and
7816 _Bool, C 2023 says they are obsolescent, so do not require
7820 #error "'true' is not true"
7823 #error "'true' is not equal to 1"
7825 char b[true == 1 ? 1 : -1];
7829 #error "'false' is not false"
7832 #error "'false' is not equal to 0"
7834 char d[false == 0 ? 1 : -1];
7836 enum { e = false, f = true, g = false * true, h = true * 256 };
7838 char i[(bool) 0.5 == true ? 1 : -1];
7839 char j[(bool) 0.0 == false ? 1 : -1];
7840 char k[sizeof (bool) > 0 ? 1 : -1];
7842 struct sb { bool s: 1; bool t; } s;
7843 char l[sizeof s.t > 0 ? 1 : -1];
7845 /* The following fails for
7846 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7848 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
7849 char o[-1 - (bool) 0 < 0 ? 1 : -1];
7850 /* Catch a bug in an HP-UX C compiler. See
7851 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7852 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
7865 /* Refer to every declared value, so they cannot be
7866 discarded as unused. */
7867 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7868 + !l + !m + !n + !o + !p + !pp + !ps);
7874 if ac_fn_c_try_compile "$LINENO"
7876 ac_cv_header_stdbool_h=yes
7878 ac_cv_header_stdbool_h=no
7880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7883 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
7888 printf %s "checking for C compiler option to allow warnings... " >&6; }
7889 if test ${gl_cv_cc_wallow+y}
7891 printf %s "(cached) " >&6
7894 echo 'int dummy;' > conftest.c
7895 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
7896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; }; } >/dev/null
7901 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
7902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; } >/dev/null
7907 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
7908 gl_cv_cc_wallow='-Wno-error'
7910 gl_cv_cc_wallow=none
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
7916 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
7917 case "$gl_cv_cc_wallow" in
7918 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
7919 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
7925 GL_CFLAG_GNULIB_WARNINGS=''
7926 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
7927 cat > conftest.c <<\EOF
7928 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7934 -Wno-unused-function
7935 -Wno-unused-parameter
7937 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7938 -Wno-float-conversion
7940 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7941 -Wimplicit-fallthrough
7943 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7946 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7947 -Wno-sign-conversion
7950 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
7951 -Wno-unsuffixed-float-constants
7954 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
7955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
7956 (eval $gl_command) 2>&5
7958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; }; then
7960 gl_options=`grep -v '#' conftest.out`
7961 for word in $gl_options; do
7962 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
7965 rm -f conftest.c conftest.out
7972 GL_COND_LIBTOOL_TRUE=
7973 GL_COND_LIBTOOL_FALSE='#'
7975 GL_COND_LIBTOOL_TRUE='#'
7976 GL_COND_LIBTOOL_FALSE=
7979 gl_cond_libtool=false
7995 gl_source_base='lib'
7996 gl_source_base_prefix=
7999 if test $ac_cv_func_alloca_works = no; then
8003 # Define an additional variable used in the Makefile substitution.
8004 if test $ac_cv_working_alloca_h = yes; then
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8006 printf %s "checking for alloca as a compiler built-in... " >&6; }
8007 if test ${gl_cv_rpl_alloca+y}
8009 printf %s "(cached) " >&6
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8015 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8021 $EGREP "Need own alloca" >/dev/null 2>&1
8023 gl_cv_rpl_alloca=yes
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8032 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
8033 if test $gl_cv_rpl_alloca = yes; then
8035 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8037 GL_GENERATE_ALLOCA_H=true
8039 GL_GENERATE_ALLOCA_H=false
8042 GL_GENERATE_ALLOCA_H=true
8045 if test $ac_cv_working_alloca_h = yes; then
8056 case "$GL_GENERATE_ALLOCA_H" in
8057 false) ALLOCA_H='' ;;
8059 if test -z "$ALLOCA_H"; then
8060 ALLOCA_H="${gl_source_base_prefix}alloca.h"
8063 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
8067 if $GL_GENERATE_ALLOCA_H; then
8068 GL_GENERATE_ALLOCA_H_TRUE=
8069 GL_GENERATE_ALLOCA_H_FALSE='#'
8071 GL_GENERATE_ALLOCA_H_TRUE='#'
8072 GL_GENERATE_ALLOCA_H_FALSE=
8075 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
8076 GL_GENERATE_ALLOCA_H_TRUE='#'
8077 GL_GENERATE_ALLOCA_H_FALSE='#'
8097 # Persuade glibc <stdlib.h> to declare getloadavg().
8102 # getloadavg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
8103 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
8105 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8106 if test "x$ac_cv_func_getloadavg" = xyes
8110 gl_func_getloadavg_done=no
8112 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8113 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8114 # to get the right answer into the cache.
8115 # For kstat on solaris, we need to test for libelf and libkvm to force the
8116 # definition of SVR4 below.
8117 if test $gl_func_getloadavg_done = no; then
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
8119 printf %s "checking for elf_begin in -lelf... " >&6; }
8120 if test ${ac_cv_lib_elf_elf_begin+y}
8122 printf %s "(cached) " >&6
8124 ac_check_lib_save_LIBS=$LIBS
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8129 /* Override any GCC internal prototype to avoid an error.
8130 Use char because int might match the return type of a GCC
8131 builtin and then its argument prototype would still apply. */
8136 return elf_begin ();
8141 if ac_fn_c_try_link "$LINENO"
8143 ac_cv_lib_elf_elf_begin=yes
8145 ac_cv_lib_elf_elf_begin=no
8147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8148 conftest$ac_exeext conftest.$ac_ext
8149 LIBS=$ac_check_lib_save_LIBS
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
8152 printf "%s\n" "$ac_cv_lib_elf_elf_begin" >&6; }
8153 if test "x$ac_cv_lib_elf_elf_begin" = xyes
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
8159 printf %s "checking for kvm_open in -lkvm... " >&6; }
8160 if test ${ac_cv_lib_kvm_kvm_open+y}
8162 printf %s "(cached) " >&6
8164 ac_check_lib_save_LIBS=$LIBS
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8169 /* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
8181 if ac_fn_c_try_link "$LINENO"
8183 ac_cv_lib_kvm_kvm_open=yes
8185 ac_cv_lib_kvm_kvm_open=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8188 conftest$ac_exeext conftest.$ac_ext
8189 LIBS=$ac_check_lib_save_LIBS
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
8192 printf "%s\n" "$ac_cv_lib_kvm_kvm_open" >&6; }
8193 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
8198 # Check for the 4.4BSD definition of getloadavg.
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
8200 printf %s "checking for getloadavg in -lutil... " >&6; }
8201 if test ${ac_cv_lib_util_getloadavg+y}
8203 printf %s "(cached) " >&6
8205 ac_check_lib_save_LIBS=$LIBS
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8210 /* Override any GCC internal prototype to avoid an error.
8211 Use char because int might match the return type of a GCC
8212 builtin and then its argument prototype would still apply. */
8217 return getloadavg ();
8222 if ac_fn_c_try_link "$LINENO"
8224 ac_cv_lib_util_getloadavg=yes
8226 ac_cv_lib_util_getloadavg=no
8228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8229 conftest$ac_exeext conftest.$ac_ext
8230 LIBS=$ac_check_lib_save_LIBS
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
8233 printf "%s\n" "$ac_cv_lib_util_getloadavg" >&6; }
8234 if test "x$ac_cv_lib_util_getloadavg" = xyes
8236 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
8241 if test $gl_func_getloadavg_done = no; then
8242 # There is a commonly available library for RS/6000 AIX.
8243 # Since it is not a standard part of AIX, it might be installed locally.
8244 gl_getloadavg_LIBS=$LIBS
8245 if test $cross_compiling != yes; then
8246 LIBS="-L/usr/local/lib $LIBS"
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
8249 printf %s "checking for getloadavg in -lgetloadavg... " >&6; }
8250 if test ${ac_cv_lib_getloadavg_getloadavg+y}
8252 printf %s "(cached) " >&6
8254 ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lgetloadavg $LIBS"
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8266 return getloadavg ();
8271 if ac_fn_c_try_link "$LINENO"
8273 ac_cv_lib_getloadavg_getloadavg=yes
8275 ac_cv_lib_getloadavg_getloadavg=no
8277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8278 conftest$ac_exeext conftest.$ac_ext
8279 LIBS=$ac_check_lib_save_LIBS
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8282 printf "%s\n" "$ac_cv_lib_getloadavg_getloadavg" >&6; }
8283 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
8285 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
8287 LIBS=$gl_getloadavg_LIBS
8292 # Set up the replacement function if necessary.
8293 if test $gl_func_getloadavg_done = no; then
8296 # Solaris has libkstat which does not require root.
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
8298 printf %s "checking for kstat_open in -lkstat... " >&6; }
8299 if test ${ac_cv_lib_kstat_kstat_open+y}
8301 printf %s "(cached) " >&6
8303 ac_check_lib_save_LIBS=$LIBS
8304 LIBS="-lkstat $LIBS"
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8308 /* Override any GCC internal prototype to avoid an error.
8309 Use char because int might match the return type of a GCC
8310 builtin and then its argument prototype would still apply. */
8315 return kstat_open ();
8320 if ac_fn_c_try_link "$LINENO"
8322 ac_cv_lib_kstat_kstat_open=yes
8324 ac_cv_lib_kstat_kstat_open=no
8326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8327 conftest$ac_exeext conftest.$ac_ext
8328 LIBS=$ac_check_lib_save_LIBS
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
8331 printf "%s\n" "$ac_cv_lib_kstat_kstat_open" >&6; }
8332 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
8334 printf "%s\n" "#define HAVE_LIBKSTAT 1" >>confdefs.h
8336 LIBS="-lkstat $LIBS"
8340 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
8342 # AIX has libperfstat which does not require root
8343 if test $gl_func_getloadavg_done = no; then
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
8345 printf %s "checking for perfstat_cpu_total in -lperfstat... " >&6; }
8346 if test ${ac_cv_lib_perfstat_perfstat_cpu_total+y}
8348 printf %s "(cached) " >&6
8350 ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-lperfstat $LIBS"
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8355 /* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8358 char perfstat_cpu_total ();
8362 return perfstat_cpu_total ();
8367 if ac_fn_c_try_link "$LINENO"
8369 ac_cv_lib_perfstat_perfstat_cpu_total=yes
8371 ac_cv_lib_perfstat_perfstat_cpu_total=no
8373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8374 conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
8378 printf "%s\n" "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
8379 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
8381 printf "%s\n" "#define HAVE_LIBPERFSTAT 1" >>confdefs.h
8383 LIBS="-lperfstat $LIBS"
8387 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
8390 if test $gl_func_getloadavg_done = no; then
8391 ac_fn_c_check_header_compile "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
8392 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
8394 gl_func_getloadavg_done=yes
8396 printf "%s\n" "#define DGUX 1" >>confdefs.h
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
8399 printf %s "checking for dg_sys_info in -ldgc... " >&6; }
8400 if test ${ac_cv_lib_dgc_dg_sys_info+y}
8402 printf %s "(cached) " >&6
8404 ac_check_lib_save_LIBS=$LIBS
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h. */
8409 /* Override any GCC internal prototype to avoid an error.
8410 Use char because int might match the return type of a GCC
8411 builtin and then its argument prototype would still apply. */
8412 char dg_sys_info ();
8416 return dg_sys_info ();
8421 if ac_fn_c_try_link "$LINENO"
8423 ac_cv_lib_dgc_dg_sys_info=yes
8425 ac_cv_lib_dgc_dg_sys_info=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8428 conftest$ac_exeext conftest.$ac_ext
8429 LIBS=$ac_check_lib_save_LIBS
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8432 printf "%s\n" "$ac_cv_lib_dgc_dg_sys_info" >&6; }
8433 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
8435 printf "%s\n" "#define HAVE_LIBDGC 1" >>confdefs.h
8448 if test "x$gl_save_LIBS" = x; then
8449 GETLOADAVG_LIBS=$LIBS
8451 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
8456 # Test whether the system declares getloadavg. Solaris has the function
8457 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
8458 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
8459 if test "x$ac_cv_header_sys_loadavg_h" = xyes
8461 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
8465 if test $ac_cv_header_sys_loadavg_h = yes; then
8466 HAVE_SYS_LOADAVG_H=1
8468 HAVE_SYS_LOADAVG_H=0
8470 ac_fn_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
8471 /* OpenIndiana has a bug: <sys/time.h> must be included before
8473 # include <sys/time.h>
8474 # include <sys/loadavg.h>
8477 " "$ac_c_undeclared_builtin_options" "CFLAGS"
8478 if test "x$ac_cv_have_decl_getloadavg" = xyes
8482 HAVE_DECL_GETLOADAVG=0
8486 if test $HAVE_GETLOADAVG = 0; then
8487 GL_COND_OBJ_GETLOADAVG_TRUE=
8488 GL_COND_OBJ_GETLOADAVG_FALSE='#'
8490 GL_COND_OBJ_GETLOADAVG_TRUE='#'
8491 GL_COND_OBJ_GETLOADAVG_FALSE=
8494 if test -z "${GL_COND_OBJ_GETLOADAVG_TRUE}" && test -z "${GL_COND_OBJ_GETLOADAVG_FALSE}"; then
8495 GL_COND_OBJ_GETLOADAVG_TRUE='#'
8496 GL_COND_OBJ_GETLOADAVG_FALSE='#'
8499 if test -z "$GL_COND_OBJ_GETLOADAVG_TRUE"; then :
8502 # Figure out what our getloadavg.c needs.
8506 # On HPUX9, an unprivileged user can get load averages this way.
8507 if test $gl_func_getloadavg_done = no; then
8509 for ac_func in pstat_getdynamic
8511 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
8512 if test "x$ac_cv_func_pstat_getdynamic" = xyes
8514 printf "%s\n" "#define HAVE_PSTAT_GETDYNAMIC 1" >>confdefs.h
8515 gl_func_getloadavg_done=yes
8521 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
8522 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
8523 # Irix 4.0.5F has the header but not the library.
8524 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
8525 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
8526 gl_func_getloadavg_done=yes
8528 printf "%s\n" "#define SVR4 1" >>confdefs.h
8532 if test $gl_func_getloadavg_done = no; then
8533 ac_fn_c_check_header_compile "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
8534 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
8536 gl_func_getloadavg_done=yes
8538 printf "%s\n" "#define UMAX 1" >>confdefs.h
8541 printf "%s\n" "#define UMAX4_3 1" >>confdefs.h
8547 if test $gl_func_getloadavg_done = no; then
8548 ac_fn_c_check_header_compile "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
8549 if test "x$ac_cv_header_sys_cpustats_h" = xyes
8551 gl_func_getloadavg_done=yes; printf "%s\n" "#define UMAX 1" >>confdefs.h
8557 if test $gl_func_getloadavg_done = no; then
8558 ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
8559 if test "x$ac_cv_header_mach_mach_h" = xyes
8561 printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h
8567 for ac_header in nlist.h
8569 ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
8570 if test "x$ac_cv_header_nlist_h" = xyes
8572 printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h
8573 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
8575 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
8578 printf "%s\n" "#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1" >>confdefs.h
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8590 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
8599 if ac_fn_c_try_link "$LINENO"
8602 printf "%s\n" "#define N_NAME_POINTER 1" >>confdefs.h
8605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8606 conftest$ac_exeext conftest.$ac_ext
8622 GL_GNULIB_GETLOADAVG=1
8628 printf "%s\n" "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h
8634 # Check the system to see if it provides GNU glob. If not, use our
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
8637 printf %s "checking if system libc has GNU glob... " >&6; }
8638 if test ${make_cv_sys_gnu_glob+y}
8640 printf %s "(cached) " >&6
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8645 #include <features.h>
8647 #include <fnmatch.h>
8648 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
8649 # include <gnu-versions.h>
8650 # if _GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2
8655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8656 $EGREP "gnu glob" >/dev/null 2>&1
8658 make_cv_sys_gnu_glob=yes
8660 make_cv_sys_gnu_glob=no
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
8666 printf "%s\n" "$make_cv_sys_gnu_glob" >&6; }
8667 # Tell automake about this, so it can build the right .c files.
8668 if test "$make_cv_sys_gnu_glob" = yes; then
8669 USE_SYSTEM_GLOB_TRUE=
8670 USE_SYSTEM_GLOB_FALSE='#'
8672 USE_SYSTEM_GLOB_TRUE='#'
8673 USE_SYSTEM_GLOB_FALSE=
8676 # Tell build.sh which to use
8677 USE_SYSTEM_GLOB="$make_cv_sys_gnu_glob"
8679 # Check for DOS-style pathnames.
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
8682 printf %s "checking whether system uses MSDOS-style paths... " >&6; }
8683 if test ${ac_cv_dos_paths+y}
8685 printf %s "(cached) " >&6
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8691 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
8692 neither MSDOS nor Windows nor OS2
8703 if ac_fn_c_try_compile "$LINENO"
8709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
8712 printf "%s\n" "$ac_cv_dos_paths" >&6; }
8714 if test x"$ac_cv_dos_paths" = xyes
8717 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
8725 if test "$ac_cv_header_stdbool_h" = yes; then
8728 if test -z "$GCC"; then
8729 GL_GENERATE_STDBOOL_H=true
8731 GL_GENERATE_STDBOOL_H=false
8735 GL_GENERATE_STDBOOL_H=false
8739 GL_GENERATE_STDBOOL_H=true
8742 if test "$ac_cv_type__Bool" = yes; then
8753 case "$GL_GENERATE_STDBOOL_H" in
8754 false) STDBOOL_H='' ;;
8756 if test -z "$STDBOOL_H"; then
8757 STDBOOL_H="${gl_source_base_prefix}stdbool.h"
8760 *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
8764 if $GL_GENERATE_STDBOOL_H; then
8765 GL_GENERATE_STDBOOL_H_TRUE=
8766 GL_GENERATE_STDBOOL_H_FALSE='#'
8768 GL_GENERATE_STDBOOL_H_TRUE='#'
8769 GL_GENERATE_STDBOOL_H_FALSE=
8772 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
8773 GL_GENERATE_STDBOOL_H_TRUE='#'
8774 GL_GENERATE_STDBOOL_H_FALSE='#'
8782 # End of code from modules
8806 gl_source_base='tests'
8807 gl_source_base_prefix=
8808 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
8810 gl_module_indicator_condition=$gltests_WITNESS
8823 LIBGNU_LIBDEPS="$gl_libdeps"
8825 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
8830 if test -n "$ac_tool_prefix"; then
8831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 printf %s "checking for $ac_word... " >&6; }
8835 if test ${ac_cv_prog_RANLIB+y}
8837 printf %s "(cached) " >&6
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 case $as_dir in #(((
8849 *) as_dir=$as_dir/ ;;
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8863 RANLIB=$ac_cv_prog_RANLIB
8864 if test -n "$RANLIB"; then
8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8866 printf "%s\n" "$RANLIB" >&6; }
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 printf "%s\n" "no" >&6; }
8874 if test -z "$ac_cv_prog_RANLIB"; then
8875 ac_ct_RANLIB=$RANLIB
8876 # Extract the first word of "ranlib", so it can be a program name with args.
8877 set dummy ranlib; ac_word=$2
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 printf %s "checking for $ac_word... " >&6; }
8880 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8882 printf %s "(cached) " >&6
8884 if test -n "$ac_ct_RANLIB"; then
8885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 case $as_dir in #(((
8894 *) as_dir=$as_dir/ ;;
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8898 ac_cv_prog_ac_ct_RANLIB="ranlib"
8899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8909 if test -n "$ac_ct_RANLIB"; then
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8911 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 printf "%s\n" "no" >&6; }
8917 if test "x$ac_ct_RANLIB" = x; then
8920 case $cross_compiling:$ac_tool_warned in
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8926 RANLIB=$ac_ct_RANLIB
8929 RANLIB="$ac_cv_prog_RANLIB"
8933 ac_cpp='$CPP $CPPFLAGS'
8934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8938 printf %s "checking how to run the C preprocessor... " >&6; }
8939 # On Suns, sometimes $CPP names a directory.
8940 if test -n "$CPP" && test -d "$CPP"; then
8943 if test -z "$CPP"; then
8944 if test ${ac_cv_prog_CPP+y}
8946 printf %s "(cached) " >&6
8948 # Double quotes because $CC needs to be expanded
8949 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
8952 for ac_c_preproc_warn_flag in '' yes
8954 # Use a header file that comes with gcc, so configuring glibc
8955 # with a fresh cross-compiler works.
8956 # On the NeXT, cc -E runs the code through the compiler's parser,
8957 # not just through cpp. "Syntax error" is here to catch this case.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8963 if ac_fn_c_try_cpp "$LINENO"
8967 # Broken: fails on valid input.
8970 rm -f conftest.err conftest.i conftest.$ac_ext
8972 # OK, works on sane cases. Now check whether nonexistent headers
8973 # can be detected and how.
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #include <ac_nonexistent.h>
8978 if ac_fn_c_try_cpp "$LINENO"
8980 # Broken: success on invalid input.
8983 # Passes both tests.
8987 rm -f conftest.err conftest.i conftest.$ac_ext
8990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8991 rm -f conftest.i conftest.err conftest.$ac_ext
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9006 printf "%s\n" "$CPP" >&6; }
9008 for ac_c_preproc_warn_flag in '' yes
9010 # Use a header file that comes with gcc, so configuring glibc
9011 # with a fresh cross-compiler works.
9012 # On the NeXT, cc -E runs the code through the compiler's parser,
9013 # not just through cpp. "Syntax error" is here to catch this case.
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9019 if ac_fn_c_try_cpp "$LINENO"
9023 # Broken: fails on valid input.
9026 rm -f conftest.err conftest.i conftest.$ac_ext
9028 # OK, works on sane cases. Now check whether nonexistent headers
9029 # can be detected and how.
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 #include <ac_nonexistent.h>
9034 if ac_fn_c_try_cpp "$LINENO"
9036 # Broken: success on invalid input.
9039 # Passes both tests.
9043 rm -f conftest.err conftest.i conftest.$ac_ext
9046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9047 rm -f conftest.i conftest.err conftest.$ac_ext
9052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9053 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9054 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9055 See \`config.log' for more details" "$LINENO" 5; }
9059 ac_cpp='$CPP $CPPFLAGS'
9060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9064 # Extract the first word of "ar", so it can be a program name with args.
9065 set dummy ar; ac_word=$2
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 printf %s "checking for $ac_word... " >&6; }
9068 if test ${ac_cv_prog_AR+y}
9070 printf %s "(cached) " >&6
9072 if test -n "$AR"; then
9073 ac_cv_prog_AR="$AR" # Let the user override the test.
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 case $as_dir in #(((
9082 *) as_dir=$as_dir/ ;;
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9094 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9098 if test -n "$AR"; then
9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9100 printf "%s\n" "$AR" >&6; }
9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 printf "%s\n" "no" >&6; }
9107 # Perl is needed for the test suite (only)
9108 # Extract the first word of "perl", so it can be a program name with args.
9109 set dummy perl; ac_word=$2
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 printf %s "checking for $ac_word... " >&6; }
9112 if test ${ac_cv_prog_PERL+y}
9114 printf %s "(cached) " >&6
9116 if test -n "$PERL"; then
9117 ac_cv_prog_PERL="$PERL" # Let the user override the test.
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 case $as_dir in #(((
9126 *) as_dir=$as_dir/ ;;
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9130 ac_cv_prog_PERL="perl"
9131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9138 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
9141 PERL=$ac_cv_prog_PERL
9142 if test -n "$PERL"; then
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9144 printf "%s\n" "$PERL" >&6; }
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 printf "%s\n" "no" >&6; }
9152 # Specialized system macros
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9155 printf %s "checking whether byte ordering is bigendian... " >&6; }
9156 if test ${ac_cv_c_bigendian+y}
9158 printf %s "(cached) " >&6
9160 ac_cv_c_bigendian=unknown
9161 # See if we're dealing with a universal compiler.
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #ifndef __APPLE_CC__
9165 not a universal capable compiler
9170 if ac_fn_c_try_compile "$LINENO"
9173 # Check for potential -arch flags. It is not universal unless
9174 # there are at least two -arch flags with different values.
9177 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9178 if test -n "$ac_prev"; then
9180 i?86 | x86_64 | ppc | ppc64)
9181 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9184 ac_cv_c_bigendian=universal
9190 elif test "x$ac_word" = "x-arch"; then
9195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9196 if test $ac_cv_c_bigendian = unknown; then
9197 # See if sys/param.h defines the BYTE_ORDER macro.
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #include <sys/types.h>
9201 #include <sys/param.h>
9206 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9207 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9216 if ac_fn_c_try_compile "$LINENO"
9218 # It does; now see whether it defined to BIG_ENDIAN or not.
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 #include <sys/types.h>
9222 #include <sys/param.h>
9227 #if BYTE_ORDER != BIG_ENDIAN
9235 if ac_fn_c_try_compile "$LINENO"
9237 ac_cv_c_bigendian=yes
9239 ac_cv_c_bigendian=no
9241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9245 if test $ac_cv_c_bigendian = unknown; then
9246 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9254 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9262 if ac_fn_c_try_compile "$LINENO"
9264 # It does; now see whether it defined to _BIG_ENDIAN or not.
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9280 if ac_fn_c_try_compile "$LINENO"
9282 ac_cv_c_bigendian=yes
9284 ac_cv_c_bigendian=no
9286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9290 if test $ac_cv_c_bigendian = unknown; then
9291 # Compile a test program.
9292 if test "$cross_compiling" = yes
9294 # Try to guess by grepping values from an object file.
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297 unsigned short int ascii_mm[] =
9298 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9299 unsigned short int ascii_ii[] =
9300 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9301 int use_ascii (int i) {
9302 return ascii_mm[i] + ascii_ii[i];
9304 unsigned short int ebcdic_ii[] =
9305 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9306 unsigned short int ebcdic_mm[] =
9307 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9308 int use_ebcdic (int i) {
9309 return ebcdic_mm[i] + ebcdic_ii[i];
9316 return use_ascii (foo) == use_ebcdic (foo);
9321 if ac_fn_c_try_compile "$LINENO"
9323 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9324 ac_cv_c_bigendian=yes
9326 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9327 if test "$ac_cv_c_bigendian" = unknown; then
9328 ac_cv_c_bigendian=no
9330 # finding both strings is unlikely to happen, but who knows?
9331 ac_cv_c_bigendian=unknown
9335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339 $ac_includes_default
9344 /* Are we little or big endian? From Harbison&Steele. */
9348 char c[sizeof (long int)];
9351 return u.c[sizeof (long int) - 1] == 1;
9357 if ac_fn_c_try_run "$LINENO"
9359 ac_cv_c_bigendian=no
9361 ac_cv_c_bigendian=yes
9363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9364 conftest.$ac_objext conftest.beam conftest.$ac_ext
9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9370 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
9371 case $ac_cv_c_bigendian in #(
9373 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
9379 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9383 as_fn_error $? "unknown endianness
9384 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9388 # Enable gettext, in "external" mode.
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9391 printf %s "checking for a sed that does not truncate output... " >&6; }
9392 if test ${ac_cv_path_SED+y}
9394 printf %s "(cached) " >&6
9396 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9397 for ac_i in 1 2 3 4 5 6 7; do
9398 ac_script="$ac_script$as_nl$ac_script"
9400 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9401 { ac_script=; unset ac_script;}
9402 if test -z "$SED"; then
9403 ac_path_SED_found=false
9404 # Loop through the user's path and test for each of PROGNAME-LIST
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 case $as_dir in #(((
9412 *) as_dir=$as_dir/ ;;
9414 for ac_prog in sed gsed
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9418 as_fn_executable_p "$ac_path_SED" || continue
9419 # Check for GNU ac_path_SED and select it if it is found.
9420 # Check for GNU $ac_path_SED
9421 case `"$ac_path_SED" --version 2>&1` in
9423 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9426 printf %s 0123456789 >"conftest.in"
9429 cat "conftest.in" "conftest.in" >"conftest.tmp"
9430 mv "conftest.tmp" "conftest.in"
9431 cp "conftest.in" "conftest.nl"
9432 printf "%s\n" '' >> "conftest.nl"
9433 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9435 as_fn_arith $ac_count + 1 && ac_count=$as_val
9436 if test $ac_count -gt ${ac_path_SED_max-0}; then
9437 # Best one so far, save it but keep looking for a better one
9438 ac_cv_path_SED="$ac_path_SED"
9439 ac_path_SED_max=$ac_count
9441 # 10*(2^10) chars as input seems more than enough
9442 test $ac_count -gt 10 && break
9444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9447 $ac_path_SED_found && break 3
9452 if test -z "$ac_cv_path_SED"; then
9453 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9461 printf "%s\n" "$ac_cv_path_SED" >&6; }
9462 SED="$ac_cv_path_SED"
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9467 printf %s "checking whether NLS is requested... " >&6; }
9468 # Check whether --enable-nls was given.
9469 if test ${enable_nls+y}
9471 enableval=$enable_nls; USE_NLS=$enableval
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9477 printf "%s\n" "$USE_NLS" >&6; }
9482 GETTEXT_MACRO_VERSION=0.19
9487 # Prepare PATH_SEPARATOR.
9488 # The user is always right.
9489 if test "${PATH_SEPARATOR+set}" != set; then
9490 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9491 # contains only /bin. Note that ksh looks also at the FPATH variable,
9492 # so we have to set that as well for the test.
9494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9495 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9496 || PATH_SEPARATOR=';'
9500 # Find out how to test for executable files. Don't use a zero-byte file,
9501 # as systems may use methods other than mode bits to determine executability.
9502 cat >conf$$.file <<_ASEOF
9506 chmod +x conf$$.file
9507 if test -x conf$$.file >/dev/null 2>&1; then
9508 ac_executable_p="test -x"
9510 ac_executable_p="test -f"
9514 # Extract the first word of "msgfmt", so it can be a program name with args.
9515 set dummy msgfmt; ac_word=$2
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 printf %s "checking for $ac_word... " >&6; }
9518 if test ${ac_cv_path_MSGFMT+y}
9520 printf %s "(cached) " >&6
9524 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9527 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9528 for ac_dir in $PATH; do
9530 test -z "$ac_dir" && ac_dir=.
9531 for ac_exec_ext in '' $ac_executable_extensions; do
9532 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9533 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9534 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9535 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9536 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9543 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9547 MSGFMT="$ac_cv_path_MSGFMT"
9548 if test "$MSGFMT" != ":"; then
9549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9550 printf "%s\n" "$MSGFMT" >&6; }
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 printf "%s\n" "no" >&6; }
9556 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9557 set dummy gmsgfmt; ac_word=$2
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 printf %s "checking for $ac_word... " >&6; }
9560 if test ${ac_cv_path_GMSGFMT+y}
9562 printf %s "(cached) " >&6
9566 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573 case $as_dir in #(((
9576 *) as_dir=$as_dir/ ;;
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9580 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
9581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9592 GMSGFMT=$ac_cv_path_GMSGFMT
9593 if test -n "$GMSGFMT"; then
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9595 printf "%s\n" "$GMSGFMT" >&6; }
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 printf "%s\n" "no" >&6; }
9603 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9604 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
9605 *) MSGFMT_015=$MSGFMT ;;
9608 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9609 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
9610 *) GMSGFMT_015=$GMSGFMT ;;
9615 # Prepare PATH_SEPARATOR.
9616 # The user is always right.
9617 if test "${PATH_SEPARATOR+set}" != set; then
9618 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9619 # contains only /bin. Note that ksh looks also at the FPATH variable,
9620 # so we have to set that as well for the test.
9622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9623 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9624 || PATH_SEPARATOR=';'
9628 # Find out how to test for executable files. Don't use a zero-byte file,
9629 # as systems may use methods other than mode bits to determine executability.
9630 cat >conf$$.file <<_ASEOF
9634 chmod +x conf$$.file
9635 if test -x conf$$.file >/dev/null 2>&1; then
9636 ac_executable_p="test -x"
9638 ac_executable_p="test -f"
9642 # Extract the first word of "xgettext", so it can be a program name with args.
9643 set dummy xgettext; ac_word=$2
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 printf %s "checking for $ac_word... " >&6; }
9646 if test ${ac_cv_path_XGETTEXT+y}
9648 printf %s "(cached) " >&6
9652 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9655 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9656 for ac_dir in $PATH; do
9658 test -z "$ac_dir" && ac_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9661 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9662 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9663 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9664 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9671 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9675 XGETTEXT="$ac_cv_path_XGETTEXT"
9676 if test "$XGETTEXT" != ":"; then
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9678 printf "%s\n" "$XGETTEXT" >&6; }
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 printf "%s\n" "no" >&6; }
9686 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9687 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
9688 *) XGETTEXT_015=$XGETTEXT ;;
9693 # Prepare PATH_SEPARATOR.
9694 # The user is always right.
9695 if test "${PATH_SEPARATOR+set}" != set; then
9696 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9697 # contains only /bin. Note that ksh looks also at the FPATH variable,
9698 # so we have to set that as well for the test.
9700 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9701 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9702 || PATH_SEPARATOR=';'
9706 # Find out how to test for executable files. Don't use a zero-byte file,
9707 # as systems may use methods other than mode bits to determine executability.
9708 cat >conf$$.file <<_ASEOF
9712 chmod +x conf$$.file
9713 if test -x conf$$.file >/dev/null 2>&1; then
9714 ac_executable_p="test -x"
9716 ac_executable_p="test -f"
9720 # Extract the first word of "msgmerge", so it can be a program name with args.
9721 set dummy msgmerge; ac_word=$2
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 printf %s "checking for $ac_word... " >&6; }
9724 if test ${ac_cv_path_MSGMERGE+y}
9726 printf %s "(cached) " >&6
9730 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9733 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9734 for ac_dir in $PATH; do
9736 test -z "$ac_dir" && ac_dir=.
9737 for ac_exec_ext in '' $ac_executable_extensions; do
9738 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9739 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9740 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
9741 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9748 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9752 MSGMERGE="$ac_cv_path_MSGMERGE"
9753 if test "$MSGMERGE" != ":"; then
9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9755 printf "%s\n" "$MSGMERGE" >&6; }
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 printf "%s\n" "no" >&6; }
9762 test -n "$localedir" || localedir='${datadir}/locale'
9765 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
9768 ac_config_commands="$ac_config_commands po-directories"
9772 if test "X$prefix" = "XNONE"; then
9773 acl_final_prefix="$ac_default_prefix"
9775 acl_final_prefix="$prefix"
9777 if test "X$exec_prefix" = "XNONE"; then
9778 acl_final_exec_prefix='${prefix}'
9780 acl_final_exec_prefix="$exec_prefix"
9782 acl_save_prefix="$prefix"
9783 prefix="$acl_final_prefix"
9784 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9785 prefix="$acl_save_prefix"
9789 # Check whether --with-gnu-ld was given.
9790 if test ${with_gnu_ld+y}
9792 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9797 # Prepare PATH_SEPARATOR.
9798 # The user is always right.
9799 if test "${PATH_SEPARATOR+set}" != set; then
9800 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9801 # contains only /bin. Note that ksh looks also at the FPATH variable,
9802 # so we have to set that as well for the test.
9804 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9805 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9806 || PATH_SEPARATOR=';'
9811 if test "$GCC" = yes; then
9812 # Check if gcc -print-prog-name=ld gives a path.
9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9814 printf %s "checking for ld used by $CC... " >&6; }
9817 # gcc leaves a trailing carriage return which upsets mingw
9818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9823 # Accept absolute paths.
9825 re_direlt='/[^/][^/]*/\.\./'
9826 # Canonicalize the pathname of ld
9827 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
9828 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
9829 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9831 test -z "$LD" && LD="$ac_prog"
9834 # If it fails, then pretend we aren't using GCC.
9838 # If it is relative, then search for the first ld in PATH.
9842 elif test "$with_gnu_ld" = yes; then
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9844 printf %s "checking for GNU ld... " >&6; }
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9847 printf %s "checking for non-GNU ld... " >&6; }
9849 if test ${acl_cv_path_LD+y}
9851 printf %s "(cached) " >&6
9853 if test -z "$LD"; then
9854 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9855 for ac_dir in $PATH; do
9857 test -z "$ac_dir" && ac_dir=.
9858 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9859 acl_cv_path_LD="$ac_dir/$ac_prog"
9860 # Check to see if the program is GNU ld. I'd rather use --version,
9861 # but apparently some variants of GNU ld only accept -v.
9862 # Break only if it was the GNU/non-GNU ld that we prefer.
9863 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
9864 *GNU* | *'with BFD'*)
9865 test "$with_gnu_ld" != no && break
9868 test "$with_gnu_ld" != yes && break
9875 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9879 LD="$acl_cv_path_LD"
9880 if test -n "$LD"; then
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9882 printf "%s\n" "$LD" >&6; }
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 printf "%s\n" "no" >&6; }
9887 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9889 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9890 if test ${acl_cv_prog_gnu_ld+y}
9892 printf %s "(cached) " >&6
9894 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9895 case `$LD -v 2>&1 </dev/null` in
9896 *GNU* | *'with BFD'*)
9897 acl_cv_prog_gnu_ld=yes
9900 acl_cv_prog_gnu_ld=no
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9905 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
9906 with_gnu_ld=$acl_cv_prog_gnu_ld
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9913 printf %s "checking for shared library run path origin... " >&6; }
9914 if test ${acl_cv_rpath+y}
9916 printf %s "(cached) " >&6
9919 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9920 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9927 printf "%s\n" "$acl_cv_rpath" >&6; }
9929 acl_libext="$acl_cv_libext"
9930 acl_shlibext="$acl_cv_shlibext"
9931 acl_libname_spec="$acl_cv_libname_spec"
9932 acl_library_names_spec="$acl_cv_library_names_spec"
9933 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9934 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9935 acl_hardcode_direct="$acl_cv_hardcode_direct"
9936 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
9937 # Check whether --enable-rpath was given.
9938 if test ${enable_rpath+y}
9940 enableval=$enable_rpath; :
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
9953 printf %s "checking for 64-bit host... " >&6; }
9954 if test ${gl_cv_solaris_64bit+y}
9956 printf %s "(cached) " >&6
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9967 $EGREP "sixtyfour bits" >/dev/null 2>&1
9969 gl_cv_solaris_64bit=yes
9971 gl_cv_solaris_64bit=no
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
9978 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
9979 if test $gl_cv_solaris_64bit = yes; then
9980 acl_libdirstem=lib/64
9982 sparc*) acl_libdirstem2=lib/sparcv9 ;;
9983 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
9988 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9989 if test -n "$searchpath"; then
9990 acl_save_IFS="${IFS= }"; IFS=":"
9991 for searchdir in $searchpath; do
9992 if test -d "$searchdir"; then
9993 case "$searchdir" in
9994 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9996 # Better ignore directories of this form. They are misleading.
9998 *) searchdir=`cd "$searchdir" && pwd`
9999 case "$searchdir" in
10000 */lib64 ) acl_libdirstem=lib64 ;;
10005 IFS="$acl_save_IFS"
10009 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10024 acl_save_prefix="$prefix"
10025 prefix="$acl_final_prefix"
10026 acl_save_exec_prefix="$exec_prefix"
10027 exec_prefix="$acl_final_exec_prefix"
10029 eval additional_includedir=\"$includedir\"
10030 eval additional_libdir=\"$libdir\"
10032 exec_prefix="$acl_save_exec_prefix"
10033 prefix="$acl_save_prefix"
10036 # Check whether --with-libiconv-prefix was given.
10037 if test ${with_libiconv_prefix+y}
10039 withval=$with_libiconv_prefix;
10040 if test "X$withval" = "Xno"; then
10043 if test "X$withval" = "X"; then
10045 acl_save_prefix="$prefix"
10046 prefix="$acl_final_prefix"
10047 acl_save_exec_prefix="$exec_prefix"
10048 exec_prefix="$acl_final_exec_prefix"
10050 eval additional_includedir=\"$includedir\"
10051 eval additional_libdir=\"$libdir\"
10053 exec_prefix="$acl_save_exec_prefix"
10054 prefix="$acl_save_prefix"
10057 additional_includedir="$withval/include"
10058 additional_libdir="$withval/$acl_libdirstem"
10059 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10060 && ! test -d "$withval/$acl_libdirstem"; then
10061 additional_libdir="$withval/$acl_libdirstem2"
10075 names_already_handled=
10076 names_next_round='iconv '
10077 while test -n "$names_next_round"; do
10078 names_this_round="$names_next_round"
10080 for name in $names_this_round; do
10082 for n in $names_already_handled; do
10083 if test "$n" = "$name"; then
10084 already_handled=yes
10088 if test -z "$already_handled"; then
10089 names_already_handled="$names_already_handled $name"
10090 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10091 eval value=\"\$HAVE_LIB$uppername\"
10092 if test -n "$value"; then
10093 if test "$value" = yes; then
10094 eval value=\"\$LIB$uppername\"
10095 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10096 eval value=\"\$LTLIB$uppername\"
10097 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10106 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10107 if test -n "$acl_shlibext"; then
10108 shrext=".$acl_shlibext" # typically: shrext=.so
10112 if test $use_additional = yes; then
10113 dir="$additional_libdir"
10114 if test -n "$acl_shlibext"; then
10115 if test -f "$dir/$libname$shrext"; then
10117 found_so="$dir/$libname$shrext"
10119 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10120 ver=`(cd "$dir" && \
10121 for f in "$libname$shrext".*; do echo "$f"; done \
10122 | sed -e "s,^$libname$shrext\\\\.,," \
10123 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10124 | sed 1q ) 2>/dev/null`
10125 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10127 found_so="$dir/$libname$shrext.$ver"
10130 eval library_names=\"$acl_library_names_spec\"
10131 for f in $library_names; do
10132 if test -f "$dir/$f"; then
10141 if test "X$found_dir" = "X"; then
10142 if test -f "$dir/$libname.$acl_libext"; then
10144 found_a="$dir/$libname.$acl_libext"
10147 if test "X$found_dir" != "X"; then
10148 if test -f "$dir/$libname.la"; then
10149 found_la="$dir/$libname.la"
10153 if test "X$found_dir" = "X"; then
10154 for x in $LDFLAGS $LTLIBICONV; do
10156 acl_save_prefix="$prefix"
10157 prefix="$acl_final_prefix"
10158 acl_save_exec_prefix="$exec_prefix"
10159 exec_prefix="$acl_final_exec_prefix"
10161 exec_prefix="$acl_save_exec_prefix"
10162 prefix="$acl_save_prefix"
10166 dir=`echo "X$x" | sed -e 's/^X-L//'`
10167 if test -n "$acl_shlibext"; then
10168 if test -f "$dir/$libname$shrext"; then
10170 found_so="$dir/$libname$shrext"
10172 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10173 ver=`(cd "$dir" && \
10174 for f in "$libname$shrext".*; do echo "$f"; done \
10175 | sed -e "s,^$libname$shrext\\\\.,," \
10176 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10177 | sed 1q ) 2>/dev/null`
10178 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10180 found_so="$dir/$libname$shrext.$ver"
10183 eval library_names=\"$acl_library_names_spec\"
10184 for f in $library_names; do
10185 if test -f "$dir/$f"; then
10194 if test "X$found_dir" = "X"; then
10195 if test -f "$dir/$libname.$acl_libext"; then
10197 found_a="$dir/$libname.$acl_libext"
10200 if test "X$found_dir" != "X"; then
10201 if test -f "$dir/$libname.la"; then
10202 found_la="$dir/$libname.la"
10207 if test "X$found_dir" != "X"; then
10212 if test "X$found_dir" != "X"; then
10213 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10214 if test "X$found_so" != "X"; then
10215 if test "$enable_rpath" = no \
10216 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10217 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10221 for x in $ltrpathdirs; do
10222 if test "X$x" = "X$found_dir"; then
10227 if test -z "$haveit"; then
10228 ltrpathdirs="$ltrpathdirs $found_dir"
10230 if test "$acl_hardcode_direct" = yes; then
10231 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10233 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10234 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10236 for x in $rpathdirs; do
10237 if test "X$x" = "X$found_dir"; then
10242 if test -z "$haveit"; then
10243 rpathdirs="$rpathdirs $found_dir"
10247 for x in $LDFLAGS $LIBICONV; do
10249 acl_save_prefix="$prefix"
10250 prefix="$acl_final_prefix"
10251 acl_save_exec_prefix="$exec_prefix"
10252 exec_prefix="$acl_final_exec_prefix"
10254 exec_prefix="$acl_save_exec_prefix"
10255 prefix="$acl_save_prefix"
10257 if test "X$x" = "X-L$found_dir"; then
10262 if test -z "$haveit"; then
10263 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10265 if test "$acl_hardcode_minus_L" != no; then
10266 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10268 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10274 if test "X$found_a" != "X"; then
10275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10277 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10280 additional_includedir=
10281 case "$found_dir" in
10282 */$acl_libdirstem | */$acl_libdirstem/)
10283 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10284 if test "$name" = 'iconv'; then
10285 LIBICONV_PREFIX="$basedir"
10287 additional_includedir="$basedir/include"
10289 */$acl_libdirstem2 | */$acl_libdirstem2/)
10290 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10291 if test "$name" = 'iconv'; then
10292 LIBICONV_PREFIX="$basedir"
10294 additional_includedir="$basedir/include"
10297 if test "X$additional_includedir" != "X"; then
10298 if test "X$additional_includedir" != "X/usr/include"; then
10300 if test "X$additional_includedir" = "X/usr/local/include"; then
10301 if test -n "$GCC"; then
10303 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10307 if test -z "$haveit"; then
10308 for x in $CPPFLAGS $INCICONV; do
10310 acl_save_prefix="$prefix"
10311 prefix="$acl_final_prefix"
10312 acl_save_exec_prefix="$exec_prefix"
10313 exec_prefix="$acl_final_exec_prefix"
10315 exec_prefix="$acl_save_exec_prefix"
10316 prefix="$acl_save_prefix"
10318 if test "X$x" = "X-I$additional_includedir"; then
10323 if test -z "$haveit"; then
10324 if test -d "$additional_includedir"; then
10325 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10331 if test -n "$found_la"; then
10332 save_libdir="$libdir"
10333 case "$found_la" in
10334 */* | *\\*) . "$found_la" ;;
10335 *) . "./$found_la" ;;
10337 libdir="$save_libdir"
10338 for dep in $dependency_libs; do
10341 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10342 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10343 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10345 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10346 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10347 if test -n "$GCC"; then
10349 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10353 if test -z "$haveit"; then
10355 for x in $LDFLAGS $LIBICONV; do
10357 acl_save_prefix="$prefix"
10358 prefix="$acl_final_prefix"
10359 acl_save_exec_prefix="$exec_prefix"
10360 exec_prefix="$acl_final_exec_prefix"
10362 exec_prefix="$acl_save_exec_prefix"
10363 prefix="$acl_save_prefix"
10365 if test "X$x" = "X-L$additional_libdir"; then
10370 if test -z "$haveit"; then
10371 if test -d "$additional_libdir"; then
10372 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10376 for x in $LDFLAGS $LTLIBICONV; do
10378 acl_save_prefix="$prefix"
10379 prefix="$acl_final_prefix"
10380 acl_save_exec_prefix="$exec_prefix"
10381 exec_prefix="$acl_final_exec_prefix"
10383 exec_prefix="$acl_save_exec_prefix"
10384 prefix="$acl_save_prefix"
10386 if test "X$x" = "X-L$additional_libdir"; then
10391 if test -z "$haveit"; then
10392 if test -d "$additional_libdir"; then
10393 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10400 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10401 if test "$enable_rpath" != no; then
10403 for x in $rpathdirs; do
10404 if test "X$x" = "X$dir"; then
10409 if test -z "$haveit"; then
10410 rpathdirs="$rpathdirs $dir"
10413 for x in $ltrpathdirs; do
10414 if test "X$x" = "X$dir"; then
10419 if test -z "$haveit"; then
10420 ltrpathdirs="$ltrpathdirs $dir"
10425 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10428 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10431 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10438 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10445 if test "X$rpathdirs" != "X"; then
10446 if test -n "$acl_hardcode_libdir_separator"; then
10448 for found_dir in $rpathdirs; do
10449 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10451 acl_save_libdir="$libdir"
10453 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10454 libdir="$acl_save_libdir"
10455 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10457 for found_dir in $rpathdirs; do
10458 acl_save_libdir="$libdir"
10459 libdir="$found_dir"
10460 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10461 libdir="$acl_save_libdir"
10462 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10466 if test "X$ltrpathdirs" != "X"; then
10467 for found_dir in $ltrpathdirs; do
10468 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10503 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
10504 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
10506 printf %s "(cached) " >&6
10508 gt_save_LIBS="$LIBS"
10509 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512 #include <CoreFoundation/CFPreferences.h>
10516 CFPreferencesCopyAppValue(NULL, NULL)
10521 if ac_fn_c_try_link "$LINENO"
10523 gt_cv_func_CFPreferencesCopyAppValue=yes
10525 gt_cv_func_CFPreferencesCopyAppValue=no
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS="$gt_save_LIBS"
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10532 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10533 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10535 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10539 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
10540 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
10542 printf %s "(cached) " >&6
10544 gt_save_LIBS="$LIBS"
10545 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 #include <CoreFoundation/CFLocale.h>
10552 CFLocaleCopyCurrent();
10557 if ac_fn_c_try_link "$LINENO"
10559 gt_cv_func_CFLocaleCopyCurrent=yes
10561 gt_cv_func_CFLocaleCopyCurrent=no
10563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS="$gt_save_LIBS"
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10568 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10569 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10571 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10575 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10576 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10588 case " $gt_needs " in
10589 *" need-formatstring-macros "*) gt_api_version=3 ;;
10590 *" need-ngettext "*) gt_api_version=2 ;;
10591 *) gt_api_version=1 ;;
10593 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10594 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10596 if test "$USE_NLS" = "yes"; then
10597 gt_use_preinstalled_gnugettext=no
10600 if test $gt_api_version -ge 3; then
10601 gt_revision_test_code='
10602 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10603 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10605 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10608 gt_revision_test_code=
10610 if test $gt_api_version -ge 2; then
10611 gt_expression_test_code=' + * ngettext ("", "", 0)'
10613 gt_expression_test_code=
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10617 printf %s "checking for GNU gettext in libc... " >&6; }
10618 if eval test \${$gt_func_gnugettext_libc+y}
10620 printf %s "(cached) " >&6
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10625 #include <libintl.h>
10626 $gt_revision_test_code
10627 extern int _nl_msg_cat_cntr;
10628 extern int *_nl_domain_bindings;
10634 bindtextdomain ("", "");
10635 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10641 if ac_fn_c_try_link "$LINENO"
10643 eval "$gt_func_gnugettext_libc=yes"
10645 eval "$gt_func_gnugettext_libc=no"
10647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10648 conftest$ac_exeext conftest.$ac_ext
10650 eval ac_res=\$$gt_func_gnugettext_libc
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10652 printf "%s\n" "$ac_res" >&6; }
10654 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10660 am_save_CPPFLAGS="$CPPFLAGS"
10662 for element in $INCICONV; do
10664 for x in $CPPFLAGS; do
10666 acl_save_prefix="$prefix"
10667 prefix="$acl_final_prefix"
10668 acl_save_exec_prefix="$exec_prefix"
10669 exec_prefix="$acl_final_exec_prefix"
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10674 if test "X$x" = "X$element"; then
10679 if test -z "$haveit"; then
10680 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10686 printf %s "checking for iconv... " >&6; }
10687 if test ${am_cv_func_iconv+y}
10689 printf %s "(cached) " >&6
10692 am_cv_func_iconv="no, consider installing GNU libiconv"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 #include <stdlib.h>
10703 iconv_t cd = iconv_open("","");
10704 iconv(cd,NULL,NULL,NULL,NULL);
10710 if ac_fn_c_try_link "$LINENO"
10712 am_cv_func_iconv=yes
10714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10715 conftest$ac_exeext conftest.$ac_ext
10716 if test "$am_cv_func_iconv" != yes; then
10717 am_save_LIBS="$LIBS"
10718 LIBS="$LIBS $LIBICONV"
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 #include <stdlib.h>
10728 iconv_t cd = iconv_open("","");
10729 iconv(cd,NULL,NULL,NULL,NULL);
10735 if ac_fn_c_try_link "$LINENO"
10737 am_cv_lib_iconv=yes
10738 am_cv_func_iconv=yes
10740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS="$am_save_LIBS"
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10747 printf "%s\n" "$am_cv_func_iconv" >&6; }
10748 if test "$am_cv_func_iconv" = yes; then
10749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10750 printf %s "checking for working iconv... " >&6; }
10751 if test ${am_cv_func_iconv_works+y}
10753 printf %s "(cached) " >&6
10756 am_save_LIBS="$LIBS"
10757 if test $am_cv_lib_iconv = yes; then
10758 LIBS="$LIBS $LIBICONV"
10760 am_cv_func_iconv_works=no
10761 for ac_iconv_const in '' 'const'; do
10762 if test "$cross_compiling" = yes
10765 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10766 *) am_cv_func_iconv_works="guessing yes" ;;
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10773 #include <string.h>
10775 #ifndef ICONV_CONST
10776 # define ICONV_CONST $ac_iconv_const
10783 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10786 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10787 if (cd_utf8_to_88591 != (iconv_t)(-1))
10789 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10791 ICONV_CONST char *inptr = input;
10792 size_t inbytesleft = strlen (input);
10793 char *outptr = buf;
10794 size_t outbytesleft = sizeof (buf);
10795 size_t res = iconv (cd_utf8_to_88591,
10796 &inptr, &inbytesleft,
10797 &outptr, &outbytesleft);
10800 iconv_close (cd_utf8_to_88591);
10803 /* Test against Solaris 10 bug: Failures are not distinguishable from
10804 successful returns. */
10806 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10807 if (cd_ascii_to_88591 != (iconv_t)(-1))
10809 static ICONV_CONST char input[] = "\263";
10811 ICONV_CONST char *inptr = input;
10812 size_t inbytesleft = strlen (input);
10813 char *outptr = buf;
10814 size_t outbytesleft = sizeof (buf);
10815 size_t res = iconv (cd_ascii_to_88591,
10816 &inptr, &inbytesleft,
10817 &outptr, &outbytesleft);
10820 iconv_close (cd_ascii_to_88591);
10823 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10825 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10826 if (cd_88591_to_utf8 != (iconv_t)(-1))
10828 static ICONV_CONST char input[] = "\304";
10829 static char buf[2] = { (char)0xDE, (char)0xAD };
10830 ICONV_CONST char *inptr = input;
10831 size_t inbytesleft = 1;
10832 char *outptr = buf;
10833 size_t outbytesleft = 1;
10834 size_t res = iconv (cd_88591_to_utf8,
10835 &inptr, &inbytesleft,
10836 &outptr, &outbytesleft);
10837 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10839 iconv_close (cd_88591_to_utf8);
10842 #if 0 /* This bug could be worked around by the caller. */
10843 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10845 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10846 if (cd_88591_to_utf8 != (iconv_t)(-1))
10848 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10850 ICONV_CONST char *inptr = input;
10851 size_t inbytesleft = strlen (input);
10852 char *outptr = buf;
10853 size_t outbytesleft = sizeof (buf);
10854 size_t res = iconv (cd_88591_to_utf8,
10855 &inptr, &inbytesleft,
10856 &outptr, &outbytesleft);
10859 iconv_close (cd_88591_to_utf8);
10863 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10865 if (/* Try standardized names. */
10866 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10867 /* Try IRIX, OSF/1 names. */
10868 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10869 /* Try AIX names. */
10870 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10871 /* Try HP-UX names. */
10872 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10880 if ac_fn_c_try_run "$LINENO"
10882 am_cv_func_iconv_works=yes
10884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10885 conftest.$ac_objext conftest.beam conftest.$ac_ext
10888 test "$am_cv_func_iconv_works" = no || break
10890 LIBS="$am_save_LIBS"
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10894 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10895 case "$am_cv_func_iconv_works" in
10896 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10897 *) am_func_iconv=yes ;;
10900 am_func_iconv=no am_cv_lib_iconv=no
10902 if test "$am_func_iconv" = yes; then
10904 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10907 if test "$am_cv_lib_iconv" = yes; then
10908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10909 printf %s "checking how to link with libiconv... " >&6; }
10910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10911 printf "%s\n" "$LIBICONV" >&6; }
10913 CPPFLAGS="$am_save_CPPFLAGS"
10930 acl_save_prefix="$prefix"
10931 prefix="$acl_final_prefix"
10932 acl_save_exec_prefix="$exec_prefix"
10933 exec_prefix="$acl_final_exec_prefix"
10935 eval additional_includedir=\"$includedir\"
10936 eval additional_libdir=\"$libdir\"
10938 exec_prefix="$acl_save_exec_prefix"
10939 prefix="$acl_save_prefix"
10942 # Check whether --with-libintl-prefix was given.
10943 if test ${with_libintl_prefix+y}
10945 withval=$with_libintl_prefix;
10946 if test "X$withval" = "Xno"; then
10949 if test "X$withval" = "X"; then
10951 acl_save_prefix="$prefix"
10952 prefix="$acl_final_prefix"
10953 acl_save_exec_prefix="$exec_prefix"
10954 exec_prefix="$acl_final_exec_prefix"
10956 eval additional_includedir=\"$includedir\"
10957 eval additional_libdir=\"$libdir\"
10959 exec_prefix="$acl_save_exec_prefix"
10960 prefix="$acl_save_prefix"
10963 additional_includedir="$withval/include"
10964 additional_libdir="$withval/$acl_libdirstem"
10965 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10966 && ! test -d "$withval/$acl_libdirstem"; then
10967 additional_libdir="$withval/$acl_libdirstem2"
10981 names_already_handled=
10982 names_next_round='intl '
10983 while test -n "$names_next_round"; do
10984 names_this_round="$names_next_round"
10986 for name in $names_this_round; do
10988 for n in $names_already_handled; do
10989 if test "$n" = "$name"; then
10990 already_handled=yes
10994 if test -z "$already_handled"; then
10995 names_already_handled="$names_already_handled $name"
10996 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10997 eval value=\"\$HAVE_LIB$uppername\"
10998 if test -n "$value"; then
10999 if test "$value" = yes; then
11000 eval value=\"\$LIB$uppername\"
11001 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11002 eval value=\"\$LTLIB$uppername\"
11003 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11012 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11013 if test -n "$acl_shlibext"; then
11014 shrext=".$acl_shlibext" # typically: shrext=.so
11018 if test $use_additional = yes; then
11019 dir="$additional_libdir"
11020 if test -n "$acl_shlibext"; then
11021 if test -f "$dir/$libname$shrext"; then
11023 found_so="$dir/$libname$shrext"
11025 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11026 ver=`(cd "$dir" && \
11027 for f in "$libname$shrext".*; do echo "$f"; done \
11028 | sed -e "s,^$libname$shrext\\\\.,," \
11029 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11030 | sed 1q ) 2>/dev/null`
11031 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11033 found_so="$dir/$libname$shrext.$ver"
11036 eval library_names=\"$acl_library_names_spec\"
11037 for f in $library_names; do
11038 if test -f "$dir/$f"; then
11047 if test "X$found_dir" = "X"; then
11048 if test -f "$dir/$libname.$acl_libext"; then
11050 found_a="$dir/$libname.$acl_libext"
11053 if test "X$found_dir" != "X"; then
11054 if test -f "$dir/$libname.la"; then
11055 found_la="$dir/$libname.la"
11059 if test "X$found_dir" = "X"; then
11060 for x in $LDFLAGS $LTLIBINTL; do
11062 acl_save_prefix="$prefix"
11063 prefix="$acl_final_prefix"
11064 acl_save_exec_prefix="$exec_prefix"
11065 exec_prefix="$acl_final_exec_prefix"
11067 exec_prefix="$acl_save_exec_prefix"
11068 prefix="$acl_save_prefix"
11072 dir=`echo "X$x" | sed -e 's/^X-L//'`
11073 if test -n "$acl_shlibext"; then
11074 if test -f "$dir/$libname$shrext"; then
11076 found_so="$dir/$libname$shrext"
11078 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11079 ver=`(cd "$dir" && \
11080 for f in "$libname$shrext".*; do echo "$f"; done \
11081 | sed -e "s,^$libname$shrext\\\\.,," \
11082 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11083 | sed 1q ) 2>/dev/null`
11084 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11086 found_so="$dir/$libname$shrext.$ver"
11089 eval library_names=\"$acl_library_names_spec\"
11090 for f in $library_names; do
11091 if test -f "$dir/$f"; then
11100 if test "X$found_dir" = "X"; then
11101 if test -f "$dir/$libname.$acl_libext"; then
11103 found_a="$dir/$libname.$acl_libext"
11106 if test "X$found_dir" != "X"; then
11107 if test -f "$dir/$libname.la"; then
11108 found_la="$dir/$libname.la"
11113 if test "X$found_dir" != "X"; then
11118 if test "X$found_dir" != "X"; then
11119 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11120 if test "X$found_so" != "X"; then
11121 if test "$enable_rpath" = no \
11122 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11123 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11124 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11127 for x in $ltrpathdirs; do
11128 if test "X$x" = "X$found_dir"; then
11133 if test -z "$haveit"; then
11134 ltrpathdirs="$ltrpathdirs $found_dir"
11136 if test "$acl_hardcode_direct" = yes; then
11137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11139 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11142 for x in $rpathdirs; do
11143 if test "X$x" = "X$found_dir"; then
11148 if test -z "$haveit"; then
11149 rpathdirs="$rpathdirs $found_dir"
11153 for x in $LDFLAGS $LIBINTL; do
11155 acl_save_prefix="$prefix"
11156 prefix="$acl_final_prefix"
11157 acl_save_exec_prefix="$exec_prefix"
11158 exec_prefix="$acl_final_exec_prefix"
11160 exec_prefix="$acl_save_exec_prefix"
11161 prefix="$acl_save_prefix"
11163 if test "X$x" = "X-L$found_dir"; then
11168 if test -z "$haveit"; then
11169 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11171 if test "$acl_hardcode_minus_L" != no; then
11172 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11174 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11180 if test "X$found_a" != "X"; then
11181 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11186 additional_includedir=
11187 case "$found_dir" in
11188 */$acl_libdirstem | */$acl_libdirstem/)
11189 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11190 if test "$name" = 'intl'; then
11191 LIBINTL_PREFIX="$basedir"
11193 additional_includedir="$basedir/include"
11195 */$acl_libdirstem2 | */$acl_libdirstem2/)
11196 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11197 if test "$name" = 'intl'; then
11198 LIBINTL_PREFIX="$basedir"
11200 additional_includedir="$basedir/include"
11203 if test "X$additional_includedir" != "X"; then
11204 if test "X$additional_includedir" != "X/usr/include"; then
11206 if test "X$additional_includedir" = "X/usr/local/include"; then
11207 if test -n "$GCC"; then
11209 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11213 if test -z "$haveit"; then
11214 for x in $CPPFLAGS $INCINTL; do
11216 acl_save_prefix="$prefix"
11217 prefix="$acl_final_prefix"
11218 acl_save_exec_prefix="$exec_prefix"
11219 exec_prefix="$acl_final_exec_prefix"
11221 exec_prefix="$acl_save_exec_prefix"
11222 prefix="$acl_save_prefix"
11224 if test "X$x" = "X-I$additional_includedir"; then
11229 if test -z "$haveit"; then
11230 if test -d "$additional_includedir"; then
11231 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11237 if test -n "$found_la"; then
11238 save_libdir="$libdir"
11239 case "$found_la" in
11240 */* | *\\*) . "$found_la" ;;
11241 *) . "./$found_la" ;;
11243 libdir="$save_libdir"
11244 for dep in $dependency_libs; do
11247 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11248 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11249 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11251 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11252 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11253 if test -n "$GCC"; then
11255 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11259 if test -z "$haveit"; then
11261 for x in $LDFLAGS $LIBINTL; do
11263 acl_save_prefix="$prefix"
11264 prefix="$acl_final_prefix"
11265 acl_save_exec_prefix="$exec_prefix"
11266 exec_prefix="$acl_final_exec_prefix"
11268 exec_prefix="$acl_save_exec_prefix"
11269 prefix="$acl_save_prefix"
11271 if test "X$x" = "X-L$additional_libdir"; then
11276 if test -z "$haveit"; then
11277 if test -d "$additional_libdir"; then
11278 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11282 for x in $LDFLAGS $LTLIBINTL; do
11284 acl_save_prefix="$prefix"
11285 prefix="$acl_final_prefix"
11286 acl_save_exec_prefix="$exec_prefix"
11287 exec_prefix="$acl_final_exec_prefix"
11289 exec_prefix="$acl_save_exec_prefix"
11290 prefix="$acl_save_prefix"
11292 if test "X$x" = "X-L$additional_libdir"; then
11297 if test -z "$haveit"; then
11298 if test -d "$additional_libdir"; then
11299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11306 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11307 if test "$enable_rpath" != no; then
11309 for x in $rpathdirs; do
11310 if test "X$x" = "X$dir"; then
11315 if test -z "$haveit"; then
11316 rpathdirs="$rpathdirs $dir"
11319 for x in $ltrpathdirs; do
11320 if test "X$x" = "X$dir"; then
11325 if test -z "$haveit"; then
11326 ltrpathdirs="$ltrpathdirs $dir"
11331 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11337 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11338 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11344 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11345 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11351 if test "X$rpathdirs" != "X"; then
11352 if test -n "$acl_hardcode_libdir_separator"; then
11354 for found_dir in $rpathdirs; do
11355 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11357 acl_save_libdir="$libdir"
11359 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11360 libdir="$acl_save_libdir"
11361 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11363 for found_dir in $rpathdirs; do
11364 acl_save_libdir="$libdir"
11365 libdir="$found_dir"
11366 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11367 libdir="$acl_save_libdir"
11368 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11372 if test "X$ltrpathdirs" != "X"; then
11373 for found_dir in $ltrpathdirs; do
11374 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11384 printf %s "checking for GNU gettext in libintl... " >&6; }
11385 if eval test \${$gt_func_gnugettext_libintl+y}
11387 printf %s "(cached) " >&6
11389 gt_save_CPPFLAGS="$CPPFLAGS"
11390 CPPFLAGS="$CPPFLAGS $INCINTL"
11391 gt_save_LIBS="$LIBS"
11392 LIBS="$LIBS $LIBINTL"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 #include <libintl.h>
11397 $gt_revision_test_code
11398 extern int _nl_msg_cat_cntr;
11403 const char *_nl_expand_alias (const char *);
11409 bindtextdomain ("", "");
11410 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11416 if ac_fn_c_try_link "$LINENO"
11418 eval "$gt_func_gnugettext_libintl=yes"
11420 eval "$gt_func_gnugettext_libintl=no"
11422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11423 conftest$ac_exeext conftest.$ac_ext
11424 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11425 LIBS="$LIBS $LIBICONV"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11429 #include <libintl.h>
11430 $gt_revision_test_code
11431 extern int _nl_msg_cat_cntr;
11436 const char *_nl_expand_alias (const char *);
11442 bindtextdomain ("", "");
11443 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11449 if ac_fn_c_try_link "$LINENO"
11451 LIBINTL="$LIBINTL $LIBICONV"
11452 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11453 eval "$gt_func_gnugettext_libintl=yes"
11456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11457 conftest$ac_exeext conftest.$ac_ext
11459 CPPFLAGS="$gt_save_CPPFLAGS"
11460 LIBS="$gt_save_LIBS"
11462 eval ac_res=\$$gt_func_gnugettext_libintl
11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11464 printf "%s\n" "$ac_res" >&6; }
11467 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11468 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11469 && test "$PACKAGE" != gettext-runtime \
11470 && test "$PACKAGE" != gettext-tools; }; then
11471 gt_use_preinstalled_gnugettext=yes
11480 if test -n "$INTL_MACOSX_LIBS"; then
11481 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11482 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11483 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11484 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11488 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11489 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11491 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
11498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11499 printf %s "checking whether to use NLS... " >&6; }
11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11501 printf "%s\n" "$USE_NLS" >&6; }
11502 if test "$USE_NLS" = "yes"; then
11503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11504 printf %s "checking where the gettext function comes from... " >&6; }
11505 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11506 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11507 gt_source="external libintl"
11512 gt_source="included intl directory"
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11515 printf "%s\n" "$gt_source" >&6; }
11518 if test "$USE_NLS" = "yes"; then
11520 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11521 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11523 printf %s "checking how to link with libintl... " >&6; }
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11525 printf "%s\n" "$LIBINTL" >&6; }
11527 for element in $INCINTL; do
11529 for x in $CPPFLAGS; do
11531 acl_save_prefix="$prefix"
11532 prefix="$acl_final_prefix"
11533 acl_save_exec_prefix="$exec_prefix"
11534 exec_prefix="$acl_final_exec_prefix"
11536 exec_prefix="$acl_save_exec_prefix"
11537 prefix="$acl_save_prefix"
11539 if test "X$x" = "X$element"; then
11544 if test -z "$haveit"; then
11545 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11552 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
11555 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
11564 INTLLIBS="$LIBINTL"
11572 # Checks for libraries.
11573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11574 printf %s "checking for library containing strerror... " >&6; }
11575 if test ${ac_cv_search_strerror+y}
11577 printf %s "(cached) " >&6
11579 ac_func_search_save_LIBS=$LIBS
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11590 return strerror ();
11595 for ac_lib in '' cposix
11597 if test -z "$ac_lib"; then
11598 ac_res="none required"
11601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11603 if ac_fn_c_try_link "$LINENO"
11605 ac_cv_search_strerror=$ac_res
11607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11609 if test ${ac_cv_search_strerror+y}
11614 if test ${ac_cv_search_strerror+y}
11618 ac_cv_search_strerror=no
11620 rm conftest.$ac_ext
11621 LIBS=$ac_func_search_save_LIBS
11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11624 printf "%s\n" "$ac_cv_search_strerror" >&6; }
11625 ac_res=$ac_cv_search_strerror
11626 if test "$ac_res" != no
11628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
11633 printf %s "checking for library containing getpwnam... " >&6; }
11634 if test ${ac_cv_search_getpwnam+y}
11636 printf %s "(cached) " >&6
11638 ac_func_search_save_LIBS=$LIBS
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11649 return getpwnam ();
11654 for ac_lib in '' sun
11656 if test -z "$ac_lib"; then
11657 ac_res="none required"
11660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11662 if ac_fn_c_try_link "$LINENO"
11664 ac_cv_search_getpwnam=$ac_res
11666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11668 if test ${ac_cv_search_getpwnam+y}
11673 if test ${ac_cv_search_getpwnam+y}
11677 ac_cv_search_getpwnam=no
11679 rm conftest.$ac_ext
11680 LIBS=$ac_func_search_save_LIBS
11682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
11683 printf "%s\n" "$ac_cv_search_getpwnam" >&6; }
11684 ac_res=$ac_cv_search_getpwnam
11685 if test "$ac_res" != no
11687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11692 ac_header_dirent=no
11693 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11694 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11696 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
11697 if eval test \${$as_ac_Header+y}
11699 printf %s "(cached) " >&6
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 #include <sys/types.h>
11715 if ac_fn_c_try_compile "$LINENO"
11717 eval "$as_ac_Header=yes"
11719 eval "$as_ac_Header=no"
11721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11723 eval ac_res=\$$as_ac_Header
11724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11725 printf "%s\n" "$ac_res" >&6; }
11726 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11728 cat >>confdefs.h <<_ACEOF
11729 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
11732 ac_header_dirent=$ac_hdr; break
11736 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11737 if test $ac_header_dirent = dirent.h; then
11738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11739 printf %s "checking for library containing opendir... " >&6; }
11740 if test ${ac_cv_search_opendir+y}
11742 printf %s "(cached) " >&6
11744 ac_func_search_save_LIBS=$LIBS
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11760 for ac_lib in '' dir
11762 if test -z "$ac_lib"; then
11763 ac_res="none required"
11766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11768 if ac_fn_c_try_link "$LINENO"
11770 ac_cv_search_opendir=$ac_res
11772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11774 if test ${ac_cv_search_opendir+y}
11779 if test ${ac_cv_search_opendir+y}
11783 ac_cv_search_opendir=no
11785 rm conftest.$ac_ext
11786 LIBS=$ac_func_search_save_LIBS
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11789 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11790 ac_res=$ac_cv_search_opendir
11791 if test "$ac_res" != no
11793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11799 printf %s "checking for library containing opendir... " >&6; }
11800 if test ${ac_cv_search_opendir+y}
11802 printf %s "(cached) " >&6
11804 ac_func_search_save_LIBS=$LIBS
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11822 if test -z "$ac_lib"; then
11823 ac_res="none required"
11826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11828 if ac_fn_c_try_link "$LINENO"
11830 ac_cv_search_opendir=$ac_res
11832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11834 if test ${ac_cv_search_opendir+y}
11839 if test ${ac_cv_search_opendir+y}
11843 ac_cv_search_opendir=no
11845 rm conftest.$ac_ext
11846 LIBS=$ac_func_search_save_LIBS
11848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11849 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11850 ac_res=$ac_cv_search_opendir
11851 if test "$ac_res" != no
11853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11860 printf %s "checking whether stat file-mode macros are broken... " >&6; }
11861 if test ${ac_cv_header_stat_broken+y}
11863 printf %s "(cached) " >&6
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867 #include <sys/types.h>
11868 #include <sys/stat.h>
11870 #if defined S_ISBLK && defined S_IFDIR
11871 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11874 #if defined S_ISBLK && defined S_IFCHR
11875 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11878 #if defined S_ISLNK && defined S_IFREG
11879 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11882 #if defined S_ISSOCK && defined S_IFREG
11883 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11887 if ac_fn_c_try_compile "$LINENO"
11889 ac_cv_header_stat_broken=no
11891 ac_cv_header_stat_broken=yes
11893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11896 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
11897 if test $ac_cv_header_stat_broken = yes; then
11899 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11904 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11905 if test "x$ac_cv_header_stdlib_h" = xyes
11907 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11910 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11911 if test "x$ac_cv_header_locale_h" = xyes
11913 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
11916 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_unistd_h" = xyes
11919 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11922 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
11923 if test "x$ac_cv_header_limits_h" = xyes
11925 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
11928 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
11929 if test "x$ac_cv_header_fcntl_h" = xyes
11931 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
11934 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
11935 if test "x$ac_cv_header_string_h" = xyes
11937 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
11940 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
11941 if test "x$ac_cv_header_memory_h" = xyes
11943 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
11946 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11947 if test "x$ac_cv_header_sys_param_h" = xyes
11949 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11952 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
11953 if test "x$ac_cv_header_sys_resource_h" = xyes
11955 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
11958 ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_sys_timeb_h" = xyes
11961 printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h
11964 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11965 if test "x$ac_cv_header_sys_time_h" = xyes
11967 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
11970 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
11971 if test "x$ac_cv_header_sys_select_h" = xyes
11973 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
11976 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
11977 if test "x$ac_cv_header_sys_file_h" = xyes
11979 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
11982 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
11983 if test "x$ac_cv_header_spawn_h" = xyes
11985 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11992 printf %s "checking for an ANSI C-conforming const... " >&6; }
11993 if test ${ac_cv_c_const+y}
11995 printf %s "(cached) " >&6
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
12004 #ifndef __cplusplus
12005 /* Ultrix mips cc rejects this sort of thing. */
12006 typedef int charset[2];
12007 const charset cs = { 0, 0 };
12008 /* SunOS 4.1.1 cc rejects this. */
12009 char const *const *pcpcc;
12011 /* NEC SVR4.0.2 mips cc rejects this. */
12012 struct point {int x, y;};
12013 static struct point const zero = {0,0};
12014 /* IBM XL C 1.02.0.0 rejects this.
12015 It does not let you subtract one const X* pointer from another in
12016 an arm of an if-expression whose if-part is not a constant
12018 const char *g = "string";
12019 pcpcc = &g + (g ? g-g : 0);
12020 /* HPUX 7.0 cc rejects these. */
12022 ppc = (char**) pcpcc;
12023 pcpcc = (char const *const *) ppc;
12024 { /* SCO 3.2v4 cc rejects this sort of thing. */
12027 char const *s = 0 ? (char *) 0 : (char const *) 0;
12032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12033 int x[] = {25, 17};
12034 const int *foo = &x[0];
12037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12038 typedef const int *iptr;
12042 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
12043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12044 struct s { int j; const int *ap[3]; } bx;
12045 struct s *b = &bx; b->j = 5;
12047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12048 const int foo = 10;
12049 if (!foo) return 0;
12051 return !cs[0] && !zero.x;
12058 if ac_fn_c_try_compile "$LINENO"
12064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12067 printf "%s\n" "$ac_cv_c_const" >&6; }
12068 if test $ac_cv_c_const = no; then
12070 printf "%s\n" "#define const /**/" >>confdefs.h
12074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12075 printf %s "checking for uid_t in sys/types.h... " >&6; }
12076 if test ${ac_cv_type_uid_t+y}
12078 printf %s "(cached) " >&6
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <sys/types.h>
12085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12086 $EGREP "uid_t" >/dev/null 2>&1
12088 ac_cv_type_uid_t=yes
12090 ac_cv_type_uid_t=no
12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12096 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
12097 if test $ac_cv_type_uid_t = no; then
12099 printf "%s\n" "#define uid_t int" >>confdefs.h
12102 printf "%s\n" "#define gid_t int" >>confdefs.h
12107 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
12109 if test "x$ac_cv_type_pid_t" = xyes
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 #if defined _WIN64 && !defined __CYGWIN__
12129 if ac_fn_c_try_compile "$LINENO"
12133 ac_pid_type='__int64'
12135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12137 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
12143 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12144 if test "x$ac_cv_type_off_t" = xyes
12149 printf "%s\n" "#define off_t long int" >>confdefs.h
12153 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12154 if test "x$ac_cv_type_size_t" = xyes
12159 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
12163 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12164 if test "x$ac_cv_type_ssize_t" = xyes
12169 printf "%s\n" "#define ssize_t int" >>confdefs.h
12174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12175 printf %s "checking for unsigned long long int... " >&6; }
12176 if test ${ac_cv_type_unsigned_long_long_int+y}
12178 printf %s "(cached) " >&6
12180 ac_cv_type_unsigned_long_long_int=yes
12181 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12185 /* For now, do not test the preprocessor; as of 2007 there are too many
12186 implementations with broken preprocessors. Perhaps this can
12187 be revisited in 2012. In the meantime, code should not expect
12188 #if to work with literals wider than 32 bits. */
12189 /* Test literals. */
12190 long long int ll = 9223372036854775807ll;
12191 long long int nll = -9223372036854775807LL;
12192 unsigned long long int ull = 18446744073709551615ULL;
12193 /* Test constant expressions. */
12194 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12196 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12202 /* Test availability of runtime routines for shift and division. */
12203 long long int llmax = 9223372036854775807ll;
12204 unsigned long long int ullmax = 18446744073709551615ull;
12205 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12206 | (llmax / ll) | (llmax % ll)
12207 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12208 | (ullmax / ull) | (ullmax % ull));
12214 if ac_fn_c_try_link "$LINENO"
12218 ac_cv_type_unsigned_long_long_int=no
12220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12221 conftest$ac_exeext conftest.$ac_ext
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12225 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
12226 if test $ac_cv_type_unsigned_long_long_int = yes; then
12228 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12235 printf %s "checking for long long int... " >&6; }
12236 if test ${ac_cv_type_long_long_int+y}
12238 printf %s "(cached) " >&6
12240 ac_cv_type_long_long_int=yes
12241 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12242 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12243 if test $ac_cv_type_long_long_int = yes; then
12244 if test "$cross_compiling" = yes
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12250 #include <limits.h>
12253 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12254 # define LLONG_MAX (HALF - 1 + HALF)
12259 long long int n = 1;
12263 long long int m = n << i;
12266 if (LLONG_MAX / 2 < m)
12274 if ac_fn_c_try_run "$LINENO"
12278 ac_cv_type_long_long_int=no
12280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12281 conftest.$ac_objext conftest.beam conftest.$ac_ext
12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12288 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
12289 if test $ac_cv_type_long_long_int = yes; then
12291 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12297 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
12298 if test "x$ac_cv_type_intmax_t" = xyes
12301 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
12304 test $ac_cv_type_long_long_int = yes \
12305 && ac_type='long long int' \
12306 || ac_type='long int'
12308 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
12315 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
12316 if test "x$ac_cv_type_uintmax_t" = xyes
12319 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
12322 test $ac_cv_type_unsigned_long_long_int = yes \
12323 && ac_type='unsigned long long int' \
12324 || ac_type='unsigned long int'
12326 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
12332 # Check for sig_atomic_t
12334 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12336 if test "x$ac_cv_type_sig_atomic_t" = xyes
12339 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
12344 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h
12350 # Find out whether our struct stat returns nanosecond resolution timestamps.
12352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
12353 printf %s "checking for nanoseconds field of struct stat... " >&6; }
12354 if test ${ac_cv_struct_st_mtim_nsec+y}
12356 printf %s "(cached) " >&6
12358 ac_save_CPPFLAGS="$CPPFLAGS"
12359 ac_cv_struct_st_mtim_nsec=no
12360 # st_mtim.tv_nsec -- the usual case
12361 # st_mtim._tv_nsec -- Solaris 2.6, if
12362 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
12363 # && !defined __EXTENSIONS__)
12364 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
12365 # st_mtime_n -- AIX 5.2 and above
12366 # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
12367 for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
12368 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h. */
12371 #include <sys/types.h>
12372 #include <sys/stat.h>
12377 struct stat s; s.ST_MTIM_NSEC;
12382 if ac_fn_c_try_compile "$LINENO"
12384 ac_cv_struct_st_mtim_nsec=$ac_val; break
12386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12388 CPPFLAGS="$ac_save_CPPFLAGS"
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
12392 printf "%s\n" "$ac_cv_struct_st_mtim_nsec" >&6; }
12394 if test $ac_cv_struct_st_mtim_nsec != no; then
12396 printf "%s\n" "#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec" >>confdefs.h
12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
12402 printf %s "checking whether to use high resolution file timestamps... " >&6; }
12403 if test ${make_cv_file_timestamp_hi_res+y}
12405 printf %s "(cached) " >&6
12407 make_cv_file_timestamp_hi_res=no
12408 if test "$ac_cv_struct_st_mtim_nsec" != no
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12413 #if HAVE_INTTYPES_H
12414 # include <inttypes.h>
12419 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
12424 if ac_fn_c_try_compile "$LINENO"
12426 make_cv_file_timestamp_hi_res=yes
12428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
12433 printf "%s\n" "$make_cv_file_timestamp_hi_res" >&6; }
12434 if test "$make_cv_file_timestamp_hi_res" = yes
12441 printf "%s\n" "#define FILE_TIMESTAMP_HI_RES $val" >>confdefs.h
12444 if test "$make_cv_file_timestamp_hi_res" = yes
12446 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12447 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12449 printf %s "checking for library containing clock_gettime... " >&6; }
12450 if test ${ac_cv_search_clock_gettime+y}
12452 printf %s "(cached) " >&6
12454 ac_func_search_save_LIBS=$LIBS
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12461 char clock_gettime ();
12465 return clock_gettime ();
12470 for ac_lib in '' rt posix4
12472 if test -z "$ac_lib"; then
12473 ac_res="none required"
12476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12478 if ac_fn_c_try_link "$LINENO"
12480 ac_cv_search_clock_gettime=$ac_res
12482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12484 if test ${ac_cv_search_clock_gettime+y}
12489 if test ${ac_cv_search_clock_gettime+y}
12493 ac_cv_search_clock_gettime=no
12495 rm conftest.$ac_ext
12496 LIBS=$ac_func_search_save_LIBS
12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12499 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
12500 ac_res=$ac_cv_search_clock_gettime
12501 if test "$ac_res" != no
12503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12507 if test "$ac_cv_search_clock_gettime" != no
12510 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12517 # See if we have a standard version of gettimeofday(). Since actual
12518 # implementations can differ, just make sure we have the most common
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
12521 printf %s "checking for standard gettimeofday... " >&6; }
12522 if test ${ac_cv_func_gettimeofday+y}
12524 printf %s "(cached) " >&6
12526 ac_cv_func_gettimeofday=no
12527 if test "$cross_compiling" = yes
12529 ac_cv_func_gettimeofday="no (cross-compiling)"
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12533 #include <sys/time.h>
12536 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
12537 return gettimeofday (&t, 0) != 0
12538 || t.tv_sec < 0 || t.tv_usec < 0;
12541 if ac_fn_c_try_run "$LINENO"
12543 ac_cv_func_gettimeofday=yes
12545 ac_cv_func_gettimeofday=no
12547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12548 conftest.$ac_objext conftest.beam conftest.$ac_ext
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
12553 printf "%s\n" "$ac_cv_func_gettimeofday" >&6; }
12554 if test "$ac_cv_func_gettimeofday" = yes
12557 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
12562 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
12563 if test "x$ac_cv_func_strtoll" = xyes
12565 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
12568 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12569 if test "x$ac_cv_func_strdup" = xyes
12571 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
12574 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
12575 if test "x$ac_cv_func_strndup" = xyes
12577 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
12580 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
12581 if test "x$ac_cv_func_stpcpy" = xyes
12583 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
12586 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
12587 if test "x$ac_cv_func_memrchr" = xyes
12589 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
12592 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
12593 if test "x$ac_cv_func_mempcpy" = xyes
12595 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
12598 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
12599 if test "x$ac_cv_func_umask" = xyes
12601 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
12604 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12605 if test "x$ac_cv_func_mkstemp" = xyes
12607 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
12610 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
12611 if test "x$ac_cv_func_mktemp" = xyes
12613 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
12616 ac_fn_c_check_func "$LINENO" "fdopen" "ac_cv_func_fdopen"
12617 if test "x$ac_cv_func_fdopen" = xyes
12619 printf "%s\n" "#define HAVE_FDOPEN 1" >>confdefs.h
12622 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
12623 if test "x$ac_cv_func_dup" = xyes
12625 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
12628 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
12629 if test "x$ac_cv_func_dup2" = xyes
12631 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
12634 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
12635 if test "x$ac_cv_func_getcwd" = xyes
12637 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
12640 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
12641 if test "x$ac_cv_func_realpath" = xyes
12643 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
12646 ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
12647 if test "x$ac_cv_func_sigsetmask" = xyes
12649 printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
12652 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
12653 if test "x$ac_cv_func_sigaction" = xyes
12655 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
12658 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
12659 if test "x$ac_cv_func_getgroups" = xyes
12661 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
12664 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
12665 if test "x$ac_cv_func_seteuid" = xyes
12667 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
12670 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
12671 if test "x$ac_cv_func_setegid" = xyes
12673 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
12676 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
12677 if test "x$ac_cv_func_setlinebuf" = xyes
12679 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
12682 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
12683 if test "x$ac_cv_func_setreuid" = xyes
12685 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
12688 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
12689 if test "x$ac_cv_func_setregid" = xyes
12691 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
12694 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
12695 if test "x$ac_cv_func_mkfifo" = xyes
12697 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
12700 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
12701 if test "x$ac_cv_func_getrlimit" = xyes
12703 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
12706 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
12707 if test "x$ac_cv_func_setrlimit" = xyes
12709 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
12712 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
12713 if test "x$ac_cv_func_setvbuf" = xyes
12715 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
12718 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
12719 if test "x$ac_cv_func_pipe" = xyes
12721 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
12724 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
12725 if test "x$ac_cv_func_strerror" = xyes
12727 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
12730 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
12731 if test "x$ac_cv_func_strsignal" = xyes
12733 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
12736 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
12737 if test "x$ac_cv_func_lstat" = xyes
12739 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
12742 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
12743 if test "x$ac_cv_func_readlink" = xyes
12745 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
12748 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
12749 if test "x$ac_cv_func_atexit" = xyes
12751 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
12754 ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
12755 if test "x$ac_cv_func_isatty" = xyes
12757 printf "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h
12760 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
12761 if test "x$ac_cv_func_ttyname" = xyes
12763 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
12766 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
12767 if test "x$ac_cv_func_pselect" = xyes
12769 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
12772 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
12773 if test "x$ac_cv_func_posix_spawn" = xyes
12775 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
12778 ac_fn_c_check_func "$LINENO" "posix_spawnattr_setsigmask" "ac_cv_func_posix_spawnattr_setsigmask"
12779 if test "x$ac_cv_func_posix_spawnattr_setsigmask" = xyes
12781 printf "%s\n" "#define HAVE_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
12786 # We need to check declarations, not just existence, because on Tru64 this
12787 # function is not declared without special flags, which themselves cause
12788 # other problems. We'll just use our own.
12789 ac_fn_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
12790 #include <signal.h>
12791 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12792 if test "x$ac_cv_have_decl_bsd_signal" = xyes
12798 printf "%s\n" "#define HAVE_DECL_BSD_SIGNAL $ac_have_decl" >>confdefs.h
12803 for ac_item in $ac_func_c_list
12805 if test $ac_func; then
12806 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12807 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12808 echo "#define $ac_item 1" >> confdefs.h
12818 if test "x$ac_cv_func_fork" = xyes; then
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12820 printf %s "checking for working fork... " >&6; }
12821 if test ${ac_cv_func_fork_works+y}
12823 printf %s "(cached) " >&6
12825 if test "$cross_compiling" = yes
12827 ac_cv_func_fork_works=cross
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12831 $ac_includes_default
12836 /* By Ruediger Kuhlmann. */
12837 return fork () < 0;
12843 if ac_fn_c_try_run "$LINENO"
12845 ac_cv_func_fork_works=yes
12847 ac_cv_func_fork_works=no
12849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12850 conftest.$ac_objext conftest.beam conftest.$ac_ext
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12855 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
12858 ac_cv_func_fork_works=$ac_cv_func_fork
12860 if test "x$ac_cv_func_fork_works" = xcross; then
12862 *-*-amigaos* | *-*-msdosdjgpp*)
12863 # Override, as these systems have only a dummy fork() stub
12864 ac_cv_func_fork_works=no
12867 ac_cv_func_fork_works=yes
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12871 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12873 ac_cv_func_vfork_works=$ac_cv_func_vfork
12874 if test "x$ac_cv_func_vfork" = xyes; then
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12876 printf %s "checking for working vfork... " >&6; }
12877 if test ${ac_cv_func_vfork_works+y}
12879 printf %s "(cached) " >&6
12881 if test "$cross_compiling" = yes
12883 ac_cv_func_vfork_works=cross
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 /* Thanks to Paul Eggert for this test. */
12888 $ac_includes_default
12889 #include <signal.h>
12890 #include <sys/wait.h>
12891 #ifdef HAVE_VFORK_H
12892 # include <vfork.h>
12896 do_nothing (int sig)
12901 /* On some sparc systems, changes by the child to local and incoming
12902 argument registers are propagated back to the parent. The compiler
12903 is told about this with #include <vfork.h>, but some compilers
12904 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12905 static variable whose address is put into a register that is
12906 clobbered by the vfork. */
12908 sparc_address_test (int arg)
12910 static pid_t child;
12928 pid_t parent = getpid ();
12931 sparc_address_test (0);
12933 /* On Solaris 2.4, changes by the child to the signal handler
12934 also munge signal handlers in the parent. To detect this,
12935 start by putting the parent's handler in a known state. */
12936 signal (SIGTERM, SIG_DFL);
12941 /* Here is another test for sparc vfork register problems. This
12942 test uses lots of local variables, at least as many local
12943 variables as main has allocated so far including compiler
12944 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12945 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12946 reuse the register of parent for one of the local variables,
12947 since it will think that parent can't possibly be used any more
12948 in this routine. Assigning to the local variable will thus
12949 munge parent in the parent process. */
12951 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12952 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12953 /* Convince the compiler that p..p7 are live; otherwise, it might
12954 use the same hardware register for all 8 local variables. */
12955 if (p != p1 || p != p2 || p != p3 || p != p4
12956 || p != p5 || p != p6 || p != p7)
12959 /* Alter the child's signal handler. */
12960 if (signal (SIGTERM, do_nothing) != SIG_DFL)
12963 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12964 from child file descriptors. If the child closes a descriptor
12965 before it execs or exits, this munges the parent's descriptor
12966 as well. Test for this by closing stdout in the child. */
12967 _exit(close(fileno(stdout)) != 0);
12972 while (wait(&status) != child)
12975 /* Was there some problem with vforking? */
12978 /* Did the child munge the parent's signal handler? */
12979 || signal (SIGTERM, SIG_DFL) != SIG_DFL
12981 /* Did the child fail? (This shouldn't happen.) */
12984 /* Did the vfork/compiler bug occur? */
12985 || parent != getpid()
12987 /* Did the file descriptor bug occur? */
12988 || fstat(fileno(stdout), &st) != 0
12993 if ac_fn_c_try_run "$LINENO"
12995 ac_cv_func_vfork_works=yes
12997 ac_cv_func_vfork_works=no
12999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13000 conftest.$ac_objext conftest.beam conftest.$ac_ext
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13005 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
13008 if test "x$ac_cv_func_fork_works" = xcross; then
13009 ac_cv_func_vfork_works=$ac_cv_func_vfork
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13011 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13014 if test "x$ac_cv_func_vfork_works" = xyes; then
13016 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13020 printf "%s\n" "#define vfork fork" >>confdefs.h
13023 if test "x$ac_cv_func_fork_works" = xyes; then
13025 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
13030 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
13031 # It doesn't hurt much to use our own if we can't find it so I don't
13032 # make the effort here.
13033 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13034 if test "x$ac_cv_func_strcasecmp" = xyes
13036 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13039 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
13040 if test "x$ac_cv_func_strncasecmp" = xyes
13042 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
13045 ac_fn_c_check_func "$LINENO" "strcmpi" "ac_cv_func_strcmpi"
13046 if test "x$ac_cv_func_strcmpi" = xyes
13048 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
13051 ac_fn_c_check_func "$LINENO" "strncmpi" "ac_cv_func_strncmpi"
13052 if test "x$ac_cv_func_strncmpi" = xyes
13054 printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
13057 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
13058 if test "x$ac_cv_func_stricmp" = xyes
13060 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
13063 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
13064 if test "x$ac_cv_func_strnicmp" = xyes
13066 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
13071 # strcoll() is used by the GNU glob library
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
13073 printf %s "checking for working strcoll... " >&6; }
13074 if test ${ac_cv_func_strcoll_works+y}
13076 printf %s "(cached) " >&6
13078 if test "$cross_compiling" = yes
13080 case "$host_os" in # ((
13081 # Guess yes on glibc systems.
13082 *-gnu*) ac_cv_func_strcoll_works=yes ;;
13083 # If we don't know, assume the worst.
13084 *) ac_cv_func_strcoll_works=no ;;
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 $ac_includes_default
13093 return (strcoll ("abc", "def") >= 0 ||
13094 strcoll ("ABC", "DEF") >= 0 ||
13095 strcoll ("123", "456") >= 0)
13100 if ac_fn_c_try_run "$LINENO"
13102 ac_cv_func_strcoll_works=yes
13104 ac_cv_func_strcoll_works=no
13106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13107 conftest.$ac_objext conftest.beam conftest.$ac_ext
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
13112 printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
13113 if test $ac_cv_func_strcoll_works = yes; then
13115 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13120 printf %s "checking whether closedir returns void... " >&6; }
13121 if test ${ac_cv_func_closedir_void+y}
13123 printf %s "(cached) " >&6
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13128 #include <$ac_header_dirent>
13134 return closedir(0);
13140 if ac_fn_c_try_compile "$LINENO"
13142 ac_cv_func_closedir_void=no
13144 ac_cv_func_closedir_void=yes
13146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13149 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
13150 if test $ac_cv_func_closedir_void = yes; then
13152 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
13157 # dir.c and our glob.c use dirent.d_type if available
13160 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
13161 #include <sys/types.h>
13162 #ifdef HAVE_DIRENT_H
13163 # include <dirent.h>
13165 # define dirent direct
13166 # ifdef HAVE_SYS_NDIR_H
13167 # include <sys/ndir.h>
13169 # ifdef HAVE_SYS_DIR_H
13170 # include <sys/dir.h>
13172 # ifdef HAVE_NDIR_H
13178 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
13181 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
13188 # See if the user wants to add (or not) GNU Guile support
13190 # Check whether --with-guile was given.
13191 if test ${with_guile+y}
13193 withval=$with_guile;
13197 # Annoyingly, each version of Guile comes with it's own PC file so we have to
13198 # specify them as individual packages. Ugh.
13206 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13207 if test -n "$ac_tool_prefix"; then
13208 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 printf %s "checking for $ac_word... " >&6; }
13212 if test ${ac_cv_path_PKG_CONFIG+y}
13214 printf %s "(cached) " >&6
13216 case $PKG_CONFIG in
13218 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13225 case $as_dir in #(((
13228 *) as_dir=$as_dir/ ;;
13230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13232 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13243 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13244 if test -n "$PKG_CONFIG"; then
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13246 printf "%s\n" "$PKG_CONFIG" >&6; }
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 printf "%s\n" "no" >&6; }
13254 if test -z "$ac_cv_path_PKG_CONFIG"; then
13255 ac_pt_PKG_CONFIG=$PKG_CONFIG
13256 # Extract the first word of "pkg-config", so it can be a program name with args.
13257 set dummy pkg-config; ac_word=$2
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 printf %s "checking for $ac_word... " >&6; }
13260 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13262 printf %s "(cached) " >&6
13264 case $ac_pt_PKG_CONFIG in
13266 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13273 case $as_dir in #(((
13276 *) as_dir=$as_dir/ ;;
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13280 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13291 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13292 if test -n "$ac_pt_PKG_CONFIG"; then
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13294 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 printf "%s\n" "no" >&6; }
13300 if test "x$ac_pt_PKG_CONFIG" = x; then
13303 case $cross_compiling:$ac_tool_warned in
13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13306 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13307 ac_tool_warned=yes ;;
13309 PKG_CONFIG=$ac_pt_PKG_CONFIG
13312 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13316 if test -n "$PKG_CONFIG"; then
13317 _pkg_min_version=0.9.0
13318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13319 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13320 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322 printf "%s\n" "yes" >&6; }
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 printf "%s\n" "no" >&6; }
13330 if test "x$with_guile" != xno
13332 guile_versions="3.0 2.2 2.0 1.8"
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Guile" >&5
13336 printf %s "checking for GNU Guile... " >&6; }
13337 for v in $guile_versions; do
13338 if test -n "$PKG_CONFIG" && \
13339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
13340 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
13342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13343 test $ac_status = 0; }; then
13344 guile_version=$v; have_guile=yes; break
13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
13348 printf "%s\n" "$guile_version" >&6; }
13349 if test "$have_guile" = yes
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
13354 printf %s "checking for GUILE... " >&6; }
13356 if test -n "$GUILE_CFLAGS"; then
13357 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
13358 elif test -n "$PKG_CONFIG"; then
13359 if test -n "$PKG_CONFIG" && \
13360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
13361 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
13363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13364 test $ac_status = 0; }; then
13365 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$guile_version" 2>/dev/null`
13366 test "x$?" != "x0" && pkg_failed=yes
13373 if test -n "$GUILE_LIBS"; then
13374 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
13375 elif test -n "$PKG_CONFIG"; then
13376 if test -n "$PKG_CONFIG" && \
13377 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
13378 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
13380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381 test $ac_status = 0; }; then
13382 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$guile_version" 2>/dev/null`
13383 test "x$?" != "x0" && pkg_failed=yes
13393 if test $pkg_failed = yes; then
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 printf "%s\n" "no" >&6; }
13397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13398 _pkg_short_errors_supported=yes
13400 _pkg_short_errors_supported=no
13402 if test $_pkg_short_errors_supported = yes; then
13403 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$guile_version" 2>&1`
13405 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$guile_version" 2>&1`
13407 # Put the nasty error message in config.log where it belongs
13408 echo "$GUILE_PKG_ERRORS" >&5
13410 as_fn_error $? "Package requirements (guile-$guile_version) were not met:
13414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13415 installed software in a non-standard prefix.
13417 Alternatively, you may set the environment variables GUILE_CFLAGS
13418 and GUILE_LIBS to avoid the need to call pkg-config.
13419 See the pkg-config man page for more details." "$LINENO" 5
13420 elif test $pkg_failed = untried; then
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 printf "%s\n" "no" >&6; }
13423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13424 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13425 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13426 is in your PATH or set the PKG_CONFIG environment variable to the full
13427 path to pkg-config.
13429 Alternatively, you may set the environment variables GUILE_CFLAGS
13430 and GUILE_LIBS to avoid the need to call pkg-config.
13431 See the pkg-config man page for more details.
13433 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13434 See \`config.log' for more details" "$LINENO" 5; }
13436 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
13437 GUILE_LIBS=$pkg_cv_GUILE_LIBS
13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439 printf "%s\n" "yes" >&6; }
13442 # Unfortunately pkg doesn't help in multi-arch environments where the
13443 # package is installed for some architectures but not others; we need
13445 keep_CPPFLAGS="$CPPFLAGS"
13447 CPPFLAGS="$CPPFLAGS $GUILE_CFLAGS"
13448 LIBS="$LIBS $GUILE_LIBS"
13449 ac_fn_c_check_header_compile "$LINENO" "libguile.h" "ac_cv_header_libguile_h" "/* Avoid configuration error warnings. */
13451 if test "x$ac_cv_header_libguile_h" = xyes
13454 printf "%s\n" "#define HAVE_GUILE 1" >>confdefs.h
13460 if test "$have_guile" = yes
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link GNU Guile" >&5
13463 printf %s "checking whether we can link GNU Guile... " >&6; }
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13467 #include <libguile.h>
13469 guile_init (void *arg)
13479 scm_with_guile (guile_init, 0);
13485 if ac_fn_c_try_link "$LINENO"
13491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13492 conftest$ac_exeext conftest.$ac_ext
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_guile" >&5
13494 printf "%s\n" "$have_guile" >&6; }
13496 CPPFLAGS="$keep_CPPFLAGS"
13503 if test "$have_guile" = "yes"; then
13505 HAVE_GUILE_FALSE='#'
13507 HAVE_GUILE_TRUE='#'
13512 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
13513 #include <signal.h>
13514 /* NetBSD declares sys_siglist in unistd.h. */
13516 # include <unistd.h>
13519 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13520 if test "x$ac_cv_have_decl_sys_siglist" = xyes
13526 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
13527 ac_fn_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
13528 #include <signal.h>
13529 /* NetBSD declares sys_siglist in unistd.h. */
13531 # include <unistd.h>
13534 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13535 if test "x$ac_cv_have_decl__sys_siglist" = xyes
13541 printf "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h
13542 ac_fn_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
13543 #include <signal.h>
13544 /* NetBSD declares sys_siglist in unistd.h. */
13546 # include <unistd.h>
13549 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13550 if test "x$ac_cv_have_decl___sys_siglist" = xyes
13556 printf "%s\n" "#define HAVE_DECL___SYS_SIGLIST $ac_have_decl" >>confdefs.h
13560 # Check out the wait reality.
13561 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
13563 if test "x$ac_cv_header_sys_wait_h" = xyes
13565 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13569 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
13570 if test "x$ac_cv_func_waitpid" = xyes
13572 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
13575 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
13576 if test "x$ac_cv_func_wait3" = xyes
13578 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
13583 printf %s "checking for union wait... " >&6; }
13584 if test ${make_cv_union_wait+y}
13586 printf %s "(cached) " >&6
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 #include <sys/types.h>
13591 #include <sys/wait.h>
13595 union wait status; int pid; pid = wait (&status);
13597 /* Some POSIXoid systems have both the new-style macros and the old
13598 union wait type, and they do not work together. If union wait
13599 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
13600 if (WEXITSTATUS (status) != 0) pid = -1;
13602 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
13603 -- blow chunks here --
13606 #ifdef HAVE_WAITPID
13607 /* Make sure union wait works with waitpid. */
13608 pid = waitpid (-1, &status, 0);
13615 if ac_fn_c_try_link "$LINENO"
13617 make_cv_union_wait=yes
13619 make_cv_union_wait=no
13621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13622 conftest$ac_exeext conftest.$ac_ext
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
13626 printf "%s\n" "$make_cv_union_wait" >&6; }
13627 if test "$make_cv_union_wait" = yes
13630 printf "%s\n" "#define HAVE_UNION_WAIT 1" >>confdefs.h
13636 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
13637 if test "$PATH_SEPARATOR" = ';'
13640 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
13645 # See if the user wants to use pmake's "customs" distributed build capability
13649 # Check whether --with-customs was given.
13650 if test ${with_customs+y}
13652 withval=$with_customs; case $withval in #(
13656 make_cppflags="$CPPFLAGS"
13657 case $withval in #(
13661 CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
13662 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
13667 printf %s "checking for network libraries... " >&6; }
13668 if test ${cf_cv_netlibs+y}
13670 printf %s "(cached) " >&6
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: working..." >&5
13674 printf "%s\n" "working..." >&6; }
13676 cf_test_netlibs=yes
13678 for ac_func in gethostname
13680 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13681 if test "x$ac_cv_func_gethostname" = xyes
13683 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
13689 printf %s "checking for gethostname in -lnsl... " >&6; }
13690 if test ${ac_cv_lib_nsl_gethostname+y}
13692 printf %s "(cached) " >&6
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lnsl $cf_cv_netlibs $LIBS"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13702 char gethostname ();
13706 return gethostname ();
13711 if ac_fn_c_try_link "$LINENO"
13713 ac_cv_lib_nsl_gethostname=yes
13715 ac_cv_lib_nsl_gethostname=no
13717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
13722 printf "%s\n" "$ac_cv_lib_nsl_gethostname" >&6; }
13723 if test "x$ac_cv_lib_nsl_gethostname" = xyes
13727 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
13730 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13732 ac_cv_func_gethostname=yes
13733 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
13736 ac_cv_func_gethostname=unknown
13737 unset ac_cv_func_gethostname 2>/dev/null
13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
13741 printf %s "checking for gethostname in -lsocket... " >&6; }
13742 if test ${ac_cv_lib_socket_gethostname+y}
13744 printf %s "(cached) " >&6
13746 ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lsocket $cf_cv_netlibs $LIBS"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13751 /* Override any GCC internal prototype to avoid an error.
13752 Use char because int might match the return type of a GCC
13753 builtin and then its argument prototype would still apply. */
13754 char gethostname ();
13758 return gethostname ();
13763 if ac_fn_c_try_link "$LINENO"
13765 ac_cv_lib_socket_gethostname=yes
13767 ac_cv_lib_socket_gethostname=no
13769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13770 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
13774 printf "%s\n" "$ac_cv_lib_socket_gethostname" >&6; }
13775 if test "x$ac_cv_lib_socket_gethostname" = xyes
13779 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
13782 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13784 ac_cv_func_gethostname=yes
13785 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
13788 ac_cv_func_gethostname=unknown
13789 unset ac_cv_func_gethostname 2>/dev/null
13801 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
13802 # I don't know the entrypoints - 97/7/22 TD
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
13804 printf %s "checking for main in -linet... " >&6; }
13805 if test ${ac_cv_lib_inet_main+y}
13807 printf %s "(cached) " >&6
13809 ac_check_lib_save_LIBS=$LIBS
13810 LIBS="-linet $LIBS"
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13823 if ac_fn_c_try_link "$LINENO"
13825 ac_cv_lib_inet_main=yes
13827 ac_cv_lib_inet_main=no
13829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13830 conftest$ac_exeext conftest.$ac_ext
13831 LIBS=$ac_check_lib_save_LIBS
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
13834 printf "%s\n" "$ac_cv_lib_inet_main" >&6; }
13835 if test "x$ac_cv_lib_inet_main" = xyes
13837 cf_cv_netlibs="-linet $cf_cv_netlibs"
13841 if test "$ac_cv_func_lsocket" != no ; then
13843 for ac_func in socket
13845 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13846 if test "x$ac_cv_func_socket" = xyes
13848 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13854 printf %s "checking for socket in -lsocket... " >&6; }
13855 if test ${ac_cv_lib_socket_socket+y}
13857 printf %s "(cached) " >&6
13859 ac_check_lib_save_LIBS=$LIBS
13860 LIBS="-lsocket $cf_cv_netlibs $LIBS"
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13876 if ac_fn_c_try_link "$LINENO"
13878 ac_cv_lib_socket_socket=yes
13880 ac_cv_lib_socket_socket=no
13882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13883 conftest$ac_exeext conftest.$ac_ext
13884 LIBS=$ac_check_lib_save_LIBS
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13887 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13888 if test "x$ac_cv_lib_socket_socket" = xyes
13892 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
13895 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13897 ac_cv_func_socket=yes
13898 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
13901 ac_cv_func_socket=unknown
13902 unset ac_cv_func_socket 2>/dev/null
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
13906 printf %s "checking for socket in -lbsd... " >&6; }
13907 if test ${ac_cv_lib_bsd_socket+y}
13909 printf %s "(cached) " >&6
13911 ac_check_lib_save_LIBS=$LIBS
13912 LIBS="-lbsd $cf_cv_netlibs $LIBS"
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13928 if ac_fn_c_try_link "$LINENO"
13930 ac_cv_lib_bsd_socket=yes
13932 ac_cv_lib_bsd_socket=no
13934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
13939 printf "%s\n" "$ac_cv_lib_bsd_socket" >&6; }
13940 if test "x$ac_cv_lib_bsd_socket" = xyes
13944 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
13947 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13949 ac_cv_func_socket=yes
13950 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
13953 ac_cv_func_socket=unknown
13954 unset ac_cv_func_socket 2>/dev/null
13968 for ac_func in gethostbyname
13970 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13971 if test "x$ac_cv_func_gethostbyname" = xyes
13973 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13979 printf %s "checking for gethostbyname in -lnsl... " >&6; }
13980 if test ${ac_cv_lib_nsl_gethostbyname+y}
13982 printf %s "(cached) " >&6
13984 ac_check_lib_save_LIBS=$LIBS
13985 LIBS="-lnsl $cf_cv_netlibs $LIBS"
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13989 /* Override any GCC internal prototype to avoid an error.
13990 Use char because int might match the return type of a GCC
13991 builtin and then its argument prototype would still apply. */
13992 char gethostbyname ();
13996 return gethostbyname ();
14001 if ac_fn_c_try_link "$LINENO"
14003 ac_cv_lib_nsl_gethostbyname=yes
14005 ac_cv_lib_nsl_gethostbyname=no
14007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14012 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
14013 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
14017 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
14020 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
14022 ac_cv_func_gethostbyname=yes
14023 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
14026 ac_cv_func_gethostbyname=unknown
14027 unset ac_cv_func_gethostbyname 2>/dev/null
14038 LIBS="$LIBS $cf_cv_netlibs"
14039 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
14041 ac_fn_c_check_header_compile "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
14042 if test "x$ac_cv_header_customs_h" = xyes
14046 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
14049 CPPFLAGS="$make_cppflags" make_badcust=yes
14058 # Tell automake about this, so it can include the right .c files.
14059 if test "$use_customs" = true; then
14061 USE_CUSTOMS_FALSE='#'
14063 USE_CUSTOMS_TRUE='#'
14068 # See if the user asked to handle case insensitive file systems.
14070 # Check whether --enable-case-insensitive-file-system was given.
14071 if test ${enable_case_insensitive_file_system+y}
14073 enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes
14075 printf "%s\n" "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
14081 # See if we can handle the job server feature, and if the user wants it.
14082 # Check whether --enable-job-server was given.
14083 if test ${enable_job_server+y}
14085 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
14087 make_cv_job_server="yes"
14091 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no
14095 has_wait_nohang=yes
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
14099 printf %s "checking for SA_RESTART... " >&6; }
14100 if test ${make_cv_sa_restart+y}
14102 printf %s "(cached) " >&6
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 #include <signal.h>
14116 if ac_fn_c_try_compile "$LINENO"
14118 make_cv_sa_restart=yes
14120 make_cv_sa_restart=no
14122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
14125 printf "%s\n" "$make_cv_sa_restart" >&6; }
14127 if test "$make_cv_sa_restart" != no
14130 printf "%s\n" "#define HAVE_SA_RESTART 1" >>confdefs.h
14135 # Only allow jobserver on systems that support it
14136 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
14138 make_cv_job_server=no ;; #(
14143 # Also supported on OS2 and MinGW
14144 case $host_os in #(
14146 make_cv_job_server=yes ;; #(
14151 # If we support it and the user didn't disable it, build with jobserver
14152 case /$make_cv_job_server/$user_job_server/ in #(
14154 : no jobserver ;; #(
14157 printf "%s\n" "#define MAKE_JOBSERVER 1" >>confdefs.h
14162 # If dl*() functions are supported we can enable the load operation
14163 ac_fn_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
14164 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14165 if test "x$ac_cv_have_decl_dlopen" = xyes
14171 printf "%s\n" "#define HAVE_DECL_DLOPEN $ac_have_decl" >>confdefs.h
14172 ac_fn_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
14173 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14174 if test "x$ac_cv_have_decl_dlsym" = xyes
14180 printf "%s\n" "#define HAVE_DECL_DLSYM $ac_have_decl" >>confdefs.h
14181 ac_fn_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
14182 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14183 if test "x$ac_cv_have_decl_dlerror" = xyes
14189 printf "%s\n" "#define HAVE_DECL_DLERROR $ac_have_decl" >>confdefs.h
14192 # Check whether --enable-load was given.
14193 if test ${enable_load+y}
14195 enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
14201 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
14203 make_cv_load=no ;; #(
14208 # We might need -ldl
14209 if test "$make_cv_load" = yes
14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14213 printf %s "checking for library containing dlopen... " >&6; }
14214 if test ${ac_cv_search_dlopen+y}
14216 printf %s "(cached) " >&6
14218 ac_func_search_save_LIBS=$LIBS
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14234 for ac_lib in '' dl
14236 if test -z "$ac_lib"; then
14237 ac_res="none required"
14240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14242 if ac_fn_c_try_link "$LINENO"
14244 ac_cv_search_dlopen=$ac_res
14246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14248 if test ${ac_cv_search_dlopen+y}
14253 if test ${ac_cv_search_dlopen+y}
14257 ac_cv_search_dlopen=no
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14263 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
14264 ac_res=$ac_cv_search_dlopen
14265 if test "$ac_res" != no
14267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14276 case /$make_cv_load/$user_load/ in #(
14278 make_cv_load=no ;; #(
14281 printf "%s\n" "#define MAKE_LOAD 1" >>confdefs.h
14286 # If we want load support, we might need to link with export-dynamic.
14287 # See if we can figure it out. Unfortunately this is very difficult.
14288 # For example passing -rdynamic to the SunPRO linker gives a warning
14289 # but succeeds and creates a shared object, not an executable!
14290 if test "$make_cv_load" = yes
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
14294 printf %s "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
14295 old_LDFLAGS="$LDFLAGS"
14296 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14301 if ac_fn_c_try_link "$LINENO"
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14304 printf "%s\n" "yes" >&6; }
14305 AM_LDFLAGS=-Wl,--export-dynamic
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 printf "%s\n" "no" >&6; }
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
14311 printf %s "checking If the linker accepts -rdynamic... " >&6; }
14312 LDFLAGS="$old_LDFLAGS -rdynamic"
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14317 if ac_fn_c_try_link "$LINENO"
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14320 printf "%s\n" "yes" >&6; }
14321 AM_LDFLAGS=-rdynamic
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 printf "%s\n" "no" >&6; }
14327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14328 conftest$ac_exeext conftest.$ac_ext
14331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14332 conftest$ac_exeext conftest.$ac_ext
14333 LDFLAGS="$old_LDFLAGS"
14337 # if we have both lstat() and readlink() then we can support symlink
14339 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes
14342 printf "%s\n" "#define MAKE_SYMLINKS 1" >>confdefs.h
14347 # Use posix_spawn if we have support and the user didn't disable it
14349 # Check whether --enable-posix-spawn was given.
14350 if test ${enable_posix_spawn+y}
14352 enableval=$enable_posix_spawn; make_cv_posix_spawn="$enableval" user_posix_spawn="$enableval"
14354 make_cv_posix_spawn="yes"
14358 case /$ac_cv_header_spawn/$ac_cv_func_posix_spawn/ in #(
14360 make_cv_posix_spawn=no ;; #(
14365 if test "$make_cv_posix_spawn" = yes
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_spawn that fails synchronously" >&5
14368 printf %s "checking for posix_spawn that fails synchronously... " >&6; }
14369 if test ${make_cv_synchronous_posix_spawn+y}
14371 printf %s "(cached) " >&6
14373 make_cv_synchronous_posix_spawn=no
14374 if test "$cross_compiling" = yes
14376 make_cv_synchronous_posix_spawn="no (cross-compiling)"
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14383 extern char **environ;
14385 char path[] = "./xxx-non-existent";
14386 char *argv[] = {path, 0};
14387 return posix_spawn (0, path, 0, 0, argv, environ) == ENOENT ? 0 : 1;
14390 if ac_fn_c_try_run "$LINENO"
14392 make_cv_synchronous_posix_spawn=yes
14394 make_cv_synchronous_posix_spawn=no
14396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14397 conftest.$ac_objext conftest.beam conftest.$ac_ext
14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_synchronous_posix_spawn" >&5
14402 printf "%s\n" "$make_cv_synchronous_posix_spawn" >&6; }
14405 case /$user_posix_spawn/$make_cv_posix_spawn/$make_cv_synchronous_posix_spawn/ in #(
14407 make_cv_posix_spawn=no ;; #(
14410 printf "%s\n" "#define USE_POSIX_SPAWN 1" >>confdefs.h
14415 # Find the SCCS commands, so we can include them in our default rules.
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
14418 printf %s "checking for location of SCCS get command... " >&6; }
14419 if test ${make_cv_path_sccs_get+y}
14421 printf %s "(cached) " >&6
14424 if test -f /usr/sccs/get
14426 make_cv_path_sccs_get=/usr/sccs/get
14428 make_cv_path_sccs_get=get
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
14433 printf "%s\n" "$make_cv_path_sccs_get" >&6; }
14435 printf "%s\n" "#define SCCS_GET \"$make_cv_path_sccs_get\"" >>confdefs.h
14438 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
14439 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
14442 # We successfully created an SCCS file.
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
14444 printf %s "checking if SCCS get command understands -G... " >&6; }
14445 if test ${make_cv_sys_get_minus_G+y}
14447 printf %s "(cached) " >&6
14449 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
14452 make_cv_sys_get_minus_G=yes
14454 make_cv_sys_get_minus_G=no
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
14459 printf "%s\n" "$make_cv_sys_get_minus_G" >&6; }
14460 if test "$make_cv_sys_get_minus_G" = yes
14463 printf "%s\n" "#define SCCS_GET_MINUS_G 1" >>confdefs.h
14469 rm -f s.conftest conftoast
14471 # Let the makefile know what our build host is
14474 printf "%s\n" "#define MAKE_HOST \"$host\"" >>confdefs.h
14482 WINDOWSENV_FALSE='#'
14484 WINDOWSENV_TRUE='#'
14493 WINDOWSENV_FALSE='#'
14495 WINDOWSENV_TRUE='#'
14501 printf "%s\n" "#define WINDOWS32 1" >>confdefs.h
14504 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
14512 printf "%s\n" "#define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'" >>confdefs.h
14516 printf "%s\n" "#define HAVE_DECL_GETLOADAVG $HAVE_DECL_GETLOADAVG" >>confdefs.h
14519 # Remember that we ran configure to generate config.h
14522 printf "%s\n" "#define MK_CONFIGURE 1" >>confdefs.h
14525 # Include the Maintainer's Makefile section, if it's here.
14527 MAINT_MAKEFILE=/dev/null
14528 if test -r "$srcdir/maintMakefile"
14530 MAINT_MAKEFILE="$srcdir/maintMakefile"
14535 # Allow building with dmalloc
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
14537 printf %s "checking if malloc debugging is wanted... " >&6; }
14539 # Check whether --with-dmalloc was given.
14540 if test ${with_dmalloc+y}
14542 withval=$with_dmalloc; if test "$withval" = yes; then
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14544 printf "%s\n" "yes" >&6; }
14546 printf "%s\n" "#define WITH_DMALLOC 1" >>confdefs.h
14548 LIBS="$LIBS -ldmalloc"
14549 LDFLAGS="$LDFLAGS -g"
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 printf "%s\n" "no" >&6; }
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556 printf "%s\n" "no" >&6; }
14561 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
14565 # Sanity check and inform the user of what we found
14567 if test "x$make_badcust" = xyes
14571 echo "WARNING: --with-customs specified but no customs.h could be found;"
14572 echo " disabling Customs support."
14577 case $with_customs in #(
14578 ""|n|no|y|ye|yes) :
14581 if test -f "$with_customs/lib/libcustoms.a"
14586 echo "WARNING: '$with_customs/lib' does not appear to contain the"
14587 echo " Customs library. You must build and install Customs"
14588 echo " before compiling GNU make."
14594 if test "x$has_wait_nohang" = xno
14597 echo "WARNING: Your system has neither waitpid() nor wait3()."
14598 echo " Without one of these, signal handling is unreliable."
14599 echo " You should be aware that running GNU make with -j"
14600 echo " could result in erratic behavior."
14605 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes
14608 echo "WARNING: Make job server requires a POSIX-ish system that"
14609 echo " supports the pipe(), sigaction(), and either"
14610 echo " waitpid() or wait3() functions. Your system doesn't"
14611 echo " appear to provide one or more of those."
14612 echo " Disabling job server support."
14617 if test "x$make_cv_load" = xno && test "x$user_load" = xyes
14620 echo "WARNING: 'load' support requires a POSIX-ish system that"
14621 echo " supports the dlopen(), dlsym(), and dlerror() functions."
14622 echo " Your system doesn't appear to provide one or more of these."
14623 echo " Disabling 'load' support."
14628 if test "x$make_cv_posix_spawn" = xno && test "x$user_posix_spawn" = xyes
14631 echo "WARNING: posix_spawn() is not supported on this system."
14636 # autoconf initializes $prefix to NONE.
14637 if test "x$prefix" = xNONE -o "x$prefix" = x/usr/local \
14638 -o "x$prefix" = x/usr/gnu -o "x$prefix" = x/usr; then
14640 KNOWN_PREFIX_FALSE='#'
14642 KNOWN_PREFIX_TRUE='#'
14643 KNOWN_PREFIX_FALSE=
14647 # Specify what files are to be created.
14648 ac_config_files="$ac_config_files build.cfg tests/config-flags.pm Makefile lib/Makefile doc/Makefile po/Makefile.in"
14650 # We don't need this: the standard automake output suffices for POSIX systems.
14653 # Put build.sh in the build directory so it's easy to find
14654 ac_config_links="$ac_config_links build.sh:build.sh"
14659 cat >confcache <<\_ACEOF
14660 # This file is a shell script that caches the results of configure
14661 # tests run on this system so they can be shared between configure
14662 # scripts and configure runs, see configure's option --config-cache.
14663 # It is not useful on other systems. If it contains results you don't
14664 # want to keep, you may remove or edit it.
14666 # config.status only pays attention to the cache file if you give it
14667 # the --recheck option to rerun configure.
14669 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14670 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14671 # following values.
14675 # The following way of writing the cache mishandles newlines in values,
14676 # but we know of no workaround that is simple, portable, and efficient.
14677 # So, we kill variables containing newlines.
14678 # Ultrix sh set writes to stderr and can't be redirected directly,
14679 # and sets the high bit in the cache file unless we assign to the vars.
14681 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14682 eval ac_val=\$$ac_var
14686 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14687 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14690 _ | IFS | as_nl) ;; #(
14691 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14692 *) { eval $ac_var=; unset $ac_var;} ;;
14698 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14699 *${as_nl}ac_space=\ *)
14700 # `set' does not quote correctly, so add quotes: double-quote
14701 # substitution turns \\\\ into \\, and sed turns \\ into \.
14704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14707 # `set' quotes correctly as required by POSIX, so do not add quotes.
14708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14717 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14719 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14721 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14722 if test -w "$cache_file"; then
14723 if test "x$cache_file" != "x/dev/null"; then
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14725 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14726 if test ! -f "$cache_file" || test -h "$cache_file"; then
14727 cat confcache >"$cache_file"
14729 case $cache_file in #(
14731 mv -f confcache "$cache_file"$$ &&
14732 mv -f "$cache_file"$$ "$cache_file" ;; #(
14734 mv -f confcache "$cache_file" ;;
14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14740 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14746 # Let make expand exec_prefix.
14747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14749 DEFS=-DHAVE_CONFIG_H
14754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14755 # 1. Remove the extension, and $U if already installed.
14756 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14757 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14758 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14759 # will be set to the directory where LIBOBJS objects are built.
14760 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14761 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14763 LIBOBJS=$ac_libobjs
14765 LTLIBOBJS=$ac_ltlibobjs
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14769 printf %s "checking that generated files are newer than configure... " >&6; }
14770 if test -n "$am_sleep_pid"; then
14771 # Hide warnings about reused PIDs.
14772 wait $am_sleep_pid 2>/dev/null
14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14775 printf "%s\n" "done" >&6; }
14776 if test -n "$EXEEXT"; then
14778 am__EXEEXT_FALSE='#'
14780 am__EXEEXT_TRUE='#'
14784 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14785 as_fn_error $? "conditional \"AMDEP\" was never defined.
14786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14789 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14793 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14796 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14797 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
14798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14800 if test -z "${USE_SYSTEM_GLOB_TRUE}" && test -z "${USE_SYSTEM_GLOB_FALSE}"; then
14801 as_fn_error $? "conditional \"USE_SYSTEM_GLOB\" was never defined.
14802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14808 if test -n "$gl_LIBOBJS"; then
14809 # Remove the extension.
14810 sed_drop_objext='s/\.o$//;s/\.obj$//'
14811 sed_dirname1='s,//*,/,g'
14812 sed_dirname2='s,\(.\)/$,\1,'
14813 sed_dirname3='s,^[^/]*$,.,'
14814 sed_dirname4='s,\(.\)/[^/]*$,\1,'
14815 sed_basename1='s,.*/,,'
14816 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14817 gl_libobjs="$gl_libobjs $i.$ac_objext"
14818 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14819 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
14820 i_base=`echo "$i" | sed -e "$sed_basename1"`
14821 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
14824 gl_LIBOBJS=$gl_libobjs
14826 gl_LTLIBOBJS=$gl_ltlibobjs
14828 gl_LIBOBJDEPS=$gl_libobjdeps
14834 gltests_libobjdeps=
14835 if test -n "$gltests_LIBOBJS"; then
14836 # Remove the extension.
14837 sed_drop_objext='s/\.o$//;s/\.obj$//'
14838 sed_dirname1='s,//*,/,g'
14839 sed_dirname2='s,\(.\)/$,\1,'
14840 sed_dirname3='s,^[^/]*$,.,'
14841 sed_dirname4='s,\(.\)/[^/]*$,\1,'
14842 sed_basename1='s,.*/,,'
14843 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14844 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14845 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14846 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
14847 i_base=`echo "$i" | sed -e "$sed_basename1"`
14848 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
14851 gltests_LIBOBJS=$gltests_libobjs
14853 gltests_LTLIBOBJS=$gltests_ltlibobjs
14855 gltests_LIBOBJDEPS=$gltests_libobjdeps
14859 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
14860 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
14861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14863 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
14864 as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
14865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14867 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
14868 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
14869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14871 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
14872 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
14873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14875 if test -z "${KNOWN_PREFIX_TRUE}" && test -z "${KNOWN_PREFIX_FALSE}"; then
14876 as_fn_error $? "conditional \"KNOWN_PREFIX\" was never defined.
14877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14880 : "${CONFIG_STATUS=./config.status}"
14882 ac_clean_files_save=$ac_clean_files
14883 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14885 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14887 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14889 # Generated by $as_me.
14890 # Run this file to recreate the current configuration.
14891 # Compiler output produced by configure, useful for debugging
14892 # configure, is in config.log if it exists.
14895 ac_cs_recheck=false
14898 SHELL=\${CONFIG_SHELL-$SHELL}
14901 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14902 ## -------------------- ##
14903 ## M4sh Initialization. ##
14904 ## -------------------- ##
14906 # Be more Bourne compatible
14907 DUALCASE=1; export DUALCASE # for MKS sh
14909 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14913 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14914 # is contrary to our usage. Disable this feature.
14915 alias -g '${1+"$@"}'='"$@"'
14916 setopt NO_GLOB_SUBST
14918 case `(set -o) 2>/dev/null` in #(
14928 # Reset variables that may have inherited troublesome values from
14931 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14932 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14933 # side effect of setting IFS to empty, thus disabling word splitting.)
14934 # Quoting is to prevent editors from complaining about space-tab.
14944 # Ensure predictable behavior from utilities with locale-dependent output.
14950 # We cannot yet rely on "unset" to work, but we need these variables
14951 # to be unset--not just set to an empty or harmless value--now, to
14952 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14953 # also avoids known problems related to "unset" and subshell syntax
14954 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14955 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14956 do eval test \${$as_var+y} \
14957 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14960 # Ensure that fds 0, 1, and 2 are open.
14961 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14962 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14963 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14965 # The user is always right.
14966 if ${PATH_SEPARATOR+false} :; then
14968 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14969 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14975 # Find who we are. Look in the path if we contain no directory separator.
14978 *[\\/]* ) as_myself=$0 ;;
14979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14983 case $as_dir in #(((
14986 *) as_dir=$as_dir/ ;;
14988 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14994 # We did not find ourselves, most probably we were run as `sh COMMAND'
14995 # in which case we are not to be found in the path.
14996 if test "x$as_myself" = x; then
14999 if test ! -f "$as_myself"; then
15000 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15006 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15007 # ----------------------------------------
15008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15010 # script with STATUS, using 1 if that was 0.
15013 as_status=$1; test $as_status -eq 0 && as_status=1
15015 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15018 printf "%s\n" "$as_me: error: $2" >&2
15019 as_fn_exit $as_status
15024 # as_fn_set_status STATUS
15025 # -----------------------
15026 # Set $? to STATUS, without forking.
15027 as_fn_set_status ()
15030 } # as_fn_set_status
15032 # as_fn_exit STATUS
15033 # -----------------
15034 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15038 as_fn_set_status $1
15044 # Portably unset VAR.
15047 { eval $1=; unset $1;}
15049 as_unset=as_fn_unset
15051 # as_fn_append VAR VALUE
15052 # ----------------------
15053 # Append the text in VALUE to the end of the definition contained in VAR. Take
15054 # advantage of any shell optimizations that allow amortized linear growth over
15055 # repeated appends, instead of the typical quadratic growth present in naive
15057 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15059 eval 'as_fn_append ()
15070 # as_fn_arith ARG...
15071 # ------------------
15072 # Perform arithmetic evaluation on the ARGs, and store the result in the
15073 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15074 # must be portable across $(()) and expr.
15075 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15077 eval 'as_fn_arith ()
15084 as_val=`expr "$@" || test $? -eq 1`
15089 if expr a : '\(a\)' >/dev/null 2>&1 &&
15090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15097 as_basename=basename
15102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15108 as_me=`$as_basename -- "$0" ||
15109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15110 X"$0" : 'X\(//\)$' \| \
15111 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15112 printf "%s\n" X/"$0" |
15113 sed '/^.*\/\([^/][^/]*\)\/*$/{
15127 # Avoid depending upon Character Ranges.
15128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15131 as_cr_digits='0123456789'
15132 as_cr_alnum=$as_cr_Letters$as_cr_digits
15135 # Determine whether it's possible to make 'echo' print without a newline.
15136 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15137 # for compatibility with existing Makefiles.
15138 ECHO_C= ECHO_N= ECHO_T=
15139 case `echo -n x` in #(((((
15141 case `echo 'xy\c'` in
15142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15151 # For backward compatibility with old third-party macros, we provide
15152 # the shell variables $as_echo and $as_echo_n. New code should use
15153 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15154 as_echo='printf %s\n'
15155 as_echo_n='printf %s'
15157 rm -f conf$$ conf$$.exe conf$$.file
15158 if test -d conf$$.dir; then
15159 rm -f conf$$.dir/conf$$.file
15162 mkdir conf$$.dir 2>/dev/null
15164 if (echo >conf$$.file) 2>/dev/null; then
15165 if ln -s conf$$.file conf$$ 2>/dev/null; then
15167 # ... but there are two gotchas:
15168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15170 # In both cases, we have to default to `cp -pR'.
15171 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15173 elif ln conf$$.file conf$$ 2>/dev/null; then
15181 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15182 rmdir conf$$.dir 2>/dev/null
15187 # Create "$as_dir" as a directory, including parents if necessary.
15192 -*) as_dir=./$as_dir;;
15194 test -d "$as_dir" || eval $as_mkdir_p || {
15198 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15199 *) as_qdir=$as_dir;;
15201 as_dirs="'$as_qdir' $as_dirs"
15202 as_dir=`$as_dirname -- "$as_dir" ||
15203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15204 X"$as_dir" : 'X\(//\)[^/]' \| \
15205 X"$as_dir" : 'X\(//\)$' \| \
15206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15207 printf "%s\n" X"$as_dir" |
15208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15212 /^X\(\/\/\)[^/].*/{
15225 test -d "$as_dir" && break
15227 test -z "$as_dirs" || eval "mkdir $as_dirs"
15228 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15232 if mkdir -p . 2>/dev/null; then
15233 as_mkdir_p='mkdir -p "$as_dir"'
15235 test -d ./-p && rmdir ./-p
15240 # as_fn_executable_p FILE
15241 # -----------------------
15242 # Test if FILE is an executable regular file.
15243 as_fn_executable_p ()
15245 test -f "$1" && test -x "$1"
15246 } # as_fn_executable_p
15247 as_test_x='test -x'
15248 as_executable_p=as_fn_executable_p
15250 # Sed expression to map a string onto a valid CPP name.
15251 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15253 # Sed expression to map a string onto a valid variable name.
15254 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15258 ## ----------------------------------- ##
15259 ## Main body of $CONFIG_STATUS script. ##
15260 ## ----------------------------------- ##
15262 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15265 # Save the log message, to keep $0 and so on meaningful, and to
15266 # report actual input values of CONFIG_FILES etc. instead of their
15267 # values after options handling.
15269 This file was extended by GNU Make $as_me 4.4, which was
15270 generated by GNU Autoconf 2.71. Invocation command line was
15272 CONFIG_FILES = $CONFIG_FILES
15273 CONFIG_HEADERS = $CONFIG_HEADERS
15274 CONFIG_LINKS = $CONFIG_LINKS
15275 CONFIG_COMMANDS = $CONFIG_COMMANDS
15278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15283 case $ac_config_files in *"
15284 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15287 case $ac_config_headers in *"
15288 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15293 # Files that config.status was made for.
15294 config_files="$ac_config_files"
15295 config_headers="$ac_config_headers"
15296 config_links="$ac_config_links"
15297 config_commands="$ac_config_commands"
15301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15303 \`$as_me' instantiates files and other configuration actions
15304 from templates according to the current configuration. Unless the files
15305 and actions are specified as TAGs, all are instantiated by default.
15307 Usage: $0 [OPTION]... [TAG]...
15309 -h, --help print this help, then exit
15310 -V, --version print version number and configuration settings, then exit
15311 --config print configuration, then exit
15312 -q, --quiet, --silent
15313 do not print progress messages
15314 -d, --debug don't remove temporary files
15315 --recheck update $as_me by reconfiguring in the same conditions
15316 --file=FILE[:TEMPLATE]
15317 instantiate the configuration file FILE
15318 --header=FILE[:TEMPLATE]
15319 instantiate the configuration header FILE
15321 Configuration files:
15324 Configuration headers:
15327 Configuration links:
15330 Configuration commands:
15333 Report bugs to <bug-make@gnu.org>.
15334 GNU Make home page: <https://www.gnu.org/software/make/>.
15335 General help using GNU software: <https://www.gnu.org/gethelp/>."
15338 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15339 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15341 ac_cs_config='$ac_cs_config_escaped'
15343 GNU Make config.status 4.4
15344 configured by $0, generated by GNU Autoconf 2.71,
15345 with options \\"\$ac_cs_config\\"
15347 Copyright (C) 2021 Free Software Foundation, Inc.
15348 This config.status script is free software; the Free Software Foundation
15349 gives unlimited permission to copy, distribute and modify it."
15356 test -n "\$AWK" || AWK=awk
15359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15360 # The default lists apply if the user does not specify any file.
15366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15383 # Handling of the options.
15384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15387 printf "%s\n" "$ac_cs_version"; exit ;;
15388 --config | --confi | --conf | --con | --co | --c )
15389 printf "%s\n" "$ac_cs_config"; exit ;;
15390 --debug | --debu | --deb | --de | --d | -d )
15392 --file | --fil | --fi | --f )
15395 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15396 '') as_fn_error $? "missing file argument" ;;
15398 as_fn_append CONFIG_FILES " '$ac_optarg'"
15399 ac_need_defaults=false;;
15400 --header | --heade | --head | --hea )
15403 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15405 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15406 ac_need_defaults=false;;
15408 # Conflict between --help and --header
15409 as_fn_error $? "ambiguous option: \`$1'
15410 Try \`$0 --help' for more information.";;
15411 --help | --hel | -h )
15412 printf "%s\n" "$ac_cs_usage"; exit ;;
15413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15417 # This is an error.
15418 -*) as_fn_error $? "unrecognized option: \`$1'
15419 Try \`$0 --help' for more information." ;;
15421 *) as_fn_append ac_config_targets " $1"
15422 ac_need_defaults=false ;;
15428 ac_configure_extra_args=
15430 if $ac_cs_silent; then
15432 ac_configure_extra_args="$ac_configure_extra_args --silent"
15436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15437 if \$ac_cs_recheck; then
15438 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15440 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15441 CONFIG_SHELL='$SHELL'
15442 export CONFIG_SHELL
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15452 ## Running $as_me. ##
15454 printf "%s\n" "$ac_log"
15458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15462 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15463 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15464 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15465 # from automake < 1.5.
15466 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15467 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15468 LINGUAS="${LINGUAS-%UNSET%}"
15473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15475 # Handling of arguments.
15476 for ac_config_target in $ac_config_targets
15478 case $ac_config_target in
15479 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15480 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15481 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15482 "build.cfg") CONFIG_FILES="$CONFIG_FILES build.cfg" ;;
15483 "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
15484 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15485 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15486 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15487 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15488 "build.sh") CONFIG_LINKS="$CONFIG_LINKS build.sh:build.sh" ;;
15490 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15495 # If the user did not use the arguments to specify the items to instantiate,
15496 # then the envvar interface is used. Set only those that are not.
15497 # We use the long form for the default assignment because of an extremely
15498 # bizarre bug on SunOS 4.1.3.
15499 if $ac_need_defaults; then
15500 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15501 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15502 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
15503 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15506 # Have a temporary directory for convenience. Make it in the build tree
15507 # simply because there is no reason against having it here, and in addition,
15508 # creating and moving files from /tmp can sometimes cause problems.
15509 # Hook for its removal unless debugging.
15510 # Note that there is a small window in which the directory will not be cleaned:
15511 # after its creation but before its name has been assigned to `$tmp'.
15515 trap 'exit_status=$?
15516 : "${ac_tmp:=$tmp}"
15517 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15519 trap 'as_fn_exit 1' 1 2 13 15
15521 # Create a (secure) tmp directory for tmp files.
15524 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15528 tmp=./conf$$-$RANDOM
15529 (umask 077 && mkdir "$tmp")
15530 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15533 # Set up the scripts for CONFIG_FILES section.
15534 # No need to generate them if there are no CONFIG_FILES.
15535 # This happens for instance with `./config.status config.h'.
15536 if test -n "$CONFIG_FILES"; then
15538 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15539 ac_cs_awk_getline=:
15540 ac_cs_awk_pipe_init=
15541 ac_cs_awk_read_file='
15542 while ((getline aline < (F[key])) > 0)
15545 ac_cs_awk_pipe_fini=
15547 ac_cs_awk_getline=false
15548 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15549 ac_cs_awk_read_file='
15551 print "cat " F[key] " &&"
15552 '$ac_cs_awk_pipe_init
15553 # The final `:' finishes the AND list.
15554 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15556 ac_cr=`echo X | tr X '\015'`
15557 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15558 # But we know of no other shell where ac_cr would be empty at this
15559 # point, so we can use a bashism as a fallback.
15560 if test "x$ac_cr" = x; then
15561 eval ac_cr=\$\'\\r\'
15563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15567 ac_cs_awk_cr=$ac_cr
15570 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15573 # Create commands to substitute file output variables.
15575 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15576 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15577 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15580 } >conf$$files.sh &&
15581 . ./conf$$files.sh ||
15582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15583 rm -f conf$$files.sh
15586 echo "cat >conf$$subs.awk <<_ACEOF" &&
15587 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15589 } >conf$$subs.sh ||
15590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15591 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15593 for ac_last_try in false false false false false :; do
15594 . ./conf$$subs.sh ||
15595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15597 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15598 if test $ac_delim_n = $ac_delim_num; then
15600 elif $ac_last_try; then
15601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15606 rm -f conf$$subs.sh
15608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15609 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15613 s/^/S["/; s/!.*/"]=/
15623 s/\(.\{148\}\)..*/\1/
15625 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15637 s/\(.\{148\}\)..*/\1/
15639 s/["\\]/\\&/g; s/^/"/; s/$/"/
15643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15648 ' <conf$$subs.awk | sed '
15653 ' >>$CONFIG_STATUS || ac_write_fail=1
15654 rm -f conf$$subs.awk
15655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15657 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15658 for (key in S) S_is_set[key] = 1
15660 \$ac_cs_awk_pipe_init
15664 nfields = split(line, field, "@")
15666 len = length(field[1])
15667 for (i = 2; i < nfields; i++) {
15669 keylen = length(key)
15670 if (S_is_set[key]) {
15672 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15673 len += length(value) + length(field[++i])
15678 if (nfields == 3 && !substed) {
15680 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15681 \$ac_cs_awk_read_file
15687 \$ac_cs_awk_pipe_fini
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15692 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15695 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15696 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15699 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15700 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15701 # trailing colons and then remove the whole line if VPATH becomes empty
15702 # (actually we leave an empty line to preserve line numbers).
15703 if test "x$srcdir" = x.; then
15704 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15723 fi # test -n "$CONFIG_FILES"
15725 # Set up the scripts for CONFIG_HEADERS section.
15726 # No need to generate them if there are no CONFIG_HEADERS.
15727 # This happens for instance with `./config.status Makefile'.
15728 if test -n "$CONFIG_HEADERS"; then
15729 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15733 # Transform confdefs.h into an awk script `defines.awk', embedded as
15734 # here-document in config.status, that substitutes the proper values into
15735 # config.h.in to produce config.h.
15737 # Create a delimiter string that does not exist in confdefs.h, to ease
15738 # handling of long lines.
15740 for ac_last_try in false false :; do
15741 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15742 if test -z "$ac_tt"; then
15744 elif $ac_last_try; then
15745 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15751 # For the awk script, D is an array of macro values keyed by name,
15752 # likewise P contains macro parameters if any. Preserve backslash
15753 # newline sequences.
15755 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15757 s/.\{148\}/&'"$ac_delim"'/g
15760 s/^[ ]*#[ ]*define[ ][ ]*/ /
15767 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15769 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15774 D["\1"]=" \3\\\\\\n"\\/p
15776 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15781 s/.\{148\}/&'"$ac_delim"'/g
15786 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15789 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15791 ' <confdefs.h | sed '
15792 s/'"$ac_delim"'/"\\\
15793 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796 for (key in D) D_is_set[key] = 1
15799 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15801 split(line, arg, " ")
15802 if (arg[1] == "#") {
15806 defundef = substr(arg[1], 2)
15809 split(mac1, mac2, "(") #)
15811 prefix = substr(line, 1, index(line, defundef) - 1)
15812 if (D_is_set[macro]) {
15813 # Preserve the white space surrounding the "#".
15814 print prefix "define", macro P[macro] D[macro]
15817 # Replace #undef with comments. This is necessary, for example,
15818 # in the case of _POSIX_SOURCE, which is predefined and required
15819 # on some systems where configure will not decide to define it.
15820 if (defundef == "undef") {
15821 print "/*", prefix defundef, macro, "*/"
15829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15831 fi # test -n "$CONFIG_HEADERS"
15834 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15839 :[FHLC]) ac_mode=$ac_tag; continue;;
15841 case $ac_mode$ac_tag in
15843 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15844 :[FH]-) ac_tag=-:-;;
15845 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15862 -) ac_f="$ac_tmp/stdin";;
15863 *) # Look for the file first in the build tree, then in the source tree
15864 # (if the path is not absolute). The absolute path cannot be DOS-style,
15865 # because $ac_f cannot contain `:'.
15869 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15871 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15873 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15874 as_fn_append ac_file_inputs " '$ac_f'"
15877 # Let's still pretend it is `configure' which instantiates (i.e., don't
15878 # use $as_me), people would be surprised to read:
15879 # /* config.h. Generated by config.status. */
15880 configure_input='Generated from '`
15881 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15883 if test x"$ac_file" != x-; then
15884 configure_input="$ac_file. $configure_input"
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15886 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15888 # Neutralize special characters interpreted by sed in replacement strings.
15889 case $configure_input in #(
15890 *\&* | *\|* | *\\* )
15891 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15892 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15893 *) ac_sed_conf_input=$configure_input;;
15897 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15903 ac_dir=`$as_dirname -- "$ac_file" ||
15904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15905 X"$ac_file" : 'X\(//\)[^/]' \| \
15906 X"$ac_file" : 'X\(//\)$' \| \
15907 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15908 printf "%s\n" X"$ac_file" |
15909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15913 /^X\(\/\/\)[^/].*/{
15926 as_dir="$ac_dir"; as_fn_mkdir_p
15930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15932 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15933 # A ".." for each directory in $ac_dir_suffix.
15934 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15935 case $ac_top_builddir_sub in
15936 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15937 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15940 ac_abs_top_builddir=$ac_pwd
15941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15942 # for backward compatibility:
15943 ac_top_builddir=$ac_top_build_prefix
15946 .) # We are building in place.
15948 ac_top_srcdir=$ac_top_builddir_sub
15949 ac_abs_top_srcdir=$ac_pwd ;;
15950 [\\/]* | ?:[\\/]* ) # Absolute name.
15951 ac_srcdir=$srcdir$ac_dir_suffix;
15952 ac_top_srcdir=$srcdir
15953 ac_abs_top_srcdir=$srcdir ;;
15954 *) # Relative name.
15955 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15956 ac_top_srcdir=$ac_top_build_prefix$srcdir
15957 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15969 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15970 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15972 ac_MKDIR_P=$MKDIR_P
15974 [\\/$]* | ?:[\\/]* ) ;;
15975 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980 # If the template does not know about datarootdir, expand it.
15981 # FIXME: This hack should be removed a few years after 2.60.
15982 ac_datarootdir_hack=; ac_datarootdir_seen=
15993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15994 *datarootdir*) ac_datarootdir_seen=yes;;
15995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15997 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16000 ac_datarootdir_hack='
16001 s&@datadir@&$datadir&g
16002 s&@docdir@&$docdir&g
16003 s&@infodir@&$infodir&g
16004 s&@localedir@&$localedir&g
16005 s&@mandir@&$mandir&g
16006 s&\\\${datarootdir}&$datarootdir&g' ;;
16010 # Neutralize VPATH when `$srcdir' = `.'.
16011 # Shell code in configure.ac might set extrasub.
16012 # FIXME: do we really want to maintain this feature?
16013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014 ac_sed_extra="$ac_vpsub
16017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16020 s|@configure_input@|$ac_sed_conf_input|;t t
16021 s&@top_builddir@&$ac_top_builddir_sub&;t t
16022 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16023 s&@srcdir@&$ac_srcdir&;t t
16024 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16025 s&@top_srcdir@&$ac_top_srcdir&;t t
16026 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16027 s&@builddir@&$ac_builddir&;t t
16028 s&@abs_builddir@&$ac_abs_builddir&;t t
16029 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16030 s&@INSTALL@&$ac_INSTALL&;t t
16031 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16032 $ac_datarootdir_hack
16034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16035 if $ac_cs_awk_getline; then
16036 $AWK -f "$ac_tmp/subs.awk"
16038 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16040 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16045 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined. Please make sure it is defined" >&5
16048 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16049 which seems to be undefined. Please make sure it is defined" >&2;}
16051 rm -f "$ac_tmp/stdin"
16053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16062 if test x"$ac_file" != x-; then
16064 printf "%s\n" "/* $configure_input */" >&1 \
16065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16066 } >"$ac_tmp/config.h" \
16067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16070 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16073 mv "$ac_tmp/config.h" "$ac_file" \
16074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16077 printf "%s\n" "/* $configure_input */" >&1 \
16078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16079 || as_fn_error $? "could not create -" "$LINENO" 5
16081 # Compute "$ac_file"'s index in $config_headers.
16084 for _am_header in $config_headers :; do
16085 case $_am_header in
16086 $_am_arg | $_am_arg:* )
16089 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16094 X"$_am_arg" : 'X\(//\)[^/]' \| \
16095 X"$_am_arg" : 'X\(//\)$' \| \
16096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16097 printf "%s\n" X"$_am_arg" |
16098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16102 /^X\(\/\/\)[^/].*/{
16114 s/.*/./; q'`/stamp-h$_am_stamp_count
16121 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16124 # Prefer the file from the source tree if names are identical.
16125 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16126 ac_source=$srcdir/$ac_source
16129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16130 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
16132 if test ! -r "$ac_source"; then
16133 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16137 # Try a relative symlink, then a hard link, then a copy.
16139 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16140 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16142 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16143 ln "$ac_source" "$ac_file" 2>/dev/null ||
16144 cp -p "$ac_source" "$ac_file" ||
16145 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16148 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16149 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16154 case $ac_file$ac_mode in
16155 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16156 # Older Autoconf quotes --file arguments for eval, but not when files
16157 # are listed without --file. Let's play safe and only enable the eval
16158 # if we detect the quoting.
16159 # TODO: see whether this extra hack can be removed once we start
16160 # requiring Autoconf 2.70 or later.
16161 case $CONFIG_FILES in #(
16163 eval set x "$CONFIG_FILES" ;; #(
16165 set x $CONFIG_FILES ;; #(
16170 # Used to flag and report bootstrapping failures.
16174 # Strip MF so we end up with the name of the file.
16175 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16176 # Check whether this is an Automake generated Makefile which includes
16177 # dependency-tracking related rules and includes.
16178 # Grep'ing the whole file directly is not great: AIX grep has a line
16179 # limit of 2048, but all sed's we know have understand at least 4000.
16180 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16182 am_dirpart=`$as_dirname -- "$am_mf" ||
16183 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16184 X"$am_mf" : 'X\(//\)[^/]' \| \
16185 X"$am_mf" : 'X\(//\)$' \| \
16186 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16187 printf "%s\n" X"$am_mf" |
16188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16192 /^X\(\/\/\)[^/].*/{
16205 am_filepart=`$as_basename -- "$am_mf" ||
16206 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16207 X"$am_mf" : 'X\(//\)$' \| \
16208 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16209 printf "%s\n" X/"$am_mf" |
16210 sed '/^.*\/\([^/][^/]*\)\/*$/{
16223 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16224 && sed -e '/# am--include-marker/d' "$am_filepart" \
16225 | $MAKE -f - am--depfiles" >&5
16226 (cd "$am_dirpart" \
16227 && sed -e '/# am--include-marker/d' "$am_filepart" \
16228 | $MAKE -f - am--depfiles) >&5 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } || am_rc=$?
16233 if test $am_rc -ne 0; then
16234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16236 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16237 for automatic dependency tracking. If GNU make was not used, consider
16238 re-running the configure script with MAKE=\"gmake\" (or whatever is
16239 necessary). You can also try re-running configure with the
16240 '--disable-dependency-tracking' option to at least be able to build
16241 the package (albeit without support for automatic dependency tracking).
16242 See \`config.log' for more details" "$LINENO" 5; }
16244 { am_dirpart=; unset am_dirpart;}
16245 { am_filepart=; unset am_filepart;}
16246 { am_mf=; unset am_mf;}
16247 { am_rc=; unset am_rc;}
16248 rm -f conftest-deps.mk
16251 "po-directories":C)
16252 for ac_file in $CONFIG_FILES; do
16253 # Support "outfile[:infile[:infile...]]"
16255 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16257 # PO directories have a Makefile.in generated from Makefile.in.in.
16258 case "$ac_file" in */Makefile.in)
16259 # Adjust a relative srcdir.
16260 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16261 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16262 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16263 # In autoconf-2.13 it is called $ac_given_srcdir.
16264 # In autoconf-2.50 it is called $srcdir.
16265 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16266 case "$ac_given_srcdir" in
16267 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16268 /*) top_srcdir="$ac_given_srcdir" ;;
16269 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16271 # Treat a directory as a PO directory if and only if it has a
16272 # POTFILES.in file. This allows packages to have multiple PO
16273 # directories under different names or in different locations.
16274 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16275 rm -f "$ac_dir/POTFILES"
16276 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16277 gt_tab=`printf '\t'`
16278 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16279 POMAKEFILEDEPS="POTFILES.in"
16280 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16281 # on $ac_dir but don't depend on user-specified configuration
16283 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16284 # The LINGUAS file contains the set of available languages.
16285 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16286 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16288 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16289 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16290 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16291 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16293 # The set of available languages was given in configure.in.
16294 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16295 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16298 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16299 # Compute UPDATEPOFILES
16300 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16301 # Compute DUMMYPOFILES
16302 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16304 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16305 case "$ac_given_srcdir" in
16307 *) srcdirpre='$(srcdir)/' ;;
16313 for lang in $ALL_LINGUAS; do
16314 POFILES="$POFILES $srcdirpre$lang.po"
16315 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16316 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16317 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16319 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16320 # environment variable.
16322 if test -n "$ALL_LINGUAS"; then
16323 for presentlang in $ALL_LINGUAS; do
16325 if test "%UNSET%" != "$LINGUAS"; then
16326 desiredlanguages="$LINGUAS"
16328 desiredlanguages="$ALL_LINGUAS"
16330 for desiredlang in $desiredlanguages; do
16331 # Use the presentlang catalog if desiredlang is
16332 # a. equal to presentlang, or
16333 # b. a variant of presentlang (because in this case,
16334 # presentlang can be used as a fallback for messages
16335 # which are not translated in the desiredlang catalog).
16336 case "$desiredlang" in
16337 "$presentlang"*) useit=yes;;
16340 if test $useit = yes; then
16341 INST_LINGUAS="$INST_LINGUAS $presentlang"
16346 if test -n "$INST_LINGUAS"; then
16347 for lang in $INST_LINGUAS; do
16348 CATALOGS="$CATALOGS $lang.gmo"
16351 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16352 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16353 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16354 if test -f "$f"; then
16356 *.orig | *.bak | *~) ;;
16357 *) cat "$f" >> "$ac_dir/Makefile" ;;
16372 ac_clean_files=$ac_clean_files_save
16374 test $ac_write_fail = 0 ||
16375 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16378 # configure is writing to config.log, and then calls config.status.
16379 # config.status does its own redirection, appending to config.log.
16380 # Unfortunately, on DOS this fails, as config.log is still kept open
16381 # by configure, so config.status won't be able to write to it; its
16382 # output is simply discarded. So we exec the FD to /dev/null,
16383 # effectively closing config.log, so it can be properly (re)opened and
16384 # appended to by config.status. When coming back to configure, we
16385 # need to make the FD available again.
16386 if test "$no_create" != yes; then
16388 ac_config_status_args=
16389 test "$silent" = yes &&
16390 ac_config_status_args="$ac_config_status_args --quiet"
16392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16395 # would make configure fail if this is the last instruction.
16396 $ac_cs_success || as_fn_exit 1
16398 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16400 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}