2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.69-81c80 for gzip 1.3.14.
5 # Report bugs to <bug-gzip@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gzip@gnu.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='gzip'
555 PACKAGE_VERSION='1.3.14'
556 PACKAGE_STRING='gzip 1.3.14'
557 PACKAGE_BUGREPORT='bug-gzip@gnu.org'
560 ac_unique_file="gzip.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
599 gl_getopt_required=POSIX
600 gl_getopt_required=POSIX
601 ac_subst_vars='gltests_LTLIBOBJS
617 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
620 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
625 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
627 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
628 TIME_H_DEFINES_STRUCT_TIMESPEC
629 NEXT_AS_FIRST_DIRECTIVE_TIME_H
636 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
638 NEXT_AS_FIRST_DIRECTIVE_STRING_H
641 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
643 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
653 HAVE_SIGNED_SIG_ATOMIC_T
656 BITSIZEOF_SIG_ATOMIC_T
662 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
666 HAVE_UNSIGNED_LONG_LONG_INT
668 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
773 NEXT_AS_FIRST_DIRECTIVE_MATH_H
801 LOCALCHARSET_TESTS_ENVIRONMENT
809 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
815 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
818 REPLACE_SIGNBIT_USING_GCC
872 APPLE_UNIVERSAL_BUILD
874 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
877 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
890 REPLACE_STDIO_WRITE_FUNCS
899 REPLACE_OBSTACK_PRINTF
920 HAVE_DECL_OBSTACK_PRINTF
924 GNULIB_VSPRINTF_POSIX
928 GNULIB_VFPRINTF_POSIX
932 GNULIB_STDIO_H_SIGPIPE
945 GNULIB_OBSTACK_PRINTF_POSIX
946 GNULIB_OBSTACK_PRINTF
971 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
974 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
976 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
977 UNISTD_H_HAVE_WINSOCK2_H
1024 GNULIB_UNISTD_H_SIGPIPE
1025 GNULIB_UNISTD_H_GETOPT
1041 GNULIB_GETDTABLESIZE
1042 GNULIB_GETDOMAINNAME
1061 REPLACE_CANONICALIZE_FILE_NAME
1064 HAVE_STRUCT_RANDOM_DATA
1077 HAVE_DECL_GETLOADAVG
1078 HAVE_CANONICALIZE_FILE_NAME
1087 GNULIB_REALLOC_POSIX
1096 GNULIB_CANONICALIZE_FILE_NAME
1102 GL_COND_LIBTOOL_FALSE
1103 GL_COND_LIBTOOL_TRUE
1135 AM_DEFAULT_VERBOSITY
1144 INSTALL_STRIP_PROGRAM
1186 program_transform_name
1199 enable_option_checking
1201 enable_dependency_tracking
1204 ac_precious_vars='build_alias
1215 # Initialize some variables set by options.
1217 ac_init_version=false
1218 ac_unrecognized_opts=
1219 ac_unrecognized_sep=
1220 # The variables have the same names as the options, with
1221 # dashes changed to underlines.
1222 cache_file=/dev/null
1229 program_transform_name=s,x,x,
1237 # Installation directory options.
1238 # These are left unexpanded so users can "make install exec_prefix=/foo"
1239 # and all the variables that are supposed to be based on exec_prefix
1240 # by default will actually change.
1241 # Use braces instead of parens because sh, perl, etc. also accept them.
1242 # (The list follows the same order as the GNU Coding Standards.)
1243 bindir='${exec_prefix}/bin'
1244 sbindir='${exec_prefix}/sbin'
1245 libexecdir='${exec_prefix}/libexec'
1246 datarootdir='${prefix}/share'
1247 datadir='${datarootdir}'
1248 sysconfdir='${prefix}/etc'
1249 sharedstatedir='${prefix}/com'
1250 localstatedir='${prefix}/var'
1251 includedir='${prefix}/include'
1252 oldincludedir='/usr/include'
1253 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1254 infodir='${datarootdir}/info'
1259 libdir='${exec_prefix}/lib'
1260 localedir='${datarootdir}/locale'
1261 mandir='${datarootdir}/man'
1267 # If the previous option needs an argument, assign it.
1268 if test -n "$ac_prev"; then
1269 eval $ac_prev=\$ac_option
1275 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1279 # Accept the important Cygnus configure options, so we can diagnose typos.
1281 case $ac_dashdash$ac_option in
1285 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1287 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1288 bindir=$ac_optarg ;;
1290 -build | --build | --buil | --bui | --bu)
1291 ac_prev=build_alias ;;
1292 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1293 build_alias=$ac_optarg ;;
1295 -cache-file | --cache-file | --cache-fil | --cache-fi \
1296 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1297 ac_prev=cache_file ;;
1298 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1299 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1300 cache_file=$ac_optarg ;;
1302 --config-cache | -C)
1303 cache_file=config.cache ;;
1305 -datadir | --datadir | --datadi | --datad)
1307 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1308 datadir=$ac_optarg ;;
1310 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1311 | --dataroo | --dataro | --datar)
1312 ac_prev=datarootdir ;;
1313 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1314 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1315 datarootdir=$ac_optarg ;;
1317 -disable-* | --disable-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error "invalid feature name: $ac_useropt"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1326 "enable_$ac_useropt"
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1331 eval enable_$ac_useropt=no ;;
1333 -docdir | --docdir | --docdi | --doc | --do)
1335 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1336 docdir=$ac_optarg ;;
1338 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1340 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1341 dvidir=$ac_optarg ;;
1343 -enable-* | --enable-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error "invalid feature name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1352 "enable_$ac_useropt"
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1357 eval enable_$ac_useropt=\$ac_optarg ;;
1359 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1360 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1361 | --exec | --exe | --ex)
1362 ac_prev=exec_prefix ;;
1363 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1364 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1365 | --exec=* | --exe=* | --ex=*)
1366 exec_prefix=$ac_optarg ;;
1368 -gas | --gas | --ga | --g)
1369 # Obsolete; use --with-gas.
1372 -help | --help | --hel | --he | -h)
1373 ac_init_help=long ;;
1374 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1375 ac_init_help=recursive ;;
1376 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1377 ac_init_help=short ;;
1379 -host | --host | --hos | --ho)
1380 ac_prev=host_alias ;;
1381 -host=* | --host=* | --hos=* | --ho=*)
1382 host_alias=$ac_optarg ;;
1384 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1386 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1388 htmldir=$ac_optarg ;;
1390 -includedir | --includedir | --includedi | --included | --include \
1391 | --includ | --inclu | --incl | --inc)
1392 ac_prev=includedir ;;
1393 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1394 | --includ=* | --inclu=* | --incl=* | --inc=*)
1395 includedir=$ac_optarg ;;
1397 -infodir | --infodir | --infodi | --infod | --info | --inf)
1399 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1400 infodir=$ac_optarg ;;
1402 -libdir | --libdir | --libdi | --libd)
1404 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1405 libdir=$ac_optarg ;;
1407 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1408 | --libexe | --libex | --libe)
1409 ac_prev=libexecdir ;;
1410 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1411 | --libexe=* | --libex=* | --libe=*)
1412 libexecdir=$ac_optarg ;;
1414 -localedir | --localedir | --localedi | --localed | --locale)
1415 ac_prev=localedir ;;
1416 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1417 localedir=$ac_optarg ;;
1419 -localstatedir | --localstatedir | --localstatedi | --localstated \
1420 | --localstate | --localstat | --localsta | --localst | --locals)
1421 ac_prev=localstatedir ;;
1422 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1423 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1424 localstatedir=$ac_optarg ;;
1426 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1428 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1429 mandir=$ac_optarg ;;
1431 -nfp | --nfp | --nf)
1432 # Obsolete; use --without-fp.
1435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1436 | --no-cr | --no-c | -n)
1439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1443 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1444 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1445 | --oldin | --oldi | --old | --ol | --o)
1446 ac_prev=oldincludedir ;;
1447 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1448 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1449 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1450 oldincludedir=$ac_optarg ;;
1452 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1454 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1455 prefix=$ac_optarg ;;
1457 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1458 | --program-pre | --program-pr | --program-p)
1459 ac_prev=program_prefix ;;
1460 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1461 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1462 program_prefix=$ac_optarg ;;
1464 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1465 | --program-suf | --program-su | --program-s)
1466 ac_prev=program_suffix ;;
1467 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1468 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1469 program_suffix=$ac_optarg ;;
1471 -program-transform-name | --program-transform-name \
1472 | --program-transform-nam | --program-transform-na \
1473 | --program-transform-n | --program-transform- \
1474 | --program-transform | --program-transfor \
1475 | --program-transfo | --program-transf \
1476 | --program-trans | --program-tran \
1477 | --progr-tra | --program-tr | --program-t)
1478 ac_prev=program_transform_name ;;
1479 -program-transform-name=* | --program-transform-name=* \
1480 | --program-transform-nam=* | --program-transform-na=* \
1481 | --program-transform-n=* | --program-transform-=* \
1482 | --program-transform=* | --program-transfor=* \
1483 | --program-transfo=* | --program-transf=* \
1484 | --program-trans=* | --program-tran=* \
1485 | --progr-tra=* | --program-tr=* | --program-t=*)
1486 program_transform_name=$ac_optarg ;;
1488 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1490 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1491 pdfdir=$ac_optarg ;;
1493 -psdir | --psdir | --psdi | --psd | --ps)
1495 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499 | -silent | --silent | --silen | --sile | --sil)
1502 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1504 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1506 sbindir=$ac_optarg ;;
1508 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1509 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1510 | --sharedst | --shareds | --shared | --share | --shar \
1512 ac_prev=sharedstatedir ;;
1513 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1514 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1515 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1517 sharedstatedir=$ac_optarg ;;
1519 -site | --site | --sit)
1521 -site=* | --site=* | --sit=*)
1524 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1526 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1527 srcdir=$ac_optarg ;;
1529 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1530 | --syscon | --sysco | --sysc | --sys | --sy)
1531 ac_prev=sysconfdir ;;
1532 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1533 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1534 sysconfdir=$ac_optarg ;;
1536 -target | --target | --targe | --targ | --tar | --ta | --t)
1537 ac_prev=target_alias ;;
1538 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1539 target_alias=$ac_optarg ;;
1541 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1544 -version | --version | --versio | --versi | --vers | -V)
1545 ac_init_version=: ;;
1548 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1549 # Reject names that are not valid shell variable names.
1550 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1551 as_fn_error "invalid package name: $ac_useropt"
1552 ac_useropt_orig=$ac_useropt
1553 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554 case $ac_user_opts in
1558 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1559 ac_unrecognized_sep=', ';;
1561 eval with_$ac_useropt=\$ac_optarg ;;
1563 -without-* | --without-*)
1564 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1565 # Reject names that are not valid shell variable names.
1566 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567 as_fn_error "invalid package name: $ac_useropt"
1568 ac_useropt_orig=$ac_useropt
1569 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1570 case $ac_user_opts in
1574 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1575 ac_unrecognized_sep=', ';;
1577 eval with_$ac_useropt=no ;;
1580 # Obsolete; use --with-x.
1583 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1584 | --x-incl | --x-inc | --x-in | --x-i)
1585 ac_prev=x_includes ;;
1586 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1587 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1588 x_includes=$ac_optarg ;;
1590 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1591 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1592 ac_prev=x_libraries ;;
1593 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1594 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1595 x_libraries=$ac_optarg ;;
1597 -*) as_fn_error "unrecognized option: \`$ac_option'
1598 Try \`$0 --help' for more information."
1602 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1603 # Reject names that are not valid shell variable names.
1604 case $ac_envvar in #(
1605 '' | [0-9]* | *[!_$as_cr_alnum]* )
1606 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1608 eval $ac_envvar=\$ac_optarg
1609 export $ac_envvar ;;
1612 # FIXME: should be removed in autoconf 3.0.
1613 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1614 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1615 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1616 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1622 if test -n "$ac_prev"; then
1623 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1624 as_fn_error "missing argument to $ac_option"
1627 if test -n "$ac_unrecognized_opts"; then
1628 case $enable_option_checking in
1630 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1631 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1635 # Check all directory arguments for consistency.
1636 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1637 datadir sysconfdir sharedstatedir localstatedir includedir \
1638 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1639 libdir localedir mandir
1641 eval ac_val=\$$ac_var
1642 # Remove trailing slashes.
1645 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1646 eval $ac_var=\$ac_val;;
1648 # Be sure to have absolute directory names.
1650 [\\/$]* | ?:[\\/]* ) continue;;
1651 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1653 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1656 # There might be people who depend on the old broken behavior: `$host'
1657 # used to hold the argument of --host etc.
1658 # FIXME: To remove some day.
1661 target=$target_alias
1663 # FIXME: To remove some day.
1664 if test "x$host_alias" != x; then
1665 if test "x$build_alias" = x; then
1666 cross_compiling=maybe
1667 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1668 If a cross compiler is detected then cross compile mode will be used." >&2
1669 elif test "x$build_alias" != "x$host_alias"; then
1675 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1677 test "$silent" = yes && exec 6>/dev/null
1680 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1681 ac_ls_di=`ls -di .` &&
1682 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1683 as_fn_error "working directory cannot be determined"
1684 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1685 as_fn_error "pwd does not report name of working directory"
1688 # Find the source files, if location was not specified.
1689 if test -z "$srcdir"; then
1690 ac_srcdir_defaulted=yes
1691 # Try the directory containing this script, then the parent directory.
1692 ac_confdir=`$as_dirname -- "$as_myself" ||
1693 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1694 X"$as_myself" : 'X\(//\)[^/]' \| \
1695 X"$as_myself" : 'X\(//\)$' \| \
1696 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1697 $as_echo X"$as_myself" |
1698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1716 if test ! -r "$srcdir/$ac_unique_file"; then
1720 ac_srcdir_defaulted=no
1722 if test ! -r "$srcdir/$ac_unique_file"; then
1723 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1724 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1726 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1728 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1730 # When building in place, set srcdir=.
1731 if test "$ac_abs_confdir" = "$ac_pwd"; then
1734 # Remove unnecessary trailing slashes from srcdir.
1735 # Double slashes in file names in object file debugging info
1736 # mess up M-x gdb in Emacs.
1738 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1740 for ac_var in $ac_precious_vars; do
1741 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1742 eval ac_env_${ac_var}_value=\$${ac_var}
1743 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1744 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1748 # Report the --help message.
1750 if test "$ac_init_help" = "long"; then
1751 # Omit some internal or obsolete options to make the list less imposing.
1752 # This message is too long to be a string in the A/UX 3.1 sh.
1754 \`configure' configures gzip 1.3.14 to adapt to many kinds of systems.
1756 Usage: $0 [OPTION]... [VAR=VALUE]...
1758 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1759 VAR=VALUE. See below for descriptions of some of the useful variables.
1761 Defaults for the options are specified in brackets.
1764 -h, --help display this help and exit
1765 --help=short display options specific to this package
1766 --help=recursive display the short help of all the included packages
1767 -V, --version display version information and exit
1768 -q, --quiet, --silent do not print \`checking...' messages
1769 --cache-file=FILE cache test results in FILE [disabled]
1770 -C, --config-cache alias for \`--cache-file=config.cache'
1771 -n, --no-create do not create output files
1772 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1774 Installation directories:
1775 --prefix=PREFIX install architecture-independent files in PREFIX
1776 [$ac_default_prefix]
1777 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1780 By default, \`make install' will install all the files in
1781 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1782 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1783 for instance \`--prefix=\$HOME'.
1785 For better control, use the options below.
1787 Fine tuning of the installation directories:
1788 --bindir=DIR user executables [EPREFIX/bin]
1789 --sbindir=DIR system admin executables [EPREFIX/sbin]
1790 --libexecdir=DIR program executables [EPREFIX/libexec]
1791 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1792 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1793 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1794 --libdir=DIR object code libraries [EPREFIX/lib]
1795 --includedir=DIR C header files [PREFIX/include]
1796 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1797 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1798 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1799 --infodir=DIR info documentation [DATAROOTDIR/info]
1800 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1801 --mandir=DIR man documentation [DATAROOTDIR/man]
1802 --docdir=DIR documentation root [DATAROOTDIR/doc/gzip]
1803 --htmldir=DIR html documentation [DOCDIR]
1804 --dvidir=DIR dvi documentation [DOCDIR]
1805 --pdfdir=DIR pdf documentation [DOCDIR]
1806 --psdir=DIR ps documentation [DOCDIR]
1812 --program-prefix=PREFIX prepend PREFIX to installed program names
1813 --program-suffix=SUFFIX append SUFFIX to installed program names
1814 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1817 --build=BUILD configure for building on BUILD [guessed]
1818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1822 if test -n "$ac_init_help"; then
1823 case $ac_init_help in
1824 short | recursive ) echo "Configuration of gzip 1.3.14:";;
1829 --disable-option-checking ignore unrecognized --enable/--with options
1830 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1831 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1832 --enable-silent-rules less verbose build output (undo: `make V=1')
1833 --disable-silent-rules verbose build output (undo: `make V=0')
1834 --disable-dependency-tracking speeds up one-time build
1835 --enable-dependency-tracking do not reject slow dependency extractors
1836 --disable-largefile omit support for large files
1838 Some influential environment variables:
1839 CC C compiler command
1840 CFLAGS C compiler flags
1841 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1842 nonstandard directory <lib dir>
1843 LIBS libraries to pass to the linker, e.g. -l<library>
1844 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1845 you have headers in a nonstandard directory <include dir>
1848 Use these variables to override the choices made by `configure' or to help
1849 it to find libraries and programs with nonstandard names/locations.
1851 Report bugs to <bug-gzip@gnu.org>.
1856 if test "$ac_init_help" = "recursive"; then
1857 # If there are subdirs, report their specific --help.
1858 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1859 test -d "$ac_dir" ||
1860 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1867 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1868 # A ".." for each directory in $ac_dir_suffix.
1869 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1870 case $ac_top_builddir_sub in
1871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1875 ac_abs_top_builddir=$ac_pwd
1876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1877 # for backward compatibility:
1878 ac_top_builddir=$ac_top_build_prefix
1881 .) # We are building in place.
1883 ac_top_srcdir=$ac_top_builddir_sub
1884 ac_abs_top_srcdir=$ac_pwd ;;
1885 [\\/]* | ?:[\\/]* ) # Absolute name.
1886 ac_srcdir=$srcdir$ac_dir_suffix;
1887 ac_top_srcdir=$srcdir
1888 ac_abs_top_srcdir=$srcdir ;;
1890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1891 ac_top_srcdir=$ac_top_build_prefix$srcdir
1892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1896 cd "$ac_dir" || { ac_status=$?; continue; }
1897 # Check for guested configure.
1898 if test -f "$ac_srcdir/configure.gnu"; then
1900 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1901 elif test -f "$ac_srcdir/configure"; then
1903 $SHELL "$ac_srcdir/configure" --help=recursive
1905 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1907 cd "$ac_pwd" || { ac_status=$?; break; }
1911 test -n "$ac_init_help" && exit $ac_status
1912 if $ac_init_version; then
1914 gzip configure 1.3.14
1915 generated by GNU Autoconf 2.64.69-81c80
1917 Copyright (C) 2009 Free Software Foundation, Inc.
1918 This configure script is free software; the Free Software Foundation
1919 gives unlimited permission to copy, distribute and modify it.
1924 ## ------------------------ ##
1925 ## Autoconf initialization. ##
1926 ## ------------------------ ##
1928 # ac_fn_c_try_compile LINENO
1929 # --------------------------
1930 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext
1935 if { { ac_try="$ac_compile"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_compile") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest.$ac_objext; then :
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 as_fn_set_status $ac_retval
1964 } # ac_fn_c_try_compile
1966 # ac_fn_c_try_cpp LINENO
1967 # ----------------------
1968 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_cpp conftest.$ac_ext"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } >/dev/null && {
1988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 as_fn_set_status $ac_retval
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2008 ac_fn_c_check_header_mongrel ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2032 ac_header_compiler=no
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2048 ac_header_preproc=no
2050 rm -f conftest.err conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 ## ------------------------------- ##
2075 ## Report this to bug-gzip@gnu.org ##
2076 ## ------------------------------- ##
2078 ) | sed "s/^/$as_me: WARNING: /" >&2
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 $as_echo_n "(cached) " >&6
2086 eval "$3=\$ac_header_compiler"
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094 } # ac_fn_c_check_header_mongrel
2096 # ac_fn_c_try_run LINENO
2097 # ----------------------
2098 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2099 # that executables *can* be run.
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_link"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_link") 2>&5
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2114 { { case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_try") 2>&5
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; }; }; then :
2126 $as_echo "$as_me: program exited with status $ac_status" >&5
2127 $as_echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2130 ac_retval=$ac_status
2132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 as_fn_set_status $ac_retval
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148 $as_echo_n "(cached) " >&6
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167 } # ac_fn_c_check_header_compile
2169 # ac_fn_c_try_link LINENO
2170 # -----------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded.
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 rm -f conftest.$ac_objext conftest$ac_exeext
2176 if { { ac_try="$ac_link"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_link") 2>conftest.err
2185 if test -s conftest.err; then
2186 grep -v '^ *+' conftest.err >conftest.er1
2187 cat conftest.er1 >&5
2188 mv -f conftest.er1 conftest.err
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && {
2192 test -z "$ac_c_werror_flag" ||
2193 test ! -s conftest.err
2194 } && test -s conftest$ac_exeext && {
2195 test "$cross_compiling" = yes ||
2196 $as_test_x conftest$ac_exeext
2200 $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2205 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2206 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2207 # interfere with the next link command; also delete a directory that is
2208 # left behind by Apple's compiler. We do this before executing the actions.
2209 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 as_fn_set_status $ac_retval
2213 } # ac_fn_c_try_link
2215 # ac_fn_c_check_func LINENO FUNC VAR
2216 # ----------------------------------
2217 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2218 ac_fn_c_check_func ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 $as_echo_n "checking for $2... " >&6; }
2223 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2224 $as_echo_n "(cached) " >&6
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2230 #define $2 innocuous_$2
2232 /* System header to define __stub macros and hopefully few prototypes,
2233 which can conflict with char $2 (); below.
2234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2235 <limits.h> exists even on freestanding compilers. */
2238 # include <limits.h>
2240 # include <assert.h>
2245 /* Override any GCC internal prototype to avoid an error.
2246 Use char because int might match the return type of a GCC
2247 builtin and then its argument prototype would still apply. */
2252 /* The GNU C library defines this for functions which it implements
2253 to always fail with ENOSYS. Some functions are actually named
2254 something starting with __ and the normal name is an alias. */
2255 #if defined __stub_$2 || defined __stub___$2
2267 if ac_fn_c_try_link "$LINENO"; then :
2272 rm -f core conftest.err conftest.$ac_objext \
2273 conftest$ac_exeext conftest.$ac_ext
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2278 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2280 } # ac_fn_c_check_func
2282 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2283 # -------------------------------------------
2284 # Tests whether TYPE exists after having included INCLUDES, setting cache
2285 # variable VAR accordingly.
2286 ac_fn_c_check_type ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290 $as_echo_n "checking for $2... " >&6; }
2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2292 $as_echo_n "(cached) " >&6
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2320 if ac_fn_c_try_compile "$LINENO"; then :
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 } # ac_fn_c_check_type
2336 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2337 # --------------------------------------------
2338 # Tries to find the compile-time value of EXPR in a program that includes
2339 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2341 ac_fn_c_compute_int ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 if test "$cross_compiling" = yes; then
2345 # Depending upon the size, compute the lo and hi bounds.
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2352 static int test_array [1 - 2 * !(($2) >= 0)];
2359 if ac_fn_c_try_compile "$LINENO"; then :
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2368 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2375 if ac_fn_c_try_compile "$LINENO"; then :
2376 ac_hi=$ac_mid; break
2378 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2379 if test $ac_lo -le $ac_mid; then
2383 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2394 static int test_array [1 - 2 * !(($2) < 0)];
2401 if ac_fn_c_try_compile "$LINENO"; then :
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2410 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418 ac_lo=$ac_mid; break
2420 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2421 if test $ac_mid -le $ac_hi; then
2425 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 # Binary search between lo and hi bounds.
2436 while test "x$ac_lo" != "x$ac_hi"; do
2437 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2444 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2451 if ac_fn_c_try_compile "$LINENO"; then :
2454 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2466 static long int longval () { return $2; }
2467 static unsigned long int ulongval () { return $2; }
2474 FILE *f = fopen ("conftest.val", "w");
2479 long int i = longval ();
2482 fprintf (f, "%ld", i);
2486 unsigned long int i = ulongval ();
2489 fprintf (f, "%lu", i);
2491 /* Do not output a trailing newline, as this causes \r\n confusion
2492 on some platforms. */
2493 return ferror (f) || fclose (f) != 0;
2499 if ac_fn_c_try_run "$LINENO"; then :
2500 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2505 conftest.$ac_objext conftest.beam conftest.$ac_ext
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510 as_fn_set_status $ac_retval
2512 } # ac_fn_c_compute_int
2514 # ac_fn_c_check_decl LINENO SYMBOL VAR
2515 # ------------------------------------
2516 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2517 ac_fn_c_check_decl ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2521 $as_echo_n "checking whether $2 is declared... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2539 if ac_fn_c_try_compile "$LINENO"; then :
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548 $as_echo "$ac_res" >&6; }
2549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551 } # ac_fn_c_check_decl
2553 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2554 # ----------------------------------------------------
2555 # Tries to find if the field MEMBER exists in type AGGR, after including
2556 # INCLUDES, setting cache variable VAR accordingly.
2557 ac_fn_c_check_member ()
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2561 $as_echo_n "checking for $2.$3... " >&6; }
2562 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2563 $as_echo_n "(cached) " >&6
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2578 if ac_fn_c_try_compile "$LINENO"; then :
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2588 if (sizeof ac_aggr.$3)
2594 if ac_fn_c_try_compile "$LINENO"; then :
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 } # ac_fn_c_check_member
2609 cat >config.log <<_ACEOF
2610 This file contains any messages produced by compilers while
2611 running configure, to aid debugging if configure makes a mistake.
2613 It was created by gzip $as_me 1.3.14, which was
2614 generated by GNU Autoconf 2.64.69-81c80. Invocation command line was
2626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2633 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2635 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2636 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2638 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2639 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2640 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2641 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 $as_echo "PATH: $as_dir"
2666 # Keep a trace of the command line.
2667 # Strip out --no-create and --no-recursion so they do not pile up.
2668 # Strip out --silent because we don't want to record it for future runs.
2669 # Also quote any args containing shell meta-characters.
2670 # Make two passes to allow for proper duplicate-argument suppression.
2674 ac_must_keep_next=false
2680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2682 | -silent | --silent | --silen | --sile | --sil)
2685 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2688 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2690 as_fn_append ac_configure_args1 " '$ac_arg'"
2691 if test $ac_must_keep_next = true; then
2692 ac_must_keep_next=false # Got value, back to normal.
2695 *=* | --config-cache | -C | -disable-* | --disable-* \
2696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2698 | -with-* | --with-* | -without-* | --without-* | --x)
2699 case "$ac_configure_args0 " in
2700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2703 -* ) ac_must_keep_next=true ;;
2706 as_fn_append ac_configure_args " '$ac_arg'"
2711 { ac_configure_args0=; unset ac_configure_args0;}
2712 { ac_configure_args1=; unset ac_configure_args1;}
2714 # When interrupted or exit'd, cleanup temporary files, and complete
2715 # config.log. We remove comments because anyway the quotes in there
2716 # would cause problems or look ugly.
2717 # WARNING: Use '\'' to represent an apostrophe within the trap.
2718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2719 trap 'exit_status=$?
2720 # Save into config.log some information that might help in debugging.
2725 ## ---------------- ##
2726 ## Cache variables. ##
2727 ## ---------------- ##
2730 # The following way of writing the cache mishandles newlines in values,
2732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2733 eval ac_val=\$$ac_var
2737 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2741 _ | IFS | as_nl) ;; #(
2742 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2743 *) { eval $ac_var=; unset $ac_var;} ;;
2748 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2749 *${as_nl}ac_space=\ *)
2751 "s/'\''/'\''\\\\'\'''\''/g;
2752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2763 ## ----------------- ##
2764 ## Output variables. ##
2765 ## ----------------- ##
2768 for ac_var in $ac_subst_vars
2770 eval ac_val=\$$ac_var
2772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 $as_echo "$ac_var='\''$ac_val'\''"
2778 if test -n "$ac_subst_files"; then
2780 ## ------------------- ##
2781 ## File substitutions. ##
2782 ## ------------------- ##
2785 for ac_var in $ac_subst_files
2787 eval ac_val=\$$ac_var
2789 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791 $as_echo "$ac_var='\''$ac_val'\''"
2796 if test -s confdefs.h; then
2806 test "$ac_signal" != 0 &&
2807 $as_echo "$as_me: caught signal $ac_signal"
2808 $as_echo "$as_me: exit $exit_status"
2810 rm -f core *.core core.conftest.* &&
2811 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2814 for ac_signal in 1 2 13 15; do
2815 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2820 rm -f -r conftest* confdefs.h
2822 $as_echo "/* confdefs.h */" > confdefs.h
2824 # Predefined preprocessor variables.
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_NAME "$PACKAGE_NAME"
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_STRING "$PACKAGE_STRING"
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_URL "$PACKAGE_URL"
2851 # Let the site file select an alternate cache file if it wants to.
2852 # Prefer an explicitly selected file to automatically selected ones.
2855 if test -n "$CONFIG_SITE"; then
2856 ac_site_file1=$CONFIG_SITE
2857 elif test "x$prefix" != xNONE; then
2858 ac_site_file1=$prefix/share/config.site
2859 ac_site_file2=$prefix/etc/config.site
2861 ac_site_file1=$ac_default_prefix/share/config.site
2862 ac_site_file2=$ac_default_prefix/etc/config.site
2864 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2866 test "x$ac_site_file" = xNONE && continue
2867 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2869 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2870 sed 's/^/| /' "$ac_site_file" >&5
2875 if test -r "$cache_file"; then
2876 # Some versions of bash will fail to source /dev/null (special files
2877 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2878 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2880 $as_echo "$as_me: loading cache $cache_file" >&6;}
2882 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2883 *) . "./$cache_file";;
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2888 $as_echo "$as_me: creating cache $cache_file" >&6;}
2892 as_fn_append ac_func_list " dup2"
2893 as_fn_append ac_header_list " errno.h"
2894 as_fn_append ac_header_list " fcntl.h"
2895 as_fn_append ac_header_list " float.h"
2896 as_fn_append ac_header_list " stdio_ext.h"
2897 as_fn_append ac_func_list " __fpending"
2898 as_fn_append ac_func_list " vasnprintf"
2899 as_fn_append ac_func_list " fpurge"
2900 as_fn_append ac_func_list " __fpurge"
2901 as_fn_append ac_func_list " __freading"
2902 gl_getopt_required=GNU
2903 as_fn_append ac_header_list " getopt.h"
2904 as_fn_append ac_func_list " gettimeofday"
2905 as_fn_append ac_func_list " nanotime"
2906 as_fn_append ac_header_list " sys/time.h"
2907 as_fn_append ac_func_list " lstat"
2908 as_fn_append ac_header_list " math.h"
2909 as_fn_append ac_func_list " mbsinit"
2910 as_fn_append ac_func_list " mbrtowc"
2911 as_fn_append ac_header_list " sys/mman.h"
2912 as_fn_append ac_func_list " mprotect"
2914 as_fn_append ac_header_list " stddef.h"
2915 as_fn_append ac_header_list " stdint.h"
2916 as_fn_append ac_header_list " wchar.h"
2917 as_fn_append ac_header_list " stdio.h"
2918 as_fn_append ac_header_list " stdlib.h"
2919 as_fn_append ac_header_list " sys/socket.h"
2920 as_fn_append ac_header_list " string.h"
2921 as_fn_append ac_header_list " sys/stat.h"
2922 as_fn_append ac_header_list " time.h"
2923 as_fn_append ac_header_list " unistd.h"
2924 as_fn_append ac_func_list " pipe"
2925 as_fn_append ac_header_list " utime.h"
2926 as_fn_append ac_func_list " futimes"
2927 as_fn_append ac_func_list " futimesat"
2928 as_fn_append ac_func_list " futimens"
2929 as_fn_append ac_func_list " utimensat"
2930 as_fn_append ac_func_list " lutimes"
2931 as_fn_append ac_func_list " iswcntrl"
2932 as_fn_append ac_header_list " wctype.h"
2933 as_fn_append ac_header_list " limits.h"
2934 as_fn_append ac_header_list " memory.h"
2935 as_fn_append ac_func_list " chown"
2936 as_fn_append ac_func_list " fchmod"
2937 as_fn_append ac_func_list " fchown"
2938 as_fn_append ac_func_list " fdopendir"
2939 as_fn_append ac_func_list " siginterrupt"
2940 # Check that the precious variables saved in the cache have kept the same
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945 eval ac_new_set=\$ac_env_${ac_var}_set
2946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947 eval ac_new_val=\$ac_env_${ac_var}_value
2948 case $ac_old_set,$ac_new_set in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2951 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2959 if test "x$ac_old_val" != "x$ac_new_val"; then
2960 # differences in whitespace do not lead to failure.
2961 ac_old_val_w=`echo x $ac_old_val`
2962 ac_new_val_w=`echo x $ac_new_val`
2963 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2966 ac_cache_corrupted=:
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970 eval $ac_var=\$ac_old_val
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2973 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2978 # Pass precious variables to config.status.
2979 if test "$ac_new_set" = set; then
2981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2982 *) ac_arg=$ac_var=$ac_new_val ;;
2984 case " $ac_configure_args " in
2985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2986 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2990 if $ac_cache_corrupted; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 for ac_dir in build-aux "$srcdir"/build-aux; do
3012 for ac_t in install-sh install.sh shtool; do
3013 if test -f "$ac_dir/$ac_t"; then
3015 ac_install_sh="$ac_aux_dir/$ac_t -c"
3020 if test -z "$ac_aux_dir"; then
3021 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3033 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
3035 am__api_version='1.11a'
3037 # Find a good install program. We prefer a C program (faster),
3038 # so one script is as good as another. But avoid the broken or
3039 # incompatible versions:
3040 # SysV /etc/install, /usr/sbin/install
3041 # SunOS /usr/etc/install
3042 # IRIX /sbin/install
3044 # AmigaOS /C/install, which installs bootblocks on floppy discs
3045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3048 # OS/2's system install, which has a completely different semantic
3049 # ./install, which can be erroneously created by make from ./install.sh.
3050 # Reject install programs that cannot install multiple files.
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3052 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3053 if test -z "$INSTALL"; then
3054 if test "${ac_cv_path_install+set}" = set; then :
3055 $as_echo_n "(cached) " >&6
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 # Account for people who put trailing slashes in PATH elements.
3063 case $as_dir/ in #((
3064 ./ | .// | /[cC]/* | \
3065 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3066 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3069 # OSF1 and SCO ODT 3.0 have their own names for install.
3070 # Don't use installbsd from OSF since it installs stuff as root
3072 for ac_prog in ginstall scoinst install; do
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3075 if test $ac_prog = install &&
3076 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077 # AIX install. It has an incompatible calling convention.
3079 elif test $ac_prog = install &&
3080 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3081 # program-specific install script used by HP pwplus--don't use.
3084 rm -rf conftest.one conftest.two conftest.dir
3085 echo one > conftest.one
3086 echo two > conftest.two
3088 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3089 test -s conftest.one && test -s conftest.two &&
3090 test -s conftest.dir/conftest.one &&
3091 test -s conftest.dir/conftest.two
3093 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106 rm -rf conftest.one conftest.two conftest.dir
3109 if test "${ac_cv_path_install+set}" = set; then
3110 INSTALL=$ac_cv_path_install
3112 # As a last resort, use the slow shell script. Don't cache a
3113 # value for INSTALL within a source directory, because that will
3114 # break other packages using the cache if that directory is
3115 # removed, or if the value is a relative name.
3116 INSTALL=$ac_install_sh
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3120 $as_echo "$INSTALL" >&6; }
3122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3123 # It thinks the first close brace ends the variable substitution.
3124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3131 $as_echo_n "checking whether build environment is sane... " >&6; }
3132 # Reject unsafe characters in $srcdir or the absolute working directory
3133 # name. Accept space and tab only in the latter.
3137 *[\\\"\#\$\&\'\`$am_lf]*)
3138 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3141 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3142 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3145 # Do `set' in a subshell so we don't clobber the current shell's
3146 # arguments. Must try -L first in case configure is actually a
3147 # symlink; some systems play weird games with the mod time of symlinks
3148 # (eg FreeBSD returns the mod time of the symlink's containing
3151 for am_try in 1 2; do
3152 echo timestamp > conftest.file
3153 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3154 if test "$*" = "X"; then
3156 set X `ls -t "$srcdir/configure" conftest.file`
3159 if test "$*" != "X $srcdir/configure conftest.file" \
3160 && test "$*" != "X conftest.file $srcdir/configure"; then
3162 # If neither matched, then we have a broken ls. This can happen
3163 # if, for instance, CONFIG_SHELL is bash and it inherits a
3164 # broken ls alias from the environment. This has actually
3165 # happened. Such a system could not be considered "sane".
3166 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3167 alias in your environment" "$LINENO" 5
3169 if test "$2" = conftest.file || test $am_try -eq 2; then
3175 test "$2" = conftest.file
3181 as_fn_error "newly created file is older than distributed files!
3182 Check your system clock" "$LINENO" 5
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3186 test "$program_prefix" != NONE &&
3187 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3188 # Use a double $ so make ignores it.
3189 test "$program_suffix" != NONE &&
3190 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3191 # Double any \ or $.
3192 # By default was `s,x,x', remove it if useless.
3193 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3194 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3196 # expand $ac_aux_dir to an absolute path
3197 am_aux_dir=`cd $ac_aux_dir && pwd`
3199 if test x"${MISSING+set}" != xset; then
3202 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3204 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3207 # Use eval to expand $SHELL
3208 if eval "$MISSING --run true"; then
3209 am_missing_run="$MISSING --run "
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3213 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3216 if test x"${install_sh}" != xset; then
3219 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3221 install_sh="\${SHELL} $am_aux_dir/install-sh"
3225 # Installed binaries are usually stripped using `strip' when the user
3226 # run `make install-strip'. However `strip' might not be the right
3227 # tool to use in cross-compilation environments, therefore Automake
3228 # will honor the `STRIP' environment variable to overrule this program.
3229 if test "$cross_compiling" != no; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}strip; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if test "${ac_cv_prog_STRIP+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
3238 if test -n "$STRIP"; then
3239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 STRIP=$ac_cv_prog_STRIP
3259 if test -n "$STRIP"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3261 $as_echo "$STRIP" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3269 if test -z "$ac_cv_prog_STRIP"; then
3271 # Extract the first word of "strip", so it can be a program name with args.
3272 set dummy strip; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$ac_ct_STRIP"; then
3279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_ac_ct_STRIP="strip"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3299 if test -n "$ac_ct_STRIP"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3301 $as_echo "$ac_ct_STRIP" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3307 if test "x$ac_ct_STRIP" = x; then
3310 case $cross_compiling:$ac_tool_warned in
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314 ac_tool_warned=yes ;;
3319 STRIP="$ac_cv_prog_STRIP"
3323 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3326 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3327 if test -z "$MKDIR_P"; then
3328 if test "${ac_cv_path_mkdir+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3335 test -z "$as_dir" && as_dir=.
3336 for ac_prog in mkdir gmkdir; do
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3339 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3340 'mkdir (GNU coreutils) '* | \
3341 'mkdir (coreutils) '* | \
3342 'mkdir (fileutils) '4.1*)
3343 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3353 test -d ./--version && rmdir ./--version
3354 if test "${ac_cv_path_mkdir+set}" = set; then
3355 MKDIR_P="$ac_cv_path_mkdir -p"
3357 # As a last resort, use the slow shell script. Don't cache a
3358 # value for MKDIR_P within a source directory, because that will
3359 # break other packages using the cache if that directory is
3360 # removed, or if the value is a relative name.
3361 MKDIR_P="$ac_install_sh -d"
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3365 $as_echo "$MKDIR_P" >&6; }
3369 [\\/$]* | ?:[\\/]*) ;;
3370 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3373 for ac_prog in gawk mawk nawk awk
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy $ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_AWK+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$AWK"; then
3383 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_AWK="$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$AWK"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3405 $as_echo "$AWK" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$AWK" && break
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3416 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3418 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3419 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3420 $as_echo_n "(cached) " >&6
3422 cat >conftest.make <<\_ACEOF
3425 @echo '@@@%%%=$(MAKE)=@@@%%%'
3427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3428 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3430 eval ac_cv_prog_make_${ac_make}_set=yes;;
3432 eval ac_cv_prog_make_${ac_make}_set=no;;
3436 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3438 $as_echo "yes" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 SET_MAKE="MAKE=${MAKE-make}"
3446 rm -rf .tst 2>/dev/null
3447 mkdir .tst 2>/dev/null
3448 if test -d .tst; then
3453 rmdir .tst 2>/dev/null
3455 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3456 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3457 # is not polluted with repeated "-I."
3458 am__isrc=' -I$(srcdir)'
3459 # test to see if srcdir already configured
3460 if test -f $srcdir/config.status; then
3461 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3465 # test whether we have cygpath
3466 if test -z "$CYGPATH_W"; then
3467 if (cygpath --version) >/dev/null 2>/dev/null; then
3468 CYGPATH_W='cygpath -w'
3475 # Define the identity of the package.
3480 cat >>confdefs.h <<_ACEOF
3481 #define PACKAGE "$PACKAGE"
3485 cat >>confdefs.h <<_ACEOF
3486 #define VERSION "$VERSION"
3489 # Some tools Automake needs.
3491 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3494 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3497 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3500 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3503 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3505 # We need awk for the "check" target. The system "awk" is bad on
3507 # Always define AMTAR for backward compatibility.
3509 AMTAR=${AMTAR-"${am_missing_run}tar"}
3511 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3517 # Check whether --enable-silent-rules was given.
3518 if test "${enable_silent_rules+set}" = set; then :
3519 enableval=$enable_silent_rules;
3522 case $enable_silent_rules in
3523 yes) AM_DEFAULT_VERBOSITY=0;;
3524 no) AM_DEFAULT_VERBOSITY=1;;
3525 *) AM_DEFAULT_VERBOSITY=0;;
3528 # make --enable-silent-rules the default.
3530 DEPDIR="${am__leading_dot}deps"
3532 ac_config_commands="$ac_config_commands depfiles"
3535 am_make=${MAKE-make}
3536 cat > confinc << 'END'
3538 @echo this is the am__doit target
3541 # If we don't find an include directive, just comment out the code.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3543 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3547 # First try GNU make style include.
3548 echo "include confinc" > confmf
3549 # Ignore all kinds of additional output from `make'.
3550 case `$am_make -s -f confmf 2> /dev/null` in #(
3551 *the\ am__doit\ target*)
3557 # Now try BSD make style include.
3558 if test "$am__include" = "#"; then
3559 echo '.include "confinc"' > confmf
3560 case `$am_make -s -f confmf 2> /dev/null` in #(
3561 *the\ am__doit\ target*)
3562 am__include=.include
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3571 $as_echo "$_am_result" >&6; }
3572 rm -f confinc confmf
3574 # Check whether --enable-dependency-tracking was given.
3575 if test "${enable_dependency_tracking+set}" = set; then :
3576 enableval=$enable_dependency_tracking;
3579 if test "x$enable_dependency_tracking" != xno; then
3580 am_depcomp="$ac_aux_dir/depcomp"
3583 if test "x$enable_dependency_tracking" != xno; then
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_CC+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3605 if test -n "$CC"; then
3606 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 if test -n "$CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 $as_echo "$CC" >&6; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3636 if test -z "$ac_cv_prog_CC"; then
3638 # Extract the first word of "gcc", so it can be a program name with args.
3639 set dummy gcc; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3645 if test -n "$ac_ct_CC"; then
3646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_CC="gcc"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666 if test -n "$ac_ct_CC"; then
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668 $as_echo "$ac_ct_CC" >&6; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 $as_echo "no" >&6; }
3674 if test "x$ac_ct_CC" = x; then
3677 case $cross_compiling:$ac_tool_warned in
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3692 set dummy ${ac_tool_prefix}cc; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_CC+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CC="${ac_tool_prefix}cc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3730 if test -z "$CC"; then
3731 # Extract the first word of "cc", so it can be a program name with args.
3732 set dummy cc; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$CC"; then
3739 ac_cv_prog_CC="$CC" # Let the user override the test.
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3750 ac_prog_rejected=yes
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 if test $ac_prog_rejected = yes; then
3762 # We found a bogon in the path, so make sure we never use it.
3763 set dummy $ac_cv_prog_CC
3765 if test $# != 0; then
3766 # We chose a different compiler from the bogus one.
3767 # However, it has the same basename, so the bogon will be chosen
3768 # first if we set CC to just the basename; use the full file name.
3770 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3776 if test -n "$CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3786 if test -z "$CC"; then
3787 if test -n "$ac_tool_prefix"; then
3788 for ac_prog in cl.exe
3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if test "${ac_cv_prog_CC+set}" = set; then :
3795 $as_echo_n "(cached) " >&6
3797 if test -n "$CC"; then
3798 ac_cv_prog_CC="$CC" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test -n "$CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3827 test -n "$CC" && break
3830 if test -z "$CC"; then
3832 for ac_prog in cl.exe
3834 # Extract the first word of "$ac_prog", so it can be a program name with args.
3835 set dummy $ac_prog; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -n "$ac_ct_CC"; then
3842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_ac_ct_CC="$ac_prog"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3862 if test -n "$ac_ct_CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3864 $as_echo "$ac_ct_CC" >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3871 test -n "$ac_ct_CC" && break
3874 if test "x$ac_ct_CC" = x; then
3877 case $cross_compiling:$ac_tool_warned in
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881 ac_tool_warned=yes ;;
3890 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 as_fn_error "no acceptable C compiler found in \$PATH
3893 See \`config.log' for more details." "$LINENO" 5; }
3895 # Provide some information about the compiler.
3896 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3899 for ac_option in --version -v -V -qversion; do
3900 { { ac_try="$ac_compiler $ac_option >&5"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3909 if test -s conftest.err; then
3911 ... rest of stderr output deleted ...
3912 10q' conftest.err >conftest.er1
3913 cat conftest.er1 >&5
3914 rm -f conftest.er1 conftest.err
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3931 ac_clean_files_save=$ac_clean_files
3932 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3933 # Try to create an executable without -o first, disregard a.out.
3934 # It will help us diagnose broken compilers, and finding out an intuition
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3937 $as_echo_n "checking whether the C compiler works... " >&6; }
3938 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3940 # The possible output files:
3941 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3944 for ac_file in $ac_files
3947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3948 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3953 if { { ac_try="$ac_link_default"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link_default") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3965 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3966 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3967 # so that the user can short-circuit this test for compilers unknown to
3969 for ac_file in $ac_files ''
3971 test -f "$ac_file" || continue
3973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3976 # We found the default executable, but exeext='' is most
3980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3984 # We set ac_cv_exeext here because the later test for it is not
3985 # safe: cross compilers may not add the suffix if given an `-o'
3986 # argument, so we may need to know it at that point already.
3987 # Even if this section looks crufty: it has the advantage of
3994 test "$ac_cv_exeext" = no && ac_cv_exeext=
3999 if test -z "$ac_file"; then :
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4002 $as_echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 { as_fn_set_status 77
4008 as_fn_error "C compiler cannot create executables
4009 See \`config.log' for more details." "$LINENO" 5; }; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4012 $as_echo "yes" >&6; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4015 $as_echo_n "checking for C compiler default output file name... " >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4017 $as_echo "$ac_file" >&6; }
4018 ac_exeext=$ac_cv_exeext
4020 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4021 ac_clean_files=$ac_clean_files_save
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4023 $as_echo_n "checking for suffix of executables... " >&6; }
4024 if { { ac_try="$ac_link"
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4030 $as_echo "$ac_try_echo"; } >&5
4031 (eval "$ac_link") 2>&5
4033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4034 test $ac_status = 0; }; then :
4035 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4036 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4037 # work properly (i.e., refer to `conftest.exe'), while it won't with
4039 for ac_file in conftest.exe conftest conftest.*; do
4040 test -f "$ac_file" || continue
4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error "cannot compute suffix of executables: cannot compile and link
4052 See \`config.log' for more details." "$LINENO" 5; }
4054 rm -f conftest conftest$ac_cv_exeext
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4056 $as_echo "$ac_cv_exeext" >&6; }
4058 rm -f conftest.$ac_ext
4059 EXEEXT=$ac_cv_exeext
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4067 FILE *f = fopen ("conftest.out", "w");
4068 return ferror (f) || fclose (f) != 0;
4074 ac_clean_files="$ac_clean_files conftest.out"
4075 # Check that the compiler produces executables we can run. If not, either
4076 # the compiler is broken, or we cross compile.
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4078 $as_echo_n "checking whether we are cross compiling... " >&6; }
4079 if test "$cross_compiling" != yes; then
4080 { { ac_try="$ac_link"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086 $as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_link") 2>&5
4089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090 test $ac_status = 0; }
4091 if { ac_try='./conftest$ac_cv_exeext'
4092 { { case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_try") 2>&5
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }; }; then
4104 if test "$cross_compiling" = maybe; then
4107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error "cannot run C compiled programs.
4110 If you meant to cross compile, use \`--host'.
4111 See \`config.log' for more details." "$LINENO" 5; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4116 $as_echo "$cross_compiling" >&6; }
4118 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4119 ac_clean_files=$ac_clean_files_save
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4121 $as_echo_n "checking for suffix of object files... " >&6; }
4122 if test "${ac_cv_objext+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 rm -f conftest.o conftest.obj
4137 if { { ac_try="$ac_compile"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4143 $as_echo "$ac_try_echo"; } >&5
4144 (eval "$ac_compile") 2>&5
4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4147 test $ac_status = 0; }; then :
4148 for ac_file in conftest.o conftest.obj conftest.*; do
4149 test -f "$ac_file" || continue;
4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4152 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4157 $as_echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error "cannot compute suffix of object files: cannot compile
4163 See \`config.log' for more details." "$LINENO" 5; }
4165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4168 $as_echo "$ac_cv_objext" >&6; }
4169 OBJEXT=$ac_cv_objext
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4172 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4173 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4190 if ac_fn_c_try_compile "$LINENO"; then :
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4201 if test $ac_compiler_gnu = yes; then
4206 ac_test_CFLAGS=${CFLAGS+set}
4207 ac_save_CFLAGS=$CFLAGS
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4210 if test "${ac_cv_prog_cc_g+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4213 ac_save_c_werror_flag=$ac_c_werror_flag
4214 ac_c_werror_flag=yes
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4228 if ac_fn_c_try_compile "$LINENO"; then :
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4243 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_c_werror_flag=$ac_save_c_werror_flag
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4259 if ac_fn_c_try_compile "$LINENO"; then :
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 ac_c_werror_flag=$ac_save_c_werror_flag
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4270 $as_echo "$ac_cv_prog_cc_g" >&6; }
4271 if test "$ac_test_CFLAGS" = set; then
4272 CFLAGS=$ac_save_CFLAGS
4273 elif test $ac_cv_prog_cc_g = yes; then
4274 if test "$GCC" = yes; then
4280 if test "$GCC" = yes; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4287 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4288 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4291 ac_cv_prog_cc_c89=no
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4297 #include <sys/types.h>
4298 #include <sys/stat.h>
4299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4300 struct buf { int x; };
4301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4302 static char *e (p, i)
4308 static char *f (char * (*g) (char **, int), char **p, ...)
4313 s = g (p, va_arg (v,int));
4318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4319 function prototypes and stuff, but not '\xHH' hex character constants.
4320 These don't provoke an error unfortunately, instead are silently treated
4321 as 'x'. The following induces an error, until -std is added to get
4322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4323 array size at least. It's necessary to write '\x00'==0 to get something
4324 that's true only with -std. */
4325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4328 inside strings and character constants. */
4330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4332 int test (int i, double x);
4333 struct s1 {int (*f) (int a);};
4334 struct s2 {int (*f) (double a);};
4335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4349 CC="$ac_save_CC $ac_arg"
4350 if ac_fn_c_try_compile "$LINENO"; then :
4351 ac_cv_prog_cc_c89=$ac_arg
4353 rm -f core conftest.err conftest.$ac_objext
4354 test "x$ac_cv_prog_cc_c89" != "xno" && break
4356 rm -f conftest.$ac_ext
4361 case "x$ac_cv_prog_cc_c89" in
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4364 $as_echo "none needed" >&6; } ;;
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4367 $as_echo "unsupported" >&6; } ;;
4369 CC="$CC $ac_cv_prog_cc_c89"
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4371 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4373 if test "x$ac_cv_prog_cc_c89" != xno; then :
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 depcc="$CC" am_compiler_list=
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4386 $as_echo_n "checking dependency style of $depcc... " >&6; }
4387 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391 # We make a subdir and do the tests there. Otherwise we can end up
4392 # making bogus files that we don't know about and never remove. For
4393 # instance it was reported that on HP-UX the gcc test will end up
4394 # making a dummy file named `D' -- because `-MD' means `put the output
4397 # Copy depcomp to subdir because otherwise we won't find it if we're
4398 # using a relative directory.
4399 cp "$am_depcomp" conftest.dir
4401 # We will build objects and dependencies in a subdirectory because
4402 # it helps to detect inapplicable dependency modes. For instance
4403 # both Tru64's cc and ICC support -MD to output dependencies as a
4404 # side effect of compilation, but ICC will put the dependencies in
4405 # the current directory while Tru64 will put them in the object
4409 am_cv_CC_dependencies_compiler_type=none
4410 if test "$am_compiler_list" = ""; then
4411 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4414 case " $depcc " in #(
4415 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418 for depmode in $am_compiler_list; do
4419 # Setup a source with many dependencies, because some compilers
4420 # like to wrap large dependency lists on column 80 (with \), and
4421 # we should not choose a depcomp mode which is confused by this.
4423 # We need to recreate these files for each test, as the compiler may
4424 # overwrite some of them when testing with obscure command lines.
4425 # This happens at least with the AIX C compiler.
4427 for i in 1 2 3 4 5 6; do
4428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4429 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4430 # Solaris 8's {/usr,}/bin/sh.
4431 touch sub/conftst$i.h
4433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4435 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4436 # mode. It turns out that the SunPro C++ compiler does not properly
4437 # handle `-M -o', and we need to detect this. Also, some Intel
4438 # versions had trouble with output in subdirs
4439 am__obj=sub/conftest.${OBJEXT-o}
4440 am__minus_obj="-o $am__obj"
4443 # This depmode causes a compiler race in universal mode.
4444 test "$am__universal" = false || continue
4447 # after this tag, mechanisms are not by side-effect, so they'll
4448 # only be used when explicitly requested
4449 if test "x$enable_dependency_tracking" = xyes; then
4455 msvisualcpp | msvcmsys)
4456 # This compiler won't grok `-c -o', but also, the minuso test has
4457 # not run yet. These depmodes are late enough in the game, and
4458 # so weak that their functioning should not be impacted.
4459 am__obj=conftest.${OBJEXT-o}
4464 if depmode=$depmode \
4465 source=sub/conftest.c object=$am__obj \
4466 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4467 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4468 >/dev/null 2>conftest.err &&
4469 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4470 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4471 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4472 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4473 # icc doesn't choke on unknown options, it will just issue warnings
4474 # or remarks (even with -Werror). So we grep stderr for any message
4475 # that says an option was ignored or not supported.
4476 # When given -MP, icc 7.0 and 7.1 complain thusly:
4477 # icc: Command line warning: ignoring option '-M'; no argument required
4478 # The diagnosis changed in icc 8.0:
4479 # icc: Command line remark: option '-MP' not supported
4480 if (grep 'ignoring option' conftest.err ||
4481 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4482 am_cv_CC_dependencies_compiler_type=$depmode
4491 am_cv_CC_dependencies_compiler_type=none
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4496 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4497 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4500 test "x$enable_dependency_tracking" != xno \
4501 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4503 am__fastdepCC_FALSE='#'
4505 am__fastdepCC_TRUE='#'
4506 am__fastdepCC_FALSE=
4510 case $ac_cv_prog_cc_stdc in #(
4512 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4515 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4516 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4519 ac_cv_prog_cc_c99=no
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4524 #include <stdbool.h>
4529 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4530 #define debug(...) fprintf (stderr, __VA_ARGS__)
4531 #define showlist(...) puts (#__VA_ARGS__)
4532 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4534 test_varargs_macros (void)
4539 debug ("X = %d\n", x);
4540 showlist (The first, second, and third items.);
4541 report (x>y, "x is %d but y is %d", x, y);
4544 // Check long long types.
4545 #define BIG64 18446744073709551615ull
4546 #define BIG32 4294967295ul
4547 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4549 your preprocessor is broken;
4553 your preprocessor is broken;
4555 static long long int bignum = -9223372036854775807LL;
4556 static unsigned long long int ubignum = BIG64;
4558 struct incomplete_array
4566 const wchar_t *name;
4570 typedef const char *ccp;
4573 test_restrict (ccp restrict text)
4575 // See if C++-style comments work.
4576 // Iterate through items via the restricted pointer.
4577 // Also check for declarations in for loops.
4578 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4583 // Check varargs and va_copy.
4585 test_varargs (const char *format, ...)
4588 va_start (args, format);
4590 va_copy (args_copy, args);
4601 str = va_arg (args_copy, const char *);
4604 number = va_arg (args_copy, int);
4607 fnumber = va_arg (args_copy, double);
4622 _Bool success = false;
4625 if (test_restrict ("String literal") == 0)
4627 char *restrict newvar = "Another string";
4630 test_varargs ("s, d' f .", "string", 65, 34.234);
4631 test_varargs_macros ();
4633 // Check flexible array members.
4634 struct incomplete_array *ia =
4635 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4637 for (int i = 0; i < ia->datasize; ++i)
4638 ia->data[i] = i * 1.234;
4640 // Check named initializers.
4641 struct named_init ni = {
4643 .name = L"Test wide string",
4644 .average = 543.34343,
4649 int dynamic_array[ni.number];
4650 dynamic_array[ni.number - 1] = 543;
4652 // work around unused variable warnings
4653 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4654 || dynamic_array[ni.number - 1] != 543);
4660 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4662 CC="$ac_save_CC $ac_arg"
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_prog_cc_c99=$ac_arg
4666 rm -f core conftest.err conftest.$ac_objext
4667 test "x$ac_cv_prog_cc_c99" != "xno" && break
4669 rm -f conftest.$ac_ext
4674 case "x$ac_cv_prog_cc_c99" in
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4677 $as_echo "none needed" >&6; } ;;
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4680 $as_echo "unsupported" >&6; } ;;
4682 CC="$CC $ac_cv_prog_cc_c99"
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4684 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4686 if test "x$ac_cv_prog_cc_c99" != xno; then :
4687 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4691 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 ac_cv_prog_cc_c89=no
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 #include <sys/types.h>
4701 #include <sys/stat.h>
4702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4703 struct buf { int x; };
4704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4705 static char *e (p, i)
4711 static char *f (char * (*g) (char **, int), char **p, ...)
4716 s = g (p, va_arg (v,int));
4721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4722 function prototypes and stuff, but not '\xHH' hex character constants.
4723 These don't provoke an error unfortunately, instead are silently treated
4724 as 'x'. The following induces an error, until -std is added to get
4725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4726 array size at least. It's necessary to write '\x00'==0 to get something
4727 that's true only with -std. */
4728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4731 inside strings and character constants. */
4733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4735 int test (int i, double x);
4736 struct s1 {int (*f) (int a);};
4737 struct s2 {int (*f) (double a);};
4738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4752 CC="$ac_save_CC $ac_arg"
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_prog_cc_c89=$ac_arg
4756 rm -f core conftest.err conftest.$ac_objext
4757 test "x$ac_cv_prog_cc_c89" != "xno" && break
4759 rm -f conftest.$ac_ext
4764 case "x$ac_cv_prog_cc_c89" in
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4767 $as_echo "none needed" >&6; } ;;
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4770 $as_echo "unsupported" >&6; } ;;
4772 CC="$CC $ac_cv_prog_cc_c89"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4776 if test "x$ac_cv_prog_cc_c89" != xno; then :
4777 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4779 ac_cv_prog_cc_stdc=no
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4786 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4787 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4791 case $ac_cv_prog_cc_stdc in #(
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4794 $as_echo "unsupported" >&6; } ;; #(
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4797 $as_echo "none needed" >&6; } ;; #(
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4800 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4803 if test "x$CC" != xcc; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4805 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4808 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4810 set dummy $CC; ac_cc=`$as_echo "$2" |
4811 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4812 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4813 $as_echo_n "(cached) " >&6
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4826 # Make sure it works both with $CC and with simple cc.
4827 # We do the test twice because some compilers refuse to overwrite an
4828 # existing .o file with -o, though they will create one.
4829 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4831 if { { case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_try") 2>&5
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; } &&
4841 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 $as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_try") 2>&5
4849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4850 test $ac_status = 0; };
4852 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4853 if test "x$CC" != xcc; then
4854 # Test first that cc exists at all.
4855 if { ac_try='cc -c conftest.$ac_ext >&5'
4856 { { case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4861 $as_echo "$ac_try_echo"; } >&5
4862 (eval "$ac_try") 2>&5
4864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865 test $ac_status = 0; }; }; then
4866 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4868 if { { case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4873 $as_echo "$ac_try_echo"; } >&5
4874 (eval "$ac_try") 2>&5
4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; } &&
4878 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4883 $as_echo "$ac_try_echo"; } >&5
4884 (eval "$ac_try") 2>&5
4886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4887 test $ac_status = 0; };
4892 # cc exists but doesn't like -o.
4893 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4898 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4900 rm -f core conftest*
4903 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4905 $as_echo "yes" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4910 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4914 # FIXME: we rely on the cache variable name because
4915 # there is no other way.
4917 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4918 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4919 if test "$am_t" != yes; then
4920 # Losing compiler, so override with the script.
4921 # FIXME: It is wrong to rewrite CC.
4922 # But if we don't then we get into trouble of one sort or another.
4923 # A longer-term fix would be to have automake use am__CC in this case,
4924 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4925 CC="$am_aux_dir/compile $CC"
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4935 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4936 # On Suns, sometimes $CPP names a directory.
4937 if test -n "$CPP" && test -d "$CPP"; then
4940 if test -z "$CPP"; then
4941 if test "${ac_cv_prog_CPP+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4944 # Double quotes because CPP needs to be expanded
4945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4948 for ac_c_preproc_warn_flag in '' yes
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
4952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
4954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4959 # include <limits.h>
4961 # include <assert.h>
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4968 # Broken: fails on valid input.
4971 rm -f conftest.err conftest.$ac_ext
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4977 #include <ac_nonexistent.h>
4979 if ac_fn_c_try_cpp "$LINENO"; then :
4980 # Broken: success on invalid input.
4983 # Passes both tests.
4987 rm -f conftest.err conftest.$ac_ext
4990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991 rm -f conftest.err conftest.$ac_ext
4992 if $ac_preproc_ok; then :
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5005 $as_echo "$CPP" >&6; }
5007 for ac_c_preproc_warn_flag in '' yes
5009 # Use a header file that comes with gcc, so configuring glibc
5010 # with a fresh cross-compiler works.
5011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5012 # <limits.h> exists even on freestanding compilers.
5013 # On the NeXT, cc -E runs the code through the compiler's parser,
5014 # not just through cpp. "Syntax error" is here to catch this case.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5018 # include <limits.h>
5020 # include <assert.h>
5024 if ac_fn_c_try_cpp "$LINENO"; then :
5027 # Broken: fails on valid input.
5030 rm -f conftest.err conftest.$ac_ext
5032 # OK, works on sane cases. Now check whether nonexistent headers
5033 # can be detected and how.
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 #include <ac_nonexistent.h>
5038 if ac_fn_c_try_cpp "$LINENO"; then :
5039 # Broken: success on invalid input.
5042 # Passes both tests.
5046 rm -f conftest.err conftest.$ac_ext
5049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5050 rm -f conftest.err conftest.$ac_ext
5051 if $ac_preproc_ok; then :
5054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5056 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5057 See \`config.log' for more details." "$LINENO" 5; }
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5068 set dummy ${ac_tool_prefix}nm; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_prog_NM+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5074 if test -n "$NM"; then
5075 ac_cv_prog_NM="$NM" # Let the user override the test.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_NM="${ac_tool_prefix}nm"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 if test -n "$NM"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5097 $as_echo "$NM" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5105 if test -z "$ac_cv_prog_NM"; then
5107 # Extract the first word of "nm", so it can be a program name with args.
5108 set dummy nm; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5114 if test -n "$ac_ct_NM"; then
5115 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_ac_ct_NM="nm"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5135 if test -n "$ac_ct_NM"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5137 $as_echo "$ac_ct_NM" >&6; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5143 if test "x$ac_ct_NM" = x; then
5146 case $cross_compiling:$ac_tool_warned in
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5159 $as_echo_n "checking whether ln -s works... " >&6; }
5161 if test "$LN_S" = "ln -s"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5163 $as_echo "yes" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5166 $as_echo "no, using $LN_S" >&6; }
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5177 if test -n "$RANLIB"; then
5178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 RANLIB=$ac_cv_prog_RANLIB
5198 if test -n "$RANLIB"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5200 $as_echo "$RANLIB" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5208 if test -z "$ac_cv_prog_RANLIB"; then
5209 ac_ct_RANLIB=$RANLIB
5210 # Extract the first word of "ranlib", so it can be a program name with args.
5211 set dummy ranlib; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$ac_ct_RANLIB"; then
5218 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_RANLIB="ranlib"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5238 if test -n "$ac_ct_RANLIB"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5240 $as_echo "$ac_ct_RANLIB" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5246 if test "x$ac_ct_RANLIB" = x; then
5249 case $cross_compiling:$ac_tool_warned in
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5255 RANLIB=$ac_ct_RANLIB
5258 RANLIB="$ac_cv_prog_RANLIB"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compliant shell" >&5
5262 $as_echo_n "checking for a POSIX-compliant shell... " >&6; }
5263 if test "${ac_cv_path_shell+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5267 # Test the noclobber option, using the portable POSIX.2 syntax.
5271 >|conftest.c || exit
5272 !>conftest.c || exit
5273 # Test that $(...) works.
5274 test "$(expr 3 + 4)" -eq 7 || exit
5281 if ("$SHELL" -c "$ac_command") 2>/dev/null; then
5282 ac_cv_path_shell=$SHELL
5286 case $ac_cv_path_shell in
5288 # Prefer shells that are more likely to be installed in the
5289 # same place on all hosts of this platform. Therefore, prefer
5290 # shells in /bin and /usr/bin to shells in the installer's
5291 # PATH. Also, loop through PATH first and then through
5292 # shells, since less-"nice" shells in /bin and /usr/bin are
5293 # more likely to be installed than "nicer" shells elsewhere.
5294 as_save_IFS=$IFS; IFS=:
5295 for as_dir in /bin /usr/bin $PATH
5300 for ac_base in sh bash ksh sh5; do
5302 if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
5303 ac_cv_path_shell=$as_dir/$ac_base
5307 case $ac_cv_path_shell in
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_shell" >&5
5317 $as_echo "$ac_cv_path_shell" >&6; }
5318 SHELL=$ac_cv_path_shell
5319 if test "$SHELL" = no; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
5322 $as_echo "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
5326 # Make sure we can run config.sub.
5327 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5328 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5331 $as_echo_n "checking build system type... " >&6; }
5332 if test "${ac_cv_build+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5335 ac_build_alias=$build_alias
5336 test "x$ac_build_alias" = x &&
5337 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5338 test "x$ac_build_alias" = x &&
5339 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5340 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5341 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5345 $as_echo "$ac_cv_build" >&6; }
5346 case $ac_cv_build in
5348 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5351 ac_save_IFS=$IFS; IFS='-'
5357 # Remember, the first character of IFS is used to create $*,
5358 # except with old shells:
5361 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5365 $as_echo_n "checking host system type... " >&6; }
5366 if test "${ac_cv_host+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5369 if test "x$host_alias" = x; then
5370 ac_cv_host=$ac_cv_build
5372 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5373 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5378 $as_echo "$ac_cv_host" >&6; }
5381 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5384 ac_save_IFS=$IFS; IFS='-'
5390 # Remember, the first character of IFS is used to create $*,
5391 # except with old shells:
5394 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5400 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5401 if test "${ac_cv_path_GREP+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5404 if test -z "$GREP"; then
5405 ac_path_GREP_found=false
5406 # Loop through the user's path and test for each of PROGNAME-LIST
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5411 test -z "$as_dir" && as_dir=.
5412 for ac_prog in grep ggrep; do
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5415 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5416 # Check for GNU ac_path_GREP and select it if it is found.
5417 # Check for GNU $ac_path_GREP
5418 case `"$ac_path_GREP" --version 2>&1` in
5420 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5423 $as_echo_n 0123456789 >"conftest.in"
5426 cat "conftest.in" "conftest.in" >"conftest.tmp"
5427 mv "conftest.tmp" "conftest.in"
5428 cp "conftest.in" "conftest.nl"
5429 $as_echo 'GREP' >> "conftest.nl"
5430 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5432 as_fn_arith $ac_count + 1 && ac_count=$as_val
5433 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5434 # Best one so far, save it but keep looking for a better one
5435 ac_cv_path_GREP="$ac_path_GREP"
5436 ac_path_GREP_max=$ac_count
5438 # 10*(2^10) chars as input seems more than enough
5439 test $ac_count -gt 10 && break
5441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5444 $ac_path_GREP_found && break 3
5449 if test -z "$ac_cv_path_GREP"; then
5450 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5453 ac_cv_path_GREP=$GREP
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5458 $as_echo "$ac_cv_path_GREP" >&6; }
5459 GREP="$ac_cv_path_GREP"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5463 $as_echo_n "checking for egrep... " >&6; }
5464 if test "${ac_cv_path_EGREP+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5467 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5468 then ac_cv_path_EGREP="$GREP -E"
5470 if test -z "$EGREP"; then
5471 ac_path_EGREP_found=false
5472 # Loop through the user's path and test for each of PROGNAME-LIST
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5477 test -z "$as_dir" && as_dir=.
5478 for ac_prog in egrep; do
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5481 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5482 # Check for GNU ac_path_EGREP and select it if it is found.
5483 # Check for GNU $ac_path_EGREP
5484 case `"$ac_path_EGREP" --version 2>&1` in
5486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5489 $as_echo_n 0123456789 >"conftest.in"
5492 cat "conftest.in" "conftest.in" >"conftest.tmp"
5493 mv "conftest.tmp" "conftest.in"
5494 cp "conftest.in" "conftest.nl"
5495 $as_echo 'EGREP' >> "conftest.nl"
5496 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498 as_fn_arith $ac_count + 1 && ac_count=$as_val
5499 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5500 # Best one so far, save it but keep looking for a better one
5501 ac_cv_path_EGREP="$ac_path_EGREP"
5502 ac_path_EGREP_max=$ac_count
5504 # 10*(2^10) chars as input seems more than enough
5505 test $ac_count -gt 10 && break
5507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5510 $ac_path_EGREP_found && break 3
5515 if test -z "$ac_cv_path_EGREP"; then
5516 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5519 ac_cv_path_EGREP=$EGREP
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5525 $as_echo "$ac_cv_path_EGREP" >&6; }
5526 EGREP="$ac_cv_path_EGREP"
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5530 $as_echo_n "checking for ANSI C header files... " >&6; }
5531 if test "${ac_cv_header_stdc+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550 ac_cv_header_stdc=yes
5552 ac_cv_header_stdc=no
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 if test $ac_cv_header_stdc = yes; then
5557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5564 $EGREP "memchr" >/dev/null 2>&1; then :
5567 ac_cv_header_stdc=no
5573 if test $ac_cv_header_stdc = yes; then
5574 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 $EGREP "free" >/dev/null 2>&1; then :
5584 ac_cv_header_stdc=no
5590 if test $ac_cv_header_stdc = yes; then
5591 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5592 if test "$cross_compiling" = yes; then :
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5599 #if ((' ' & 0x0FF) == 0x020)
5600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5603 # define ISLOWER(c) \
5604 (('a' <= (c) && (c) <= 'i') \
5605 || ('j' <= (c) && (c) <= 'r') \
5606 || ('s' <= (c) && (c) <= 'z'))
5607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5615 for (i = 0; i < 256; i++)
5616 if (XOR (islower (i), ISLOWER (i))
5617 || toupper (i) != TOUPPER (i))
5622 if ac_fn_c_try_run "$LINENO"; then :
5625 ac_cv_header_stdc=no
5627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5628 conftest.$ac_objext conftest.beam conftest.$ac_ext
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5634 $as_echo "$ac_cv_header_stdc" >&6; }
5635 if test $ac_cv_header_stdc = yes; then
5637 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5641 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5642 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5643 inttypes.h stdint.h unistd.h
5645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5646 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5648 eval as_val=\$$as_ac_Header
5649 if test "x$as_val" = x""yes; then :
5650 cat >>confdefs.h <<_ACEOF
5651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5662 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5663 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5670 if test "$MINIX" = yes; then
5672 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5675 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5678 $as_echo "#define _MINIX 1" >>confdefs.h
5685 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5692 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5693 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5699 # define __EXTENSIONS__ 1
5700 $ac_includes_default
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710 ac_cv_safe_to_define___extensions__=yes
5712 ac_cv_safe_to_define___extensions__=no
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5717 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5718 test $ac_cv_safe_to_define___extensions__ = yes &&
5719 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5721 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5723 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5725 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5727 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5737 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_largefile_source+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #include <sys/types.h> /* for off_t */
5749 int (*fp) (FILE *, off_t, int) = fseeko;
5750 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5755 if ac_fn_c_try_link "$LINENO"; then :
5756 ac_cv_sys_largefile_source=no; break
5758 rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext conftest.$ac_ext
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 #define _LARGEFILE_SOURCE 1
5763 #include <sys/types.h> /* for off_t */
5768 int (*fp) (FILE *, off_t, int) = fseeko;
5769 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5774 if ac_fn_c_try_link "$LINENO"; then :
5775 ac_cv_sys_largefile_source=1; break
5777 rm -f core conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779 ac_cv_sys_largefile_source=unknown
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5784 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5785 case $ac_cv_sys_largefile_source in #(
5788 cat >>confdefs.h <<_ACEOF
5789 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5795 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5796 # in glibc 2.1.3, but that breaks too many other things.
5797 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5798 if test $ac_cv_sys_largefile_source != unknown; then
5800 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
5807 # IEEE behaviour is the default on all CPUs except Alpha and SH
5808 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5809 # and the GCC 4.1.2 manual).
5812 # On Alpha systems, a compiler option provides the behaviour.
5813 # See the ieee(3) manual page, also available at
5814 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5815 if test -n "$GCC"; then
5816 # GCC has the option -mieee.
5817 CPPFLAGS="$CPPFLAGS -mieee"
5819 # Compaq (ex-DEC) C has the option -ieee.
5820 CPPFLAGS="$CPPFLAGS -ieee"
5824 if test -n "$GCC"; then
5825 # GCC has the option -mieee.
5826 CPPFLAGS="$CPPFLAGS -mieee"
5839 # Check whether --enable-largefile was given.
5840 if test "${enable_largefile+set}" = set; then :
5841 enableval=$enable_largefile;
5844 if test "$enable_largefile" != no; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5847 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5848 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5849 $as_echo_n "(cached) " >&6
5851 ac_cv_sys_largefile_CC=no
5852 if test "$GCC" != yes; then
5855 # IRIX 6.2 and later do not support large files by default,
5856 # so use the C compiler's -n32 option if that helps.
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #include <sys/types.h>
5860 /* Check that off_t can represent 2**63 - 1 correctly.
5861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5862 since some C++ compilers masquerading as C compilers
5863 incorrectly reject 9223372036854775807. */
5864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5866 && LARGE_OFF_T % 2147483647 == 1)
5876 if ac_fn_c_try_compile "$LINENO"; then :
5879 rm -f core conftest.err conftest.$ac_objext
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 ac_cv_sys_largefile_CC=' -n32'; break
5884 rm -f core conftest.err conftest.$ac_objext
5888 rm -f conftest.$ac_ext
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5892 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5893 if test "$ac_cv_sys_largefile_CC" != no; then
5894 CC=$CC$ac_cv_sys_largefile_CC
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5898 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5899 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5900 $as_echo_n "(cached) " >&6
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #include <sys/types.h>
5906 /* Check that off_t can represent 2**63 - 1 correctly.
5907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5908 since some C++ compilers masquerading as C compilers
5909 incorrectly reject 9223372036854775807. */
5910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5912 && LARGE_OFF_T % 2147483647 == 1)
5922 if ac_fn_c_try_compile "$LINENO"; then :
5923 ac_cv_sys_file_offset_bits=no; break
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 #define _FILE_OFFSET_BITS 64
5929 #include <sys/types.h>
5930 /* Check that off_t can represent 2**63 - 1 correctly.
5931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5932 since some C++ compilers masquerading as C compilers
5933 incorrectly reject 9223372036854775807. */
5934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5936 && LARGE_OFF_T % 2147483647 == 1)
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947 ac_cv_sys_file_offset_bits=64; break
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 ac_cv_sys_file_offset_bits=unknown
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5955 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5956 case $ac_cv_sys_file_offset_bits in #(
5959 cat >>confdefs.h <<_ACEOF
5960 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5965 if test $ac_cv_sys_file_offset_bits = unknown; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5967 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5968 if test "${ac_cv_sys_large_files+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5974 #include <sys/types.h>
5975 /* Check that off_t can represent 2**63 - 1 correctly.
5976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5977 since some C++ compilers masquerading as C compilers
5978 incorrectly reject 9223372036854775807. */
5979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5981 && LARGE_OFF_T % 2147483647 == 1)
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 ac_cv_sys_large_files=no; break
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 #define _LARGE_FILES 1
5998 #include <sys/types.h>
5999 /* Check that off_t can represent 2**63 - 1 correctly.
6000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6001 since some C++ compilers masquerading as C compilers
6002 incorrectly reject 9223372036854775807. */
6003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6005 && LARGE_OFF_T % 2147483647 == 1)
6015 if ac_fn_c_try_compile "$LINENO"; then :
6016 ac_cv_sys_large_files=1; break
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 ac_cv_sys_large_files=unknown
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6024 $as_echo "$ac_cv_sys_large_files" >&6; }
6025 case $ac_cv_sys_large_files in #(
6028 cat >>confdefs.h <<_ACEOF
6029 #define _LARGE_FILES $ac_cv_sys_large_files
6043 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6044 # for constant arguments. Useless!
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6046 $as_echo_n "checking for working alloca.h... " >&6; }
6047 if test "${ac_cv_working_alloca_h+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6056 char *p = (char *) alloca (2 * sizeof (int));
6062 if ac_fn_c_try_link "$LINENO"; then :
6063 ac_cv_working_alloca_h=yes
6065 ac_cv_working_alloca_h=no
6067 rm -f core conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6071 $as_echo "$ac_cv_working_alloca_h" >&6; }
6072 if test $ac_cv_working_alloca_h = yes; then
6074 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6079 $as_echo_n "checking for alloca... " >&6; }
6080 if test "${ac_cv_func_alloca_works+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6086 # define alloca __builtin_alloca
6089 # include <malloc.h>
6090 # define alloca _alloca
6092 # ifdef HAVE_ALLOCA_H
6093 # include <alloca.h>
6098 # ifndef alloca /* predefined by HP cc +Olibcalls */
6109 char *p = (char *) alloca (1);
6115 if ac_fn_c_try_link "$LINENO"; then :
6116 ac_cv_func_alloca_works=yes
6118 ac_cv_func_alloca_works=no
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6124 $as_echo "$ac_cv_func_alloca_works" >&6; }
6126 if test $ac_cv_func_alloca_works = yes; then
6128 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6132 # that cause trouble. Some versions do not even contain alloca or
6133 # contain a buggy version. If you still want to use their alloca,
6134 # use ar to extract alloca.o from them instead of compiling alloca.c.
6140 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6142 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6146 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6147 if test "${ac_cv_os_cray+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6152 #if defined CRAY && ! defined CRAY2
6159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6160 $EGREP "webecray" >/dev/null 2>&1; then :
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6169 $as_echo "$ac_cv_os_cray" >&6; }
6170 if test $ac_cv_os_cray = yes; then
6171 for ac_func in _getb67 GETB67 getb67; do
6172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6174 eval as_val=\$$as_ac_var
6175 if test "x$as_val" = x""yes; then :
6177 cat >>confdefs.h <<_ACEOF
6178 #define CRAY_STACKSEG_END $ac_func
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6188 $as_echo_n "checking stack direction for C alloca... " >&6; }
6189 if test "${ac_cv_c_stack_direction+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6192 if test "$cross_compiling" = yes; then :
6193 ac_cv_c_stack_direction=0
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 $ac_includes_default
6199 find_stack_direction ()
6201 static char *addr = 0;
6206 return find_stack_direction ();
6209 return (&dummy > addr) ? 1 : -1;
6215 return find_stack_direction () < 0;
6218 if ac_fn_c_try_run "$LINENO"; then :
6219 ac_cv_c_stack_direction=1
6221 ac_cv_c_stack_direction=-1
6223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6224 conftest.$ac_objext conftest.beam conftest.$ac_ext
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6229 $as_echo "$ac_cv_c_stack_direction" >&6; }
6230 cat >>confdefs.h <<_ACEOF
6231 #define STACK_DIRECTION $ac_cv_c_stack_direction
6237 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_size_t" = x""yes; then :
6242 cat >>confdefs.h <<_ACEOF
6243 #define size_t unsigned int
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
6250 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
6251 if test "${gl_cv_func_malloc_posix+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6261 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6269 if ac_fn_c_try_compile "$LINENO"; then :
6270 gl_cv_func_malloc_posix=yes
6272 gl_cv_func_malloc_posix=no
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
6278 $as_echo "$gl_cv_func_malloc_posix" >&6; }
6282 GNULIB_CALLOC_POSIX=0;
6283 GNULIB_CANONICALIZE_FILE_NAME=0;
6284 GNULIB_GETLOADAVG=0;
6286 GNULIB_MALLOC_POSIX=0;
6292 GNULIB_REALLOC_POSIX=0;
6301 HAVE_CALLOC_POSIX=1;
6302 HAVE_CANONICALIZE_FILE_NAME=1;
6303 HAVE_DECL_GETLOADAVG=1;
6305 HAVE_MALLOC_POSIX=1;
6309 HAVE_REALLOC_POSIX=1;
6316 HAVE_STRUCT_RANDOM_DATA=1;
6317 HAVE_SYS_LOADAVG_H=0;
6319 REPLACE_CANONICALIZE_FILE_NAME=0;
6332 GNULIB_EUIDACCESS=0;
6339 GNULIB_GETDOMAINNAME=0;
6340 GNULIB_GETDTABLESIZE=0;
6341 GNULIB_GETHOSTNAME=0;
6342 GNULIB_GETLOGIN_R=0;
6343 GNULIB_GETPAGESIZE=0;
6344 GNULIB_GETUSERSHELL=0;
6351 GNULIB_READLINKAT=0;
6356 GNULIB_UNISTD_H_GETOPT=0;
6357 GNULIB_UNISTD_H_SIGPIPE=0;
6368 HAVE_GETDOMAINNAME=1;
6369 HAVE_GETDTABLESIZE=1;
6372 HAVE_GETUSERSHELL=1;
6381 HAVE_DECL_ENVIRON=1;
6382 HAVE_DECL_GETLOGIN_R=1;
6393 REPLACE_GETPAGESIZE=0;
6404 UNISTD_H_HAVE_WINSOCK2_H=0;
6405 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6411 for ac_func in $ac_func_list
6413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6414 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6415 eval as_val=\$$as_ac_var
6416 if test "x$as_val" = x""yes; then :
6417 cat >>confdefs.h <<_ACEOF
6418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6429 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6430 if test "${gl_cv_have_include_next+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6433 rm -rf conftestd1a conftestd1b conftestd2
6434 mkdir conftestd1a conftestd1b conftestd2
6435 cat <<EOF > conftestd1a/conftest.h
6436 #define DEFINED_IN_CONFTESTD1
6437 #include_next <conftest.h>
6438 #ifdef DEFINED_IN_CONFTESTD2
6441 #error "include_next doesn't work"
6444 cat <<EOF > conftestd1b/conftest.h
6445 #define DEFINED_IN_CONFTESTD1
6447 #include_next <conftest.h>
6448 #ifdef DEFINED_IN_CONFTESTD2
6451 #error "include_next doesn't work"
6454 cat <<EOF > conftestd2/conftest.h
6455 #ifndef DEFINED_IN_CONFTESTD1
6456 #error "include_next test doesn't work"
6458 #define DEFINED_IN_CONFTESTD2
6460 gl_save_CPPFLAGS="$CPPFLAGS"
6461 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <conftest.h>
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467 gl_cv_have_include_next=yes
6469 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6472 #include <conftest.h>
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 gl_cv_have_include_next=buggy
6477 gl_cv_have_include_next=no
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 CPPFLAGS="$gl_save_CPPFLAGS"
6484 rm -rf conftestd1a conftestd1b conftestd2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6488 $as_echo "$gl_cv_have_include_next" >&6; }
6489 PRAGMA_SYSTEM_HEADER=
6490 if test $gl_cv_have_include_next = yes; then
6491 INCLUDE_NEXT=include_next
6492 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6493 if test -n "$GCC"; then
6494 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6497 if test $gl_cv_have_include_next = buggy; then
6498 INCLUDE_NEXT=include
6499 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6501 INCLUDE_NEXT=include
6502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6512 for ac_header in $ac_header_list
6514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6515 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6517 eval as_val=\$$as_ac_Header
6518 if test "x$as_val" = x""yes; then :
6519 cat >>confdefs.h <<_ACEOF
6520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6532 $as_echo_n "checking for complete errno.h... " >&6; }
6533 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6547 #if !defined ENOLINK
6553 #if !defined EMULTIHOP
6556 #if !defined EBADMSG
6559 #if !defined EOVERFLOW
6562 #if !defined ENOTSUP
6568 #if !defined ECANCELED
6573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6574 $EGREP "booboo" >/dev/null 2>&1; then :
6575 gl_cv_header_errno_h_complete=no
6577 gl_cv_header_errno_h_complete=yes
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6584 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6585 if test $gl_cv_header_errno_h_complete = yes; then
6594 if test $gl_cv_have_include_next = yes; then
6595 gl_cv_next_errno_h='<'errno.h'>'
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6598 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6599 if test "${gl_cv_next_errno_h+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6603 if test $ac_cv_header_errno_h = yes; then
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6610 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6611 *) gl_absname_cpp="$ac_cpp" ;;
6613 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6614 sed -n '\#/errno.h#{
6615 s#.*"\(.*/errno.h\)".*#\1#
6621 gl_cv_next_errno_h='<'errno.h'>'
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6626 $as_echo "$gl_cv_next_errno_h" >&6; }
6628 NEXT_ERRNO_H=$gl_cv_next_errno_h
6630 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6632 gl_next_as_first_directive='<'errno.h'>'
6634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6635 gl_next_as_first_directive=$gl_cv_next_errno_h
6637 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6645 if test -n "$ERRNO_H"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6647 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6648 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6662 $EGREP "yes" >/dev/null 2>&1; then :
6663 gl_cv_header_errno_h_EMULTIHOP=yes
6665 gl_cv_header_errno_h_EMULTIHOP=no
6669 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6673 #define _XOPEN_SOURCE_EXTENDED 1
6680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681 $EGREP "yes" >/dev/null 2>&1; then :
6682 gl_cv_header_errno_h_EMULTIHOP=hidden
6686 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6687 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6688 #define _XOPEN_SOURCE_EXTENDED 1
6690 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6702 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6703 case $gl_cv_header_errno_h_EMULTIHOP in
6705 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6708 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6716 if test -n "$ERRNO_H"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6718 $as_echo_n "checking for ENOLINK value... " >&6; }
6719 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6733 $EGREP "yes" >/dev/null 2>&1; then :
6734 gl_cv_header_errno_h_ENOLINK=yes
6736 gl_cv_header_errno_h_ENOLINK=no
6740 if test $gl_cv_header_errno_h_ENOLINK = no; then
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6744 #define _XOPEN_SOURCE_EXTENDED 1
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "yes" >/dev/null 2>&1; then :
6753 gl_cv_header_errno_h_ENOLINK=hidden
6757 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6758 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6759 #define _XOPEN_SOURCE_EXTENDED 1
6761 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6773 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6774 case $gl_cv_header_errno_h_ENOLINK in
6776 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6779 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6787 if test -n "$ERRNO_H"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6789 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6790 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h. */
6803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6804 $EGREP "yes" >/dev/null 2>&1; then :
6805 gl_cv_header_errno_h_EOVERFLOW=yes
6807 gl_cv_header_errno_h_EOVERFLOW=no
6811 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6815 #define _XOPEN_SOURCE_EXTENDED 1
6822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6823 $EGREP "yes" >/dev/null 2>&1; then :
6824 gl_cv_header_errno_h_EOVERFLOW=hidden
6828 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6829 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6830 #define _XOPEN_SOURCE_EXTENDED 1
6832 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6844 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6845 case $gl_cv_header_errno_h_EOVERFLOW in
6847 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6850 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6858 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
6859 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
6865 cat >>confdefs.h <<_ACEOF
6866 #define HAVE_DECL_STRERROR_R $ac_have_decl
6869 for ac_func in strerror_r
6871 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
6872 if test "x$ac_cv_func_strerror_r" = x""yes; then :
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_STRERROR_R 1
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
6881 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
6882 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6886 ac_cv_func_strerror_r_char_p=no
6887 if test $ac_cv_have_decl_strerror_r = yes; then
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 $ac_includes_default
6896 char x = *strerror_r (0, buf, sizeof buf);
6897 char *p = strerror_r (0, buf, sizeof buf);
6904 if ac_fn_c_try_compile "$LINENO"; then :
6905 ac_cv_func_strerror_r_char_p=yes
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 # strerror_r is not declared. Choose between
6910 # systems that have relatively inaccessible declarations for the
6911 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
6912 # former has a strerror_r that returns char*, while the latter
6913 # has a strerror_r that returns `int'.
6914 # This test should segfault on the DEC system.
6915 if test "$cross_compiling" = yes; then :
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 $ac_includes_default
6921 extern char *strerror_r ();
6926 char x = *strerror_r (0, buf, sizeof buf);
6927 return ! isalpha (x);
6932 if ac_fn_c_try_run "$LINENO"; then :
6933 ac_cv_func_strerror_r_char_p=yes
6935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6936 conftest.$ac_objext conftest.beam conftest.$ac_ext
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
6943 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
6944 if test $ac_cv_func_strerror_r_char_p = yes; then
6946 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
6951 XGETTEXT_EXTRA_OPTIONS=
6959 GNULIB_FPRINTF_POSIX=0;
6971 GNULIB_OBSTACK_PRINTF=0;
6972 GNULIB_OBSTACK_PRINTF_POSIX=0;
6976 GNULIB_PRINTF_POSIX=0;
6984 GNULIB_SPRINTF_POSIX=0;
6985 GNULIB_STDIO_H_SIGPIPE=0;
6989 GNULIB_VFPRINTF_POSIX=0;
6991 GNULIB_VPRINTF_POSIX=0;
6993 GNULIB_VSPRINTF_POSIX=0;
6995 HAVE_DECL_GETDELIM=1;
6996 HAVE_DECL_GETLINE=1;
6997 HAVE_DECL_OBSTACK_PRINTF=1;
6998 HAVE_DECL_SNPRINTF=1;
6999 HAVE_DECL_VSNPRINTF=1;
7018 REPLACE_OBSTACK_PRINTF=0;
7027 REPLACE_STDIO_WRITE_FUNCS=0;
7028 REPLACE_VASPRINTF=0;
7032 REPLACE_VSNPRINTF=0;
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7045 $as_echo_n "checking for working fcntl.h... " >&6; }
7046 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7049 if test "$cross_compiling" = yes; then :
7050 gl_cv_header_working_fcntl_h=cross-compiling
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 #include <sys/types.h>
7055 #include <sys/stat.h>
7062 #define O_NOFOLLOW 0
7064 static int const constants[] =
7066 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7067 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7074 int status = !constants;
7076 static char const sym[] = "conftest.sym";
7077 if (symlink (".", sym) != 0
7078 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
7083 static char const file[] = "confdefs.h";
7084 int fd = open (file, O_RDONLY | O_NOATIME);
7086 struct stat st0, st1;
7088 || fstat (fd, &st0) != 0
7090 || read (fd, &c, 1) != 1
7092 || stat (file, &st1) != 0
7093 || st0.st_atime != st1.st_atime)
7101 if ac_fn_c_try_run "$LINENO"; then :
7102 gl_cv_header_working_fcntl_h=yes
7105 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7106 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7107 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7108 *) gl_cv_header_working_fcntl_h='no';;
7111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7112 conftest.$ac_objext conftest.beam conftest.$ac_ext
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7117 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7119 case $gl_cv_header_working_fcntl_h in #(
7120 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7124 cat >>confdefs.h <<_ACEOF
7125 #define HAVE_WORKING_O_NOATIME $ac_val
7129 case $gl_cv_header_working_fcntl_h in #(
7130 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7134 cat >>confdefs.h <<_ACEOF
7135 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7141 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7142 if test "x$ac_cv_type_mode_t" = x""yes; then :
7146 cat >>confdefs.h <<_ACEOF
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
7155 $as_echo_n "checking for promoted mode_t type... " >&6; }
7156 if test "${gl_cv_promoted_mode_t+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #include <sys/types.h>
7166 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 gl_cv_promoted_mode_t='int'
7174 gl_cv_promoted_mode_t='mode_t'
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
7180 $as_echo "$gl_cv_promoted_mode_t" >&6; }
7182 cat >>confdefs.h <<_ACEOF
7183 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7188 $as_echo_n "checking for inline... " >&6; }
7189 if test "${ac_cv_c_inline+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7193 for ac_kw in inline __inline__ __inline; do
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7198 static $ac_kw foo_t static_foo () {return 0; }
7199 $ac_kw foo_t foo () {return 0; }
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 ac_cv_c_inline=$ac_kw
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 test "$ac_cv_c_inline" != no && break
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7212 $as_echo "$ac_cv_c_inline" >&6; }
7214 case $ac_cv_c_inline in
7217 case $ac_cv_c_inline in
7219 *) ac_val=$ac_cv_c_inline;;
7221 cat >>confdefs.h <<_ACEOF
7223 #define inline $ac_val
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7237 $as_echo_n "checking for stdint.h... " >&6; }
7238 if test "${gl_cv_header_stdint_h+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 #include <sys/types.h>
7248 uintmax_t i = (uintmax_t) -1; return !i;
7253 if ac_fn_c_try_compile "$LINENO"; then :
7254 gl_cv_header_stdint_h=yes
7256 gl_cv_header_stdint_h=no
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7261 $as_echo "$gl_cv_header_stdint_h" >&6; }
7262 if test $gl_cv_header_stdint_h = yes; then
7264 cat >>confdefs.h <<_ACEOF
7265 #define HAVE_STDINT_H_WITH_UINTMAX 1
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7272 $as_echo_n "checking for inttypes.h... " >&6; }
7273 if test "${gl_cv_header_inttypes_h+set}" = set; then :
7274 $as_echo_n "(cached) " >&6
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278 #include <sys/types.h>
7279 #include <inttypes.h>
7283 uintmax_t i = (uintmax_t) -1; return !i;
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289 gl_cv_header_inttypes_h=yes
7291 gl_cv_header_inttypes_h=no
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7296 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7297 if test $gl_cv_header_inttypes_h = yes; then
7299 cat >>confdefs.h <<_ACEOF
7300 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
7310 $as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
7311 if test "${gl_cv_func_printf_sizes_c99+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7315 if test "$cross_compiling" = yes; then :
7318 # Guess yes on glibc systems.
7319 *-gnu*) gl_cv_func_printf_sizes_c99="guessing yes";;
7320 # Guess yes on FreeBSD >= 5.
7321 freebsd[1-4]*) gl_cv_func_printf_sizes_c99="guessing no";;
7322 freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7323 # Guess yes on MacOS X >= 10.3.
7324 darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";;
7325 darwin*) gl_cv_func_printf_sizes_c99="guessing yes";;
7326 # Guess yes on OpenBSD >= 3.9.
7327 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
7328 gl_cv_func_printf_sizes_c99="guessing no";;
7329 openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7330 # Guess yes on Solaris >= 2.10.
7331 solaris2.[0-9]*) gl_cv_func_printf_sizes_c99="guessing no";;
7332 solaris*) gl_cv_func_printf_sizes_c99="guessing yes";;
7333 # Guess yes on NetBSD >= 3.
7334 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7335 gl_cv_func_printf_sizes_c99="guessing no";;
7336 netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7337 # If we don't know, assume the worst.
7338 *) gl_cv_func_printf_sizes_c99="guessing no";;
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7348 #include <sys/types.h>
7349 #if HAVE_STDINT_H_WITH_UINTMAX
7350 # include <stdint.h>
7352 #if HAVE_INTTYPES_H_WITH_UINTMAX
7353 # include <inttypes.h>
7355 static char buf[100];
7358 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
7360 if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
7361 || strcmp (buf, "12345671 33") != 0)
7365 if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
7366 || strcmp (buf, "12345672 33") != 0)
7369 if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
7370 || strcmp (buf, "12345673 33") != 0)
7373 if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
7374 || strcmp (buf, "1.5 33") != 0)
7379 if ac_fn_c_try_run "$LINENO"; then :
7380 gl_cv_func_printf_sizes_c99=yes
7382 gl_cv_func_printf_sizes_c99=no
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385 conftest.$ac_objext conftest.beam conftest.$ac_ext
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
7391 $as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
7396 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
7397 if test "${gl_cv_func_printf_long_double+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7401 if test "$cross_compiling" = yes; then :
7404 beos*) gl_cv_func_printf_long_double="guessing no";;
7405 mingw* | pw*) gl_cv_func_printf_long_double="guessing no";;
7406 *) gl_cv_func_printf_long_double="guessing yes";;
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7415 static char buf[10000];
7419 if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
7420 || strcmp (buf, "1.750000 33") != 0)
7423 if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
7424 || strcmp (buf, "1.750000e+00 33") != 0)
7427 if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
7428 || strcmp (buf, "1.75 33") != 0)
7433 if ac_fn_c_try_run "$LINENO"; then :
7434 gl_cv_func_printf_long_double=yes
7436 gl_cv_func_printf_long_double=no
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7439 conftest.$ac_objext conftest.beam conftest.$ac_ext
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
7445 $as_echo "$gl_cv_func_printf_long_double" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
7450 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
7451 if test "${gl_cv_func_printf_infinite+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7455 if test "$cross_compiling" = yes; then :
7458 # Guess yes on glibc systems.
7459 *-gnu*) gl_cv_func_printf_infinite="guessing yes";;
7460 # Guess yes on FreeBSD >= 6.
7461 freebsd[1-5]*) gl_cv_func_printf_infinite="guessing no";;
7462 freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
7463 # Guess yes on MacOS X >= 10.3.
7464 darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";;
7465 darwin*) gl_cv_func_printf_infinite="guessing yes";;
7466 # Guess yes on HP-UX >= 11.
7467 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
7468 hpux*) gl_cv_func_printf_infinite="guessing yes";;
7469 # Guess yes on NetBSD >= 3.
7470 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7471 gl_cv_func_printf_infinite="guessing no";;
7472 netbsd*) gl_cv_func_printf_infinite="guessing yes";;
7473 # Guess yes on BeOS.
7474 beos*) gl_cv_func_printf_infinite="guessing yes";;
7475 # If we don't know, assume the worst.
7476 *) gl_cv_func_printf_infinite="guessing no";;
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7486 strisnan (const char *string, size_t start_index, size_t end_index)
7488 if (start_index < end_index)
7490 if (string[start_index] == '-')
7492 if (start_index + 3 <= end_index
7493 && memcmp (string + start_index, "nan", 3) == 0)
7496 if (start_index == end_index
7497 || (string[start_index] == '(' && string[end_index - 1] == ')'))
7506 static double plus_zero = 0.0;
7507 double minus_zero = - plus_zero;
7508 return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
7510 static char buf[10000];
7511 static double zero = 0.0;
7514 if (sprintf (buf, "%f", 1.0 / 0.0) < 0
7515 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7517 if (sprintf (buf, "%f", -1.0 / 0.0) < 0
7518 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7520 if (sprintf (buf, "%f", zero / zero) < 0
7521 || !strisnan (buf, 0, strlen (buf)))
7523 if (sprintf (buf, "%e", 1.0 / 0.0) < 0
7524 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7526 if (sprintf (buf, "%e", -1.0 / 0.0) < 0
7527 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7529 if (sprintf (buf, "%e", zero / zero) < 0
7530 || !strisnan (buf, 0, strlen (buf)))
7532 if (sprintf (buf, "%g", 1.0 / 0.0) < 0
7533 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7535 if (sprintf (buf, "%g", -1.0 / 0.0) < 0
7536 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7538 if (sprintf (buf, "%g", zero / zero) < 0
7539 || !strisnan (buf, 0, strlen (buf)))
7541 /* This test fails on HP-UX 10.20. */
7542 if (have_minus_zero ())
7543 if (sprintf (buf, "%g", - zero) < 0
7544 || strcmp (buf, "-0") != 0)
7549 if ac_fn_c_try_run "$LINENO"; then :
7550 gl_cv_func_printf_infinite=yes
7552 gl_cv_func_printf_infinite=no
7554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7555 conftest.$ac_objext conftest.beam conftest.$ac_ext
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
7561 $as_echo "$gl_cv_func_printf_infinite" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7565 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7566 if test "${ac_cv_c_bigendian+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7569 ac_cv_c_bigendian=unknown
7570 # See if we're dealing with a universal compiler.
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 #ifndef __APPLE_CC__
7574 not a universal capable compiler
7579 if ac_fn_c_try_compile "$LINENO"; then :
7581 # Check for potential -arch flags. It is not universal unless
7582 # there are at least two -arch flags with different values.
7585 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7586 if test -n "$ac_prev"; then
7588 i?86 | x86_64 | ppc | ppc64)
7589 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7592 ac_cv_c_bigendian=universal
7598 elif test "x$ac_word" = "x-arch"; then
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 if test $ac_cv_c_bigendian = unknown; then
7605 # See if sys/param.h defines the BYTE_ORDER macro.
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 #include <sys/types.h>
7609 #include <sys/param.h>
7614 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7615 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7624 if ac_fn_c_try_compile "$LINENO"; then :
7625 # It does; now see whether it defined to BIG_ENDIAN or not.
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <sys/types.h>
7629 #include <sys/param.h>
7634 #if BYTE_ORDER != BIG_ENDIAN
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 ac_cv_c_bigendian=yes
7645 ac_cv_c_bigendian=no
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 if test $ac_cv_c_bigendian = unknown; then
7652 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7660 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7668 if ac_fn_c_try_compile "$LINENO"; then :
7669 # It does; now see whether it defined to _BIG_ENDIAN or not.
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686 ac_cv_c_bigendian=yes
7688 ac_cv_c_bigendian=no
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 if test $ac_cv_c_bigendian = unknown; then
7695 # Compile a test program.
7696 if test "$cross_compiling" = yes; then :
7697 # Try to guess by grepping values from an object file.
7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 short int ascii_mm[] =
7701 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7702 short int ascii_ii[] =
7703 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7704 int use_ascii (int i) {
7705 return ascii_mm[i] + ascii_ii[i];
7707 short int ebcdic_ii[] =
7708 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7709 short int ebcdic_mm[] =
7710 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7711 int use_ebcdic (int i) {
7712 return ebcdic_mm[i] + ebcdic_ii[i];
7719 return use_ascii (foo) == use_ebcdic (foo);
7724 if ac_fn_c_try_compile "$LINENO"; then :
7725 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7726 ac_cv_c_bigendian=yes
7728 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7729 if test "$ac_cv_c_bigendian" = unknown; then
7730 ac_cv_c_bigendian=no
7732 # finding both strings is unlikely to happen, but who knows?
7733 ac_cv_c_bigendian=unknown
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 $ac_includes_default
7746 /* Are we little or big endian? From Harbison&Steele. */
7750 char c[sizeof (long int)];
7753 return u.c[sizeof (long int) - 1] == 1;
7759 if ac_fn_c_try_run "$LINENO"; then :
7760 ac_cv_c_bigendian=no
7762 ac_cv_c_bigendian=yes
7764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7765 conftest.$ac_objext conftest.beam conftest.$ac_ext
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7771 $as_echo "$ac_cv_c_bigendian" >&6; }
7772 case $ac_cv_c_bigendian in #(
7774 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7780 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7784 as_fn_error "unknown endianness
7785 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7793 if test -n "$gl_printf_safe"; then
7795 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
7798 case "$gl_cv_func_printf_long_double" in
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
7801 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
7802 if test "${gl_cv_func_printf_infinite_long_double+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7806 if test "$cross_compiling" = yes; then :
7809 # Guess no on ia64, x86_64, i386.
7810 ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
7813 # Guess yes on glibc systems.
7814 *-gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";;
7815 # Guess yes on FreeBSD >= 6.
7816 freebsd[1-5]*) gl_cv_func_printf_infinite_long_double="guessing no";;
7817 freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
7818 # Guess yes on MacOS X >= 10.3.
7819 darwin[1-6].*) gl_cv_func_printf_infinite_long_double="guessing no";;
7820 darwin*) gl_cv_func_printf_infinite_long_double="guessing yes";;
7821 # Guess yes on HP-UX >= 11.
7822 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
7823 hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";;
7824 # Guess yes on NetBSD >= 3.
7825 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7826 gl_cv_func_printf_infinite_long_double="guessing no";;
7827 netbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
7828 # If we don't know, assume the worst.
7829 *) gl_cv_func_printf_infinite_long_double="guessing no";;
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7840 #if defined __MACH__ && defined __APPLE__
7841 /* Avoid a crash on MacOS X. */
7842 #include <mach/mach.h>
7843 #include <mach/mach_error.h>
7844 #include <mach/thread_status.h>
7845 #include <mach/exception.h>
7846 #include <mach/task.h>
7847 #include <pthread.h>
7848 /* The exception port on which our thread listens. */
7849 static mach_port_t our_exception_port;
7850 /* The main function of the thread listening for exceptions of type
7853 mach_exception_thread (void *arg)
7855 /* Buffer for a message to be received. */
7857 mach_msg_header_t head;
7858 mach_msg_body_t msgh_body;
7861 mach_msg_return_t retval;
7862 /* Wait for a message on the exception port. */
7863 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
7864 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
7865 if (retval != MACH_MSG_SUCCESS)
7872 mach_port_t self = mach_task_self ();
7873 /* Allocate a port on which the thread shall listen for exceptions. */
7874 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
7876 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
7877 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
7878 MACH_MSG_TYPE_MAKE_SEND)
7880 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
7882 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
7883 /* Create the thread listening on the exception port. */
7884 pthread_attr_t attr;
7886 if (pthread_attr_init (&attr) == 0
7887 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
7888 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
7889 pthread_attr_destroy (&attr);
7890 /* Replace the exception port info for these exceptions with our own.
7891 Note that we replace the exception port for the entire task, not only
7892 for a particular thread. This has the effect that when our exception
7893 port gets the message, the thread specific exception port has already
7894 been asked, and we don't need to bother about it.
7895 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
7896 task_set_exception_ports (self, mask, our_exception_port,
7897 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
7903 /* Avoid a crash on POSIX systems. */
7905 /* A POSIX signal handler. */
7907 exception_handler (int sig)
7915 signal (SIGSEGV, exception_handler);
7918 signal (SIGBUS, exception_handler);
7927 strisnan (const char *string, size_t start_index, size_t end_index)
7929 if (start_index < end_index)
7931 if (string[start_index] == '-')
7933 if (start_index + 3 <= end_index
7934 && memcmp (string + start_index, "nan", 3) == 0)
7937 if (start_index == end_index
7938 || (string[start_index] == '(' && string[end_index - 1] == ')'))
7944 static char buf[10000];
7945 static long double zeroL = 0.0L;
7949 if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0
7950 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7952 if (sprintf (buf, "%Lf", -1.0L / 0.0L) < 0
7953 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7955 if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
7956 || !strisnan (buf, 0, strlen (buf)))
7958 if (sprintf (buf, "%Le", 1.0L / 0.0L) < 0
7959 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7961 if (sprintf (buf, "%Le", -1.0L / 0.0L) < 0
7962 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7964 if (sprintf (buf, "%Le", zeroL / zeroL) < 0
7965 || !strisnan (buf, 0, strlen (buf)))
7967 if (sprintf (buf, "%Lg", 1.0L / 0.0L) < 0
7968 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
7970 if (sprintf (buf, "%Lg", -1.0L / 0.0L) < 0
7971 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
7973 if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
7974 || !strisnan (buf, 0, strlen (buf)))
7976 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
7977 /* Representation of an 80-bit 'long double' as an initializer for a sequence
7978 of 'unsigned int' words. */
7979 # ifdef WORDS_BIGENDIAN
7980 # define LDBL80_WORDS(exponent,manthi,mantlo) \
7981 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
7982 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
7983 (unsigned int) (mantlo) << 16 \
7986 # define LDBL80_WORDS(exponent,manthi,mantlo) \
7987 { mantlo, manthi, exponent }
7990 static union { unsigned int word[4]; long double value; } x =
7991 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
7992 if (sprintf (buf, "%Lf", x.value) < 0
7993 || !strisnan (buf, 0, strlen (buf)))
7995 if (sprintf (buf, "%Le", x.value) < 0
7996 || !strisnan (buf, 0, strlen (buf)))
7998 if (sprintf (buf, "%Lg", x.value) < 0
7999 || !strisnan (buf, 0, strlen (buf)))
8003 /* Signalling NaN. */
8004 static union { unsigned int word[4]; long double value; } x =
8005 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
8006 if (sprintf (buf, "%Lf", x.value) < 0
8007 || !strisnan (buf, 0, strlen (buf)))
8009 if (sprintf (buf, "%Le", x.value) < 0
8010 || !strisnan (buf, 0, strlen (buf)))
8012 if (sprintf (buf, "%Lg", x.value) < 0
8013 || !strisnan (buf, 0, strlen (buf)))
8017 static union { unsigned int word[4]; long double value; } x =
8018 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
8019 if (sprintf (buf, "%Lf", x.value) < 0
8020 || !strisnan (buf, 0, strlen (buf)))
8022 if (sprintf (buf, "%Le", x.value) < 0
8023 || !strisnan (buf, 0, strlen (buf)))
8025 if (sprintf (buf, "%Lg", x.value) < 0
8026 || !strisnan (buf, 0, strlen (buf)))
8029 { /* Pseudo-Infinity. */
8030 static union { unsigned int word[4]; long double value; } x =
8031 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
8032 if (sprintf (buf, "%Lf", x.value) < 0
8033 || !strisnan (buf, 0, strlen (buf)))
8035 if (sprintf (buf, "%Le", x.value) < 0
8036 || !strisnan (buf, 0, strlen (buf)))
8038 if (sprintf (buf, "%Lg", x.value) < 0
8039 || !strisnan (buf, 0, strlen (buf)))
8042 { /* Pseudo-Zero. */
8043 static union { unsigned int word[4]; long double value; } x =
8044 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
8045 if (sprintf (buf, "%Lf", x.value) < 0
8046 || !strisnan (buf, 0, strlen (buf)))
8048 if (sprintf (buf, "%Le", x.value) < 0
8049 || !strisnan (buf, 0, strlen (buf)))
8051 if (sprintf (buf, "%Lg", x.value) < 0
8052 || !strisnan (buf, 0, strlen (buf)))
8055 { /* Unnormalized number. */
8056 static union { unsigned int word[4]; long double value; } x =
8057 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
8058 if (sprintf (buf, "%Lf", x.value) < 0
8059 || !strisnan (buf, 0, strlen (buf)))
8061 if (sprintf (buf, "%Le", x.value) < 0
8062 || !strisnan (buf, 0, strlen (buf)))
8064 if (sprintf (buf, "%Lg", x.value) < 0
8065 || !strisnan (buf, 0, strlen (buf)))
8068 { /* Pseudo-Denormal. */
8069 static union { unsigned int word[4]; long double value; } x =
8070 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
8071 if (sprintf (buf, "%Lf", x.value) < 0
8072 || !strisnan (buf, 0, strlen (buf)))
8074 if (sprintf (buf, "%Le", x.value) < 0
8075 || !strisnan (buf, 0, strlen (buf)))
8077 if (sprintf (buf, "%Lg", x.value) < 0
8078 || !strisnan (buf, 0, strlen (buf)))
8085 if ac_fn_c_try_run "$LINENO"; then :
8086 gl_cv_func_printf_infinite_long_double=yes
8088 gl_cv_func_printf_infinite_long_double=no
8090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8091 conftest.$ac_objext conftest.beam conftest.$ac_ext
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
8097 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
8100 gl_cv_func_printf_infinite_long_double="irrelevant"
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
8107 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
8108 if test "${gl_cv_func_printf_directive_a+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8112 if test "$cross_compiling" = yes; then :
8115 # Guess yes on glibc >= 2.5 systems.
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8120 #include <features.h>
8121 #ifdef __GNU_LIBRARY__
8122 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)
8128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8129 $EGREP "BZ2908" >/dev/null 2>&1; then :
8130 gl_cv_func_printf_directive_a="guessing yes"
8132 gl_cv_func_printf_directive_a="guessing no"
8137 # If we don't know, assume the worst.
8138 *) gl_cv_func_printf_directive_a="guessing no";;
8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8147 static char buf[100];
8150 if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
8151 || (strcmp (buf, "0x1.922p+1 33") != 0
8152 && strcmp (buf, "0x3.244p+0 33") != 0
8153 && strcmp (buf, "0x6.488p-1 33") != 0
8154 && strcmp (buf, "0xc.91p-2 33") != 0))
8156 if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
8157 || (strcmp (buf, "-0X1.922P+1 33") != 0
8158 && strcmp (buf, "-0X3.244P+0 33") != 0
8159 && strcmp (buf, "-0X6.488P-1 33") != 0
8160 && strcmp (buf, "-0XC.91P-2 33") != 0))
8162 /* This catches a FreeBSD 6.1 bug: it doesn't round. */
8163 if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
8164 || (strcmp (buf, "0x1.83p+0 33") != 0
8165 && strcmp (buf, "0x3.05p-1 33") != 0
8166 && strcmp (buf, "0x6.0ap-2 33") != 0
8167 && strcmp (buf, "0xc.14p-3 33") != 0))
8169 /* This catches a FreeBSD 6.1 bug. See
8170 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
8171 if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0
8174 /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug. */
8175 if (sprintf (buf, "%.1a", 1.999) < 0
8176 || (strcmp (buf, "0x1.0p+1") != 0
8177 && strcmp (buf, "0x2.0p+0") != 0
8178 && strcmp (buf, "0x4.0p-1") != 0
8179 && strcmp (buf, "0x8.0p-2") != 0))
8181 /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a
8182 glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>. */
8183 if (sprintf (buf, "%.1La", 1.999L) < 0
8184 || (strcmp (buf, "0x1.0p+1") != 0
8185 && strcmp (buf, "0x2.0p+0") != 0
8186 && strcmp (buf, "0x4.0p-1") != 0
8187 && strcmp (buf, "0x8.0p-2") != 0))
8192 if ac_fn_c_try_run "$LINENO"; then :
8193 gl_cv_func_printf_directive_a=yes
8195 gl_cv_func_printf_directive_a=no
8197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8198 conftest.$ac_objext conftest.beam conftest.$ac_ext
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
8204 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
8209 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
8210 if test "${gl_cv_func_printf_directive_f+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8214 if test "$cross_compiling" = yes; then :
8217 # Guess yes on glibc systems.
8218 *-gnu*) gl_cv_func_printf_directive_f="guessing yes";;
8219 # Guess yes on FreeBSD >= 6.
8220 freebsd[1-5]*) gl_cv_func_printf_directive_f="guessing no";;
8221 freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
8222 # Guess yes on MacOS X >= 10.3.
8223 darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";;
8224 darwin*) gl_cv_func_printf_directive_f="guessing yes";;
8225 # Guess yes on Solaris >= 2.10.
8226 solaris2.[0-9]*) gl_cv_func_printf_directive_f="guessing no";;
8227 solaris*) gl_cv_func_printf_directive_f="guessing yes";;
8228 # If we don't know, assume the worst.
8229 *) gl_cv_func_printf_directive_f="guessing no";;
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8238 static char buf[100];
8241 if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
8242 || strcmp (buf, "1234567.000000 33") != 0)
8244 if (sprintf (buf, "%F", 1.0 / 0.0) < 0
8245 || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
8247 /* This catches a Cygwin 1.5.x bug. */
8248 if (sprintf (buf, "%.F", 1234.0) < 0
8249 || strcmp (buf, "1234") != 0)
8254 if ac_fn_c_try_run "$LINENO"; then :
8255 gl_cv_func_printf_directive_f=yes
8257 gl_cv_func_printf_directive_f=no
8259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8260 conftest.$ac_objext conftest.beam conftest.$ac_ext
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
8266 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
8271 $as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
8272 if test "${gl_cv_func_printf_directive_n+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8276 if test "$cross_compiling" = yes; then :
8279 *) gl_cv_func_printf_directive_n="guessing yes";;
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8288 static char fmtstring[10];
8289 static char buf[100];
8293 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2)
8294 support %n in format strings in read-only memory but not in writable
8296 strcpy (fmtstring, "%d %n");
8297 if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
8298 || strcmp (buf, "123 ") != 0
8304 if ac_fn_c_try_run "$LINENO"; then :
8305 gl_cv_func_printf_directive_n=yes
8307 gl_cv_func_printf_directive_n=no
8309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8310 conftest.$ac_objext conftest.beam conftest.$ac_ext
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
8316 $as_echo "$gl_cv_func_printf_directive_n" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
8321 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
8322 if test "${gl_cv_func_printf_directive_ls+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8326 if test "$cross_compiling" = yes; then :
8329 openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
8330 irix*) gl_cv_func_printf_directive_ls="guessing no";;
8331 solaris*) gl_cv_func_printf_directive_ls="guessing no";;
8332 cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
8333 beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
8334 *) gl_cv_func_printf_directive_ls="guessing yes";;
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8341 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8343 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8344 included before <wchar.h>. */
8353 /* Test whether %ls works at all.
8354 This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
8357 static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
8359 if (sprintf (buf, "%ls", wstring) < 0
8360 || strcmp (buf, "abc") != 0)
8363 /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
8364 assertion failure inside libc), but not on OpenBSD 4.0. */
8366 static const wchar_t wstring[] = { 'a', 0 };
8368 if (sprintf (buf, "%ls", wstring) < 0
8369 || strcmp (buf, "a") != 0)
8372 /* Test whether precisions in %ls are supported as specified in ISO C 99
8374 "If a precision is specified, no more than that many bytes are written
8375 (including shift sequences, if any), and the array shall contain a
8376 null wide character if, to equal the multibyte character sequence
8377 length given by the precision, the function would need to access a
8378 wide character one past the end of the array."
8379 This test fails on Solaris 10. */
8381 static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
8383 if (sprintf (buf, "%.2ls", wstring) < 0
8384 || strcmp (buf, "ab") != 0)
8390 if ac_fn_c_try_run "$LINENO"; then :
8391 gl_cv_func_printf_directive_ls=yes
8393 gl_cv_func_printf_directive_ls=no
8395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8396 conftest.$ac_objext conftest.beam conftest.$ac_ext
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
8402 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
8407 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
8408 if test "${gl_cv_func_printf_positions+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8412 if test "$cross_compiling" = yes; then :
8415 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
8416 gl_cv_func_printf_positions="guessing no";;
8417 beos*) gl_cv_func_printf_positions="guessing no";;
8418 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
8419 *) gl_cv_func_printf_positions="guessing yes";;
8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424 /* end confdefs.h. */
8428 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8429 dollar expansion (possibly an autoconf bug). */
8430 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8431 static char buf[100];
8434 sprintf (buf, format, 33, 55);
8435 return (strcmp (buf, "55 33") != 0);
8438 if ac_fn_c_try_run "$LINENO"; then :
8439 gl_cv_func_printf_positions=yes
8441 gl_cv_func_printf_positions=no
8443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8444 conftest.$ac_objext conftest.beam conftest.$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
8450 $as_echo "$gl_cv_func_printf_positions" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
8455 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
8456 if test "${gl_cv_func_printf_flag_grouping+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8460 if test "$cross_compiling" = yes; then :
8463 cygwin*) gl_cv_func_printf_flag_grouping="guessing no";;
8464 netbsd*) gl_cv_func_printf_flag_grouping="guessing no";;
8465 mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
8466 *) gl_cv_func_printf_flag_grouping="guessing yes";;
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8475 static char buf[100];
8478 if (sprintf (buf, "%'d %d", 1234567, 99) < 0
8479 || buf[strlen (buf) - 1] != '9')
8484 if ac_fn_c_try_run "$LINENO"; then :
8485 gl_cv_func_printf_flag_grouping=yes
8487 gl_cv_func_printf_flag_grouping=no
8489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8490 conftest.$ac_objext conftest.beam conftest.$ac_ext
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
8496 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
8501 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
8502 if test "${gl_cv_func_printf_flag_leftadjust+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8506 if test "$cross_compiling" = yes; then :
8509 # Guess yes on HP-UX 11.
8510 hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
8511 # Guess no on HP-UX 10 and older.
8512 hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";;
8513 # Guess yes otherwise.
8514 *) gl_cv_func_printf_flag_leftadjust="guessing yes";;
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8523 static char buf[100];
8526 /* Check that a '-' flag is not annihilated by a negative width. */
8527 if (sprintf (buf, "a%-*sc", -3, "b") < 0
8528 || strcmp (buf, "ab c") != 0)
8533 if ac_fn_c_try_run "$LINENO"; then :
8534 gl_cv_func_printf_flag_leftadjust=yes
8536 gl_cv_func_printf_flag_leftadjust=no
8538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8539 conftest.$ac_objext conftest.beam conftest.$ac_ext
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
8545 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
8550 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
8551 if test "${gl_cv_func_printf_flag_zero+set}" = set; then :
8552 $as_echo_n "(cached) " >&6
8555 if test "$cross_compiling" = yes; then :
8558 # Guess yes on glibc systems.
8559 *-gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
8560 # Guess yes on BeOS.
8561 beos*) gl_cv_func_printf_flag_zero="guessing yes";;
8562 # If we don't know, assume the worst.
8563 *) gl_cv_func_printf_flag_zero="guessing no";;
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8572 static char buf[100];
8575 if (sprintf (buf, "%010f", 1.0 / 0.0, 33, 44, 55) < 0
8576 || (strcmp (buf, " inf") != 0
8577 && strcmp (buf, " infinity") != 0))
8582 if ac_fn_c_try_run "$LINENO"; then :
8583 gl_cv_func_printf_flag_zero=yes
8585 gl_cv_func_printf_flag_zero=no
8587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8588 conftest.$ac_objext conftest.beam conftest.$ac_ext
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
8594 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
8599 $as_echo_n "checking whether printf supports large precisions... " >&6; }
8600 if test "${gl_cv_func_printf_precision+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8604 if test "$cross_compiling" = yes; then :
8607 # Guess no only on native Win32 and BeOS systems.
8608 mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
8609 beos*) gl_cv_func_printf_precision="guessing no" ;;
8610 *) gl_cv_func_printf_precision="guessing yes" ;;
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8619 static char buf[5000];
8623 /* On BeOS, this would crash and show a dialog box. Avoid the crash. */
8626 if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
8631 if ac_fn_c_try_run "$LINENO"; then :
8632 gl_cv_func_printf_precision=yes
8634 gl_cv_func_printf_precision=no
8636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8637 conftest.$ac_objext conftest.beam conftest.$ac_ext
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
8643 $as_echo "$gl_cv_func_printf_precision" >&6; }
8646 gl_cv_c_multiarch=no
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 #ifndef __APPLE_CC__
8650 not a universal capable compiler
8655 if ac_fn_c_try_compile "$LINENO"; then :
8659 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8660 if test -n "$prev"; then
8662 i?86 | x86_64 | ppc | ppc64)
8663 if test -z "$arch" || test "$arch" = "$word"; then
8666 gl_cv_c_multiarch=yes
8672 if test "x$word" = "x-arch"; then
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 if test $gl_cv_c_multiarch = yes; then
8682 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8684 APPLE_UNIVERSAL_BUILD=1
8686 APPLE_UNIVERSAL_BUILD=0
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
8694 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
8695 if test "${gl_cv_func_printf_enomem+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8699 gl_cv_func_printf_enomem="guessing no"
8700 if test "$cross_compiling" = no; then
8701 if test $APPLE_UNIVERSAL_BUILD = 0; then
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8707 #if defined __MACH__ && defined __APPLE__
8708 /* Avoid a crash on MacOS X. */
8709 #include <mach/mach.h>
8710 #include <mach/mach_error.h>
8711 #include <mach/thread_status.h>
8712 #include <mach/exception.h>
8713 #include <mach/task.h>
8714 #include <pthread.h>
8715 /* The exception port on which our thread listens. */
8716 static mach_port_t our_exception_port;
8717 /* The main function of the thread listening for exceptions of type
8720 mach_exception_thread (void *arg)
8722 /* Buffer for a message to be received. */
8724 mach_msg_header_t head;
8725 mach_msg_body_t msgh_body;
8728 mach_msg_return_t retval;
8729 /* Wait for a message on the exception port. */
8730 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
8731 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
8732 if (retval != MACH_MSG_SUCCESS)
8739 mach_port_t self = mach_task_self ();
8740 /* Allocate a port on which the thread shall listen for exceptions. */
8741 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
8743 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
8744 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
8745 MACH_MSG_TYPE_MAKE_SEND)
8747 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
8749 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
8750 /* Create the thread listening on the exception port. */
8751 pthread_attr_t attr;
8753 if (pthread_attr_init (&attr) == 0
8754 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
8755 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
8756 pthread_attr_destroy (&attr);
8757 /* Replace the exception port info for these exceptions with our own.
8758 Note that we replace the exception port for the entire task, not only
8759 for a particular thread. This has the effect that when our exception
8760 port gets the message, the thread specific exception port has already
8761 been asked, and we don't need to bother about it.
8762 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
8763 task_set_exception_ports (self, mask, our_exception_port,
8764 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
8770 /* Avoid a crash on POSIX systems. */
8772 /* A POSIX signal handler. */
8774 exception_handler (int sig)
8782 signal (SIGSEGV, exception_handler);
8785 signal (SIGBUS, exception_handler);
8791 #include <sys/types.h>
8792 #include <sys/time.h>
8793 #include <sys/resource.h>
8797 struct rlimit limit;
8800 /* Some printf implementations allocate temporary space with malloc. */
8801 /* On BSD systems, malloc() is limited by RLIMIT_DATA. */
8803 if (getrlimit (RLIMIT_DATA, &limit) < 0)
8805 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
8806 limit.rlim_max = 5000000;
8807 limit.rlim_cur = limit.rlim_max;
8808 if (setrlimit (RLIMIT_DATA, &limit) < 0)
8811 /* On Linux systems, malloc() is limited by RLIMIT_AS. */
8813 if (getrlimit (RLIMIT_AS, &limit) < 0)
8815 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
8816 limit.rlim_max = 5000000;
8817 limit.rlim_cur = limit.rlim_max;
8818 if (setrlimit (RLIMIT_AS, &limit) < 0)
8821 /* Some printf implementations allocate temporary space on the stack. */
8823 if (getrlimit (RLIMIT_STACK, &limit) < 0)
8825 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
8826 limit.rlim_max = 5000000;
8827 limit.rlim_cur = limit.rlim_max;
8828 if (setrlimit (RLIMIT_STACK, &limit) < 0)
8831 ret = printf ("%.5000000f", 1.0);
8832 return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
8836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8837 (eval $ac_link) 2>&5
8839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8840 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8843 if test $result != 0 && test $result != 77; then result=1; fi
8845 ) >/dev/null 2>/dev/null
8847 0) gl_cv_func_printf_enomem="yes" ;;
8848 77) gl_cv_func_printf_enomem="guessing no" ;;
8849 *) gl_cv_func_printf_enomem="no" ;;
8852 gl_cv_func_printf_enomem="guessing no"
8856 gl_cv_func_printf_enomem="guessing no"
8859 if test "$gl_cv_func_printf_enomem" = "guessing no"; then
8861 # Guess yes on glibc systems.
8862 *-gnu*) gl_cv_func_printf_enomem="guessing yes";;
8863 # Guess yes on Solaris.
8864 solaris*) gl_cv_func_printf_enomem="guessing yes";;
8866 aix*) gl_cv_func_printf_enomem="guessing yes";;
8867 # Guess yes on HP-UX/hppa.
8868 hpux*) case "$host_cpu" in
8869 hppa*) gl_cv_func_printf_enomem="guessing yes";;
8870 *) gl_cv_func_printf_enomem="guessing no";;
8873 # Guess yes on IRIX.
8874 irix*) gl_cv_func_printf_enomem="guessing yes";;
8875 # Guess yes on OSF/1.
8876 osf*) gl_cv_func_printf_enomem="guessing yes";;
8877 # Guess yes on BeOS.
8878 beos*) gl_cv_func_printf_enomem="guessing yes";;
8879 # Guess yes on Haiku.
8880 haiku*) gl_cv_func_printf_enomem="guessing yes";;
8881 # If we don't know, assume the worst.
8882 *) gl_cv_func_printf_enomem="guessing no";;
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
8888 $as_echo "$gl_cv_func_printf_enomem" >&6; }
8892 case "$gl_cv_func_printf_long_double" in
8897 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8906 $as_echo_n "checking for long long int... " >&6; }
8907 if test "${ac_cv_type_long_long_int+set}" = set; then :
8908 $as_echo_n "(cached) " >&6
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8913 /* For now, do not test the preprocessor; as of 2007 there are too many
8914 implementations with broken preprocessors. Perhaps this can
8915 be revisited in 2012. In the meantime, code should not expect
8916 #if to work with literals wider than 32 bits. */
8917 /* Test literals. */
8918 long long int ll = 9223372036854775807ll;
8919 long long int nll = -9223372036854775807LL;
8920 unsigned long long int ull = 18446744073709551615ULL;
8921 /* Test constant expressions. */
8922 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8924 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8930 /* Test availability of runtime routines for shift and division. */
8931 long long int llmax = 9223372036854775807ll;
8932 unsigned long long int ullmax = 18446744073709551615ull;
8933 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8934 | (llmax / ll) | (llmax % ll)
8935 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8936 | (ullmax / ull) | (ullmax % ull));
8942 if ac_fn_c_try_link "$LINENO"; then :
8943 if test "$cross_compiling" = yes; then :
8944 ac_cv_type_long_long_int=yes
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8951 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8952 # define LLONG_MAX (HALF - 1 + HALF)
8957 long long int n = 1;
8961 long long int m = n << i;
8964 if (LLONG_MAX / 2 < m)
8972 if ac_fn_c_try_run "$LINENO"; then :
8973 ac_cv_type_long_long_int=yes
8975 ac_cv_type_long_long_int=no
8977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8978 conftest.$ac_objext conftest.beam conftest.$ac_ext
8982 ac_cv_type_long_long_int=no
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8988 $as_echo "$ac_cv_type_long_long_int" >&6; }
8989 if test $ac_cv_type_long_long_int = yes; then
8991 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8997 $as_echo_n "checking for wchar_t... " >&6; }
8998 if test "${gt_cv_c_wchar_t+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002 /* end confdefs.h. */
9004 wchar_t foo = (wchar_t)'\0';
9013 if ac_fn_c_try_compile "$LINENO"; then :
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9021 $as_echo "$gt_cv_c_wchar_t" >&6; }
9022 if test $gt_cv_c_wchar_t = yes; then
9024 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9030 $as_echo_n "checking for wint_t... " >&6; }
9031 if test "${gt_cv_c_wint_t+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9037 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9039 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9040 before <wchar.h>. */
9045 wint_t foo = (wchar_t)'\0';
9054 if ac_fn_c_try_compile "$LINENO"; then :
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9062 $as_echo "$gt_cv_c_wint_t" >&6; }
9063 if test $gt_cv_c_wint_t = yes; then
9065 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9073 $as_echo_n "checking for intmax_t... " >&6; }
9074 if test "${gt_cv_c_intmax_t+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9082 #if HAVE_STDINT_H_WITH_UINTMAX
9085 #if HAVE_INTTYPES_H_WITH_UINTMAX
9086 #include <inttypes.h>
9092 intmax_t x = -1; return !x;
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 gt_cv_c_intmax_t=yes
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9105 $as_echo "$gt_cv_c_intmax_t" >&6; }
9106 if test $gt_cv_c_intmax_t = yes; then
9108 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9112 test $ac_cv_type_long_long_int = yes \
9113 && ac_type='long long' \
9116 cat >>confdefs.h <<_ACEOF
9117 #define intmax_t $ac_type
9127 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
9129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9131 eval as_val=\$$as_ac_var
9132 if test "x$as_val" = x""yes; then :
9133 cat >>confdefs.h <<_ACEOF
9134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9140 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
9142 if test "x$ac_cv_have_decl__snprintf" = x""yes; then :
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL__SNPRINTF $ac_have_decl
9213 REPLACE_SIGNBIT_USING_GCC=0;
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
9218 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
9219 if test "${gl_cv_var_stdin_large_offset+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9228 #if defined __SL64 && defined __SCLE /* cygwin */
9229 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
9230 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
9231 it is easier to do a version check than building a runtime test. */
9232 # include <cygwin/version.h>
9233 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
9241 if ac_fn_c_try_link "$LINENO"; then :
9242 gl_cv_var_stdin_large_offset=yes
9244 gl_cv_var_stdin_large_offset=no
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
9250 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
9264 if test $gl_cv_have_include_next = yes; then
9265 gl_cv_next_getopt_h='<'getopt.h'>'
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9268 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9269 if test "${gl_cv_next_getopt_h+set}" = set; then :
9270 $as_echo_n "(cached) " >&6
9273 if test $ac_cv_header_getopt_h = yes; then
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9280 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9281 *) gl_absname_cpp="$ac_cpp" ;;
9283 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9284 sed -n '\#/getopt.h#{
9285 s#.*"\(.*/getopt.h\)".*#\1#
9291 gl_cv_next_getopt_h='<'getopt.h'>'
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9296 $as_echo "$gl_cv_next_getopt_h" >&6; }
9298 NEXT_GETOPT_H=$gl_cv_next_getopt_h
9300 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9302 gl_next_as_first_directive='<'getopt.h'>'
9304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9305 gl_next_as_first_directive=$gl_cv_next_getopt_h
9307 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9312 if test $ac_cv_header_getopt_h = yes; then
9321 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9322 for ac_header in getopt.h
9324 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9325 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9326 cat >>confdefs.h <<_ACEOF
9327 #define HAVE_GETOPT_H 1
9331 gl_replace_getopt=yes
9338 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9339 for ac_func in getopt_long_only
9341 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9342 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
9343 cat >>confdefs.h <<_ACEOF
9344 #define HAVE_GETOPT_LONG_ONLY 1
9348 gl_replace_getopt=yes
9354 if false && test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9355 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
9357 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
9358 gl_replace_getopt=yes
9363 if test -z "$gl_replace_getopt"; then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9365 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9366 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9367 $as_echo_n "(cached) " >&6
9370 if test "$cross_compiling" = yes; then :
9372 mingw*) gl_cv_func_getopt_posix="guessing no";;
9373 *) gl_cv_func_getopt_posix="guessing yes";;
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9384 /* The glibc implementation of getopt supports setting optind = 0 as a means
9385 of clearing the internal state, but other implementations don't. */
9386 #if (__GLIBC__ >= 2)
9387 # define OPTIND_MIN 0
9389 # define OPTIND_MIN 1
9400 argv[argc++] = "program";
9401 argv[argc++] = "-a";
9402 argv[argc++] = "foo";
9403 argv[argc++] = "bar";
9404 optind = OPTIND_MIN;
9407 c = getopt (argc, argv, "ab");
9410 c = getopt (argc, argv, "ab");
9416 /* Some internal state exists at this point. */
9422 argv[argc++] = "program";
9423 argv[argc++] = "donald";
9424 argv[argc++] = "-p";
9425 argv[argc++] = "billy";
9426 argv[argc++] = "duck";
9427 argv[argc++] = "-a";
9428 argv[argc++] = "bar";
9429 optind = OPTIND_MIN;
9432 c = getopt (argc, argv, "+abp:q:");
9435 if (!(strcmp (argv[0], "program") == 0))
9437 if (!(strcmp (argv[1], "donald") == 0))
9439 if (!(strcmp (argv[2], "-p") == 0))
9441 if (!(strcmp (argv[3], "billy") == 0))
9443 if (!(strcmp (argv[4], "duck") == 0))
9445 if (!(strcmp (argv[5], "-a") == 0))
9447 if (!(strcmp (argv[6], "bar") == 0))
9457 if ac_fn_c_try_run "$LINENO"; then :
9458 gl_cv_func_getopt_posix=yes
9460 gl_cv_func_getopt_posix=no
9462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9463 conftest.$ac_objext conftest.beam conftest.$ac_ext
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9469 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9470 case "$gl_cv_func_getopt_posix" in
9471 *no) gl_replace_getopt=yes ;;
9475 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9477 $as_echo_n "checking for working GNU getopt function... " >&6; }
9478 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9481 if test "$cross_compiling" = yes; then :
9483 *-gnu* | mingw*) gl_cv_func_getopt_gnu=no;;
9484 *) gl_cv_func_getopt_gnu=yes;;
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9497 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9498 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9499 OSF/1 5.1, Solaris 10. */
9502 myargv[0] = "conftest";
9506 if (getopt (2, myargv, "+a") != '?')
9509 /* This code succeeds on glibc 2.8, mingw,
9510 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9511 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin. */
9513 char *argv[] = { "program", "-p", "foo", "bar" };
9516 if (getopt (4, argv, "p::") != 'p')
9520 if (getopt (4, argv, "p::") != -1)
9531 if ac_fn_c_try_run "$LINENO"; then :
9532 gl_cv_func_getopt_gnu=yes
9534 gl_cv_func_getopt_gnu=no
9536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9537 conftest.$ac_objext conftest.beam conftest.$ac_ext
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9543 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9544 if test "$gl_cv_func_getopt_gnu" = "no"; then
9545 gl_replace_getopt=yes
9549 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9550 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
9556 cat >>confdefs.h <<_ACEOF
9557 #define HAVE_DECL_GETENV $ac_have_decl
9565 if test -n "$gl_replace_getopt"; then :
9571 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9575 GNULIB_UNISTD_H_GETOPT=1
9584 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
9594 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9612 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9613 if test "${ac_cv_c_restrict+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9617 # The order here caters to the fact that C++ does not require restrict.
9618 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621 typedef int * int_ptr;
9622 int foo (int_ptr $ac_kw ip) {
9636 if ac_fn_c_try_compile "$LINENO"; then :
9637 ac_cv_c_restrict=$ac_kw
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 test "$ac_cv_c_restrict" != no && break
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9645 $as_echo "$ac_cv_c_restrict" >&6; }
9647 case $ac_cv_c_restrict in
9649 no) $as_echo "#define restrict /**/" >>confdefs.h
9651 *) cat >>confdefs.h <<_ACEOF
9652 #define restrict $ac_cv_c_restrict
9667 if test $gl_cv_have_include_next = yes; then
9668 gl_cv_next_sys_time_h='<'sys/time.h'>'
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9671 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9672 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9676 if test $ac_cv_header_sys_time_h = yes; then
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 #include <sys/time.h>
9683 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9684 *) gl_absname_cpp="$ac_cpp" ;;
9686 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9687 sed -n '\#/sys/time.h#{
9688 s#.*"\(.*/sys/time.h\)".*#\1#
9694 gl_cv_next_sys_time_h='<'sys/time.h'>'
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9699 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9701 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9703 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9704 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9705 gl_next_as_first_directive='<'sys/time.h'>'
9707 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9708 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9710 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9715 if test $ac_cv_header_sys_time_h = yes; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9723 $as_echo_n "checking for struct timeval... " >&6; }
9724 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9730 #include <sys/time.h>
9737 static struct timeval x; x.tv_sec = x.tv_usec;
9742 if ac_fn_c_try_compile "$LINENO"; then :
9743 gl_cv_sys_struct_timeval=yes
9745 gl_cv_sys_struct_timeval=no
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9750 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9751 if test $gl_cv_sys_struct_timeval = yes; then
9752 HAVE_STRUCT_TIMEVAL=1
9754 HAVE_STRUCT_TIMEVAL=0
9758 REPLACE_GETTIMEOFDAY=0
9760 if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
9761 SYS_TIME_H=sys/time.h
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
9772 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
9773 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9777 if test "$cross_compiling" = yes; then :
9778 gl_cv_cc_float_expbit0="word 0 bit 23"
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9788 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9789 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
9790 static unsigned int ored_words[NWORDS];
9791 static unsigned int anded_words[NWORDS];
9792 static void add_to_ored_words (float x)
9796 /* Clear it first, in case
9797 sizeof (float) < sizeof (memory_float). */
9798 memset (&m, 0, sizeof (memory_float));
9800 for (i = 0; i < NWORDS; i++)
9802 ored_words[i] |= m.word[i];
9803 anded_words[i] &= m.word[i];
9809 FILE *fp = fopen ("conftest.out", "w");
9812 for (j = 0; j < NWORDS; j++)
9813 anded_words[j] = ~ (unsigned int) 0;
9814 add_to_ored_words (0.25f);
9815 add_to_ored_words (0.5f);
9816 add_to_ored_words (1.0f);
9817 add_to_ored_words (2.0f);
9818 add_to_ored_words (4.0f);
9819 /* Remove bits that are common (e.g. if representation of the first mantissa
9820 bit is explicit). */
9821 for (j = 0; j < NWORDS; j++)
9822 ored_words[j] &= ~anded_words[j];
9823 /* Now find the nonzero word. */
9824 for (j = 0; j < NWORDS; j++)
9825 if (ored_words[j] != 0)
9830 for (i = j + 1; i < NWORDS; i++)
9831 if (ored_words[i] != 0)
9833 fprintf (fp, "unknown");
9834 return (fclose (fp) != 0);
9837 if ((ored_words[j] >> i) & 1)
9839 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9840 return (fclose (fp) != 0);
9843 fprintf (fp, "unknown");
9844 return (fclose (fp) != 0);
9848 if ac_fn_c_try_run "$LINENO"; then :
9849 gl_cv_cc_float_expbit0=`cat conftest.out`
9851 gl_cv_cc_float_expbit0="unknown"
9853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9854 conftest.$ac_objext conftest.beam conftest.$ac_ext
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
9861 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
9862 case "$gl_cv_cc_float_expbit0" in
9864 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9865 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
9867 cat >>confdefs.h <<_ACEOF
9868 #define FLT_EXPBIT0_WORD $word
9872 cat >>confdefs.h <<_ACEOF
9873 #define FLT_EXPBIT0_BIT $bit
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9881 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9882 if test "${am_cv_langinfo_codeset+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9887 #include <langinfo.h>
9891 char* cs = nl_langinfo(CODESET); return !cs;
9896 if ac_fn_c_try_link "$LINENO"; then :
9897 am_cv_langinfo_codeset=yes
9899 am_cv_langinfo_codeset=no
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9906 $as_echo "$am_cv_langinfo_codeset" >&6; }
9907 if test $am_cv_langinfo_codeset = yes; then
9909 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9913 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9914 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9920 cat >>confdefs.h <<_ACEOF
9921 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9926 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9927 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9933 #include <features.h>
9934 #ifdef __GNU_LIBRARY__
9935 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9942 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9943 ac_cv_gnu_library_2_1=yes
9945 ac_cv_gnu_library_2_1=no
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9953 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9955 GLIBC21="$ac_cv_gnu_library_2_1"
9984 REPLACE_UTIMENSAT=0;
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9989 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9990 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9991 $as_echo_n "(cached) " >&6
9993 rm -f conftest.sym conftest.file
9995 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9996 if test "$cross_compiling" = yes; then :
9997 ac_cv_func_lstat_dereferences_slashed_symlink=no
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 $ac_includes_default
10006 /* Linux will dereference the symlink and fail, as required by POSIX.
10007 That is better in the sense that it means we will not
10008 have to compile and use the lstat wrapper. */
10009 return lstat ("conftest.sym/", &sbuf) == 0;
10014 if ac_fn_c_try_run "$LINENO"; then :
10015 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10017 ac_cv_func_lstat_dereferences_slashed_symlink=no
10019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10020 conftest.$ac_objext conftest.beam conftest.$ac_ext
10024 # If the `ln -s' command failed, then we probably don't even
10025 # have an lstat function.
10026 ac_cv_func_lstat_dereferences_slashed_symlink=no
10028 rm -f conftest.sym conftest.file
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10032 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10034 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10036 cat >>confdefs.h <<_ACEOF
10037 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10041 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10050 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10062 GNULIB_MBSRTOWCS=0;
10063 GNULIB_MBSNRTOWCS=0;
10065 GNULIB_WCSRTOMBS=0;
10066 GNULIB_WCSNRTOMBS=0;
10078 HAVE_DECL_WCWIDTH=1;
10079 REPLACE_MBSTATE_T=0;
10085 REPLACE_MBSRTOWCS=0;
10086 REPLACE_MBSNRTOWCS=0;
10088 REPLACE_WCSRTOMBS=0;
10089 REPLACE_WCSNRTOMBS=0;
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10096 $as_echo_n "checking for mbstate_t... " >&6; }
10097 if test "${ac_cv_type_mbstate_t+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102 $ac_includes_default
10103 # include <wchar.h>
10107 mbstate_t x; return sizeof x;
10112 if ac_fn_c_try_compile "$LINENO"; then :
10113 ac_cv_type_mbstate_t=yes
10115 ac_cv_type_mbstate_t=no
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10120 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10121 if test $ac_cv_type_mbstate_t = yes; then
10123 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10127 $as_echo "#define mbstate_t int" >>confdefs.h
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10139 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10140 if test "${gt_cv_locale_ja+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10147 #include <locale.h>
10149 #if HAVE_LANGINFO_CODESET
10150 # include <langinfo.h>
10152 #include <stdlib.h>
10153 #include <string.h>
10159 /* Check whether the given locale name is recognized by the system. */
10160 if (setlocale (LC_ALL, "") == NULL) return 1;
10161 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10162 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10163 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10164 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10165 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10166 some unit tests fail. */
10167 #if HAVE_LANGINFO_CODESET
10169 const char *cs = nl_langinfo (CODESET);
10170 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10175 /* On Cygwin, avoid locale names without encoding suffix, because the
10176 locale_charset() function relies on the encoding suffix. Note that
10177 LC_ALL is set on the command line. */
10178 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10180 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10181 on Cygwin 1.5.x. */
10182 if (MB_CUR_MAX == 1)
10184 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10185 This excludes the UTF-8 encoding. */
10186 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10187 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10188 for (p = buf; *p != '\0'; p++)
10189 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10196 (eval $ac_link) 2>&5
10198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10201 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10202 # configure script would override the LC_ALL setting. Likewise for
10203 # LC_CTYPE, which is also set at the beginning of the configure script.
10204 # Test for the AIX locale name.
10205 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10206 gt_cv_locale_ja=ja_JP
10208 # Test for the locale name with explicit encoding suffix.
10209 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10210 gt_cv_locale_ja=ja_JP.EUC-JP
10212 # Test for the HP-UX, OSF/1, NetBSD locale name.
10213 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10214 gt_cv_locale_ja=ja_JP.eucJP
10216 # Test for the IRIX, FreeBSD locale name.
10217 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10218 gt_cv_locale_ja=ja_JP.EUC
10220 # Test for the Solaris 7 locale name.
10221 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10224 # Special test for NetBSD 1.6.
10225 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10226 gt_cv_locale_ja=ja_JP.eucJP
10229 gt_cv_locale_ja=none
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10241 $as_echo "$gt_cv_locale_ja" >&6; }
10242 LOCALE_JA=$gt_cv_locale_ja
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10249 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10250 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10251 $as_echo_n "(cached) " >&6
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10257 #include <locale.h>
10258 #include <stdlib.h>
10260 #if HAVE_LANGINFO_CODESET
10261 # include <langinfo.h>
10263 #include <stdlib.h>
10264 #include <string.h>
10270 /* Check whether the given locale name is recognized by the system. */
10271 if (setlocale (LC_ALL, "") == NULL) return 1;
10272 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10273 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10274 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10275 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10276 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10277 some unit tests fail. */
10278 #if HAVE_LANGINFO_CODESET
10280 const char *cs = nl_langinfo (CODESET);
10281 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10286 /* On Cygwin, avoid locale names without encoding suffix, because the
10287 locale_charset() function relies on the encoding suffix. Note that
10288 LC_ALL is set on the command line. */
10289 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10291 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10292 This excludes the UTF-8 encoding. */
10293 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10294 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10295 for (p = buf; *p != '\0'; p++)
10296 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10298 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10299 single wide character. This excludes the GB2312 and GBK encodings. */
10300 if (mblen ("\203\062\332\066", 5) != 4)
10306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10307 (eval $ac_link) 2>&5
10309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10311 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10312 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10313 # configure script would override the LC_ALL setting. Likewise for
10314 # LC_CTYPE, which is also set at the beginning of the configure script.
10315 # Test for the locale name without encoding suffix.
10316 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10317 gt_cv_locale_zh_CN=zh_CN
10319 # Test for the locale name with explicit encoding suffix.
10320 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10321 gt_cv_locale_zh_CN=zh_CN.GB18030
10324 gt_cv_locale_zh_CN=none
10328 # If there was a link error, due to mblen(), the system is so old that
10329 # it certainly doesn't have a chinese locale.
10330 gt_cv_locale_zh_CN=none
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10336 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10337 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10343 $as_echo_n "checking for a french Unicode locale... " >&6; }
10344 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10351 #include <locale.h>
10353 #if HAVE_LANGINFO_CODESET
10354 # include <langinfo.h>
10356 #include <stdlib.h>
10357 #include <string.h>
10361 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10362 imitates locale dependent behaviour by looking at the environment
10363 variables, and all locales use the UTF-8 encoding. */
10364 #if !(defined __BEOS__ || defined __HAIKU__)
10365 /* Check whether the given locale name is recognized by the system. */
10366 if (setlocale (LC_ALL, "") == NULL) return 1;
10367 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10368 On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10369 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10370 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10371 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10372 some unit tests fail. */
10373 # if HAVE_LANGINFO_CODESET
10375 const char *cs = nl_langinfo (CODESET);
10376 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10381 /* On Cygwin, avoid locale names without encoding suffix, because the
10382 locale_charset() function relies on the encoding suffix. Note that
10383 LC_ALL is set on the command line. */
10384 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10386 /* Check whether in the abbreviation of the second month, the second
10387 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10388 two bytes long, with UTF-8 encoding. */
10389 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10390 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10391 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10394 /* Check whether the decimal separator is a comma.
10395 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10396 are nl_langinfo(RADIXCHAR) are both ".". */
10397 if (localeconv () ->decimal_point[0] != ',') return 1;
10402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10403 (eval $ac_link) 2>&5
10405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10406 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10407 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10408 # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10409 # configure script would override the LC_ALL setting. Likewise for
10410 # LC_CTYPE, which is also set at the beginning of the configure script.
10411 # Test for the usual locale name.
10412 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10413 gt_cv_locale_fr_utf8=fr_FR
10415 # Test for the locale name with explicit encoding suffix.
10416 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10417 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10419 # Test for the Solaris 7 locale name.
10420 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10421 gt_cv_locale_fr_utf8=fr.UTF-8
10424 gt_cv_locale_fr_utf8=none
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10433 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10434 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10446 GNULIB_RAWMEMCHR=0;
10449 GNULIB_STRCHRNUL=0;
10456 GNULIB_STRCASESTR=0;
10463 GNULIB_MBSCASECMP=0;
10464 GNULIB_MBSNCASECMP=0;
10465 GNULIB_MBSPCASECMP=0;
10466 GNULIB_MBSCASESTR=0;
10473 GNULIB_STRSIGNAL=0;
10474 GNULIB_STRVERSCMP=0;
10475 HAVE_DECL_MEMMEM=1;
10477 HAVE_DECL_MEMRCHR=1;
10482 HAVE_DECL_STRDUP=1;
10483 HAVE_DECL_STRNDUP=1;
10484 HAVE_DECL_STRNLEN=1;
10488 HAVE_DECL_STRTOK_R=1;
10489 HAVE_DECL_STRERROR=1;
10490 HAVE_DECL_STRSIGNAL=1;
10496 REPLACE_STRCASESTR=0;
10497 REPLACE_STRERROR=0;
10499 REPLACE_STRSIGNAL=0;
10500 REPLACE_STRTOK_R=0;
10501 UNDEFINE_STRTOK_R=0;
10510 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10511 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10512 # irrelevant for anonymous mappings.
10513 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10514 if test "x$ac_cv_func_mmap" = x""yes; then :
10521 # Try to allow MAP_ANONYMOUS.
10522 gl_have_mmap_anonymous=no
10523 if test $gl_have_mmap = yes; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10525 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10529 #include <sys/mman.h>
10530 #ifdef MAP_ANONYMOUS
10531 I cant identify this map.
10535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10536 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
10537 gl_have_mmap_anonymous=yes
10541 if test $gl_have_mmap_anonymous != yes; then
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10545 #include <sys/mman.h>
10547 I cant identify this map.
10551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10552 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
10554 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10556 gl_have_mmap_anonymous=yes
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10562 $as_echo "$gl_have_mmap_anonymous" >&6; }
10563 if test $gl_have_mmap_anonymous = yes; then
10565 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10582 for ac_func in memchr
10584 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
10585 if test "x$ac_cv_func_memchr" = x""yes; then :
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_MEMCHR 1
10592 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10598 if test $ac_cv_func_memchr = no; then
10600 for ac_header in bp-sym.h
10602 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10603 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10604 cat >>confdefs.h <<_ACEOF
10605 #define HAVE_BP_SYM_H 1
10616 if test $ac_cv_func_memchr = yes; then
10617 # Detect platform-specific bugs in some versions of glibc:
10618 # memchr should not dereference anything with length 0
10619 # http://bugzilla.redhat.com/499689
10620 # memchr should not dereference overestimated length after a match
10621 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10622 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10623 # Assume that memchr works on platforms that lack mprotect.
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10625 $as_echo_n "checking whether memchr works... " >&6; }
10626 if test "${gl_cv_func_memchr_works+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10629 if test "$cross_compiling" = yes; then :
10630 gl_cv_func_memchr_works="guessing no"
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10635 #include <string.h>
10636 #if HAVE_SYS_MMAN_H
10637 # include <fcntl.h>
10638 # include <unistd.h>
10639 # include <sys/types.h>
10640 # include <sys/mman.h>
10642 # define MAP_FILE 0
10650 char *fence = NULL;
10651 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10652 # if HAVE_MAP_ANONYMOUS
10653 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10655 # else /* !HAVE_MAP_ANONYMOUS */
10656 const int flags = MAP_FILE | MAP_PRIVATE;
10657 int fd = open ("/dev/zero", O_RDONLY, 0666);
10661 int pagesize = getpagesize ();
10663 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10665 if (two_pages != (char *)(-1)
10666 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10667 fence = two_pages + pagesize;
10672 if (memchr (fence, 0, 0))
10674 strcpy (fence - 9, "12345678");
10675 if (memchr (fence - 9, 0, 79) != fence - 1)
10684 if ac_fn_c_try_run "$LINENO"; then :
10685 gl_cv_func_memchr_works=yes
10687 gl_cv_func_memchr_works=no
10689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10690 conftest.$ac_objext conftest.beam conftest.$ac_ext
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10695 $as_echo "$gl_cv_func_memchr_works" >&6; }
10696 if test "$gl_cv_func_memchr_works" != yes; then
10698 for ac_header in bp-sym.h
10700 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10701 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10702 cat >>confdefs.h <<_ACEOF
10703 #define HAVE_BP_SYM_H 1
10720 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10740 gl_cv_func_vfprintf_posix=no
10741 case "$gl_cv_func_printf_sizes_c99" in
10743 case "$gl_cv_func_printf_long_double" in
10745 case "$gl_cv_func_printf_infinite" in
10747 case "$gl_cv_func_printf_infinite_long_double" in
10749 case "$gl_cv_func_printf_directive_a" in
10751 case "$gl_cv_func_printf_directive_f" in
10753 case "$gl_cv_func_printf_directive_n" in
10755 case "$gl_cv_func_printf_directive_ls" in
10757 case "$gl_cv_func_printf_positions" in
10759 case "$gl_cv_func_printf_flag_grouping" in
10761 case "$gl_cv_func_printf_flag_leftadjust" in
10763 case "$gl_cv_func_printf_flag_zero" in
10765 case "$gl_cv_func_printf_precision" in
10767 case "$gl_cv_func_printf_enomem" in
10769 # vfprintf exists and is
10770 # already POSIX compliant.
10771 gl_cv_func_vfprintf_posix=yes
10800 if test $gl_cv_func_vfprintf_posix = no; then
10804 case "$gl_cv_func_printf_infinite" in
10809 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
10817 case "$gl_cv_func_printf_long_double" in
10819 case "$gl_cv_func_printf_infinite_long_double" in
10824 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
10833 case "$gl_cv_func_printf_directive_a" in
10838 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
10840 for ac_func in nl_langinfo
10842 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
10843 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
10844 cat >>confdefs.h <<_ACEOF
10845 #define HAVE_NL_LANGINFO 1
10856 case "$gl_cv_func_printf_directive_f" in
10861 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
10868 case "$gl_cv_func_printf_directive_ls" in
10873 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
10880 case "$gl_cv_func_printf_flag_grouping" in
10885 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
10892 case "$gl_cv_func_printf_flag_leftadjust" in
10897 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
10904 case "$gl_cv_func_printf_flag_zero" in
10909 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
10916 case "$gl_cv_func_printf_precision" in
10921 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
10924 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
10927 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
10934 case "$gl_cv_func_printf_enomem" in
10939 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
10942 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
10945 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
10960 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
10970 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
10980 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
10990 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
10992 if test $ac_cv_func_vasnprintf = yes; then
10994 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
11007 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11008 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11012 $as_echo "#define ptrdiff_t long" >>confdefs.h
11033 gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
11037 $as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11045 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11046 if test "${ac_cv_win_or_dos+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11057 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11058 neither MSDOS nor Windows
11064 if ac_fn_c_try_compile "$LINENO"; then :
11065 ac_cv_win_or_dos=yes
11067 ac_cv_win_or_dos=no
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11073 $as_echo "$ac_cv_win_or_dos" >&6; }
11075 if test x"$ac_cv_win_or_dos" = xyes; then
11076 ac_fs_accepts_drive_letter_prefix=1
11077 ac_fs_backslash_is_file_name_separator=1
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11079 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11080 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11091 #if defined __CYGWIN__
11092 drive letters are always absolute
11098 if ac_fn_c_try_compile "$LINENO"; then :
11099 ac_cv_drive_letter_can_be_relative=yes
11101 ac_cv_drive_letter_can_be_relative=no
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11107 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11108 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11109 ac_fs_drive_letter_can_be_relative=1
11111 ac_fs_drive_letter_can_be_relative=0
11114 ac_fs_accepts_drive_letter_prefix=0
11115 ac_fs_backslash_is_file_name_separator=0
11116 ac_fs_drive_letter_can_be_relative=0
11120 cat >>confdefs.h <<_ACEOF
11121 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11128 cat >>confdefs.h <<_ACEOF
11129 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11134 cat >>confdefs.h <<_ACEOF
11135 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11140 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11141 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include <stdbool.h>
11149 "error: bool is not defined"
11152 "error: false is not defined"
11155 "error: false is not 0"
11158 "error: true is not defined"
11161 "error: true is not 1"
11163 #ifndef __bool_true_false_are_defined
11164 "error: __bool_true_false_are_defined is not defined"
11167 struct s { _Bool s: 1; _Bool t; } s;
11169 char a[true == 1 ? 1 : -1];
11170 char b[false == 0 ? 1 : -1];
11171 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11172 char d[(bool) 0.5 == true ? 1 : -1];
11174 char f[(_Bool) 0.0 == false ? 1 : -1];
11176 char h[sizeof (_Bool)];
11177 char i[sizeof s.t];
11178 enum { j = false, k = true, l = false * true, m = true * 256 };
11180 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11181 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11182 #if defined __xlc__ || defined __GNUC__
11183 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11184 reported by James Lemley on 2005-10-05; see
11185 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11186 This test is not quite right, since xlc is allowed to
11187 reject this program, as the initializer for xlcbug is
11188 not one of the forms that C requires support for.
11189 However, doing the test right would require a run-time
11190 test, and that would make cross-compilation harder.
11191 Let us hope that IBM fixes the xlc bug, and also adds
11192 support for this kind of constant expression. In the
11193 meantime, this test will reject xlc, which is OK, since
11194 our stdbool.h substitute should suffice. We also test
11195 this with GCC, where it should work, to detect more
11196 quickly whether someone messes up the test in the
11198 char digs[] = "0123456789";
11199 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11201 /* Catch a bug in an HP-UX C compiler. See
11202 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11203 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11214 /* Refer to every declared value, to avoid compiler optimizations. */
11215 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11216 + !m + !n + !o + !p + !q + !pq);
11222 if ac_fn_c_try_compile "$LINENO"; then :
11223 ac_cv_header_stdbool_h=yes
11225 ac_cv_header_stdbool_h=no
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11230 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11231 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11232 if test "x$ac_cv_type__Bool" = x""yes; then :
11234 cat >>confdefs.h <<_ACEOF
11235 #define HAVE__BOOL 1
11241 if test $ac_cv_header_stdbool_h = yes; then
11243 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11255 $as_echo_n "checking for unsigned long long int... " >&6; }
11256 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
11257 $as_echo_n "(cached) " >&6
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11262 /* For now, do not test the preprocessor; as of 2007 there are too many
11263 implementations with broken preprocessors. Perhaps this can
11264 be revisited in 2012. In the meantime, code should not expect
11265 #if to work with literals wider than 32 bits. */
11266 /* Test literals. */
11267 long long int ll = 9223372036854775807ll;
11268 long long int nll = -9223372036854775807LL;
11269 unsigned long long int ull = 18446744073709551615ULL;
11270 /* Test constant expressions. */
11271 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11273 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11279 /* Test availability of runtime routines for shift and division. */
11280 long long int llmax = 9223372036854775807ll;
11281 unsigned long long int ullmax = 18446744073709551615ull;
11282 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11283 | (llmax / ll) | (llmax % ll)
11284 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11285 | (ullmax / ull) | (ullmax % ull));
11291 if ac_fn_c_try_link "$LINENO"; then :
11292 ac_cv_type_unsigned_long_long_int=yes
11294 ac_cv_type_unsigned_long_long_int=no
11296 rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11300 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11301 if test $ac_cv_type_unsigned_long_long_int = yes; then
11303 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11320 if test -z "$ERRNO_H"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
11322 $as_echo_n "checking for working strerror function... " >&6; }
11323 if test "${gl_cv_func_working_strerror+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11326 if test "$cross_compiling" = yes; then :
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11329 #include <string.h>
11334 return !*strerror (-2);
11339 if ac_fn_c_try_compile "$LINENO"; then :
11340 gl_cv_func_working_strerror=yes
11342 gl_cv_func_working_strerror=no
11344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349 #include <string.h>
11354 return !*strerror (-2);
11359 if ac_fn_c_try_run "$LINENO"; then :
11360 gl_cv_func_working_strerror=yes
11362 gl_cv_func_working_strerror=no
11364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11365 conftest.$ac_objext conftest.beam conftest.$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
11371 $as_echo "$gl_cv_func_working_strerror" >&6; }
11372 if test $gl_cv_func_working_strerror = no; then
11378 if test $REPLACE_STRERROR = 1; then
11380 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11381 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11387 cat >>confdefs.h <<_ACEOF
11388 #define HAVE_DECL_STRERROR $ac_have_decl
11392 if test $ac_cv_header_sys_socket_h != yes; then
11393 for ac_header in winsock2.h
11395 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11396 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
11397 cat >>confdefs.h <<_ACEOF
11398 #define HAVE_WINSOCK2_H 1
11420 if test $gl_cv_have_include_next = yes; then
11421 gl_cv_next_string_h='<'string.h'>'
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11424 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11425 if test "${gl_cv_next_string_h+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11429 if test $ac_cv_header_string_h = yes; then
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #include <string.h>
11436 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11437 *) gl_absname_cpp="$ac_cpp" ;;
11439 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11440 sed -n '\#/string.h#{
11441 s#.*"\(.*/string.h\)".*#\1#
11447 gl_cv_next_string_h='<'string.h'>'
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11452 $as_echo "$gl_cv_next_string_h" >&6; }
11454 NEXT_STRING_H=$gl_cv_next_string_h
11456 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11457 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11458 gl_next_as_first_directive='<'string.h'>'
11460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11461 gl_next_as_first_directive=$gl_cv_next_string_h
11463 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11469 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11470 if test "${ac_cv_header_stat_broken+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h. */
11475 #include <sys/types.h>
11476 #include <sys/stat.h>
11478 #if defined S_ISBLK && defined S_IFDIR
11479 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11482 #if defined S_ISBLK && defined S_IFCHR
11483 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11486 #if defined S_ISLNK && defined S_IFREG
11487 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11490 #if defined S_ISSOCK && defined S_IFREG
11491 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496 ac_cv_header_stat_broken=no
11498 ac_cv_header_stat_broken=yes
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11503 $as_echo "$ac_cv_header_stat_broken" >&6; }
11504 if test $ac_cv_header_stat_broken = yes; then
11506 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11513 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11514 REPLACE_MKTIME=GNULIB_PORTCHECK;
11515 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11516 REPLACE_STRPTIME=GNULIB_PORTCHECK;
11517 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11524 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11525 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11535 static struct timespec x; x.tv_sec = x.tv_nsec;
11540 if ac_fn_c_try_compile "$LINENO"; then :
11541 gl_cv_sys_struct_timespec_in_time_h=yes
11543 gl_cv_sys_struct_timespec_in_time_h=no
11545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11548 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11550 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11551 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11552 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11553 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11556 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11557 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 #include <sys/time.h>
11567 static struct timespec x; x.tv_sec = x.tv_nsec;
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11575 gl_cv_sys_struct_timespec_in_sys_time_h=no
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11580 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11581 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11582 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11597 if test $gl_cv_have_include_next = yes; then
11598 gl_cv_next_time_h='<'time.h'>'
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11601 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11602 if test "${gl_cv_next_time_h+set}" = set; then :
11603 $as_echo_n "(cached) " >&6
11606 if test $ac_cv_header_time_h = yes; then
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11613 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11614 *) gl_absname_cpp="$ac_cpp" ;;
11616 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11617 sed -n '\#/time.h#{
11618 s#.*"\(.*/time.h\)".*#\1#
11624 gl_cv_next_time_h='<'time.h'>'
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11629 $as_echo "$gl_cv_next_time_h" >&6; }
11631 NEXT_TIME_H=$gl_cv_next_time_h
11633 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11635 gl_next_as_first_directive='<'time.h'>'
11637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11638 gl_next_as_first_directive=$gl_cv_next_time_h
11640 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking determine whether the utimes function works" >&5
11652 $as_echo_n "checking determine whether the utimes function works... " >&6; }
11653 if test "${gl_cv_func_working_utimes+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11657 if test "$cross_compiling" = yes; then :
11658 gl_cv_func_working_utimes=no
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11663 #include <sys/types.h>
11664 #include <sys/stat.h>
11666 #include <sys/time.h>
11668 #include <unistd.h>
11669 #include <stdlib.h>
11676 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
11678 char const *file = "conftest.utimes";
11683 int ok = ((f = fopen (file, "w"))
11685 && utimes (file, timeval) == 0
11686 && lstat (file, &sbuf) == 0
11687 && sbuf.st_atime == timeval[0].tv_sec
11688 && sbuf.st_mtime == timeval[1].tv_sec);
11694 ((f = fopen (file, "w"))
11696 && time (&now) != (time_t)-1
11697 && utimes (file, NULL) == 0
11698 && lstat (file, &sbuf) == 0
11699 && now - sbuf.st_atime <= 2
11700 && now - sbuf.st_mtime <= 2);
11705 ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
11707 && utimes (file, NULL) == 0);
11714 if ac_fn_c_try_run "$LINENO"; then :
11715 gl_cv_func_working_utimes=yes
11717 gl_cv_func_working_utimes=no
11719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11720 conftest.$ac_objext conftest.beam conftest.$ac_ext
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
11725 $as_echo "$gl_cv_func_working_utimes" >&6; }
11727 if test $gl_cv_func_working_utimes = yes; then
11729 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
11738 $as_echo_n "checking for struct utimbuf... " >&6; }
11739 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744 #if HAVE_SYS_TIME_H
11745 #include <sys/time.h>
11748 #ifdef HAVE_UTIME_H
11755 static struct utimbuf x; x.actime = x.modtime;
11760 if ac_fn_c_try_compile "$LINENO"; then :
11761 gl_cv_sys_struct_utimbuf=yes
11763 gl_cv_sys_struct_utimbuf=no
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
11768 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
11770 if test $gl_cv_sys_struct_utimbuf = yes; then
11772 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
11792 GL_COND_LIBTOOL_TRUE=
11793 GL_COND_LIBTOOL_FALSE='#'
11795 GL_COND_LIBTOOL_TRUE='#'
11796 GL_COND_LIBTOOL_FALSE=
11799 gl_cond_libtool=false
11811 gl_source_base='lib'
11817 if test $ac_cv_func_alloca_works = no; then
11821 # Define an additional variable used in the Makefile substitution.
11822 if test $ac_cv_working_alloca_h = yes; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11824 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11825 if test "${gl_cv_rpl_alloca+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11832 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11838 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11839 gl_cv_rpl_alloca=yes
11841 gl_cv_rpl_alloca=no
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11848 $as_echo "$gl_cv_rpl_alloca" >&6; }
11849 if test $gl_cv_rpl_alloca = yes; then
11851 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible calloc" >&5
11863 $as_echo_n "checking for GNU libc compatible calloc... " >&6; }
11864 if test "${ac_cv_func_calloc_0_nonnull+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
11867 if test "$cross_compiling" = yes; then :
11868 ac_cv_func_calloc_0_nonnull=no
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11872 $ac_includes_default
11876 exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));
11881 if ac_fn_c_try_run "$LINENO"; then :
11882 ac_cv_func_calloc_0_nonnull=yes
11884 ac_cv_func_calloc_0_nonnull=no
11886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11887 conftest.$ac_objext conftest.beam conftest.$ac_ext
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
11892 $as_echo "$ac_cv_func_calloc_0_nonnull" >&6; }
11893 if test $ac_cv_func_calloc_0_nonnull = yes; then :
11895 $as_echo "#define HAVE_CALLOC 1" >>confdefs.h
11898 $as_echo "#define HAVE_CALLOC 0" >>confdefs.h
11908 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
11911 $as_echo "#define calloc rpl_calloc" >>confdefs.h
11918 if test $gl_cv_func_malloc_posix = yes; then
11919 HAVE_CALLOC_POSIX=1
11921 $as_echo "#define HAVE_CALLOC_POSIX 1" >>confdefs.h
11932 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
11934 HAVE_CALLOC_POSIX=0
11940 GNULIB_CALLOC_POSIX=1
11945 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
11946 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
11948 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
11949 # programs in the package would end up linked with that potentially-shared
11950 # library, inducing unnecessary run-time overhead.
11953 gl_saved_libs=$LIBS
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11955 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11956 if test "${ac_cv_search_clock_gettime+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11959 ac_func_search_save_LIBS=$LIBS
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11969 char clock_gettime ();
11973 return clock_gettime ();
11978 for ac_lib in '' rt posix4; do
11979 if test -z "$ac_lib"; then
11980 ac_res="none required"
11983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 ac_cv_search_clock_gettime=$ac_res
11988 rm -f core conftest.err conftest.$ac_objext \
11990 if test "${ac_cv_search_clock_gettime+set}" = set; then :
11994 if test "${ac_cv_search_clock_gettime+set}" = set; then :
11997 ac_cv_search_clock_gettime=no
11999 rm conftest.$ac_ext
12000 LIBS=$ac_func_search_save_LIBS
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12003 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12004 ac_res=$ac_cv_search_clock_gettime
12005 if test "$ac_res" != no; then :
12006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12007 test "$ac_cv_search_clock_gettime" = "none required" ||
12008 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
12011 for ac_func in clock_gettime clock_settime
12013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12015 eval as_val=\$$as_ac_var
12016 if test "x$as_val" = x""yes; then :
12017 cat >>confdefs.h <<_ACEOF
12018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12024 LIBS=$gl_saved_libs
12042 gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
12049 $as_echo "#define GNULIB_CLOSE_STREAM 1" >>confdefs.h
12061 gl_LIBOBJS="$gl_LIBOBJS closein.$ac_objext"
12075 gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
12084 if test $ac_cv_func_dup2 = no; then
12094 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12098 $as_echo_n "checking whether dup2 works... " >&6; }
12099 if test "${gl_cv_func_dup2_works+set}" = set; then :
12100 $as_echo_n "(cached) " >&6
12102 if test "$cross_compiling" = yes; then :
12104 mingw*) # on this platform, dup2 always returns 0 for success
12105 gl_cv_func_dup2_works=no;;
12106 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
12107 gl_cv_func_dup2_works=no;;
12108 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12109 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12110 gl_cv_func_dup2_works=no;;
12111 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12112 gl_cv_func_dup2_works=no;;
12113 *) gl_cv_func_dup2_works=yes;;
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12119 #include <unistd.h>
12124 if (dup2 (1, 1) == 0)
12127 if (dup2 (0, 0) != -1)
12129 /* Many gnulib modules require POSIX conformance of EBADF. */
12130 if (dup2 (1, 1000000) == -1 && errno != EBADF)
12139 if ac_fn_c_try_run "$LINENO"; then :
12140 gl_cv_func_dup2_works=yes
12142 gl_cv_func_dup2_works=no
12144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12145 conftest.$ac_objext conftest.beam conftest.$ac_ext
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12151 $as_echo "$gl_cv_func_dup2_works" >&6; }
12152 if test "$gl_cv_func_dup2_works" = no; then
12164 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12170 cat >>confdefs.h <<_ACEOF
12171 #define REPLACE_DUP2 $REPLACE_DUP2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
12194 $as_echo_n "checking for error_at_line... " >&6; }
12195 if test "${ac_cv_lib_error_at_line+set}" = set; then :
12196 $as_echo_n "(cached) " >&6
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12204 error_at_line (0, 0, "", 0, "an error occurred");
12209 if ac_fn_c_try_link "$LINENO"; then :
12210 ac_cv_lib_error_at_line=yes
12212 ac_cv_lib_error_at_line=no
12214 rm -f core conftest.err conftest.$ac_objext \
12215 conftest$ac_exeext conftest.$ac_ext
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
12218 $as_echo "$ac_cv_lib_error_at_line" >&6; }
12219 if test $ac_cv_lib_error_at_line = no; then
12228 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
12239 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
12243 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
12254 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
12274 if test $gl_cv_have_include_next = yes; then
12275 gl_cv_next_fcntl_h='<'fcntl.h'>'
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
12278 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
12279 if test "${gl_cv_next_fcntl_h+set}" = set; then :
12280 $as_echo_n "(cached) " >&6
12283 if test $ac_cv_header_fcntl_h = yes; then
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12290 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12291 *) gl_absname_cpp="$ac_cpp" ;;
12293 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12294 sed -n '\#/fcntl.h#{
12295 s#.*"\(.*/fcntl.h\)".*#\1#
12301 gl_cv_next_fcntl_h='<'fcntl.h'>'
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
12306 $as_echo "$gl_cv_next_fcntl_h" >&6; }
12308 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
12310 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12312 gl_next_as_first_directive='<'fcntl.h'>'
12314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12315 gl_next_as_first_directive=$gl_cv_next_fcntl_h
12317 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
12333 gl_LIBOBJS="$gl_LIBOBJS open-safer.$ac_objext"
12343 gl_LIBOBJS="$gl_LIBOBJS creat-safer.$ac_objext"
12345 # Prerequisites of lib/open-safer.c.
12350 $as_echo "#define GNULIB_FCNTL_SAFER 1" >>confdefs.h
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
12355 $as_echo_n "checking whether fflush works on input streams... " >&6; }
12356 if test "${gl_cv_func_fflush_stdin+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12359 echo hello world > conftest.txt
12360 if test "$cross_compiling" = yes; then :
12361 gl_cv_func_fflush_stdin=no
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12367 #include <unistd.h>
12372 FILE *f = fopen ("conftest.txt", "r");
12379 if (fd < 0 || fread (buffer, 1, 5, f) != 5)
12381 /* For deterministic results, ensure f read a bigger buffer. */
12382 if (lseek (fd, 0, SEEK_CUR) == 5)
12384 /* POSIX requires fflush-fseek to set file offset of fd. This fails
12385 on BSD systems and on mingw. */
12386 if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
12388 if (lseek (fd, 0, SEEK_CUR) != 5)
12390 /* Verify behaviour of fflush after ungetc. See
12391 <http://www.opengroup.org/austin/aardvark/latest/xshbug3.txt> */
12392 /* Verify behaviour of fflush after a backup ungetc. This fails on
12397 if (fgetc (f) != c)
12399 /* Verify behaviour of fflush after a non-backup ungetc. This fails
12400 on glibc 2.8 and on BSD systems. */
12404 if (fgetc (f) != c)
12412 if ac_fn_c_try_run "$LINENO"; then :
12413 gl_cv_func_fflush_stdin=yes
12415 gl_cv_func_fflush_stdin=no
12417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12418 conftest.$ac_objext conftest.beam conftest.$ac_ext
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
12425 $as_echo "$gl_cv_func_fflush_stdin" >&6; }
12426 if test $gl_cv_func_fflush_stdin = no; then
12436 gl_LIBOBJS="$gl_LIBOBJS fflush.$ac_objext"
12446 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
12475 if test $gl_cv_have_include_next = yes; then
12476 gl_cv_next_float_h='<'float.h'>'
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12479 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12480 if test "${gl_cv_next_float_h+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12484 if test $ac_cv_header_float_h = yes; then
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12491 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12492 *) gl_absname_cpp="$ac_cpp" ;;
12494 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12495 sed -n '\#/float.h#{
12496 s#.*"\(.*/float.h\)".*#\1#
12502 gl_cv_next_float_h='<'float.h'>'
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12507 $as_echo "$gl_cv_next_float_h" >&6; }
12509 NEXT_FLOAT_H=$gl_cv_next_float_h
12511 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12512 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12513 gl_next_as_first_directive='<'float.h'>'
12515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12516 gl_next_as_first_directive=$gl_cv_next_float_h
12518 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12530 # include <stdio.h>
12531 # if HAVE_STDIO_EXT_H
12532 # include <stdio_ext.h>
12535 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
12537 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
12543 cat >>confdefs.h <<_ACEOF
12544 #define HAVE_DECL___FPENDING $ac_have_decl
12547 if test $ac_cv_func___fpending = no; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
12549 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
12550 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
12551 $as_echo_n "(cached) " >&6
12557 'fp->_IO_write_ptr - fp->_IO_write_base' \
12559 '# traditional Unix' \
12560 'fp->_ptr - fp->_base' \
12563 'fp->_p - fp->_bf._base' \
12565 '# SCO, Unixware' \
12566 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
12569 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
12572 'fp->__bufp - fp->__buffer' \
12574 '# old glibc iostream?' \
12575 'fp->_pptr - fp->_pbase' \
12578 'fp->_ptr - fp->_buffer' \
12581 '(*fp)->_ptr - (*fp)->_base' \
12583 '# e.g., DGUX R4.11; the info is not available' \
12587 # Skip each embedded comment.
12588 case "$ac_expr" in '#'*) continue;; esac
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12596 FILE *fp = stdin; (void) ($ac_expr);
12601 if ac_fn_c_try_compile "$LINENO"; then :
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 test "$fp_done" = yes && break
12609 ac_cv_sys_pending_output_n_bytes=$ac_expr
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
12614 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
12616 cat >>confdefs.h <<_ACEOF
12617 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
12628 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
12647 gl_cv_func_fprintf_posix=no
12648 case "$gl_cv_func_printf_sizes_c99" in
12650 case "$gl_cv_func_printf_long_double" in
12652 case "$gl_cv_func_printf_infinite" in
12654 case "$gl_cv_func_printf_infinite_long_double" in
12656 case "$gl_cv_func_printf_directive_a" in
12658 case "$gl_cv_func_printf_directive_f" in
12660 case "$gl_cv_func_printf_directive_n" in
12662 case "$gl_cv_func_printf_directive_ls" in
12664 case "$gl_cv_func_printf_positions" in
12666 case "$gl_cv_func_printf_flag_grouping" in
12668 case "$gl_cv_func_printf_flag_leftadjust" in
12670 case "$gl_cv_func_printf_flag_zero" in
12672 case "$gl_cv_func_printf_precision" in
12674 case "$gl_cv_func_printf_enomem" in
12676 # fprintf exists and is
12677 # already POSIX compliant.
12678 gl_cv_func_fprintf_posix=yes
12707 if test $gl_cv_func_fprintf_posix = no; then
12711 case "$gl_cv_func_printf_infinite" in
12716 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
12724 case "$gl_cv_func_printf_long_double" in
12726 case "$gl_cv_func_printf_infinite_long_double" in
12731 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
12740 case "$gl_cv_func_printf_directive_a" in
12745 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
12747 for ac_func in nl_langinfo
12749 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
12750 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
12751 cat >>confdefs.h <<_ACEOF
12752 #define HAVE_NL_LANGINFO 1
12763 case "$gl_cv_func_printf_directive_f" in
12768 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
12775 case "$gl_cv_func_printf_directive_ls" in
12780 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
12787 case "$gl_cv_func_printf_flag_grouping" in
12792 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
12799 case "$gl_cv_func_printf_flag_leftadjust" in
12804 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
12811 case "$gl_cv_func_printf_flag_zero" in
12816 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
12823 case "$gl_cv_func_printf_precision" in
12828 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
12831 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
12834 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
12841 case "$gl_cv_func_printf_enomem" in
12846 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
12849 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
12852 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
12867 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
12877 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
12887 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
12897 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
12899 if test $ac_cv_func_vasnprintf = yes; then
12901 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
12914 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
12915 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
12919 $as_echo "#define ptrdiff_t long" >>confdefs.h
12940 gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
12944 $as_echo "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
12952 GNULIB_FPRINTF_POSIX=1
12958 ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
12960 if test "x$ac_cv_have_decl_fpurge" = x""yes; then :
12966 cat >>confdefs.h <<_ACEOF
12967 #define HAVE_DECL_FPURGE $ac_have_decl
12970 if test "x$ac_cv_func_fpurge" = xyes; then
12971 # Detect BSD bug. Only cygwin 1.7 is known to be immune.
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5
12973 $as_echo_n "checking whether fpurge works... " >&6; }
12974 if test "${gl_cv_func_fpurge_works+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12977 if test "$cross_compiling" = yes; then :
12978 gl_cv_func_fpurge_works='guessing no'
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12987 FILE *f = fopen ("conftest.txt", "w+");
12989 if (fputc ('a', f) != 'a') return 2;
12991 if (fgetc (f) != 'a') return 3;
12992 if (fgetc (f) != EOF) return 4;
12993 if (fpurge (f) != 0) return 5;
12994 if (putc ('b', f) != 'b') return 6;
12995 if (fclose (f) != 0) return 7;
12996 if ((f = fopen ("conftest.txt", "r")) == NULL) return 8;
12997 if (fgetc (f) != 'a') return 9;
12998 if (fgetc (f) != 'b') return 10;
12999 if (fgetc (f) != EOF) return 11;
13000 if (fclose (f) != 0) return 12;
13001 if (remove ("conftest.txt") != 0) return 13;
13007 if ac_fn_c_try_run "$LINENO"; then :
13008 gl_cv_func_fpurge_works=yes
13010 gl_cv_func_fpurge_works=no
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13013 conftest.$ac_objext conftest.beam conftest.$ac_ext
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5
13018 $as_echo "$gl_cv_func_fpurge_works" >&6; }
13019 if test "x$gl_cv_func_fpurge_works" != xyes; then
13029 gl_LIBOBJS="$gl_LIBOBJS fpurge.$ac_objext"
13041 gl_LIBOBJS="$gl_LIBOBJS fpurge.$ac_objext"
13044 if test "x$ac_cv_have_decl_fpurge" = xno; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
13058 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
13059 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13070 int e; return frexp (x, &e) > 0;
13075 if ac_fn_c_try_link "$LINENO"; then :
13076 gl_cv_func_frexp_no_libm=yes
13078 gl_cv_func_frexp_no_libm=no
13080 rm -f core conftest.err conftest.$ac_objext \
13081 conftest$ac_exeext conftest.$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
13085 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
13086 if test $gl_cv_func_frexp_no_libm = yes; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13090 $as_echo_n "checking whether frexp works... " >&6; }
13091 if test "${gl_cv_func_frexp_works+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13095 if test "$cross_compiling" = yes; then :
13097 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13098 *) gl_cv_func_frexp_works="guessing yes";;
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13107 #include <string.h>
13112 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13113 So we use -zero instead. */
13115 /* Test on denormalized numbers. */
13116 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13121 double y = frexp (x, &exp);
13122 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13123 On NetBSD: y = 0.75. Correct: y = 0.5. */
13127 /* Test on infinite numbers. */
13131 double y = frexp (x, &exp);
13135 /* Test on negative zero. */
13139 double y = frexp (x, &exp);
13140 if (memcmp (&y, &x, sizeof x))
13146 if ac_fn_c_try_run "$LINENO"; then :
13147 gl_cv_func_frexp_works=yes
13149 gl_cv_func_frexp_works=no
13151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13152 conftest.$ac_objext conftest.beam conftest.$ac_ext
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13158 $as_echo "$gl_cv_func_frexp_works" >&6; }
13160 case "$gl_cv_func_frexp_works" in
13161 *yes) gl_func_frexp_no_libm=yes ;;
13162 *) gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
13165 gl_func_frexp_no_libm=no
13168 if test $gl_func_frexp_no_libm = yes; then
13170 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
13181 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13192 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13193 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13204 int e; return frexpl (x, &e) > 0;
13209 if ac_fn_c_try_link "$LINENO"; then :
13210 gl_cv_func_frexpl_no_libm=yes
13212 gl_cv_func_frexpl_no_libm=no
13214 rm -f core conftest.err conftest.$ac_objext \
13215 conftest$ac_exeext conftest.$ac_ext
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13219 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13220 if test $gl_cv_func_frexpl_no_libm = yes; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13224 $as_echo_n "checking whether frexpl works... " >&6; }
13225 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13226 $as_echo_n "(cached) " >&6
13229 if test "$cross_compiling" = yes; then :
13231 aix* | beos* | darwin* | irix* | mingw* | pw*)
13232 gl_cv_func_frexpl_works="guessing no";;
13233 *) gl_cv_func_frexpl_works="guessing yes";;
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13242 /* Override the values of <float.h>, like done in float.in.h. */
13243 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13244 # undef LDBL_MIN_EXP
13245 # define LDBL_MIN_EXP (-16381)
13247 extern long double frexpl (long double, int *);
13250 volatile long double x;
13251 /* Test on finite numbers that fails on AIX 5.1. */
13259 /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
13260 function returns an invalid (incorrectly normalized) value: it returns
13261 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13262 but the correct result is
13263 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13267 long double y = frexpl (x, &exp);
13268 if (!(exp == 1 && y == 0.505L))
13271 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13272 LDBL_MAX_EXP = 16384.
13273 In the loop end test, we test x against Infinity, rather than comparing
13274 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13277 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13285 /* Test on denormalized numbers. */
13288 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13293 long double y = frexpl (x, &exp);
13294 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13295 exp = -16382, y = 0.5. On MacOS X 10.5: exp = -16384, y = 0.5. */
13296 if (exp != LDBL_MIN_EXP - 1)
13300 /* Test on infinite numbers. */
13304 long double y = frexpl (x, &exp);
13311 if ac_fn_c_try_run "$LINENO"; then :
13312 gl_cv_func_frexpl_works=yes
13314 gl_cv_func_frexpl_works=no
13316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13317 conftest.$ac_objext conftest.beam conftest.$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13323 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13325 case "$gl_cv_func_frexpl_works" in
13326 *yes) gl_func_frexpl_no_libm=yes ;;
13327 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
13330 gl_func_frexpl_no_libm=no
13333 if test $gl_func_frexpl_no_libm = yes; then
13335 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
13337 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13339 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13355 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
13371 $as_echo_n "checking for fseeko... " >&6; }
13372 if test "${gl_cv_func_fseeko+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 [#include <stdio.h>]
13382 fseeko (stdin, 0, 0);
13387 if ac_fn_c_try_link "$LINENO"; then :
13388 gl_cv_func_fseeko=yes
13390 gl_cv_func_fseeko=no
13392 rm -f core conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
13397 $as_echo "$gl_cv_func_fseeko" >&6; }
13398 if test $gl_cv_func_fseeko = no; then
13409 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13415 elif test $gl_cv_var_stdin_large_offset = no; then
13425 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13445 $as_echo_n "checking for ftello... " >&6; }
13446 if test "${gl_cv_func_ftello+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 gl_cv_func_ftello=yes
13464 gl_cv_func_ftello=no
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13471 $as_echo "$gl_cv_func_ftello" >&6; }
13472 if test $gl_cv_func_ftello = no; then
13483 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13488 elif test $gl_cv_var_stdin_large_offset = no; then
13498 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13516 $as_echo "#define GNULIB_GETOPT_GNU 1" >>confdefs.h
13524 if test -n "$gl_replace_getopt"; then :
13530 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13534 GNULIB_UNISTD_H_GETOPT=1
13543 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13553 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13566 for ac_func in getpagesize
13568 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13569 if test "x$ac_cv_func_getpagesize" = x""yes; then :
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_GETPAGESIZE 1
13577 if test $ac_cv_func_getpagesize = no; then
13579 for ac_header in OS.h
13581 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
13582 if test "x$ac_cv_header_OS_h" = x""yes; then :
13583 cat >>confdefs.h <<_ACEOF
13584 #define HAVE_OS_H 1
13591 if test $ac_cv_header_OS_h = yes; then
13594 for ac_header in sys/param.h
13596 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
13597 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_SYS_PARAM_H 1
13606 if test $ac_cv_header_sys_param_h = yes; then
13612 REPLACE_GETPAGESIZE=1
13621 gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
13628 GNULIB_GETPAGESIZE=1
13641 gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13654 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13655 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13656 $as_echo_n "(cached) " >&6
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #include <sys/time.h>
13667 int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
13669 return !(x | c.tv_sec | c.tv_usec);
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 gl_cv_func_gettimeofday_posix_signature=yes
13678 gl_cv_func_gettimeofday_posix_signature=no
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13683 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13689 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13690 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13691 $as_echo_n "(cached) " >&6
13693 if test "$cross_compiling" = yes; then :
13694 gl_cv_func_gettimeofday_clobber=yes
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13698 #include <string.h>
13699 #include <sys/time.h>
13701 #include <stdlib.h>
13709 struct tm saved_lt;
13711 lt = localtime (&t);
13713 gettimeofday (&tv, NULL);
13714 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13720 if ac_fn_c_try_run "$LINENO"; then :
13721 gl_cv_func_gettimeofday_clobber=no
13723 gl_cv_func_gettimeofday_clobber=yes
13725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13726 conftest.$ac_objext conftest.beam conftest.$ac_ext
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13731 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13733 if test $gl_cv_func_gettimeofday_clobber = yes; then
13734 REPLACE_GETTIMEOFDAY=1
13735 SYS_TIME_H=sys/time.h
13745 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13748 for ac_header in sys/timeb.h
13750 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13751 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13752 cat >>confdefs.h <<_ACEOF
13753 #define HAVE_SYS_TIMEB_H 1
13760 for ac_func in _ftime
13762 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13763 if test "x$ac_cv_func__ftime" = x""yes; then :
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE__FTIME 1
13773 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13776 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13780 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13785 if test $gl_cv_func_gettimeofday_posix_signature != yes; then
13786 REPLACE_GETTIMEOFDAY=1
13787 SYS_TIME_H=sys/time.h
13788 if test $gl_cv_func_gettimeofday_clobber != yes; then
13797 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13800 for ac_header in sys/timeb.h
13802 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13803 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13804 cat >>confdefs.h <<_ACEOF
13805 #define HAVE_SYS_TIMEB_H 1
13812 for ac_func in _ftime
13814 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13815 if test "x$ac_cv_func__ftime" = x""yes; then :
13816 cat >>confdefs.h <<_ACEOF
13817 #define HAVE__FTIME 1
13828 if ${MAKE-make} --version /cannot/make/this >/dev/null 2>&1; then
13837 # Autoconf 2.61a.99 and earlier don't support linking a file only
13838 # in VPATH builds. But since GNUmakefile is for maintainer use
13839 # only, it does not matter if we skip the link with older autoconf.
13840 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
13841 # builds, so use a shell variable to bypass this.
13842 GNUmakefile=GNUmakefile
13843 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
13848 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
13849 if test "${gl_cv_c_inline_effective+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13852 if test $ac_cv_c_inline = no; then
13853 gl_cv_c_inline_effective=no
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13861 #ifdef __NO_INLINE__
13862 #error "inline is not effective"
13868 if ac_fn_c_try_compile "$LINENO"; then :
13869 gl_cv_c_inline_effective=yes
13871 gl_cv_c_inline_effective=no
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
13878 $as_echo "$gl_cv_c_inline_effective" >&6; }
13879 if test $gl_cv_c_inline_effective = yes; then
13881 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13888 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13889 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13890 $as_echo_n "(cached) " >&6
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13898 # define isnand(x) __builtin_isnan ((double)(x))
13901 # define isnand(x) isnan ((double)(x))
13912 if ac_fn_c_try_link "$LINENO"; then :
13913 gl_cv_func_isnand_no_libm=yes
13915 gl_cv_func_isnand_no_libm=no
13917 rm -f core conftest.err conftest.$ac_objext \
13918 conftest$ac_exeext conftest.$ac_ext
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13922 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13924 if test $gl_cv_func_isnand_no_libm = yes; then
13926 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13938 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
13942 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
13943 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
13944 $as_echo_n "(cached) " >&6
13947 if test "$cross_compiling" = yes; then :
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13952 #if defined arm || defined __arm || defined __arm__
13957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13958 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
13959 gl_cv_cc_double_expbit0="unknown"
13963 if test "${ac_cv_c_bigendian+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13966 ac_cv_c_bigendian=unknown
13967 # See if we're dealing with a universal compiler.
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 #ifndef __APPLE_CC__
13971 not a universal capable compiler
13976 if ac_fn_c_try_compile "$LINENO"; then :
13978 # Check for potential -arch flags. It is not universal unless
13979 # there are at least two -arch flags with different values.
13982 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13983 if test -n "$ac_prev"; then
13985 i?86 | x86_64 | ppc | ppc64)
13986 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13989 ac_cv_c_bigendian=universal
13995 elif test "x$ac_word" = "x-arch"; then
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 if test $ac_cv_c_bigendian = unknown; then
14002 # See if sys/param.h defines the BYTE_ORDER macro.
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005 #include <sys/types.h>
14006 #include <sys/param.h>
14011 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14012 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14014 bogus endian macros
14021 if ac_fn_c_try_compile "$LINENO"; then :
14022 # It does; now see whether it defined to BIG_ENDIAN or not.
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 #include <sys/types.h>
14026 #include <sys/param.h>
14031 #if BYTE_ORDER != BIG_ENDIAN
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040 ac_cv_c_bigendian=yes
14042 ac_cv_c_bigendian=no
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 if test $ac_cv_c_bigendian = unknown; then
14049 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14052 #include <limits.h>
14057 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14058 bogus endian macros
14065 if ac_fn_c_try_compile "$LINENO"; then :
14066 # It does; now see whether it defined to _BIG_ENDIAN or not.
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069 #include <limits.h>
14074 #ifndef _BIG_ENDIAN
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083 ac_cv_c_bigendian=yes
14085 ac_cv_c_bigendian=no
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 if test $ac_cv_c_bigendian = unknown; then
14092 # Compile a test program.
14093 if test "$cross_compiling" = yes; then :
14094 # Try to guess by grepping values from an object file.
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 short int ascii_mm[] =
14098 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14099 short int ascii_ii[] =
14100 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14101 int use_ascii (int i) {
14102 return ascii_mm[i] + ascii_ii[i];
14104 short int ebcdic_ii[] =
14105 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14106 short int ebcdic_mm[] =
14107 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14108 int use_ebcdic (int i) {
14109 return ebcdic_mm[i] + ebcdic_ii[i];
14116 return use_ascii (foo) == use_ebcdic (foo);
14121 if ac_fn_c_try_compile "$LINENO"; then :
14122 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14123 ac_cv_c_bigendian=yes
14125 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14126 if test "$ac_cv_c_bigendian" = unknown; then
14127 ac_cv_c_bigendian=no
14129 # finding both strings is unlikely to happen, but who knows?
14130 ac_cv_c_bigendian=unknown
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14138 $ac_includes_default
14143 /* Are we little or big endian? From Harbison&Steele. */
14147 char c[sizeof (long int)];
14150 return u.c[sizeof (long int) - 1] == 1;
14156 if ac_fn_c_try_run "$LINENO"; then :
14157 ac_cv_c_bigendian=no
14159 ac_cv_c_bigendian=yes
14161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14162 conftest.$ac_objext conftest.beam conftest.$ac_ext
14168 case $ac_cv_c_bigendian in #(
14170 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
14172 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
14175 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14179 gl_cv_cc_double_expbit0="unknown" ;;
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14192 #include <stddef.h>
14194 #include <string.h>
14196 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14197 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
14198 static unsigned int ored_words[NWORDS];
14199 static unsigned int anded_words[NWORDS];
14200 static void add_to_ored_words (double x)
14204 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
14205 memset (&m, 0, sizeof (memory_double));
14207 for (i = 0; i < NWORDS; i++)
14209 ored_words[i] |= m.word[i];
14210 anded_words[i] &= m.word[i];
14216 FILE *fp = fopen ("conftest.out", "w");
14219 for (j = 0; j < NWORDS; j++)
14220 anded_words[j] = ~ (unsigned int) 0;
14221 add_to_ored_words (0.25);
14222 add_to_ored_words (0.5);
14223 add_to_ored_words (1.0);
14224 add_to_ored_words (2.0);
14225 add_to_ored_words (4.0);
14226 /* Remove bits that are common (e.g. if representation of the first mantissa
14227 bit is explicit). */
14228 for (j = 0; j < NWORDS; j++)
14229 ored_words[j] &= ~anded_words[j];
14230 /* Now find the nonzero word. */
14231 for (j = 0; j < NWORDS; j++)
14232 if (ored_words[j] != 0)
14237 for (i = j + 1; i < NWORDS; i++)
14238 if (ored_words[i] != 0)
14240 fprintf (fp, "unknown");
14241 return (fclose (fp) != 0);
14244 if ((ored_words[j] >> i) & 1)
14246 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14247 return (fclose (fp) != 0);
14250 fprintf (fp, "unknown");
14251 return (fclose (fp) != 0);
14255 if ac_fn_c_try_run "$LINENO"; then :
14256 gl_cv_cc_double_expbit0=`cat conftest.out`
14258 gl_cv_cc_double_expbit0="unknown"
14260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14261 conftest.$ac_objext conftest.beam conftest.$ac_ext
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
14268 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
14269 case "$gl_cv_cc_double_expbit0" in
14271 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14272 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
14274 cat >>confdefs.h <<_ACEOF
14275 #define DBL_EXPBIT0_WORD $word
14279 cat >>confdefs.h <<_ACEOF
14280 #define DBL_EXPBIT0_BIT $bit
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
14292 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
14293 if test "${gl_cv_func_isnanf_no_libm+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14302 # define isnanf(x) __builtin_isnanf ((float)(x))
14303 #elif defined isnan
14305 # define isnanf(x) isnan ((float)(x))
14316 if ac_fn_c_try_link "$LINENO"; then :
14317 gl_cv_func_isnanf_no_libm=yes
14319 gl_cv_func_isnanf_no_libm=no
14321 rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
14326 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
14328 if test $gl_cv_func_isnanf_no_libm = yes; then
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
14333 $as_echo_n "checking whether isnan(float) works... " >&6; }
14334 if test "${gl_cv_func_isnanf_works+set}" = set; then :
14335 $as_echo_n "(cached) " >&6
14338 if test "$cross_compiling" = yes; then :
14340 irix* | solaris*) gl_cv_func_isnanf_works="guessing no";;
14341 *) gl_cv_func_isnanf_works="guessing yes";;
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14351 # define isnanf(x) __builtin_isnanf ((float)(x))
14352 #elif defined isnan
14354 # define isnanf(x) isnan ((float)(x))
14356 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */
14361 static float zero = 0.0f;
14362 return zero / zero;
14365 # define NaN() (0.0f / 0.0f)
14368 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14369 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
14374 if (isnanf (1.0f / 0.0f))
14377 if (!isnanf (NaN ()))
14380 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
14381 /* The isnanf function should be immune against changes in the sign bit and
14382 in the mantissa bits. The xor operation twiddles a bit that can only be
14383 a sign bit or a mantissa bit. */
14384 if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
14387 /* Set the bits below the exponent to 01111...111. */
14388 m.word[0] &= -1U << FLT_EXPBIT0_BIT;
14389 m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
14390 if (!isnanf (m.value))
14398 if ac_fn_c_try_run "$LINENO"; then :
14399 gl_cv_func_isnanf_works=yes
14401 gl_cv_func_isnanf_works=no
14403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14404 conftest.$ac_objext conftest.beam conftest.$ac_ext
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
14410 $as_echo "$gl_cv_func_isnanf_works" >&6; }
14413 if test $gl_cv_func_isnanf_no_libm = yes \
14414 && { case "$gl_cv_func_isnanf_works" in
14420 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
14432 gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
14436 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
14437 if test "${gl_cv_cc_float_expbit0+set}" = set; then :
14438 $as_echo_n "(cached) " >&6
14441 if test "$cross_compiling" = yes; then :
14442 gl_cv_cc_float_expbit0="word 0 bit 23"
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14448 #include <stddef.h>
14450 #include <string.h>
14452 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14453 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
14454 static unsigned int ored_words[NWORDS];
14455 static unsigned int anded_words[NWORDS];
14456 static void add_to_ored_words (float x)
14460 /* Clear it first, in case
14461 sizeof (float) < sizeof (memory_float). */
14462 memset (&m, 0, sizeof (memory_float));
14464 for (i = 0; i < NWORDS; i++)
14466 ored_words[i] |= m.word[i];
14467 anded_words[i] &= m.word[i];
14473 FILE *fp = fopen ("conftest.out", "w");
14476 for (j = 0; j < NWORDS; j++)
14477 anded_words[j] = ~ (unsigned int) 0;
14478 add_to_ored_words (0.25f);
14479 add_to_ored_words (0.5f);
14480 add_to_ored_words (1.0f);
14481 add_to_ored_words (2.0f);
14482 add_to_ored_words (4.0f);
14483 /* Remove bits that are common (e.g. if representation of the first mantissa
14484 bit is explicit). */
14485 for (j = 0; j < NWORDS; j++)
14486 ored_words[j] &= ~anded_words[j];
14487 /* Now find the nonzero word. */
14488 for (j = 0; j < NWORDS; j++)
14489 if (ored_words[j] != 0)
14494 for (i = j + 1; i < NWORDS; i++)
14495 if (ored_words[i] != 0)
14497 fprintf (fp, "unknown");
14498 return (fclose (fp) != 0);
14501 if ((ored_words[j] >> i) & 1)
14503 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14504 return (fclose (fp) != 0);
14507 fprintf (fp, "unknown");
14508 return (fclose (fp) != 0);
14512 if ac_fn_c_try_run "$LINENO"; then :
14513 gl_cv_cc_float_expbit0=`cat conftest.out`
14515 gl_cv_cc_float_expbit0="unknown"
14517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14518 conftest.$ac_objext conftest.beam conftest.$ac_ext
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
14525 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
14526 case "$gl_cv_cc_float_expbit0" in
14528 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14529 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
14531 cat >>confdefs.h <<_ACEOF
14532 #define FLT_EXPBIT0_WORD $word
14536 cat >>confdefs.h <<_ACEOF
14537 #define FLT_EXPBIT0_BIT $bit
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14549 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14550 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14559 # define isnanl(x) __builtin_isnanl ((long double)(x))
14560 #elif defined isnan
14562 # define isnanl(x) isnan ((long double)(x))
14573 if ac_fn_c_try_link "$LINENO"; then :
14574 gl_cv_func_isnanl_no_libm=yes
14576 gl_cv_func_isnanl_no_libm=no
14578 rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14583 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14585 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14586 if test $gl_func_isnanl_no_libm = yes; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14591 $as_echo_n "checking whether isnanl works... " >&6; }
14592 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14593 $as_echo_n "(cached) " >&6
14596 if test "$cross_compiling" = yes; then :
14597 case "$host_cpu" in
14598 # Guess no on ia64, x86_64, i386.
14599 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
14602 netbsd*) gl_cv_func_isnanl_works="guessing no";;
14603 *) gl_cv_func_isnanl_works="guessing yes";;
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14613 #include <limits.h>
14617 # define isnanl(x) __builtin_isnanl ((long double)(x))
14618 #elif defined isnan
14620 # define isnanl(x) isnan ((long double)(x))
14623 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14624 typedef union { unsigned int word[NWORDS]; long double value; }
14625 memory_long_double;
14626 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14627 runtime type conversion. */
14629 static long double NaNl ()
14632 return zero / zero;
14635 # define NaNl() (0.0L / 0.0L)
14639 memory_long_double m;
14642 if (!isnanl (NaNl ()))
14645 /* The isnanl function should be immune against changes in the sign bit and
14646 in the mantissa bits. The xor operation twiddles a bit that can only be
14647 a sign bit or a mantissa bit (since the exponent never extends to
14650 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14651 for (i = 0; i < NWORDS; i++)
14653 if (!isnanl (m.value))
14656 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
14657 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14658 of 'unsigned int' words. */
14659 # ifdef WORDS_BIGENDIAN
14660 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14661 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14662 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
14663 (unsigned int) (mantlo) << 16 \
14666 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14667 { mantlo, manthi, exponent }
14670 static memory_long_double x =
14671 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14672 if (!isnanl (x.value))
14676 /* Signalling NaN. */
14677 static memory_long_double x =
14678 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14679 if (!isnanl (x.value))
14682 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
14683 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
14684 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
14685 Application Architecture.
14686 Table 5-2 "Floating-Point Register Encodings"
14687 Figure 5-6 "Memory to Floating-Point Register Data Translation"
14689 { /* Pseudo-NaN. */
14690 static memory_long_double x =
14691 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14692 if (!isnanl (x.value))
14695 { /* Pseudo-Infinity. */
14696 static memory_long_double x =
14697 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14698 if (!isnanl (x.value))
14701 { /* Pseudo-Zero. */
14702 static memory_long_double x =
14703 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14704 if (!isnanl (x.value))
14707 { /* Unnormalized number. */
14708 static memory_long_double x =
14709 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14710 if (!isnanl (x.value))
14713 { /* Pseudo-Denormal. */
14714 static memory_long_double x =
14715 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14716 if (!isnanl (x.value))
14724 if ac_fn_c_try_run "$LINENO"; then :
14725 gl_cv_func_isnanl_works=yes
14727 gl_cv_func_isnanl_works=no
14729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14730 conftest.$ac_objext conftest.beam conftest.$ac_ext
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14736 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14738 case "$gl_cv_func_isnanl_works" in
14740 *) gl_func_isnanl_no_libm=no ;;
14743 if test $gl_func_isnanl_no_libm = yes; then
14745 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14757 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14762 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14763 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14767 if test "$cross_compiling" = yes; then :
14769 gl_cv_cc_long_double_expbit0="unknown"
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14776 #include <stddef.h>
14778 #include <string.h>
14780 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14781 typedef union { long double value; unsigned int word[NWORDS]; }
14782 memory_long_double;
14783 static unsigned int ored_words[NWORDS];
14784 static unsigned int anded_words[NWORDS];
14785 static void add_to_ored_words (long double x)
14787 memory_long_double m;
14789 /* Clear it first, in case
14790 sizeof (long double) < sizeof (memory_long_double). */
14791 memset (&m, 0, sizeof (memory_long_double));
14793 for (i = 0; i < NWORDS; i++)
14795 ored_words[i] |= m.word[i];
14796 anded_words[i] &= m.word[i];
14802 FILE *fp = fopen ("conftest.out", "w");
14805 for (j = 0; j < NWORDS; j++)
14806 anded_words[j] = ~ (unsigned int) 0;
14807 add_to_ored_words (0.25L);
14808 add_to_ored_words (0.5L);
14809 add_to_ored_words (1.0L);
14810 add_to_ored_words (2.0L);
14811 add_to_ored_words (4.0L);
14812 /* Remove bits that are common (e.g. if representation of the first mantissa
14813 bit is explicit). */
14814 for (j = 0; j < NWORDS; j++)
14815 ored_words[j] &= ~anded_words[j];
14816 /* Now find the nonzero word. */
14817 for (j = 0; j < NWORDS; j++)
14818 if (ored_words[j] != 0)
14823 for (i = j + 1; i < NWORDS; i++)
14824 if (ored_words[i] != 0)
14826 fprintf (fp, "unknown");
14827 return (fclose (fp) != 0);
14830 if ((ored_words[j] >> i) & 1)
14832 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14833 return (fclose (fp) != 0);
14836 fprintf (fp, "unknown");
14837 return (fclose (fp) != 0);
14841 if ac_fn_c_try_run "$LINENO"; then :
14842 gl_cv_cc_long_double_expbit0=`cat conftest.out`
14844 gl_cv_cc_long_double_expbit0="unknown"
14846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14847 conftest.$ac_objext conftest.beam conftest.$ac_ext
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14854 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14855 case "$gl_cv_cc_long_double_expbit0" in
14857 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14858 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14860 cat >>confdefs.h <<_ACEOF
14861 #define LDBL_EXPBIT0_WORD $word
14865 cat >>confdefs.h <<_ACEOF
14866 #define LDBL_EXPBIT0_BIT $bit
14883 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
14889 $as_echo_n "checking whether lseek detects pipes... " >&6; }
14890 if test "${gl_cv_func_lseek_pipe+set}" = set; then :
14891 $as_echo_n "(cached) " >&6
14893 if test $cross_compiling = no; then
14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895 /* end confdefs.h. */
14897 #include <sys/types.h> /* for off_t */
14898 #include <stdio.h> /* for SEEK_CUR */
14899 #include <unistd.h>
14902 /* Exit with success only if stdin is seekable. */
14903 return lseek (0, (off_t)0, SEEK_CUR) < 0;
14906 if ac_fn_c_try_link "$LINENO"; then :
14907 if test -s conftest$ac_exeext \
14908 && ./conftest$ac_exeext < conftest.$ac_ext \
14909 && { echo hi | ./conftest$ac_exeext; test $? = 1; }; then
14910 gl_cv_func_lseek_pipe=yes
14912 gl_cv_func_lseek_pipe=no
14915 gl_cv_func_lseek_pipe=no
14917 rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14923 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
14924 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes. */
14928 if ac_fn_c_try_compile "$LINENO"; then :
14929 gl_cv_func_lseek_pipe=yes
14931 gl_cv_func_lseek_pipe=no
14933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
14937 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
14938 if test $gl_cv_func_lseek_pipe = no; then
14948 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
14953 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
14965 if test $ac_cv_func_lstat = yes; then
14967 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14970 # Prerequisites of lib/lstat.c.
14980 for ac_header in stdlib.h
14982 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14983 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
14984 cat >>confdefs.h <<_ACEOF
14985 #define HAVE_STDLIB_H 1
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
14993 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14994 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14997 if test "$cross_compiling" = yes; then :
14998 ac_cv_func_malloc_0_nonnull=no
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15003 # include <stdlib.h>
15011 return ! malloc (0);
15016 if ac_fn_c_try_run "$LINENO"; then :
15017 ac_cv_func_malloc_0_nonnull=yes
15019 ac_cv_func_malloc_0_nonnull=no
15021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15022 conftest.$ac_objext conftest.beam conftest.$ac_ext
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15027 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15028 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15030 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15033 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15043 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15046 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15052 $as_echo "#define GNULIB_MALLOC_GNU 1" >>confdefs.h
15056 if test $gl_cv_func_malloc_posix = yes; then
15057 HAVE_MALLOC_POSIX=1
15059 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15070 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15072 HAVE_MALLOC_POSIX=0
15078 GNULIB_MALLOC_POSIX=1
15088 if test $gl_cv_have_include_next = yes; then
15089 gl_cv_next_math_h='<'math.h'>'
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
15092 $as_echo_n "checking absolute name of <math.h>... " >&6; }
15093 if test "${gl_cv_next_math_h+set}" = set; then :
15094 $as_echo_n "(cached) " >&6
15097 if test $ac_cv_header_math_h = yes; then
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15104 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15105 *) gl_absname_cpp="$ac_cpp" ;;
15107 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15108 sed -n '\#/math.h#{
15109 s#.*"\(.*/math.h\)".*#\1#
15115 gl_cv_next_math_h='<'math.h'>'
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
15120 $as_echo "$gl_cv_next_math_h" >&6; }
15122 NEXT_MATH_H=$gl_cv_next_math_h
15124 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15126 gl_next_as_first_directive='<'math.h'>'
15128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15129 gl_next_as_first_directive=$gl_cv_next_math_h
15131 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
15136 $as_echo_n "checking whether NAN macro works... " >&6; }
15137 if test "${gl_cv_header_math_nan_works+set}" = set; then :
15138 $as_echo_n "(cached) " >&6
15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15146 /* Solaris 10 has a broken definition of NAN. Other platforms
15147 fail to provide NAN, or provide it only in C99 mode; this
15148 test only needs to fail when NAN is provided but wrong. */
15158 if ac_fn_c_try_compile "$LINENO"; then :
15159 gl_cv_header_math_nan_works=yes
15161 gl_cv_header_math_nan_works=no
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
15166 $as_echo "$gl_cv_header_math_nan_works" >&6; }
15167 if test $gl_cv_header_math_nan_works = no; then
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
15171 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
15172 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
15173 $as_echo_n "(cached) " >&6
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15181 /* Solaris 10 has a broken definition of HUGE_VAL. */
15182 double d = HUGE_VAL;
15188 if ac_fn_c_try_compile "$LINENO"; then :
15189 gl_cv_header_math_huge_val_works=yes
15191 gl_cv_header_math_huge_val_works=no
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
15196 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
15197 if test $gl_cv_header_math_huge_val_works = no; then
15211 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15216 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15217 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15218 $as_echo_n "(cached) " >&6
15222 # Guess no on AIX and OSF/1.
15223 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15224 # Guess yes otherwise.
15225 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15227 if test $LOCALE_JA != none; then
15228 if test "$cross_compiling" = yes; then :
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15234 #include <locale.h>
15235 #include <string.h>
15239 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15241 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15245 memset (&state, '\0', sizeof (mbstate_t));
15246 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15247 if (mbsinit (&state))
15253 if ac_fn_c_try_run "$LINENO"; then :
15254 gl_cv_func_mbrtowc_incomplete_state=yes
15256 gl_cv_func_mbrtowc_incomplete_state=no
15258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15259 conftest.$ac_objext conftest.beam conftest.$ac_ext
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15266 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15272 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15273 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15274 $as_echo_n "(cached) " >&6
15278 # Guess no on Solaris 8.
15279 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15280 # Guess yes otherwise.
15281 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15283 if test $LOCALE_ZH_CN != none; then
15284 if test "$cross_compiling" = yes; then :
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15290 #include <locale.h>
15291 #include <stdlib.h>
15292 #include <string.h>
15296 /* This fails on Solaris 8:
15297 mbrtowc returns 2, and sets wc to 0x00F0.
15298 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15299 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15301 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15305 memset (&state, '\0', sizeof (mbstate_t));
15306 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15307 && mbtowc (&wc, input + 3, 6) == 4)
15313 if ac_fn_c_try_run "$LINENO"; then :
15314 gl_cv_func_mbrtowc_sanitycheck=yes
15316 gl_cv_func_mbrtowc_sanitycheck=no
15318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15319 conftest.$ac_objext conftest.beam conftest.$ac_ext
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15326 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15328 REPLACE_MBSTATE_T=0
15329 case "$gl_cv_func_mbrtowc_incomplete_state" in
15331 *) REPLACE_MBSTATE_T=1 ;;
15333 case "$gl_cv_func_mbrtowc_sanitycheck" in
15335 *) REPLACE_MBSTATE_T=1 ;;
15338 REPLACE_MBSTATE_T=1
15340 if test $REPLACE_MBSTATE_T = 1; then
15347 if test $REPLACE_MBSTATE_T = 1; then
15351 if test $ac_cv_func_mbrtowc = no; then
15354 if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15359 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15360 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15365 # Guess no on OSF/1.
15366 osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15367 # Guess yes otherwise.
15368 *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15370 if test $LOCALE_FR_UTF8 != none; then
15371 if test "$cross_compiling" = yes; then :
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15377 #include <locale.h>
15378 #include <string.h>
15382 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15388 memset (&state, '\0', sizeof (mbstate_t));
15389 wc = (wchar_t) 0xBADFACE;
15390 mbrtowc (&wc, NULL, 5, &state);
15391 /* Check that wc was not modified. */
15392 if (wc != (wchar_t) 0xBADFACE)
15398 if ac_fn_c_try_run "$LINENO"; then :
15399 gl_cv_func_mbrtowc_null_arg=yes
15401 gl_cv_func_mbrtowc_null_arg=no
15403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15404 conftest.$ac_objext conftest.beam conftest.$ac_ext
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15411 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15418 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15419 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15420 $as_echo_n "(cached) " >&6
15424 # Guess no on HP-UX and Solaris.
15425 hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15426 # Guess yes otherwise.
15427 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15429 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15430 if test "$cross_compiling" = yes; then :
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15436 #include <locale.h>
15437 #include <string.h>
15441 /* This fails on Solaris. */
15442 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15444 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15448 memset (&state, '\0', sizeof (mbstate_t));
15449 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15452 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15456 /* This fails on HP-UX 11.11. */
15457 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15459 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15463 memset (&state, '\0', sizeof (mbstate_t));
15464 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15467 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15474 if ac_fn_c_try_run "$LINENO"; then :
15475 gl_cv_func_mbrtowc_retval=yes
15477 gl_cv_func_mbrtowc_retval=no
15479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15480 conftest.$ac_objext conftest.beam conftest.$ac_ext
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15487 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15493 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15494 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15495 $as_echo_n "(cached) " >&6
15499 # Guess no on Solaris 8 and 9.
15500 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15501 # Guess yes otherwise.
15502 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15504 if test $LOCALE_ZH_CN != none; then
15505 if test "$cross_compiling" = yes; then :
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15511 #include <locale.h>
15512 #include <string.h>
15516 /* This fails on Solaris 8 and 9. */
15517 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15522 memset (&state, '\0', sizeof (mbstate_t));
15523 if (mbrtowc (&wc, "", 1, &state) != 0)
15529 if ac_fn_c_try_run "$LINENO"; then :
15530 gl_cv_func_mbrtowc_nul_retval=yes
15532 gl_cv_func_mbrtowc_nul_retval=no
15534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15535 conftest.$ac_objext conftest.beam conftest.$ac_ext
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15542 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15544 case "$gl_cv_func_mbrtowc_null_arg" in
15547 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15552 case "$gl_cv_func_mbrtowc_retval" in
15555 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15560 case "$gl_cv_func_mbrtowc_nul_retval" in
15563 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15569 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15582 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15603 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15608 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15609 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15610 $as_echo_n "(cached) " >&6
15614 # Guess no on AIX and OSF/1.
15615 osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15616 # Guess yes otherwise.
15617 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15619 if test $LOCALE_JA != none; then
15620 if test "$cross_compiling" = yes; then :
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15626 #include <locale.h>
15627 #include <string.h>
15631 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15633 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15637 memset (&state, '\0', sizeof (mbstate_t));
15638 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15639 if (mbsinit (&state))
15645 if ac_fn_c_try_run "$LINENO"; then :
15646 gl_cv_func_mbrtowc_incomplete_state=yes
15648 gl_cv_func_mbrtowc_incomplete_state=no
15650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15651 conftest.$ac_objext conftest.beam conftest.$ac_ext
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15658 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15664 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15665 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15666 $as_echo_n "(cached) " >&6
15670 # Guess no on Solaris 8.
15671 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15672 # Guess yes otherwise.
15673 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15675 if test $LOCALE_ZH_CN != none; then
15676 if test "$cross_compiling" = yes; then :
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15682 #include <locale.h>
15683 #include <stdlib.h>
15684 #include <string.h>
15688 /* This fails on Solaris 8:
15689 mbrtowc returns 2, and sets wc to 0x00F0.
15690 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15691 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15693 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15697 memset (&state, '\0', sizeof (mbstate_t));
15698 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15699 && mbtowc (&wc, input + 3, 6) == 4)
15705 if ac_fn_c_try_run "$LINENO"; then :
15706 gl_cv_func_mbrtowc_sanitycheck=yes
15708 gl_cv_func_mbrtowc_sanitycheck=no
15710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15711 conftest.$ac_objext conftest.beam conftest.$ac_ext
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15718 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15720 REPLACE_MBSTATE_T=0
15721 case "$gl_cv_func_mbrtowc_incomplete_state" in
15723 *) REPLACE_MBSTATE_T=1 ;;
15725 case "$gl_cv_func_mbrtowc_sanitycheck" in
15727 *) REPLACE_MBSTATE_T=1 ;;
15730 REPLACE_MBSTATE_T=1
15732 if test $REPLACE_MBSTATE_T = 1; then
15739 if test $REPLACE_MBSTATE_T = 1; then
15743 if test $ac_cv_func_mbsinit = no; then
15746 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15759 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15791 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
15802 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
15803 if test "${gl_cv_func_open_slash+set}" = set; then :
15804 $as_echo_n "(cached) " >&6
15807 if test "$cross_compiling" = yes; then :
15810 solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
15811 hpux*) gl_cv_func_open_slash="guessing no" ;;
15812 *) gl_cv_func_open_slash="guessing yes" ;;
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15821 # include <unistd.h>
15825 return open ("conftest.sl/", O_CREAT, 0600) >= 0;
15828 if ac_fn_c_try_run "$LINENO"; then :
15829 gl_cv_func_open_slash=yes
15831 gl_cv_func_open_slash=no
15833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15834 conftest.$ac_objext conftest.beam conftest.$ac_ext
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
15841 $as_echo "$gl_cv_func_open_slash" >&6; }
15842 case "$gl_cv_func_open_slash" in
15845 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
15858 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
15873 $as_echo "#define GNULIB_OPEN 1" >>confdefs.h
15883 if test -n "$ERRNO_H"; then
15893 gl_LIBOBJS="$gl_LIBOBJS perror.$ac_objext"
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp can be used without linking with libm" >&5
15903 $as_echo_n "checking whether frexp can be used without linking with libm... " >&6; }
15904 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
15905 $as_echo_n "(cached) " >&6
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15916 return frexp (x, &y) < 1;
15921 if ac_fn_c_try_link "$LINENO"; then :
15922 gl_cv_func_frexp_no_libm=yes
15924 gl_cv_func_frexp_no_libm=no
15926 rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
15931 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
15932 if test $gl_cv_func_frexp_no_libm = yes; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
15936 $as_echo_n "checking whether frexp works... " >&6; }
15937 if test "${gl_cv_func_frexp_works+set}" = set; then :
15938 $as_echo_n "(cached) " >&6
15941 if test "$cross_compiling" = yes; then :
15943 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
15944 *) gl_cv_func_frexp_works="guessing yes";;
15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15953 #include <string.h>
15958 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15959 So we use -zero instead. */
15961 /* Test on denormalized numbers. */
15962 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
15967 double y = frexp (x, &exp);
15968 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
15969 On NetBSD: y = 0.75. Correct: y = 0.5. */
15973 /* Test on infinite numbers. */
15977 double y = frexp (x, &exp);
15981 /* Test on negative zero. */
15985 double y = frexp (x, &exp);
15986 if (memcmp (&y, &x, sizeof x))
15992 if ac_fn_c_try_run "$LINENO"; then :
15993 gl_cv_func_frexp_works=yes
15995 gl_cv_func_frexp_works=no
15997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15998 conftest.$ac_objext conftest.beam conftest.$ac_ext
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
16004 $as_echo "$gl_cv_func_frexp_works" >&6; }
16006 case "$gl_cv_func_frexp_works" in
16009 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
16016 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
16017 if test "${gl_cv_func_ldexp_no_libm+set}" = set; then :
16018 $as_echo_n "(cached) " >&6
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16029 return ldexp (x, y) < 1;
16034 if ac_fn_c_try_link "$LINENO"; then :
16035 gl_cv_func_ldexp_no_libm=yes
16037 gl_cv_func_ldexp_no_libm=no
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
16044 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
16045 if test $gl_cv_func_ldexp_no_libm = yes; then
16047 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl can be used without linking with libm" >&5
16054 $as_echo_n "checking whether frexpl can be used without linking with libm... " >&6; }
16055 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
16056 $as_echo_n "(cached) " >&6
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16067 return frexpl (x, &y) < 1;
16072 if ac_fn_c_try_link "$LINENO"; then :
16073 gl_cv_func_frexpl_no_libm=yes
16075 gl_cv_func_frexpl_no_libm=no
16077 rm -f core conftest.err conftest.$ac_objext \
16078 conftest$ac_exeext conftest.$ac_ext
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
16082 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
16083 if test $gl_cv_func_frexpl_no_libm = yes; then
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
16087 $as_echo_n "checking whether frexpl works... " >&6; }
16088 if test "${gl_cv_func_frexpl_works+set}" = set; then :
16089 $as_echo_n "(cached) " >&6
16092 if test "$cross_compiling" = yes; then :
16094 aix* | beos* | darwin* | irix* | mingw* | pw*)
16095 gl_cv_func_frexpl_works="guessing no";;
16096 *) gl_cv_func_frexpl_works="guessing yes";;
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16105 /* Override the values of <float.h>, like done in float.in.h. */
16106 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
16107 # undef LDBL_MIN_EXP
16108 # define LDBL_MIN_EXP (-16381)
16110 extern long double frexpl (long double, int *);
16113 volatile long double x;
16114 /* Test on finite numbers that fails on AIX 5.1. */
16122 /* Test on finite numbers that fails on MacOS X 10.4, because its frexpl
16123 function returns an invalid (incorrectly normalized) value: it returns
16124 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
16125 but the correct result is
16126 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
16130 long double y = frexpl (x, &exp);
16131 if (!(exp == 1 && y == 0.505L))
16134 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
16135 LDBL_MAX_EXP = 16384.
16136 In the loop end test, we test x against Infinity, rather than comparing
16137 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
16140 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
16148 /* Test on denormalized numbers. */
16151 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
16156 long double y = frexpl (x, &exp);
16157 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
16158 exp = -16382, y = 0.5. On MacOS X 10.5: exp = -16384, y = 0.5. */
16159 if (exp != LDBL_MIN_EXP - 1)
16163 /* Test on infinite numbers. */
16167 long double y = frexpl (x, &exp);
16174 if ac_fn_c_try_run "$LINENO"; then :
16175 gl_cv_func_frexpl_works=yes
16177 gl_cv_func_frexpl_works=no
16179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16180 conftest.$ac_objext conftest.beam conftest.$ac_ext
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
16186 $as_echo "$gl_cv_func_frexpl_works" >&6; }
16188 case "$gl_cv_func_frexpl_works" in
16189 *yes) gl_func_frexpl_no_libm=yes ;;
16190 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
16193 gl_func_frexpl_no_libm=no
16196 if test $gl_func_frexpl_no_libm = yes; then
16198 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
16200 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
16202 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl can be used without linking with libm" >&5
16211 $as_echo_n "checking whether ldexpl can be used without linking with libm... " >&6; }
16212 if test "${gl_cv_func_ldexpl_no_libm+set}" = set; then :
16213 $as_echo_n "(cached) " >&6
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16224 return ldexpl (x, y) < 1;
16229 if ac_fn_c_try_link "$LINENO"; then :
16230 gl_cv_func_ldexpl_no_libm=yes
16232 gl_cv_func_ldexpl_no_libm=no
16234 rm -f core conftest.err conftest.$ac_objext \
16235 conftest$ac_exeext conftest.$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
16239 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
16240 if test $gl_cv_func_ldexpl_no_libm = yes; then
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
16244 $as_echo_n "checking whether ldexpl works... " >&6; }
16245 if test "${gl_cv_func_ldexpl_works+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16249 if test "$cross_compiling" = yes; then :
16251 aix*) gl_cv_func_ldexpl_works="guessing no";;
16252 *) gl_cv_func_ldexpl_works="guessing yes";;
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16260 extern long double ldexpl (long double, int);
16263 volatile long double x1 = 1.0;
16264 volatile long double y1 = ldexpl (x1, -1);
16265 volatile long double x2 = 1.73205L;
16266 volatile long double y2 = ldexpl (x2, 0);
16267 return (y1 != 0.5L) || (y2 != x2);
16270 if ac_fn_c_try_run "$LINENO"; then :
16271 gl_cv_func_ldexpl_works=yes
16273 gl_cv_func_ldexpl_works=no
16275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16276 conftest.$ac_objext conftest.beam conftest.$ac_ext
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
16282 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
16284 case "$gl_cv_func_ldexpl_works" in
16287 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
16289 ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
16291 if test "x$ac_cv_have_decl_ldexpl" = x""yes; then :
16303 if test $gl_cv_func_vfprintf_posix = no; then
16314 gl_LIBOBJS="$gl_LIBOBJS printf.$ac_objext"
16318 $as_echo "#define REPLACE_PRINTF_POSIX 1" >>confdefs.h
16326 GNULIB_PRINTF_POSIX=1
16338 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
16341 for ac_header in stdlib.h
16343 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16344 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_STDLIB_H 1
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16354 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16355 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
16356 $as_echo_n "(cached) " >&6
16358 if test "$cross_compiling" = yes; then :
16359 ac_cv_func_realloc_0_nonnull=no
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16364 # include <stdlib.h>
16372 return ! realloc (0, 0);
16377 if ac_fn_c_try_run "$LINENO"; then :
16378 ac_cv_func_realloc_0_nonnull=yes
16380 ac_cv_func_realloc_0_nonnull=no
16382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16383 conftest.$ac_objext conftest.beam conftest.$ac_ext
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16388 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16389 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16391 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16394 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16404 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
16407 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16413 $as_echo "#define GNULIB_REALLOC_GNU 1" >>confdefs.h
16417 if test $gl_cv_func_malloc_posix = yes; then
16418 HAVE_REALLOC_POSIX=1
16420 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
16431 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
16433 HAVE_REALLOC_POSIX=0
16439 GNULIB_REALLOC_POSIX=1
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
16444 $as_echo_n "checking for signbit macro... " >&6; }
16445 if test "${gl_cv_func_signbit+set}" = set; then :
16446 $as_echo_n "(cached) " >&6
16449 if test "$cross_compiling" = yes; then :
16450 gl_cv_func_signbit="guessing no"
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16456 /* If signbit is defined as a function, don't use it, since calling it for
16457 'float' or 'long double' arguments would involve conversions.
16458 If signbit is not declared at all but exists as a library function, don't
16459 use it, since the prototype may not match.
16460 If signbit is not declared at all but exists as a compiler built-in, don't
16461 use it, since it's preferable to use __builtin_signbit* (no warnings,
16462 no conversions). */
16464 # error "signbit should be a macro"
16466 #include <string.h>
16468 /* Global variables.
16469 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
16470 but cannot constant-fold __builtin_signbitl (variable). */
16476 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16477 So we use -p0f and -p0d instead. */
16482 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
16483 So we use another constant expression instead.
16484 But that expression does not work on other platforms, such as when
16485 cross-compiling to PowerPC on MacOS X 10.5. */
16486 long double p0l = 0.0L;
16487 #if defined __hpux || defined __sgi
16488 long double m0l = -LDBL_MIN * LDBL_MIN;
16490 long double m0l = -p0l;
16495 float plus_inf = 1.0f / p0f;
16496 float minus_inf = -1.0f / p0f;
16497 if (!(!signbit (255.0f)
16498 && signbit (-255.0f)
16500 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
16501 && !signbit (plus_inf)
16502 && signbit (minus_inf)))
16508 double plus_inf = 1.0 / p0d;
16509 double minus_inf = -1.0 / p0d;
16510 if (!(!signbit (255.0)
16511 && signbit (-255.0)
16513 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
16514 && !signbit (plus_inf)
16515 && signbit (minus_inf)))
16521 long double plus_inf = 1.0L / p0l;
16522 long double minus_inf = -1.0L / p0l;
16523 if (!(!signbit (255.0L)
16524 && signbit (-255.0L)
16526 && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
16527 && !signbit (plus_inf)
16528 && signbit (minus_inf)))
16536 if ac_fn_c_try_run "$LINENO"; then :
16537 gl_cv_func_signbit=yes
16539 gl_cv_func_signbit=no
16541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16542 conftest.$ac_objext conftest.beam conftest.$ac_ext
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
16548 $as_echo "$gl_cv_func_signbit" >&6; }
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
16550 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
16551 if test "${gl_cv_func_signbit_gcc+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16555 if test "$cross_compiling" = yes; then :
16556 gl_cv_func_signbit_gcc="guessing no"
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16562 # define signbit(x) \
16563 (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
16564 sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
16565 __builtin_signbitf (x))
16567 # error "signbit should be three compiler built-ins"
16569 #include <string.h>
16571 /* Global variables.
16572 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
16573 but cannot constant-fold __builtin_signbitl (variable). */
16579 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16580 So we use -p0f and -p0d instead. */
16585 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
16586 So we use another constant expression instead.
16587 But that expression does not work on other platforms, such as when
16588 cross-compiling to PowerPC on MacOS X 10.5. */
16589 long double p0l = 0.0L;
16590 #if defined __hpux || defined __sgi
16591 long double m0l = -LDBL_MIN * LDBL_MIN;
16593 long double m0l = -p0l;
16598 float plus_inf = 1.0f / p0f;
16599 float minus_inf = -1.0f / p0f;
16600 if (!(!signbit (255.0f)
16601 && signbit (-255.0f)
16603 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
16604 && !signbit (plus_inf)
16605 && signbit (minus_inf)))
16611 double plus_inf = 1.0 / p0d;
16612 double minus_inf = -1.0 / p0d;
16613 if (!(!signbit (255.0)
16614 && signbit (-255.0)
16616 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
16617 && !signbit (plus_inf)
16618 && signbit (minus_inf)))
16624 long double plus_inf = 1.0L / p0l;
16625 long double minus_inf = -1.0L / p0l;
16626 if (!(!signbit (255.0L)
16627 && signbit (-255.0L)
16629 && (memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l))
16630 && !signbit (plus_inf)
16631 && signbit (minus_inf)))
16639 if ac_fn_c_try_run "$LINENO"; then :
16640 gl_cv_func_signbit_gcc=yes
16642 gl_cv_func_signbit_gcc=no
16644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16645 conftest.$ac_objext conftest.beam conftest.$ac_ext
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
16651 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
16652 if test "$gl_cv_func_signbit_gcc" = yes; then
16653 REPLACE_SIGNBIT_USING_GCC=1
16655 if test "$gl_cv_func_signbit" != yes; then
16665 gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
16675 gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
16685 gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
16690 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
16691 if test "${gl_cv_cc_float_signbit+set}" = set; then :
16692 $as_echo_n "(cached) " >&6
16695 if test "$cross_compiling" = yes; then :
16697 gl_cv_cc_float_signbit="unknown"
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16703 #include <stddef.h>
16706 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16707 typedef union { float value; unsigned int word[NWORDS]; }
16709 static memory_float plus = { 1.0f };
16710 static memory_float minus = { -1.0f };
16715 FILE *fp = fopen ("conftest.out", "w");
16718 /* Find the different bit. */
16720 for (j = 0; j < NWORDS; j++)
16722 unsigned int x = plus.word[j] ^ minus.word[j];
16723 if ((x & (x - 1)) || (x && m))
16725 /* More than one bit difference. */
16726 fprintf (fp, "unknown");
16737 /* No difference. */
16738 fprintf (fp, "unknown");
16741 /* Now m = plus.word[k] ^ ~minus.word[k]. */
16742 if (plus.word[k] & ~minus.word[k])
16744 /* Oh? The sign bit is set in the positive and cleared in the negative
16746 fprintf (fp, "unknown");
16752 fprintf (fp, "word %d bit %d", (int) k, (int) i);
16753 return (fclose (fp) != 0);
16757 if ac_fn_c_try_run "$LINENO"; then :
16758 gl_cv_cc_float_signbit=`cat conftest.out`
16760 gl_cv_cc_float_signbit="unknown"
16762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16763 conftest.$ac_objext conftest.beam conftest.$ac_ext
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
16770 $as_echo "$gl_cv_cc_float_signbit" >&6; }
16771 case "$gl_cv_cc_float_signbit" in
16773 word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16774 bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
16776 cat >>confdefs.h <<_ACEOF
16777 #define FLT_SIGNBIT_WORD $word
16781 cat >>confdefs.h <<_ACEOF
16782 #define FLT_SIGNBIT_BIT $bit
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
16792 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
16793 if test "${gl_cv_cc_double_signbit+set}" = set; then :
16794 $as_echo_n "(cached) " >&6
16797 if test "$cross_compiling" = yes; then :
16799 gl_cv_cc_double_signbit="unknown"
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16805 #include <stddef.h>
16808 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16809 typedef union { double value; unsigned int word[NWORDS]; }
16811 static memory_float plus = { 1.0 };
16812 static memory_float minus = { -1.0 };
16817 FILE *fp = fopen ("conftest.out", "w");
16820 /* Find the different bit. */
16822 for (j = 0; j < NWORDS; j++)
16824 unsigned int x = plus.word[j] ^ minus.word[j];
16825 if ((x & (x - 1)) || (x && m))
16827 /* More than one bit difference. */
16828 fprintf (fp, "unknown");
16839 /* No difference. */
16840 fprintf (fp, "unknown");
16843 /* Now m = plus.word[k] ^ ~minus.word[k]. */
16844 if (plus.word[k] & ~minus.word[k])
16846 /* Oh? The sign bit is set in the positive and cleared in the negative
16848 fprintf (fp, "unknown");
16854 fprintf (fp, "word %d bit %d", (int) k, (int) i);
16855 return (fclose (fp) != 0);
16859 if ac_fn_c_try_run "$LINENO"; then :
16860 gl_cv_cc_double_signbit=`cat conftest.out`
16862 gl_cv_cc_double_signbit="unknown"
16864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16865 conftest.$ac_objext conftest.beam conftest.$ac_ext
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
16872 $as_echo "$gl_cv_cc_double_signbit" >&6; }
16873 case "$gl_cv_cc_double_signbit" in
16875 word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16876 bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
16878 cat >>confdefs.h <<_ACEOF
16879 #define DBL_SIGNBIT_WORD $word
16883 cat >>confdefs.h <<_ACEOF
16884 #define DBL_SIGNBIT_BIT $bit
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
16894 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
16895 if test "${gl_cv_cc_long_double_signbit+set}" = set; then :
16896 $as_echo_n "(cached) " >&6
16899 if test "$cross_compiling" = yes; then :
16901 gl_cv_cc_long_double_signbit="unknown"
16904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905 /* end confdefs.h. */
16907 #include <stddef.h>
16910 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16911 typedef union { long double value; unsigned int word[NWORDS]; }
16913 static memory_float plus = { 1.0L };
16914 static memory_float minus = { -1.0L };
16919 FILE *fp = fopen ("conftest.out", "w");
16922 /* Find the different bit. */
16924 for (j = 0; j < NWORDS; j++)
16926 unsigned int x = plus.word[j] ^ minus.word[j];
16927 if ((x & (x - 1)) || (x && m))
16929 /* More than one bit difference. */
16930 fprintf (fp, "unknown");
16941 /* No difference. */
16942 fprintf (fp, "unknown");
16945 /* Now m = plus.word[k] ^ ~minus.word[k]. */
16946 if (plus.word[k] & ~minus.word[k])
16948 /* Oh? The sign bit is set in the positive and cleared in the negative
16950 fprintf (fp, "unknown");
16956 fprintf (fp, "word %d bit %d", (int) k, (int) i);
16957 return (fclose (fp) != 0);
16961 if ac_fn_c_try_run "$LINENO"; then :
16962 gl_cv_cc_long_double_signbit=`cat conftest.out`
16964 gl_cv_cc_long_double_signbit="unknown"
16966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16967 conftest.$ac_objext conftest.beam conftest.$ac_ext
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
16974 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
16975 case "$gl_cv_cc_long_double_signbit" in
16977 word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16978 bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
16980 cat >>confdefs.h <<_ACEOF
16981 #define LDBL_SIGNBIT_WORD $word
16985 cat >>confdefs.h <<_ACEOF
16986 #define LDBL_SIGNBIT_BIT $bit
16993 if test "$gl_cv_cc_float_signbit" = unknown; then
16994 ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
16996 if test "x$ac_cv_have_decl_copysignf" = x""yes; then :
17002 cat >>confdefs.h <<_ACEOF
17003 #define HAVE_DECL_COPYSIGNF $ac_have_decl
17006 if test "$ac_cv_have_decl_copysignf" = yes; then
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
17008 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
17009 if test "${gl_cv_func_copysignf_no_libm+set}" = set; then :
17010 $as_echo_n "(cached) " >&6
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17020 return copysignf (x, y) < 0;
17025 if ac_fn_c_try_link "$LINENO"; then :
17026 gl_cv_func_copysignf_no_libm=yes
17028 gl_cv_func_copysignf_no_libm=no
17030 rm -f core conftest.err conftest.$ac_objext \
17031 conftest$ac_exeext conftest.$ac_ext
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
17035 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
17036 if test $gl_cv_func_copysignf_no_libm = yes; then
17038 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
17043 if test "$gl_cv_cc_double_signbit" = unknown; then
17044 ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
17046 if test "x$ac_cv_have_decl_copysign" = x""yes; then :
17052 cat >>confdefs.h <<_ACEOF
17053 #define HAVE_DECL_COPYSIGN $ac_have_decl
17056 if test "$ac_cv_have_decl_copysign" = yes; then
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
17058 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
17059 if test "${gl_cv_func_copysign_no_libm+set}" = set; then :
17060 $as_echo_n "(cached) " >&6
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17070 return copysign (x, y) < 0;
17075 if ac_fn_c_try_link "$LINENO"; then :
17076 gl_cv_func_copysign_no_libm=yes
17078 gl_cv_func_copysign_no_libm=no
17080 rm -f core conftest.err conftest.$ac_objext \
17081 conftest$ac_exeext conftest.$ac_ext
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
17085 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
17086 if test $gl_cv_func_copysign_no_libm = yes; then
17088 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
17093 if test "$gl_cv_cc_long_double_signbit" = unknown; then
17094 ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
17096 if test "x$ac_cv_have_decl_copysignl" = x""yes; then :
17102 cat >>confdefs.h <<_ACEOF
17103 #define HAVE_DECL_COPYSIGNL $ac_have_decl
17106 if test "$ac_cv_have_decl_copysignl" = yes; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
17108 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
17109 if test "${gl_cv_func_copysignl_no_libm+set}" = set; then :
17110 $as_echo_n "(cached) " >&6
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17120 return copysignl (x, y) < 0;
17125 if ac_fn_c_try_link "$LINENO"; then :
17126 gl_cv_func_copysignl_no_libm=yes
17128 gl_cv_func_copysignl_no_libm=no
17130 rm -f core conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
17135 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
17136 if test $gl_cv_func_copysignl_no_libm = yes; then
17138 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
17151 for ac_header in stdint.h
17153 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
17154 if test "x$ac_cv_header_stdint_h" = x""yes; then :
17155 cat >>confdefs.h <<_ACEOF
17156 #define HAVE_STDINT_H 1
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
17164 $as_echo_n "checking for SIZE_MAX... " >&6; }
17165 if test "${gl_cv_size_max+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 #include <limits.h>
17175 #include <stdint.h>
17182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17183 $EGREP "Found it" >/dev/null 2>&1; then :
17188 if test -z "$gl_cv_size_max"; then
17189 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
17190 #include <limits.h>"; then :
17193 size_t_bits_minus_1=
17196 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
17202 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
17203 if test $fits_in_uint = 1; then
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17206 #include <stddef.h>
17208 extern unsigned long foo;
17218 if ac_fn_c_try_compile "$LINENO"; then :
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223 if test $fits_in_uint = 1; then
17224 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17226 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17229 gl_cv_size_max='((size_t)~(size_t)0)'
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
17235 $as_echo "$gl_cv_size_max" >&6; }
17236 if test "$gl_cv_size_max" != yes; then
17238 cat >>confdefs.h <<_ACEOF
17239 #define SIZE_MAX $gl_cv_size_max
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17249 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17250 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17251 $as_echo_n "(cached) " >&6
17253 if test "$cross_compiling" = yes; then :
17255 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17256 *) gl_cv_func_stat_dir_slash="guessing yes";;
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261 #include <sys/stat.h>
17266 struct stat st; return stat (".", &st) != stat ("./", &st);
17271 if ac_fn_c_try_run "$LINENO"; then :
17272 gl_cv_func_stat_dir_slash=yes
17274 gl_cv_func_stat_dir_slash=no
17276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17277 conftest.$ac_objext conftest.beam conftest.$ac_ext
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17282 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17284 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17285 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17286 $as_echo_n "(cached) " >&6
17289 if test "$cross_compiling" = yes; then :
17290 gl_cv_func_stat_file_slash="guessing no"
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 #include <sys/stat.h>
17299 struct stat st; return !stat ("conftest.tmp/", &st);
17304 if ac_fn_c_try_run "$LINENO"; then :
17305 gl_cv_func_stat_file_slash=yes
17307 gl_cv_func_stat_file_slash=no
17309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17310 conftest.$ac_objext conftest.beam conftest.$ac_ext
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17315 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17316 case $gl_cv_func_stat_dir_slash in
17317 *no) REPLACE_STAT=1
17319 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17322 case $gl_cv_func_stat_file_slash in
17323 *no) REPLACE_STAT=1
17325 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17328 if test $REPLACE_STAT = 1; then
17337 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17350 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
17351 #include <sys/stat.h>
17353 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
17355 cat >>confdefs.h <<_ACEOF
17356 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
17360 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
17361 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
17362 $as_echo_n "(cached) " >&6
17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17365 /* end confdefs.h. */
17367 #include <sys/types.h>
17368 #include <sys/stat.h>
17369 #if HAVE_SYS_TIME_H
17370 # include <sys/time.h>
17373 struct timespec ts;
17386 if ac_fn_c_try_compile "$LINENO"; then :
17387 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
17389 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
17391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
17394 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
17395 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
17397 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
17401 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
17402 #include <sys/stat.h>
17404 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
17412 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
17413 #include <sys/stat.h>
17415 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
17417 cat >>confdefs.h <<_ACEOF
17418 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
17423 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
17424 #include <sys/stat.h>
17426 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
17428 cat >>confdefs.h <<_ACEOF
17429 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
17446 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
17447 #include <sys/stat.h>
17449 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
17457 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
17458 #include <sys/stat.h>
17460 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
17462 cat >>confdefs.h <<_ACEOF
17463 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
17468 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
17469 #include <sys/stat.h>
17471 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
17473 cat >>confdefs.h <<_ACEOF
17474 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
17488 # Define two additional variables used in the Makefile substitution.
17490 if test "$ac_cv_header_stdbool_h" = yes; then
17493 STDBOOL_H='stdbool.h'
17497 if test "$ac_cv_type__Bool" = yes; then
17507 if test $gt_cv_c_wchar_t = no; then
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17512 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17513 if test "${gl_cv_decl_null_works+set}" = set; then :
17514 $as_echo_n "(cached) " >&6
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17518 #include <stddef.h>
17519 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17529 if ac_fn_c_try_compile "$LINENO"; then :
17530 gl_cv_decl_null_works=yes
17532 gl_cv_decl_null_works=no
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17537 $as_echo "$gl_cv_decl_null_works" >&6; }
17538 if test $gl_cv_decl_null_works = no; then
17542 if test -n "$STDDEF_H"; then
17549 if test $gl_cv_have_include_next = yes; then
17550 gl_cv_next_stddef_h='<'stddef.h'>'
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17553 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17554 if test "${gl_cv_next_stddef_h+set}" = set; then :
17555 $as_echo_n "(cached) " >&6
17558 if test $ac_cv_header_stddef_h = yes; then
17559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h. */
17561 #include <stddef.h>
17565 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17566 *) gl_absname_cpp="$ac_cpp" ;;
17568 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17569 sed -n '\#/stddef.h#{
17570 s#.*"\(.*/stddef.h\)".*#\1#
17576 gl_cv_next_stddef_h='<'stddef.h'>'
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17581 $as_echo "$gl_cv_next_stddef_h" >&6; }
17583 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17585 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17587 gl_next_as_first_directive='<'stddef.h'>'
17589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17590 gl_next_as_first_directive=$gl_cv_next_stddef_h
17592 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17601 if test $ac_cv_type_long_long_int = yes; then
17602 HAVE_LONG_LONG_INT=1
17604 HAVE_LONG_LONG_INT=0
17608 if test $ac_cv_type_unsigned_long_long_int = yes; then
17609 HAVE_UNSIGNED_LONG_LONG_INT=1
17611 HAVE_UNSIGNED_LONG_LONG_INT=0
17615 if test $ac_cv_header_inttypes_h = yes; then
17622 if test $ac_cv_header_sys_types_h = yes; then
17635 if test $gl_cv_have_include_next = yes; then
17636 gl_cv_next_stdint_h='<'stdint.h'>'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17639 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17640 if test "${gl_cv_next_stdint_h+set}" = set; then :
17641 $as_echo_n "(cached) " >&6
17644 if test $ac_cv_header_stdint_h = yes; then
17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17647 #include <stdint.h>
17651 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17652 *) gl_absname_cpp="$ac_cpp" ;;
17654 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17655 sed -n '\#/stdint.h#{
17656 s#.*"\(.*/stdint.h\)".*#\1#
17662 gl_cv_next_stdint_h='<'stdint.h'>'
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17667 $as_echo "$gl_cv_next_stdint_h" >&6; }
17669 NEXT_STDINT_H=$gl_cv_next_stdint_h
17671 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17673 gl_next_as_first_directive='<'stdint.h'>'
17675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17676 gl_next_as_first_directive=$gl_cv_next_stdint_h
17678 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17682 if test $ac_cv_header_stdint_h = yes; then
17689 if test $ac_cv_header_stdint_h = yes; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17691 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17692 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
17695 gl_cv_header_working_stdint_h=no
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17700 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17701 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17702 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17703 #include <stdint.h>
17704 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17705 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17706 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17710 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17711 included before <wchar.h>. */
17712 #include <stddef.h>
17713 #include <signal.h>
17715 # include <stdio.h>
17717 # include <wchar.h>
17722 int8_t a1 = INT8_MAX;
17723 int8_t a1min = INT8_MIN;
17726 int16_t a2 = INT16_MAX;
17727 int16_t a2min = INT16_MIN;
17730 int32_t a3 = INT32_MAX;
17731 int32_t a3min = INT32_MIN;
17734 int64_t a4 = INT64_MAX;
17735 int64_t a4min = INT64_MIN;
17738 uint8_t b1 = UINT8_MAX;
17740 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17743 uint16_t b2 = UINT16_MAX;
17746 uint32_t b3 = UINT32_MAX;
17749 uint64_t b4 = UINT64_MAX;
17751 int_least8_t c1 = INT8_C (0x7f);
17752 int_least8_t c1max = INT_LEAST8_MAX;
17753 int_least8_t c1min = INT_LEAST8_MIN;
17754 int_least16_t c2 = INT16_C (0x7fff);
17755 int_least16_t c2max = INT_LEAST16_MAX;
17756 int_least16_t c2min = INT_LEAST16_MIN;
17757 int_least32_t c3 = INT32_C (0x7fffffff);
17758 int_least32_t c3max = INT_LEAST32_MAX;
17759 int_least32_t c3min = INT_LEAST32_MIN;
17760 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17761 int_least64_t c4max = INT_LEAST64_MAX;
17762 int_least64_t c4min = INT_LEAST64_MIN;
17763 uint_least8_t d1 = UINT8_C (0xff);
17764 uint_least8_t d1max = UINT_LEAST8_MAX;
17765 uint_least16_t d2 = UINT16_C (0xffff);
17766 uint_least16_t d2max = UINT_LEAST16_MAX;
17767 uint_least32_t d3 = UINT32_C (0xffffffff);
17768 uint_least32_t d3max = UINT_LEAST32_MAX;
17769 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17770 uint_least64_t d4max = UINT_LEAST64_MAX;
17771 int_fast8_t e1 = INT_FAST8_MAX;
17772 int_fast8_t e1min = INT_FAST8_MIN;
17773 int_fast16_t e2 = INT_FAST16_MAX;
17774 int_fast16_t e2min = INT_FAST16_MIN;
17775 int_fast32_t e3 = INT_FAST32_MAX;
17776 int_fast32_t e3min = INT_FAST32_MIN;
17777 int_fast64_t e4 = INT_FAST64_MAX;
17778 int_fast64_t e4min = INT_FAST64_MIN;
17779 uint_fast8_t f1 = UINT_FAST8_MAX;
17780 uint_fast16_t f2 = UINT_FAST16_MAX;
17781 uint_fast32_t f3 = UINT_FAST32_MAX;
17782 uint_fast64_t f4 = UINT_FAST64_MAX;
17784 intptr_t g = INTPTR_MAX;
17785 intptr_t gmin = INTPTR_MIN;
17788 uintptr_t h = UINTPTR_MAX;
17790 intmax_t i = INTMAX_MAX;
17791 uintmax_t j = UINTMAX_MAX;
17793 #include <limits.h> /* for CHAR_BIT */
17794 #define TYPE_MINIMUM(t) \
17795 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17796 #define TYPE_MAXIMUM(t) \
17797 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17800 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17801 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17803 /* Detect bug in FreeBSD 6.0 / ia64. */
17804 int check_SIG_ATOMIC:
17805 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17806 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17808 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17810 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17811 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17813 /* Detect bug in mingw. */
17815 WINT_MIN == TYPE_MINIMUM (wint_t)
17816 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17819 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17821 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17822 int check_UINT16_C:
17823 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17825 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17827 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17830 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17833 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17836 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17838 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17839 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17840 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17841 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17842 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17843 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17844 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17845 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17846 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17847 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17848 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17859 if ac_fn_c_try_compile "$LINENO"; then :
17860 if test "$cross_compiling" = yes; then :
17861 gl_cv_header_working_stdint_h=yes
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17868 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17869 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17870 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17871 #include <stdint.h>
17874 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17875 included before <wchar.h>. */
17876 #include <stddef.h>
17877 #include <signal.h>
17879 # include <stdio.h>
17881 # include <wchar.h>
17886 #include <string.h>
17887 #define MVAL(macro) MVAL1(macro)
17888 #define MVAL1(expression) #expression
17889 static const char *macro_values[] =
17923 for (mv = macro_values; *mv != NULL; mv++)
17925 const char *value = *mv;
17926 /* Test whether it looks like a cast expression. */
17927 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17928 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17929 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17930 || strncmp (value, "((int)"/*)*/, 6) == 0
17931 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17932 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17941 if ac_fn_c_try_run "$LINENO"; then :
17942 gl_cv_header_working_stdint_h=yes
17944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17945 conftest.$ac_objext conftest.beam conftest.$ac_ext
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17954 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17956 if test "$gl_cv_header_working_stdint_h" = yes; then
17959 for ac_header in sys/inttypes.h sys/bitypes.h
17961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17962 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17963 eval as_val=\$$as_ac_Header
17964 if test "x$as_val" = x""yes; then :
17965 cat >>confdefs.h <<_ACEOF
17966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17973 if test $ac_cv_header_sys_inttypes_h = yes; then
17974 HAVE_SYS_INTTYPES_H=1
17976 HAVE_SYS_INTTYPES_H=0
17979 if test $ac_cv_header_sys_bitypes_h = yes; then
17980 HAVE_SYS_BITYPES_H=1
17982 HAVE_SYS_BITYPES_H=0
17990 if test $APPLE_UNIVERSAL_BUILD = 0; then
17993 for gltype in ptrdiff_t size_t ; do
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17995 $as_echo_n "checking for bit size of $gltype... " >&6; }
17996 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17997 $as_echo_n "(cached) " >&6
17999 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18000 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18001 included before <wchar.h>. */
18002 #include <stddef.h>
18003 #include <signal.h>
18005 # include <stdio.h>
18007 # include <wchar.h>
18010 #include <limits.h>"; then :
18016 eval gl_cv_bitsizeof_${gltype}=\$result
18019 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18021 $as_echo "$ac_res" >&6; }
18022 eval result=\$gl_cv_bitsizeof_${gltype}
18023 if test $result = unknown; then
18026 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18027 cat >>confdefs.h <<_ACEOF
18028 #define BITSIZEOF_${GLTYPE} $result
18031 eval BITSIZEOF_${GLTYPE}=\$result
18038 for gltype in sig_atomic_t wchar_t wint_t ; do
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18040 $as_echo_n "checking for bit size of $gltype... " >&6; }
18041 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18042 $as_echo_n "(cached) " >&6
18044 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18045 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18046 included before <wchar.h>. */
18047 #include <stddef.h>
18048 #include <signal.h>
18050 # include <stdio.h>
18052 # include <wchar.h>
18055 #include <limits.h>"; then :
18061 eval gl_cv_bitsizeof_${gltype}=\$result
18064 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18066 $as_echo "$ac_res" >&6; }
18067 eval result=\$gl_cv_bitsizeof_${gltype}
18068 if test $result = unknown; then
18071 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18072 cat >>confdefs.h <<_ACEOF
18073 #define BITSIZEOF_${GLTYPE} $result
18076 eval BITSIZEOF_${GLTYPE}=\$result
18082 for gltype in sig_atomic_t wchar_t wint_t ; do
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18084 $as_echo_n "checking whether $gltype is signed... " >&6; }
18085 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18086 $as_echo_n "(cached) " >&6
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18091 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18092 included before <wchar.h>. */
18093 #include <stddef.h>
18094 #include <signal.h>
18096 # include <stdio.h>
18098 # include <wchar.h>
18101 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18110 if ac_fn_c_try_compile "$LINENO"; then :
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116 eval gl_cv_type_${gltype}_signed=\$result
18119 eval ac_res=\$gl_cv_type_${gltype}_signed
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18121 $as_echo "$ac_res" >&6; }
18122 eval result=\$gl_cv_type_${gltype}_signed
18123 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18124 if test "$result" = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_SIGNED_${GLTYPE} 1
18129 eval HAVE_SIGNED_${GLTYPE}=1
18131 eval HAVE_SIGNED_${GLTYPE}=0
18136 gl_cv_type_ptrdiff_t_signed=yes
18137 gl_cv_type_size_t_signed=no
18138 if test $APPLE_UNIVERSAL_BUILD = 0; then
18141 for gltype in ptrdiff_t size_t ; do
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18143 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18144 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18145 $as_echo_n "(cached) " >&6
18147 eval gl_cv_type_${gltype}_suffix=no
18148 eval result=\$gl_cv_type_${gltype}_signed
18149 if test "$result" = yes; then
18154 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18156 '') gltype1='int';;
18157 l) gltype1='long int';;
18158 ll) gltype1='long long int';;
18159 i64) gltype1='__int64';;
18160 u) gltype1='unsigned int';;
18161 ul) gltype1='unsigned long int';;
18162 ull) gltype1='unsigned long long int';;
18163 ui64)gltype1='unsigned __int64';;
18165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166 /* end confdefs.h. */
18168 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18169 included before <wchar.h>. */
18170 #include <stddef.h>
18171 #include <signal.h>
18173 # include <stdio.h>
18175 # include <wchar.h>
18178 extern $gltype foo;
18179 extern $gltype1 foo;
18188 if ac_fn_c_try_compile "$LINENO"; then :
18189 eval gl_cv_type_${gltype}_suffix=\$glsuf
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192 eval result=\$gl_cv_type_${gltype}_suffix
18193 test "$result" != no && break
18196 eval ac_res=\$gl_cv_type_${gltype}_suffix
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18198 $as_echo "$ac_res" >&6; }
18199 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18200 eval result=\$gl_cv_type_${gltype}_suffix
18201 test "$result" = no && result=
18202 eval ${GLTYPE}_SUFFIX=\$result
18203 cat >>confdefs.h <<_ACEOF
18204 #define ${GLTYPE}_SUFFIX $result
18213 for gltype in sig_atomic_t wchar_t wint_t ; do
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18215 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18216 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18217 $as_echo_n "(cached) " >&6
18219 eval gl_cv_type_${gltype}_suffix=no
18220 eval result=\$gl_cv_type_${gltype}_signed
18221 if test "$result" = yes; then
18226 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18228 '') gltype1='int';;
18229 l) gltype1='long int';;
18230 ll) gltype1='long long int';;
18231 i64) gltype1='__int64';;
18232 u) gltype1='unsigned int';;
18233 ul) gltype1='unsigned long int';;
18234 ull) gltype1='unsigned long long int';;
18235 ui64)gltype1='unsigned __int64';;
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18240 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18241 included before <wchar.h>. */
18242 #include <stddef.h>
18243 #include <signal.h>
18245 # include <stdio.h>
18247 # include <wchar.h>
18250 extern $gltype foo;
18251 extern $gltype1 foo;
18260 if ac_fn_c_try_compile "$LINENO"; then :
18261 eval gl_cv_type_${gltype}_suffix=\$glsuf
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264 eval result=\$gl_cv_type_${gltype}_suffix
18265 test "$result" != no && break
18268 eval ac_res=\$gl_cv_type_${gltype}_suffix
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18270 $as_echo "$ac_res" >&6; }
18271 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18272 eval result=\$gl_cv_type_${gltype}_suffix
18273 test "$result" = no && result=
18274 eval ${GLTYPE}_SUFFIX=\$result
18275 cat >>confdefs.h <<_ACEOF
18276 #define ${GLTYPE}_SUFFIX $result
18295 if test $gl_cv_have_include_next = yes; then
18296 gl_cv_next_stdio_h='<'stdio.h'>'
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18299 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18300 if test "${gl_cv_next_stdio_h+set}" = set; then :
18301 $as_echo_n "(cached) " >&6
18304 if test $ac_cv_header_stdio_h = yes; then
18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18311 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18312 *) gl_absname_cpp="$ac_cpp" ;;
18314 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18315 sed -n '\#/stdio.h#{
18316 s#.*"\(.*/stdio.h\)".*#\1#
18322 gl_cv_next_stdio_h='<'stdio.h'>'
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18327 $as_echo "$gl_cv_next_stdio_h" >&6; }
18329 NEXT_STDIO_H=$gl_cv_next_stdio_h
18331 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18333 gl_next_as_first_directive='<'stdio.h'>'
18335 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18336 gl_next_as_first_directive=$gl_cv_next_stdio_h
18338 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18362 if test $gl_cv_have_include_next = yes; then
18363 gl_cv_next_stdlib_h='<'stdlib.h'>'
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18366 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18367 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18368 $as_echo_n "(cached) " >&6
18371 if test $ac_cv_header_stdlib_h = yes; then
18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373 /* end confdefs.h. */
18374 #include <stdlib.h>
18378 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18379 *) gl_absname_cpp="$ac_cpp" ;;
18381 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18382 sed -n '\#/stdlib.h#{
18383 s#.*"\(.*/stdlib.h\)".*#\1#
18389 gl_cv_next_stdlib_h='<'stdlib.h'>'
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18394 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18396 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18398 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18400 gl_next_as_first_directive='<'stdlib.h'>'
18402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18403 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18405 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18409 for ac_header in random.h
18411 ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18413 if test "x$ac_cv_header_random_h" = x""yes; then :
18414 cat >>confdefs.h <<_ACEOF
18415 #define HAVE_RANDOM_H 1
18422 if test $ac_cv_header_random_h = yes; then
18428 ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18430 # include <random.h>
18434 if test "x$ac_cv_type_struct_random_data" = x""yes; then :
18436 cat >>confdefs.h <<_ACEOF
18437 #define HAVE_STRUCT_RANDOM_DATA 1
18442 HAVE_STRUCT_RANDOM_DATA=0
18448 if test $REPLACE_STRERROR = 1; then
18457 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
18460 cat >>confdefs.h <<_ACEOF
18461 #define REPLACE_STRERROR $REPLACE_STRERROR
18486 if test $gl_cv_have_include_next = yes; then
18487 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18490 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18491 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18492 $as_echo_n "(cached) " >&6
18495 if test $ac_cv_header_sys_stat_h = yes; then
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18498 #include <sys/stat.h>
18502 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18503 *) gl_absname_cpp="$ac_cpp" ;;
18505 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18506 sed -n '\#/sys/stat.h#{
18507 s#.*"\(.*/sys/stat.h\)".*#\1#
18513 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18518 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18520 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18522 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18523 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18524 gl_next_as_first_directive='<'sys/stat.h'>'
18526 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18527 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18529 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18534 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18535 #include <sys/stat.h>
18537 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18541 $as_echo "#define nlink_t int" >>confdefs.h
18567 if test $gl_cv_have_include_next = yes; then
18568 gl_cv_next_unistd_h='<'unistd.h'>'
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18571 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18572 if test "${gl_cv_next_unistd_h+set}" = set; then :
18573 $as_echo_n "(cached) " >&6
18576 if test $ac_cv_header_unistd_h = yes; then
18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18578 /* end confdefs.h. */
18579 #include <unistd.h>
18583 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18584 *) gl_absname_cpp="$ac_cpp" ;;
18586 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18587 sed -n '\#/unistd.h#{
18588 s#.*"\(.*/unistd.h\)".*#\1#
18594 gl_cv_next_unistd_h='<'unistd.h'>'
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18599 $as_echo "$gl_cv_next_unistd_h" >&6; }
18601 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18603 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18604 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18605 gl_next_as_first_directive='<'unistd.h'>'
18607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18608 gl_next_as_first_directive=$gl_cv_next_unistd_h
18610 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18616 if test $ac_cv_header_unistd_h = yes; then
18633 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
18643 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
18653 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
18658 $as_echo "#define GNULIB_UNISTD_SAFER 1" >>confdefs.h
18670 gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
18680 if test $ac_cv_func_vasnprintf = no; then
18691 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
18701 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
18711 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
18721 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
18723 if test $ac_cv_func_vasnprintf = yes; then
18725 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
18738 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18739 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
18743 $as_echo "#define ptrdiff_t long" >>confdefs.h
18771 gl_cv_func_vfprintf_posix=no
18772 case "$gl_cv_func_printf_sizes_c99" in
18774 case "$gl_cv_func_printf_long_double" in
18776 case "$gl_cv_func_printf_infinite" in
18778 case "$gl_cv_func_printf_infinite_long_double" in
18780 case "$gl_cv_func_printf_directive_a" in
18782 case "$gl_cv_func_printf_directive_f" in
18784 case "$gl_cv_func_printf_directive_n" in
18786 case "$gl_cv_func_printf_directive_ls" in
18788 case "$gl_cv_func_printf_positions" in
18790 case "$gl_cv_func_printf_flag_grouping" in
18792 case "$gl_cv_func_printf_flag_leftadjust" in
18794 case "$gl_cv_func_printf_flag_zero" in
18796 case "$gl_cv_func_printf_precision" in
18798 case "$gl_cv_func_printf_enomem" in
18800 # vfprintf exists and is
18801 # already POSIX compliant.
18802 gl_cv_func_vfprintf_posix=yes
18831 if test $gl_cv_func_vfprintf_posix = no; then
18835 case "$gl_cv_func_printf_infinite" in
18840 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
18848 case "$gl_cv_func_printf_long_double" in
18850 case "$gl_cv_func_printf_infinite_long_double" in
18855 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
18864 case "$gl_cv_func_printf_directive_a" in
18869 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
18871 for ac_func in nl_langinfo
18873 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
18874 if test "x$ac_cv_func_nl_langinfo" = x""yes; then :
18875 cat >>confdefs.h <<_ACEOF
18876 #define HAVE_NL_LANGINFO 1
18887 case "$gl_cv_func_printf_directive_f" in
18892 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
18899 case "$gl_cv_func_printf_directive_ls" in
18904 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
18911 case "$gl_cv_func_printf_flag_grouping" in
18916 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
18923 case "$gl_cv_func_printf_flag_leftadjust" in
18928 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
18935 case "$gl_cv_func_printf_flag_zero" in
18940 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
18947 case "$gl_cv_func_printf_precision" in
18952 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
18955 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
18958 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
18965 case "$gl_cv_func_printf_enomem" in
18970 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
18973 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
18976 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
18991 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
19001 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
19011 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
19021 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
19023 if test $ac_cv_func_vasnprintf = yes; then
19025 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19038 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19039 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19043 $as_echo "#define ptrdiff_t long" >>confdefs.h
19064 gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
19068 $as_echo "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
19076 GNULIB_VFPRINTF_POSIX=1
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
19081 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
19082 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
19083 $as_echo_n "(cached) " >&6
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19090 if ac_fn_c_try_compile "$LINENO"; then :
19091 gl_cv_header_wchar_h_standalone=yes
19093 gl_cv_header_wchar_h_standalone=no
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
19098 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
19101 if test $gt_cv_c_wint_t = yes; then
19110 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes || test -n "$STDDEF_H"; then
19115 if test $ac_cv_header_wchar_h = yes; then
19127 if test $gl_cv_have_include_next = yes; then
19128 gl_cv_next_wchar_h='<'wchar.h'>'
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19131 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19132 if test "${gl_cv_next_wchar_h+set}" = set; then :
19133 $as_echo_n "(cached) " >&6
19136 if test $ac_cv_header_wchar_h = yes; then
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19143 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19144 *) gl_absname_cpp="$ac_cpp" ;;
19146 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19147 sed -n '\#/wchar.h#{
19148 s#.*"\(.*/wchar.h\)".*#\1#
19154 gl_cv_next_wchar_h='<'wchar.h'>'
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19159 $as_echo "$gl_cv_next_wchar_h" >&6; }
19161 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19163 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19164 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19165 gl_next_as_first_directive='<'wchar.h'>'
19167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19168 gl_next_as_first_directive=$gl_cv_next_wchar_h
19170 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19179 if test $ac_cv_func_iswcntrl = yes; then
19189 if test $gt_cv_c_wint_t = yes; then
19197 if test $ac_cv_header_wctype_h = yes; then
19198 if test $ac_cv_func_iswcntrl = yes; then
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19200 $as_echo_n "checking whether iswcntrl works... " >&6; }
19201 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
19202 $as_echo_n "(cached) " >&6
19205 if test "$cross_compiling" = yes; then :
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208 #include <stdlib.h>
19209 #if __GNU_LIBRARY__ == 1
19210 Linux libc5 i18n is broken.
19220 if ac_fn_c_try_compile "$LINENO"; then :
19221 gl_cv_func_iswcntrl_works=yes
19223 gl_cv_func_iswcntrl_works=no
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h. */
19231 #include <stddef.h>
19235 #include <wctype.h>
19236 int main () { return iswprint ('x') == 0; }
19238 if ac_fn_c_try_run "$LINENO"; then :
19239 gl_cv_func_iswcntrl_works=yes
19241 gl_cv_func_iswcntrl_works=no
19243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19244 conftest.$ac_objext conftest.beam conftest.$ac_ext
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19250 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19251 if test $gl_cv_func_iswcntrl_works = yes; then
19267 if test $gl_cv_have_include_next = yes; then
19268 gl_cv_next_wctype_h='<'wctype.h'>'
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19271 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19272 if test "${gl_cv_next_wctype_h+set}" = set; then :
19273 $as_echo_n "(cached) " >&6
19276 if test $ac_cv_header_wctype_h = yes; then
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19279 #include <wctype.h>
19283 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19284 *) gl_absname_cpp="$ac_cpp" ;;
19286 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19287 sed -n '\#/wctype.h#{
19288 s#.*"\(.*/wctype.h\)".*#\1#
19294 gl_cv_next_wctype_h='<'wctype.h'>'
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19299 $as_echo "$gl_cv_next_wctype_h" >&6; }
19301 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19303 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19305 gl_next_as_first_directive='<'wctype.h'>'
19307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19308 gl_next_as_first_directive=$gl_cv_next_wctype_h
19310 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19321 if test "$gl_cv_func_iswcntrl_works" = no; then
19337 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
19351 for ac_header in stdint.h
19353 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19354 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19355 cat >>confdefs.h <<_ACEOF
19356 #define HAVE_STDINT_H 1
19373 gl_LIBOBJS="$gl_LIBOBJS yesno.$ac_objext"
19398 gl_source_base='tests'
19406 LIBGZIP_LIBDEPS="$gl_libdeps"
19408 LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
19412 # cc -E produces incorrect asm files on SVR4, so postprocess it.
19413 ASCPPPOST="sed '/^ *#/d; s,//.*,,; s/% /%/g; s/\\. /./g'"
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underline in external names" >&5
19417 $as_echo_n "checking for underline in external names... " >&6; }
19418 if test "${gzip_cv_underline+set}" = set; then :
19419 $as_echo_n "(cached) " >&6
19421 gzip_cv_underline=yes
19422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19423 /* end confdefs.h. */
19424 int foo() {return 0;}
19433 if ac_fn_c_try_compile "$LINENO"; then :
19434 $NM conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
19435 gzip_cv_underline=no
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gzip_cv_underline" >&5
19440 $as_echo "$gzip_cv_underline" >&6; }
19442 if test $gzip_cv_underline = no; then
19443 ASCPPFLAGS='-DNO_UNDERLINE'
19448 # Try to assemble match.S.
19449 # "gcc -E match.s" ignores -E, so we must use _match.S.
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an assembler syntax supported by this package" >&5
19451 $as_echo_n "checking for an assembler syntax supported by this package... " >&6; }
19452 if test "${gzip_cv_assembler+set}" = set; then :
19453 $as_echo_n "(cached) " >&6
19455 gzip_cv_assembler=no
19459 if cp $srcdir/lib/match.c _match.S &&
19460 eval "$CPP $CPPFLAGS $ASCPPFLAGS _match.S > _match.i" 2>/dev/null &&
19461 eval "$ASCPPPOST < _match.i > match_.s" 2>/dev/null; then
19462 if test ! -s match_.s || grep error < match_.s > /dev/null; then
19464 elif eval "$CC $CPPFLAGS $CFLAGS -c match_.s >/dev/null 2>&1" &&
19465 test -f match_.$OBJEXT; then
19466 rm -f match_.$OBJEXT
19467 gzip_cv_assembler=yes
19468 if echo 'void foo (void) {}' > conftest.c &&
19469 eval "$CC $CPPFLAGS $CFLAGS -S conftest.c >/dev/null 2>&1" &&
19470 grep '\.note\.GNU-stack' conftest.s >/dev/null 2>&1 &&
19471 eval "$CC $CPPFLAGS $CFLAGS -c -Wa,--noexecstack match_.s >/dev/null 2>&1" &&
19472 test -f match_.$OBJEXT; then
19473 gzip_cv_assembler='yes, with -Wa,--noexecstack'
19477 rm -f conftest* _match.i _match.S match_.s match_.$OBJEXT;;
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gzip_cv_assembler" >&5
19481 $as_echo "$gzip_cv_assembler" >&6; }
19482 if test "$gzip_cv_assembler" != no; then
19484 $as_echo "#define ASMV /**/" >>confdefs.h
19486 case " $LIBOBJS " in
19487 *" match.$ac_objext "* ) ;;
19488 *) LIBOBJS="$LIBOBJS match.$ac_objext"
19493 if test "$gzip_cv_assembler" = 'yes, with -Wa,--noexecstack'; then
19494 ASFLAGS_config='-Wa,--noexecstack'
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
19501 $as_echo_n "checking for library containing strerror... " >&6; }
19502 if test "${ac_cv_search_strerror+set}" = set; then :
19503 $as_echo_n "(cached) " >&6
19505 ac_func_search_save_LIBS=$LIBS
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19509 /* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19519 return strerror ();
19524 for ac_lib in '' cposix; do
19525 if test -z "$ac_lib"; then
19526 ac_res="none required"
19529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19531 if ac_fn_c_try_link "$LINENO"; then :
19532 ac_cv_search_strerror=$ac_res
19534 rm -f core conftest.err conftest.$ac_objext \
19536 if test "${ac_cv_search_strerror+set}" = set; then :
19540 if test "${ac_cv_search_strerror+set}" = set; then :
19543 ac_cv_search_strerror=no
19545 rm conftest.$ac_ext
19546 LIBS=$ac_func_search_save_LIBS
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
19549 $as_echo "$ac_cv_search_strerror" >&6; }
19550 ac_res=$ac_cv_search_strerror
19551 if test "$ac_res" != no; then :
19552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19557 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19558 if test "${ac_cv_c_const+set}" = set; then :
19559 $as_echo_n "(cached) " >&6
19561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19562 /* end confdefs.h. */
19567 /* FIXME: Include the comments suggested by Paul. */
19568 #ifndef __cplusplus
19569 /* Ultrix mips cc rejects this. */
19570 typedef int charset[2];
19572 /* SunOS 4.1.1 cc rejects this. */
19573 char const *const *pcpcc;
19575 /* NEC SVR4.0.2 mips cc rejects this. */
19576 struct point {int x, y;};
19577 static struct point const zero = {0,0};
19578 /* AIX XL C 1.02.0.0 rejects this.
19579 It does not let you subtract one const X* pointer from another in
19580 an arm of an if-expression whose if-part is not a constant
19582 const char *g = "string";
19583 pcpcc = &g + (g ? g-g : 0);
19584 /* HPUX 7.0 cc rejects these. */
19586 ppc = (char**) pcpcc;
19587 pcpcc = (char const *const *) ppc;
19588 { /* SCO 3.2v4 cc rejects this. */
19590 char const *s = 0 ? (char *) 0 : (char const *) 0;
19595 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19596 int x[] = {25, 17};
19597 const int *foo = &x[0];
19600 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19601 typedef const int *iptr;
19605 { /* AIX XL C 1.02.0.0 rejects this saying
19606 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19607 struct s { int j; const int *ap[3]; };
19608 struct s *b; b->j = 5;
19610 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19611 const int foo = 10;
19612 if (!foo) return 0;
19614 return !cs[0] && !zero.x;
19621 if ac_fn_c_try_compile "$LINENO"; then :
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19629 $as_echo "$ac_cv_c_const" >&6; }
19630 if test $ac_cv_c_const = no; then
19632 $as_echo "#define const /**/" >>confdefs.h
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19637 $as_echo_n "checking for ANSI C header files... " >&6; }
19638 if test "${ac_cv_header_stdc+set}" = set; then :
19639 $as_echo_n "(cached) " >&6
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h. */
19643 #include <stdlib.h>
19644 #include <stdarg.h>
19645 #include <string.h>
19656 if ac_fn_c_try_compile "$LINENO"; then :
19657 ac_cv_header_stdc=yes
19659 ac_cv_header_stdc=no
19661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 if test $ac_cv_header_stdc = yes; then
19664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19666 /* end confdefs.h. */
19667 #include <string.h>
19670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19671 $EGREP "memchr" >/dev/null 2>&1; then :
19674 ac_cv_header_stdc=no
19680 if test $ac_cv_header_stdc = yes; then
19681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h. */
19684 #include <stdlib.h>
19687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688 $EGREP "free" >/dev/null 2>&1; then :
19691 ac_cv_header_stdc=no
19697 if test $ac_cv_header_stdc = yes; then
19698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19699 if test "$cross_compiling" = yes; then :
19702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19705 #include <stdlib.h>
19706 #if ((' ' & 0x0FF) == 0x020)
19707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19710 # define ISLOWER(c) \
19711 (('a' <= (c) && (c) <= 'i') \
19712 || ('j' <= (c) && (c) <= 'r') \
19713 || ('s' <= (c) && (c) <= 'z'))
19714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19722 for (i = 0; i < 256; i++)
19723 if (XOR (islower (i), ISLOWER (i))
19724 || toupper (i) != TOUPPER (i))
19729 if ac_fn_c_try_run "$LINENO"; then :
19732 ac_cv_header_stdc=no
19734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19735 conftest.$ac_objext conftest.beam conftest.$ac_ext
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19741 $as_echo "$ac_cv_header_stdc" >&6; }
19742 if test $ac_cv_header_stdc = yes; then
19744 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19764 ac_header_dirent=no
19765 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19766 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19768 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
19770 $as_echo_n "(cached) " >&6
19772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19773 /* end confdefs.h. */
19774 #include <sys/types.h>
19786 if ac_fn_c_try_compile "$LINENO"; then :
19787 eval "$as_ac_Header=yes"
19789 eval "$as_ac_Header=no"
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19793 eval ac_res=\$$as_ac_Header
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19795 $as_echo "$ac_res" >&6; }
19796 eval as_val=\$$as_ac_Header
19797 if test "x$as_val" = x""yes; then :
19798 cat >>confdefs.h <<_ACEOF
19799 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19802 ac_header_dirent=$ac_hdr; break
19806 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19807 if test $ac_header_dirent = dirent.h; then
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19809 $as_echo_n "checking for library containing opendir... " >&6; }
19810 if test "${ac_cv_search_opendir+set}" = set; then :
19811 $as_echo_n "(cached) " >&6
19813 ac_func_search_save_LIBS=$LIBS
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h. */
19817 /* Override any GCC internal prototype to avoid an error.
19818 Use char because int might match the return type of a GCC
19819 builtin and then its argument prototype would still apply. */
19832 for ac_lib in '' dir; do
19833 if test -z "$ac_lib"; then
19834 ac_res="none required"
19837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19839 if ac_fn_c_try_link "$LINENO"; then :
19840 ac_cv_search_opendir=$ac_res
19842 rm -f core conftest.err conftest.$ac_objext \
19844 if test "${ac_cv_search_opendir+set}" = set; then :
19848 if test "${ac_cv_search_opendir+set}" = set; then :
19851 ac_cv_search_opendir=no
19853 rm conftest.$ac_ext
19854 LIBS=$ac_func_search_save_LIBS
19856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19857 $as_echo "$ac_cv_search_opendir" >&6; }
19858 ac_res=$ac_cv_search_opendir
19859 if test "$ac_res" != no; then :
19860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19866 $as_echo_n "checking for library containing opendir... " >&6; }
19867 if test "${ac_cv_search_opendir+set}" = set; then :
19868 $as_echo_n "(cached) " >&6
19870 ac_func_search_save_LIBS=$LIBS
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19874 /* Override any GCC internal prototype to avoid an error.
19875 Use char because int might match the return type of a GCC
19876 builtin and then its argument prototype would still apply. */
19889 for ac_lib in '' x; do
19890 if test -z "$ac_lib"; then
19891 ac_res="none required"
19894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19896 if ac_fn_c_try_link "$LINENO"; then :
19897 ac_cv_search_opendir=$ac_res
19899 rm -f core conftest.err conftest.$ac_objext \
19901 if test "${ac_cv_search_opendir+set}" = set; then :
19905 if test "${ac_cv_search_opendir+set}" = set; then :
19908 ac_cv_search_opendir=no
19910 rm conftest.$ac_ext
19911 LIBS=$ac_func_search_save_LIBS
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19914 $as_echo "$ac_cv_search_opendir" >&6; }
19915 ac_res=$ac_cv_search_opendir
19916 if test "$ac_res" != no; then :
19917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19924 $as_echo_n "checking return type of signal handlers... " >&6; }
19925 if test "${ac_cv_type_signal+set}" = set; then :
19926 $as_echo_n "(cached) " >&6
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19930 #include <sys/types.h>
19931 #include <signal.h>
19936 return *(signal (0, 0)) (0) == 1;
19941 if ac_fn_c_try_compile "$LINENO"; then :
19942 ac_cv_type_signal=int
19944 ac_cv_type_signal=void
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19949 $as_echo "$ac_cv_type_signal" >&6; }
19951 cat >>confdefs.h <<_ACEOF
19952 #define RETSIGTYPE $ac_cv_type_signal
19956 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19957 if test "x$ac_cv_type_size_t" = x""yes; then :
19961 cat >>confdefs.h <<_ACEOF
19962 #define size_t unsigned int
19967 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19968 if test "x$ac_cv_type_off_t" = x""yes; then :
19972 cat >>confdefs.h <<_ACEOF
19973 #define off_t long int
19979 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile"
19981 cat >confcache <<\_ACEOF
19982 # This file is a shell script that caches the results of configure
19983 # tests run on this system so they can be shared between configure
19984 # scripts and configure runs, see configure's option --config-cache.
19985 # It is not useful on other systems. If it contains results you don't
19986 # want to keep, you may remove or edit it.
19988 # config.status only pays attention to the cache file if you give it
19989 # the --recheck option to rerun configure.
19991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19993 # following values.
19997 # The following way of writing the cache mishandles newlines in values,
19998 # but we know of no workaround that is simple, portable, and efficient.
19999 # So, we kill variables containing newlines.
20000 # Ultrix sh set writes to stderr and can't be redirected directly,
20001 # and sets the high bit in the cache file unless we assign to the vars.
20003 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20004 eval ac_val=\$$ac_var
20008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20012 _ | IFS | as_nl) ;; #(
20013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20014 *) { eval $ac_var=; unset $ac_var;} ;;
20020 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20021 *${as_nl}ac_space=\ *)
20022 # `set' does not quote correctly, so add quotes: double-quote
20023 # substitution turns \\\\ into \\, and sed turns \\ into \.
20026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20029 # `set' quotes correctly as required by POSIX, so do not add quotes.
20030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20041 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20044 if test -w "$cache_file"; then
20045 test "x$cache_file" != "x/dev/null" &&
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20047 $as_echo "$as_me: updating cache $cache_file" >&6;}
20048 cat confcache >$cache_file
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20057 # Let make expand exec_prefix.
20058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20060 DEFS=-DHAVE_CONFIG_H
20064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20065 # 1. Remove the extension, and $U if already installed.
20066 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20067 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20068 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20069 # will be set to the directory where LIBOBJS objects are built.
20070 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20071 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20073 LIBOBJS=$ac_libobjs
20075 LTLIBOBJS=$ac_ltlibobjs
20078 if test -n "$EXEEXT"; then
20080 am__EXEEXT_FALSE='#'
20082 am__EXEEXT_TRUE='#'
20086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20087 as_fn_error "conditional \"AMDEP\" was never defined.
20088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20091 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20094 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20095 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20099 if test -z "${GNU_MAKE_TRUE}" && test -z "${GNU_MAKE_FALSE}"; then
20100 as_fn_error "conditional \"GNU_MAKE\" was never defined.
20101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20107 if test -n "$gl_LIBOBJS"; then
20108 # Remove the extension.
20109 sed_drop_objext='s/\.o$//;s/\.obj$//'
20110 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
20111 gl_libobjs="$gl_libobjs $i.$ac_objext"
20112 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20115 gl_LIBOBJS=$gl_libobjs
20117 gl_LTLIBOBJS=$gl_ltlibobjs
20123 if test -n "$gltests_LIBOBJS"; then
20124 # Remove the extension.
20125 sed_drop_objext='s/\.o$//;s/\.obj$//'
20126 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
20127 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20128 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20131 gltests_LIBOBJS=$gltests_libobjs
20133 gltests_LTLIBOBJS=$gltests_ltlibobjs
20137 : ${CONFIG_STATUS=./config.status}
20139 ac_clean_files_save=$ac_clean_files
20140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20142 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20144 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20146 # Generated by $as_me.
20147 # Run this file to recreate the current configuration.
20148 # Compiler output produced by configure, useful for debugging
20149 # configure, is in config.log if it exists.
20152 ac_cs_recheck=false
20155 SHELL=\${CONFIG_SHELL-$SHELL}
20158 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20159 ## -------------------- ##
20160 ## M4sh Initialization. ##
20161 ## -------------------- ##
20163 # Be more Bourne compatible
20164 DUALCASE=1; export DUALCASE # for MKS sh
20165 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20168 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20169 # is contrary to our usage. Disable this feature.
20170 alias -g '${1+"$@"}'='"$@"'
20171 setopt NO_GLOB_SUBST
20173 case `(set -o) 2>/dev/null` in #(
20185 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20186 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20187 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20189 # Prefer a ksh shell builtin over an external printf program on Solaris,
20190 # but without wasting forks for bash or zsh.
20191 if test -z "$BASH_VERSION$ZSH_VERSION" \
20192 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20193 as_echo='print -r --'
20194 as_echo_n='print -rn --'
20195 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20196 as_echo='printf %s\n'
20197 as_echo_n='printf %s'
20199 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20200 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20201 as_echo_n='/usr/ucb/echo -n'
20203 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20204 as_echo_n_body='eval
20208 expr "X$arg" : "X\\(.*\\)$as_nl";
20209 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20211 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20213 export as_echo_n_body
20214 as_echo_n='sh -c $as_echo_n_body as_echo'
20216 export as_echo_body
20217 as_echo='sh -c $as_echo_body as_echo'
20220 # The user is always right.
20221 if test "${PATH_SEPARATOR+set}" != set; then
20223 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20224 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20231 # We need space, tab and new line, in precisely that order. Quoting is
20232 # there to prevent editors from complaining about space-tab.
20233 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20234 # splitting by setting IFS to empty value.)
20237 # Find who we are. Look in the path if we contain no directory separator.
20239 *[\\/]* ) as_myself=$0 ;;
20240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20241 for as_dir in $PATH
20244 test -z "$as_dir" && as_dir=.
20245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20251 # We did not find ourselves, most probably we were run as `sh COMMAND'
20252 # in which case we are not to be found in the path.
20253 if test "x$as_myself" = x; then
20256 if test ! -f "$as_myself"; then
20257 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20261 # Unset variables that we do not need and which cause bugs (e.g. in
20262 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20263 # suppresses any "Segmentation fault" message there. '((' could
20264 # trigger a bug in pdksh 5.2.14.
20265 for as_var in BASH_ENV ENV MAIL MAILPATH
20266 do eval test x\${$as_var+set} = xset \
20267 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20280 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20283 # as_fn_error ERROR [LINENO LOG_FD]
20284 # ---------------------------------
20285 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20286 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20287 # script with status $?, using 1 if that was 0.
20290 as_status=$?; test $as_status -eq 0 && as_status=1
20292 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20293 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20295 $as_echo "$as_me: error: $1" >&2
20296 as_fn_exit $as_status
20300 # as_fn_set_status STATUS
20301 # -----------------------
20302 # Set $? to STATUS, without forking.
20303 as_fn_set_status ()
20306 } # as_fn_set_status
20308 # as_fn_exit STATUS
20309 # -----------------
20310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20314 as_fn_set_status $1
20320 # Portably unset VAR.
20323 { eval $1=; unset $1;}
20325 as_unset=as_fn_unset
20326 # as_fn_append VAR VALUE
20327 # ----------------------
20328 # Append the text in VALUE to the end of the definition contained in VAR. Take
20329 # advantage of any shell optimizations that allow amortized linear growth over
20330 # repeated appends, instead of the typical quadratic growth present in naive
20332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20333 eval 'as_fn_append ()
20344 # as_fn_arith ARG...
20345 # ------------------
20346 # Perform arithmetic evaluation on the ARGs, and store the result in the
20347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20348 # must be portable across $(()) and expr.
20349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20350 eval 'as_fn_arith ()
20357 as_val=`expr "$@" || test $? -eq 1`
20362 if expr a : '\(a\)' >/dev/null 2>&1 &&
20363 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20369 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20370 as_basename=basename
20375 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20381 as_me=`$as_basename -- "$0" ||
20382 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20383 X"$0" : 'X\(//\)$' \| \
20384 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20386 sed '/^.*\/\([^/][^/]*\)\/*$/{
20400 # Avoid depending upon Character Ranges.
20401 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20402 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20403 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20404 as_cr_digits='0123456789'
20405 as_cr_alnum=$as_cr_Letters$as_cr_digits
20407 ECHO_C= ECHO_N= ECHO_T=
20408 case `echo -n x` in #(((((
20410 case `echo 'xy\c'` in
20411 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20413 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20420 rm -f conf$$ conf$$.exe conf$$.file
20421 if test -d conf$$.dir; then
20422 rm -f conf$$.dir/conf$$.file
20425 mkdir conf$$.dir 2>/dev/null
20427 if (echo >conf$$.file) 2>/dev/null; then
20428 if ln -s conf$$.file conf$$ 2>/dev/null; then
20430 # ... but there are two gotchas:
20431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20433 # In both cases, we have to default to `cp -p'.
20434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20436 elif ln conf$$.file conf$$ 2>/dev/null; then
20444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20445 rmdir conf$$.dir 2>/dev/null
20450 # Create "$as_dir" as a directory, including parents if necessary.
20455 -*) as_dir=./$as_dir;;
20457 test -d "$as_dir" || eval $as_mkdir_p || {
20461 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20462 *) as_qdir=$as_dir;;
20464 as_dirs="'$as_qdir' $as_dirs"
20465 as_dir=`$as_dirname -- "$as_dir" ||
20466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20467 X"$as_dir" : 'X\(//\)[^/]' \| \
20468 X"$as_dir" : 'X\(//\)$' \| \
20469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20470 $as_echo X"$as_dir" |
20471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20475 /^X\(\/\/\)[^/].*/{
20488 test -d "$as_dir" && break
20490 test -z "$as_dirs" || eval "mkdir $as_dirs"
20491 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20495 if mkdir -p . 2>/dev/null; then
20496 as_mkdir_p='mkdir -p "$as_dir"'
20498 test -d ./-p && rmdir ./-p
20502 if test -x / >/dev/null 2>&1; then
20503 as_test_x='test -x'
20505 if ls -dL / >/dev/null 2>&1; then
20512 if test -d "$1"; then
20518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20519 ???[sx]*):;;*)false;;esac;fi
20523 as_executable_p=$as_test_x
20525 # Sed expression to map a string onto a valid CPP name.
20526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20528 # Sed expression to map a string onto a valid variable name.
20529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20533 ## ----------------------------------- ##
20534 ## Main body of $CONFIG_STATUS script. ##
20535 ## ----------------------------------- ##
20537 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20540 # Save the log message, to keep $0 and so on meaningful, and to
20541 # report actual input values of CONFIG_FILES etc. instead of their
20542 # values after options handling.
20544 This file was extended by gzip $as_me 1.3.14, which was
20545 generated by GNU Autoconf 2.64.69-81c80. Invocation command line was
20547 CONFIG_FILES = $CONFIG_FILES
20548 CONFIG_HEADERS = $CONFIG_HEADERS
20549 CONFIG_LINKS = $CONFIG_LINKS
20550 CONFIG_COMMANDS = $CONFIG_COMMANDS
20553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20558 case $ac_config_files in *"
20559 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20562 case $ac_config_headers in *"
20563 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20568 # Files that config.status was made for.
20569 config_files="$ac_config_files"
20570 config_headers="$ac_config_headers"
20571 config_links="$ac_config_links"
20572 config_commands="$ac_config_commands"
20576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20578 \`$as_me' instantiates files and other configuration actions
20579 from templates according to the current configuration. Unless the files
20580 and actions are specified as TAGs, all are instantiated by default.
20582 Usage: $0 [OPTION]... [TAG]...
20584 -h, --help print this help, then exit
20585 -V, --version print version number and configuration settings, then exit
20586 --config print configuration, then exit
20587 -q, --quiet, --silent
20588 do not print progress messages
20589 -d, --debug don't remove temporary files
20590 --recheck update $as_me by reconfiguring in the same conditions
20591 --file=FILE[:TEMPLATE]
20592 instantiate the configuration file FILE
20593 --header=FILE[:TEMPLATE]
20594 instantiate the configuration header FILE
20596 Configuration files:
20599 Configuration headers:
20602 Configuration links:
20605 Configuration commands:
20608 Report bugs to <bug-gzip@gnu.org>."
20611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20614 gzip config.status 1.3.14
20615 configured by $0, generated by GNU Autoconf 2.64.69-81c80,
20616 with options \\"\$ac_cs_config\\"
20618 Copyright (C) 2009 Free Software Foundation, Inc.
20619 This config.status script is free software; the Free Software Foundation
20620 gives unlimited permission to copy, distribute and modify it."
20627 test -n "\$AWK" || AWK=awk
20630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20631 # The default lists apply if the user does not specify any file.
20637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20649 # Handling of the options.
20650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20653 $as_echo "$ac_cs_version"; exit ;;
20654 --config | --confi | --conf | --con | --co | --c )
20655 $as_echo "$ac_cs_config"; exit ;;
20656 --debug | --debu | --deb | --de | --d | -d )
20658 --file | --fil | --fi | --f )
20661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20663 as_fn_append CONFIG_FILES " '$ac_optarg'"
20664 ac_need_defaults=false;;
20665 --header | --heade | --head | --hea )
20668 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20670 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20671 ac_need_defaults=false;;
20673 # Conflict between --help and --header
20674 as_fn_error "ambiguous option: \`$1'
20675 Try \`$0 --help' for more information.";;
20676 --help | --hel | -h )
20677 $as_echo "$ac_cs_usage"; exit ;;
20678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20679 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20682 # This is an error.
20683 -*) as_fn_error "unrecognized option: \`$1'
20684 Try \`$0 --help' for more information." ;;
20686 *) as_fn_append ac_config_targets " $1"
20687 ac_need_defaults=false ;;
20693 ac_configure_extra_args=
20695 if $ac_cs_silent; then
20697 ac_configure_extra_args="$ac_configure_extra_args --silent"
20701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20702 if \$ac_cs_recheck; then
20703 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20706 CONFIG_SHELL='$SHELL'
20707 export CONFIG_SHELL
20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20717 ## Running $as_me. ##
20723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20727 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20728 GNUmakefile=$GNUmakefile
20732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20734 # Handling of arguments.
20735 for ac_config_target in $ac_config_targets
20737 case $ac_config_target in
20738 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
20739 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20740 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
20741 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20742 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20743 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20745 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20750 # If the user did not use the arguments to specify the items to instantiate,
20751 # then the envvar interface is used. Set only those that are not.
20752 # We use the long form for the default assignment because of an extremely
20753 # bizarre bug on SunOS 4.1.3.
20754 if $ac_need_defaults; then
20755 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20756 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20757 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20761 # Have a temporary directory for convenience. Make it in the build tree
20762 # simply because there is no reason against having it here, and in addition,
20763 # creating and moving files from /tmp can sometimes cause problems.
20764 # Hook for its removal unless debugging.
20765 # Note that there is a small window in which the directory will not be cleaned:
20766 # after its creation but before its name has been assigned to `$tmp'.
20770 trap 'exit_status=$?
20771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20773 trap 'as_fn_exit 1' 1 2 13 15
20775 # Create a (secure) tmp directory for tmp files.
20778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20779 test -n "$tmp" && test -d "$tmp"
20782 tmp=./conf$$-$RANDOM
20783 (umask 077 && mkdir "$tmp")
20784 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20786 # Set up the scripts for CONFIG_FILES section.
20787 # No need to generate them if there are no CONFIG_FILES.
20788 # This happens for instance with `./config.status config.h'.
20789 if test -n "$CONFIG_FILES"; then
20792 ac_cr=`echo X | tr X '\015'`
20793 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20794 # But we know of no other shell where ac_cr would be empty at this
20795 # point, so we can use a bashism as a fallback.
20796 if test "x$ac_cr" = x; then
20797 eval ac_cr=\$\'\\r\'
20799 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20803 ac_cs_awk_cr=$ac_cr
20806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20811 echo "cat >conf$$subs.awk <<_ACEOF" &&
20812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20814 } >conf$$subs.sh ||
20815 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20816 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20818 for ac_last_try in false false false false false :; do
20819 . ./conf$$subs.sh ||
20820 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20822 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20823 if test $ac_delim_n = $ac_delim_num; then
20825 elif $ac_last_try; then
20826 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20831 rm -f conf$$subs.sh
20833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20834 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20838 s/^/S["/; s/!.*/"]=/
20848 s/\(.\{148\}\).*/\1/
20850 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20855 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20862 s/\(.\{148\}\).*/\1/
20864 s/["\\]/\\&/g; s/^/"/; s/$/"/
20868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20873 ' <conf$$subs.awk | sed '
20878 ' >>$CONFIG_STATUS || ac_write_fail=1
20879 rm -f conf$$subs.awk
20880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20882 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20883 for (key in S) S_is_set[key] = 1
20889 nfields = split(line, field, "@")
20891 len = length(field[1])
20892 for (i = 2; i < nfields; i++) {
20894 keylen = length(key)
20895 if (S_is_set[key]) {
20897 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20898 len += length(value) + length(field[++i])
20909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20910 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20911 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20914 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20915 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20918 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20919 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20920 # trailing colons and then remove the whole line if VPATH becomes empty
20921 # (actually we leave an empty line to preserve line numbers).
20922 if test "x$srcdir" = x.; then
20923 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20924 s/:*\$(srcdir):*/:/
20925 s/:*\${srcdir}:*/:/
20927 s/^\([^=]*=[ ]*\):*/\1/
20933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20934 fi # test -n "$CONFIG_FILES"
20936 # Set up the scripts for CONFIG_HEADERS section.
20937 # No need to generate them if there are no CONFIG_HEADERS.
20938 # This happens for instance with `./config.status Makefile'.
20939 if test -n "$CONFIG_HEADERS"; then
20940 cat >"$tmp/defines.awk" <<\_ACAWK ||
20944 # Transform confdefs.h into an awk script `defines.awk', embedded as
20945 # here-document in config.status, that substitutes the proper values into
20946 # config.h.in to produce config.h.
20948 # Create a delimiter string that does not exist in confdefs.h, to ease
20949 # handling of long lines.
20951 for ac_last_try in false false :; do
20952 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20953 if test -z "$ac_t"; then
20955 elif $ac_last_try; then
20956 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20962 # For the awk script, D is an array of macro values keyed by name,
20963 # likewise P contains macro parameters if any. Preserve backslash
20964 # newline sequences.
20966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20968 s/.\{148\}/&'"$ac_delim"'/g
20971 s/^[ ]*#[ ]*define[ ][ ]*/ /
20978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20985 D["\1"]=" \3\\\\\\n"\\/p
20987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20992 s/.\{148\}/&'"$ac_delim"'/g
20997 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21000 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21002 ' <confdefs.h | sed '
21003 s/'"$ac_delim"'/"\\\
21004 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21007 for (key in D) D_is_set[key] = 1
21010 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21012 split(line, arg, " ")
21013 if (arg[1] == "#") {
21017 defundef = substr(arg[1], 2)
21020 split(mac1, mac2, "(") #)
21022 prefix = substr(line, 1, index(line, defundef) - 1)
21023 if (D_is_set[macro]) {
21024 # Preserve the white space surrounding the "#".
21025 print prefix "define", macro P[macro] D[macro]
21028 # Replace #undef with comments. This is necessary, for example,
21029 # in the case of _POSIX_SOURCE, which is predefined and required
21030 # on some systems where configure will not decide to define it.
21031 if (defundef == "undef") {
21032 print "/*", prefix defundef, macro, "*/"
21040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21041 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21042 fi # test -n "$CONFIG_HEADERS"
21045 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
21050 :[FHLC]) ac_mode=$ac_tag; continue;;
21052 case $ac_mode$ac_tag in
21054 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21055 :[FH]-) ac_tag=-:-;;
21056 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21073 -) ac_f="$tmp/stdin";;
21074 *) # Look for the file first in the build tree, then in the source tree
21075 # (if the path is not absolute). The absolute path cannot be DOS-style,
21076 # because $ac_f cannot contain `:'.
21080 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21082 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21084 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21085 as_fn_append ac_file_inputs " '$ac_f'"
21088 # Let's still pretend it is `configure' which instantiates (i.e., don't
21089 # use $as_me), people would be surprised to read:
21090 # /* config.h. Generated by config.status. */
21091 configure_input='Generated from '`
21092 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21094 if test x"$ac_file" != x-; then
21095 configure_input="$ac_file. $configure_input"
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21097 $as_echo "$as_me: creating $ac_file" >&6;}
21099 # Neutralize special characters interpreted by sed in replacement strings.
21100 case $configure_input in #(
21101 *\&* | *\|* | *\\* )
21102 ac_sed_conf_input=`$as_echo "$configure_input" |
21103 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21104 *) ac_sed_conf_input=$configure_input;;
21108 *:-:* | *:-) cat >"$tmp/stdin" \
21109 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21114 ac_dir=`$as_dirname -- "$ac_file" ||
21115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116 X"$ac_file" : 'X\(//\)[^/]' \| \
21117 X"$ac_file" : 'X\(//\)$' \| \
21118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21119 $as_echo X"$ac_file" |
21120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21124 /^X\(\/\/\)[^/].*/{
21137 as_dir="$ac_dir"; as_fn_mkdir_p
21141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21143 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21144 # A ".." for each directory in $ac_dir_suffix.
21145 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21146 case $ac_top_builddir_sub in
21147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21151 ac_abs_top_builddir=$ac_pwd
21152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21153 # for backward compatibility:
21154 ac_top_builddir=$ac_top_build_prefix
21157 .) # We are building in place.
21159 ac_top_srcdir=$ac_top_builddir_sub
21160 ac_abs_top_srcdir=$ac_pwd ;;
21161 [\\/]* | ?:[\\/]* ) # Absolute name.
21162 ac_srcdir=$srcdir$ac_dir_suffix;
21163 ac_top_srcdir=$srcdir
21164 ac_abs_top_srcdir=$srcdir ;;
21165 *) # Relative name.
21166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21167 ac_top_srcdir=$ac_top_build_prefix$srcdir
21168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21180 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21181 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21183 ac_MKDIR_P=$MKDIR_P
21185 [\\/$]* | ?:[\\/]* ) ;;
21186 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21191 # If the template does not know about datarootdir, expand it.
21192 # FIXME: This hack should be removed a few years after 2.60.
21193 ac_datarootdir_hack=; ac_datarootdir_seen=
21204 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21205 *datarootdir*) ac_datarootdir_seen=yes;;
21206 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21208 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21211 ac_datarootdir_hack='
21212 s&@datadir@&$datadir&g
21213 s&@docdir@&$docdir&g
21214 s&@infodir@&$infodir&g
21215 s&@localedir@&$localedir&g
21216 s&@mandir@&$mandir&g
21217 s&\\\${datarootdir}&$datarootdir&g' ;;
21221 # Neutralize VPATH when `$srcdir' = `.'.
21222 # Shell code in configure.ac might set extrasub.
21223 # FIXME: do we really want to maintain this feature?
21224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21225 ac_sed_extra="$ac_vpsub
21228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21231 s|@configure_input@|$ac_sed_conf_input|;t t
21232 s&@top_builddir@&$ac_top_builddir_sub&;t t
21233 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21234 s&@srcdir@&$ac_srcdir&;t t
21235 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21236 s&@top_srcdir@&$ac_top_srcdir&;t t
21237 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21238 s&@builddir@&$ac_builddir&;t t
21239 s&@abs_builddir@&$ac_abs_builddir&;t t
21240 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21241 s&@INSTALL@&$ac_INSTALL&;t t
21242 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21243 $ac_datarootdir_hack
21245 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21246 || as_fn_error "could not create $ac_file" "$LINENO" 5
21248 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21249 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21250 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21252 which seems to be undefined. Please make sure it is defined." >&5
21253 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21254 which seems to be undefined. Please make sure it is defined." >&2;}
21258 -) cat "$tmp/out" && rm -f "$tmp/out";;
21259 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21261 || as_fn_error "could not create $ac_file" "$LINENO" 5
21267 if test x"$ac_file" != x-; then
21269 $as_echo "/* $configure_input */" \
21270 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21271 } >"$tmp/config.h" \
21272 || as_fn_error "could not create $ac_file" "$LINENO" 5
21273 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21275 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21278 mv "$tmp/config.h" "$ac_file" \
21279 || as_fn_error "could not create $ac_file" "$LINENO" 5
21282 $as_echo "/* $configure_input */" \
21283 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21284 || as_fn_error "could not create -" "$LINENO" 5
21286 # Compute "$ac_file"'s index in $config_headers.
21289 for _am_header in $config_headers :; do
21290 case $_am_header in
21291 $_am_arg | $_am_arg:* )
21294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21297 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21298 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21299 X"$_am_arg" : 'X\(//\)[^/]' \| \
21300 X"$_am_arg" : 'X\(//\)$' \| \
21301 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21302 $as_echo X"$_am_arg" |
21303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21307 /^X\(\/\/\)[^/].*/{
21319 s/.*/./; q'`/stamp-h$_am_stamp_count
21326 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
21329 # Prefer the file from the source tree if names are identical.
21330 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21331 ac_source=$srcdir/$ac_source
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21335 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21337 if test ! -r "$ac_source"; then
21338 as_fn_error "$ac_source: file not found" "$LINENO" 5
21342 # Try a relative symlink, then a hard link, then a copy.
21344 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21345 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21347 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21348 ln "$ac_source" "$ac_file" 2>/dev/null ||
21349 cp -p "$ac_source" "$ac_file" ||
21350 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21353 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21354 $as_echo "$as_me: executing $ac_file commands" >&6;}
21359 case $ac_file$ac_mode in
21360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21361 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21362 # are listed without --file. Let's play safe and only enable the eval
21363 # if we detect the quoting.
21364 case $CONFIG_FILES in
21365 *\'*) eval set x "$CONFIG_FILES" ;;
21366 *) set x $CONFIG_FILES ;;
21371 # Strip MF so we end up with the name of the file.
21372 mf=`echo "$mf" | sed -e 's/:.*$//'`
21373 # Check whether this is an Automake generated Makefile or not.
21374 # We used to match only the files named `Makefile.in', but
21375 # some people rename them; so instead we look at the file content.
21376 # Grep'ing the first line is not enough: some people post-process
21377 # each Makefile.in and add a new line on top of each file to say so.
21378 # Grep'ing the whole file is not good either: AIX grep has a line
21379 # limit of 2048, but all sed's we know have understand at least 4000.
21380 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21381 dirpart=`$as_dirname -- "$mf" ||
21382 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21383 X"$mf" : 'X\(//\)[^/]' \| \
21384 X"$mf" : 'X\(//\)$' \| \
21385 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21391 /^X\(\/\/\)[^/].*/{
21407 # Extract the definition of DEPDIR, am__include, and am__quote
21408 # from the Makefile without running `make'.
21409 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21410 test -z "$DEPDIR" && continue
21411 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21412 test -z "am__include" && continue
21413 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21414 # When using ansi2knr, U may be empty or an underscore; expand it
21415 U=`sed -n 's/^U = //p' < "$mf"`
21416 # Find all dependency output files, they are included files with
21417 # $(DEPDIR) in their names. We invoke sed twice because it is the
21418 # simplest approach to changing $(DEPDIR) to its actual value in the
21420 for file in `sed -n "
21421 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21422 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21423 # Make sure the directory exists.
21424 test -f "$dirpart/$file" && continue
21425 fdir=`$as_dirname -- "$file" ||
21426 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21427 X"$file" : 'X\(//\)[^/]' \| \
21428 X"$file" : 'X\(//\)$' \| \
21429 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21430 $as_echo X"$file" |
21431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21435 /^X\(\/\/\)[^/].*/{
21448 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21449 # echo "creating $dirpart/$file"
21450 echo '# dummy' > "$dirpart/$file"
21462 ac_clean_files=$ac_clean_files_save
21464 test $ac_write_fail = 0 ||
21465 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21468 # configure is writing to config.log, and then calls config.status.
21469 # config.status does its own redirection, appending to config.log.
21470 # Unfortunately, on DOS this fails, as config.log is still kept open
21471 # by configure, so config.status won't be able to write to it; its
21472 # output is simply discarded. So we exec the FD to /dev/null,
21473 # effectively closing config.log, so it can be properly (re)opened and
21474 # appended to by config.status. When coming back to configure, we
21475 # need to make the FD available again.
21476 if test "$no_create" != yes; then
21478 ac_config_status_args=
21479 test "$silent" = yes &&
21480 ac_config_status_args="$ac_config_status_args --quiet"
21482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21485 # would make configure fail if this is the last instruction.
21486 $ac_cs_success || as_fn_exit $?
21488 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21490 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}