2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
592 gl_fnmatch_required
=POSIX
594 ac_subst_vars
='am__EXEEXT_FALSE
619 INSTALL_STRIP_PROGRAM
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
659 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 HAVE_DECL_LOCALTIME_R
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
717 NEXT_AS_FIRST_DIRECTIVE_STRING_H
720 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
722 GL_GENERATE_STDDEF_H_FALSE
723 GL_GENERATE_STDDEF_H_TRUE
728 GL_GENERATE_STDBOOL_H_FALSE
729 GL_GENERATE_STDBOOL_H_TRUE
899 NEXT_AS_FIRST_DIRECTIVE_MATH_H
901 LOCALCHARSET_TESTS_ENVIRONMENT
903 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
905 UINT64_MAX_EQ_ULONG_MAX
906 UINT32_MAX_LT_UINTMAX_MAX
909 INT64_MAX_EQ_LONG_MAX
910 INT32_MAX_LT_INTMAX_MAX
920 GL_GENERATE_STDINT_H_FALSE
921 GL_GENERATE_STDINT_H_TRUE
930 HAVE_SIGNED_SIG_ATOMIC_T
933 BITSIZEOF_SIG_ATOMIC_T
936 APPLE_UNIVERSAL_BUILD
940 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
945 HAVE_UNSIGNED_LONG_LONG_INT
948 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
954 REPLACE_SIGNBIT_USING_GCC
1023 HAVE_DECL_REMAINDERL
1204 GL_GENERATE_FNMATCH_H_FALSE
1205 GL_GENERATE_FNMATCH_H_TRUE
1208 GL_GENERATE_FLOAT_H_FALSE
1209 GL_GENERATE_FLOAT_H_TRUE
1211 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1219 GL_GENERATE_ERRNO_H_FALSE
1220 GL_GENERATE_ERRNO_H_TRUE
1222 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1225 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1228 PRAGMA_SYSTEM_HEADER
1229 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1252 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1253 UNISTD_H_HAVE_WINSOCK2_H
1274 REPLACE_GETDOMAINNAME
1285 HAVE_DECL_SETHOSTNAME
1286 HAVE_DECL_GETUSERSHELL
1287 HAVE_DECL_GETPAGESIZE
1288 HAVE_DECL_GETLOGIN_R
1289 HAVE_DECL_GETDOMAINNAME
1328 GNULIB_UNISTD_H_SIGPIPE
1329 GNULIB_UNISTD_H_NONBLOCKING
1355 GNULIB_GETDTABLESIZE
1356 GNULIB_GETDOMAINNAME
1374 GL_GENERATE_ALLOCA_H_FALSE
1375 GL_GENERATE_ALLOCA_H_TRUE
1378 GL_COND_LIBTOOL_FALSE
1379 GL_COND_LIBTOOL_TRUE
1406 MAINTAINER_MODE_FALSE
1407 MAINTAINER_MODE_TRUE
1435 program_transform_name
1448 enable_option_checking
1449 enable_maintainer_mode
1450 enable_dependency_tracking
1452 ac_precious_vars
='build_alias
1463 # Initialize some variables set by options.
1465 ac_init_version
=false
1466 ac_unrecognized_opts
=
1467 ac_unrecognized_sep
=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file
=/dev
/null
1477 program_transform_name
=s
,x
,x
,
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir
='${exec_prefix}/bin'
1492 sbindir
='${exec_prefix}/sbin'
1493 libexecdir
='${exec_prefix}/libexec'
1494 datarootdir
='${prefix}/share'
1495 datadir
='${datarootdir}'
1496 sysconfdir
='${prefix}/etc'
1497 sharedstatedir
='${prefix}/com'
1498 localstatedir
='${prefix}/var'
1499 includedir
='${prefix}/include'
1500 oldincludedir
='/usr/include'
1501 docdir
='${datarootdir}/doc/${PACKAGE}'
1502 infodir
='${datarootdir}/info'
1507 libdir
='${exec_prefix}/lib'
1508 localedir
='${datarootdir}/locale'
1509 mandir
='${datarootdir}/man'
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\
$ac_option
1523 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1529 case $ac_dashdash$ac_option in
1533 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1535 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1536 bindir
=$ac_optarg ;;
1538 -build |
--build |
--buil |
--bui |
--bu)
1539 ac_prev
=build_alias
;;
1540 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1541 build_alias
=$ac_optarg ;;
1543 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1544 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1545 ac_prev
=cache_file
;;
1546 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1547 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1548 cache_file
=$ac_optarg ;;
1550 --config-cache |
-C)
1551 cache_file
=config.cache
;;
1553 -datadir |
--datadir |
--datadi |
--datad)
1555 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1556 datadir
=$ac_optarg ;;
1558 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1559 |
--dataroo |
--dataro |
--datar)
1560 ac_prev
=datarootdir
;;
1561 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1562 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1563 datarootdir
=$ac_optarg ;;
1565 -disable-* |
--disable-*)
1566 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1569 as_fn_error
"invalid feature name: $ac_useropt"
1570 ac_useropt_orig
=$ac_useropt
1571 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1574 "enable_
$ac_useropt"
1576 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep
=', ';;
1579 eval enable_
$ac_useropt=no
;;
1581 -docdir |
--docdir |
--docdi |
--doc |
--do)
1583 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1584 docdir
=$ac_optarg ;;
1586 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1588 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1589 dvidir
=$ac_optarg ;;
1591 -enable-* |
--enable-*)
1592 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1595 as_fn_error
"invalid feature name: $ac_useropt"
1596 ac_useropt_orig
=$ac_useropt
1597 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1600 "enable_
$ac_useropt"
1602 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep
=', ';;
1605 eval enable_
$ac_useropt=\
$ac_optarg ;;
1607 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1608 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1609 |
--exec |
--exe |
--ex)
1610 ac_prev
=exec_prefix
;;
1611 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1612 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1613 |
--exec=* |
--exe=* |
--ex=*)
1614 exec_prefix
=$ac_optarg ;;
1616 -gas |
--gas |
--ga |
--g)
1617 # Obsolete; use --with-gas.
1620 -help |
--help |
--hel |
--he |
-h)
1621 ac_init_help
=long
;;
1622 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1623 ac_init_help
=recursive
;;
1624 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1625 ac_init_help
=short
;;
1627 -host |
--host |
--hos |
--ho)
1628 ac_prev
=host_alias
;;
1629 -host=* |
--host=* |
--hos=* |
--ho=*)
1630 host_alias
=$ac_optarg ;;
1632 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1634 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1636 htmldir
=$ac_optarg ;;
1638 -includedir |
--includedir |
--includedi |
--included |
--include \
1639 |
--includ |
--inclu |
--incl |
--inc)
1640 ac_prev
=includedir
;;
1641 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1642 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1643 includedir
=$ac_optarg ;;
1645 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1647 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1648 infodir
=$ac_optarg ;;
1650 -libdir |
--libdir |
--libdi |
--libd)
1652 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1653 libdir
=$ac_optarg ;;
1655 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1656 |
--libexe |
--libex |
--libe)
1657 ac_prev
=libexecdir
;;
1658 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1659 |
--libexe=* |
--libex=* |
--libe=*)
1660 libexecdir
=$ac_optarg ;;
1662 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1663 ac_prev
=localedir
;;
1664 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1665 localedir
=$ac_optarg ;;
1667 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1668 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1669 ac_prev
=localstatedir
;;
1670 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1671 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1672 localstatedir
=$ac_optarg ;;
1674 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1676 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1677 mandir
=$ac_optarg ;;
1679 -nfp |
--nfp |
--nf)
1680 # Obsolete; use --without-fp.
1683 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1684 |
--no-cr |
--no-c |
-n)
1687 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1688 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1691 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1692 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1693 |
--oldin |
--oldi |
--old |
--ol |
--o)
1694 ac_prev
=oldincludedir
;;
1695 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1696 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1697 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1698 oldincludedir
=$ac_optarg ;;
1700 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1702 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1703 prefix
=$ac_optarg ;;
1705 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1706 |
--program-pre |
--program-pr |
--program-p)
1707 ac_prev
=program_prefix
;;
1708 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1709 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1710 program_prefix
=$ac_optarg ;;
1712 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1713 |
--program-suf |
--program-su |
--program-s)
1714 ac_prev
=program_suffix
;;
1715 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1716 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1717 program_suffix
=$ac_optarg ;;
1719 -program-transform-name |
--program-transform-name \
1720 |
--program-transform-nam |
--program-transform-na \
1721 |
--program-transform-n |
--program-transform- \
1722 |
--program-transform |
--program-transfor \
1723 |
--program-transfo |
--program-transf \
1724 |
--program-trans |
--program-tran \
1725 |
--progr-tra |
--program-tr |
--program-t)
1726 ac_prev
=program_transform_name
;;
1727 -program-transform-name=* |
--program-transform-name=* \
1728 |
--program-transform-nam=* |
--program-transform-na=* \
1729 |
--program-transform-n=* |
--program-transform-=* \
1730 |
--program-transform=* |
--program-transfor=* \
1731 |
--program-transfo=* |
--program-transf=* \
1732 |
--program-trans=* |
--program-tran=* \
1733 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1734 program_transform_name
=$ac_optarg ;;
1736 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1738 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1739 pdfdir
=$ac_optarg ;;
1741 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1743 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1746 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1747 |
-silent |
--silent |
--silen |
--sile |
--sil)
1750 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1752 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1754 sbindir
=$ac_optarg ;;
1756 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1757 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1758 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1760 ac_prev
=sharedstatedir
;;
1761 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1762 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1763 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1765 sharedstatedir
=$ac_optarg ;;
1767 -site |
--site |
--sit)
1769 -site=* |
--site=* |
--sit=*)
1772 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1774 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1775 srcdir
=$ac_optarg ;;
1777 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1778 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1779 ac_prev
=sysconfdir
;;
1780 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1781 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1782 sysconfdir
=$ac_optarg ;;
1784 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1785 ac_prev
=target_alias
;;
1786 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1787 target_alias
=$ac_optarg ;;
1789 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1792 -version |
--version |
--versio |
--versi |
--vers |
-V)
1793 ac_init_version
=: ;;
1796 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1799 as_fn_error
"invalid package name: $ac_useropt"
1800 ac_useropt_orig
=$ac_useropt
1801 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1806 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep
=', ';;
1809 eval with_
$ac_useropt=\
$ac_optarg ;;
1811 -without-* |
--without-*)
1812 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1815 as_fn_error
"invalid package name: $ac_useropt"
1816 ac_useropt_orig
=$ac_useropt
1817 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1822 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep
=', ';;
1825 eval with_
$ac_useropt=no
;;
1828 # Obsolete; use --with-x.
1831 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1832 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1833 ac_prev
=x_includes
;;
1834 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1835 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1836 x_includes
=$ac_optarg ;;
1838 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1839 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1840 ac_prev
=x_libraries
;;
1841 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1842 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1843 x_libraries
=$ac_optarg ;;
1845 -*) as_fn_error
"unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1850 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1854 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1856 eval $ac_envvar=\
$ac_optarg
1857 export $ac_envvar ;;
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1870 if test -n "$ac_prev"; then
1871 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error
"missing argument to $ac_option"
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1878 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1883 # Check all directory arguments for consistency.
1884 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1889 eval ac_val
=\$
$ac_var
1890 # Remove trailing slashes.
1893 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\
$ac_val;;
1896 # Be sure to have absolute directory names.
1898 [\\/$
]* | ?
:[\\/]* ) continue;;
1899 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1901 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1909 target
=$target_alias
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x
; then
1913 if test "x$build_alias" = x
; then
1914 cross_compiling
=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1923 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1925 test "$silent" = yes && exec 6>/dev
/null
1928 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di
=`ls -di .` &&
1930 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error
"working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error
"pwd does not report name of working directory"
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted
=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir
=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1968 ac_srcdir_defaulted
=no
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1972 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1974 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1986 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1988 for ac_var
in $ac_precious_vars; do
1989 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1991 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1996 # Report the --help message.
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2002 \`configure' configures this package to adapt to many kinds of systems.
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2009 Defaults for the options are specified in brackets.
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2033 For better control, use the options below.
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2065 --build=BUILD configure
for building on BUILD
[guessed
]
2066 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2067 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2071 if test -n "$ac_init_help"; then
2076 --disable-option-checking ignore unrecognized
--enable/--with options
2077 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2078 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2079 --enable-maintainer-mode enable make rules and dependencies not useful
2080 (and sometimes confusing
) to the casual installer
2081 --disable-dependency-tracking speeds up one-time build
2082 --enable-dependency-tracking do not reject slow dependency extractors
2084 Some influential environment variables
:
2085 CC C compiler
command
2086 CFLAGS C compiler flags
2087 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2088 nonstandard directory
<lib dir
>
2089 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2090 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2091 you have headers
in a nonstandard directory
<include dir
>
2094 Use these variables to override the choices made by
`configure' or to help
2095 it to find libraries and programs with nonstandard names/locations.
2097 Report bugs to the package provider.
2102 if test "$ac_init_help" = "recursive"; then
2103 # If there are subdirs, report their specific --help.
2104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2105 test -d "$ac_dir" ||
2106 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2113 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2114 # A ".." for each directory in $ac_dir_suffix.
2115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2116 case $ac_top_builddir_sub in
2117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2121 ac_abs_top_builddir=$ac_pwd
2122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2123 # for backward compatibility:
2124 ac_top_builddir=$ac_top_build_prefix
2127 .) # We are building in place.
2129 ac_top_srcdir=$ac_top_builddir_sub
2130 ac_abs_top_srcdir=$ac_pwd ;;
2131 [\\/]* | ?:[\\/]* ) # Absolute name.
2132 ac_srcdir=$srcdir$ac_dir_suffix;
2133 ac_top_srcdir=$srcdir
2134 ac_abs_top_srcdir=$srcdir ;;
2136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2137 ac_top_srcdir=$ac_top_build_prefix$srcdir
2138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2142 cd "$ac_dir" || { ac_status=$?; continue; }
2143 # Check for guested configure.
2144 if test -f "$ac_srcdir/configure.gnu"; then
2146 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2147 elif test -f "$ac_srcdir/configure"; then
2149 $SHELL "$ac_srcdir/configure" --help=recursive
2151 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2153 cd "$ac_pwd" || { ac_status=$?; break; }
2157 test -n "$ac_init_help" && exit $ac_status
2158 if $ac_init_version; then
2161 generated by GNU Autoconf 2.64
2163 Copyright (C) 2009 Free Software Foundation, Inc.
2164 This configure script is free software; the Free Software Foundation
2165 gives unlimited permission to copy, distribute and modify it.
2170 ## ------------------------ ##
2171 ## Autoconf initialization. ##
2172 ## ------------------------ ##
2174 # ac_fn_c_try_compile LINENO
2175 # --------------------------
2176 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2177 ac_fn_c_try_compile ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 rm -f conftest.$ac_objext
2181 if { { ac_try="$ac_compile"
2183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2184 *) ac_try_echo
=$ac_try;;
2186 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_compile") 2>conftest.err
2190 if test -s conftest.err
; then
2191 grep -v '^ *+' conftest.err
>conftest.er1
2192 cat conftest.er1
>&5
2193 mv -f conftest.er1 conftest.err
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; } && {
2197 test -z "$ac_c_werror_flag" ||
2198 test ! -s conftest.err
2199 } && test -s conftest.
$ac_objext; then :
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.
$ac_ext >&5
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2210 } # ac_fn_c_try_compile
2212 # ac_fn_c_try_cpp LINENO
2213 # ----------------------
2214 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2217 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2218 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2227 if test -s conftest.err; then
2228 grep -v '^ *+' conftest.err >conftest.er1
2229 cat conftest.er1 >&5
2230 mv -f conftest.er1 conftest.err
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; } >/dev/null && {
2234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2235 test ! -s conftest.err
2239 $as_echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2250 # -------------------------------------------------------
2251 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2252 # the include files in INCLUDES and setting the cache variable VAR
2254 ac_fn_c_check_header_mongrel ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2261 $as_echo_n "(cached) " >&6
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2267 # Is the header compilable?
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2269 $as_echo_n "checking $2 usability... " >&6; }
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 ac_header_compiler=yes
2278 ac_header_compiler=no
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2282 $as_echo "$ac_header_compiler" >&6; }
2284 # Is the header present?
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2286 $as_echo_n "checking $2 presence... " >&6; }
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 if ac_fn_c_try_cpp "$LINENO"; then :
2292 ac_header_preproc=yes
2294 ac_header_preproc=no
2296 rm -f conftest.err conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2298 $as_echo "$ac_header_preproc" >&6; }
2300 # So? What about this header?
2301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2304 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2310 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2312 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2314 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2316 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2324 $as_echo_n "(cached) " >&6
2326 eval "$3=\$ac_header_compiler"
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $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_header_mongrel
2336 # ac_fn_c_try_run LINENO
2337 # ----------------------
2338 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2339 # that executables *can* be run.
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 if { { ac_try="$ac_link"
2345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2346 *) ac_try_echo
=$ac_try;;
2348 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349 $as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_link") 2>&5
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2354 { { case "(($ac_try" in
2355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359 $as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_try") 2>&5
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; }; }; then :
2366 $as_echo "$as_me: program exited with status $ac_status" >&5
2367 $as_echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2370 ac_retval=$ac_status
2372 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2378 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2379 # -------------------------------------------------------
2380 # Tests whether HEADER exists and can be compiled using the include files in
2381 # INCLUDES, setting the cache variable VAR accordingly.
2382 ac_fn_c_check_header_compile ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386 $as_echo_n "checking for $2... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_c_check_header_compile
2409 # ac_fn_c_try_link LINENO
2410 # -----------------------
2411 # Try to link conftest.$ac_ext, and return whether this succeeded.
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 rm -f conftest.$ac_objext conftest$ac_exeext
2416 if { { ac_try="$ac_link"
2418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2419 *) ac_try_echo
=$ac_try;;
2421 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422 $as_echo "$ac_try_echo"; } >&5
2423 (eval "$ac_link") 2>conftest.err
2425 if test -s conftest.err
; then
2426 grep -v '^ *+' conftest.err
>conftest.er1
2427 cat conftest.er1
>&5
2428 mv -f conftest.er1 conftest.err
2430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431 test $ac_status = 0; } && {
2432 test -z "$ac_c_werror_flag" ||
2433 test ! -s conftest.err
2434 } && test -s conftest
$ac_exeext && {
2435 test "$cross_compiling" = yes ||
2436 $as_test_x conftest
$ac_exeext
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.
$ac_ext >&5
2445 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2446 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2447 # interfere with the next link command; also delete a directory that is
2448 # left behind by Apple's compiler. We do this before executing the actions.
2449 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2453 } # ac_fn_c_try_link
2455 # ac_fn_c_check_func LINENO FUNC VAR
2456 # ----------------------------------
2457 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2458 ac_fn_c_check_func
()
2460 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2470 #define $2 innocuous_$2
2472 /* System header to define __stub macros and hopefully few prototypes,
2473 which can conflict with char $2 (); below.
2474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 <limits.h> exists even on freestanding compilers. */
2478 # include <limits.h>
2480 # include <assert.h>
2485 /* Override any GCC internal prototype to avoid an error.
2486 Use char because int might match the return type of a GCC
2487 builtin and then its argument prototype would still apply. */
2492 /* The GNU C library defines this for functions which it implements
2493 to always fail with ENOSYS. Some functions are actually named
2494 something starting with __ and the normal name is an alias. */
2495 #if defined __stub_$2 || defined __stub___$2
2507 if ac_fn_c_try_link
"$LINENO"; then :
2512 rm -f core conftest.err conftest.
$ac_objext \
2513 conftest
$ac_exeext conftest.
$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2520 } # ac_fn_c_check_func
2522 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2523 # --------------------------------------------
2524 # Tries to find the compile-time value of EXPR in a program that includes
2525 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2527 ac_fn_c_compute_int
()
2529 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2530 if test "$cross_compiling" = yes; then
2531 # Depending upon the size, compute the lo and hi bounds.
2532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2538 static int test_array [1 - 2 * !(($2) >= 0)];
2545 if ac_fn_c_try_compile
"$LINENO"; then :
2548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2554 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2561 if ac_fn_c_try_compile
"$LINENO"; then :
2562 ac_hi
=$ac_mid; break
2564 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2565 if test $ac_lo -le $ac_mid; then
2569 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2580 static int test_array [1 - 2 * !(($2) < 0)];
2587 if ac_fn_c_try_compile
"$LINENO"; then :
2590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2596 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2603 if ac_fn_c_try_compile
"$LINENO"; then :
2604 ac_lo
=$ac_mid; break
2606 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2607 if test $ac_mid -le $ac_hi; then
2611 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2621 # Binary search between lo and hi bounds.
2622 while test "x$ac_lo" != "x$ac_hi"; do
2623 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2630 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2637 if ac_fn_c_try_compile
"$LINENO"; then :
2640 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2645 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2652 static long int longval () { return $2; }
2653 static unsigned long int ulongval () { return $2; }
2660 FILE *f = fopen ("conftest.val", "w");
2665 long int i = longval ();
2668 fprintf (f, "%ld", i);
2672 unsigned long int i = ulongval ();
2675 fprintf (f, "%lu", i);
2677 /* Do not output a trailing newline, as this causes \r\n confusion
2678 on some platforms. */
2679 return ferror (f) || fclose (f) != 0;
2685 if ac_fn_c_try_run
"$LINENO"; then :
2686 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2695 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2698 } # ac_fn_c_compute_int
2700 # ac_fn_c_check_decl LINENO SYMBOL VAR
2701 # ------------------------------------
2702 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2703 ac_fn_c_check_decl
()
2705 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2707 $as_echo_n "checking whether $2 is declared... " >&6; }
2708 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2709 $as_echo_n "(cached) " >&6
2711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2725 if ac_fn_c_try_compile
"$LINENO"; then :
2730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734 $as_echo "$ac_res" >&6; }
2735 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2737 } # ac_fn_c_check_decl
2739 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2740 # -------------------------------------------
2741 # Tests whether TYPE exists after having included INCLUDES, setting cache
2742 # variable VAR accordingly.
2743 ac_fn_c_check_type
()
2745 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2749 $as_echo_n "(cached) " >&6
2752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2764 if ac_fn_c_try_compile
"$LINENO"; then :
2765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2777 if ac_fn_c_try_compile
"$LINENO"; then :
2782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2791 } # ac_fn_c_check_type
2792 cat >config.log
<<_ACEOF
2793 This file contains any messages produced by compilers while
2794 running configure, to aid debugging if configure makes a mistake.
2796 It was created by $as_me, which was
2797 generated by GNU Autoconf 2.64. Invocation command line was
2809 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2810 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2811 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2812 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2813 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2815 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2816 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2818 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2819 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2820 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2821 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2822 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2823 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2824 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 $as_echo "PATH: $as_dir"
2849 # Keep a trace of the command line.
2850 # Strip out --no-create and --no-recursion so they do not pile up.
2851 # Strip out --silent because we don't want to record it for future runs.
2852 # Also quote any args containing shell meta-characters.
2853 # Make two passes to allow for proper duplicate-argument suppression.
2857 ac_must_keep_next
=false
2863 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2864 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2865 |
-silent |
--silent |
--silen |
--sile |
--sil)
2868 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2871 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2873 as_fn_append ac_configure_args1
" '$ac_arg'"
2874 if test $ac_must_keep_next = true
; then
2875 ac_must_keep_next
=false
# Got value, back to normal.
2878 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2879 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2880 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2881 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2882 case "$ac_configure_args0 " in
2883 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2886 -* ) ac_must_keep_next
=true
;;
2889 as_fn_append ac_configure_args
" '$ac_arg'"
2894 { ac_configure_args0
=; unset ac_configure_args0
;}
2895 { ac_configure_args1
=; unset ac_configure_args1
;}
2897 # When interrupted or exit'd, cleanup temporary files, and complete
2898 # config.log. We remove comments because anyway the quotes in there
2899 # would cause problems or look ugly.
2900 # WARNING: Use '\'' to represent an apostrophe within the trap.
2901 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2902 trap 'exit_status=$?
2903 # Save into config.log some information that might help in debugging.
2908 ## ---------------- ##
2909 ## Cache variables. ##
2910 ## ---------------- ##
2913 # The following way of writing the cache mishandles newlines in values,
2915 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2916 eval ac_val=\$$ac_var
2920 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2921 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2924 _ | IFS | as_nl) ;; #(
2925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2926 *) { eval $ac_var=; unset $ac_var;} ;;
2931 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2932 *${as_nl}ac_space=\ *)
2934 "s/'\''/'\''\\\\'\'''\''/g;
2935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2946 ## ----------------- ##
2947 ## Output variables. ##
2948 ## ----------------- ##
2951 for ac_var in $ac_subst_vars
2953 eval ac_val=\$$ac_var
2955 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2957 $as_echo "$ac_var='\''$ac_val'\''"
2961 if test -n "$ac_subst_files"; then
2963 ## ------------------- ##
2964 ## File substitutions. ##
2965 ## ------------------- ##
2968 for ac_var
in $ac_subst_files
2970 eval ac_val
=\$
$ac_var
2972 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2974 $as_echo "$ac_var='\''$ac_val'\''"
2979 if test -s confdefs.h; then
2989 test "$ac_signal" != 0 &&
2990 $as_echo "$as_me: caught signal $ac_signal"
2991 $as_echo "$as_me: exit $exit_status"
2993 rm -f core *.core core.conftest.* &&
2994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2997 for ac_signal
in 1 2 13 15; do
2998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3003 rm -f -r conftest
* confdefs.h
3005 $as_echo "/* confdefs.h */" > confdefs.h
3007 # Predefined preprocessor variables.
3009 cat >>confdefs.h
<<_ACEOF
3010 #define PACKAGE_NAME "$PACKAGE_NAME"
3013 cat >>confdefs.h
<<_ACEOF
3014 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3017 cat >>confdefs.h
<<_ACEOF
3018 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3021 cat >>confdefs.h
<<_ACEOF
3022 #define PACKAGE_STRING "$PACKAGE_STRING"
3025 cat >>confdefs.h
<<_ACEOF
3026 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3029 cat >>confdefs.h
<<_ACEOF
3030 #define PACKAGE_URL "$PACKAGE_URL"
3034 # Let the site file select an alternate cache file if it wants to.
3035 # Prefer an explicitly selected file to automatically selected ones.
3038 if test -n "$CONFIG_SITE"; then
3039 ac_site_file1
=$CONFIG_SITE
3040 elif test "x$prefix" != xNONE
; then
3041 ac_site_file1
=$prefix/share
/config.site
3042 ac_site_file2
=$prefix/etc
/config.site
3044 ac_site_file1
=$ac_default_prefix/share
/config.site
3045 ac_site_file2
=$ac_default_prefix/etc
/config.site
3047 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3049 test "x$ac_site_file" = xNONE
&& continue
3050 if test -r "$ac_site_file"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3052 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3053 sed 's/^/| /' "$ac_site_file" >&5
3058 if test -r "$cache_file"; then
3059 # Some versions of bash will fail to source /dev/null (special
3060 # files actually), so we avoid doing that.
3061 if test -f "$cache_file"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3063 $as_echo "$as_me: loading cache $cache_file" >&6;}
3065 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3066 *) .
"./$cache_file";;
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3071 $as_echo "$as_me: creating cache $cache_file" >&6;}
3075 as_fn_append ac_header_list
" dirent.h"
3076 as_fn_append ac_func_list
" btowc"
3077 as_fn_append ac_func_list
" isblank"
3078 as_fn_append ac_func_list
" iswctype"
3079 as_fn_append ac_func_list
" mbsrtowcs"
3080 as_fn_append ac_func_list
" mempcpy"
3081 as_fn_append ac_func_list
" wmemchr"
3082 as_fn_append ac_func_list
" wmemcpy"
3083 as_fn_append ac_func_list
" wmempcpy"
3084 as_fn_append ac_header_list
" wctype.h"
3085 gl_fnmatch_required
=GNU
3086 as_fn_append ac_func_list
" alarm"
3087 as_fn_append ac_header_list
" wchar.h"
3088 as_fn_append ac_header_list
" stdint.h"
3089 as_fn_append ac_header_list
" inttypes.h"
3090 as_fn_append ac_header_list
" unistd.h"
3091 as_fn_append ac_func_list
" symlink"
3092 as_fn_append ac_header_list
" math.h"
3093 as_fn_append ac_func_list
" mbsinit"
3094 as_fn_append ac_func_list
" mbrtowc"
3095 as_fn_append ac_header_list
" sys/mman.h"
3096 as_fn_append ac_func_list
" mprotect"
3097 as_fn_append ac_header_list
" sys/param.h"
3098 as_fn_append ac_header_list
" sys/socket.h"
3099 as_fn_append ac_header_list
" sys/stat.h"
3100 as_fn_append ac_header_list
" sys/time.h"
3101 as_fn_append ac_header_list
" features.h"
3102 as_fn_append ac_func_list
" iswcntrl"
3103 # Check that the precious variables saved in the cache have kept the same
3105 ac_cache_corrupted
=false
3106 for ac_var
in $ac_precious_vars; do
3107 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3108 eval ac_new_set
=\
$ac_env_${ac_var}_set
3109 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3110 eval ac_new_val
=\
$ac_env_${ac_var}_value
3111 case $ac_old_set,$ac_new_set in
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3115 ac_cache_corrupted
=: ;;
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3119 ac_cache_corrupted
=: ;;
3122 if test "x$ac_old_val" != "x$ac_new_val"; then
3123 # differences in whitespace do not lead to failure.
3124 ac_old_val_w
=`echo x $ac_old_val`
3125 ac_new_val_w
=`echo x $ac_new_val`
3126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3129 ac_cache_corrupted
=:
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3133 eval $ac_var=\
$ac_old_val
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3136 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3138 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 # Pass precious variables to config.status.
3142 if test "$ac_new_set" = set; then
3144 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3145 *) ac_arg
=$ac_var=$ac_new_val ;;
3147 case " $ac_configure_args " in
3148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3149 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3153 if $ac_cache_corrupted; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3158 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3160 ## -------------------- ##
3161 ## Main body of script. ##
3162 ## -------------------- ##
3165 ac_cpp
='$CPP $CPPFLAGS'
3166 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3171 ac_config_headers
="$ac_config_headers config.h:config.in"
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3175 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3176 # Check whether --enable-maintainer-mode was given.
3177 if test "${enable_maintainer_mode+set}" = set; then :
3178 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3180 USE_MAINTAINER_MODE
=no
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3184 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3185 if test $USE_MAINTAINER_MODE = yes; then
3186 MAINTAINER_MODE_TRUE
=
3187 MAINTAINER_MODE_FALSE
='#'
3189 MAINTAINER_MODE_TRUE
='#'
3190 MAINTAINER_MODE_FALSE
=
3193 MAINT
=$MAINTAINER_MODE_TRUE
3198 ac_cpp
='$CPP $CPPFLAGS'
3199 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3204 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC
="$CC" # Let the user override the test.
3213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir
=.
3218 for ac_exec_ext
in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3241 if test -z "$ac_cv_prog_CC"; then
3243 # Extract the first word of "gcc", so it can be a program name with args.
3244 set dummy gcc
; ac_word
=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_ac_ct_CC
="gcc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3273 $as_echo "$ac_ct_CC" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3279 if test "x$ac_ct_CC" = x
; then
3282 case $cross_compiling:$ac_tool_warned in
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned
=yes ;;
3294 if test -z "$CC"; then
3295 if test -n "$ac_tool_prefix"; then
3296 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3297 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_CC+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC
="$CC" # Let the user override the test.
3306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir
=.
3311 for ac_exec_ext
in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 if test -n "$CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3335 if test -z "$CC"; then
3336 # Extract the first word of "cc", so it can be a program name with args.
3337 set dummy cc
; ac_word
=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC
="$CC" # Let the user override the test.
3347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3351 test -z "$as_dir" && as_dir
=.
3352 for ac_exec_ext
in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3355 ac_prog_rejected
=yes
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 if test $ac_prog_rejected = yes; then
3367 # We found a bogon in the path, so make sure we never use it.
3368 set dummy
$ac_cv_prog_CC
3370 if test $# != 0; then
3371 # We chose a different compiler from the bogus one.
3372 # However, it has the same basename, so the bogon will be chosen
3373 # first if we set CC to just the basename; use the full file name.
3375 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3391 if test -z "$CC"; then
3392 if test -n "$ac_tool_prefix"; then
3393 for ac_prog
in cl.exe
3395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3396 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if test "${ac_cv_prog_CC+set}" = set; then :
3400 $as_echo_n "(cached) " >&6
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC
="$CC" # Let the user override the test.
3405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir
=.
3410 for ac_exec_ext
in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3432 test -n "$CC" && break
3435 if test -z "$CC"; then
3437 for ac_prog
in cl.exe
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy
$ac_prog; ac_word
=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$ac_ct_CC"; then
3447 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir
=.
3454 for ac_exec_ext
in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_ac_ct_CC
="$ac_prog"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3467 if test -n "$ac_ct_CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469 $as_echo "$ac_ct_CC" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3476 test -n "$ac_ct_CC" && break
3479 if test "x$ac_ct_CC" = x
; then
3482 case $cross_compiling:$ac_tool_warned in
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486 ac_tool_warned
=yes ;;
3495 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error
"no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." "$LINENO" 5; }
3500 # Provide some information about the compiler.
3501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3504 for ac_option
in --version -v -V -qversion; do
3505 { { ac_try
="$ac_compiler $ac_option >&5"
3507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3514 if test -s conftest.err; then
3516 ... rest of stderr output deleted ...
3517 10q' conftest.err >conftest.er1
3518 cat conftest.er1 >&5
3519 rm -f conftest.er1 conftest.err
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3531 FILE *f = fopen ("conftest.out", "w");
3532 return ferror (f) || fclose (f) != 0;
3538 ac_clean_files_save=$ac_clean_files
3539 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3540 # Try to create an executable without -o first, disregard a.out.
3541 # It will help us diagnose broken compilers, and finding out an intuition
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3544 $as_echo_n "checking for C compiler default output file name... " >&6; }
3545 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3547 # The possible output files:
3548 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3551 for ac_file in $ac_files
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3555 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3560 if { { ac_try="$ac_link_default"
3562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3563 *) ac_try_echo
=$ac_try;;
3565 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_link_default") 2>&5
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }; then :
3571 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3572 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3573 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3574 # so that the user can short-circuit this test for compilers unknown to
3576 for ac_file
in $ac_files ''
3578 test -f "$ac_file" ||
continue
3580 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3583 # We found the default executable, but exeext='' is most
3587 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3589 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3591 # We set ac_cv_exeext here because the later test for it is not
3592 # safe: cross compilers may not add the suffix if given an `-o'
3593 # argument, so we may need to know it at that point already.
3594 # Even if this section looks crufty: it has the advantage of
3601 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3607 $as_echo "$ac_file" >&6; }
3608 if test -z "$ac_file"; then :
3609 $as_echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { as_fn_set_status
77
3615 as_fn_error
"C compiler cannot create executables
3616 See \`config.log' for more details." "$LINENO" 5; }; }
3618 ac_exeext
=$ac_cv_exeext
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3623 $as_echo_n "checking whether the C compiler works... " >&6; }
3624 # If not cross compiling, check that we can run a simple program.
3625 if test "$cross_compiling" != yes; then
3626 if { ac_try
='./$ac_file'
3627 { { case "(($ac_try" in
3628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_try") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; }; then
3639 if test "$cross_compiling" = maybe; then
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error "cannot run C compiled programs.
3645 If you meant to cross compile
, use \
`--host'.
3646 See \`config.log
' for more details." "$LINENO" 5; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3651 $as_echo "yes" >&6; }
3653 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3654 ac_clean_files=$ac_clean_files_save
3655 # Check that the compiler produces executables we can run. If not, either
3656 # the compiler is broken, or we cross compile.
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3658 $as_echo_n "checking whether we are cross compiling... " >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3660 $as_echo "$cross_compiling" >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3663 $as_echo_n "checking for suffix of executables... " >&6; }
3664 if { { ac_try="$ac_link"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3676 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3677 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3679 for ac_file
in conftest.exe conftest conftest.
*; do
3680 test -f "$ac_file" ||
continue
3682 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3683 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3692 See \`config.log' for more details." "$LINENO" 5; }
3694 rm -f conftest
$ac_cv_exeext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3696 $as_echo "$ac_cv_exeext" >&6; }
3698 rm -f conftest.
$ac_ext
3699 EXEEXT
=$ac_cv_exeext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3702 $as_echo_n "checking for suffix of object files... " >&6; }
3703 if test "${ac_cv_objext+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3717 rm -f conftest.o conftest.obj
3718 if { { ac_try
="$ac_compile"
3720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_compile") 2>&5
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; then :
3729 for ac_file in conftest.o conftest.obj conftest.*; do
3730 test -f "$ac_file" || continue;
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3733 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error "cannot compute suffix of object files
: cannot compile
3744 See \
`config.log' for more details." "$LINENO" 5; }
3746 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3749 $as_echo "$ac_cv_objext" >&6; }
3750 OBJEXT=$ac_cv_objext
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3753 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3754 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3771 if ac_fn_c_try_compile "$LINENO"; then :
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3781 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3782 if test $ac_compiler_gnu = yes; then
3787 ac_test_CFLAGS=${CFLAGS+set}
3788 ac_save_CFLAGS=$CFLAGS
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3790 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3791 if test "${ac_cv_prog_cc_g+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3794 ac_save_c_werror_flag=$ac_c_werror_flag
3795 ac_c_werror_flag=yes
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3809 if ac_fn_c_try_compile "$LINENO"; then :
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3824 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_c_werror_flag=$ac_save_c_werror_flag
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3840 if ac_fn_c_try_compile "$LINENO"; then :
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3851 $as_echo "$ac_cv_prog_cc_g" >&6; }
3852 if test "$ac_test_CFLAGS" = set; then
3853 CFLAGS=$ac_save_CFLAGS
3854 elif test $ac_cv_prog_cc_g = yes; then
3855 if test "$GCC" = yes; then
3861 if test "$GCC" = yes; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3868 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3869 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3872 ac_cv_prog_cc_c89=no
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3878 #include <sys/types.h>
3879 #include <sys/stat.h>
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3894 s = g (p, va_arg (v,int));
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std. */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909 inside strings and character constants. */
3911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913 int test (int i, double x);
3914 struct s1 {int (*f) (int a);};
3915 struct s2 {int (*f) (double a);};
3916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930 CC="$ac_save_CC $ac_arg"
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_c89=$ac_arg
3934 rm -f core conftest.err conftest.$ac_objext
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break
3937 rm -f conftest.$ac_ext
3942 case "x$ac_cv_prog_cc_c89" in
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 if test "x$ac_cv_prog_cc_c89" != xno; then :
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3966 for ac_t in install-sh install.sh shtool; do
3967 if test -f "$ac_dir/$ac_t"; then
3969 ac_install_sh="$ac_aux_dir/$ac_t -c"
3974 if test -z "$ac_aux_dir"; then
3975 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3978 # These three variables are undocumented and unsupported,
3979 # and are intended to be withdrawn in a future Autoconf release.
3980 # They can cause serious problems if a builder's source tree is in a directory
3981 # whose full name contains unusual characters.
3982 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3983 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3984 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3987 # Make sure we can run config.sub.
3988 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3989 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3992 $as_echo_n "checking build system type... " >&6; }
3993 if test "${ac_cv_build+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3996 ac_build_alias=$build_alias
3997 test "x$ac_build_alias" = x &&
3998 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3999 test "x$ac_build_alias" = x &&
4000 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4002 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4006 $as_echo "$ac_cv_build" >&6; }
4007 case $ac_cv_build in
4009 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4012 ac_save_IFS=$IFS; IFS='-'
4018 # Remember, the first character of IFS is used to create $*,
4019 # except with old shells:
4022 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4026 $as_echo_n "checking host system type... " >&6; }
4027 if test "${ac_cv_host+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4030 if test "x$host_alias" = x; then
4031 ac_cv_host=$ac_cv_build
4033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4034 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4039 $as_echo "$ac_cv_host" >&6; }
4042 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4045 ac_save_IFS=$IFS; IFS='-'
4051 # Remember, the first character of IFS is used to create $*,
4052 # except with old shells:
4055 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4065 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4066 # On Suns, sometimes $CPP names a directory.
4067 if test -n "$CPP" && test -d "$CPP"; then
4070 if test -z "$CPP"; then
4071 if test "${ac_cv_prog_CPP+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4074 # Double quotes because CPP needs to be expanded
4075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4078 for ac_c_preproc_warn_flag in '' yes
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4089 # include <limits.h>
4091 # include <assert.h>
4095 if ac_fn_c_try_cpp "$LINENO"; then :
4098 # Broken: fails on valid input.
4101 rm -f conftest.err conftest.$ac_ext
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <ac_nonexistent.h>
4109 if ac_fn_c_try_cpp "$LINENO"; then :
4110 # Broken: success on invalid input.
4113 # Passes both tests.
4117 rm -f conftest.err conftest.$ac_ext
4120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4121 rm -f conftest.err conftest.
$ac_ext
4122 if $ac_preproc_ok; then :
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4135 $as_echo "$CPP" >&6; }
4137 for ac_c_preproc_warn_flag
in '' yes
4139 # Use a header file that comes with gcc, so configuring glibc
4140 # with a fresh cross-compiler works.
4141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4142 # <limits.h> exists even on freestanding compilers.
4143 # On the NeXT, cc -E runs the code through the compiler's parser,
4144 # not just through cpp. "Syntax error" is here to catch this case.
4145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4148 # include <limits.h>
4150 # include <assert.h>
4154 if ac_fn_c_try_cpp
"$LINENO"; then :
4157 # Broken: fails on valid input.
4160 rm -f conftest.err conftest.
$ac_ext
4162 # OK, works on sane cases. Now check whether nonexistent headers
4163 # can be detected and how.
4164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <ac_nonexistent.h>
4168 if ac_fn_c_try_cpp
"$LINENO"; then :
4169 # Broken: success on invalid input.
4172 # Passes both tests.
4176 rm -f conftest.err conftest.
$ac_ext
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.err conftest.
$ac_ext
4181 if $ac_preproc_ok; then :
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4187 See \`config.log' for more details." "$LINENO" 5; }
4191 ac_cpp
='$CPP $CPPFLAGS'
4192 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4199 if test "${ac_cv_path_GREP+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4202 if test -z "$GREP"; then
4203 ac_path_GREP_found
=false
4204 # Loop through the user's path and test for each of PROGNAME-LIST
4205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4206 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4209 test -z "$as_dir" && as_dir
=.
4210 for ac_prog
in grep ggrep
; do
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4213 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4214 # Check for GNU ac_path_GREP and select it if it is found.
4215 # Check for GNU $ac_path_GREP
4216 case `"$ac_path_GREP" --version 2>&1` in
4218 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4221 $as_echo_n 0123456789 >"conftest.in"
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 $as_echo 'GREP' >> "conftest.nl"
4228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4229 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4230 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_GREP
="$ac_path_GREP"
4234 ac_path_GREP_max
=$ac_count
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4239 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4242 $ac_path_GREP_found && break 3
4247 if test -z "$ac_cv_path_GREP"; then
4248 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 ac_cv_path_GREP
=$GREP
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4256 $as_echo "$ac_cv_path_GREP" >&6; }
4257 GREP
="$ac_cv_path_GREP"
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4261 $as_echo_n "checking for egrep... " >&6; }
4262 if test "${ac_cv_path_EGREP+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4265 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4266 then ac_cv_path_EGREP
="$GREP -E"
4268 if test -z "$EGREP"; then
4269 ac_path_EGREP_found
=false
4270 # Loop through the user's path and test for each of PROGNAME-LIST
4271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4272 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4275 test -z "$as_dir" && as_dir
=.
4276 for ac_prog
in egrep; do
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4279 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4280 # Check for GNU ac_path_EGREP and select it if it is found.
4281 # Check for GNU $ac_path_EGREP
4282 case `"$ac_path_EGREP" --version 2>&1` in
4284 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4287 $as_echo_n 0123456789 >"conftest.in"
4290 cat "conftest.in" "conftest.in" >"conftest.tmp"
4291 mv "conftest.tmp" "conftest.in"
4292 cp "conftest.in" "conftest.nl"
4293 $as_echo 'EGREP' >> "conftest.nl"
4294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4295 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4296 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4298 # Best one so far, save it but keep looking for a better one
4299 ac_cv_path_EGREP
="$ac_path_EGREP"
4300 ac_path_EGREP_max
=$ac_count
4302 # 10*(2^10) chars as input seems more than enough
4303 test $ac_count -gt 10 && break
4305 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4308 $ac_path_EGREP_found && break 3
4313 if test -z "$ac_cv_path_EGREP"; then
4314 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 ac_cv_path_EGREP
=$EGREP
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4323 $as_echo "$ac_cv_path_EGREP" >&6; }
4324 EGREP
="$ac_cv_path_EGREP"
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4328 $as_echo_n "checking for ANSI C header files... " >&6; }
4329 if test "${ac_cv_header_stdc+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4347 if ac_fn_c_try_compile
"$LINENO"; then :
4348 ac_cv_header_stdc
=yes
4350 ac_cv_header_stdc
=no
4352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4354 if test $ac_cv_header_stdc = yes; then
4355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362 $EGREP "memchr" >/dev
/null
2>&1; then :
4365 ac_cv_header_stdc
=no
4371 if test $ac_cv_header_stdc = yes; then
4372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 $EGREP "free" >/dev
/null
2>&1; then :
4382 ac_cv_header_stdc
=no
4388 if test $ac_cv_header_stdc = yes; then
4389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4390 if test "$cross_compiling" = yes; then :
4393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4397 #if ((' ' & 0x0FF) == 0x020)
4398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4401 # define ISLOWER(c) \
4402 (('a' <= (c) && (c) <= 'i') \
4403 || ('j' <= (c) && (c) <= 'r') \
4404 || ('s' <= (c) && (c) <= 'z'))
4405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4413 for (i = 0; i < 256; i++)
4414 if (XOR (islower (i), ISLOWER (i))
4415 || toupper (i) != TOUPPER (i))
4420 if ac_fn_c_try_run
"$LINENO"; then :
4423 ac_cv_header_stdc
=no
4425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4432 $as_echo "$ac_cv_header_stdc" >&6; }
4433 if test $ac_cv_header_stdc = yes; then
4435 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4441 inttypes.h stdint.h unistd.h
4443 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4446 eval as_val
=\$
$as_ac_Header
4447 if test "x$as_val" = x
""yes; then :
4448 cat >>confdefs.h
<<_ACEOF
4449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4461 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4468 if test "$MINIX" = yes; then
4470 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4473 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4476 $as_echo "#define _MINIX 1" >>confdefs.h
4483 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4490 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4491 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4497 # define __EXTENSIONS__ 1
4498 $ac_includes_default
4507 if ac_fn_c_try_compile
"$LINENO"; then :
4508 ac_cv_safe_to_define___extensions__
=yes
4510 ac_cv_safe_to_define___extensions__
=no
4512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4515 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4516 test $ac_cv_safe_to_define___extensions__ = yes &&
4517 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4519 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4521 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4523 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4525 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4527 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4533 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4534 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4548 gl_cv_c_amsterdam_compiler
=yes
4550 gl_cv_c_amsterdam_compiler
=no
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4557 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4558 if test -z "$AR"; then
4559 if test $gl_cv_c_amsterdam_compiler = yes; then
4561 if test -z "$ARFLAGS"; then
4565 if test -n "$ac_tool_prefix"; then
4566 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4567 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_AR+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4573 if test -n "$AR"; then
4574 ac_cv_prog_AR
="$AR" # Let the user override the test.
4576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir
=.
4581 for ac_exec_ext
in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 if test -n "$AR"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4596 $as_echo "$AR" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4604 if test -z "$ac_cv_prog_AR"; then
4606 # Extract the first word of "ar", so it can be a program name with args.
4607 set dummy
ar; ac_word
=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4611 $as_echo_n "(cached) " >&6
4613 if test -n "$ac_ct_AR"; then
4614 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir
=.
4621 for ac_exec_ext
in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_ac_ct_AR
="ar"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4634 if test -n "$ac_ct_AR"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4636 $as_echo "$ac_ct_AR" >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4642 if test "x$ac_ct_AR" = x
; then
4645 case $cross_compiling:$ac_tool_warned in
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4649 ac_tool_warned
=yes ;;
4657 if test -z "$ARFLAGS"; then
4662 if test -z "$ARFLAGS"; then
4668 if test -z "$RANLIB"; then
4669 if test $gl_cv_c_amsterdam_compiler = yes; then
4672 if test -n "$ac_tool_prefix"; then
4673 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4674 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$RANLIB"; then
4681 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir
=.
4688 for ac_exec_ext
in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 RANLIB
=$ac_cv_prog_RANLIB
4701 if test -n "$RANLIB"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4703 $as_echo "$RANLIB" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4711 if test -z "$ac_cv_prog_RANLIB"; then
4712 ac_ct_RANLIB
=$RANLIB
4713 # Extract the first word of "ranlib", so it can be a program name with args.
4714 set dummy ranlib
; ac_word
=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4720 if test -n "$ac_ct_RANLIB"; then
4721 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir
=.
4728 for ac_exec_ext
in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4741 if test -n "$ac_ct_RANLIB"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4743 $as_echo "$ac_ct_RANLIB" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4749 if test "x$ac_ct_RANLIB" = x
; then
4752 case $cross_compiling:$ac_tool_warned in
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756 ac_tool_warned
=yes ;;
4758 RANLIB
=$ac_ct_RANLIB
4761 RANLIB
="$ac_cv_prog_RANLIB"
4777 # IEEE behaviour is the default on all CPUs except Alpha and SH
4778 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4779 # and the GCC 4.1.2 manual).
4782 # On Alpha systems, a compiler option provides the behaviour.
4783 # See the ieee(3) manual page, also available at
4784 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4785 if test -n "$GCC"; then
4786 # GCC has the option -mieee.
4787 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4788 CPPFLAGS
="$CPPFLAGS -mieee"
4790 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4791 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4792 CPPFLAGS
="$CPPFLAGS -ieee"
4796 if test -n "$GCC"; then
4797 # GCC has the option -mieee.
4798 CPPFLAGS
="$CPPFLAGS -mieee"
4805 # Code from module alloca:
4806 # Code from module alloca-opt:
4807 # Code from module configmake:
4808 # Code from module dirent:
4809 # Code from module errno:
4810 # Code from module extensions:
4812 # Code from module extern-inline:
4813 # Code from module float:
4814 # Code from module fnmatch:
4815 # Code from module fnmatch-gnu:
4816 # Code from module fpieee:
4818 # Code from module fpucw:
4819 # Code from module frexp:
4820 # Code from module frexpl:
4821 # Code from module include_next:
4822 # Code from module intprops:
4823 # Code from module inttypes:
4824 # Code from module inttypes-incomplete:
4825 # Code from module isnand-nolibm:
4826 # Code from module isnanl-nolibm:
4827 # Code from module localcharset:
4828 # Code from module math:
4829 # Code from module mbrtowc:
4830 # Code from module mbsinit:
4831 # Code from module mbsrtowcs:
4832 # Code from module memchr:
4833 # Code from module memmem:
4834 # Code from module memmem-simple:
4835 # Code from module multiarch:
4836 # Code from module pathmax:
4837 # Code from module snippet/arg-nonnull:
4838 # Code from module snippet/c++defs:
4839 # Code from module snippet/warn-on-use:
4840 # Code from module ssize_t:
4841 # Code from module stdbool:
4842 # Code from module stddef:
4843 # Code from module stdint:
4844 # Code from module streq:
4845 # Code from module strerror:
4846 # Code from module strerror-override:
4847 # Code from module string:
4848 # Code from module strnlen1:
4849 # Code from module strstr:
4850 # Code from module strstr-simple:
4851 # Code from module sys_stat:
4852 # Code from module sys_types:
4853 # Code from module time:
4854 # Code from module unistd:
4855 # Code from module update-copyright:
4856 # Code from module verify:
4857 # Code from module wchar:
4858 # Code from module wctype-h:
4861 ac_cpp
='$CPP $CPPFLAGS'
4862 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4867 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_CC+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4873 if test -n "$CC"; then
4874 ac_cv_prog_CC
="$CC" # Let the user override the test.
4876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir
=.
4881 for ac_exec_ext
in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 if test -n "$CC"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4896 $as_echo "$CC" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4904 if test -z "$ac_cv_prog_CC"; then
4906 # Extract the first word of "gcc", so it can be a program name with args.
4907 set dummy gcc
; ac_word
=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4913 if test -n "$ac_ct_CC"; then
4914 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir
=.
4921 for ac_exec_ext
in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_CC
="gcc"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4934 if test -n "$ac_ct_CC"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4936 $as_echo "$ac_ct_CC" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4942 if test "x$ac_ct_CC" = x
; then
4945 case $cross_compiling:$ac_tool_warned in
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned
=yes ;;
4957 if test -z "$CC"; then
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4960 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_CC+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -n "$CC"; then
4967 ac_cv_prog_CC
="$CC" # Let the user override the test.
4969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir
=.
4974 for ac_exec_ext
in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 if test -n "$CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989 $as_echo "$CC" >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4998 if test -z "$CC"; then
4999 # Extract the first word of "cc", so it can be a program name with args.
5000 set dummy cc
; ac_word
=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_CC+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5006 if test -n "$CC"; then
5007 ac_cv_prog_CC
="$CC" # Let the user override the test.
5010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir
=.
5015 for ac_exec_ext
in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5018 ac_prog_rejected
=yes
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 if test $ac_prog_rejected = yes; then
5030 # We found a bogon in the path, so make sure we never use it.
5031 set dummy
$ac_cv_prog_CC
5033 if test $# != 0; then
5034 # We chose a different compiler from the bogus one.
5035 # However, it has the same basename, so the bogon will be chosen
5036 # first if we set CC to just the basename; use the full file name.
5038 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5044 if test -n "$CC"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5046 $as_echo "$CC" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5054 if test -z "$CC"; then
5055 if test -n "$ac_tool_prefix"; then
5056 for ac_prog
in cl.exe
5058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5059 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_prog_CC+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5065 if test -n "$CC"; then
5066 ac_cv_prog_CC
="$CC" # Let the user override the test.
5068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir
=.
5073 for ac_exec_ext
in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 if test -n "$CC"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5088 $as_echo "$CC" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 test -n "$CC" && break
5098 if test -z "$CC"; then
5100 for ac_prog
in cl.exe
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy
$ac_prog; ac_word
=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5109 if test -n "$ac_ct_CC"; then
5110 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir
=.
5117 for ac_exec_ext
in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_ac_ct_CC
="$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5130 if test -n "$ac_ct_CC"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5132 $as_echo "$ac_ct_CC" >&6; }
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5139 test -n "$ac_ct_CC" && break
5142 if test "x$ac_ct_CC" = x
; then
5145 case $cross_compiling:$ac_tool_warned in
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned
=yes ;;
5158 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160 as_fn_error
"no acceptable C compiler found in \$PATH
5161 See \`config.log' for more details." "$LINENO" 5; }
5163 # Provide some information about the compiler.
5164 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5167 for ac_option
in --version -v -V -qversion; do
5168 { { ac_try
="$ac_compiler $ac_option >&5"
5170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5174 $as_echo "$ac_try_echo"; } >&5
5175 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5177 if test -s conftest.err; then
5179 ... rest of stderr output deleted ...
5180 10q' conftest.err >conftest.er1
5181 cat conftest.er1 >&5
5182 rm -f conftest.er1 conftest.err
5184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5185 test $ac_status = 0; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5190 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5207 if ac_fn_c_try_compile "$LINENO"; then :
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5217 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5218 if test $ac_compiler_gnu = yes; then
5223 ac_test_CFLAGS=${CFLAGS+set}
5224 ac_save_CFLAGS=$CFLAGS
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5226 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5227 if test "${ac_cv_prog_cc_g+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5230 ac_save_c_werror_flag=$ac_c_werror_flag
5231 ac_c_werror_flag=yes
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5245 if ac_fn_c_try_compile "$LINENO"; then :
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5260 if ac_fn_c_try_compile "$LINENO"; then :
5263 ac_c_werror_flag=$ac_save_c_werror_flag
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5276 if ac_fn_c_try_compile "$LINENO"; then :
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_c_werror_flag=$ac_save_c_werror_flag
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5287 $as_echo "$ac_cv_prog_cc_g" >&6; }
5288 if test "$ac_test_CFLAGS" = set; then
5289 CFLAGS=$ac_save_CFLAGS
5290 elif test $ac_cv_prog_cc_g = yes; then
5291 if test "$GCC" = yes; then
5297 if test "$GCC" = yes; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5304 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5305 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5308 ac_cv_prog_cc_c89=no
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5314 #include <sys/types.h>
5315 #include <sys/stat.h>
5316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5317 struct buf { int x; };
5318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5319 static char *e (p, i)
5325 static char *f (char * (*g) (char **, int), char **p, ...)
5330 s = g (p, va_arg (v,int));
5335 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5336 function prototypes and stuff, but not '\xHH' hex character constants.
5337 These don't provoke an error unfortunately, instead are silently treated
5338 as 'x'. The following induces an error, until -std is added to get
5339 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5340 array size at least. It's necessary to write '\x00'==0 to get something
5341 that's true only with -std. */
5342 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5344 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5345 inside strings and character constants. */
5347 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5349 int test (int i, double x);
5350 struct s1 {int (*f) (int a);};
5351 struct s2 {int (*f) (double a);};
5352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5358 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5363 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5364 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5366 CC="$ac_save_CC $ac_arg"
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_prog_cc_c89=$ac_arg
5370 rm -f core conftest.err conftest.$ac_objext
5371 test "x$ac_cv_prog_cc_c89" != "xno" && break
5373 rm -f conftest.$ac_ext
5378 case "x$ac_cv_prog_cc_c89" in
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5381 $as_echo "none needed" >&6; } ;;
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5384 $as_echo "unsupported" >&6; } ;;
5386 CC="$CC $ac_cv_prog_cc_c89"
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5388 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5390 if test "x$ac_cv_prog_cc_c89" != xno; then :
5395 ac_cpp='$CPP $CPPFLAGS'
5396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5405 for ac_dir in ../.. "$srcdir"/../..; do
5406 for ac_t in install-sh install.sh shtool; do
5407 if test -f "$ac_dir/$ac_t"; then
5409 ac_install_sh="$ac_aux_dir/$ac_t -c"
5414 if test -z "$ac_aux_dir"; then
5415 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5418 # These three variables are undocumented and unsupported,
5419 # and are intended to be withdrawn in a future Autoconf release.
5420 # They can cause serious problems if a builder's source tree is in a directory
5421 # whose full name contains unusual characters.
5422 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5423 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5424 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5428 $as_echo_n "checking target system type... " >&6; }
5429 if test "${ac_cv_target+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5432 if test "x$target_alias" = x; then
5433 ac_cv_target=$ac_cv_host
5435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5441 $as_echo "$ac_cv_target" >&6; }
5442 case $ac_cv_target in
5444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5446 target=$ac_cv_target
5447 ac_save_IFS=$IFS; IFS='-'
5453 # Remember, the first character of IFS is used to create $*,
5454 # except with old shells:
5457 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5460 # The aliases save the names the user supplied, while $host etc.
5461 # will get canonicalized.
5462 test -n "$target_alias" &&
5463 test "$program_prefix$program_suffix$program_transform_name" = \
5465 program_prefix=${target_alias}-
5473 LIBC_FATAL_STDERR_=1
5474 export LIBC_FATAL_STDERR_
5476 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5477 # for constant arguments. Useless!
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5479 $as_echo_n "checking for working alloca.h... " >&6; }
5480 if test "${ac_cv_working_alloca_h+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5489 char *p = (char *) alloca (2 * sizeof (int));
5495 if ac_fn_c_try_link "$LINENO"; then :
5496 ac_cv_working_alloca_h=yes
5498 ac_cv_working_alloca_h=no
5500 rm -f core conftest.err conftest.$ac_objext \
5501 conftest$ac_exeext conftest.$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5504 $as_echo "$ac_cv_working_alloca_h" >&6; }
5505 if test $ac_cv_working_alloca_h = yes; then
5507 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5512 $as_echo_n "checking for alloca... " >&6; }
5513 if test "${ac_cv_func_alloca_works+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5519 # define alloca __builtin_alloca
5522 # include <malloc.h>
5523 # define alloca _alloca
5525 # ifdef HAVE_ALLOCA_H
5526 # include <alloca.h>
5531 # ifndef alloca /* predefined by HP cc +Olibcalls */
5542 char *p = (char *) alloca (1);
5548 if ac_fn_c_try_link "$LINENO"; then :
5549 ac_cv_func_alloca_works=yes
5551 ac_cv_func_alloca_works=no
5553 rm -f core conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5557 $as_echo "$ac_cv_func_alloca_works" >&6; }
5559 if test $ac_cv_func_alloca_works = yes; then
5561 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5564 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5565 # that cause trouble. Some versions do not even contain alloca or
5566 # contain a buggy version. If you still want to use their alloca,
5567 # use ar to extract alloca.o from them instead of compiling alloca.c.
5573 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5575 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5579 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5580 if test "${ac_cv_os_cray+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #if defined CRAY && ! defined CRAY2
5592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5593 $EGREP "webecray" >/dev/null 2>&1; then :
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5602 $as_echo "$ac_cv_os_cray" >&6; }
5603 if test $ac_cv_os_cray = yes; then
5604 for ac_func in _getb67 GETB67 getb67; do
5605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5607 eval as_val=\$$as_ac_var
5608 if test "x$as_val" = x""yes; then :
5610 cat >>confdefs.h <<_ACEOF
5611 #define CRAY_STACKSEG_END $ac_func
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5621 $as_echo_n "checking stack direction for C alloca... " >&6; }
5622 if test "${ac_cv_c_stack_direction+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5625 if test "$cross_compiling" = yes; then :
5626 ac_cv_c_stack_direction=0
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 $ac_includes_default
5632 find_stack_direction (int *addr, int depth)
5637 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5638 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5643 main (int argc, char **argv)
5645 return find_stack_direction (0, argc + !argv + 20) < 0;
5648 if ac_fn_c_try_run "$LINENO"; then :
5649 ac_cv_c_stack_direction=1
5651 ac_cv_c_stack_direction=-1
5653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5654 conftest.$ac_objext conftest.beam conftest.$ac_ext
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5659 $as_echo "$ac_cv_c_stack_direction" >&6; }
5660 cat >>confdefs.h <<_ACEOF
5661 #define STACK_DIRECTION $ac_cv_c_stack_direction
5675 GNULIB_EUIDACCESS=0;
5683 GNULIB_GETDOMAINNAME=0;
5684 GNULIB_GETDTABLESIZE=0;
5686 GNULIB_GETHOSTNAME=0;
5688 GNULIB_GETLOGIN_R=0;
5689 GNULIB_GETPAGESIZE=0;
5690 GNULIB_GETUSERSHELL=0;
5691 GNULIB_GROUP_MEMBER=0;
5703 GNULIB_READLINKAT=0;
5705 GNULIB_SETHOSTNAME=0;
5710 GNULIB_UNISTD_H_NONBLOCKING=0;
5711 GNULIB_UNISTD_H_SIGPIPE=0;
5726 HAVE_GETDTABLESIZE=1;
5731 HAVE_GROUP_MEMBER=1;
5747 HAVE_DECL_ENVIRON=1;
5749 HAVE_DECL_FDATASYNC=1;
5750 HAVE_DECL_GETDOMAINNAME=1;
5751 HAVE_DECL_GETLOGIN_R=1;
5752 HAVE_DECL_GETPAGESIZE=1;
5753 HAVE_DECL_GETUSERSHELL=1;
5754 HAVE_DECL_SETHOSTNAME=1;
5755 HAVE_DECL_TTYNAME_R=1;
5763 REPLACE_FTRUNCATE=0;
5765 REPLACE_GETDOMAINNAME=0;
5766 REPLACE_GETLOGIN_R=0;
5767 REPLACE_GETGROUPS=0;
5768 REPLACE_GETPAGESIZE=0;
5781 REPLACE_TTYNAME_R=0;
5786 UNISTD_H_HAVE_WINSOCK2_H=0;
5787 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5804 HAVE_DECL_FDOPENDIR=1;
5811 REPLACE_FDOPENDIR=0;
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5816 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5817 if test "${gl_cv_have_include_next+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5820 rm -rf conftestd1a conftestd1b conftestd2
5821 mkdir conftestd1a conftestd1b conftestd2
5822 cat <<EOF > conftestd1a/conftest.h
5823 #define DEFINED_IN_CONFTESTD1
5824 #include_next <conftest.h>
5825 #ifdef DEFINED_IN_CONFTESTD2
5828 #error "include_next doesn't work"
5831 cat <<EOF > conftestd1b/conftest.h
5832 #define DEFINED_IN_CONFTESTD1
5834 #include_next <conftest.h>
5835 #ifdef DEFINED_IN_CONFTESTD2
5838 #error "include_next doesn't work"
5841 cat <<EOF > conftestd2/conftest.h
5842 #ifndef DEFINED_IN_CONFTESTD1
5843 #error "include_next test doesn't work"
5845 #define DEFINED_IN_CONFTESTD2
5847 gl_save_CPPFLAGS="$CPPFLAGS"
5848 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 #include <conftest.h>
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 gl_cv_have_include_next=yes
5856 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #include <conftest.h>
5861 if ac_fn_c_try_compile "$LINENO"; then :
5862 gl_cv_have_include_next=buggy
5864 gl_cv_have_include_next=no
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 CPPFLAGS="$gl_save_CPPFLAGS"
5871 rm -rf conftestd1a conftestd1b conftestd2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5875 $as_echo "$gl_cv_have_include_next" >&6; }
5876 PRAGMA_SYSTEM_HEADER=
5877 if test $gl_cv_have_include_next = yes; then
5878 INCLUDE_NEXT=include_next
5879 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5880 if test -n "$GCC"; then
5881 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5884 if test $gl_cv_have_include_next = buggy; then
5885 INCLUDE_NEXT=include
5886 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5888 INCLUDE_NEXT=include
5889 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5896 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5897 if test "${gl_cv_pragma_columns+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5909 $EGREP "choke me" >/dev/null 2>&1; then :
5910 gl_cv_pragma_columns=yes
5912 gl_cv_pragma_columns=no
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5919 $as_echo "$gl_cv_pragma_columns" >&6; }
5920 if test $gl_cv_pragma_columns = yes; then
5921 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5930 for ac_header in $ac_header_list
5932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5933 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5935 eval as_val=\$$as_ac_Header
5936 if test "x$as_val" = x""yes; then :
5937 cat >>confdefs.h <<_ACEOF
5938 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5950 $as_echo_n "checking for complete errno.h... " >&6; }
5951 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5959 #if !defined ETXTBSY
5968 #if !defined ENOLINK
5974 #if !defined EMULTIHOP
5977 #if !defined EBADMSG
5980 #if !defined EOVERFLOW
5983 #if !defined ENOTSUP
5986 #if !defined ENETRESET
5989 #if !defined ECONNABORTED
5998 #if !defined ECANCELED
6001 #if !defined EOWNERDEAD
6004 #if !defined ENOTRECOVERABLE
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "booboo" >/dev/null 2>&1; then :
6014 gl_cv_header_errno_h_complete=no
6016 gl_cv_header_errno_h_complete=yes
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6023 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6024 if test $gl_cv_header_errno_h_complete = yes; then
6035 if test $gl_cv_have_include_next = yes; then
6036 gl_cv_next_errno_h='<'errno.h'>'
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6039 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6040 if test "${gl_cv_next_errno_h+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6050 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6051 *) gl_absname_cpp="$ac_cpp" ;;
6056 gl_dirsep_regex='[/\\]'
6059 gl_dirsep_regex='\/'
6062 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6064 gl_header_literal_regex=`echo 'errno.h' \
6065 |
sed -e "$gl_make_literal_regex_sed"`
6066 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6072 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6073 sed -n "$gl_absolute_header_sed"`'"'
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6078 $as_echo "$gl_cv_next_errno_h" >&6; }
6080 NEXT_ERRNO_H=$gl_cv_next_errno_h
6082 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6084 gl_next_as_first_directive='<'errno.h'>'
6086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6087 gl_next_as_first_directive=$gl_cv_next_errno_h
6089 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6097 if test -n "$ERRNO_H"; then
6098 GL_GENERATE_ERRNO_H_TRUE=
6099 GL_GENERATE_ERRNO_H_FALSE='#'
6101 GL_GENERATE_ERRNO_H_TRUE='#'
6102 GL_GENERATE_ERRNO_H_FALSE=
6106 if test -n "$ERRNO_H"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6108 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6109 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "yes" >/dev/null 2>&1; then :
6124 gl_cv_header_errno_h_EMULTIHOP=yes
6126 gl_cv_header_errno_h_EMULTIHOP=no
6130 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 #define _XOPEN_SOURCE_EXTENDED 1
6141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6142 $EGREP "yes" >/dev/null 2>&1; then :
6143 gl_cv_header_errno_h_EMULTIHOP=hidden
6147 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6148 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6149 #define _XOPEN_SOURCE_EXTENDED 1
6151 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6163 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6164 case $gl_cv_header_errno_h_EMULTIHOP in
6166 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6169 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6177 if test -n "$ERRNO_H"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6179 $as_echo_n "checking for ENOLINK value... " >&6; }
6180 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 $EGREP "yes" >/dev/null 2>&1; then :
6195 gl_cv_header_errno_h_ENOLINK=yes
6197 gl_cv_header_errno_h_ENOLINK=no
6201 if test $gl_cv_header_errno_h_ENOLINK = no; then
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6205 #define _XOPEN_SOURCE_EXTENDED 1
6212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6213 $EGREP "yes" >/dev/null 2>&1; then :
6214 gl_cv_header_errno_h_ENOLINK=hidden
6218 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6219 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6220 #define _XOPEN_SOURCE_EXTENDED 1
6222 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6234 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6235 case $gl_cv_header_errno_h_ENOLINK in
6237 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6240 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6248 if test -n "$ERRNO_H"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6250 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6251 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "yes" >/dev/null 2>&1; then :
6266 gl_cv_header_errno_h_EOVERFLOW=yes
6268 gl_cv_header_errno_h_EOVERFLOW=no
6272 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6276 #define _XOPEN_SOURCE_EXTENDED 1
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "yes" >/dev/null 2>&1; then :
6285 gl_cv_header_errno_h_EOVERFLOW=hidden
6289 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6290 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6291 #define _XOPEN_SOURCE_EXTENDED 1
6293 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6305 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6306 case $gl_cv_header_errno_h_EOVERFLOW in
6308 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6311 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6325 $as_echo_n "checking for mbstate_t... " >&6; }
6326 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 $ac_includes_default
6332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6335 included before <wchar.h>. */
6343 mbstate_t x; return sizeof x;
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 ac_cv_type_mbstate_t=yes
6351 ac_cv_type_mbstate_t=no
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6356 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6357 if test $ac_cv_type_mbstate_t = yes; then
6359 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6363 $as_echo "#define mbstate_t int" >>confdefs.h
6370 for ac_func in $ac_func_list
6372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6374 eval as_val=\$$as_ac_var
6375 if test "x$as_val" = x""yes; then :
6376 cat >>confdefs.h <<_ACEOF
6377 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6477 GNULIB_REMAINDERF=0;
6478 GNULIB_REMAINDERL=0;
6564 HAVE_DECL_COPYSIGNF=1;
6581 HAVE_DECL_REMAINDER=1;
6582 HAVE_DECL_REMAINDERL=1;
6644 REPLACE_REMAINDER=0;
6645 REPLACE_REMAINDERF=0;
6646 REPLACE_REMAINDERL=0;
6651 REPLACE_SIGNBIT_USING_GCC=0;
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6659 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6660 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6671 int e; return frexp (x, &e) > 0;
6676 if ac_fn_c_try_link "$LINENO"; then :
6677 gl_cv_func_frexp_no_libm=yes
6679 gl_cv_func_frexp_no_libm=no
6681 rm -f core conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6686 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6692 $as_echo_n "checking whether long double and double are the same... " >&6; }
6693 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6694 $as_echo_n "(cached) " >&6
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6702 typedef int check[sizeof (long double) == sizeof (double)
6703 && LDBL_MANT_DIG == DBL_MANT_DIG
6704 && LDBL_MAX_EXP == DBL_MAX_EXP
6705 && LDBL_MIN_EXP == DBL_MIN_EXP
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 gl_cv_long_double_equals_double=yes
6715 gl_cv_long_double_equals_double=no
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6721 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6722 if test $gl_cv_long_double_equals_double = yes; then
6724 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6726 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6728 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6734 $as_echo_n "checking for unsigned long long int... " >&6; }
6735 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6738 ac_cv_type_unsigned_long_long_int=yes
6739 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6743 /* For now, do not test the preprocessor; as of 2007 there are too many
6744 implementations with broken preprocessors. Perhaps this can
6745 be revisited in 2012. In the meantime, code should not expect
6746 #if to work with literals wider than 32 bits. */
6747 /* Test literals. */
6748 long long int ll = 9223372036854775807ll;
6749 long long int nll = -9223372036854775807LL;
6750 unsigned long long int ull = 18446744073709551615ULL;
6751 /* Test constant expressions. */
6752 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6754 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6760 /* Test availability of runtime routines for shift and division. */
6761 long long int llmax = 9223372036854775807ll;
6762 unsigned long long int ullmax = 18446744073709551615ull;
6763 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6764 | (llmax / ll) | (llmax % ll)
6765 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6766 | (ullmax / ull) | (ullmax % ull));
6772 if ac_fn_c_try_link "$LINENO"; then :
6775 ac_cv_type_unsigned_long_long_int=no
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6782 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6783 if test $ac_cv_type_unsigned_long_long_int = yes; then
6785 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6792 $as_echo_n "checking for long long int... " >&6; }
6793 if test "${ac_cv_type_long_long_int+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6796 ac_cv_type_long_long_int=yes
6797 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6798 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6799 if test $ac_cv_type_long_long_int = yes; then
6800 if test "$cross_compiling" = yes; then :
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6808 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6809 # define LLONG_MAX (HALF - 1 + HALF)
6814 long long int n = 1;
6818 long long int m = n << i;
6821 if (LLONG_MAX / 2 < m)
6829 if ac_fn_c_try_run "$LINENO"; then :
6832 ac_cv_type_long_long_int=no
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6835 conftest.$ac_objext conftest.beam conftest.$ac_ext
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6842 $as_echo "$ac_cv_type_long_long_int" >&6; }
6843 if test $ac_cv_type_long_long_int = yes; then
6845 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6854 gl_cv_c_multiarch=no
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #ifndef __APPLE_CC__
6858 not a universal capable compiler
6863 if ac_fn_c_try_compile "$LINENO"; then :
6867 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6868 if test -n "$prev"; then
6870 i?86 | x86_64 | ppc | ppc64)
6871 if test -z "$arch" || test "$arch" = "$word"; then
6874 gl_cv_c_multiarch=yes
6880 if test "x$word" = "x-arch"; then
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 if test $gl_cv_c_multiarch = yes; then
6889 APPLE_UNIVERSAL_BUILD=1
6891 APPLE_UNIVERSAL_BUILD=0
6898 if test $ac_cv_type_long_long_int = yes; then
6899 HAVE_LONG_LONG_INT=1
6901 HAVE_LONG_LONG_INT=0
6905 if test $ac_cv_type_unsigned_long_long_int = yes; then
6906 HAVE_UNSIGNED_LONG_LONG_INT=1
6908 HAVE_UNSIGNED_LONG_LONG_INT=0
6913 if test $ac_cv_header_wchar_h = yes; then
6920 if test $ac_cv_header_inttypes_h = yes; then
6927 if test $ac_cv_header_sys_types_h = yes; then
6943 if test $gl_cv_have_include_next = yes; then
6944 gl_cv_next_stdint_h='<'stdint.h'>'
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6947 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6948 if test "${gl_cv_next_stdint_h+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6952 if test $ac_cv_header_stdint_h = yes; then
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6961 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6962 *) gl_absname_cpp="$ac_cpp" ;;
6967 gl_dirsep_regex='[/\\]'
6970 gl_dirsep_regex='\/'
6973 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6975 gl_header_literal_regex=`echo 'stdint.h' \
6976 |
sed -e "$gl_make_literal_regex_sed"`
6977 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6978 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6983 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6984 sed -n "$gl_absolute_header_sed"`'"'
6986 gl_cv_next_stdint_h='<'stdint.h'>'
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6992 $as_echo "$gl_cv_next_stdint_h" >&6; }
6994 NEXT_STDINT_H=$gl_cv_next_stdint_h
6996 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6998 gl_next_as_first_directive='<'stdint.h'>'
7000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7001 gl_next_as_first_directive=$gl_cv_next_stdint_h
7003 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7008 if test $ac_cv_header_stdint_h = yes; then
7015 if test $ac_cv_header_stdint_h = yes; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7017 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7018 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7021 gl_cv_header_working_stdint_h=no
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7026 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7028 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7029 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7030 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7034 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7035 included before <wchar.h>. */
7046 int8_t a1 = INT8_MAX;
7047 int8_t a1min = INT8_MIN;
7050 int16_t a2 = INT16_MAX;
7051 int16_t a2min = INT16_MIN;
7054 int32_t a3 = INT32_MAX;
7055 int32_t a3min = INT32_MIN;
7058 int64_t a4 = INT64_MAX;
7059 int64_t a4min = INT64_MIN;
7062 uint8_t b1 = UINT8_MAX;
7064 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7067 uint16_t b2 = UINT16_MAX;
7070 uint32_t b3 = UINT32_MAX;
7073 uint64_t b4 = UINT64_MAX;
7075 int_least8_t c1 = INT8_C (0x7f);
7076 int_least8_t c1max = INT_LEAST8_MAX;
7077 int_least8_t c1min = INT_LEAST8_MIN;
7078 int_least16_t c2 = INT16_C (0x7fff);
7079 int_least16_t c2max = INT_LEAST16_MAX;
7080 int_least16_t c2min = INT_LEAST16_MIN;
7081 int_least32_t c3 = INT32_C (0x7fffffff);
7082 int_least32_t c3max = INT_LEAST32_MAX;
7083 int_least32_t c3min = INT_LEAST32_MIN;
7084 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7085 int_least64_t c4max = INT_LEAST64_MAX;
7086 int_least64_t c4min = INT_LEAST64_MIN;
7087 uint_least8_t d1 = UINT8_C (0xff);
7088 uint_least8_t d1max = UINT_LEAST8_MAX;
7089 uint_least16_t d2 = UINT16_C (0xffff);
7090 uint_least16_t d2max = UINT_LEAST16_MAX;
7091 uint_least32_t d3 = UINT32_C (0xffffffff);
7092 uint_least32_t d3max = UINT_LEAST32_MAX;
7093 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7094 uint_least64_t d4max = UINT_LEAST64_MAX;
7095 int_fast8_t e1 = INT_FAST8_MAX;
7096 int_fast8_t e1min = INT_FAST8_MIN;
7097 int_fast16_t e2 = INT_FAST16_MAX;
7098 int_fast16_t e2min = INT_FAST16_MIN;
7099 int_fast32_t e3 = INT_FAST32_MAX;
7100 int_fast32_t e3min = INT_FAST32_MIN;
7101 int_fast64_t e4 = INT_FAST64_MAX;
7102 int_fast64_t e4min = INT_FAST64_MIN;
7103 uint_fast8_t f1 = UINT_FAST8_MAX;
7104 uint_fast16_t f2 = UINT_FAST16_MAX;
7105 uint_fast32_t f3 = UINT_FAST32_MAX;
7106 uint_fast64_t f4 = UINT_FAST64_MAX;
7108 intptr_t g = INTPTR_MAX;
7109 intptr_t gmin = INTPTR_MIN;
7112 uintptr_t h = UINTPTR_MAX;
7114 intmax_t i = INTMAX_MAX;
7115 uintmax_t j = UINTMAX_MAX;
7117 #include <limits.h> /* for CHAR_BIT */
7118 #define TYPE_MINIMUM(t) \
7119 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7120 #define TYPE_MAXIMUM(t) \
7121 ((t) ((t) 0 < (t) -1 \
7123 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7126 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7127 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7129 /* Detect bug in FreeBSD 6.0 / ia64. */
7130 int check_SIG_ATOMIC:
7131 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7132 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7134 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7136 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7137 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7139 /* Detect bug in mingw. */
7141 WINT_MIN == TYPE_MINIMUM (wint_t)
7142 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7145 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7147 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7149 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7151 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7153 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7156 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7159 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7162 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7164 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7165 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7166 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7167 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7168 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7169 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7170 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7171 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7172 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7173 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7174 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 if test "$cross_compiling" = yes; then :
7187 gl_cv_header_working_stdint_h=yes
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7194 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7198 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7199 included before <wchar.h>. */
7211 #define MVAL(macro) MVAL1(macro)
7212 #define MVAL1(expression) #expression
7213 static const char *macro_values[] =
7247 for (mv = macro_values; *mv != NULL; mv++)
7249 const char *value = *mv;
7250 /* Test whether it looks like a cast expression. */
7251 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7252 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7253 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7254 || strncmp (value, "((int)"/*)*/, 6) == 0
7255 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7256 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7257 return mv - macro_values + 1;
7265 if ac_fn_c_try_run "$LINENO"; then :
7266 gl_cv_header_working_stdint_h=yes
7268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7269 conftest.$ac_objext conftest.beam conftest.$ac_ext
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7278 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7280 if test "$gl_cv_header_working_stdint_h" = yes; then
7283 for ac_header in sys/inttypes.h sys/bitypes.h
7285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7287 eval as_val=\$$as_ac_Header
7288 if test "x$as_val" = x""yes; then :
7289 cat >>confdefs.h <<_ACEOF
7290 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7297 if test $ac_cv_header_sys_inttypes_h = yes; then
7298 HAVE_SYS_INTTYPES_H=1
7300 HAVE_SYS_INTTYPES_H=0
7303 if test $ac_cv_header_sys_bitypes_h = yes; then
7304 HAVE_SYS_BITYPES_H=1
7306 HAVE_SYS_BITYPES_H=0
7312 if test $APPLE_UNIVERSAL_BUILD = 0; then
7315 for gltype in ptrdiff_t size_t ; do
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7317 $as_echo_n "checking for bit size of $gltype... " >&6; }
7318 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7319 $as_echo_n "(cached) " >&6
7321 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7322 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7323 included before <wchar.h>. */
7332 #include <limits.h>"; then :
7338 eval gl_cv_bitsizeof_${gltype}=\$result
7341 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7343 $as_echo "$ac_res" >&6; }
7344 eval result=\$gl_cv_bitsizeof_${gltype}
7345 if test $result = unknown; then
7348 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7349 cat >>confdefs.h <<_ACEOF
7350 #define BITSIZEOF_${GLTYPE} $result
7353 eval BITSIZEOF_${GLTYPE}=\$result
7360 for gltype in sig_atomic_t wchar_t wint_t ; do
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7362 $as_echo_n "checking for bit size of $gltype... " >&6; }
7363 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7364 $as_echo_n "(cached) " >&6
7366 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7367 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7368 included before <wchar.h>. */
7377 #include <limits.h>"; then :
7383 eval gl_cv_bitsizeof_${gltype}=\$result
7386 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7388 $as_echo "$ac_res" >&6; }
7389 eval result=\$gl_cv_bitsizeof_${gltype}
7390 if test $result = unknown; then
7393 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7394 cat >>confdefs.h <<_ACEOF
7395 #define BITSIZEOF_${GLTYPE} $result
7398 eval BITSIZEOF_${GLTYPE}=\$result
7404 for gltype in sig_atomic_t wchar_t wint_t ; do
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7406 $as_echo_n "checking whether $gltype is signed... " >&6; }
7407 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7408 $as_echo_n "(cached) " >&6
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7413 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7414 included before <wchar.h>. */
7423 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7432 if ac_fn_c_try_compile "$LINENO"; then :
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 eval gl_cv_type_${gltype}_signed=\$result
7441 eval ac_res=\$gl_cv_type_${gltype}_signed
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7443 $as_echo "$ac_res" >&6; }
7444 eval result=\$gl_cv_type_${gltype}_signed
7445 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7446 if test "$result" = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448 #define HAVE_SIGNED_${GLTYPE} 1
7451 eval HAVE_SIGNED_${GLTYPE}=1
7453 eval HAVE_SIGNED_${GLTYPE}=0
7458 gl_cv_type_ptrdiff_t_signed=yes
7459 gl_cv_type_size_t_signed=no
7460 if test $APPLE_UNIVERSAL_BUILD = 0; then
7463 for gltype in ptrdiff_t size_t ; do
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7465 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7466 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7467 $as_echo_n "(cached) " >&6
7469 eval gl_cv_type_${gltype}_suffix=no
7470 eval result=\$gl_cv_type_${gltype}_signed
7471 if test "$result" = yes; then
7476 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7479 l) gltype1='long int';;
7480 ll) gltype1='long long int';;
7481 i64) gltype1='__int64';;
7482 u) gltype1='unsigned int';;
7483 ul) gltype1='unsigned long int';;
7484 ull) gltype1='unsigned long long int';;
7485 ui64)gltype1='unsigned __int64';;
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7490 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7491 included before <wchar.h>. */
7501 extern $gltype1 foo;
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 eval gl_cv_type_${gltype}_suffix=\$glsuf
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 eval result=\$gl_cv_type_${gltype}_suffix
7515 test "$result" != no && break
7518 eval ac_res=\$gl_cv_type_${gltype}_suffix
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7520 $as_echo "$ac_res" >&6; }
7521 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7522 eval result=\$gl_cv_type_${gltype}_suffix
7523 test "$result" = no && result=
7524 eval ${GLTYPE}_SUFFIX=\$result
7525 cat >>confdefs.h <<_ACEOF
7526 #define ${GLTYPE}_SUFFIX $result
7535 for gltype in sig_atomic_t wchar_t wint_t ; do
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7537 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7538 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7539 $as_echo_n "(cached) " >&6
7541 eval gl_cv_type_${gltype}_suffix=no
7542 eval result=\$gl_cv_type_${gltype}_signed
7543 if test "$result" = yes; then
7548 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7551 l) gltype1='long int';;
7552 ll) gltype1='long long int';;
7553 i64) gltype1='__int64';;
7554 u) gltype1='unsigned int';;
7555 ul) gltype1='unsigned long int';;
7556 ull) gltype1='unsigned long long int';;
7557 ui64)gltype1='unsigned __int64';;
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7562 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7563 included before <wchar.h>. */
7573 extern $gltype1 foo;
7582 if ac_fn_c_try_compile "$LINENO"; then :
7583 eval gl_cv_type_${gltype}_suffix=\$glsuf
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 eval result=\$gl_cv_type_${gltype}_suffix
7587 test "$result" != no && break
7590 eval ac_res=\$gl_cv_type_${gltype}_suffix
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7592 $as_echo "$ac_res" >&6; }
7593 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7594 eval result=\$gl_cv_type_${gltype}_suffix
7595 test "$result" = no && result=
7596 eval ${GLTYPE}_SUFFIX=\$result
7597 cat >>confdefs.h <<_ACEOF
7598 #define ${GLTYPE}_SUFFIX $result
7605 if test $BITSIZEOF_WINT_T -lt 32; then
7612 if test -n "$STDINT_H"; then
7613 GL_GENERATE_STDINT_H_TRUE=
7614 GL_GENERATE_STDINT_H_FALSE='#'
7616 GL_GENERATE_STDINT_H_TRUE='#'
7617 GL_GENERATE_STDINT_H_FALSE=
7628 HAVE_DECL_IMAXABS=1;
7629 HAVE_DECL_IMAXDIV=1;
7630 HAVE_DECL_STRTOIMAX=1;
7631 HAVE_DECL_STRTOUMAX=1;
7632 REPLACE_STRTOIMAX=0;
7633 INT32_MAX_LT_INTMAX_MAX=1;
7634 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7635 PRI_MACROS_BROKEN=0;
7636 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7637 UINT32_MAX_LT_UINTMAX_MAX=1;
7638 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7654 if test $gl_cv_have_include_next = yes; then
7655 gl_cv_next_inttypes_h='<'inttypes.h'>'
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7658 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7659 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7663 if test $ac_cv_header_inttypes_h = yes; then
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #include <inttypes.h>
7672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7673 *) gl_absname_cpp="$ac_cpp" ;;
7678 gl_dirsep_regex='[/\\]'
7681 gl_dirsep_regex='\/'
7684 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7686 gl_header_literal_regex=`echo 'inttypes.h' \
7687 |
sed -e "$gl_make_literal_regex_sed"`
7688 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7694 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7695 sed -n "$gl_absolute_header_sed"`'"'
7697 gl_cv_next_inttypes_h='<'inttypes.h'>'
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7703 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7705 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7707 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7709 gl_next_as_first_directive='<'inttypes.h'>'
7711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7712 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7714 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7723 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7724 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7726 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7727 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7728 $as_echo_n "(cached) " >&6
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 #include <inttypes.h>
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 eval "$as_gl_Symbol=yes"
7746 eval "$as_gl_Symbol=no"
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 eval ac_res=\$$as_gl_Symbol
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7752 $as_echo "$ac_res" >&6; }
7753 eval as_val=\$$as_gl_Symbol
7754 if test "x$as_val" = x""yes; then :
7755 cat >>confdefs.h <<_ACEOF
7756 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7759 eval ac_cv_have_decl_$gl_func=yes
7765 for ac_header in inttypes.h
7767 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7768 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7769 cat >>confdefs.h <<_ACEOF
7770 #define HAVE_INTTYPES_H 1
7777 if test $ac_cv_header_inttypes_h = yes; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7779 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7780 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7787 #include <inttypes.h>
7800 if ac_fn_c_try_compile "$LINENO"; then :
7801 gt_cv_inttypes_pri_broken=no
7803 gt_cv_inttypes_pri_broken=yes
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7809 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7811 if test "$gt_cv_inttypes_pri_broken" = yes; then
7813 cat >>confdefs.h <<_ACEOF
7814 #define PRI_MACROS_BROKEN 1
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7825 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7826 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7830 if test "$cross_compiling" = yes; then :
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7835 #if defined arm || defined __arm || defined __arm__
7840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7841 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7842 gl_cv_cc_double_expbit0="unknown"
7846 if test "${ac_cv_c_bigendian+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7849 ac_cv_c_bigendian=unknown
7850 # See if we're dealing with a universal compiler.
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #ifndef __APPLE_CC__
7854 not a universal capable compiler
7859 if ac_fn_c_try_compile "$LINENO"; then :
7861 # Check for potential -arch flags. It is not universal unless
7862 # there are at least two -arch flags with different values.
7865 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7866 if test -n "$ac_prev"; then
7868 i?86 | x86_64 | ppc | ppc64)
7869 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7872 ac_cv_c_bigendian=universal
7878 elif test "x$ac_word" = "x-arch"; then
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 if test $ac_cv_c_bigendian = unknown; then
7885 # See if sys/param.h defines the BYTE_ORDER macro.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #include <sys/types.h>
7889 #include <sys/param.h>
7894 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7895 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 # It does; now see whether it defined to BIG_ENDIAN or not.
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 #include <sys/types.h>
7909 #include <sys/param.h>
7914 #if BYTE_ORDER != BIG_ENDIAN
7922 if ac_fn_c_try_compile "$LINENO"; then :
7923 ac_cv_c_bigendian=yes
7925 ac_cv_c_bigendian=no
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 if test $ac_cv_c_bigendian = unknown; then
7932 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7940 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 # It does; now see whether it defined to _BIG_ENDIAN or not.
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7965 if ac_fn_c_try_compile "$LINENO"; then :
7966 ac_cv_c_bigendian=yes
7968 ac_cv_c_bigendian=no
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 if test $ac_cv_c_bigendian = unknown; then
7975 # Compile a test program.
7976 if test "$cross_compiling" = yes; then :
7977 # Try to guess by grepping values from an object file.
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 short int ascii_mm[] =
7981 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7982 short int ascii_ii[] =
7983 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7984 int use_ascii (int i) {
7985 return ascii_mm[i] + ascii_ii[i];
7987 short int ebcdic_ii[] =
7988 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7989 short int ebcdic_mm[] =
7990 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7991 int use_ebcdic (int i) {
7992 return ebcdic_mm[i] + ebcdic_ii[i];
7999 return use_ascii (foo) == use_ebcdic (foo);
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8006 ac_cv_c_bigendian=yes
8008 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8009 if test "$ac_cv_c_bigendian" = unknown; then
8010 ac_cv_c_bigendian=no
8012 # finding both strings is unlikely to happen, but who knows?
8013 ac_cv_c_bigendian=unknown
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 $ac_includes_default
8026 /* Are we little or big endian? From Harbison&Steele. */
8030 char c[sizeof (long int)];
8033 return u.c[sizeof (long int) - 1] == 1;
8039 if ac_fn_c_try_run "$LINENO"; then :
8040 ac_cv_c_bigendian=no
8042 ac_cv_c_bigendian=yes
8044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8045 conftest.$ac_objext conftest.beam conftest.$ac_ext
8051 case $ac_cv_c_bigendian in #(
8053 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8055 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8058 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8062 gl_cv_cc_double_expbit0="unknown" ;;
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8079 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8080 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8081 static unsigned int ored_words[NWORDS];
8082 static unsigned int anded_words[NWORDS];
8083 static void add_to_ored_words (double x)
8087 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8088 memset (&m, 0, sizeof (memory_double));
8090 for (i = 0; i < NWORDS; i++)
8092 ored_words[i] |= m.word[i];
8093 anded_words[i] &= m.word[i];
8099 FILE *fp = fopen ("conftest.out", "w");
8102 for (j = 0; j < NWORDS; j++)
8103 anded_words[j] = ~ (unsigned int) 0;
8104 add_to_ored_words (0.25);
8105 add_to_ored_words (0.5);
8106 add_to_ored_words (1.0);
8107 add_to_ored_words (2.0);
8108 add_to_ored_words (4.0);
8109 /* Remove bits that are common (e.g. if representation of the first mantissa
8110 bit is explicit). */
8111 for (j = 0; j < NWORDS; j++)
8112 ored_words[j] &= ~anded_words[j];
8113 /* Now find the nonzero word. */
8114 for (j = 0; j < NWORDS; j++)
8115 if (ored_words[j] != 0)
8120 for (i = j + 1; i < NWORDS; i++)
8121 if (ored_words[i] != 0)
8123 fprintf (fp, "unknown");
8124 return (fclose (fp) != 0);
8127 if ((ored_words[j] >> i) & 1)
8129 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8130 return (fclose (fp) != 0);
8133 fprintf (fp, "unknown");
8134 return (fclose (fp) != 0);
8138 if ac_fn_c_try_run "$LINENO"; then :
8139 gl_cv_cc_double_expbit0=`cat conftest.out
`
8141 gl_cv_cc_double_expbit0="unknown"
8143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8144 conftest.$ac_objext conftest.beam conftest.$ac_ext
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8151 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8152 case "$gl_cv_cc_double_expbit0" in
8154 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
8155 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
8157 cat >>confdefs.h <<_ACEOF
8158 #define DBL_EXPBIT0_WORD $word
8162 cat >>confdefs.h <<_ACEOF
8163 #define DBL_EXPBIT0_BIT $bit
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8171 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8172 if test "${ac_cv_c_bigendian+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8175 ac_cv_c_bigendian=unknown
8176 # See if we're dealing with a universal compiler.
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #ifndef __APPLE_CC__
8180 not a universal capable compiler
8185 if ac_fn_c_try_compile "$LINENO"; then :
8187 # Check for potential -arch flags. It is not universal unless
8188 # there are at least two -arch flags with different values.
8191 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8192 if test -n "$ac_prev"; then
8194 i?86 | x86_64 | ppc | ppc64)
8195 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8198 ac_cv_c_bigendian=universal
8204 elif test "x$ac_word" = "x-arch"; then
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 if test $ac_cv_c_bigendian = unknown; then
8211 # See if sys/param.h defines the BYTE_ORDER macro.
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8215 #include <sys/param.h>
8220 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8221 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231 # It does; now see whether it defined to BIG_ENDIAN or not.
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 #include <sys/types.h>
8235 #include <sys/param.h>
8240 #if BYTE_ORDER != BIG_ENDIAN
8248 if ac_fn_c_try_compile "$LINENO"; then :
8249 ac_cv_c_bigendian=yes
8251 ac_cv_c_bigendian=no
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 if test $ac_cv_c_bigendian = unknown; then
8258 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8266 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8274 if ac_fn_c_try_compile "$LINENO"; then :
8275 # It does; now see whether it defined to _BIG_ENDIAN or not.
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292 ac_cv_c_bigendian=yes
8294 ac_cv_c_bigendian=no
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 if test $ac_cv_c_bigendian = unknown; then
8301 # Compile a test program.
8302 if test "$cross_compiling" = yes; then :
8303 # Try to guess by grepping values from an object file.
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 short int ascii_mm[] =
8307 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8308 short int ascii_ii[] =
8309 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8310 int use_ascii (int i) {
8311 return ascii_mm[i] + ascii_ii[i];
8313 short int ebcdic_ii[] =
8314 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8315 short int ebcdic_mm[] =
8316 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8317 int use_ebcdic (int i) {
8318 return ebcdic_mm[i] + ebcdic_ii[i];
8325 return use_ascii (foo) == use_ebcdic (foo);
8330 if ac_fn_c_try_compile "$LINENO"; then :
8331 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8332 ac_cv_c_bigendian=yes
8334 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8335 if test "$ac_cv_c_bigendian" = unknown; then
8336 ac_cv_c_bigendian=no
8338 # finding both strings is unlikely to happen, but who knows?
8339 ac_cv_c_bigendian=unknown
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 $ac_includes_default
8352 /* Are we little or big endian? From Harbison&Steele. */
8356 char c[sizeof (long int)];
8359 return u.c[sizeof (long int) - 1] == 1;
8365 if ac_fn_c_try_run "$LINENO"; then :
8366 ac_cv_c_bigendian=no
8368 ac_cv_c_bigendian=yes
8370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8371 conftest.$ac_objext conftest.beam conftest.$ac_ext
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8377 $as_echo "$ac_cv_c_bigendian" >&6; }
8378 case $ac_cv_c_bigendian in #(
8380 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8386 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8390 as_fn_error "unknown endianness
8391 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8397 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8398 if test "${am_cv_langinfo_codeset+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <langinfo.h>
8407 char* cs = nl_langinfo(CODESET); return !cs;
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 am_cv_langinfo_codeset=yes
8415 am_cv_langinfo_codeset=no
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8422 $as_echo "$am_cv_langinfo_codeset" >&6; }
8423 if test $am_cv_langinfo_codeset = yes; then
8425 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8439 $as_echo_n "checking for working fcntl.h... " >&6; }
8440 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8443 if test "$cross_compiling" = yes; then :
8444 gl_cv_header_working_fcntl_h=cross-compiling
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 #include <sys/types.h>
8449 #include <sys/stat.h>
8451 # include <unistd.h>
8452 #else /* on Windows with MSVC */
8454 # include <stdlib.h>
8455 # defined sleep(n) _sleep ((n) * 1000)
8462 #define O_NOFOLLOW 0
8464 static int const constants[] =
8466 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8467 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8474 int result = !constants;
8477 static char const sym[] = "conftest.sym";
8478 if (symlink ("/dev/null", sym) != 0)
8482 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8489 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8493 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8504 static char const file[] = "confdefs.h";
8505 int fd = open (file, O_RDONLY | O_NOATIME);
8511 if (fstat (fd, &st0) != 0)
8517 if (read (fd, &c, 1) != 1)
8521 if (close (fd) != 0)
8526 if (stat (file, &st1) != 0)
8529 if (st0.st_atime != st1.st_atime)
8541 if ac_fn_c_try_run "$LINENO"; then :
8542 gl_cv_header_working_fcntl_h=yes
8545 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8546 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8547 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8548 *) gl_cv_header_working_fcntl_h='no';;
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8552 conftest.$ac_objext conftest.beam conftest.$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8557 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8559 case $gl_cv_header_working_fcntl_h in #(
8560 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_WORKING_O_NOATIME $ac_val
8569 case $gl_cv_header_working_fcntl_h in #(
8570 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8579 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8580 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8592 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8593 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8599 #include <features.h>
8600 #ifdef __GNU_LIBRARY__
8601 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 $EGREP "Lucky" >/dev/null 2>&1; then :
8612 ac_cv_gnu_library_2_1=yes
8614 ac_cv_gnu_library_2_1=no
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8622 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8624 GLIBC21="$ac_cv_gnu_library_2_1"
8636 GNULIB_MBSNRTOWCS=0;
8639 GNULIB_WCSNRTOMBS=0;
8656 GNULIB_WCSCASECMP=0;
8657 GNULIB_WCSNCASECMP=0;
8707 HAVE_DECL_WCWIDTH=1;
8708 REPLACE_MBSTATE_T=0;
8714 REPLACE_MBSRTOWCS=0;
8715 REPLACE_MBSNRTOWCS=0;
8717 REPLACE_WCSRTOMBS=0;
8718 REPLACE_WCSNRTOMBS=0;
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8730 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8731 if test "${gt_cv_locale_ja+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8740 #if HAVE_LANGINFO_CODESET
8741 # include <langinfo.h>
8750 /* Check whether the given locale name is recognized by the system. */
8751 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8752 /* On native Windows, setlocale(category, "") looks at the system settings,
8753 not at the environment variables. Also, when an encoding suffix such
8754 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8755 category of the locale to "C". */
8756 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8757 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8760 if (setlocale (LC_ALL, "") == NULL) return 1;
8762 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8763 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8764 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8765 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8766 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8767 some unit tests fail.
8768 On MirBSD 10, when an unsupported locale is specified, setlocale()
8769 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8770 #if HAVE_LANGINFO_CODESET
8772 const char *cs = nl_langinfo (CODESET);
8773 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8774 || strcmp (cs, "UTF-8") == 0)
8779 /* On Cygwin, avoid locale names without encoding suffix, because the
8780 locale_charset() function relies on the encoding suffix. Note that
8781 LC_ALL is set on the command line. */
8782 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8784 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8786 if (MB_CUR_MAX == 1)
8788 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8789 This excludes the UTF-8 encoding (except on MirBSD). */
8790 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8791 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8792 for (p = buf; *p != '\0'; p++)
8793 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8800 (eval $ac_link) 2>&5
8802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8803 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8805 # Handle native Windows specially, because there setlocale() interprets
8806 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8807 # "fr" or "fra" as "French" or "French_France.1252",
8808 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8809 # "ja" as "Japanese" or "Japanese_Japan.932",
8812 # Note that on native Windows, the Japanese locale is
8813 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8814 # cannot use it here.
8815 gt_cv_locale_ja=none
8818 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8819 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8820 # configure script would override the LC_ALL setting. Likewise for
8821 # LC_CTYPE, which is also set at the beginning of the configure script.
8822 # Test for the AIX locale name.
8823 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8824 gt_cv_locale_ja=ja_JP
8826 # Test for the locale name with explicit encoding suffix.
8827 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8828 gt_cv_locale_ja=ja_JP.EUC-JP
8830 # Test for the HP-UX, OSF/1, NetBSD locale name.
8831 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8832 gt_cv_locale_ja=ja_JP.eucJP
8834 # Test for the IRIX, FreeBSD locale name.
8835 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8836 gt_cv_locale_ja=ja_JP.EUC
8838 # Test for the Solaris 7 locale name.
8839 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8842 # Special test for NetBSD 1.6.
8843 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8844 gt_cv_locale_ja=ja_JP.eucJP
8847 gt_cv_locale_ja=none
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8861 $as_echo "$gt_cv_locale_ja" >&6; }
8862 LOCALE_JA=$gt_cv_locale_ja
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8869 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8870 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8880 #if HAVE_LANGINFO_CODESET
8881 # include <langinfo.h>
8890 /* Check whether the given locale name is recognized by the system. */
8891 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8892 /* On native Windows, setlocale(category, "") looks at the system settings,
8893 not at the environment variables. Also, when an encoding suffix such
8894 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8895 category of the locale to "C". */
8896 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8897 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8900 if (setlocale (LC_ALL, "") == NULL) return 1;
8902 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8903 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8904 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8905 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8906 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8907 some unit tests fail.
8908 On MirBSD 10, when an unsupported locale is specified, setlocale()
8909 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8910 #if HAVE_LANGINFO_CODESET
8912 const char *cs = nl_langinfo (CODESET);
8913 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8914 || strcmp (cs, "UTF-8") == 0)
8919 /* On Cygwin, avoid locale names without encoding suffix, because the
8920 locale_charset() function relies on the encoding suffix. Note that
8921 LC_ALL is set on the command line. */
8922 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8924 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8925 This excludes the UTF-8 encoding (except on MirBSD). */
8926 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8927 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8928 for (p = buf; *p != '\0'; p++)
8929 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8931 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8932 single wide character. This excludes the GB2312 and GBK encodings. */
8933 if (mblen ("\203\062\332\066", 5) != 4)
8939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8940 (eval $ac_link) 2>&5
8942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8945 # Handle native Windows specially, because there setlocale() interprets
8946 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8947 # "fr" or "fra" as "French" or "French_France.1252",
8948 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8949 # "ja" as "Japanese" or "Japanese_Japan.932",
8952 # Test for the hypothetical native Windows locale name.
8953 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8954 gt_cv_locale_zh_CN=Chinese_China.54936
8957 gt_cv_locale_zh_CN=none
8961 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8962 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8963 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8964 gt_cv_locale_zh_CN=none
8967 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8968 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8969 # configure script would override the LC_ALL setting. Likewise for
8970 # LC_CTYPE, which is also set at the beginning of the configure script.
8971 # Test for the locale name without encoding suffix.
8972 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8973 gt_cv_locale_zh_CN=zh_CN
8975 # Test for the locale name with explicit encoding suffix.
8976 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8977 gt_cv_locale_zh_CN=zh_CN.GB18030
8980 gt_cv_locale_zh_CN=none
8986 # If there was a link error, due to mblen(), the system is so old that
8987 # it certainly doesn't have a chinese locale.
8988 gt_cv_locale_zh_CN=none
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8994 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8995 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9001 $as_echo_n "checking for a french Unicode locale... " >&6; }
9002 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9011 #if HAVE_LANGINFO_CODESET
9012 # include <langinfo.h>
9019 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9020 imitates locale dependent behaviour by looking at the environment
9021 variables, and all locales use the UTF-8 encoding. */
9022 #if !(defined __BEOS__ || defined __HAIKU__)
9023 /* Check whether the given locale name is recognized by the system. */
9024 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9025 /* On native Windows, setlocale(category, "") looks at the system settings,
9026 not at the environment variables. Also, when an encoding suffix such
9027 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9028 category of the locale to "C". */
9029 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9030 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9033 if (setlocale (LC_ALL, "") == NULL) return 1;
9035 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9036 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9037 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9038 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9039 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9040 some unit tests fail. */
9041 # if HAVE_LANGINFO_CODESET
9043 const char *cs = nl_langinfo (CODESET);
9044 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9049 /* On Cygwin, avoid locale names without encoding suffix, because the
9050 locale_charset() function relies on the encoding suffix. Note that
9051 LC_ALL is set on the command line. */
9052 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9054 /* Check whether in the abbreviation of the second month, the second
9055 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9056 two bytes long, with UTF-8 encoding. */
9057 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9058 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9059 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9062 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9063 /* Check whether the decimal separator is a comma.
9064 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9065 are nl_langinfo(RADIXCHAR) are both ".". */
9066 if (localeconv () ->decimal_point[0] != ',') return 1;
9072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9073 (eval $ac_link) 2>&5
9075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9076 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9078 # Handle native Windows specially, because there setlocale() interprets
9079 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9080 # "fr" or "fra" as "French" or "French_France.1252",
9081 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9082 # "ja" as "Japanese" or "Japanese_Japan.932",
9085 # Test for the hypothetical native Windows locale name.
9086 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9087 gt_cv_locale_fr_utf8=French_France.65001
9090 gt_cv_locale_fr_utf8=none
9094 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9095 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9096 # configure script would override the LC_ALL setting. Likewise for
9097 # LC_CTYPE, which is also set at the beginning of the configure script.
9098 # Test for the usual locale name.
9099 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9100 gt_cv_locale_fr_utf8=fr_FR
9102 # Test for the locale name with explicit encoding suffix.
9103 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9104 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9106 # Test for the Solaris 7 locale name.
9107 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9108 gt_cv_locale_fr_utf8=fr.UTF-8
9111 gt_cv_locale_fr_utf8=none
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9122 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9123 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9130 $as_echo_n "checking for a traditional french locale... " >&6; }
9131 if test "${gt_cv_locale_fr+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9140 #if HAVE_LANGINFO_CODESET
9141 # include <langinfo.h>
9148 /* Check whether the given locale name is recognized by the system. */
9149 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9150 /* On native Windows, setlocale(category, "") looks at the system settings,
9151 not at the environment variables. Also, when an encoding suffix such
9152 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9153 category of the locale to "C". */
9154 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9155 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9158 if (setlocale (LC_ALL, "") == NULL) return 1;
9160 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9161 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9162 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9163 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9164 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9165 some unit tests fail.
9166 On MirBSD 10, when an unsupported locale is specified, setlocale()
9167 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9168 #if HAVE_LANGINFO_CODESET
9170 const char *cs = nl_langinfo (CODESET);
9171 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9172 || strcmp (cs, "UTF-8") == 0)
9177 /* On Cygwin, avoid locale names without encoding suffix, because the
9178 locale_charset() function relies on the encoding suffix. Note that
9179 LC_ALL is set on the command line. */
9180 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9182 /* Check whether in the abbreviation of the second month, the second
9183 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9184 one byte long. This excludes the UTF-8 encoding. */
9185 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9186 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9187 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9188 /* Check whether the decimal separator is a comma.
9189 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9190 are nl_langinfo(RADIXCHAR) are both ".". */
9191 if (localeconv () ->decimal_point[0] != ',') return 1;
9197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9198 (eval $ac_link) 2>&5
9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9203 # Handle native Windows specially, because there setlocale() interprets
9204 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9205 # "fr" or "fra" as "French" or "French_France.1252",
9206 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9207 # "ja" as "Japanese" or "Japanese_Japan.932",
9210 # Test for the native Windows locale name.
9211 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9212 gt_cv_locale_fr=French_France.1252
9215 gt_cv_locale_fr=none
9219 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9220 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9221 # configure script would override the LC_ALL setting. Likewise for
9222 # LC_CTYPE, which is also set at the beginning of the configure script.
9223 # Test for the usual locale name.
9224 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9225 gt_cv_locale_fr=fr_FR
9227 # Test for the locale name with explicit encoding suffix.
9228 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9229 gt_cv_locale_fr=fr_FR.ISO-8859-1
9231 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9232 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9233 gt_cv_locale_fr=fr_FR.ISO8859-1
9235 # Test for the HP-UX locale name.
9236 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9237 gt_cv_locale_fr=fr_FR.iso88591
9239 # Test for the Solaris 7 locale name.
9240 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9244 gt_cv_locale_fr=none
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9257 $as_echo "$gt_cv_locale_fr" >&6; }
9258 LOCALE_FR=$gt_cv_locale_fr
9283 GNULIB_STRCASESTR=0;
9290 GNULIB_MBSCASECMP=0;
9291 GNULIB_MBSNCASECMP=0;
9292 GNULIB_MBSPCASECMP=0;
9293 GNULIB_MBSCASESTR=0;
9300 GNULIB_STRERROR_R=0;
9302 GNULIB_STRVERSCMP=0;
9309 HAVE_DECL_MEMRCHR=1;
9315 HAVE_DECL_STRNDUP=1;
9316 HAVE_DECL_STRNLEN=1;
9320 HAVE_DECL_STRTOK_R=1;
9321 HAVE_DECL_STRERROR_R=1;
9322 HAVE_DECL_STRSIGNAL=1;
9329 REPLACE_STRCASESTR=0;
9330 REPLACE_STRCHRNUL=0;
9332 REPLACE_STRERROR_R=0;
9336 REPLACE_STRSIGNAL=0;
9338 UNDEFINE_STRTOK_R=0;
9344 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9345 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9346 # irrelevant for anonymous mappings.
9347 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9348 if test "x$ac_cv_func_mmap" = x""yes; then :
9355 # Try to allow MAP_ANONYMOUS.
9356 gl_have_mmap_anonymous=no
9357 if test $gl_have_mmap = yes; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9359 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9363 #include <sys/mman.h>
9364 #ifdef MAP_ANONYMOUS
9365 I cannot identify this map
9369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9370 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9371 gl_have_mmap_anonymous=yes
9375 if test $gl_have_mmap_anonymous != yes; then
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9379 #include <sys/mman.h>
9381 I cannot identify this map
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9388 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9390 gl_have_mmap_anonymous=yes
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9396 $as_echo "$gl_have_mmap_anonymous" >&6; }
9397 if test $gl_have_mmap_anonymous = yes; then
9399 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9409 if test $HAVE_MEMCHR = 1; then
9410 # Detect platform-specific bugs in some versions of glibc:
9411 # memchr should not dereference anything with length 0
9412 # http://bugzilla.redhat.com/499689
9413 # memchr should not dereference overestimated length after a match
9414 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9415 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9416 # Assume that memchr works on platforms that lack mprotect.
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9418 $as_echo_n "checking whether memchr works... " >&6; }
9419 if test "${gl_cv_func_memchr_works+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9422 if test "$cross_compiling" = yes; then :
9423 gl_cv_func_memchr_works="guessing no"
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9431 # include <unistd.h>
9432 # include <sys/types.h>
9433 # include <sys/mman.h>
9445 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9446 # if HAVE_MAP_ANONYMOUS
9447 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9449 # else /* !HAVE_MAP_ANONYMOUS */
9450 const int flags = MAP_FILE | MAP_PRIVATE;
9451 int fd = open ("/dev/zero", O_RDONLY, 0666);
9455 int pagesize = getpagesize ();
9457 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9459 if (two_pages != (char *)(-1)
9460 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9461 fence = two_pages + pagesize;
9466 if (memchr (fence, 0, 0))
9468 strcpy (fence - 9, "12345678");
9469 if (memchr (fence - 9, 0, 79) != fence - 1)
9471 if (memchr (fence - 1, 0, 3) != fence - 1)
9480 if ac_fn_c_try_run "$LINENO"; then :
9481 gl_cv_func_memchr_works=yes
9483 gl_cv_func_memchr_works=no
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9491 $as_echo "$gl_cv_func_memchr_works" >&6; }
9492 if test "$gl_cv_func_memchr_works" != yes; then
9497 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9498 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9504 cat >>confdefs.h <<_ACEOF
9505 #define HAVE_DECL_MEMMEM $ac_have_decl
9512 for ac_func in memmem
9514 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9515 if test "x$ac_cv_func_memmem" = x""yes; then :
9516 cat >>confdefs.h <<_ACEOF
9517 #define HAVE_MEMMEM 1
9523 if test $ac_cv_func_memmem = yes; then
9529 if test $ac_cv_have_decl_memmem = no; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9533 $as_echo_n "checking whether memmem works... " >&6; }
9534 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9537 if test "$cross_compiling" = yes; then :
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9541 #ifdef __GNU_LIBRARY__
9542 #include <features.h>
9543 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9544 || __GLIBC_MINOR__ > 12)) \
9545 || (__GLIBC__ > 2)) \
9546 || defined __UCLIBC__
9549 #elif defined __CYGWIN__
9550 #include <cygwin/version.h>
9551 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9560 $EGREP "Lucky user" >/dev/null 2>&1; then :
9561 gl_cv_func_memmem_works_always="guessing yes"
9563 gl_cv_func_memmem_works_always="guessing no"
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9572 #include <string.h> /* for memmem */
9573 #define P "_EF_BF_BD"
9574 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9575 #define NEEDLE P P P P P
9582 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9584 /* Check for empty needle behavior. */
9586 const char *haystack = "AAA";
9587 if (memmem (haystack, 3, NULL, 0) != haystack)
9596 if ac_fn_c_try_run "$LINENO"; then :
9597 gl_cv_func_memmem_works_always=yes
9599 gl_cv_func_memmem_works_always=no
9601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9602 conftest.$ac_objext conftest.beam conftest.$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9608 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9609 case "$gl_cv_func_memmem_works_always" in
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9621 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9622 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9628 #include <stdbool.h>
9630 "error: bool is not defined"
9633 "error: false is not defined"
9636 "error: false is not 0"
9639 "error: true is not defined"
9642 "error: true is not 1"
9644 #ifndef __bool_true_false_are_defined
9645 "error: __bool_true_false_are_defined is not defined"
9648 struct s { _Bool s: 1; _Bool t; } s;
9650 char a[true == 1 ? 1 : -1];
9651 char b[false == 0 ? 1 : -1];
9652 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9653 char d[(bool) 0.5 == true ? 1 : -1];
9654 /* See body of main program for 'e'. */
9655 char f[(_Bool) 0.0 == false ? 1 : -1];
9657 char h[sizeof (_Bool)];
9659 enum { j = false, k = true, l = false * true, m = true * 256 };
9660 /* The following fails for
9661 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9663 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9664 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9665 /* Catch a bug in an HP-UX C compiler. See
9666 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9667 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9679 /* Refer to every declared value, to avoid compiler optimizations. */
9680 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9681 + !m + !n + !o + !p + !q + !pq);
9687 if ac_fn_c_try_compile "$LINENO"; then :
9688 ac_cv_header_stdbool_h=yes
9690 ac_cv_header_stdbool_h=no
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9695 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9696 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9697 if test "x$ac_cv_type__Bool" = x""yes; then :
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE__BOOL 1
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9713 $as_echo_n "checking for wchar_t... " >&6; }
9714 if test "${gt_cv_c_wchar_t+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9720 wchar_t foo = (wchar_t)'\0';
9729 if ac_fn_c_try_compile "$LINENO"; then :
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9737 $as_echo "$gt_cv_c_wchar_t" >&6; }
9738 if test $gt_cv_c_wchar_t = yes; then
9740 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9745 REPLACE_STRERROR_0=0
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9747 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9748 if test "${gl_cv_func_strerror_0_works+set}" = set; then :
9749 $as_echo_n "(cached) " >&6
9751 if test "$cross_compiling" = yes; then :
9753 # Guess yes on glibc systems.
9754 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9755 # If we don't know, assume the worst.
9756 *) gl_cv_func_strerror_0_works="guessing no" ;;
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9772 if (!*str) result |= 1;
9773 if (errno) result |= 2;
9774 if (strstr (str, "nknown") || strstr (str, "ndefined"))
9781 if ac_fn_c_try_run "$LINENO"; then :
9782 gl_cv_func_strerror_0_works=yes
9784 gl_cv_func_strerror_0_works=no
9786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9787 conftest.$ac_objext conftest.beam conftest.$ac_ext
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9793 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
9794 case "$gl_cv_func_strerror_0_works" in
9797 REPLACE_STRERROR_0=1
9799 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9807 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9808 if test "${ac_cv_c_restrict+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9812 # The order here caters to the fact that C++ does not require restrict.
9813 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 typedef int * int_ptr;
9817 int foo (int_ptr $ac_kw ip) {
9831 if ac_fn_c_try_compile "$LINENO"; then :
9832 ac_cv_c_restrict=$ac_kw
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 test "$ac_cv_c_restrict" != no && break
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9840 $as_echo "$ac_cv_c_restrict" >&6; }
9842 case $ac_cv_c_restrict in
9844 no) $as_echo "#define restrict /**/" >>confdefs.h
9846 *) cat >>confdefs.h <<_ACEOF
9847 #define restrict $ac_cv_c_restrict
9863 if test $gl_cv_have_include_next = yes; then
9864 gl_cv_next_string_h='<'string.h'>'
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9867 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9868 if test "${gl_cv_next_string_h+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9878 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9879 *) gl_absname_cpp="$ac_cpp" ;;
9884 gl_dirsep_regex='[/\\]'
9887 gl_dirsep_regex='\/'
9890 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9892 gl_header_literal_regex=`echo 'string.h' \
9893 |
sed -e "$gl_make_literal_regex_sed"`
9894 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9895 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9900 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9901 sed -n "$gl_absolute_header_sed"`'"'
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9906 $as_echo "$gl_cv_next_string_h" >&6; }
9908 NEXT_STRING_H=$gl_cv_next_string_h
9910 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9911 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9912 gl_next_as_first_directive='<'string.h'>'
9914 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9915 gl_next_as_first_directive=$gl_cv_next_string_h
9917 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9924 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
9925 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9927 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9928 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9929 $as_echo_n "(cached) " >&6
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945 eval "$as_gl_Symbol=yes"
9947 eval "$as_gl_Symbol=no"
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 eval ac_res=\$$as_gl_Symbol
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9953 $as_echo "$ac_res" >&6; }
9954 eval as_val=\$$as_gl_Symbol
9955 if test "x$as_val" = x""yes; then :
9956 cat >>confdefs.h <<_ACEOF
9957 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9960 eval ac_cv_have_decl_$gl_func=yes
9968 if test "$gl_cv_func_memchr_works" != yes; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9972 $as_echo_n "checking whether strstr works... " >&6; }
9973 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9976 if test "$cross_compiling" = yes; then :
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9980 #ifdef __GNU_LIBRARY__
9981 #include <features.h>
9982 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9983 || defined __UCLIBC__
9986 #elif defined __CYGWIN__
9987 #include <cygwin/version.h>
9988 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9997 $EGREP "Lucky user" >/dev/null 2>&1; then :
9998 gl_cv_func_strstr_works_always="guessing yes"
10000 gl_cv_func_strstr_works_always="guessing no"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10009 #include <string.h> /* for strstr */
10010 #define P "_EF_BF_BD"
10011 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10012 #define NEEDLE P P P P P
10017 return !!strstr (HAYSTACK, NEEDLE);
10023 if ac_fn_c_try_run "$LINENO"; then :
10024 gl_cv_func_strstr_works_always=yes
10026 gl_cv_func_strstr_works_always=no
10028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10029 conftest.$ac_objext conftest.beam conftest.$ac_ext
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
10035 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
10036 case "$gl_cv_func_strstr_works_always" in
10057 GNULIB_UTIMENSAT=0;
10071 REPLACE_FUTIMENS=0;
10077 REPLACE_UTIMENSAT=0;
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10080 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10081 if test "${ac_cv_header_stat_broken+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #include <sys/types.h>
10087 #include <sys/stat.h>
10089 #if defined S_ISBLK && defined S_IFDIR
10090 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10093 #if defined S_ISBLK && defined S_IFCHR
10094 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10097 #if defined S_ISLNK && defined S_IFREG
10098 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10101 #if defined S_ISSOCK && defined S_IFREG
10102 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10106 if ac_fn_c_try_compile "$LINENO"; then :
10107 ac_cv_header_stat_broken=no
10109 ac_cv_header_stat_broken=yes
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10114 $as_echo "$ac_cv_header_stat_broken" >&6; }
10115 if test $ac_cv_header_stat_broken = yes; then
10117 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10123 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10124 if test "x$ac_cv_type_mode_t" = x""yes; then :
10128 cat >>confdefs.h <<_ACEOF
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10135 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10136 if test -z "$MKDIR_P"; then
10137 if test "${ac_cv_path_mkdir+set}" = set; then :
10138 $as_echo_n "(cached) " >&6
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10144 test -z "$as_dir" && as_dir=.
10145 for ac_prog in mkdir gmkdir; do
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10149 'mkdir (GNU coreutils) '* | \
10150 'mkdir (coreutils) '* | \
10151 'mkdir (fileutils) '4.1*)
10152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10162 if test "${ac_cv_path_mkdir+set}" = set; then
10163 MKDIR_P="$ac_cv_path_mkdir -p"
10165 # As a last resort, use the slow shell script. Don't cache a
10166 # value for MKDIR_P within a source directory, because that will
10167 # break other packages using the cache if that directory is
10168 # removed, or if the value is a relative name.
10169 test -d ./--version && rmdir ./--version
10170 MKDIR_P="$ac_install_sh -d"
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10174 $as_echo "$MKDIR_P" >&6; }
10178 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10179 if test "x$ac_cv_type_pid_t" = x""yes; then :
10183 cat >>confdefs.h <<_ACEOF
10191 WINDOWS_64_BIT_OFF_T=0
10197 GNULIB_NANOSLEEP=0;
10201 HAVE_DECL_LOCALTIME_R=1;
10205 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10206 REPLACE_MKTIME=GNULIB_PORTCHECK;
10207 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10208 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10215 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10216 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10226 static struct timespec x; x.tv_sec = x.tv_nsec;
10231 if ac_fn_c_try_compile "$LINENO"; then :
10232 gl_cv_sys_struct_timespec_in_time_h=yes
10234 gl_cv_sys_struct_timespec_in_time_h=no
10236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10239 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10241 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10242 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10243 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10244 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10245 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10248 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10249 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254 #include <sys/time.h>
10259 static struct timespec x; x.tv_sec = x.tv_nsec;
10264 if ac_fn_c_try_compile "$LINENO"; then :
10265 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10267 gl_cv_sys_struct_timespec_in_sys_time_h=no
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10272 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10273 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10274 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
10277 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
10278 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 #include <pthread.h>
10288 static struct timespec x; x.tv_sec = x.tv_nsec;
10293 if ac_fn_c_try_compile "$LINENO"; then :
10294 gl_cv_sys_struct_timespec_in_pthread_h=yes
10296 gl_cv_sys_struct_timespec_in_pthread_h=no
10298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
10301 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
10302 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
10303 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
10322 if test $gl_cv_have_include_next = yes; then
10323 gl_cv_next_time_h='<'time.h'>'
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
10326 $as_echo_n "checking absolute name of <time.h>... " >&6; }
10327 if test "${gl_cv_next_time_h+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10338 *) gl_absname_cpp="$ac_cpp" ;;
10343 gl_dirsep_regex='[/\\]'
10346 gl_dirsep_regex='\/'
10349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10351 gl_header_literal_regex=`echo 'time.h' \
10352 |
sed -e "$gl_make_literal_regex_sed"`
10353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10359 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10360 sed -n "$gl_absolute_header_sed"`'"'
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
10365 $as_echo "$gl_cv_next_time_h" >&6; }
10367 NEXT_TIME_H=$gl_cv_next_time_h
10369 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10371 gl_next_as_first_directive='<'time.h'>'
10373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10374 gl_next_as_first_directive=$gl_cv_next_time_h
10376 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10385 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10386 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
10389 gl_cv_header_wchar_h_correct_inline=yes
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10393 #define wcstod renamed_wcstod
10394 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10396 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10397 included before <wchar.h>. */
10398 #include <stddef.h>
10402 extern int zero (void);
10403 int main () { return zero(); }
10406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10407 (eval $ac_compile) 2>&5
10409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10410 test $ac_status = 0; }; then
10411 mv conftest.$ac_objext conftest1.$ac_objext
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10415 #define wcstod renamed_wcstod
10416 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10418 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10419 included before <wchar.h>. */
10420 #include <stddef.h>
10424 int zero (void) { return 0; }
10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10428 (eval $ac_compile) 2>&5
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; }; then
10432 mv conftest.$ac_objext conftest2.$ac_objext
10433 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10436 gl_cv_header_wchar_h_correct_inline=no
10440 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10444 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10445 if test $gl_cv_header_wchar_h_correct_inline = no; then
10446 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10447 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10448 C99 mode. You have four options:
10449 - Add the flag -fgnu89-inline to CC and reconfigure, or
10450 - Fix your include files, using parts of
10451 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10452 - Use a gcc version older than 4.3, or
10453 - Don't use the flags -std=c99 or -std=gnu99.
10454 Configuration aborted." "$LINENO" 5
10461 if test $ac_cv_header_features_h = yes; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10470 $as_echo_n "checking for wint_t... " >&6; }
10471 if test "${gt_cv_c_wint_t+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10479 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10480 before <wchar.h>. */
10481 #include <stddef.h>
10485 wint_t foo = (wchar_t)'\0';
10494 if ac_fn_c_try_compile "$LINENO"; then :
10499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10502 $as_echo "$gt_cv_c_wint_t" >&6; }
10503 if test $gt_cv_c_wint_t = yes; then
10505 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10514 GNULIB_TOWCTRANS=0;
10518 REPLACE_ISWBLANK=0;
10524 GL_COND_LIBTOOL_TRUE=
10525 GL_COND_LIBTOOL_FALSE='#'
10527 GL_COND_LIBTOOL_TRUE='#'
10528 GL_COND_LIBTOOL_FALSE=
10531 gl_cond_libtool=false
10534 gl_m4_base='import/m4'
10544 gl_source_base='import'
10547 if test $ac_cv_func_alloca_works = no; then
10551 # Define an additional variable used in the Makefile substitution.
10552 if test $ac_cv_working_alloca_h = yes; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10554 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10555 if test "${gl_cv_rpl_alloca+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10568 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10569 gl_cv_rpl_alloca=yes
10571 gl_cv_rpl_alloca=no
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10578 $as_echo "$gl_cv_rpl_alloca" >&6; }
10579 if test $gl_cv_rpl_alloca = yes; then
10581 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10591 if test -n "$ALLOCA_H"; then
10592 GL_GENERATE_ALLOCA_H_TRUE=
10593 GL_GENERATE_ALLOCA_H_FALSE='#'
10595 GL_GENERATE_ALLOCA_H_TRUE='#'
10596 GL_GENERATE_ALLOCA_H_FALSE=
10601 if test "x$datarootdir" = x; then
10602 datarootdir='${datadir}'
10605 if test "x$docdir" = x; then
10606 docdir='${datarootdir}/doc/${PACKAGE}'
10609 if test "x$htmldir" = x; then
10610 htmldir='${docdir}'
10613 if test "x$dvidir" = x; then
10617 if test "x$pdfdir" = x; then
10621 if test "x$psdir" = x; then
10625 if test "x$lispdir" = x; then
10626 lispdir='${datarootdir}/emacs/site-lisp'
10629 if test "x$localedir" = x; then
10630 localedir='${datarootdir}/locale'
10634 pkglibexecdir='${libexecdir}/${PACKAGE}'
10649 if test $gl_cv_have_include_next = yes; then
10650 gl_cv_next_dirent_h='<'dirent.h'>'
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10653 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10654 if test "${gl_cv_next_dirent_h+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10658 if test $ac_cv_header_dirent_h = yes; then
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 #include <dirent.h>
10667 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10668 *) gl_absname_cpp="$ac_cpp" ;;
10673 gl_dirsep_regex='[/\\]'
10676 gl_dirsep_regex='\/'
10679 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10681 gl_header_literal_regex=`echo 'dirent.h' \
10682 |
sed -e "$gl_make_literal_regex_sed"`
10683 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10684 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10689 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10690 sed -n "$gl_absolute_header_sed"`'"'
10692 gl_cv_next_dirent_h='<'dirent.h'>'
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10698 $as_echo "$gl_cv_next_dirent_h" >&6; }
10700 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10702 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10704 gl_next_as_first_directive='<'dirent.h'>'
10706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10707 gl_next_as_first_directive=$gl_cv_next_dirent_h
10709 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10714 if test $ac_cv_header_dirent_h = yes; then
10722 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10723 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10725 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10726 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10727 $as_echo_n "(cached) " >&6
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 #include <dirent.h>
10742 if ac_fn_c_try_compile "$LINENO"; then :
10743 eval "$as_gl_Symbol=yes"
10745 eval "$as_gl_Symbol=no"
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 eval ac_res=\$$as_gl_Symbol
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10751 $as_echo "$ac_res" >&6; }
10752 eval as_val=\$$as_gl_Symbol
10753 if test "x$as_val" = x""yes; then :
10754 cat >>confdefs.h <<_ACEOF
10755 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
10758 eval ac_cv_have_decl_$gl_func=yes
10769 REPLACE_FLOAT_LDBL=0
10771 aix* | beos* | openbsd* | mirbsd* | irix*)
10775 case "$host_cpu" in
10780 # On x86_64 systems, the C compiler may still be generating
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10789 $EGREP "yes" >/dev/null 2>&1; then :
10800 case "$host_cpu" in
10808 aix* | freebsd* | linux*)
10809 if test -n "$FLOAT_H"; then
10810 REPLACE_FLOAT_LDBL=1
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10817 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10818 if test "${gl_cv_func_itold_works+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10822 if test "$cross_compiling" = yes; then :
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 #if defined __LP64__ || defined __arch64__
10831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10832 $EGREP "yes" >/dev/null 2>&1; then :
10833 gl_cv_func_itold_works="guessing no"
10835 gl_cv_func_itold_works="guessing yes"
10840 *) gl_cv_func_itold_works="guessing yes" ;;
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10848 volatile long double ld;
10857 if ac_fn_c_try_run "$LINENO"; then :
10858 gl_cv_func_itold_works=yes
10860 gl_cv_func_itold_works=no
10862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10863 conftest.$ac_objext conftest.beam conftest.$ac_ext
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10869 $as_echo "$gl_cv_func_itold_works" >&6; }
10870 case "$gl_cv_func_itold_works" in
10877 if test -n "$FLOAT_H"; then
10886 if test $gl_cv_have_include_next = yes; then
10887 gl_cv_next_float_h='<'float.h'>'
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10890 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10891 if test "${gl_cv_next_float_h+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10901 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10902 *) gl_absname_cpp="$ac_cpp" ;;
10907 gl_dirsep_regex='[/\\]'
10910 gl_dirsep_regex='\/'
10913 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10915 gl_header_literal_regex=`echo 'float.h' \
10916 |
sed -e "$gl_make_literal_regex_sed"`
10917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10923 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10924 sed -n "$gl_absolute_header_sed"`'"'
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10929 $as_echo "$gl_cv_next_float_h" >&6; }
10931 NEXT_FLOAT_H=$gl_cv_next_float_h
10933 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10935 gl_next_as_first_directive='<'float.h'>'
10937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10938 gl_next_as_first_directive=$gl_cv_next_float_h
10940 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10947 if test -n "$FLOAT_H"; then
10948 GL_GENERATE_FLOAT_H_TRUE=
10949 GL_GENERATE_FLOAT_H_FALSE='#'
10951 GL_GENERATE_FLOAT_H_TRUE='#'
10952 GL_GENERATE_FLOAT_H_FALSE=
10957 if test $REPLACE_FLOAT_LDBL = 1; then
10966 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10969 if test $REPLACE_ITOLD = 1; then
10978 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10987 gl_fnmatch_required_lowercase=`
10988 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
10990 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10992 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10993 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10994 $as_echo_n "(cached) " >&6
10996 if test $gl_fnmatch_required = GNU; then
10997 gl_fnmatch_gnu_start=
10998 gl_fnmatch_gnu_end=
11000 gl_fnmatch_gnu_start='#if 0'
11001 gl_fnmatch_gnu_end='#endif'
11003 if test "$cross_compiling" = yes; then :
11004 eval "$gl_fnmatch_cache_var=\"guessing no\""
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #include <fnmatch.h>
11010 y (char const *pattern, char const *string, int flags)
11012 return fnmatch (pattern, string, flags) == 0;
11015 n (char const *pattern, char const *string, int flags)
11017 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11023 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11024 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11025 static char const A_1[] = { 'A' - 1, 0 };
11026 static char const A01[] = { 'A' + 1, 0 };
11027 static char const a_1[] = { 'a' - 1, 0 };
11028 static char const a01[] = { 'a' + 1, 0 };
11029 static char const bs_1[] = { '\\\\' - 1, 0 };
11030 static char const bs01[] = { '\\\\' + 1, 0 };
11032 if (!n ("a*", "", 0))
11034 if (!y ("a*", "abc", 0))
11036 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11038 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11040 if (!y ("a\\\\bc", "abc", 0))
11042 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11044 if (!y ("*x", ".x", 0))
11046 if (!n ("*x", ".x", FNM_PERIOD))
11048 if (!y (Apat, "\\\\", 0))
11050 if (!y (Apat, "A", 0))
11052 if (!y (apat, "\\\\", 0))
11054 if (!y (apat, "a", 0))
11056 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11058 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11060 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
11062 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
11064 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
11066 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
11068 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
11070 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
11072 $gl_fnmatch_gnu_start
11073 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
11075 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
11077 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
11079 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
11081 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
11083 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
11085 $gl_fnmatch_gnu_end
11092 if ac_fn_c_try_run "$LINENO"; then :
11093 eval "$gl_fnmatch_cache_var=yes"
11095 eval "$gl_fnmatch_cache_var=no"
11097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11098 conftest.$ac_objext conftest.beam conftest.$ac_ext
11103 eval ac_res=\$$gl_fnmatch_cache_var
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11105 $as_echo "$ac_res" >&6; }
11106 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
11107 if test "$gl_fnmatch_result" = yes; then
11108 rm -f "$gl_source_base/fnmatch.h"
11110 FNMATCH_H=fnmatch.h
11113 if test -n "$FNMATCH_H"; then
11114 GL_GENERATE_FNMATCH_H_TRUE=
11115 GL_GENERATE_FNMATCH_H_FALSE='#'
11117 GL_GENERATE_FNMATCH_H_TRUE='#'
11118 GL_GENERATE_FNMATCH_H_FALSE=
11122 if test -n "$FNMATCH_H"; then
11131 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11135 cat >>confdefs.h <<_ACEOF
11136 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11140 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11142 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_DECL_ISBLANK $ac_have_decl
11161 if test -n "$FNMATCH_H"; then
11170 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11174 cat >>confdefs.h <<_ACEOF
11175 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11179 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11181 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_DECL_ISBLANK $ac_have_decl
11199 if test $gl_cv_func_frexp_no_libm = no; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
11201 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
11202 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11215 int e; return frexp (x, &e) > 0;
11220 if ac_fn_c_try_link "$LINENO"; then :
11221 gl_cv_func_frexp_in_libm=yes
11223 gl_cv_func_frexp_in_libm=no
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
11231 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
11232 if test $gl_cv_func_frexp_in_libm = yes; then
11236 if test $gl_cv_func_frexp_no_libm = yes \
11237 || test $gl_cv_func_frexp_in_libm = yes; then
11239 LIBS="$LIBS $FREXP_LIBM"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
11244 $as_echo_n "checking whether frexp works... " >&6; }
11245 if test "${gl_cv_func_frexp_works+set}" = set; then :
11246 $as_echo_n "(cached) " >&6
11249 if test "$cross_compiling" = yes; then :
11251 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
11252 *) gl_cv_func_frexp_works="guessing yes";;
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11261 #include <string.h>
11263 # include <unistd.h>
11265 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
11266 ICC 10.0 has a bug when optimizing the expression -zero.
11267 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
11268 to PowerPC on Mac OS X 10.5. */
11269 #if defined __hpux || defined __sgi || defined __ICC
11271 compute_minus_zero (void)
11273 return -DBL_MIN * DBL_MIN;
11275 # define minus_zero compute_minus_zero ()
11277 double minus_zero = -0.0;
11286 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
11287 number. Let the test fail in this case. */
11290 /* Test on denormalized numbers. */
11291 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
11296 double y = frexp (x, &exp);
11297 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
11298 On NetBSD: y = 0.75. Correct: y = 0.5. */
11302 /* Test on infinite numbers. */
11306 double y = frexp (x, &exp);
11310 /* Test on negative zero. */
11314 double y = frexp (x, &exp);
11315 if (memcmp (&y, &x, sizeof x))
11321 if ac_fn_c_try_run "$LINENO"; then :
11322 gl_cv_func_frexp_works=yes
11324 gl_cv_func_frexp_works=no
11326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11327 conftest.$ac_objext conftest.beam conftest.$ac_ext
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11333 $as_echo "$gl_cv_func_frexp_works" >&6; }
11336 case "$gl_cv_func_frexp_works" in
11337 *yes) gl_func_frexp=yes ;;
11338 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11343 if test $gl_func_frexp = yes; then
11345 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
11350 if test $gl_func_frexp != yes; then
11359 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11373 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11383 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11385 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11393 if test $HAVE_DECL_FREXPL = 1; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11396 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11397 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11408 int e; return frexpl (x, &e) > 0;
11413 if ac_fn_c_try_link "$LINENO"; then :
11414 gl_cv_func_frexpl_no_libm=yes
11416 gl_cv_func_frexpl_no_libm=no
11418 rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11423 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11425 if test $gl_cv_func_frexpl_no_libm = no; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11427 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11428 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11441 int e; return frexpl (x, &e) > 0;
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 gl_cv_func_frexpl_in_libm=yes
11449 gl_cv_func_frexpl_in_libm=no
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11457 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11458 if test $gl_cv_func_frexpl_in_libm = yes; then
11462 if test $gl_cv_func_frexpl_no_libm = yes \
11463 || test $gl_cv_func_frexpl_in_libm = yes; then
11465 LIBS="$LIBS $FREXPL_LIBM"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11469 $as_echo_n "checking whether frexpl works... " >&6; }
11470 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11474 if test "$cross_compiling" = yes; then :
11477 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11478 gl_cv_func_frexpl_works="guessing no";;
11479 *) gl_cv_func_frexpl_works="guessing yes";;
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11488 /* Override the values of <float.h>, like done in float.in.h. */
11489 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11490 # undef LDBL_MIN_EXP
11491 # define LDBL_MIN_EXP (-16381)
11493 #if defined __i386__ && defined __FreeBSD__
11494 # undef LDBL_MIN_EXP
11495 # define LDBL_MIN_EXP (-16381)
11497 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11498 # undef LDBL_MIN_EXP
11499 # define LDBL_MIN_EXP DBL_MIN_EXP
11501 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11502 # if defined __GNUC__
11503 # undef LDBL_MIN_EXP
11504 # define LDBL_MIN_EXP DBL_MIN_EXP
11511 long double frexpl (long double, int *);
11515 volatile long double x;
11516 /* Test on finite numbers that fails on AIX 5.1. */
11524 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11525 function returns an invalid (incorrectly normalized) value: it returns
11526 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11527 but the correct result is
11528 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11532 long double y = frexpl (x, &exp);
11533 if (!(exp == 1 && y == 0.505L))
11536 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11537 LDBL_MAX_EXP = 16384.
11538 In the loop end test, we test x against Infinity, rather than comparing
11539 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11542 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11553 /* Test on denormalized numbers. */
11556 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11561 long double y = frexpl (x, &exp);
11562 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11563 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11564 if (exp != LDBL_MIN_EXP - 1)
11568 /* Test on infinite numbers. */
11572 long double y = frexpl (x, &exp);
11579 if ac_fn_c_try_run "$LINENO"; then :
11580 gl_cv_func_frexpl_works=yes
11582 gl_cv_func_frexpl_works=no
11584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11585 conftest.$ac_objext conftest.beam conftest.$ac_ext
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11591 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11594 case "$gl_cv_func_frexpl_works" in
11595 *yes) gl_func_frexpl=yes ;;
11596 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11601 if test $gl_func_frexpl = yes; then
11603 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11607 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11608 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11610 FREXPL_LIBM="$FREXP_LIBM"
11617 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11626 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11640 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11650 if test -n "$STDINT_H"; then
11651 PRIPTR_PREFIX='"l"'
11653 for glpfx in '' l ll I64; do
11655 '') gltype1='int';;
11656 l) gltype1='long int';;
11657 ll) gltype1='long long int';;
11658 I64) gltype1='__int64';;
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662 #include <stdint.h>
11663 extern intptr_t foo;
11664 extern $gltype1 foo;
11673 if ac_fn_c_try_compile "$LINENO"; then :
11674 PRIPTR_PREFIX='"'$glpfx'"'
11676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677 test -n "$PRIPTR_PREFIX" && break
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11684 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11685 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 /* Work also in C++ mode. */
11691 #define __STDC_LIMIT_MACROS 1
11693 /* Work if build is not clean. */
11694 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11696 #include <limits.h>
11698 #include <stdint.h>
11701 #if defined INT32_MAX && defined INTMAX_MAX
11702 #define CONDITION (INT32_MAX < INTMAX_MAX)
11703 #elif HAVE_LONG_LONG_INT
11704 #define CONDITION (sizeof (int) < sizeof (long long int))
11706 #define CONDITION 0
11708 int test[CONDITION ? 1 : -1];
11717 if ac_fn_c_try_compile "$LINENO"; then :
11718 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11720 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11725 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11726 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11727 INT32_MAX_LT_INTMAX_MAX=1;
11729 INT32_MAX_LT_INTMAX_MAX=0;
11733 if test $APPLE_UNIVERSAL_BUILD = 0; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11736 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11737 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 /* Work also in C++ mode. */
11743 #define __STDC_LIMIT_MACROS 1
11745 /* Work if build is not clean. */
11746 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11748 #include <limits.h>
11750 #include <stdint.h>
11753 #if defined INT64_MAX
11754 #define CONDITION (INT64_MAX == LONG_MAX)
11755 #elif HAVE_LONG_LONG_INT
11756 #define CONDITION (sizeof (long long int) == sizeof (long int))
11758 #define CONDITION 0
11760 int test[CONDITION ? 1 : -1];
11769 if ac_fn_c_try_compile "$LINENO"; then :
11770 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11772 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11777 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11778 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11779 INT64_MAX_EQ_LONG_MAX=1;
11781 INT64_MAX_EQ_LONG_MAX=0;
11786 INT64_MAX_EQ_LONG_MAX=-1
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11790 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11791 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 /* Work also in C++ mode. */
11797 #define __STDC_LIMIT_MACROS 1
11799 /* Work if build is not clean. */
11800 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11802 #include <limits.h>
11804 #include <stdint.h>
11807 #if defined UINT32_MAX && defined UINTMAX_MAX
11808 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11809 #elif HAVE_LONG_LONG_INT
11810 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11812 #define CONDITION 0
11814 int test[CONDITION ? 1 : -1];
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11826 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11831 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11832 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11833 UINT32_MAX_LT_UINTMAX_MAX=1;
11835 UINT32_MAX_LT_UINTMAX_MAX=0;
11839 if test $APPLE_UNIVERSAL_BUILD = 0; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11842 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11843 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 /* Work also in C++ mode. */
11849 #define __STDC_LIMIT_MACROS 1
11851 /* Work if build is not clean. */
11852 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11854 #include <limits.h>
11856 #include <stdint.h>
11859 #if defined UINT64_MAX
11860 #define CONDITION (UINT64_MAX == ULONG_MAX)
11861 #elif HAVE_LONG_LONG_INT
11862 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11864 #define CONDITION 0
11866 int test[CONDITION ? 1 : -1];
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11878 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11883 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11884 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11885 UINT64_MAX_EQ_ULONG_MAX=1;
11887 UINT64_MAX_EQ_ULONG_MAX=0;
11892 UINT64_MAX_EQ_ULONG_MAX=-1
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11900 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11901 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11910 # define isnand(x) __builtin_isnan ((double)(x))
11913 # define isnand(x) isnan ((double)(x))
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 gl_cv_func_isnand_no_libm=yes
11927 gl_cv_func_isnand_no_libm=no
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11934 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11936 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11937 if test $gl_cv_func_isnand_no_libm = yes; then
11939 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11943 if test $gl_func_isnand_no_libm != yes; then
11952 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11961 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11962 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11971 # define isnanl(x) __builtin_isnanl ((long double)(x))
11972 #elif defined isnan
11974 # define isnanl(x) isnan ((long double)(x))
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 gl_cv_func_isnanl_no_libm=yes
11988 gl_cv_func_isnanl_no_libm=no
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11995 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11997 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11998 if test $gl_func_isnanl_no_libm = yes; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12004 $as_echo_n "checking whether isnanl works... " >&6; }
12005 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12009 if test "$cross_compiling" = yes; then :
12010 case "$host_cpu" in
12011 # Guess no on ia64, x86_64, i386.
12012 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12015 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12016 *) gl_cv_func_isnanl_works="guessing yes";;
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12026 #include <limits.h>
12030 # define isnanl(x) __builtin_isnanl ((long double)(x))
12031 #elif defined isnan
12033 # define isnanl(x) isnan ((long double)(x))
12036 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12037 typedef union { unsigned int word[NWORDS]; long double value; }
12038 memory_long_double;
12039 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12040 runtime type conversion. */
12042 static long double NaNl ()
12045 return zero / zero;
12048 # define NaNl() (0.0L / 0.0L)
12054 if (!isnanl (NaNl ()))
12058 memory_long_double m;
12061 /* The isnanl function should be immune against changes in the sign bit and
12062 in the mantissa bits. The xor operation twiddles a bit that can only be
12063 a sign bit or a mantissa bit (since the exponent never extends to
12066 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
12067 for (i = 0; i < NWORDS; i++)
12069 if (!isnanl (m.value))
12073 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
12074 /* Representation of an 80-bit 'long double' as an initializer for a sequence
12075 of 'unsigned int' words. */
12076 # ifdef WORDS_BIGENDIAN
12077 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12078 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
12079 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
12080 (unsigned int) (mantlo) << 16 \
12083 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12084 { mantlo, manthi, exponent }
12087 static memory_long_double x =
12088 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
12089 if (!isnanl (x.value))
12093 /* Signalling NaN. */
12094 static memory_long_double x =
12095 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
12096 if (!isnanl (x.value))
12099 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
12100 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
12101 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
12102 Application Architecture.
12103 Table 5-2 "Floating-Point Register Encodings"
12104 Figure 5-6 "Memory to Floating-Point Register Data Translation"
12106 { /* Pseudo-NaN. */
12107 static memory_long_double x =
12108 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
12109 if (!isnanl (x.value))
12112 { /* Pseudo-Infinity. */
12113 static memory_long_double x =
12114 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
12115 if (!isnanl (x.value))
12118 { /* Pseudo-Zero. */
12119 static memory_long_double x =
12120 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
12121 if (!isnanl (x.value))
12124 { /* Unnormalized number. */
12125 static memory_long_double x =
12126 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
12127 if (!isnanl (x.value))
12130 { /* Pseudo-Denormal. */
12131 static memory_long_double x =
12132 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
12133 if (!isnanl (x.value))
12141 if ac_fn_c_try_run "$LINENO"; then :
12142 gl_cv_func_isnanl_works=yes
12144 gl_cv_func_isnanl_works=no
12146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12147 conftest.$ac_objext conftest.beam conftest.$ac_ext
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
12153 $as_echo "$gl_cv_func_isnanl_works" >&6; }
12155 case "$gl_cv_func_isnanl_works" in
12157 *) gl_func_isnanl_no_libm=no ;;
12160 if test $gl_func_isnanl_no_libm = yes; then
12162 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
12166 if test $gl_func_isnanl_no_libm != yes; then
12175 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
12181 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
12182 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12186 if test "$cross_compiling" = yes; then :
12188 gl_cv_cc_long_double_expbit0="unknown"
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12195 #include <stddef.h>
12197 #include <string.h>
12199 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12200 typedef union { long double value; unsigned int word[NWORDS]; }
12201 memory_long_double;
12202 static unsigned int ored_words[NWORDS];
12203 static unsigned int anded_words[NWORDS];
12204 static void add_to_ored_words (long double x)
12206 memory_long_double m;
12208 /* Clear it first, in case
12209 sizeof (long double) < sizeof (memory_long_double). */
12210 memset (&m, 0, sizeof (memory_long_double));
12212 for (i = 0; i < NWORDS; i++)
12214 ored_words[i] |= m.word[i];
12215 anded_words[i] &= m.word[i];
12221 FILE *fp = fopen ("conftest.out", "w");
12224 for (j = 0; j < NWORDS; j++)
12225 anded_words[j] = ~ (unsigned int) 0;
12226 add_to_ored_words (0.25L);
12227 add_to_ored_words (0.5L);
12228 add_to_ored_words (1.0L);
12229 add_to_ored_words (2.0L);
12230 add_to_ored_words (4.0L);
12231 /* Remove bits that are common (e.g. if representation of the first mantissa
12232 bit is explicit). */
12233 for (j = 0; j < NWORDS; j++)
12234 ored_words[j] &= ~anded_words[j];
12235 /* Now find the nonzero word. */
12236 for (j = 0; j < NWORDS; j++)
12237 if (ored_words[j] != 0)
12242 for (i = j + 1; i < NWORDS; i++)
12243 if (ored_words[i] != 0)
12245 fprintf (fp, "unknown");
12246 return (fclose (fp) != 0);
12249 if ((ored_words[j] >> i) & 1)
12251 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12252 return (fclose (fp) != 0);
12255 fprintf (fp, "unknown");
12256 return (fclose (fp) != 0);
12260 if ac_fn_c_try_run "$LINENO"; then :
12261 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
12263 gl_cv_cc_long_double_expbit0="unknown"
12265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12266 conftest.$ac_objext conftest.beam conftest.$ac_ext
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
12273 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
12274 case "$gl_cv_cc_long_double_expbit0" in
12276 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
12277 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
12279 cat >>confdefs.h <<_ACEOF
12280 #define LDBL_EXPBIT0_WORD $word
12284 cat >>confdefs.h <<_ACEOF
12285 #define LDBL_EXPBIT0_BIT $bit
12302 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
12315 if test $gl_cv_have_include_next = yes; then
12316 gl_cv_next_math_h='<'math.h'>'
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
12319 $as_echo_n "checking absolute name of <math.h>... " >&6; }
12320 if test "${gl_cv_next_math_h+set}" = set; then :
12321 $as_echo_n "(cached) " >&6
12324 if test $ac_cv_header_math_h = yes; then
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12333 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12334 *) gl_absname_cpp="$ac_cpp" ;;
12339 gl_dirsep_regex='[/\\]'
12342 gl_dirsep_regex='\/'
12345 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12347 gl_header_literal_regex=`echo 'math.h' \
12348 |
sed -e "$gl_make_literal_regex_sed"`
12349 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12350 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12355 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12356 sed -n "$gl_absolute_header_sed"`'"'
12358 gl_cv_next_math_h='<'math.h'>'
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12364 $as_echo "$gl_cv_next_math_h" >&6; }
12366 NEXT_MATH_H=$gl_cv_next_math_h
12368 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12369 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12370 gl_next_as_first_directive='<'math.h'>'
12372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12373 gl_next_as_first_directive=$gl_cv_next_math_h
12375 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12382 $as_echo_n "checking whether NAN macro works... " >&6; }
12383 if test "${gl_cv_header_math_nan_works+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12392 /* Solaris 10 has a broken definition of NAN. Other platforms
12393 fail to provide NAN, or provide it only in C99 mode; this
12394 test only needs to fail when NAN is provided but wrong. */
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405 gl_cv_header_math_nan_works=yes
12407 gl_cv_header_math_nan_works=no
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12412 $as_echo "$gl_cv_header_math_nan_works" >&6; }
12413 if test $gl_cv_header_math_nan_works = no; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12417 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
12418 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12427 /* Solaris 10 has a broken definition of HUGE_VAL. */
12428 double d = HUGE_VAL;
12434 if ac_fn_c_try_compile "$LINENO"; then :
12435 gl_cv_header_math_huge_val_works=yes
12437 gl_cv_header_math_huge_val_works=no
12439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12442 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12443 if test $gl_cv_header_math_huge_val_works = no; then
12448 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
12449 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12451 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12452 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12453 $as_echo_n "(cached) " >&6
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12467 if ac_fn_c_try_compile "$LINENO"; then :
12468 eval "$as_gl_Symbol=yes"
12470 eval "$as_gl_Symbol=no"
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 eval ac_res=\$$as_gl_Symbol
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12476 $as_echo "$ac_res" >&6; }
12477 eval as_val=\$$as_gl_Symbol
12478 if test "x$as_val" = x""yes; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12483 eval ac_cv_have_decl_$gl_func=yes
12498 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12503 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12504 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12509 # Guess no on AIX and OSF/1.
12510 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12511 # Guess yes otherwise.
12512 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12514 if test $LOCALE_JA != none; then
12515 if test "$cross_compiling" = yes; then :
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12521 #include <locale.h>
12522 #include <string.h>
12523 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12525 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12526 included before <wchar.h>. */
12527 #include <stddef.h>
12533 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12535 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12539 memset (&state, '\0', sizeof (mbstate_t));
12540 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12541 if (mbsinit (&state))
12547 if ac_fn_c_try_run "$LINENO"; then :
12548 gl_cv_func_mbrtowc_incomplete_state=yes
12550 gl_cv_func_mbrtowc_incomplete_state=no
12552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12553 conftest.$ac_objext conftest.beam conftest.$ac_ext
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12560 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12566 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12567 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12572 # Guess no on Solaris 8.
12573 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12574 # Guess yes otherwise.
12575 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12577 if test $LOCALE_ZH_CN != none; then
12578 if test "$cross_compiling" = yes; then :
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12584 #include <locale.h>
12585 #include <stdlib.h>
12586 #include <string.h>
12587 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12589 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12590 included before <wchar.h>. */
12591 #include <stddef.h>
12597 /* This fails on Solaris 8:
12598 mbrtowc returns 2, and sets wc to 0x00F0.
12599 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12600 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12602 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12606 memset (&state, '\0', sizeof (mbstate_t));
12607 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12608 && mbtowc (&wc, input + 3, 6) == 4)
12614 if ac_fn_c_try_run "$LINENO"; then :
12615 gl_cv_func_mbrtowc_sanitycheck=yes
12617 gl_cv_func_mbrtowc_sanitycheck=no
12619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12620 conftest.$ac_objext conftest.beam conftest.$ac_ext
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12627 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12629 REPLACE_MBSTATE_T=0
12630 case "$gl_cv_func_mbrtowc_incomplete_state" in
12632 *) REPLACE_MBSTATE_T=1 ;;
12634 case "$gl_cv_func_mbrtowc_sanitycheck" in
12636 *) REPLACE_MBSTATE_T=1 ;;
12639 REPLACE_MBSTATE_T=1
12644 if test $ac_cv_func_mbrtowc = no; then
12646 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12647 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12649 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12650 included before <wchar.h>. */
12651 #include <stddef.h>
12657 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_DECL_MBRTOWC $ac_have_decl
12667 if test $ac_cv_have_decl_mbrtowc = yes; then
12671 if test $REPLACE_MBSTATE_T = 1; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12678 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12679 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12684 # Guess no on Solaris.
12685 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12686 # Guess yes otherwise.
12687 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12689 if test $LOCALE_FR_UTF8 != none; then
12690 if test "$cross_compiling" = yes; then :
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12696 #include <locale.h>
12697 #include <stdlib.h>
12698 #include <string.h>
12699 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12701 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12702 included before <wchar.h>. */
12703 #include <stddef.h>
12711 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12713 char input[] = "\303\237er";
12718 memset (&state, '\0', sizeof (mbstate_t));
12719 wc = (wchar_t) 0xBADFACE;
12720 ret = mbrtowc (&wc, input, 5, &state);
12723 if (!mbsinit (&state))
12726 memset (&state, '\0', sizeof (mbstate_t));
12727 ret = mbrtowc (NULL, input, 5, &state);
12728 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12730 if (!mbsinit (&state))
12736 if ac_fn_c_try_run "$LINENO"; then :
12737 gl_cv_func_mbrtowc_null_arg1=yes
12739 gl_cv_func_mbrtowc_null_arg1=no
12741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12742 conftest.$ac_objext conftest.beam conftest.$ac_ext
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12749 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12755 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12756 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12761 # Guess no on OSF/1.
12762 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12763 # Guess yes otherwise.
12764 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12766 if test $LOCALE_FR_UTF8 != none; then
12767 if test "$cross_compiling" = yes; then :
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12773 #include <locale.h>
12774 #include <string.h>
12775 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12777 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12778 included before <wchar.h>. */
12779 #include <stddef.h>
12785 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12791 memset (&state, '\0', sizeof (mbstate_t));
12792 wc = (wchar_t) 0xBADFACE;
12793 mbrtowc (&wc, NULL, 5, &state);
12794 /* Check that wc was not modified. */
12795 if (wc != (wchar_t) 0xBADFACE)
12801 if ac_fn_c_try_run "$LINENO"; then :
12802 gl_cv_func_mbrtowc_null_arg2=yes
12804 gl_cv_func_mbrtowc_null_arg2=no
12806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12807 conftest.$ac_objext conftest.beam conftest.$ac_ext
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12814 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12822 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12823 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12824 $as_echo_n "(cached) " >&6
12828 # Guess no on HP-UX, Solaris, native Windows.
12829 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12830 # Guess yes otherwise.
12831 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12833 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12834 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12835 if test "$cross_compiling" = yes; then :
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12841 #include <locale.h>
12842 #include <string.h>
12843 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12845 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12846 included before <wchar.h>. */
12847 #include <stddef.h>
12854 int found_some_locale = 0;
12855 /* This fails on Solaris. */
12856 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12858 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12862 memset (&state, '\0', sizeof (mbstate_t));
12863 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12866 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12869 found_some_locale = 1;
12871 /* This fails on HP-UX 11.11. */
12872 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12874 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12878 memset (&state, '\0', sizeof (mbstate_t));
12879 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12882 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12885 found_some_locale = 1;
12887 /* This fails on native Windows. */
12888 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12890 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12894 memset (&state, '\0', sizeof (mbstate_t));
12895 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12898 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12901 found_some_locale = 1;
12903 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12905 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12909 memset (&state, '\0', sizeof (mbstate_t));
12910 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12913 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12916 found_some_locale = 1;
12918 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12920 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12924 memset (&state, '\0', sizeof (mbstate_t));
12925 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12928 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12931 found_some_locale = 1;
12933 return (found_some_locale ? result : 77);
12936 if ac_fn_c_try_run "$LINENO"; then :
12937 gl_cv_func_mbrtowc_retval=yes
12939 if test $? != 77; then
12940 gl_cv_func_mbrtowc_retval=no
12944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12945 conftest.$ac_objext conftest.beam conftest.$ac_ext
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12952 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12958 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12959 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
12960 $as_echo_n "(cached) " >&6
12964 # Guess no on Solaris 8 and 9.
12965 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12966 # Guess yes otherwise.
12967 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12969 if test $LOCALE_ZH_CN != none; then
12970 if test "$cross_compiling" = yes; then :
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12976 #include <locale.h>
12977 #include <string.h>
12978 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12980 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12981 included before <wchar.h>. */
12982 #include <stddef.h>
12988 /* This fails on Solaris 8 and 9. */
12989 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12994 memset (&state, '\0', sizeof (mbstate_t));
12995 if (mbrtowc (&wc, "", 1, &state) != 0)
13001 if ac_fn_c_try_run "$LINENO"; then :
13002 gl_cv_func_mbrtowc_nul_retval=yes
13004 gl_cv_func_mbrtowc_nul_retval=no
13006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13007 conftest.$ac_objext conftest.beam conftest.$ac_ext
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
13014 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
13016 case "$gl_cv_func_mbrtowc_null_arg1" in
13019 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
13024 case "$gl_cv_func_mbrtowc_null_arg2" in
13027 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
13032 case "$gl_cv_func_mbrtowc_retval" in
13035 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
13040 case "$gl_cv_func_mbrtowc_nul_retval" in
13043 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
13051 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
13060 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
13077 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
13092 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13097 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13098 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13103 # Guess no on AIX and OSF/1.
13104 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13105 # Guess yes otherwise.
13106 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13108 if test $LOCALE_JA != none; then
13109 if test "$cross_compiling" = yes; then :
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 #include <locale.h>
13116 #include <string.h>
13117 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13120 included before <wchar.h>. */
13121 #include <stddef.h>
13127 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13129 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13133 memset (&state, '\0', sizeof (mbstate_t));
13134 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13135 if (mbsinit (&state))
13141 if ac_fn_c_try_run "$LINENO"; then :
13142 gl_cv_func_mbrtowc_incomplete_state=yes
13144 gl_cv_func_mbrtowc_incomplete_state=no
13146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13147 conftest.$ac_objext conftest.beam conftest.$ac_ext
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13154 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13160 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13161 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13162 $as_echo_n "(cached) " >&6
13166 # Guess no on Solaris 8.
13167 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13168 # Guess yes otherwise.
13169 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13171 if test $LOCALE_ZH_CN != none; then
13172 if test "$cross_compiling" = yes; then :
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13178 #include <locale.h>
13179 #include <stdlib.h>
13180 #include <string.h>
13181 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13183 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13184 included before <wchar.h>. */
13185 #include <stddef.h>
13191 /* This fails on Solaris 8:
13192 mbrtowc returns 2, and sets wc to 0x00F0.
13193 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13194 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13196 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13200 memset (&state, '\0', sizeof (mbstate_t));
13201 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13202 && mbtowc (&wc, input + 3, 6) == 4)
13208 if ac_fn_c_try_run "$LINENO"; then :
13209 gl_cv_func_mbrtowc_sanitycheck=yes
13211 gl_cv_func_mbrtowc_sanitycheck=no
13213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13214 conftest.$ac_objext conftest.beam conftest.$ac_ext
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13221 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13223 REPLACE_MBSTATE_T=0
13224 case "$gl_cv_func_mbrtowc_incomplete_state" in
13226 *) REPLACE_MBSTATE_T=1 ;;
13228 case "$gl_cv_func_mbrtowc_sanitycheck" in
13230 *) REPLACE_MBSTATE_T=1 ;;
13233 REPLACE_MBSTATE_T=1
13238 if test $ac_cv_func_mbsinit = no; then
13240 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
13241 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13243 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13244 included before <wchar.h>. */
13245 #include <stddef.h>
13251 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
13257 cat >>confdefs.h <<_ACEOF
13258 #define HAVE_DECL_MBSINIT $ac_have_decl
13261 if test $ac_cv_have_decl_mbsinit = yes; then
13265 if test $REPLACE_MBSTATE_T = 1; then
13269 mingw*) REPLACE_MBSINIT=1 ;;
13274 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
13283 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
13300 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
13314 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13319 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13320 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13325 # Guess no on AIX and OSF/1.
13326 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13327 # Guess yes otherwise.
13328 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13330 if test $LOCALE_JA != none; then
13331 if test "$cross_compiling" = yes; then :
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13337 #include <locale.h>
13338 #include <string.h>
13339 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13341 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13342 included before <wchar.h>. */
13343 #include <stddef.h>
13349 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13351 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13355 memset (&state, '\0', sizeof (mbstate_t));
13356 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13357 if (mbsinit (&state))
13363 if ac_fn_c_try_run "$LINENO"; then :
13364 gl_cv_func_mbrtowc_incomplete_state=yes
13366 gl_cv_func_mbrtowc_incomplete_state=no
13368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13369 conftest.$ac_objext conftest.beam conftest.$ac_ext
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13376 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13382 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13383 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13388 # Guess no on Solaris 8.
13389 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13390 # Guess yes otherwise.
13391 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13393 if test $LOCALE_ZH_CN != none; then
13394 if test "$cross_compiling" = yes; then :
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13400 #include <locale.h>
13401 #include <stdlib.h>
13402 #include <string.h>
13403 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13405 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13406 included before <wchar.h>. */
13407 #include <stddef.h>
13413 /* This fails on Solaris 8:
13414 mbrtowc returns 2, and sets wc to 0x00F0.
13415 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13416 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13418 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13422 memset (&state, '\0', sizeof (mbstate_t));
13423 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13424 && mbtowc (&wc, input + 3, 6) == 4)
13430 if ac_fn_c_try_run "$LINENO"; then :
13431 gl_cv_func_mbrtowc_sanitycheck=yes
13433 gl_cv_func_mbrtowc_sanitycheck=no
13435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13436 conftest.$ac_objext conftest.beam conftest.$ac_ext
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13443 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13445 REPLACE_MBSTATE_T=0
13446 case "$gl_cv_func_mbrtowc_incomplete_state" in
13448 *) REPLACE_MBSTATE_T=1 ;;
13450 case "$gl_cv_func_mbrtowc_sanitycheck" in
13452 *) REPLACE_MBSTATE_T=1 ;;
13455 REPLACE_MBSTATE_T=1
13460 if test $ac_cv_func_mbsrtowcs = no; then
13462 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13463 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13465 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13466 included before <wchar.h>. */
13467 #include <stddef.h>
13473 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13479 cat >>confdefs.h <<_ACEOF
13480 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13483 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13484 REPLACE_MBSRTOWCS=1
13487 if test $REPLACE_MBSTATE_T = 1; then
13488 REPLACE_MBSRTOWCS=1
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13497 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13498 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13503 # Guess no on HP-UX, Solaris, mingw.
13504 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13505 # Guess yes otherwise.
13506 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13508 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13509 if test "$cross_compiling" = yes; then :
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13515 #include <locale.h>
13516 #include <string.h>
13517 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13519 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13520 included before <wchar.h>. */
13521 #include <stddef.h>
13528 /* Test whether the function supports a NULL destination argument.
13529 This fails on native Windows. */
13530 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13532 const char input[] = "\337er";
13533 const char *src = input;
13536 memset (&state, '\0', sizeof (mbstate_t));
13537 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13541 /* Test whether the function works when started with a conversion state
13542 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13543 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13545 const char input[] = "B\303\274\303\237er";
13548 memset (&state, '\0', sizeof (mbstate_t));
13549 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13550 if (!mbsinit (&state))
13552 const char *src = input + 2;
13553 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13557 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13559 const char input[] = "<\306\374\313\334\270\354>";
13562 memset (&state, '\0', sizeof (mbstate_t));
13563 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13564 if (!mbsinit (&state))
13566 const char *src = input + 4;
13567 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13571 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13573 const char input[] = "B\250\271\201\060\211\070er";
13576 memset (&state, '\0', sizeof (mbstate_t));
13577 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13578 if (!mbsinit (&state))
13580 const char *src = input + 2;
13581 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13588 if ac_fn_c_try_run "$LINENO"; then :
13589 gl_cv_func_mbsrtowcs_works=yes
13591 gl_cv_func_mbsrtowcs_works=no
13593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13594 conftest.$ac_objext conftest.beam conftest.$ac_ext
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13601 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13603 case "$gl_cv_func_mbsrtowcs_works" in
13605 *) REPLACE_MBSRTOWCS=1 ;;
13610 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13619 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13629 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13646 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13651 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13660 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13663 for ac_header in bp-sym.h
13665 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_BP_SYM_H 1
13688 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13694 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13696 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13697 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13700 if test "$cross_compiling" = yes; then :
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #include <features.h>
13705 #ifdef __GNU_LIBRARY__
13706 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13707 && !defined __UCLIBC__
13712 #include <cygwin/version.h>
13713 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13720 $EGREP "Lucky user" >/dev/null 2>&1; then :
13721 gl_cv_func_memmem_works_fast="guessing yes"
13723 gl_cv_func_memmem_works_fast="guessing no"
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13732 #include <signal.h> /* for signal */
13733 #include <string.h> /* for memmem */
13734 #include <stdlib.h> /* for malloc */
13735 #include <unistd.h> /* for alarm */
13736 static void quit (int sig) { exit (sig + 128); }
13743 size_t m = 1000000;
13744 char *haystack = (char *) malloc (2 * m + 1);
13745 char *needle = (char *) malloc (m + 1);
13746 /* Failure to compile this test due to missing alarm is okay,
13747 since all such platforms (mingw) also lack memmem. */
13748 signal (SIGALRM, quit);
13750 /* Check for quadratic performance. */
13751 if (haystack && needle)
13753 memset (haystack, 'A', 2 * m);
13754 haystack[2 * m] = 'B';
13755 memset (needle, 'A', m);
13757 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13766 if ac_fn_c_try_run "$LINENO"; then :
13767 gl_cv_func_memmem_works_fast=yes
13769 gl_cv_func_memmem_works_fast=no
13771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13772 conftest.$ac_objext conftest.beam conftest.$ac_ext
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13778 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13779 case "$gl_cv_func_memmem_works_fast" in
13787 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13796 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13803 for ac_func in memmem
13805 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13806 if test "x$ac_cv_func_memmem" = x""yes; then :
13807 cat >>confdefs.h <<_ACEOF
13808 #define HAVE_MEMMEM 1
13814 if test $ac_cv_func_memmem = yes; then
13820 if test $ac_cv_have_decl_memmem = no; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13824 $as_echo_n "checking whether memmem works... " >&6; }
13825 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13828 if test "$cross_compiling" = yes; then :
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 #ifdef __GNU_LIBRARY__
13833 #include <features.h>
13834 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13835 || __GLIBC_MINOR__ > 12)) \
13836 || (__GLIBC__ > 2)) \
13837 || defined __UCLIBC__
13840 #elif defined __CYGWIN__
13841 #include <cygwin/version.h>
13842 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13851 $EGREP "Lucky user" >/dev/null 2>&1; then :
13852 gl_cv_func_memmem_works_always="guessing yes"
13854 gl_cv_func_memmem_works_always="guessing no"
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 #include <string.h> /* for memmem */
13864 #define P "_EF_BF_BD"
13865 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13866 #define NEEDLE P P P P P
13873 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13875 /* Check for empty needle behavior. */
13877 const char *haystack = "AAA";
13878 if (memmem (haystack, 3, NULL, 0) != haystack)
13887 if ac_fn_c_try_run "$LINENO"; then :
13888 gl_cv_func_memmem_works_always=yes
13890 gl_cv_func_memmem_works_always=no
13892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13893 conftest.$ac_objext conftest.beam conftest.$ac_ext
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13899 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13900 case "$gl_cv_func_memmem_works_always" in
13909 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13918 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13932 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13942 $as_echo_n "checking for ssize_t... " >&6; }
13943 if test "${gt_cv_ssize_t+set}" = set; then :
13944 $as_echo_n "(cached) " >&6
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 #include <sys/types.h>
13952 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13958 if ac_fn_c_try_compile "$LINENO"; then :
13963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13966 $as_echo "$gt_cv_ssize_t" >&6; }
13967 if test $gt_cv_ssize_t = no; then
13969 $as_echo "#define ssize_t int" >>confdefs.h
13976 # Define two additional variables used in the Makefile substitution.
13978 if test "$ac_cv_header_stdbool_h" = yes; then
13981 STDBOOL_H='stdbool.h'
13984 if test -n "$STDBOOL_H"; then
13985 GL_GENERATE_STDBOOL_H_TRUE=
13986 GL_GENERATE_STDBOOL_H_FALSE='#'
13988 GL_GENERATE_STDBOOL_H_TRUE='#'
13989 GL_GENERATE_STDBOOL_H_FALSE=
13993 if test "$ac_cv_type__Bool" = yes; then
14004 if test $gt_cv_c_wchar_t = no; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14009 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14010 if test "${gl_cv_decl_null_works+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015 #include <stddef.h>
14016 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 gl_cv_decl_null_works=yes
14029 gl_cv_decl_null_works=no
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14034 $as_echo "$gl_cv_decl_null_works" >&6; }
14035 if test $gl_cv_decl_null_works = no; then
14040 if test -n "$STDDEF_H"; then
14041 GL_GENERATE_STDDEF_H_TRUE=
14042 GL_GENERATE_STDDEF_H_FALSE='#'
14044 GL_GENERATE_STDDEF_H_TRUE='#'
14045 GL_GENERATE_STDDEF_H_FALSE=
14048 if test -n "$STDDEF_H"; then
14057 if test $gl_cv_have_include_next = yes; then
14058 gl_cv_next_stddef_h='<'stddef.h'>'
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14061 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14062 if test "${gl_cv_next_stddef_h+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068 #include <stddef.h>
14072 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14073 *) gl_absname_cpp="$ac_cpp" ;;
14078 gl_dirsep_regex='[/\\]'
14081 gl_dirsep_regex='\/'
14084 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14086 gl_header_literal_regex=`echo 'stddef.h' \
14087 |
sed -e "$gl_make_literal_regex_sed"`
14088 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14089 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14094 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14095 sed -n "$gl_absolute_header_sed"`'"'
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14100 $as_echo "$gl_cv_next_stddef_h" >&6; }
14102 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14104 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14105 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14106 gl_next_as_first_directive='<'stddef.h'>'
14108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14109 gl_next_as_first_directive=$gl_cv_next_stddef_h
14111 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14124 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
14126 $as_echo_n "checking for working strerror function... " >&6; }
14127 if test "${gl_cv_func_working_strerror+set}" = set; then :
14128 $as_echo_n "(cached) " >&6
14130 if test "$cross_compiling" = yes; then :
14132 # Guess yes on glibc systems.
14133 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
14134 # If we don't know, assume the worst.
14135 *) gl_cv_func_working_strerror="guessing no" ;;
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 #include <string.h>
14146 if (!*strerror (-2)) return 1;
14151 if ac_fn_c_try_run "$LINENO"; then :
14152 gl_cv_func_working_strerror=yes
14154 gl_cv_func_working_strerror=no
14156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14157 conftest.$ac_objext conftest.beam conftest.$ac_ext
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
14163 $as_echo "$gl_cv_func_working_strerror" >&6; }
14164 case "$gl_cv_func_working_strerror" in
14175 if test $REPLACE_STRERROR = 1; then
14184 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
14189 cat >>confdefs.h <<_ACEOF
14190 #define GNULIB_STRERROR 1
14205 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
14211 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
14220 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
14226 if test $ac_cv_header_sys_socket_h != yes; then
14227 for ac_header in winsock2.h
14229 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14230 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_WINSOCK2_H 1
14240 if test "$ac_cv_header_winsock2_h" = yes; then
14242 UNISTD_H_HAVE_WINSOCK2_H=1
14243 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
14255 if test $REPLACE_STRSTR = 0; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
14257 $as_echo_n "checking whether strstr works in linear time... " >&6; }
14258 if test "${gl_cv_func_strstr_linear+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14261 if test "$cross_compiling" = yes; then :
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14265 #include <features.h>
14266 #ifdef __GNU_LIBRARY__
14267 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14268 && !(defined __i386__ || defined __x86_64__) \
14269 && !defined __UCLIBC__
14274 #include <cygwin/version.h>
14275 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14282 $EGREP "Lucky user" >/dev/null 2>&1; then :
14283 gl_cv_func_strstr_linear="guessing yes"
14285 gl_cv_func_strstr_linear="guessing no"
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14294 #include <signal.h> /* for signal */
14295 #include <string.h> /* for strstr */
14296 #include <stdlib.h> /* for malloc */
14297 #include <unistd.h> /* for alarm */
14298 static void quit (int sig) { exit (sig + 128); }
14305 size_t m = 1000000;
14306 char *haystack = (char *) malloc (2 * m + 2);
14307 char *needle = (char *) malloc (m + 2);
14308 /* Failure to compile this test due to missing alarm is okay,
14309 since all such platforms (mingw) also have quadratic strstr. */
14310 signal (SIGALRM, quit);
14312 /* Check for quadratic performance. */
14313 if (haystack && needle)
14315 memset (haystack, 'A', 2 * m);
14316 haystack[2 * m] = 'B';
14317 haystack[2 * m + 1] = 0;
14318 memset (needle, 'A', m);
14321 if (!strstr (haystack, needle))
14330 if ac_fn_c_try_run "$LINENO"; then :
14331 gl_cv_func_strstr_linear=yes
14333 gl_cv_func_strstr_linear=no
14335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14336 conftest.$ac_objext conftest.beam conftest.$ac_ext
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14342 $as_echo "$gl_cv_func_strstr_linear" >&6; }
14343 case "$gl_cv_func_strstr_linear" in
14351 if test $REPLACE_STRSTR = 1; then
14360 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14366 if test "$gl_cv_func_memchr_works" != yes; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14370 $as_echo_n "checking whether strstr works... " >&6; }
14371 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14374 if test "$cross_compiling" = yes; then :
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14378 #ifdef __GNU_LIBRARY__
14379 #include <features.h>
14380 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14381 || defined __UCLIBC__
14384 #elif defined __CYGWIN__
14385 #include <cygwin/version.h>
14386 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14395 $EGREP "Lucky user" >/dev/null 2>&1; then :
14396 gl_cv_func_strstr_works_always="guessing yes"
14398 gl_cv_func_strstr_works_always="guessing no"
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14407 #include <string.h> /* for strstr */
14408 #define P "_EF_BF_BD"
14409 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14410 #define NEEDLE P P P P P
14415 return !!strstr (HAYSTACK, NEEDLE);
14421 if ac_fn_c_try_run "$LINENO"; then :
14422 gl_cv_func_strstr_works_always=yes
14424 gl_cv_func_strstr_works_always=no
14426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14427 conftest.$ac_objext conftest.beam conftest.$ac_ext
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14433 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14434 case "$gl_cv_func_strstr_works_always" in
14442 if test $REPLACE_STRSTR = 1; then
14451 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14465 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
14483 if test $gl_cv_have_include_next = yes; then
14484 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14487 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14488 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14492 if test $ac_cv_header_sys_stat_h = yes; then
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 #include <sys/stat.h>
14501 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14502 *) gl_absname_cpp="$ac_cpp" ;;
14507 gl_dirsep_regex='[/\\]'
14510 gl_dirsep_regex='\/'
14513 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14515 gl_header_literal_regex=`echo 'sys/stat.h' \
14516 |
sed -e "$gl_make_literal_regex_sed"`
14517 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14518 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14523 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14524 sed -n "$gl_absolute_header_sed"`'"'
14526 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14532 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
14534 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
14536 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14538 gl_next_as_first_directive='<'sys/stat.h'>'
14540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14541 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
14543 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
14552 WINDOWS_64_BIT_ST_SIZE=0
14555 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
14557 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
14561 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
14562 #include <sys/stat.h>
14564 if test "x$ac_cv_type_nlink_t" = x""yes; then :
14568 $as_echo "#define nlink_t int" >>confdefs.h
14574 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
14575 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14577 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14578 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14579 $as_echo_n "(cached) " >&6
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 #include <sys/stat.h>
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 eval "$as_gl_Symbol=yes"
14597 eval "$as_gl_Symbol=no"
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601 eval ac_res=\$$as_gl_Symbol
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14603 $as_echo "$ac_res" >&6; }
14604 eval as_val=\$$as_gl_Symbol
14605 if test "x$as_val" = x""yes; then :
14606 cat >>confdefs.h <<_ACEOF
14607 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14610 eval ac_cv_have_decl_$gl_func=yes
14627 if test $gl_cv_have_include_next = yes; then
14628 gl_cv_next_sys_types_h='<'sys/types.h'>'
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14631 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14632 if test "${gl_cv_next_sys_types_h+set}" = set; then :
14633 $as_echo_n "(cached) " >&6
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 #include <sys/types.h>
14642 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14643 *) gl_absname_cpp="$ac_cpp" ;;
14648 gl_dirsep_regex='[/\\]'
14651 gl_dirsep_regex='\/'
14654 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14656 gl_header_literal_regex=`echo 'sys/types.h' \
14657 |
sed -e "$gl_make_literal_regex_sed"`
14658 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14659 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14664 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14665 sed -n "$gl_absolute_header_sed"`'"'
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14670 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14672 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14674 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14676 gl_next_as_first_directive='<'sys/types.h'>'
14678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14679 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14681 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14709 if test $gl_cv_have_include_next = yes; then
14710 gl_cv_next_unistd_h='<'unistd.h'>'
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14713 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14714 if test "${gl_cv_next_unistd_h+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14718 if test $ac_cv_header_unistd_h = yes; then
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 #include <unistd.h>
14727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14728 *) gl_absname_cpp="$ac_cpp" ;;
14733 gl_dirsep_regex='[/\\]'
14736 gl_dirsep_regex='\/'
14739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14741 gl_header_literal_regex=`echo 'unistd.h' \
14742 |
sed -e "$gl_make_literal_regex_sed"`
14743 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14749 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14750 sed -n "$gl_absolute_header_sed"`'"'
14752 gl_cv_next_unistd_h='<'unistd.h'>'
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14758 $as_echo "$gl_cv_next_unistd_h" >&6; }
14760 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14762 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14764 gl_next_as_first_directive='<'unistd.h'>'
14766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14767 gl_next_as_first_directive=$gl_cv_next_unistd_h
14769 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14774 if test $ac_cv_header_unistd_h = yes; then
14786 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
14787 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14789 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14790 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14791 $as_echo_n "(cached) " >&6
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14797 # include <unistd.h>
14799 /* Some systems declare various items in the wrong headers. */
14800 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14801 # include <fcntl.h>
14802 # include <stdio.h>
14803 # include <stdlib.h>
14804 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14818 if ac_fn_c_try_compile "$LINENO"; then :
14819 eval "$as_gl_Symbol=yes"
14821 eval "$as_gl_Symbol=no"
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825 eval ac_res=\$$as_gl_Symbol
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14827 $as_echo "$ac_res" >&6; }
14828 eval as_val=\$$as_gl_Symbol
14829 if test "x$as_val" = x""yes; then :
14830 cat >>confdefs.h <<_ACEOF
14831 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14834 eval ac_cv_have_decl_$gl_func=yes
14851 if test $gl_cv_have_include_next = yes; then
14852 gl_cv_next_wchar_h='<'wchar.h'>'
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14855 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14856 if test "${gl_cv_next_wchar_h+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14860 if test $ac_cv_header_wchar_h = yes; then
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14869 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14870 *) gl_absname_cpp="$ac_cpp" ;;
14875 gl_dirsep_regex='[/\\]'
14878 gl_dirsep_regex='\/'
14881 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14883 gl_header_literal_regex=`echo 'wchar.h' \
14884 |
sed -e "$gl_make_literal_regex_sed"`
14885 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14886 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14891 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14892 sed -n "$gl_absolute_header_sed"`'"'
14894 gl_cv_next_wchar_h='<'wchar.h'>'
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14900 $as_echo "$gl_cv_next_wchar_h" >&6; }
14902 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14904 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14906 gl_next_as_first_directive='<'wchar.h'>'
14908 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14909 gl_next_as_first_directive=$gl_cv_next_wchar_h
14911 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14916 if test $ac_cv_header_wchar_h = yes; then
14926 if test $gt_cv_c_wint_t = yes; then
14934 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
14935 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14937 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14938 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14939 $as_echo_n "(cached) " >&6
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14944 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14946 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14947 included before <wchar.h>. */
14948 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14949 # include <stddef.h>
14950 # include <stdio.h>
14964 if ac_fn_c_try_compile "$LINENO"; then :
14965 eval "$as_gl_Symbol=yes"
14967 eval "$as_gl_Symbol=no"
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971 eval ac_res=\$$as_gl_Symbol
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14973 $as_echo "$ac_res" >&6; }
14974 eval as_val=\$$as_gl_Symbol
14975 if test "x$as_val" = x""yes; then :
14976 cat >>confdefs.h <<_ACEOF
14977 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14980 eval ac_cv_have_decl_$gl_func=yes
14990 if test $ac_cv_func_iswcntrl = yes; then
14998 if test $gt_cv_c_wint_t = yes; then
15014 if test $gl_cv_have_include_next = yes; then
15015 gl_cv_next_wctype_h='<'wctype.h'>'
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
15018 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
15019 if test "${gl_cv_next_wctype_h+set}" = set; then :
15020 $as_echo_n "(cached) " >&6
15023 if test $ac_cv_header_wctype_h = yes; then
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #include <wctype.h>
15032 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15033 *) gl_absname_cpp="$ac_cpp" ;;
15038 gl_dirsep_regex='[/\\]'
15041 gl_dirsep_regex='\/'
15044 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15046 gl_header_literal_regex=`echo 'wctype.h' \
15047 |
sed -e "$gl_make_literal_regex_sed"`
15048 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15049 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15054 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15055 sed -n "$gl_absolute_header_sed"`'"'
15057 gl_cv_next_wctype_h='<'wctype.h'>'
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
15063 $as_echo "$gl_cv_next_wctype_h" >&6; }
15065 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
15067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15069 gl_next_as_first_directive='<'wctype.h'>'
15071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15072 gl_next_as_first_directive=$gl_cv_next_wctype_h
15074 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
15079 if test $ac_cv_header_wctype_h = yes; then
15080 if test $ac_cv_func_iswcntrl = yes; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
15082 $as_echo_n "checking whether iswcntrl works... " >&6; }
15083 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
15084 $as_echo_n "(cached) " >&6
15087 if test "$cross_compiling" = yes; then :
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #include <stdlib.h>
15091 #if __GNU_LIBRARY__ == 1
15092 Linux libc5 i18n is broken.
15102 if ac_fn_c_try_compile "$LINENO"; then :
15103 gl_cv_func_iswcntrl_works="guessing yes"
15105 gl_cv_func_iswcntrl_works="guessing no"
15107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15113 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15114 included before <wchar.h>.
15115 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15116 must be included before <wchar.h>. */
15117 #include <stddef.h>
15121 #include <wctype.h>
15122 int main () { return iswprint ('x') == 0; }
15125 if ac_fn_c_try_run "$LINENO"; then :
15126 gl_cv_func_iswcntrl_works=yes
15128 gl_cv_func_iswcntrl_works=no
15130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15131 conftest.$ac_objext conftest.beam conftest.$ac_ext
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
15137 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
15145 case "$gl_cv_func_iswcntrl_works" in
15146 *yes) REPLACE_ISWCNTRL=0 ;;
15147 *) REPLACE_ISWCNTRL=1 ;;
15151 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
15155 if test $REPLACE_ISWCNTRL = 1; then
15158 for ac_func in towlower
15160 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
15161 if test "x$ac_cv_func_towlower" = x""yes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_TOWLOWER 1
15169 if test $ac_cv_func_towlower = yes; then
15172 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15173 included before <wchar.h>.
15174 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15175 must be included before <wchar.h>. */
15176 #include <stddef.h>
15181 # include <wctype.h>
15185 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
15191 cat >>confdefs.h <<_ACEOF
15192 #define HAVE_DECL_TOWLOWER $ac_have_decl
15195 if test $ac_cv_have_decl_towlower = yes; then
15204 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
15209 $as_echo_n "checking for wctype_t... " >&6; }
15210 if test "${gl_cv_type_wctype_t+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15216 included before <wchar.h>.
15217 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15218 must be included before <wchar.h>. */
15219 #include <stddef.h>
15224 # include <wctype.h>
15236 if ac_fn_c_try_compile "$LINENO"; then :
15237 gl_cv_type_wctype_t=yes
15239 gl_cv_type_wctype_t=no
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
15245 $as_echo "$gl_cv_type_wctype_t" >&6; }
15246 if test $gl_cv_type_wctype_t = no; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
15251 $as_echo_n "checking for wctrans_t... " >&6; }
15252 if test "${gl_cv_type_wctrans_t+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15258 included before <wchar.h>.
15259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15260 must be included before <wchar.h>. */
15261 #include <stddef.h>
15265 #include <wctype.h>
15276 if ac_fn_c_try_compile "$LINENO"; then :
15277 gl_cv_type_wctrans_t=yes
15279 gl_cv_type_wctrans_t=no
15281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
15285 $as_echo "$gl_cv_type_wctrans_t" >&6; }
15286 if test $gl_cv_type_wctrans_t = no; then
15291 for gl_func in wctype iswctype wctrans towctrans ; do
15292 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15294 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15295 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15296 $as_echo_n "(cached) " >&6
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15304 included before <wchar.h>. */
15305 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15306 # include <stddef.h>
15307 # include <stdio.h>
15309 # include <wchar.h>
15311 #include <wctype.h>
15322 if ac_fn_c_try_compile "$LINENO"; then :
15323 eval "$as_gl_Symbol=yes"
15325 eval "$as_gl_Symbol=no"
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15329 eval ac_res=\$$as_gl_Symbol
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15331 $as_echo "$ac_res" >&6; }
15332 eval as_val=\$$as_gl_Symbol
15333 if test "x$as_val" = x""yes; then :
15334 cat >>confdefs.h <<_ACEOF
15335 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
15338 eval ac_cv_have_decl_$gl_func=yes
15343 # End of code from modules
15364 gl_source_base='tests'
15365 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL
=C
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL
=C
sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15367 gl_module_indicator_condition=$gltests_WITNESS
15377 LIBGNU_LIBDEPS="$gl_libdeps"
15379 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15383 # We don't use automake, but gnulib does. This line lets us generate
15385 am__api_version='1.11'
15387 # Find a good install program. We prefer a C program (faster),
15388 # so one script is as good as another. But avoid the broken or
15389 # incompatible versions:
15390 # SysV /etc/install, /usr/sbin/install
15391 # SunOS /usr/etc/install
15392 # IRIX /sbin/install
15394 # AmigaOS /C/install, which installs bootblocks on floppy discs
15395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15398 # OS/2's system install, which has a completely different semantic
15399 # ./install, which can be erroneously created by make from ./install.sh.
15400 # Reject install programs that cannot install multiple files.
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15402 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15403 if test -z "$INSTALL"; then
15404 if test "${ac_cv_path_install+set}" = set; then :
15405 $as_echo_n "(cached) " >&6
15407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408 for as_dir in $PATH
15411 test -z "$as_dir" && as_dir=.
15412 # Account for people who put trailing slashes in PATH elements.
15413 case $as_dir/ in #((
15414 ./ | .// | /[cC]/* | \
15415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15416 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15419 # OSF1 and SCO ODT 3.0 have their own names for install.
15420 # Don't use installbsd from OSF since it installs stuff as root
15422 for ac_prog in ginstall scoinst install; do
15423 for ac_exec_ext in '' $ac_executable_extensions; do
15424 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15425 if test $ac_prog = install &&
15426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15427 # AIX install. It has an incompatible calling convention.
15429 elif test $ac_prog = install &&
15430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15431 # program-specific install script used by HP pwplus--don't use.
15434 rm -rf conftest.one conftest.two conftest.dir
15435 echo one > conftest.one
15436 echo two > conftest.two
15438 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15439 test -s conftest.one && test -s conftest.two &&
15440 test -s conftest.dir/conftest.one &&
15441 test -s conftest.dir/conftest.two
15443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15456 rm -rf conftest.one conftest.two conftest.dir
15459 if test "${ac_cv_path_install+set}" = set; then
15460 INSTALL=$ac_cv_path_install
15462 # As a last resort, use the slow shell script. Don't cache a
15463 # value for INSTALL within a source directory, because that will
15464 # break other packages using the cache if that directory is
15465 # removed, or if the value is a relative name.
15466 INSTALL=$ac_install_sh
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15470 $as_echo "$INSTALL" >&6; }
15472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15473 # It thinks the first close brace ends the variable substitution.
15474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15481 $as_echo_n "checking whether build environment is sane... " >&6; }
15484 echo timestamp > conftest.file
15485 # Reject unsafe characters in $srcdir or the absolute working directory
15486 # name. Accept space and tab only in the latter.
15490 *[\\\"\#\$\&\'\`$am_lf]*)
15491 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
15494 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
15495 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
15498 # Do `set' in a subshell so we don't clobber the current shell's
15499 # arguments. Must try -L first in case configure is actually a
15500 # symlink; some systems play weird games with the mod time of symlinks
15501 # (eg FreeBSD returns the mod time of the symlink's containing
15504 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15505 if test "$*" = "X"; then
15507 set X
`ls -t "$srcdir/configure" conftest.file`
15509 rm -f conftest.
file
15510 if test "$*" != "X $srcdir/configure conftest.file" \
15511 && test "$*" != "X conftest.file $srcdir/configure"; then
15513 # If neither matched, then we have a broken ls. This can happen
15514 # if, for instance, CONFIG_SHELL is bash and it inherits a
15515 # broken ls alias from the environment. This has actually
15516 # happened. Such a system could not be considered "sane".
15517 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
15518 alias in your environment" "$LINENO" 5
15521 test "$2" = conftest.
file
15527 as_fn_error
"newly created file is older than distributed files!
15528 Check your system clock" "$LINENO" 5
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15531 $as_echo "yes" >&6; }
15532 test "$program_prefix" != NONE
&&
15533 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
15534 # Use a double $ so make ignores it.
15535 test "$program_suffix" != NONE
&&
15536 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
15537 # Double any \ or $.
15538 # By default was `s,x,x', remove it if useless.
15539 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
15540 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
15542 # expand $ac_aux_dir to an absolute path
15543 am_aux_dir
=`cd $ac_aux_dir && pwd`
15545 if test x
"${MISSING+set}" != xset
; then
15546 case $am_aux_dir in
15548 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
15550 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
15553 # Use eval to expand $SHELL
15554 if eval "$MISSING --run true"; then
15555 am_missing_run
="$MISSING --run "
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15559 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15562 if test x
"${install_sh}" != xset
; then
15563 case $am_aux_dir in
15565 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
15567 install_sh
="\${SHELL} $am_aux_dir/install-sh"
15571 # Installed binaries are usually stripped using `strip' when the user
15572 # run `make install-strip'. However `strip' might not be the right
15573 # tool to use in cross-compilation environments, therefore Automake
15574 # will honor the `STRIP' environment variable to overrule this program.
15575 if test "$cross_compiling" != no
; then
15576 if test -n "$ac_tool_prefix"; then
15577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15578 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15580 $as_echo_n "checking for $ac_word... " >&6; }
15581 if test "${ac_cv_prog_STRIP+set}" = set; then :
15582 $as_echo_n "(cached) " >&6
15584 if test -n "$STRIP"; then
15585 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
15587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15588 for as_dir
in $PATH
15591 test -z "$as_dir" && as_dir
=.
15592 for ac_exec_ext
in '' $ac_executable_extensions; do
15593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15594 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
15595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15604 STRIP
=$ac_cv_prog_STRIP
15605 if test -n "$STRIP"; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15607 $as_echo "$STRIP" >&6; }
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15610 $as_echo "no" >&6; }
15615 if test -z "$ac_cv_prog_STRIP"; then
15617 # Extract the first word of "strip", so it can be a program name with args.
15618 set dummy strip
; ac_word
=$2
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15620 $as_echo_n "checking for $ac_word... " >&6; }
15621 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15622 $as_echo_n "(cached) " >&6
15624 if test -n "$ac_ct_STRIP"; then
15625 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
15627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15628 for as_dir
in $PATH
15631 test -z "$as_dir" && as_dir
=.
15632 for ac_exec_ext
in '' $ac_executable_extensions; do
15633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15634 ac_cv_prog_ac_ct_STRIP
="strip"
15635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15644 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
15645 if test -n "$ac_ct_STRIP"; then
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15647 $as_echo "$ac_ct_STRIP" >&6; }
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 $as_echo "no" >&6; }
15653 if test "x$ac_ct_STRIP" = x
; then
15656 case $cross_compiling:$ac_tool_warned in
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15660 ac_tool_warned
=yes ;;
15665 STRIP
="$ac_cv_prog_STRIP"
15669 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
15673 [\\/$
]* | ?
:[\\/]*) ;;
15674 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
15677 for ac_prog
in gawk mawk nawk
awk
15679 # Extract the first word of "$ac_prog", so it can be a program name with args.
15680 set dummy
$ac_prog; ac_word
=$2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15682 $as_echo_n "checking for $ac_word... " >&6; }
15683 if test "${ac_cv_prog_AWK+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15686 if test -n "$AWK"; then
15687 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
15689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15690 for as_dir
in $PATH
15693 test -z "$as_dir" && as_dir
=.
15694 for ac_exec_ext
in '' $ac_executable_extensions; do
15695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15696 ac_cv_prog_AWK
="$ac_prog"
15697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15706 AWK
=$ac_cv_prog_AWK
15707 if test -n "$AWK"; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15709 $as_echo "$AWK" >&6; }
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712 $as_echo "no" >&6; }
15716 test -n "$AWK" && break
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15722 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15723 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15724 $as_echo_n "(cached) " >&6
15726 cat >conftest.
make <<\_ACEOF
15729 @
echo '@@@%%%=$(MAKE)=@@@%%%'
15731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15733 *@@@
%%%=?
*=@@@
%%%*)
15734 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
15736 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
15738 rm -f conftest.
make
15740 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15742 $as_echo "yes" >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15747 SET_MAKE
="MAKE=${MAKE-make}"
15750 rm -rf .tst
2>/dev
/null
15751 mkdir .tst
2>/dev
/null
15752 if test -d .tst
; then
15757 rmdir .tst
2>/dev
/null
15759 DEPDIR
="${am__leading_dot}deps"
15761 ac_config_commands
="$ac_config_commands depfiles"
15764 am_make
=${MAKE-make}
15765 cat > confinc
<< 'END'
15767 @
echo this is the am__doit target
15770 # If we don't find an include directive, just comment out the code.
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15772 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15776 # First try GNU make style include.
15777 echo "include confinc" > confmf
15778 # Ignore all kinds of additional output from `make'.
15779 case `$am_make -s -f confmf 2> /dev/null` in #(
15780 *the\ am__doit\ target
*)
15781 am__include
=include
15786 # Now try BSD make style include.
15787 if test "$am__include" = "#"; then
15788 echo '.include "confinc"' > confmf
15789 case `$am_make -s -f confmf 2> /dev/null` in #(
15790 *the\ am__doit\ target
*)
15791 am__include
=.include
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15800 $as_echo "$_am_result" >&6; }
15801 rm -f confinc confmf
15803 # Check whether --enable-dependency-tracking was given.
15804 if test "${enable_dependency_tracking+set}" = set; then :
15805 enableval
=$enable_dependency_tracking;
15808 if test "x$enable_dependency_tracking" != xno
; then
15809 am_depcomp
="$ac_aux_dir/depcomp"
15812 if test "x$enable_dependency_tracking" != xno; then
15821 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15822 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15823 # is not polluted with repeated "-I."
15824 am__isrc
=' -I$(srcdir)'
15825 # test to see if srcdir already configured
15826 if test -f $srcdir/config.status
; then
15827 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15831 # test whether we have cygpath
15832 if test -z "$CYGPATH_W"; then
15833 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
15834 CYGPATH_W
='cygpath -w'
15841 # Define the identity of the package.
15843 VERSION
=UNUSED-VERSION
15846 # Some tools Automake needs.
15848 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15851 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
15854 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15857 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
15860 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
15862 # We need awk for the "check" target. The system "awk" is bad on
15864 # Always define AMTAR for backward compatibility.
15866 AMTAR
=${AMTAR-"${am_missing_run}tar"}
15868 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
15873 depcc
="$CC" am_compiler_list
=
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15876 $as_echo_n "checking dependency style of $depcc... " >&6; }
15877 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15878 $as_echo_n "(cached) " >&6
15880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15881 # We make a subdir and do the tests there. Otherwise we can end up
15882 # making bogus files that we don't know about and never remove. For
15883 # instance it was reported that on HP-UX the gcc test will end up
15884 # making a dummy file named `D' -- because `-MD' means `put the output
15887 # Copy depcomp to subdir because otherwise we won't find it if we're
15888 # using a relative directory.
15889 cp "$am_depcomp" conftest.dir
15891 # We will build objects and dependencies in a subdirectory because
15892 # it helps to detect inapplicable dependency modes. For instance
15893 # both Tru64's cc and ICC support -MD to output dependencies as a
15894 # side effect of compilation, but ICC will put the dependencies in
15895 # the current directory while Tru64 will put them in the object
15899 am_cv_CC_dependencies_compiler_type
=none
15900 if test "$am_compiler_list" = ""; then
15901 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15903 am__universal
=false
15904 case " $depcc " in #(
15905 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
15908 for depmode
in $am_compiler_list; do
15909 # Setup a source with many dependencies, because some compilers
15910 # like to wrap large dependency lists on column 80 (with \), and
15911 # we should not choose a depcomp mode which is confused by this.
15913 # We need to recreate these files for each test, as the compiler may
15914 # overwrite some of them when testing with obscure command lines.
15915 # This happens at least with the AIX C compiler.
15917 for i
in 1 2 3 4 5 6; do
15918 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
15919 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15920 # Solaris 8's {/usr,}/bin/sh.
15921 touch sub
/conftst
$i.h
15923 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15926 # mode. It turns out that the SunPro C++ compiler does not properly
15927 # handle `-M -o', and we need to detect this. Also, some Intel
15928 # versions had trouble with output in subdirs
15929 am__obj
=sub
/conftest.
${OBJEXT-o}
15930 am__minus_obj
="-o $am__obj"
15933 # This depmode causes a compiler race in universal mode.
15934 test "$am__universal" = false ||
continue
15937 # after this tag, mechanisms are not by side-effect, so they'll
15938 # only be used when explicitly requested
15939 if test "x$enable_dependency_tracking" = xyes
; then
15945 msvisualcpp | msvcmsys
)
15946 # This compiler won't grok `-c -o', but also, the minuso test has
15947 # not run yet. These depmodes are late enough in the game, and
15948 # so weak that their functioning should not be impacted.
15949 am__obj
=conftest.
${OBJEXT-o}
15954 if depmode
=$depmode \
15955 source=sub
/conftest.c object
=$am__obj \
15956 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
15957 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
15958 >/dev
/null
2>conftest.err
&&
15959 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
15960 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
15961 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
15962 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
15963 # icc doesn't choke on unknown options, it will just issue warnings
15964 # or remarks (even with -Werror). So we grep stderr for any message
15965 # that says an option was ignored or not supported.
15966 # When given -MP, icc 7.0 and 7.1 complain thusly:
15967 # icc: Command line warning: ignoring option '-M'; no argument required
15968 # The diagnosis changed in icc 8.0:
15969 # icc: Command line remark: option '-MP' not supported
15970 if (grep 'ignoring option' conftest.err ||
15971 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
15972 am_cv_CC_dependencies_compiler_type
=$depmode
15979 rm -rf conftest.dir
15981 am_cv_CC_dependencies_compiler_type
=none
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15986 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15987 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
15990 test "x$enable_dependency_tracking" != xno \
15991 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
15992 am__fastdepCC_TRUE
=
15993 am__fastdepCC_FALSE
='#'
15995 am__fastdepCC_TRUE
='#'
15996 am__fastdepCC_FALSE
=
16002 # --------------------- #
16003 # Checks for programs. #
16004 # --------------------- #
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16008 $as_echo_n "checking whether ln -s works... " >&6; }
16010 if test "$LN_S" = "ln -s"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16012 $as_echo "yes" >&6; }
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16015 $as_echo "no, using $LN_S" >&6; }
16018 if test -n "$ac_tool_prefix"; then
16019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16020 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16022 $as_echo_n "checking for $ac_word... " >&6; }
16023 if test "${ac_cv_prog_RANLIB+set}" = set; then :
16024 $as_echo_n "(cached) " >&6
16026 if test -n "$RANLIB"; then
16027 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
16029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16030 for as_dir
in $PATH
16033 test -z "$as_dir" && as_dir
=.
16034 for ac_exec_ext
in '' $ac_executable_extensions; do
16035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16036 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
16037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16046 RANLIB
=$ac_cv_prog_RANLIB
16047 if test -n "$RANLIB"; then
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16049 $as_echo "$RANLIB" >&6; }
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16057 if test -z "$ac_cv_prog_RANLIB"; then
16058 ac_ct_RANLIB
=$RANLIB
16059 # Extract the first word of "ranlib", so it can be a program name with args.
16060 set dummy ranlib
; ac_word
=$2
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16062 $as_echo_n "checking for $ac_word... " >&6; }
16063 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
16064 $as_echo_n "(cached) " >&6
16066 if test -n "$ac_ct_RANLIB"; then
16067 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
16069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16070 for as_dir
in $PATH
16073 test -z "$as_dir" && as_dir
=.
16074 for ac_exec_ext
in '' $ac_executable_extensions; do
16075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16076 ac_cv_prog_ac_ct_RANLIB
="ranlib"
16077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16086 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
16087 if test -n "$ac_ct_RANLIB"; then
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16089 $as_echo "$ac_ct_RANLIB" >&6; }
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16095 if test "x$ac_ct_RANLIB" = x
; then
16098 case $cross_compiling:$ac_tool_warned in
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16102 ac_tool_warned
=yes ;;
16104 RANLIB
=$ac_ct_RANLIB
16107 RANLIB
="$ac_cv_prog_RANLIB"
16111 if test -n "$ac_tool_prefix"; then
16112 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16113 set dummy
${ac_tool_prefix}ar; ac_word
=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if test "${ac_cv_prog_AR+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16119 if test -n "$AR"; then
16120 ac_cv_prog_AR
="$AR" # Let the user override the test.
16122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16123 for as_dir
in $PATH
16126 test -z "$as_dir" && as_dir
=.
16127 for ac_exec_ext
in '' $ac_executable_extensions; do
16128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16129 ac_cv_prog_AR
="${ac_tool_prefix}ar"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16140 if test -n "$AR"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16142 $as_echo "$AR" >&6; }
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16150 if test -z "$ac_cv_prog_AR"; then
16152 # Extract the first word of "ar", so it can be a program name with args.
16153 set dummy
ar; ac_word
=$2
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16155 $as_echo_n "checking for $ac_word... " >&6; }
16156 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16159 if test -n "$ac_ct_AR"; then
16160 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
16162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16163 for as_dir
in $PATH
16166 test -z "$as_dir" && as_dir
=.
16167 for ac_exec_ext
in '' $ac_executable_extensions; do
16168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16169 ac_cv_prog_ac_ct_AR
="ar"
16170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16179 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
16180 if test -n "$ac_ct_AR"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16182 $as_echo "$ac_ct_AR" >&6; }
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16185 $as_echo "no" >&6; }
16188 if test "x$ac_ct_AR" = x
; then
16191 case $cross_compiling:$ac_tool_warned in
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16195 ac_tool_warned
=yes ;;
16200 AR
="$ac_cv_prog_AR"
16204 # ---------------------- #
16205 # Checks for libraries. #
16206 # ---------------------- #
16208 ac_config_files
="$ac_config_files Makefile import/Makefile"
16210 ac_config_commands
="$ac_config_commands default"
16212 cat >confcache
<<\_ACEOF
16213 # This file is a shell script that caches the results of configure
16214 # tests run on this system so they can be shared between configure
16215 # scripts and configure runs, see configure's option --config-cache.
16216 # It is not useful on other systems. If it contains results you don't
16217 # want to keep, you may remove or edit it.
16219 # config.status only pays attention to the cache file if you give it
16220 # the --recheck option to rerun configure.
16222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16224 # following values.
16228 # The following way of writing the cache mishandles newlines in values,
16229 # but we know of no workaround that is simple, portable, and efficient.
16230 # So, we kill variables containing newlines.
16231 # Ultrix sh set writes to stderr and can't be redirected directly,
16232 # and sets the high bit in the cache file unless we assign to the vars.
16234 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16235 eval ac_val
=\$
$ac_var
16239 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16243 _ | IFS | as_nl
) ;; #(
16244 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16245 *) { eval $ac_var=; unset $ac_var;} ;;
16251 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16252 *${as_nl}ac_space
=\
*)
16253 # `set' does not quote correctly, so add quotes: double-quote
16254 # substitution turns \\\\ into \\, and sed turns \\ into \.
16257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16260 # `set' quotes correctly as required by POSIX, so do not add quotes.
16261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16272 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16274 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16275 if test -w "$cache_file"; then
16276 test "x$cache_file" != "x/dev/null" &&
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16278 $as_echo "$as_me: updating cache $cache_file" >&6;}
16279 cat confcache
>$cache_file
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16287 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16288 # Let make expand exec_prefix.
16289 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16291 DEFS
=-DHAVE_CONFIG_H
16295 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16296 # 1. Remove the extension, and $U if already installed.
16297 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16298 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16300 # will be set to the directory where LIBOBJS objects are built.
16301 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16302 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16304 LIBOBJS
=$ac_libobjs
16306 LTLIBOBJS
=$ac_ltlibobjs
16309 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16310 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16313 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16314 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16317 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16318 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
16319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16321 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16322 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
16323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16325 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
16326 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
16327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
16330 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
16331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16334 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
16335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16339 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
16340 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
16341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16343 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16344 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16350 if test -n "$gl_LIBOBJS"; then
16351 # Remove the extension.
16352 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16353 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16354 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16355 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16358 gl_LIBOBJS
=$gl_libobjs
16360 gl_LTLIBOBJS
=$gl_ltlibobjs
16366 if test -n "$gltests_LIBOBJS"; then
16367 # Remove the extension.
16368 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16369 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16370 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16371 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16374 gltests_LIBOBJS
=$gltests_libobjs
16376 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16379 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16380 as_fn_error
"conditional \"AMDEP\" was never defined.
16381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16384 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16387 if test -n "$EXEEXT"; then
16389 am__EXEEXT_FALSE
='#'
16391 am__EXEEXT_TRUE
='#'
16396 : ${CONFIG_STATUS=./config.status}
16398 ac_clean_files_save
=$ac_clean_files
16399 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16401 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16403 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16405 # Generated by $as_me.
16406 # Run this file to recreate the current configuration.
16407 # Compiler output produced by configure, useful for debugging
16408 # configure, is in config.log if it exists.
16411 ac_cs_recheck=false
16414 SHELL=\${CONFIG_SHELL-$SHELL}
16417 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16418 ## -------------------- ##
16419 ## M4sh Initialization. ##
16420 ## -------------------- ##
16422 # Be more Bourne compatible
16423 DUALCASE
=1; export DUALCASE
# for MKS sh
16424 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16427 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16428 # is contrary to our usage. Disable this feature.
16429 alias -g '${1+"$@"}'='"$@"'
16430 setopt NO_GLOB_SUBST
16432 case `(set -o) 2>/dev/null` in #(
16444 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16445 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16448 # Prefer a ksh shell builtin over an external printf program on Solaris,
16449 # but without wasting forks for bash or zsh.
16450 if test -z "$BASH_VERSION$ZSH_VERSION" \
16451 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16452 as_echo='print
-r --'
16453 as_echo_n='print
-rn --'
16454 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16455 as_echo='printf %s
\n'
16456 as_echo_n='printf %s
'
16458 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16459 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16460 as_echo_n='/usr
/ucb
/echo -n'
16462 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16463 as_echo_n_body='eval
16467 expr "X$arg" : "X\\(.*\\)$as_nl";
16468 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16470 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16472 export as_echo_n_body
16473 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16475 export as_echo_body
16476 as_echo='sh
-c $as_echo_body as_echo
'
16479 # The user is always right.
16480 if test "${PATH_SEPARATOR+set}" != set; then
16482 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16483 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16490 # We need space, tab and new line, in precisely that order. Quoting is
16491 # there to prevent editors from complaining about space-tab.
16492 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16493 # splitting by setting IFS to empty value.)
16496 # Find who we are. Look in the path if we contain no directory separator.
16498 *[\\/]* ) as_myself=$0 ;;
16499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16500 for as_dir in $PATH
16503 test -z "$as_dir" && as_dir=.
16504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16510 # We did not find ourselves, most probably we were run as `sh COMMAND'
16511 # in which case we are not to be found in the path.
16512 if test "x$as_myself" = x
; then
16515 if test ! -f "$as_myself"; then
16516 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16520 # Unset variables that we do not need and which cause bugs (e.g. in
16521 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16522 # suppresses any "Segmentation fault" message there. '((' could
16523 # trigger a bug in pdksh 5.2.14.
16524 for as_var
in BASH_ENV ENV MAIL MAILPATH
16525 do eval test x\
${$as_var+set} = xset \
16526 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16539 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16542 # as_fn_error ERROR [LINENO LOG_FD]
16543 # ---------------------------------
16544 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16545 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16546 # script with status $?, using 1 if that was 0.
16549 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16551 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16552 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16554 $as_echo "$as_me: error: $1" >&2
16555 as_fn_exit
$as_status
16559 # as_fn_set_status STATUS
16560 # -----------------------
16561 # Set $? to STATUS, without forking.
16562 as_fn_set_status
()
16565 } # as_fn_set_status
16567 # as_fn_exit STATUS
16568 # -----------------
16569 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16573 as_fn_set_status
$1
16579 # Portably unset VAR.
16582 { eval $1=; unset $1;}
16584 as_unset
=as_fn_unset
16585 # as_fn_append VAR VALUE
16586 # ----------------------
16587 # Append the text in VALUE to the end of the definition contained in VAR. Take
16588 # advantage of any shell optimizations that allow amortized linear growth over
16589 # repeated appends, instead of the typical quadratic growth present in naive
16591 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16592 eval 'as_fn_append ()
16603 # as_fn_arith ARG...
16604 # ------------------
16605 # Perform arithmetic evaluation on the ARGs, and store the result in the
16606 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16607 # must be portable across $(()) and expr.
16608 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16609 eval 'as_fn_arith ()
16616 as_val
=`expr "$@" || test $? -eq 1`
16621 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16622 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16628 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16629 as_basename
=basename
16634 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16640 as_me
=`$as_basename -- "$0" ||
16641 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16642 X"$0" : 'X\(//\)$' \| \
16643 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16645 sed '/^.*\/\([^/][^/]*\)\/*$/{
16659 # Avoid depending upon Character Ranges.
16660 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16661 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16662 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16663 as_cr_digits
='0123456789'
16664 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16666 ECHO_C
= ECHO_N
= ECHO_T
=
16667 case `echo -n x` in #(((((
16669 case `echo 'xy\c'` in
16670 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16672 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16679 rm -f conf$$ conf$$.exe conf$$.
file
16680 if test -d conf$$.dir
; then
16681 rm -f conf$$.dir
/conf$$.
file
16684 mkdir conf$$.dir
2>/dev
/null
16686 if (echo >conf$$.
file) 2>/dev
/null
; then
16687 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16689 # ... but there are two gotchas:
16690 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16691 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16692 # In both cases, we have to default to `cp -p'.
16693 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16695 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16703 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16704 rmdir conf$$.dir
2>/dev
/null
16709 # Create "$as_dir" as a directory, including parents if necessary.
16714 -*) as_dir
=.
/$as_dir;;
16716 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16720 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16721 *) as_qdir
=$as_dir;;
16723 as_dirs
="'$as_qdir' $as_dirs"
16724 as_dir
=`$as_dirname -- "$as_dir" ||
16725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16726 X"$as_dir" : 'X\(//\)[^/]' \| \
16727 X"$as_dir" : 'X\(//\)$' \| \
16728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16729 $as_echo X"$as_dir" |
16730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16734 /^X\(\/\/\)[^/].*/{
16747 test -d "$as_dir" && break
16749 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16750 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16754 if mkdir
-p .
2>/dev
/null
; then
16755 as_mkdir_p
='mkdir -p "$as_dir"'
16757 test -d .
/-p && rmdir .
/-p
16761 if test -x / >/dev
/null
2>&1; then
16762 as_test_x
='test -x'
16764 if ls -dL / >/dev
/null
2>&1; then
16771 if test -d "$1"; then
16777 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16778 ???[sx]*):;;*)false;;esac;fi
16782 as_executable_p
=$as_test_x
16784 # Sed expression to map a string onto a valid CPP name.
16785 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16787 # Sed expression to map a string onto a valid variable name.
16788 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16792 ## ----------------------------------- ##
16793 ## Main body of $CONFIG_STATUS script. ##
16794 ## ----------------------------------- ##
16796 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16799 # Save the log message, to keep $0 and so on meaningful, and to
16800 # report actual input values of CONFIG_FILES etc. instead of their
16801 # values after options handling.
16803 This file was extended by $as_me, which was
16804 generated by GNU Autoconf 2.64. Invocation command line was
16806 CONFIG_FILES = $CONFIG_FILES
16807 CONFIG_HEADERS = $CONFIG_HEADERS
16808 CONFIG_LINKS = $CONFIG_LINKS
16809 CONFIG_COMMANDS = $CONFIG_COMMANDS
16812 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16817 case $ac_config_files in *"
16818 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16821 case $ac_config_headers in *"
16822 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 # Files that config.status was made for.
16828 config_files="$ac_config_files"
16829 config_headers="$ac_config_headers"
16830 config_commands="$ac_config_commands"
16834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16836 \`$as_me' instantiates files and other configuration actions
16837 from templates according to the current configuration. Unless the files
16838 and actions are specified as TAGs, all are instantiated by default.
16840 Usage: $0 [OPTION]... [TAG]...
16842 -h, --help print this help, then exit
16843 -V, --version print version number and configuration settings, then exit
16844 -q, --quiet, --silent
16845 do not print progress messages
16846 -d, --debug don't remove temporary files
16847 --recheck update $as_me by reconfiguring in the same conditions
16848 --file=FILE[:TEMPLATE]
16849 instantiate the configuration file FILE
16850 --header=FILE[:TEMPLATE]
16851 instantiate the configuration header FILE
16853 Configuration files:
16856 Configuration headers:
16859 Configuration commands:
16862 Report bugs to the package provider."
16865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16868 configured by $0, generated by GNU Autoconf 2.64,
16869 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16871 Copyright (C) 2009 Free Software Foundation, Inc.
16872 This config.status script is free software; the Free Software Foundation
16873 gives unlimited permission to copy, distribute and modify it."
16880 test -n "\$AWK" || AWK=awk
16883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16884 # The default lists apply if the user does not specify any file.
16890 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16891 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16902 # Handling of the options.
16903 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16905 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16906 $as_echo "$ac_cs_version"; exit ;;
16907 --debug |
--debu |
--deb |
--de |
--d |
-d )
16909 --file |
--fil |
--fi |
--f )
16912 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16914 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16915 ac_need_defaults
=false
;;
16916 --header |
--heade |
--head |
--hea )
16919 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16921 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16922 ac_need_defaults
=false
;;
16924 # Conflict between --help and --header
16925 as_fn_error
"ambiguous option: \`$1'
16926 Try \`$0 --help' for more information.";;
16927 --help |
--hel |
-h )
16928 $as_echo "$ac_cs_usage"; exit ;;
16929 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16930 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16933 # This is an error.
16934 -*) as_fn_error
"unrecognized option: \`$1'
16935 Try \`$0 --help' for more information." ;;
16937 *) as_fn_append ac_config_targets
" $1"
16938 ac_need_defaults
=false
;;
16944 ac_configure_extra_args
=
16946 if $ac_cs_silent; then
16948 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16953 if \$ac_cs_recheck; then
16954 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16956 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16957 CONFIG_SHELL='$SHELL'
16958 export CONFIG_SHELL
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16967 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16968 ## Running $as_me. ##
16974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16978 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16984 # Handling of arguments.
16985 for ac_config_target
in $ac_config_targets
16987 case $ac_config_target in
16988 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16989 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16990 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16991 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
16992 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16994 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16999 # If the user did not use the arguments to specify the items to instantiate,
17000 # then the envvar interface is used. Set only those that are not.
17001 # We use the long form for the default assignment because of an extremely
17002 # bizarre bug on SunOS 4.1.3.
17003 if $ac_need_defaults; then
17004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17009 # Have a temporary directory for convenience. Make it in the build tree
17010 # simply because there is no reason against having it here, and in addition,
17011 # creating and moving files from /tmp can sometimes cause problems.
17012 # Hook for its removal unless debugging.
17013 # Note that there is a small window in which the directory will not be cleaned:
17014 # after its creation but before its name has been assigned to `$tmp'.
17018 trap 'exit_status=$?
17019 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17021 trap 'as_fn_exit 1' 1 2 13 15
17023 # Create a (secure) tmp directory for tmp files.
17026 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17027 test -n "$tmp" && test -d "$tmp"
17030 tmp
=.
/conf$$
-$RANDOM
17031 (umask 077 && mkdir
"$tmp")
17032 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17034 # Set up the scripts for CONFIG_FILES section.
17035 # No need to generate them if there are no CONFIG_FILES.
17036 # This happens for instance with `./config.status config.h'.
17037 if test -n "$CONFIG_FILES"; then
17040 ac_cr
=`echo X | tr X '\015'`
17041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17042 # But we know of no other shell where ac_cr would be empty at this
17043 # point, so we can use a bashism as a fallback.
17044 if test "x$ac_cr" = x
; then
17045 eval ac_cr
=\$
\'\\r
\'
17047 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17051 ac_cs_awk_cr
=$ac_cr
17054 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17059 echo "cat >conf$$subs.awk <<_ACEOF" &&
17060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17062 } >conf$$subs.sh ||
17063 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17066 for ac_last_try in false false false false false :; do
17067 . ./conf$$subs.sh ||
17068 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17070 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17071 if test $ac_delim_n = $ac_delim_num; then
17073 elif $ac_last_try; then
17074 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17076 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17079 rm -f conf$$subs.sh
17081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17082 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17086 s/^/S["/; s
/!.
*/"]=/
17096 s/\(.\{148\}\).*/\1/
17098 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17103 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17110 s/\(.\{148\}\).*/\1/
17112 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17116 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17121 ' <conf$$subs.awk | sed '
17126 ' >>$CONFIG_STATUS || ac_write_fail=1
17127 rm -f conf$$subs.awk
17128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17130 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17131 for (key in S) S_is_set[key] = 1
17137 nfields = split(line, field, "@
")
17139 len = length(field[1])
17140 for (i = 2; i < nfields; i++) {
17142 keylen = length(key)
17143 if (S_is_set[key]) {
17145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17146 len += length(value) + length(field[++i])
17157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17158 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17159 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17162 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17163 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17168 # trailing colons and then remove the whole line if VPATH becomes empty
17169 # (actually we leave an empty line to preserve line numbers).
17170 if test "x
$srcdir" = x.; then
17171 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17172 s/:*\$(srcdir):*/:/
17173 s/:*\${srcdir}:*/:/
17175 s/^\([^=]*=[ ]*\):*/\1/
17181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182 fi # test -n "$CONFIG_FILES"
17184 # Set up the scripts for CONFIG_HEADERS section.
17185 # No need to generate them if there are no CONFIG_HEADERS.
17186 # This happens for instance with `./config.status Makefile'.
17187 if test -n "$CONFIG_HEADERS"; then
17188 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17192 # Transform confdefs.h into an awk script `defines.awk', embedded as
17193 # here-document in config.status, that substitutes the proper values into
17194 # config.h.in to produce config.h.
17196 # Create a delimiter string that does not exist in confdefs.h, to ease
17197 # handling of long lines.
17199 for ac_last_try in false false :; do
17200 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17201 if test -z "$ac_t"; then
17203 elif $ac_last_try; then
17204 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17206 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17210 # For the awk script, D is an array of macro values keyed by name,
17211 # likewise P contains macro parameters if any. Preserve backslash
17212 # newline sequences.
17214 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17216 s/.\{148\}/&'"$ac_delim"'/g
17219 s/^[ ]*#[ ]*define[ ][ ]*/ /
17226 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17228 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17233 D["\
1"]=" \
3\\\\\\n
"\\/p
17235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17240 s/.\{148\}/&'"$ac_delim"'/g
17245 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17248 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17250 ' <confdefs.h | sed '
17251 s/'"$ac_delim"'/"\\\
17252 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17255 for (key in D) D_is_set[key] = 1
17258 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17260 split(line, arg, " ")
17261 if (arg[1] == "#") {
17265 defundef
= substr
(arg
[1], 2)
17268 split(mac1
, mac2
, "(") #)
17270 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17271 if (D_is_set
[macro
]) {
17272 # Preserve the white space surrounding the "#".
17273 print prefix
"define", macro P
[macro
] D
[macro
]
17276 # Replace #undef with comments. This is necessary, for example,
17277 # in the case of _POSIX_SOURCE, which is predefined and required
17278 # on some systems where configure will not decide to define it.
17279 if (defundef
== "undef") {
17280 print
"/*", prefix defundef
, macro
, "*/"
17288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17289 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17290 fi # test -n "$CONFIG_HEADERS"
17293 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17298 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17300 case $ac_mode$ac_tag in
17302 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17303 :[FH
]-) ac_tag
=-:-;;
17304 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17321 -) ac_f
="$tmp/stdin";;
17322 *) # Look for the file first in the build tree, then in the source tree
17323 # (if the path is not absolute). The absolute path cannot be DOS-style,
17324 # because $ac_f cannot contain `:'.
17328 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17330 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17332 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17333 as_fn_append ac_file_inputs
" '$ac_f'"
17336 # Let's still pretend it is `configure' which instantiates (i.e., don't
17337 # use $as_me), people would be surprised to read:
17338 # /* config.h. Generated by config.status. */
17339 configure_input
='Generated from '`
17340 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17342 if test x
"$ac_file" != x-
; then
17343 configure_input
="$ac_file. $configure_input"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17345 $as_echo "$as_me: creating $ac_file" >&6;}
17347 # Neutralize special characters interpreted by sed in replacement strings.
17348 case $configure_input in #(
17349 *\
&* |
*\|
* |
*\\* )
17350 ac_sed_conf_input
=`$as_echo "$configure_input" |
17351 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17352 *) ac_sed_conf_input
=$configure_input;;
17356 *:-:* |
*:-) cat >"$tmp/stdin" \
17357 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17362 ac_dir
=`$as_dirname -- "$ac_file" ||
17363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17364 X"$ac_file" : 'X\(//\)[^/]' \| \
17365 X"$ac_file" : 'X\(//\)$' \| \
17366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17367 $as_echo X"$ac_file" |
17368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17372 /^X\(\/\/\)[^/].*/{
17385 as_dir
="$ac_dir"; as_fn_mkdir_p
17389 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17391 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17392 # A ".." for each directory in $ac_dir_suffix.
17393 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17394 case $ac_top_builddir_sub in
17395 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17396 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17399 ac_abs_top_builddir
=$ac_pwd
17400 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17401 # for backward compatibility:
17402 ac_top_builddir
=$ac_top_build_prefix
17405 .
) # We are building in place.
17407 ac_top_srcdir
=$ac_top_builddir_sub
17408 ac_abs_top_srcdir
=$ac_pwd ;;
17409 [\\/]* | ?
:[\\/]* ) # Absolute name.
17410 ac_srcdir
=$srcdir$ac_dir_suffix;
17411 ac_top_srcdir
=$srcdir
17412 ac_abs_top_srcdir
=$srcdir ;;
17413 *) # Relative name.
17414 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17415 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17416 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17418 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17428 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17429 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17431 ac_MKDIR_P
=$MKDIR_P
17433 [\\/$
]* | ?
:[\\/]* ) ;;
17434 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17439 # If the template does not know about datarootdir, expand it.
17440 # FIXME: This hack should be removed a few years after 2.60.
17441 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17452 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17453 *datarootdir
*) ac_datarootdir_seen
=yes;;
17454 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17456 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17459 ac_datarootdir_hack='
17460 s&@datadir@&$datadir&g
17461 s&@docdir@&$docdir&g
17462 s&@infodir@&$infodir&g
17463 s&@localedir@&$localedir&g
17464 s&@mandir@&$mandir&g
17465 s&\\\${datarootdir}&$datarootdir&g' ;;
17469 # Neutralize VPATH when `$srcdir' = `.'.
17470 # Shell code in configure.ac might set extrasub.
17471 # FIXME: do we really want to maintain this feature?
17472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17473 ac_sed_extra="$ac_vpsub
17476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17478 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17479 s|@configure_input@|
$ac_sed_conf_input|
;t t
17480 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17481 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17482 s
&@srcdir@
&$ac_srcdir&;t t
17483 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17484 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17485 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17486 s
&@builddir@
&$ac_builddir&;t t
17487 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17488 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17489 s
&@INSTALL@
&$ac_INSTALL&;t t
17490 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17491 $ac_datarootdir_hack
17493 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17494 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17500 which seems to be undefined. Please make sure it is defined." >&5
17501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17502 which seems to be undefined. Please make sure it is defined." >&2;}
17506 -) cat "$tmp/out" && rm -f "$tmp/out";;
17507 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17509 || as_fn_error "could not create $ac_file" "$LINENO" 5
17515 if test x"$ac_file" != x-; then
17517 $as_echo "/* $configure_input */" \
17518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17519 } >"$tmp/config.h" \
17520 || as_fn_error "could not create $ac_file" "$LINENO" 5
17521 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17526 mv "$tmp/config.h" "$ac_file" \
17527 || as_fn_error "could not create $ac_file" "$LINENO" 5
17530 $as_echo "/* $configure_input */" \
17531 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17532 || as_fn_error "could not create -" "$LINENO" 5
17534 # Compute "$ac_file"'s index
in $config_headers.
17537 for _am_header
in $config_headers :; do
17538 case $_am_header in
17539 $_am_arg |
$_am_arg:* )
17542 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17545 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17546 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17547 X"$_am_arg" : 'X\(//\)[^/]' \| \
17548 X"$_am_arg" : 'X\(//\)$' \| \
17549 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17550 $as_echo X"$_am_arg" |
17551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17555 /^X\(\/\/\)[^/].*/{
17567 s/.*/./; q'`/stamp-h
$_am_stamp_count
17570 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17571 $as_echo "$as_me: executing $ac_file commands" >&6;}
17576 case $ac_file$ac_mode in
17577 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17578 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17579 # are listed without --file. Let's play safe and only enable the eval
17580 # if we detect the quoting.
17581 case $CONFIG_FILES in
17582 *\'*) eval set x
"$CONFIG_FILES" ;;
17583 *) set x
$CONFIG_FILES ;;
17588 # Strip MF so we end up with the name of the file.
17589 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17590 # Check whether this is an Automake generated Makefile or not.
17591 # We used to match only the files named `Makefile.in', but
17592 # some people rename them; so instead we look at the file content.
17593 # Grep'ing the first line is not enough: some people post-process
17594 # each Makefile.in and add a new line on top of each file to say so.
17595 # Grep'ing the whole file is not good either: AIX grep has a line
17596 # limit of 2048, but all sed's we know have understand at least 4000.
17597 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17598 dirpart
=`$as_dirname -- "$mf" ||
17599 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17600 X"$mf" : 'X\(//\)[^/]' \| \
17601 X"$mf" : 'X\(//\)$' \| \
17602 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17608 /^X\(\/\/\)[^/].*/{
17624 # Extract the definition of DEPDIR, am__include, and am__quote
17625 # from the Makefile without running `make'.
17626 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17627 test -z "$DEPDIR" && continue
17628 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17629 test -z "am__include" && continue
17630 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17631 # When using ansi2knr, U may be empty or an underscore; expand it
17632 U
=`sed -n 's/^U = //p' < "$mf"`
17633 # Find all dependency output files, they are included files with
17634 # $(DEPDIR) in their names. We invoke sed twice because it is the
17635 # simplest approach to changing $(DEPDIR) to its actual value in the
17637 for file in `sed -n "
17638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17640 # Make sure the directory exists.
17641 test -f "$dirpart/$file" && continue
17642 fdir
=`$as_dirname -- "$file" ||
17643 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17644 X"$file" : 'X\(//\)[^/]' \| \
17645 X"$file" : 'X\(//\)$' \| \
17646 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17647 $as_echo X"$file" |
17648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17652 /^X\(\/\/\)[^/].*/{
17665 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17666 # echo "creating $dirpart/$file"
17667 echo '# dummy' > "$dirpart/$file"
17673 case x
$CONFIG_HEADERS in
17674 xconfig.h
:config.
in)
17685 ac_clean_files
=$ac_clean_files_save
17687 test $ac_write_fail = 0 ||
17688 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17691 # configure is writing to config.log, and then calls config.status.
17692 # config.status does its own redirection, appending to config.log.
17693 # Unfortunately, on DOS this fails, as config.log is still kept open
17694 # by configure, so config.status won't be able to write to it; its
17695 # output is simply discarded. So we exec the FD to /dev/null,
17696 # effectively closing config.log, so it can be properly (re)opened and
17697 # appended to by config.status. When coming back to configure, we
17698 # need to make the FD available again.
17699 if test "$no_create" != yes; then
17701 ac_config_status_args
=
17702 test "$silent" = yes &&
17703 ac_config_status_args
="$ac_config_status_args --quiet"
17705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17708 # would make configure fail if this is the last instruction.
17709 $ac_cs_success || as_fn_exit $?
17711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17713 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}