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
719 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
721 GL_GENERATE_STDDEF_H_FALSE
722 GL_GENERATE_STDDEF_H_TRUE
727 GL_GENERATE_STDBOOL_H_FALSE
728 GL_GENERATE_STDBOOL_H_TRUE
898 NEXT_AS_FIRST_DIRECTIVE_MATH_H
900 LOCALCHARSET_TESTS_ENVIRONMENT
902 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
904 UINT64_MAX_EQ_ULONG_MAX
905 UINT32_MAX_LT_UINTMAX_MAX
908 INT64_MAX_EQ_LONG_MAX
909 INT32_MAX_LT_INTMAX_MAX
919 GL_GENERATE_STDINT_H_FALSE
920 GL_GENERATE_STDINT_H_TRUE
929 HAVE_SIGNED_SIG_ATOMIC_T
932 BITSIZEOF_SIG_ATOMIC_T
935 APPLE_UNIVERSAL_BUILD
939 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
944 HAVE_UNSIGNED_LONG_LONG_INT
947 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
953 REPLACE_SIGNBIT_USING_GCC
1022 HAVE_DECL_REMAINDERL
1203 GL_GENERATE_FNMATCH_H_FALSE
1204 GL_GENERATE_FNMATCH_H_TRUE
1207 GL_GENERATE_FLOAT_H_FALSE
1208 GL_GENERATE_FLOAT_H_TRUE
1210 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1218 GL_GENERATE_ERRNO_H_FALSE
1219 GL_GENERATE_ERRNO_H_TRUE
1221 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1224 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1227 PRAGMA_SYSTEM_HEADER
1228 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1251 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1252 UNISTD_H_HAVE_WINSOCK2_H
1273 REPLACE_GETDOMAINNAME
1284 HAVE_DECL_SETHOSTNAME
1285 HAVE_DECL_GETUSERSHELL
1286 HAVE_DECL_GETPAGESIZE
1287 HAVE_DECL_GETLOGIN_R
1288 HAVE_DECL_GETDOMAINNAME
1327 GNULIB_UNISTD_H_SIGPIPE
1328 GNULIB_UNISTD_H_NONBLOCKING
1354 GNULIB_GETDTABLESIZE
1355 GNULIB_GETDOMAINNAME
1373 GL_GENERATE_ALLOCA_H_FALSE
1374 GL_GENERATE_ALLOCA_H_TRUE
1377 GL_COND_LIBTOOL_FALSE
1378 GL_COND_LIBTOOL_TRUE
1405 MAINTAINER_MODE_FALSE
1406 MAINTAINER_MODE_TRUE
1434 program_transform_name
1447 enable_option_checking
1448 enable_maintainer_mode
1449 enable_dependency_tracking
1451 ac_precious_vars
='build_alias
1462 # Initialize some variables set by options.
1464 ac_init_version
=false
1465 ac_unrecognized_opts
=
1466 ac_unrecognized_sep
=
1467 # The variables have the same names as the options, with
1468 # dashes changed to underlines.
1469 cache_file
=/dev
/null
1476 program_transform_name
=s
,x
,x
,
1484 # Installation directory options.
1485 # These are left unexpanded so users can "make install exec_prefix=/foo"
1486 # and all the variables that are supposed to be based on exec_prefix
1487 # by default will actually change.
1488 # Use braces instead of parens because sh, perl, etc. also accept them.
1489 # (The list follows the same order as the GNU Coding Standards.)
1490 bindir
='${exec_prefix}/bin'
1491 sbindir
='${exec_prefix}/sbin'
1492 libexecdir
='${exec_prefix}/libexec'
1493 datarootdir
='${prefix}/share'
1494 datadir
='${datarootdir}'
1495 sysconfdir
='${prefix}/etc'
1496 sharedstatedir
='${prefix}/com'
1497 localstatedir
='${prefix}/var'
1498 includedir
='${prefix}/include'
1499 oldincludedir
='/usr/include'
1500 docdir
='${datarootdir}/doc/${PACKAGE}'
1501 infodir
='${datarootdir}/info'
1506 libdir
='${exec_prefix}/lib'
1507 localedir
='${datarootdir}/locale'
1508 mandir
='${datarootdir}/man'
1514 # If the previous option needs an argument, assign it.
1515 if test -n "$ac_prev"; then
1516 eval $ac_prev=\
$ac_option
1522 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1526 # Accept the important Cygnus configure options, so we can diagnose typos.
1528 case $ac_dashdash$ac_option in
1532 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1534 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1535 bindir
=$ac_optarg ;;
1537 -build |
--build |
--buil |
--bui |
--bu)
1538 ac_prev
=build_alias
;;
1539 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1540 build_alias
=$ac_optarg ;;
1542 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1543 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1544 ac_prev
=cache_file
;;
1545 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1546 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1547 cache_file
=$ac_optarg ;;
1549 --config-cache |
-C)
1550 cache_file
=config.cache
;;
1552 -datadir |
--datadir |
--datadi |
--datad)
1554 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1555 datadir
=$ac_optarg ;;
1557 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1558 |
--dataroo |
--dataro |
--datar)
1559 ac_prev
=datarootdir
;;
1560 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1561 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1562 datarootdir
=$ac_optarg ;;
1564 -disable-* |
--disable-*)
1565 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1566 # Reject names that are not valid shell variable names.
1567 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1568 as_fn_error
"invalid feature name: $ac_useropt"
1569 ac_useropt_orig
=$ac_useropt
1570 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1571 case $ac_user_opts in
1573 "enable_
$ac_useropt"
1575 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1576 ac_unrecognized_sep
=', ';;
1578 eval enable_
$ac_useropt=no
;;
1580 -docdir |
--docdir |
--docdi |
--doc |
--do)
1582 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1583 docdir
=$ac_optarg ;;
1585 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1587 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1588 dvidir
=$ac_optarg ;;
1590 -enable-* |
--enable-*)
1591 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1592 # Reject names that are not valid shell variable names.
1593 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1594 as_fn_error
"invalid feature name: $ac_useropt"
1595 ac_useropt_orig
=$ac_useropt
1596 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1597 case $ac_user_opts in
1599 "enable_
$ac_useropt"
1601 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1602 ac_unrecognized_sep
=', ';;
1604 eval enable_
$ac_useropt=\
$ac_optarg ;;
1606 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1607 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1608 |
--exec |
--exe |
--ex)
1609 ac_prev
=exec_prefix
;;
1610 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1611 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1612 |
--exec=* |
--exe=* |
--ex=*)
1613 exec_prefix
=$ac_optarg ;;
1615 -gas |
--gas |
--ga |
--g)
1616 # Obsolete; use --with-gas.
1619 -help |
--help |
--hel |
--he |
-h)
1620 ac_init_help
=long
;;
1621 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1622 ac_init_help
=recursive
;;
1623 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1624 ac_init_help
=short
;;
1626 -host |
--host |
--hos |
--ho)
1627 ac_prev
=host_alias
;;
1628 -host=* |
--host=* |
--hos=* |
--ho=*)
1629 host_alias
=$ac_optarg ;;
1631 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1633 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1635 htmldir
=$ac_optarg ;;
1637 -includedir |
--includedir |
--includedi |
--included |
--include \
1638 |
--includ |
--inclu |
--incl |
--inc)
1639 ac_prev
=includedir
;;
1640 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1641 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1642 includedir
=$ac_optarg ;;
1644 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1646 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1647 infodir
=$ac_optarg ;;
1649 -libdir |
--libdir |
--libdi |
--libd)
1651 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1652 libdir
=$ac_optarg ;;
1654 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1655 |
--libexe |
--libex |
--libe)
1656 ac_prev
=libexecdir
;;
1657 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1658 |
--libexe=* |
--libex=* |
--libe=*)
1659 libexecdir
=$ac_optarg ;;
1661 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1662 ac_prev
=localedir
;;
1663 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1664 localedir
=$ac_optarg ;;
1666 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1667 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1668 ac_prev
=localstatedir
;;
1669 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1670 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1671 localstatedir
=$ac_optarg ;;
1673 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1675 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1676 mandir
=$ac_optarg ;;
1678 -nfp |
--nfp |
--nf)
1679 # Obsolete; use --without-fp.
1682 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1683 |
--no-cr |
--no-c |
-n)
1686 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1687 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1690 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1691 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1692 |
--oldin |
--oldi |
--old |
--ol |
--o)
1693 ac_prev
=oldincludedir
;;
1694 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1695 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1696 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1697 oldincludedir
=$ac_optarg ;;
1699 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1701 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1702 prefix
=$ac_optarg ;;
1704 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1705 |
--program-pre |
--program-pr |
--program-p)
1706 ac_prev
=program_prefix
;;
1707 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1708 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1709 program_prefix
=$ac_optarg ;;
1711 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1712 |
--program-suf |
--program-su |
--program-s)
1713 ac_prev
=program_suffix
;;
1714 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1715 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1716 program_suffix
=$ac_optarg ;;
1718 -program-transform-name |
--program-transform-name \
1719 |
--program-transform-nam |
--program-transform-na \
1720 |
--program-transform-n |
--program-transform- \
1721 |
--program-transform |
--program-transfor \
1722 |
--program-transfo |
--program-transf \
1723 |
--program-trans |
--program-tran \
1724 |
--progr-tra |
--program-tr |
--program-t)
1725 ac_prev
=program_transform_name
;;
1726 -program-transform-name=* |
--program-transform-name=* \
1727 |
--program-transform-nam=* |
--program-transform-na=* \
1728 |
--program-transform-n=* |
--program-transform-=* \
1729 |
--program-transform=* |
--program-transfor=* \
1730 |
--program-transfo=* |
--program-transf=* \
1731 |
--program-trans=* |
--program-tran=* \
1732 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1733 program_transform_name
=$ac_optarg ;;
1735 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1737 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1738 pdfdir
=$ac_optarg ;;
1740 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1742 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1745 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1746 |
-silent |
--silent |
--silen |
--sile |
--sil)
1749 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1751 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1753 sbindir
=$ac_optarg ;;
1755 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1756 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1757 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1759 ac_prev
=sharedstatedir
;;
1760 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1761 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1762 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1764 sharedstatedir
=$ac_optarg ;;
1766 -site |
--site |
--sit)
1768 -site=* |
--site=* |
--sit=*)
1771 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1773 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1774 srcdir
=$ac_optarg ;;
1776 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1777 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1778 ac_prev
=sysconfdir
;;
1779 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1780 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1781 sysconfdir
=$ac_optarg ;;
1783 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1784 ac_prev
=target_alias
;;
1785 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1786 target_alias
=$ac_optarg ;;
1788 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1791 -version |
--version |
--versio |
--versi |
--vers |
-V)
1792 ac_init_version
=: ;;
1795 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1796 # Reject names that are not valid shell variable names.
1797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1798 as_fn_error
"invalid package name: $ac_useropt"
1799 ac_useropt_orig
=$ac_useropt
1800 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1801 case $ac_user_opts in
1805 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1806 ac_unrecognized_sep
=', ';;
1808 eval with_
$ac_useropt=\
$ac_optarg ;;
1810 -without-* |
--without-*)
1811 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1812 # Reject names that are not valid shell variable names.
1813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1814 as_fn_error
"invalid package name: $ac_useropt"
1815 ac_useropt_orig
=$ac_useropt
1816 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1817 case $ac_user_opts in
1821 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1822 ac_unrecognized_sep
=', ';;
1824 eval with_
$ac_useropt=no
;;
1827 # Obsolete; use --with-x.
1830 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1831 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1832 ac_prev
=x_includes
;;
1833 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1834 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1835 x_includes
=$ac_optarg ;;
1837 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1838 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1839 ac_prev
=x_libraries
;;
1840 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1841 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1842 x_libraries
=$ac_optarg ;;
1844 -*) as_fn_error
"unrecognized option: \`$ac_option'
1845 Try \`$0 --help' for more information."
1849 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1850 # Reject names that are not valid shell variable names.
1851 case $ac_envvar in #(
1852 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1853 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1855 eval $ac_envvar=\
$ac_optarg
1856 export $ac_envvar ;;
1859 # FIXME: should be removed in autoconf 3.0.
1860 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1861 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1862 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1863 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1869 if test -n "$ac_prev"; then
1870 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1871 as_fn_error
"missing argument to $ac_option"
1874 if test -n "$ac_unrecognized_opts"; then
1875 case $enable_option_checking in
1877 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1878 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1882 # Check all directory arguments for consistency.
1883 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1884 datadir sysconfdir sharedstatedir localstatedir includedir \
1885 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1886 libdir localedir mandir
1888 eval ac_val
=\$
$ac_var
1889 # Remove trailing slashes.
1892 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1893 eval $ac_var=\
$ac_val;;
1895 # Be sure to have absolute directory names.
1897 [\\/$
]* | ?
:[\\/]* ) continue;;
1898 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1900 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1903 # There might be people who depend on the old broken behavior: `$host'
1904 # used to hold the argument of --host etc.
1905 # FIXME: To remove some day.
1908 target
=$target_alias
1910 # FIXME: To remove some day.
1911 if test "x$host_alias" != x
; then
1912 if test "x$build_alias" = x
; then
1913 cross_compiling
=maybe
1914 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1915 If a cross compiler is detected then cross compile mode will be used." >&2
1916 elif test "x$build_alias" != "x$host_alias"; then
1922 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1924 test "$silent" = yes && exec 6>/dev
/null
1927 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1928 ac_ls_di
=`ls -di .` &&
1929 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1930 as_fn_error
"working directory cannot be determined"
1931 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1932 as_fn_error
"pwd does not report name of working directory"
1935 # Find the source files, if location was not specified.
1936 if test -z "$srcdir"; then
1937 ac_srcdir_defaulted
=yes
1938 # Try the directory containing this script, then the parent directory.
1939 ac_confdir
=`$as_dirname -- "$as_myself" ||
1940 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1941 X"$as_myself" : 'X\(//\)[^/]' \| \
1942 X"$as_myself" : 'X\(//\)$' \| \
1943 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1944 $as_echo X"$as_myself" |
1945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1963 if test ! -r "$srcdir/$ac_unique_file"; then
1967 ac_srcdir_defaulted
=no
1969 if test ! -r "$srcdir/$ac_unique_file"; then
1970 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1971 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1973 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1975 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1977 # When building in place, set srcdir=.
1978 if test "$ac_abs_confdir" = "$ac_pwd"; then
1981 # Remove unnecessary trailing slashes from srcdir.
1982 # Double slashes in file names in object file debugging info
1983 # mess up M-x gdb in Emacs.
1985 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1987 for ac_var
in $ac_precious_vars; do
1988 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1989 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1990 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1991 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1995 # Report the --help message.
1997 if test "$ac_init_help" = "long"; then
1998 # Omit some internal or obsolete options to make the list less imposing.
1999 # This message is too long to be a string in the A/UX 3.1 sh.
2001 \`configure' configures this package to adapt to many kinds of systems.
2003 Usage: $0 [OPTION]... [VAR=VALUE]...
2005 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2006 VAR=VALUE. See below for descriptions of some of the useful variables.
2008 Defaults for the options are specified in brackets.
2011 -h, --help display this help and exit
2012 --help=short display options specific to this package
2013 --help=recursive display the short help of all the included packages
2014 -V, --version display version information and exit
2015 -q, --quiet, --silent do not print \`checking...' messages
2016 --cache-file=FILE cache test results in FILE [disabled]
2017 -C, --config-cache alias for \`--cache-file=config.cache'
2018 -n, --no-create do not create output files
2019 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2021 Installation directories:
2022 --prefix=PREFIX install architecture-independent files in PREFIX
2023 [$ac_default_prefix]
2024 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2027 By default, \`make install' will install all the files in
2028 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2029 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2030 for instance \`--prefix=\$HOME'.
2032 For better control, use the options below.
2034 Fine tuning of the installation directories:
2035 --bindir=DIR user executables [EPREFIX/bin]
2036 --sbindir=DIR system admin executables [EPREFIX/sbin]
2037 --libexecdir=DIR program executables [EPREFIX/libexec]
2038 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2039 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2040 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2041 --libdir=DIR object code libraries [EPREFIX/lib]
2042 --includedir=DIR C header files [PREFIX/include]
2043 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2044 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2045 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2046 --infodir=DIR info documentation [DATAROOTDIR/info]
2047 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2048 --mandir=DIR man documentation [DATAROOTDIR/man]
2049 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2050 --htmldir=DIR html documentation [DOCDIR]
2051 --dvidir=DIR dvi documentation [DOCDIR]
2052 --pdfdir=DIR pdf documentation [DOCDIR]
2053 --psdir=DIR ps documentation [DOCDIR]
2059 --program-prefix=PREFIX prepend PREFIX to installed program names
2060 --program-suffix=SUFFIX append SUFFIX to installed program names
2061 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2064 --build=BUILD configure
for building on BUILD
[guessed
]
2065 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2066 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2070 if test -n "$ac_init_help"; then
2075 --disable-option-checking ignore unrecognized
--enable/--with options
2076 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2077 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2078 --enable-maintainer-mode enable make rules and dependencies not useful
2079 (and sometimes confusing
) to the casual installer
2080 --disable-dependency-tracking speeds up one-time build
2081 --enable-dependency-tracking do not reject slow dependency extractors
2083 Some influential environment variables
:
2084 CC C compiler
command
2085 CFLAGS C compiler flags
2086 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2087 nonstandard directory
<lib dir
>
2088 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2089 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2090 you have headers
in a nonstandard directory
<include dir
>
2093 Use these variables to override the choices made by
`configure' or to help
2094 it to find libraries and programs with nonstandard names/locations.
2096 Report bugs to the package provider.
2101 if test "$ac_init_help" = "recursive"; then
2102 # If there are subdirs, report their specific --help.
2103 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2104 test -d "$ac_dir" ||
2105 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2112 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2113 # A ".." for each directory in $ac_dir_suffix.
2114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2115 case $ac_top_builddir_sub in
2116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2120 ac_abs_top_builddir=$ac_pwd
2121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2122 # for backward compatibility:
2123 ac_top_builddir=$ac_top_build_prefix
2126 .) # We are building in place.
2128 ac_top_srcdir=$ac_top_builddir_sub
2129 ac_abs_top_srcdir=$ac_pwd ;;
2130 [\\/]* | ?:[\\/]* ) # Absolute name.
2131 ac_srcdir=$srcdir$ac_dir_suffix;
2132 ac_top_srcdir=$srcdir
2133 ac_abs_top_srcdir=$srcdir ;;
2135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2136 ac_top_srcdir=$ac_top_build_prefix$srcdir
2137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2141 cd "$ac_dir" || { ac_status=$?; continue; }
2142 # Check for guested configure.
2143 if test -f "$ac_srcdir/configure.gnu"; then
2145 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2146 elif test -f "$ac_srcdir/configure"; then
2148 $SHELL "$ac_srcdir/configure" --help=recursive
2150 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2152 cd "$ac_pwd" || { ac_status=$?; break; }
2156 test -n "$ac_init_help" && exit $ac_status
2157 if $ac_init_version; then
2160 generated by GNU Autoconf 2.64
2162 Copyright (C) 2009 Free Software Foundation, Inc.
2163 This configure script is free software; the Free Software Foundation
2164 gives unlimited permission to copy, distribute and modify it.
2169 ## ------------------------ ##
2170 ## Autoconf initialization. ##
2171 ## ------------------------ ##
2173 # ac_fn_c_try_compile LINENO
2174 # --------------------------
2175 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_c_try_compile ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 rm -f conftest.$ac_objext
2180 if { { ac_try="$ac_compile"
2182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2183 *) ac_try_echo
=$ac_try;;
2185 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_compile") 2>conftest.err
2189 if test -s conftest.err
; then
2190 grep -v '^ *+' conftest.err
>conftest.er1
2191 cat conftest.er1
>&5
2192 mv -f conftest.er1 conftest.err
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && {
2196 test -z "$ac_c_werror_flag" ||
2197 test ! -s conftest.err
2198 } && test -s conftest.
$ac_objext; then :
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.
$ac_ext >&5
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2209 } # ac_fn_c_try_compile
2211 # ac_fn_c_try_cpp LINENO
2212 # ----------------------
2213 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2216 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2217 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2226 if test -s conftest.err; then
2227 grep -v '^ *+' conftest.err >conftest.er1
2228 cat conftest.er1 >&5
2229 mv -f conftest.er1 conftest.err
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; } >/dev/null && {
2233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2234 test ! -s conftest.err
2238 $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2251 # the include files in INCLUDES and setting the cache variable VAR
2253 ac_fn_c_check_header_mongrel ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2266 # Is the header compilable?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2268 $as_echo_n "checking $2 usability... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 ac_header_compiler=yes
2277 ac_header_compiler=no
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2281 $as_echo "$ac_header_compiler" >&6; }
2283 # Is the header present?
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2285 $as_echo_n "checking $2 presence... " >&6; }
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2290 if ac_fn_c_try_cpp "$LINENO"; then :
2291 ac_header_preproc=yes
2293 ac_header_preproc=no
2295 rm -f conftest.err conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2297 $as_echo "$ac_header_preproc" >&6; }
2299 # So? What about this header?
2300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2303 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2309 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2311 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2313 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2315 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2317 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2323 $as_echo_n "(cached) " >&6
2325 eval "$3=\$ac_header_compiler"
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2333 } # ac_fn_c_check_header_mongrel
2335 # ac_fn_c_try_run LINENO
2336 # ----------------------
2337 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2338 # that executables *can* be run.
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 if { { ac_try="$ac_link"
2344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2345 *) ac_try_echo
=$ac_try;;
2347 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348 $as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_link") 2>&5
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2353 { { case "(($ac_try" in
2354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358 $as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_try") 2>&5
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; }; }; then :
2365 $as_echo "$as_me: program exited with status $ac_status" >&5
2366 $as_echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 ac_retval=$ac_status
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2377 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2378 # -------------------------------------------------------
2379 # Tests whether HEADER exists and can be compiled using the include files in
2380 # INCLUDES, setting the cache variable VAR accordingly.
2381 ac_fn_c_check_header_compile ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2385 $as_echo_n "checking for $2... " >&6; }
2386 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2387 $as_echo_n "(cached) " >&6
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2394 if ac_fn_c_try_compile "$LINENO"; then :
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406 } # ac_fn_c_check_header_compile
2408 # ac_fn_c_try_link LINENO
2409 # -----------------------
2410 # Try to link conftest.$ac_ext, and return whether this succeeded.
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 rm -f conftest.$ac_objext conftest$ac_exeext
2415 if { { ac_try="$ac_link"
2417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2418 *) ac_try_echo
=$ac_try;;
2420 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421 $as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_link") 2>conftest.err
2424 if test -s conftest.err
; then
2425 grep -v '^ *+' conftest.err
>conftest.er1
2426 cat conftest.er1
>&5
2427 mv -f conftest.er1 conftest.err
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } && {
2431 test -z "$ac_c_werror_flag" ||
2432 test ! -s conftest.err
2433 } && test -s conftest
$ac_exeext && {
2434 test "$cross_compiling" = yes ||
2435 $as_test_x conftest
$ac_exeext
2439 $as_echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.
$ac_ext >&5
2444 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2445 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2446 # interfere with the next link command; also delete a directory that is
2447 # left behind by Apple's compiler. We do this before executing the actions.
2448 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2452 } # ac_fn_c_try_link
2454 # ac_fn_c_check_func LINENO FUNC VAR
2455 # ----------------------------------
2456 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2457 ac_fn_c_check_func
()
2459 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461 $as_echo_n "checking for $2... " >&6; }
2462 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463 $as_echo_n "(cached) " >&6
2465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2467 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2469 #define $2 innocuous_$2
2471 /* System header to define __stub macros and hopefully few prototypes,
2472 which can conflict with char $2 (); below.
2473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2474 <limits.h> exists even on freestanding compilers. */
2477 # include <limits.h>
2479 # include <assert.h>
2484 /* Override any GCC internal prototype to avoid an error.
2485 Use char because int might match the return type of a GCC
2486 builtin and then its argument prototype would still apply. */
2491 /* The GNU C library defines this for functions which it implements
2492 to always fail with ENOSYS. Some functions are actually named
2493 something starting with __ and the normal name is an alias. */
2494 #if defined __stub_$2 || defined __stub___$2
2506 if ac_fn_c_try_link
"$LINENO"; then :
2511 rm -f core conftest.err conftest.
$ac_objext \
2512 conftest
$ac_exeext conftest.
$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2519 } # ac_fn_c_check_func
2521 # ac_fn_c_check_decl LINENO SYMBOL VAR
2522 # ------------------------------------
2523 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2524 ac_fn_c_check_decl
()
2526 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2528 $as_echo_n "checking whether $2 is declared... " >&6; }
2529 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2530 $as_echo_n "(cached) " >&6
2532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2546 if ac_fn_c_try_compile
"$LINENO"; then :
2551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2558 } # ac_fn_c_check_decl
2560 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2561 # --------------------------------------------
2562 # Tries to find the compile-time value of EXPR in a program that includes
2563 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2565 ac_fn_c_compute_int
()
2567 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2568 if test "$cross_compiling" = yes; then
2569 # Depending upon the size, compute the lo and hi bounds.
2570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2576 static int test_array [1 - 2 * !(($2) >= 0)];
2583 if ac_fn_c_try_compile
"$LINENO"; then :
2586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2592 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2599 if ac_fn_c_try_compile
"$LINENO"; then :
2600 ac_hi
=$ac_mid; break
2602 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2603 if test $ac_lo -le $ac_mid; then
2607 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2618 static int test_array [1 - 2 * !(($2) < 0)];
2625 if ac_fn_c_try_compile
"$LINENO"; then :
2628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h. */
2634 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2641 if ac_fn_c_try_compile
"$LINENO"; then :
2642 ac_lo
=$ac_mid; break
2644 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2645 if test $ac_mid -le $ac_hi; then
2649 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2659 # Binary search between lo and hi bounds.
2660 while test "x$ac_lo" != "x$ac_hi"; do
2661 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2668 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2675 if ac_fn_c_try_compile
"$LINENO"; then :
2678 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2690 static long int longval () { return $2; }
2691 static unsigned long int ulongval () { return $2; }
2698 FILE *f = fopen ("conftest.val", "w");
2703 long int i = longval ();
2706 fprintf (f, "%ld", i);
2710 unsigned long int i = ulongval ();
2713 fprintf (f, "%lu", i);
2715 /* Do not output a trailing newline, as this causes \r\n confusion
2716 on some platforms. */
2717 return ferror (f) || fclose (f) != 0;
2723 if ac_fn_c_try_run
"$LINENO"; then :
2724 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2729 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2736 } # ac_fn_c_compute_int
2738 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2739 # -------------------------------------------
2740 # Tests whether TYPE exists after having included INCLUDES, setting cache
2741 # variable VAR accordingly.
2742 ac_fn_c_check_type
()
2744 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2746 $as_echo_n "checking for $2... " >&6; }
2747 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2748 $as_echo_n "(cached) " >&6
2751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2763 if ac_fn_c_try_compile
"$LINENO"; then :
2764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2776 if ac_fn_c_try_compile
"$LINENO"; then :
2781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2790 } # ac_fn_c_check_type
2791 cat >config.log
<<_ACEOF
2792 This file contains any messages produced by compilers while
2793 running configure, to aid debugging if configure makes a mistake.
2795 It was created by $as_me, which was
2796 generated by GNU Autoconf 2.64. Invocation command line was
2808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir
=.
2832 $as_echo "PATH: $as_dir"
2848 # Keep a trace of the command line.
2849 # Strip out --no-create and --no-recursion so they do not pile up.
2850 # Strip out --silent because we don't want to record it for future runs.
2851 # Also quote any args containing shell meta-characters.
2852 # Make two passes to allow for proper duplicate-argument suppression.
2856 ac_must_keep_next
=false
2862 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2863 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2864 |
-silent |
--silent |
--silen |
--sile |
--sil)
2867 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2870 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2872 as_fn_append ac_configure_args1
" '$ac_arg'"
2873 if test $ac_must_keep_next = true
; then
2874 ac_must_keep_next
=false
# Got value, back to normal.
2877 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2878 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2879 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2880 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2881 case "$ac_configure_args0 " in
2882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2885 -* ) ac_must_keep_next
=true
;;
2888 as_fn_append ac_configure_args
" '$ac_arg'"
2893 { ac_configure_args0
=; unset ac_configure_args0
;}
2894 { ac_configure_args1
=; unset ac_configure_args1
;}
2896 # When interrupted or exit'd, cleanup temporary files, and complete
2897 # config.log. We remove comments because anyway the quotes in there
2898 # would cause problems or look ugly.
2899 # WARNING: Use '\'' to represent an apostrophe within the trap.
2900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2901 trap 'exit_status=$?
2902 # Save into config.log some information that might help in debugging.
2907 ## ---------------- ##
2908 ## Cache variables. ##
2909 ## ---------------- ##
2912 # The following way of writing the cache mishandles newlines in values,
2914 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2915 eval ac_val=\$$ac_var
2919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2923 _ | IFS | as_nl) ;; #(
2924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2925 *) { eval $ac_var=; unset $ac_var;} ;;
2930 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2931 *${as_nl}ac_space=\ *)
2933 "s/'\''/'\''\\\\'\'''\''/g;
2934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2945 ## ----------------- ##
2946 ## Output variables. ##
2947 ## ----------------- ##
2950 for ac_var in $ac_subst_vars
2952 eval ac_val=\$$ac_var
2954 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2956 $as_echo "$ac_var='\''$ac_val'\''"
2960 if test -n "$ac_subst_files"; then
2962 ## ------------------- ##
2963 ## File substitutions. ##
2964 ## ------------------- ##
2967 for ac_var
in $ac_subst_files
2969 eval ac_val
=\$
$ac_var
2971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2973 $as_echo "$ac_var='\''$ac_val'\''"
2978 if test -s confdefs.h; then
2988 test "$ac_signal" != 0 &&
2989 $as_echo "$as_me: caught signal $ac_signal"
2990 $as_echo "$as_me: exit $exit_status"
2992 rm -f core *.core core.conftest.* &&
2993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2996 for ac_signal
in 1 2 13 15; do
2997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3002 rm -f -r conftest
* confdefs.h
3004 $as_echo "/* confdefs.h */" > confdefs.h
3006 # Predefined preprocessor variables.
3008 cat >>confdefs.h
<<_ACEOF
3009 #define PACKAGE_NAME "$PACKAGE_NAME"
3012 cat >>confdefs.h
<<_ACEOF
3013 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3016 cat >>confdefs.h
<<_ACEOF
3017 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3020 cat >>confdefs.h
<<_ACEOF
3021 #define PACKAGE_STRING "$PACKAGE_STRING"
3024 cat >>confdefs.h
<<_ACEOF
3025 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3028 cat >>confdefs.h
<<_ACEOF
3029 #define PACKAGE_URL "$PACKAGE_URL"
3033 # Let the site file select an alternate cache file if it wants to.
3034 # Prefer an explicitly selected file to automatically selected ones.
3037 if test -n "$CONFIG_SITE"; then
3038 ac_site_file1
=$CONFIG_SITE
3039 elif test "x$prefix" != xNONE
; then
3040 ac_site_file1
=$prefix/share
/config.site
3041 ac_site_file2
=$prefix/etc
/config.site
3043 ac_site_file1
=$ac_default_prefix/share
/config.site
3044 ac_site_file2
=$ac_default_prefix/etc
/config.site
3046 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3048 test "x$ac_site_file" = xNONE
&& continue
3049 if test -r "$ac_site_file"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3052 sed 's/^/| /' "$ac_site_file" >&5
3057 if test -r "$cache_file"; then
3058 # Some versions of bash will fail to source /dev/null (special
3059 # files actually), so we avoid doing that.
3060 if test -f "$cache_file"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3062 $as_echo "$as_me: loading cache $cache_file" >&6;}
3064 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3065 *) .
"./$cache_file";;
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3070 $as_echo "$as_me: creating cache $cache_file" >&6;}
3074 as_fn_append ac_header_list
" dirent.h"
3075 as_fn_append ac_func_list
" btowc"
3076 as_fn_append ac_func_list
" isblank"
3077 as_fn_append ac_func_list
" iswctype"
3078 as_fn_append ac_func_list
" mbsrtowcs"
3079 as_fn_append ac_func_list
" mempcpy"
3080 as_fn_append ac_func_list
" wmemchr"
3081 as_fn_append ac_func_list
" wmemcpy"
3082 as_fn_append ac_func_list
" wmempcpy"
3083 as_fn_append ac_header_list
" wctype.h"
3084 gl_fnmatch_required
=GNU
3085 as_fn_append ac_func_list
" alarm"
3086 as_fn_append ac_header_list
" wchar.h"
3087 as_fn_append ac_header_list
" stdint.h"
3088 as_fn_append ac_header_list
" inttypes.h"
3089 as_fn_append ac_header_list
" unistd.h"
3090 as_fn_append ac_func_list
" symlink"
3091 as_fn_append ac_header_list
" math.h"
3092 as_fn_append ac_func_list
" mbsinit"
3093 as_fn_append ac_func_list
" mbrtowc"
3094 as_fn_append ac_header_list
" sys/mman.h"
3095 as_fn_append ac_func_list
" mprotect"
3096 as_fn_append ac_header_list
" sys/param.h"
3097 as_fn_append ac_header_list
" sys/stat.h"
3098 as_fn_append ac_header_list
" sys/time.h"
3099 as_fn_append ac_header_list
" features.h"
3100 as_fn_append ac_func_list
" iswcntrl"
3101 # Check that the precious variables saved in the cache have kept the same
3103 ac_cache_corrupted
=false
3104 for ac_var
in $ac_precious_vars; do
3105 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3106 eval ac_new_set
=\
$ac_env_${ac_var}_set
3107 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3108 eval ac_new_val
=\
$ac_env_${ac_var}_value
3109 case $ac_old_set,$ac_new_set in
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3112 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3113 ac_cache_corrupted
=: ;;
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3117 ac_cache_corrupted
=: ;;
3120 if test "x$ac_old_val" != "x$ac_new_val"; then
3121 # differences in whitespace do not lead to failure.
3122 ac_old_val_w
=`echo x $ac_old_val`
3123 ac_new_val_w
=`echo x $ac_new_val`
3124 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3126 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3127 ac_cache_corrupted
=:
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3130 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3131 eval $ac_var=\
$ac_old_val
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3134 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3136 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3139 # Pass precious variables to config.status.
3140 if test "$ac_new_set" = set; then
3142 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3143 *) ac_arg
=$ac_var=$ac_new_val ;;
3145 case " $ac_configure_args " in
3146 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3147 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3151 if $ac_cache_corrupted; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3155 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3156 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3158 ## -------------------- ##
3159 ## Main body of script. ##
3160 ## -------------------- ##
3163 ac_cpp
='$CPP $CPPFLAGS'
3164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3169 ac_config_headers
="$ac_config_headers config.h:config.in"
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3173 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3174 # Check whether --enable-maintainer-mode was given.
3175 if test "${enable_maintainer_mode+set}" = set; then :
3176 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3178 USE_MAINTAINER_MODE
=no
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3182 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3183 if test $USE_MAINTAINER_MODE = yes; then
3184 MAINTAINER_MODE_TRUE
=
3185 MAINTAINER_MODE_FALSE
='#'
3187 MAINTAINER_MODE_TRUE
='#'
3188 MAINTAINER_MODE_FALSE
=
3191 MAINT
=$MAINTAINER_MODE_TRUE
3196 ac_cpp
='$CPP $CPPFLAGS'
3197 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3200 if test -n "$ac_tool_prefix"; then
3201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3202 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC
="$CC" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3239 if test -z "$ac_cv_prog_CC"; then
3241 # Extract the first word of "gcc", so it can be a program name with args.
3242 set dummy gcc
; ac_word
=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3246 $as_echo_n "(cached) " >&6
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir
=.
3256 for ac_exec_ext
in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_ac_ct_CC
="gcc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 $as_echo "$ac_ct_CC" >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3277 if test "x$ac_ct_CC" = x
; then
3280 case $cross_compiling:$ac_tool_warned in
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned
=yes ;;
3292 if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC
="$CC" # Let the user override the test.
3304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir
=.
3309 for ac_exec_ext
in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3333 if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc
; ac_word
=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC
="$CC" # Let the user override the test.
3345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir
=.
3350 for ac_exec_ext
in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353 ac_prog_rejected
=yes
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 if test $ac_prog_rejected = yes; then
3365 # We found a bogon in the path, so make sure we never use it.
3366 set dummy
$ac_cv_prog_CC
3368 if test $# != 0; then
3369 # We chose a different compiler from the bogus one.
3370 # However, it has the same basename, so the bogon will be chosen
3371 # first if we set CC to just the basename; use the full file name.
3373 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 for ac_prog
in cl.exe
3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC
="$CC" # Let the user override the test.
3403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir
=.
3408 for ac_exec_ext
in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3430 test -n "$CC" && break
3433 if test -z "$CC"; then
3435 for ac_prog
in cl.exe
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy
$ac_prog; ac_word
=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir
=.
3452 for ac_exec_ext
in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_ac_ct_CC
="$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3467 $as_echo "$ac_ct_CC" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3474 test -n "$ac_ct_CC" && break
3477 if test "x$ac_ct_CC" = x
; then
3480 case $cross_compiling:$ac_tool_warned in
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3484 ac_tool_warned
=yes ;;
3493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error
"no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." "$LINENO" 5; }
3498 # Provide some information about the compiler.
3499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3502 for ac_option
in --version -v -V -qversion; do
3503 { { ac_try
="$ac_compiler $ac_option >&5"
3505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3512 if test -s conftest.err; then
3514 ... rest of stderr output deleted ...
3515 10q' conftest.err >conftest.er1
3516 cat conftest.er1 >&5
3517 rm -f conftest.er1 conftest.err
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3529 FILE *f = fopen ("conftest.out", "w");
3530 return ferror (f) || fclose (f) != 0;
3536 ac_clean_files_save=$ac_clean_files
3537 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3538 # Try to create an executable without -o first, disregard a.out.
3539 # It will help us diagnose broken compilers, and finding out an intuition
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3542 $as_echo_n "checking for C compiler default output file name... " >&6; }
3543 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3545 # The possible output files:
3546 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3549 for ac_file in $ac_files
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3553 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3558 if { { ac_try="$ac_link_default"
3560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3561 *) ac_try_echo
=$ac_try;;
3563 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link_default") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3574 for ac_file
in $ac_files ''
3576 test -f "$ac_file" ||
continue
3578 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3581 # We found the default executable, but exeext='' is most
3585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3587 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 # We set ac_cv_exeext here because the later test for it is not
3590 # safe: cross compilers may not add the suffix if given an `-o'
3591 # argument, so we may need to know it at that point already.
3592 # Even if this section looks crufty: it has the advantage of
3599 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3605 $as_echo "$ac_file" >&6; }
3606 if test -z "$ac_file"; then :
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.
$ac_ext >&5
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { as_fn_set_status
77
3613 as_fn_error
"C compiler cannot create executables
3614 See \`config.log' for more details." "$LINENO" 5; }; }
3616 ac_exeext
=$ac_cv_exeext
3618 # Check that the compiler produces executables we can run. If not, either
3619 # the compiler is broken, or we cross compile.
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3621 $as_echo_n "checking whether the C compiler works... " >&6; }
3622 # If not cross compiling, check that we can run a simple program.
3623 if test "$cross_compiling" != yes; then
3624 if { ac_try
='./$ac_file'
3625 { { case "(($ac_try" in
3626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_try") 2>&5
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; }; then
3637 if test "$cross_compiling" = maybe; then
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642 as_fn_error "cannot run C compiled programs.
3643 If you meant to cross compile
, use \
`--host'.
3644 See \`config.log
' for more details." "$LINENO" 5; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3651 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3652 ac_clean_files=$ac_clean_files_save
3653 # Check that the compiler produces executables we can run. If not, either
3654 # the compiler is broken, or we cross compile.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3656 $as_echo_n "checking whether we are cross compiling... " >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3658 $as_echo "$cross_compiling" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661 $as_echo_n "checking for suffix of executables... " >&6; }
3662 if { { ac_try="$ac_link"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3674 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3675 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3677 for ac_file
in conftest.exe conftest conftest.
*; do
3678 test -f "$ac_file" ||
continue
3680 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3681 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3690 See \`config.log' for more details." "$LINENO" 5; }
3692 rm -f conftest
$ac_cv_exeext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694 $as_echo "$ac_cv_exeext" >&6; }
3696 rm -f conftest.
$ac_ext
3697 EXEEXT
=$ac_cv_exeext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3700 $as_echo_n "checking for suffix of object files... " >&6; }
3701 if test "${ac_cv_objext+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 rm -f conftest.o conftest.obj
3716 if { { ac_try
="$ac_compile"
3718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_compile") 2>&5
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; then :
3727 for ac_file in conftest.o conftest.obj conftest.*; do
3728 test -f "$ac_file" || continue;
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error "cannot compute suffix of object files
: cannot compile
3742 See \
`config.log' for more details." "$LINENO" 5; }
3744 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3747 $as_echo "$ac_cv_objext" >&6; }
3748 OBJEXT=$ac_cv_objext
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3751 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3752 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3769 if ac_fn_c_try_compile "$LINENO"; then :
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3779 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3780 if test $ac_compiler_gnu = yes; then
3785 ac_test_CFLAGS=${CFLAGS+set}
3786 ac_save_CFLAGS=$CFLAGS
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3788 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3789 if test "${ac_cv_prog_cc_g+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3792 ac_save_c_werror_flag=$ac_c_werror_flag
3793 ac_c_werror_flag=yes
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3807 if ac_fn_c_try_compile "$LINENO"; then :
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3822 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3838 if ac_fn_c_try_compile "$LINENO"; then :
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_c_werror_flag=$ac_save_c_werror_flag
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3849 $as_echo "$ac_cv_prog_cc_g" >&6; }
3850 if test "$ac_test_CFLAGS" = set; then
3851 CFLAGS=$ac_save_CFLAGS
3852 elif test $ac_cv_prog_cc_g = yes; then
3853 if test "$GCC" = yes; then
3859 if test "$GCC" = yes; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3866 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3867 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3870 ac_cv_prog_cc_c89=no
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3876 #include <sys/types.h>
3877 #include <sys/stat.h>
3878 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3879 struct buf { int x; };
3880 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3881 static char *e (p, i)
3887 static char *f (char * (*g) (char **, int), char **p, ...)
3892 s = g (p, va_arg (v,int));
3897 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3898 function prototypes and stuff, but not '\xHH' hex character constants.
3899 These don't provoke an error unfortunately, instead are silently treated
3900 as 'x'. The following induces an error, until -std is added to get
3901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3902 array size at least. It's necessary to write '\x00'==0 to get something
3903 that's true only with -std. */
3904 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3906 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3907 inside strings and character constants. */
3909 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3911 int test (int i, double x);
3912 struct s1 {int (*f) (int a);};
3913 struct s2 {int (*f) (double a);};
3914 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3925 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3928 CC="$ac_save_CC $ac_arg"
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_c89=$ac_arg
3932 rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
3935 rm -f conftest.$ac_ext
3940 case "x$ac_cv_prog_cc_c89" in
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943 $as_echo "none needed" >&6; } ;;
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946 $as_echo "unsupported" >&6; } ;;
3948 CC="$CC $ac_cv_prog_cc_c89"
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3952 if test "x$ac_cv_prog_cc_c89" != xno; then :
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3964 for ac_t in install-sh install.sh shtool; do
3965 if test -f "$ac_dir/$ac_t"; then
3967 ac_install_sh="$ac_aux_dir/$ac_t -c"
3972 if test -z "$ac_aux_dir"; then
3973 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3976 # These three variables are undocumented and unsupported,
3977 # and are intended to be withdrawn in a future Autoconf release.
3978 # They can cause serious problems if a builder's source tree is in a directory
3979 # whose full name contains unusual characters.
3980 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3981 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3982 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3985 # Make sure we can run config.sub.
3986 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3987 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3990 $as_echo_n "checking build system type... " >&6; }
3991 if test "${ac_cv_build+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3994 ac_build_alias=$build_alias
3995 test "x$ac_build_alias" = x &&
3996 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3997 test "x$ac_build_alias" = x &&
3998 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3999 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4000 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4004 $as_echo "$ac_cv_build" >&6; }
4005 case $ac_cv_build in
4007 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4010 ac_save_IFS=$IFS; IFS='-'
4016 # Remember, the first character of IFS is used to create $*,
4017 # except with old shells:
4020 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4024 $as_echo_n "checking host system type... " >&6; }
4025 if test "${ac_cv_host+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4028 if test "x$host_alias" = x; then
4029 ac_cv_host=$ac_cv_build
4031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4032 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4037 $as_echo "$ac_cv_host" >&6; }
4040 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4043 ac_save_IFS=$IFS; IFS='-'
4049 # Remember, the first character of IFS is used to create $*,
4050 # except with old shells:
4053 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4063 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4064 # On Suns, sometimes $CPP names a directory.
4065 if test -n "$CPP" && test -d "$CPP"; then
4068 if test -z "$CPP"; then
4069 if test "${ac_cv_prog_CPP+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4072 # Double quotes because CPP needs to be expanded
4073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4076 for ac_c_preproc_warn_flag in '' yes
4078 # Use a header file that comes with gcc, so configuring glibc
4079 # with a fresh cross-compiler works.
4080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4081 # <limits.h> exists even on freestanding compilers.
4082 # On the NeXT, cc -E runs the code through the compiler's parser,
4083 # not just through cpp. "Syntax error" is here to catch this case.
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4087 # include <limits.h>
4089 # include <assert.h>
4093 if ac_fn_c_try_cpp "$LINENO"; then :
4096 # Broken: fails on valid input.
4099 rm -f conftest.err conftest.$ac_ext
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #include <ac_nonexistent.h>
4107 if ac_fn_c_try_cpp "$LINENO"; then :
4108 # Broken: success on invalid input.
4111 # Passes both tests.
4115 rm -f conftest.err conftest.$ac_ext
4118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4119 rm -f conftest.err conftest.
$ac_ext
4120 if $ac_preproc_ok; then :
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4133 $as_echo "$CPP" >&6; }
4135 for ac_c_preproc_warn_flag
in '' yes
4137 # Use a header file that comes with gcc, so configuring glibc
4138 # with a fresh cross-compiler works.
4139 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140 # <limits.h> exists even on freestanding compilers.
4141 # On the NeXT, cc -E runs the code through the compiler's parser,
4142 # not just through cpp. "Syntax error" is here to catch this case.
4143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4146 # include <limits.h>
4148 # include <assert.h>
4152 if ac_fn_c_try_cpp
"$LINENO"; then :
4155 # Broken: fails on valid input.
4158 rm -f conftest.err conftest.
$ac_ext
4160 # OK, works on sane cases. Now check whether nonexistent headers
4161 # can be detected and how.
4162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #include <ac_nonexistent.h>
4166 if ac_fn_c_try_cpp
"$LINENO"; then :
4167 # Broken: success on invalid input.
4170 # Passes both tests.
4174 rm -f conftest.err conftest.
$ac_ext
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.
$ac_ext
4179 if $ac_preproc_ok; then :
4182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4184 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4185 See \`config.log' for more details." "$LINENO" 5; }
4189 ac_cpp
='$CPP $CPPFLAGS'
4190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4196 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4197 if test "${ac_cv_path_GREP+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4200 if test -z "$GREP"; then
4201 ac_path_GREP_found
=false
4202 # Loop through the user's path and test for each of PROGNAME-LIST
4203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4204 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4207 test -z "$as_dir" && as_dir
=.
4208 for ac_prog
in grep ggrep
; do
4209 for ac_exec_ext
in '' $ac_executable_extensions; do
4210 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4211 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4212 # Check for GNU ac_path_GREP and select it if it is found.
4213 # Check for GNU $ac_path_GREP
4214 case `"$ac_path_GREP" --version 2>&1` in
4216 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4219 $as_echo_n 0123456789 >"conftest.in"
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 $as_echo 'GREP' >> "conftest.nl"
4226 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4227 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4228 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4229 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_GREP
="$ac_path_GREP"
4232 ac_path_GREP_max
=$ac_count
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4237 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4240 $ac_path_GREP_found && break 3
4245 if test -z "$ac_cv_path_GREP"; then
4246 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249 ac_cv_path_GREP
=$GREP
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4254 $as_echo "$ac_cv_path_GREP" >&6; }
4255 GREP
="$ac_cv_path_GREP"
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4259 $as_echo_n "checking for egrep... " >&6; }
4260 if test "${ac_cv_path_EGREP+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4263 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4264 then ac_cv_path_EGREP
="$GREP -E"
4266 if test -z "$EGREP"; then
4267 ac_path_EGREP_found
=false
4268 # Loop through the user's path and test for each of PROGNAME-LIST
4269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4270 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4273 test -z "$as_dir" && as_dir
=.
4274 for ac_prog
in egrep; do
4275 for ac_exec_ext
in '' $ac_executable_extensions; do
4276 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4277 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4278 # Check for GNU ac_path_EGREP and select it if it is found.
4279 # Check for GNU $ac_path_EGREP
4280 case `"$ac_path_EGREP" --version 2>&1` in
4282 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4285 $as_echo_n 0123456789 >"conftest.in"
4288 cat "conftest.in" "conftest.in" >"conftest.tmp"
4289 mv "conftest.tmp" "conftest.in"
4290 cp "conftest.in" "conftest.nl"
4291 $as_echo 'EGREP' >> "conftest.nl"
4292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4293 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4294 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4296 # Best one so far, save it but keep looking for a better one
4297 ac_cv_path_EGREP
="$ac_path_EGREP"
4298 ac_path_EGREP_max
=$ac_count
4300 # 10*(2^10) chars as input seems more than enough
4301 test $ac_count -gt 10 && break
4303 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4306 $ac_path_EGREP_found && break 3
4311 if test -z "$ac_cv_path_EGREP"; then
4312 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4315 ac_cv_path_EGREP
=$EGREP
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4321 $as_echo "$ac_cv_path_EGREP" >&6; }
4322 EGREP
="$ac_cv_path_EGREP"
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4326 $as_echo_n "checking for ANSI C header files... " >&6; }
4327 if test "${ac_cv_header_stdc+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4345 if ac_fn_c_try_compile
"$LINENO"; then :
4346 ac_cv_header_stdc
=yes
4348 ac_cv_header_stdc
=no
4350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4352 if test $ac_cv_header_stdc = yes; then
4353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360 $EGREP "memchr" >/dev
/null
2>&1; then :
4363 ac_cv_header_stdc
=no
4369 if test $ac_cv_header_stdc = yes; then
4370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 $EGREP "free" >/dev
/null
2>&1; then :
4380 ac_cv_header_stdc
=no
4386 if test $ac_cv_header_stdc = yes; then
4387 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4388 if test "$cross_compiling" = yes; then :
4391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4395 #if ((' ' & 0x0FF) == 0x020)
4396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4399 # define ISLOWER(c) \
4400 (('a' <= (c) && (c) <= 'i') \
4401 || ('j' <= (c) && (c) <= 'r') \
4402 || ('s' <= (c) && (c) <= 'z'))
4403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4411 for (i = 0; i < 256; i++)
4412 if (XOR (islower (i), ISLOWER (i))
4413 || toupper (i) != TOUPPER (i))
4418 if ac_fn_c_try_run
"$LINENO"; then :
4421 ac_cv_header_stdc
=no
4423 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4424 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4430 $as_echo "$ac_cv_header_stdc" >&6; }
4431 if test $ac_cv_header_stdc = yes; then
4433 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4437 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4438 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4439 inttypes.h stdint.h unistd.h
4441 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4442 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4444 eval as_val
=\$
$as_ac_Header
4445 if test "x$as_val" = x
""yes; then :
4446 cat >>confdefs.h
<<_ACEOF
4447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4458 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4459 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4466 if test "$MINIX" = yes; then
4468 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4471 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4474 $as_echo "#define _MINIX 1" >>confdefs.h
4481 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4489 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4495 # define __EXTENSIONS__ 1
4496 $ac_includes_default
4505 if ac_fn_c_try_compile
"$LINENO"; then :
4506 ac_cv_safe_to_define___extensions__
=yes
4508 ac_cv_safe_to_define___extensions__
=no
4510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4514 test $ac_cv_safe_to_define___extensions__ = yes &&
4515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4519 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4521 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4523 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4525 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4531 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4532 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4546 gl_cv_c_amsterdam_compiler
=yes
4548 gl_cv_c_amsterdam_compiler
=no
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4555 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4556 if test -z "$AR"; then
4557 if test $gl_cv_c_amsterdam_compiler = yes; then
4559 if test -z "$ARFLAGS"; then
4563 if test -n "$ac_tool_prefix"; then
4564 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4565 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567 $as_echo_n "checking for $ac_word... " >&6; }
4568 if test "${ac_cv_prog_AR+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4571 if test -n "$AR"; then
4572 ac_cv_prog_AR
="$AR" # Let the user override the test.
4574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir
=.
4579 for ac_exec_ext
in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 if test -n "$AR"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4594 $as_echo "$AR" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4602 if test -z "$ac_cv_prog_AR"; then
4604 # Extract the first word of "ar", so it can be a program name with args.
4605 set dummy
ar; ac_word
=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4611 if test -n "$ac_ct_AR"; then
4612 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir
=.
4619 for ac_exec_ext
in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_ac_ct_AR
="ar"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4632 if test -n "$ac_ct_AR"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4634 $as_echo "$ac_ct_AR" >&6; }
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4640 if test "x$ac_ct_AR" = x
; then
4643 case $cross_compiling:$ac_tool_warned in
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned
=yes ;;
4655 if test -z "$ARFLAGS"; then
4660 if test -z "$ARFLAGS"; then
4666 if test -z "$RANLIB"; then
4667 if test $gl_cv_c_amsterdam_compiler = yes; then
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4672 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$RANLIB"; then
4679 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir
=.
4686 for ac_exec_ext
in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 RANLIB
=$ac_cv_prog_RANLIB
4699 if test -n "$RANLIB"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4701 $as_echo "$RANLIB" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4709 if test -z "$ac_cv_prog_RANLIB"; then
4710 ac_ct_RANLIB
=$RANLIB
4711 # Extract the first word of "ranlib", so it can be a program name with args.
4712 set dummy ranlib
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$ac_ct_RANLIB"; then
4719 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4739 if test -n "$ac_ct_RANLIB"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4741 $as_echo "$ac_ct_RANLIB" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4747 if test "x$ac_ct_RANLIB" = x
; then
4750 case $cross_compiling:$ac_tool_warned in
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned
=yes ;;
4756 RANLIB
=$ac_ct_RANLIB
4759 RANLIB
="$ac_cv_prog_RANLIB"
4775 # IEEE behaviour is the default on all CPUs except Alpha and SH
4776 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4777 # and the GCC 4.1.2 manual).
4780 # On Alpha systems, a compiler option provides the behaviour.
4781 # See the ieee(3) manual page, also available at
4782 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4783 if test -n "$GCC"; then
4784 # GCC has the option -mieee.
4785 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4786 CPPFLAGS
="$CPPFLAGS -mieee"
4788 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4789 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4790 CPPFLAGS
="$CPPFLAGS -ieee"
4794 if test -n "$GCC"; then
4795 # GCC has the option -mieee.
4796 CPPFLAGS
="$CPPFLAGS -mieee"
4803 # Code from module alloca:
4804 # Code from module alloca-opt:
4805 # Code from module configmake:
4806 # Code from module dirent:
4807 # Code from module dirfd:
4808 # Code from module errno:
4809 # Code from module extensions:
4811 # Code from module extern-inline:
4812 # Code from module float:
4813 # Code from module fnmatch:
4814 # Code from module fnmatch-gnu:
4815 # Code from module fpieee:
4817 # Code from module fpucw:
4818 # Code from module frexp:
4819 # Code from module frexpl:
4820 # Code from module include_next:
4821 # Code from module inttypes:
4822 # Code from module inttypes-incomplete:
4823 # Code from module isnand-nolibm:
4824 # Code from module isnanl-nolibm:
4825 # Code from module localcharset:
4826 # Code from module math:
4827 # Code from module mbrtowc:
4828 # Code from module mbsinit:
4829 # Code from module mbsrtowcs:
4830 # Code from module memchr:
4831 # Code from module memmem:
4832 # Code from module memmem-simple:
4833 # Code from module multiarch:
4834 # Code from module pathmax:
4835 # Code from module snippet/arg-nonnull:
4836 # Code from module snippet/c++defs:
4837 # Code from module snippet/warn-on-use:
4838 # Code from module ssize_t:
4839 # Code from module stdbool:
4840 # Code from module stddef:
4841 # Code from module stdint:
4842 # Code from module streq:
4843 # Code from module string:
4844 # Code from module strnlen1:
4845 # Code from module strstr:
4846 # Code from module strstr-simple:
4847 # Code from module sys_stat:
4848 # Code from module sys_types:
4849 # Code from module time:
4850 # Code from module unistd:
4851 # Code from module update-copyright:
4852 # Code from module verify:
4853 # Code from module wchar:
4854 # Code from module wctype-h:
4857 ac_cpp
='$CPP $CPPFLAGS'
4858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4861 if test -n "$ac_tool_prefix"; then
4862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4863 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if test "${ac_cv_prog_CC+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -n "$CC"; then
4870 ac_cv_prog_CC
="$CC" # Let the user override the test.
4872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4876 test -z "$as_dir" && as_dir
=.
4877 for ac_exec_ext
in '' $ac_executable_extensions; do
4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 if test -n "$CC"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4892 $as_echo "$CC" >&6; }
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4900 if test -z "$ac_cv_prog_CC"; then
4902 # Extract the first word of "gcc", so it can be a program name with args.
4903 set dummy gcc
; ac_word
=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4909 if test -n "$ac_ct_CC"; then
4910 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir
=.
4917 for ac_exec_ext
in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_ac_ct_CC
="gcc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4930 if test -n "$ac_ct_CC"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4932 $as_echo "$ac_ct_CC" >&6; }
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4938 if test "x$ac_ct_CC" = x
; then
4941 case $cross_compiling:$ac_tool_warned in
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4945 ac_tool_warned
=yes ;;
4953 if test -z "$CC"; then
4954 if test -n "$ac_tool_prefix"; then
4955 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4956 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC
="$CC" # Let the user override the test.
4965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir
=.
4970 for ac_exec_ext
in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 if test -n "$CC"; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4985 $as_echo "$CC" >&6; }
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988 $as_echo "no" >&6; }
4994 if test -z "$CC"; then
4995 # Extract the first word of "cc", so it can be a program name with args.
4996 set dummy cc
; ac_word
=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC
="$CC" # Let the user override the test.
5006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir
=.
5011 for ac_exec_ext
in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5014 ac_prog_rejected
=yes
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 if test $ac_prog_rejected = yes; then
5026 # We found a bogon in the path, so make sure we never use it.
5027 set dummy
$ac_cv_prog_CC
5029 if test $# != 0; then
5030 # We chose a different compiler from the bogus one.
5031 # However, it has the same basename, so the bogon will be chosen
5032 # first if we set CC to just the basename; use the full file name.
5034 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5040 if test -n "$CC"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5042 $as_echo "$CC" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5050 if test -z "$CC"; then
5051 if test -n "$ac_tool_prefix"; then
5052 for ac_prog
in cl.exe
5054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5055 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_CC+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$CC"; then
5062 ac_cv_prog_CC
="$CC" # Let the user override the test.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 if test -n "$CC"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5084 $as_echo "$CC" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 test -n "$CC" && break
5094 if test -z "$CC"; then
5096 for ac_prog
in cl.exe
5098 # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy
$ac_prog; ac_word
=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -n "$ac_ct_CC"; then
5106 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_ac_ct_CC
="$ac_prog"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5126 if test -n "$ac_ct_CC"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5128 $as_echo "$ac_ct_CC" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5135 test -n "$ac_ct_CC" && break
5138 if test "x$ac_ct_CC" = x
; then
5141 case $cross_compiling:$ac_tool_warned in
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5145 ac_tool_warned
=yes ;;
5154 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5156 as_fn_error
"no acceptable C compiler found in \$PATH
5157 See \`config.log' for more details." "$LINENO" 5; }
5159 # Provide some information about the compiler.
5160 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5163 for ac_option
in --version -v -V -qversion; do
5164 { { ac_try
="$ac_compiler $ac_option >&5"
5166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5170 $as_echo "$ac_try_echo"; } >&5
5171 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5173 if test -s conftest.err; then
5175 ... rest of stderr output deleted ...
5176 10q' conftest.err >conftest.er1
5177 cat conftest.er1 >&5
5178 rm -f conftest.er1 conftest.err
5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5185 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5186 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5203 if ac_fn_c_try_compile "$LINENO"; then :
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5214 if test $ac_compiler_gnu = yes; then
5219 ac_test_CFLAGS=${CFLAGS+set}
5220 ac_save_CFLAGS=$CFLAGS
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5223 if test "${ac_cv_prog_cc_g+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5226 ac_save_c_werror_flag=$ac_c_werror_flag
5227 ac_c_werror_flag=yes
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5241 if ac_fn_c_try_compile "$LINENO"; then :
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5256 if ac_fn_c_try_compile "$LINENO"; then :
5259 ac_c_werror_flag=$ac_save_c_werror_flag
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5272 if ac_fn_c_try_compile "$LINENO"; then :
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 ac_c_werror_flag=$ac_save_c_werror_flag
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5283 $as_echo "$ac_cv_prog_cc_g" >&6; }
5284 if test "$ac_test_CFLAGS" = set; then
5285 CFLAGS=$ac_save_CFLAGS
5286 elif test $ac_cv_prog_cc_g = yes; then
5287 if test "$GCC" = yes; then
5293 if test "$GCC" = yes; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5300 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5301 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5304 ac_cv_prog_cc_c89=no
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5310 #include <sys/types.h>
5311 #include <sys/stat.h>
5312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5313 struct buf { int x; };
5314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5315 static char *e (p, i)
5321 static char *f (char * (*g) (char **, int), char **p, ...)
5326 s = g (p, va_arg (v,int));
5331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5332 function prototypes and stuff, but not '\xHH' hex character constants.
5333 These don't provoke an error unfortunately, instead are silently treated
5334 as 'x'. The following induces an error, until -std is added to get
5335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5336 array size at least. It's necessary to write '\x00'==0 to get something
5337 that's true only with -std. */
5338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5340 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5341 inside strings and character constants. */
5343 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5345 int test (int i, double x);
5346 struct s1 {int (*f) (int a);};
5347 struct s2 {int (*f) (double a);};
5348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5354 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5359 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5360 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5362 CC="$ac_save_CC $ac_arg"
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 ac_cv_prog_cc_c89=$ac_arg
5366 rm -f core conftest.err conftest.$ac_objext
5367 test "x$ac_cv_prog_cc_c89" != "xno" && break
5369 rm -f conftest.$ac_ext
5374 case "x$ac_cv_prog_cc_c89" in
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5377 $as_echo "none needed" >&6; } ;;
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5380 $as_echo "unsupported" >&6; } ;;
5382 CC="$CC $ac_cv_prog_cc_c89"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5384 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5386 if test "x$ac_cv_prog_cc_c89" != xno; then :
5391 ac_cpp='$CPP $CPPFLAGS'
5392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5401 for ac_dir in ../.. "$srcdir"/../..; do
5402 for ac_t in install-sh install.sh shtool; do
5403 if test -f "$ac_dir/$ac_t"; then
5405 ac_install_sh="$ac_aux_dir/$ac_t -c"
5410 if test -z "$ac_aux_dir"; then
5411 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5414 # These three variables are undocumented and unsupported,
5415 # and are intended to be withdrawn in a future Autoconf release.
5416 # They can cause serious problems if a builder's source tree is in a directory
5417 # whose full name contains unusual characters.
5418 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5419 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5420 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5424 $as_echo_n "checking target system type... " >&6; }
5425 if test "${ac_cv_target+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5428 if test "x$target_alias" = x; then
5429 ac_cv_target=$ac_cv_host
5431 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5432 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5437 $as_echo "$ac_cv_target" >&6; }
5438 case $ac_cv_target in
5440 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5442 target=$ac_cv_target
5443 ac_save_IFS=$IFS; IFS='-'
5449 # Remember, the first character of IFS is used to create $*,
5450 # except with old shells:
5453 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5456 # The aliases save the names the user supplied, while $host etc.
5457 # will get canonicalized.
5458 test -n "$target_alias" &&
5459 test "$program_prefix$program_suffix$program_transform_name" = \
5461 program_prefix=${target_alias}-
5469 LIBC_FATAL_STDERR_=1
5470 export LIBC_FATAL_STDERR_
5472 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5473 # for constant arguments. Useless!
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5475 $as_echo_n "checking for working alloca.h... " >&6; }
5476 if test "${ac_cv_working_alloca_h+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5485 char *p = (char *) alloca (2 * sizeof (int));
5491 if ac_fn_c_try_link "$LINENO"; then :
5492 ac_cv_working_alloca_h=yes
5494 ac_cv_working_alloca_h=no
5496 rm -f core conftest.err conftest.$ac_objext \
5497 conftest$ac_exeext conftest.$ac_ext
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5500 $as_echo "$ac_cv_working_alloca_h" >&6; }
5501 if test $ac_cv_working_alloca_h = yes; then
5503 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5508 $as_echo_n "checking for alloca... " >&6; }
5509 if test "${ac_cv_func_alloca_works+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5515 # define alloca __builtin_alloca
5518 # include <malloc.h>
5519 # define alloca _alloca
5521 # ifdef HAVE_ALLOCA_H
5522 # include <alloca.h>
5527 # ifndef alloca /* predefined by HP cc +Olibcalls */
5538 char *p = (char *) alloca (1);
5544 if ac_fn_c_try_link "$LINENO"; then :
5545 ac_cv_func_alloca_works=yes
5547 ac_cv_func_alloca_works=no
5549 rm -f core conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5553 $as_echo "$ac_cv_func_alloca_works" >&6; }
5555 if test $ac_cv_func_alloca_works = yes; then
5557 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5560 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5561 # that cause trouble. Some versions do not even contain alloca or
5562 # contain a buggy version. If you still want to use their alloca,
5563 # use ar to extract alloca.o from them instead of compiling alloca.c.
5569 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5571 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5575 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5576 if test "${ac_cv_os_cray+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h. */
5581 #if defined CRAY && ! defined CRAY2
5588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5589 $EGREP "webecray" >/dev/null 2>&1; then :
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5598 $as_echo "$ac_cv_os_cray" >&6; }
5599 if test $ac_cv_os_cray = yes; then
5600 for ac_func in _getb67 GETB67 getb67; do
5601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5603 eval as_val=\$$as_ac_var
5604 if test "x$as_val" = x""yes; then :
5606 cat >>confdefs.h <<_ACEOF
5607 #define CRAY_STACKSEG_END $ac_func
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5617 $as_echo_n "checking stack direction for C alloca... " >&6; }
5618 if test "${ac_cv_c_stack_direction+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 if test "$cross_compiling" = yes; then :
5622 ac_cv_c_stack_direction=0
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 $ac_includes_default
5628 find_stack_direction (int *addr, int depth)
5633 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5634 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5639 main (int argc, char **argv)
5641 return find_stack_direction (0, argc + !argv + 20) < 0;
5644 if ac_fn_c_try_run "$LINENO"; then :
5645 ac_cv_c_stack_direction=1
5647 ac_cv_c_stack_direction=-1
5649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5650 conftest.$ac_objext conftest.beam conftest.$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5655 $as_echo "$ac_cv_c_stack_direction" >&6; }
5656 cat >>confdefs.h <<_ACEOF
5657 #define STACK_DIRECTION $ac_cv_c_stack_direction
5671 GNULIB_EUIDACCESS=0;
5679 GNULIB_GETDOMAINNAME=0;
5680 GNULIB_GETDTABLESIZE=0;
5682 GNULIB_GETHOSTNAME=0;
5684 GNULIB_GETLOGIN_R=0;
5685 GNULIB_GETPAGESIZE=0;
5686 GNULIB_GETUSERSHELL=0;
5687 GNULIB_GROUP_MEMBER=0;
5699 GNULIB_READLINKAT=0;
5701 GNULIB_SETHOSTNAME=0;
5706 GNULIB_UNISTD_H_NONBLOCKING=0;
5707 GNULIB_UNISTD_H_SIGPIPE=0;
5722 HAVE_GETDTABLESIZE=1;
5727 HAVE_GROUP_MEMBER=1;
5743 HAVE_DECL_ENVIRON=1;
5745 HAVE_DECL_FDATASYNC=1;
5746 HAVE_DECL_GETDOMAINNAME=1;
5747 HAVE_DECL_GETLOGIN_R=1;
5748 HAVE_DECL_GETPAGESIZE=1;
5749 HAVE_DECL_GETUSERSHELL=1;
5750 HAVE_DECL_SETHOSTNAME=1;
5751 HAVE_DECL_TTYNAME_R=1;
5759 REPLACE_FTRUNCATE=0;
5761 REPLACE_GETDOMAINNAME=0;
5762 REPLACE_GETLOGIN_R=0;
5763 REPLACE_GETGROUPS=0;
5764 REPLACE_GETPAGESIZE=0;
5777 REPLACE_TTYNAME_R=0;
5782 UNISTD_H_HAVE_WINSOCK2_H=0;
5783 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5800 HAVE_DECL_FDOPENDIR=1;
5807 REPLACE_FDOPENDIR=0;
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5812 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5813 if test "${gl_cv_have_include_next+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5816 rm -rf conftestd1a conftestd1b conftestd2
5817 mkdir conftestd1a conftestd1b conftestd2
5818 cat <<EOF > conftestd1a/conftest.h
5819 #define DEFINED_IN_CONFTESTD1
5820 #include_next <conftest.h>
5821 #ifdef DEFINED_IN_CONFTESTD2
5824 #error "include_next doesn't work"
5827 cat <<EOF > conftestd1b/conftest.h
5828 #define DEFINED_IN_CONFTESTD1
5830 #include_next <conftest.h>
5831 #ifdef DEFINED_IN_CONFTESTD2
5834 #error "include_next doesn't work"
5837 cat <<EOF > conftestd2/conftest.h
5838 #ifndef DEFINED_IN_CONFTESTD1
5839 #error "include_next test doesn't work"
5841 #define DEFINED_IN_CONFTESTD2
5843 gl_save_CPPFLAGS="$CPPFLAGS"
5844 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include <conftest.h>
5849 if ac_fn_c_try_compile "$LINENO"; then :
5850 gl_cv_have_include_next=yes
5852 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 #include <conftest.h>
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858 gl_cv_have_include_next=buggy
5860 gl_cv_have_include_next=no
5862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 CPPFLAGS="$gl_save_CPPFLAGS"
5867 rm -rf conftestd1a conftestd1b conftestd2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5871 $as_echo "$gl_cv_have_include_next" >&6; }
5872 PRAGMA_SYSTEM_HEADER=
5873 if test $gl_cv_have_include_next = yes; then
5874 INCLUDE_NEXT=include_next
5875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5876 if test -n "$GCC"; then
5877 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5880 if test $gl_cv_have_include_next = buggy; then
5881 INCLUDE_NEXT=include
5882 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5884 INCLUDE_NEXT=include
5885 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5892 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5893 if test "${gl_cv_pragma_columns+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "choke me" >/dev/null 2>&1; then :
5906 gl_cv_pragma_columns=yes
5908 gl_cv_pragma_columns=no
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5915 $as_echo "$gl_cv_pragma_columns" >&6; }
5916 if test $gl_cv_pragma_columns = yes; then
5917 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5926 for ac_header in $ac_header_list
5928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5931 eval as_val=\$$as_ac_Header
5932 if test "x$as_val" = x""yes; then :
5933 cat >>confdefs.h <<_ACEOF
5934 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5946 $as_echo_n "checking for complete errno.h... " >&6; }
5947 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5955 #if !defined ETXTBSY
5964 #if !defined ENOLINK
5970 #if !defined EMULTIHOP
5973 #if !defined EBADMSG
5976 #if !defined EOVERFLOW
5979 #if !defined ENOTSUP
5982 #if !defined ENETRESET
5985 #if !defined ECONNABORTED
5994 #if !defined ECANCELED
5997 #if !defined EOWNERDEAD
6000 #if !defined ENOTRECOVERABLE
6008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6009 $EGREP "booboo" >/dev/null 2>&1; then :
6010 gl_cv_header_errno_h_complete=no
6012 gl_cv_header_errno_h_complete=yes
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6019 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6020 if test $gl_cv_header_errno_h_complete = yes; then
6031 if test $gl_cv_have_include_next = yes; then
6032 gl_cv_next_errno_h='<'errno.h'>'
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6035 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6036 if test "${gl_cv_next_errno_h+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6046 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6047 *) gl_absname_cpp="$ac_cpp" ;;
6052 gl_dirsep_regex='[/\\]'
6055 gl_dirsep_regex='\/'
6058 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6060 gl_header_literal_regex=`echo 'errno.h' \
6061 |
sed -e "$gl_make_literal_regex_sed"`
6062 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6063 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6068 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6069 sed -n "$gl_absolute_header_sed"`'"'
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6074 $as_echo "$gl_cv_next_errno_h" >&6; }
6076 NEXT_ERRNO_H=$gl_cv_next_errno_h
6078 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6079 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6080 gl_next_as_first_directive='<'errno.h'>'
6082 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6083 gl_next_as_first_directive=$gl_cv_next_errno_h
6085 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6093 if test -n "$ERRNO_H"; then
6094 GL_GENERATE_ERRNO_H_TRUE=
6095 GL_GENERATE_ERRNO_H_FALSE='#'
6097 GL_GENERATE_ERRNO_H_TRUE='#'
6098 GL_GENERATE_ERRNO_H_FALSE=
6102 if test -n "$ERRNO_H"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6104 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6105 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6106 $as_echo_n "(cached) " >&6
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "yes" >/dev/null 2>&1; then :
6120 gl_cv_header_errno_h_EMULTIHOP=yes
6122 gl_cv_header_errno_h_EMULTIHOP=no
6126 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6130 #define _XOPEN_SOURCE_EXTENDED 1
6137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6138 $EGREP "yes" >/dev/null 2>&1; then :
6139 gl_cv_header_errno_h_EMULTIHOP=hidden
6143 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6144 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6145 #define _XOPEN_SOURCE_EXTENDED 1
6147 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6159 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6160 case $gl_cv_header_errno_h_EMULTIHOP in
6162 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6165 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6173 if test -n "$ERRNO_H"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6175 $as_echo_n "checking for ENOLINK value... " >&6; }
6176 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6190 $EGREP "yes" >/dev/null 2>&1; then :
6191 gl_cv_header_errno_h_ENOLINK=yes
6193 gl_cv_header_errno_h_ENOLINK=no
6197 if test $gl_cv_header_errno_h_ENOLINK = no; then
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6201 #define _XOPEN_SOURCE_EXTENDED 1
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 $EGREP "yes" >/dev/null 2>&1; then :
6210 gl_cv_header_errno_h_ENOLINK=hidden
6214 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6215 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6216 #define _XOPEN_SOURCE_EXTENDED 1
6218 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6230 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6231 case $gl_cv_header_errno_h_ENOLINK in
6233 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6236 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6244 if test -n "$ERRNO_H"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6246 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6247 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6261 $EGREP "yes" >/dev/null 2>&1; then :
6262 gl_cv_header_errno_h_EOVERFLOW=yes
6264 gl_cv_header_errno_h_EOVERFLOW=no
6268 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6272 #define _XOPEN_SOURCE_EXTENDED 1
6279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6280 $EGREP "yes" >/dev/null 2>&1; then :
6281 gl_cv_header_errno_h_EOVERFLOW=hidden
6285 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6286 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6287 #define _XOPEN_SOURCE_EXTENDED 1
6289 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6301 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6302 case $gl_cv_header_errno_h_EOVERFLOW in
6304 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6307 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6321 $as_echo_n "checking for mbstate_t... " >&6; }
6322 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 $ac_includes_default
6328 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6330 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6331 included before <wchar.h>. */
6339 mbstate_t x; return sizeof x;
6344 if ac_fn_c_try_compile "$LINENO"; then :
6345 ac_cv_type_mbstate_t=yes
6347 ac_cv_type_mbstate_t=no
6349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6352 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6353 if test $ac_cv_type_mbstate_t = yes; then
6355 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6359 $as_echo "#define mbstate_t int" >>confdefs.h
6366 for ac_func in $ac_func_list
6368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6370 eval as_val=\$$as_ac_var
6371 if test "x$as_val" = x""yes; then :
6372 cat >>confdefs.h <<_ACEOF
6373 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6473 GNULIB_REMAINDERF=0;
6474 GNULIB_REMAINDERL=0;
6560 HAVE_DECL_COPYSIGNF=1;
6577 HAVE_DECL_REMAINDER=1;
6578 HAVE_DECL_REMAINDERL=1;
6640 REPLACE_REMAINDER=0;
6641 REPLACE_REMAINDERF=0;
6642 REPLACE_REMAINDERL=0;
6647 REPLACE_SIGNBIT_USING_GCC=0;
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6655 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6656 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6657 $as_echo_n "(cached) " >&6
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6667 int e; return frexp (x, &e) > 0;
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 gl_cv_func_frexp_no_libm=yes
6675 gl_cv_func_frexp_no_libm=no
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6682 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6688 $as_echo_n "checking whether long double and double are the same... " >&6; }
6689 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6698 typedef int check[sizeof (long double) == sizeof (double)
6699 && LDBL_MANT_DIG == DBL_MANT_DIG
6700 && LDBL_MAX_EXP == DBL_MAX_EXP
6701 && LDBL_MIN_EXP == DBL_MIN_EXP
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 gl_cv_long_double_equals_double=yes
6711 gl_cv_long_double_equals_double=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6717 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6718 if test $gl_cv_long_double_equals_double = yes; then
6720 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6722 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6724 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6730 $as_echo_n "checking for unsigned long long int... " >&6; }
6731 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6734 ac_cv_type_unsigned_long_long_int=yes
6735 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6739 /* For now, do not test the preprocessor; as of 2007 there are too many
6740 implementations with broken preprocessors. Perhaps this can
6741 be revisited in 2012. In the meantime, code should not expect
6742 #if to work with literals wider than 32 bits. */
6743 /* Test literals. */
6744 long long int ll = 9223372036854775807ll;
6745 long long int nll = -9223372036854775807LL;
6746 unsigned long long int ull = 18446744073709551615ULL;
6747 /* Test constant expressions. */
6748 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6750 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6756 /* Test availability of runtime routines for shift and division. */
6757 long long int llmax = 9223372036854775807ll;
6758 unsigned long long int ullmax = 18446744073709551615ull;
6759 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6760 | (llmax / ll) | (llmax % ll)
6761 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6762 | (ullmax / ull) | (ullmax % ull));
6768 if ac_fn_c_try_link "$LINENO"; then :
6771 ac_cv_type_unsigned_long_long_int=no
6773 rm -f core conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6778 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6779 if test $ac_cv_type_unsigned_long_long_int = yes; then
6781 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6788 $as_echo_n "checking for long long int... " >&6; }
6789 if test "${ac_cv_type_long_long_int+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6792 ac_cv_type_long_long_int=yes
6793 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6794 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6795 if test $ac_cv_type_long_long_int = yes; then
6796 if test "$cross_compiling" = yes; then :
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6804 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6805 # define LLONG_MAX (HALF - 1 + HALF)
6810 long long int n = 1;
6814 long long int m = n << i;
6817 if (LLONG_MAX / 2 < m)
6825 if ac_fn_c_try_run "$LINENO"; then :
6828 ac_cv_type_long_long_int=no
6830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6831 conftest.$ac_objext conftest.beam conftest.$ac_ext
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6838 $as_echo "$ac_cv_type_long_long_int" >&6; }
6839 if test $ac_cv_type_long_long_int = yes; then
6841 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6850 gl_cv_c_multiarch=no
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 #ifndef __APPLE_CC__
6854 not a universal capable compiler
6859 if ac_fn_c_try_compile "$LINENO"; then :
6863 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6864 if test -n "$prev"; then
6866 i?86 | x86_64 | ppc | ppc64)
6867 if test -z "$arch" || test "$arch" = "$word"; then
6870 gl_cv_c_multiarch=yes
6876 if test "x$word" = "x-arch"; then
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 if test $gl_cv_c_multiarch = yes; then
6885 APPLE_UNIVERSAL_BUILD=1
6887 APPLE_UNIVERSAL_BUILD=0
6894 if test $ac_cv_type_long_long_int = yes; then
6895 HAVE_LONG_LONG_INT=1
6897 HAVE_LONG_LONG_INT=0
6901 if test $ac_cv_type_unsigned_long_long_int = yes; then
6902 HAVE_UNSIGNED_LONG_LONG_INT=1
6904 HAVE_UNSIGNED_LONG_LONG_INT=0
6909 if test $ac_cv_header_wchar_h = yes; then
6916 if test $ac_cv_header_inttypes_h = yes; then
6923 if test $ac_cv_header_sys_types_h = yes; then
6939 if test $gl_cv_have_include_next = yes; then
6940 gl_cv_next_stdint_h='<'stdint.h'>'
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6943 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6944 if test "${gl_cv_next_stdint_h+set}" = set; then :
6945 $as_echo_n "(cached) " >&6
6948 if test $ac_cv_header_stdint_h = yes; then
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6957 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6958 *) gl_absname_cpp="$ac_cpp" ;;
6963 gl_dirsep_regex='[/\\]'
6966 gl_dirsep_regex='\/'
6969 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6971 gl_header_literal_regex=`echo 'stdint.h' \
6972 |
sed -e "$gl_make_literal_regex_sed"`
6973 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6974 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6979 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6980 sed -n "$gl_absolute_header_sed"`'"'
6982 gl_cv_next_stdint_h='<'stdint.h'>'
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6988 $as_echo "$gl_cv_next_stdint_h" >&6; }
6990 NEXT_STDINT_H=$gl_cv_next_stdint_h
6992 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6994 gl_next_as_first_directive='<'stdint.h'>'
6996 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6997 gl_next_as_first_directive=$gl_cv_next_stdint_h
6999 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7004 if test $ac_cv_header_stdint_h = yes; then
7011 if test $ac_cv_header_stdint_h = yes; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7013 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7014 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 gl_cv_header_working_stdint_h=no
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7022 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7024 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7025 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7026 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7030 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7031 included before <wchar.h>. */
7042 int8_t a1 = INT8_MAX;
7043 int8_t a1min = INT8_MIN;
7046 int16_t a2 = INT16_MAX;
7047 int16_t a2min = INT16_MIN;
7050 int32_t a3 = INT32_MAX;
7051 int32_t a3min = INT32_MIN;
7054 int64_t a4 = INT64_MAX;
7055 int64_t a4min = INT64_MIN;
7058 uint8_t b1 = UINT8_MAX;
7060 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7063 uint16_t b2 = UINT16_MAX;
7066 uint32_t b3 = UINT32_MAX;
7069 uint64_t b4 = UINT64_MAX;
7071 int_least8_t c1 = INT8_C (0x7f);
7072 int_least8_t c1max = INT_LEAST8_MAX;
7073 int_least8_t c1min = INT_LEAST8_MIN;
7074 int_least16_t c2 = INT16_C (0x7fff);
7075 int_least16_t c2max = INT_LEAST16_MAX;
7076 int_least16_t c2min = INT_LEAST16_MIN;
7077 int_least32_t c3 = INT32_C (0x7fffffff);
7078 int_least32_t c3max = INT_LEAST32_MAX;
7079 int_least32_t c3min = INT_LEAST32_MIN;
7080 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7081 int_least64_t c4max = INT_LEAST64_MAX;
7082 int_least64_t c4min = INT_LEAST64_MIN;
7083 uint_least8_t d1 = UINT8_C (0xff);
7084 uint_least8_t d1max = UINT_LEAST8_MAX;
7085 uint_least16_t d2 = UINT16_C (0xffff);
7086 uint_least16_t d2max = UINT_LEAST16_MAX;
7087 uint_least32_t d3 = UINT32_C (0xffffffff);
7088 uint_least32_t d3max = UINT_LEAST32_MAX;
7089 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7090 uint_least64_t d4max = UINT_LEAST64_MAX;
7091 int_fast8_t e1 = INT_FAST8_MAX;
7092 int_fast8_t e1min = INT_FAST8_MIN;
7093 int_fast16_t e2 = INT_FAST16_MAX;
7094 int_fast16_t e2min = INT_FAST16_MIN;
7095 int_fast32_t e3 = INT_FAST32_MAX;
7096 int_fast32_t e3min = INT_FAST32_MIN;
7097 int_fast64_t e4 = INT_FAST64_MAX;
7098 int_fast64_t e4min = INT_FAST64_MIN;
7099 uint_fast8_t f1 = UINT_FAST8_MAX;
7100 uint_fast16_t f2 = UINT_FAST16_MAX;
7101 uint_fast32_t f3 = UINT_FAST32_MAX;
7102 uint_fast64_t f4 = UINT_FAST64_MAX;
7104 intptr_t g = INTPTR_MAX;
7105 intptr_t gmin = INTPTR_MIN;
7108 uintptr_t h = UINTPTR_MAX;
7110 intmax_t i = INTMAX_MAX;
7111 uintmax_t j = UINTMAX_MAX;
7113 #include <limits.h> /* for CHAR_BIT */
7114 #define TYPE_MINIMUM(t) \
7115 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7116 #define TYPE_MAXIMUM(t) \
7117 ((t) ((t) 0 < (t) -1 \
7119 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7122 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7123 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7125 /* Detect bug in FreeBSD 6.0 / ia64. */
7126 int check_SIG_ATOMIC:
7127 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7128 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7130 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7132 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7133 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7135 /* Detect bug in mingw. */
7137 WINT_MIN == TYPE_MINIMUM (wint_t)
7138 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7141 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7143 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7145 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7147 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7149 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7152 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7155 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7158 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7160 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7161 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7162 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7163 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7164 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7165 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7166 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7167 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7168 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7169 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7170 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7181 if ac_fn_c_try_compile "$LINENO"; then :
7182 if test "$cross_compiling" = yes; then :
7183 gl_cv_header_working_stdint_h=yes
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7190 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7194 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7195 included before <wchar.h>. */
7207 #define MVAL(macro) MVAL1(macro)
7208 #define MVAL1(expression) #expression
7209 static const char *macro_values[] =
7243 for (mv = macro_values; *mv != NULL; mv++)
7245 const char *value = *mv;
7246 /* Test whether it looks like a cast expression. */
7247 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7248 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7249 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7250 || strncmp (value, "((int)"/*)*/, 6) == 0
7251 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7252 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7253 return mv - macro_values + 1;
7261 if ac_fn_c_try_run "$LINENO"; then :
7262 gl_cv_header_working_stdint_h=yes
7264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265 conftest.$ac_objext conftest.beam conftest.$ac_ext
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7274 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7276 if test "$gl_cv_header_working_stdint_h" = yes; then
7279 for ac_header in sys/inttypes.h sys/bitypes.h
7281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7283 eval as_val=\$$as_ac_Header
7284 if test "x$as_val" = x""yes; then :
7285 cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7293 if test $ac_cv_header_sys_inttypes_h = yes; then
7294 HAVE_SYS_INTTYPES_H=1
7296 HAVE_SYS_INTTYPES_H=0
7299 if test $ac_cv_header_sys_bitypes_h = yes; then
7300 HAVE_SYS_BITYPES_H=1
7302 HAVE_SYS_BITYPES_H=0
7308 if test $APPLE_UNIVERSAL_BUILD = 0; then
7311 for gltype in ptrdiff_t size_t ; do
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7313 $as_echo_n "checking for bit size of $gltype... " >&6; }
7314 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7315 $as_echo_n "(cached) " >&6
7317 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7319 included before <wchar.h>. */
7328 #include <limits.h>"; then :
7334 eval gl_cv_bitsizeof_${gltype}=\$result
7337 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7339 $as_echo "$ac_res" >&6; }
7340 eval result=\$gl_cv_bitsizeof_${gltype}
7341 if test $result = unknown; then
7344 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7345 cat >>confdefs.h <<_ACEOF
7346 #define BITSIZEOF_${GLTYPE} $result
7349 eval BITSIZEOF_${GLTYPE}=\$result
7356 for gltype in sig_atomic_t wchar_t wint_t ; do
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7358 $as_echo_n "checking for bit size of $gltype... " >&6; }
7359 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7360 $as_echo_n "(cached) " >&6
7362 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7363 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7364 included before <wchar.h>. */
7373 #include <limits.h>"; then :
7379 eval gl_cv_bitsizeof_${gltype}=\$result
7382 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7384 $as_echo "$ac_res" >&6; }
7385 eval result=\$gl_cv_bitsizeof_${gltype}
7386 if test $result = unknown; then
7389 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7390 cat >>confdefs.h <<_ACEOF
7391 #define BITSIZEOF_${GLTYPE} $result
7394 eval BITSIZEOF_${GLTYPE}=\$result
7400 for gltype in sig_atomic_t wchar_t wint_t ; do
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7402 $as_echo_n "checking whether $gltype is signed... " >&6; }
7403 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7404 $as_echo_n "(cached) " >&6
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7409 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7410 included before <wchar.h>. */
7419 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7428 if ac_fn_c_try_compile "$LINENO"; then :
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 eval gl_cv_type_${gltype}_signed=\$result
7437 eval ac_res=\$gl_cv_type_${gltype}_signed
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7439 $as_echo "$ac_res" >&6; }
7440 eval result=\$gl_cv_type_${gltype}_signed
7441 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7442 if test "$result" = yes; then
7443 cat >>confdefs.h <<_ACEOF
7444 #define HAVE_SIGNED_${GLTYPE} 1
7447 eval HAVE_SIGNED_${GLTYPE}=1
7449 eval HAVE_SIGNED_${GLTYPE}=0
7454 gl_cv_type_ptrdiff_t_signed=yes
7455 gl_cv_type_size_t_signed=no
7456 if test $APPLE_UNIVERSAL_BUILD = 0; then
7459 for gltype in ptrdiff_t size_t ; do
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7461 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7462 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7463 $as_echo_n "(cached) " >&6
7465 eval gl_cv_type_${gltype}_suffix=no
7466 eval result=\$gl_cv_type_${gltype}_signed
7467 if test "$result" = yes; then
7472 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7475 l) gltype1='long int';;
7476 ll) gltype1='long long int';;
7477 i64) gltype1='__int64';;
7478 u) gltype1='unsigned int';;
7479 ul) gltype1='unsigned long int';;
7480 ull) gltype1='unsigned long long int';;
7481 ui64)gltype1='unsigned __int64';;
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7486 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7487 included before <wchar.h>. */
7497 extern $gltype1 foo;
7506 if ac_fn_c_try_compile "$LINENO"; then :
7507 eval gl_cv_type_${gltype}_suffix=\$glsuf
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 eval result=\$gl_cv_type_${gltype}_suffix
7511 test "$result" != no && break
7514 eval ac_res=\$gl_cv_type_${gltype}_suffix
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7516 $as_echo "$ac_res" >&6; }
7517 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7518 eval result=\$gl_cv_type_${gltype}_suffix
7519 test "$result" = no && result=
7520 eval ${GLTYPE}_SUFFIX=\$result
7521 cat >>confdefs.h <<_ACEOF
7522 #define ${GLTYPE}_SUFFIX $result
7531 for gltype in sig_atomic_t wchar_t wint_t ; do
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7533 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7534 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7535 $as_echo_n "(cached) " >&6
7537 eval gl_cv_type_${gltype}_suffix=no
7538 eval result=\$gl_cv_type_${gltype}_signed
7539 if test "$result" = yes; then
7544 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7547 l) gltype1='long int';;
7548 ll) gltype1='long long int';;
7549 i64) gltype1='__int64';;
7550 u) gltype1='unsigned int';;
7551 ul) gltype1='unsigned long int';;
7552 ull) gltype1='unsigned long long int';;
7553 ui64)gltype1='unsigned __int64';;
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7558 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7559 included before <wchar.h>. */
7569 extern $gltype1 foo;
7578 if ac_fn_c_try_compile "$LINENO"; then :
7579 eval gl_cv_type_${gltype}_suffix=\$glsuf
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 eval result=\$gl_cv_type_${gltype}_suffix
7583 test "$result" != no && break
7586 eval ac_res=\$gl_cv_type_${gltype}_suffix
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7588 $as_echo "$ac_res" >&6; }
7589 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7590 eval result=\$gl_cv_type_${gltype}_suffix
7591 test "$result" = no && result=
7592 eval ${GLTYPE}_SUFFIX=\$result
7593 cat >>confdefs.h <<_ACEOF
7594 #define ${GLTYPE}_SUFFIX $result
7601 if test $BITSIZEOF_WINT_T -lt 32; then
7608 if test -n "$STDINT_H"; then
7609 GL_GENERATE_STDINT_H_TRUE=
7610 GL_GENERATE_STDINT_H_FALSE='#'
7612 GL_GENERATE_STDINT_H_TRUE='#'
7613 GL_GENERATE_STDINT_H_FALSE=
7624 HAVE_DECL_IMAXABS=1;
7625 HAVE_DECL_IMAXDIV=1;
7626 HAVE_DECL_STRTOIMAX=1;
7627 HAVE_DECL_STRTOUMAX=1;
7628 REPLACE_STRTOIMAX=0;
7629 INT32_MAX_LT_INTMAX_MAX=1;
7630 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7631 PRI_MACROS_BROKEN=0;
7632 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7633 UINT32_MAX_LT_UINTMAX_MAX=1;
7634 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7650 if test $gl_cv_have_include_next = yes; then
7651 gl_cv_next_inttypes_h='<'inttypes.h'>'
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7654 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7655 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7656 $as_echo_n "(cached) " >&6
7659 if test $ac_cv_header_inttypes_h = yes; then
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 #include <inttypes.h>
7668 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7669 *) gl_absname_cpp="$ac_cpp" ;;
7674 gl_dirsep_regex='[/\\]'
7677 gl_dirsep_regex='\/'
7680 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7682 gl_header_literal_regex=`echo 'inttypes.h' \
7683 |
sed -e "$gl_make_literal_regex_sed"`
7684 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7685 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7690 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7691 sed -n "$gl_absolute_header_sed"`'"'
7693 gl_cv_next_inttypes_h='<'inttypes.h'>'
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7699 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7701 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7703 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7704 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7705 gl_next_as_first_directive='<'inttypes.h'>'
7707 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7708 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7710 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7719 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7720 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7722 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7723 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7724 $as_echo_n "(cached) " >&6
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 #include <inttypes.h>
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740 eval "$as_gl_Symbol=yes"
7742 eval "$as_gl_Symbol=no"
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 eval ac_res=\$$as_gl_Symbol
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7748 $as_echo "$ac_res" >&6; }
7749 eval as_val=\$$as_gl_Symbol
7750 if test "x$as_val" = x""yes; then :
7751 cat >>confdefs.h <<_ACEOF
7752 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7755 eval ac_cv_have_decl_$gl_func=yes
7761 for ac_header in inttypes.h
7763 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7764 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_INTTYPES_H 1
7773 if test $ac_cv_header_inttypes_h = yes; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7775 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7776 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7783 #include <inttypes.h>
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 gt_cv_inttypes_pri_broken=no
7799 gt_cv_inttypes_pri_broken=yes
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7805 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7807 if test "$gt_cv_inttypes_pri_broken" = yes; then
7809 cat >>confdefs.h <<_ACEOF
7810 #define PRI_MACROS_BROKEN 1
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7821 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7822 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7826 if test "$cross_compiling" = yes; then :
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7831 #if defined arm || defined __arm || defined __arm__
7836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7837 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7838 gl_cv_cc_double_expbit0="unknown"
7842 if test "${ac_cv_c_bigendian+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7845 ac_cv_c_bigendian=unknown
7846 # See if we're dealing with a universal compiler.
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #ifndef __APPLE_CC__
7850 not a universal capable compiler
7855 if ac_fn_c_try_compile "$LINENO"; then :
7857 # Check for potential -arch flags. It is not universal unless
7858 # there are at least two -arch flags with different values.
7861 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7862 if test -n "$ac_prev"; then
7864 i?86 | x86_64 | ppc | ppc64)
7865 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7868 ac_cv_c_bigendian=universal
7874 elif test "x$ac_word" = "x-arch"; then
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 if test $ac_cv_c_bigendian = unknown; then
7881 # See if sys/param.h defines the BYTE_ORDER macro.
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 #include <sys/types.h>
7885 #include <sys/param.h>
7890 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7891 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 # It does; now see whether it defined to BIG_ENDIAN or not.
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <sys/types.h>
7905 #include <sys/param.h>
7910 #if BYTE_ORDER != BIG_ENDIAN
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 ac_cv_c_bigendian=yes
7921 ac_cv_c_bigendian=no
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 if test $ac_cv_c_bigendian = unknown; then
7928 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7936 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 # It does; now see whether it defined to _BIG_ENDIAN or not.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7961 if ac_fn_c_try_compile "$LINENO"; then :
7962 ac_cv_c_bigendian=yes
7964 ac_cv_c_bigendian=no
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 if test $ac_cv_c_bigendian = unknown; then
7971 # Compile a test program.
7972 if test "$cross_compiling" = yes; then :
7973 # Try to guess by grepping values from an object file.
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 short int ascii_mm[] =
7977 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7978 short int ascii_ii[] =
7979 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7980 int use_ascii (int i) {
7981 return ascii_mm[i] + ascii_ii[i];
7983 short int ebcdic_ii[] =
7984 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7985 short int ebcdic_mm[] =
7986 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7987 int use_ebcdic (int i) {
7988 return ebcdic_mm[i] + ebcdic_ii[i];
7995 return use_ascii (foo) == use_ebcdic (foo);
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8002 ac_cv_c_bigendian=yes
8004 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8005 if test "$ac_cv_c_bigendian" = unknown; then
8006 ac_cv_c_bigendian=no
8008 # finding both strings is unlikely to happen, but who knows?
8009 ac_cv_c_bigendian=unknown
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 $ac_includes_default
8022 /* Are we little or big endian? From Harbison&Steele. */
8026 char c[sizeof (long int)];
8029 return u.c[sizeof (long int) - 1] == 1;
8035 if ac_fn_c_try_run "$LINENO"; then :
8036 ac_cv_c_bigendian=no
8038 ac_cv_c_bigendian=yes
8040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8041 conftest.$ac_objext conftest.beam conftest.$ac_ext
8047 case $ac_cv_c_bigendian in #(
8049 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8051 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8054 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8058 gl_cv_cc_double_expbit0="unknown" ;;
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8075 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8076 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8077 static unsigned int ored_words[NWORDS];
8078 static unsigned int anded_words[NWORDS];
8079 static void add_to_ored_words (double x)
8083 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8084 memset (&m, 0, sizeof (memory_double));
8086 for (i = 0; i < NWORDS; i++)
8088 ored_words[i] |= m.word[i];
8089 anded_words[i] &= m.word[i];
8095 FILE *fp = fopen ("conftest.out", "w");
8098 for (j = 0; j < NWORDS; j++)
8099 anded_words[j] = ~ (unsigned int) 0;
8100 add_to_ored_words (0.25);
8101 add_to_ored_words (0.5);
8102 add_to_ored_words (1.0);
8103 add_to_ored_words (2.0);
8104 add_to_ored_words (4.0);
8105 /* Remove bits that are common (e.g. if representation of the first mantissa
8106 bit is explicit). */
8107 for (j = 0; j < NWORDS; j++)
8108 ored_words[j] &= ~anded_words[j];
8109 /* Now find the nonzero word. */
8110 for (j = 0; j < NWORDS; j++)
8111 if (ored_words[j] != 0)
8116 for (i = j + 1; i < NWORDS; i++)
8117 if (ored_words[i] != 0)
8119 fprintf (fp, "unknown");
8120 return (fclose (fp) != 0);
8123 if ((ored_words[j] >> i) & 1)
8125 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8126 return (fclose (fp) != 0);
8129 fprintf (fp, "unknown");
8130 return (fclose (fp) != 0);
8134 if ac_fn_c_try_run "$LINENO"; then :
8135 gl_cv_cc_double_expbit0=`cat conftest.out
`
8137 gl_cv_cc_double_expbit0="unknown"
8139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8140 conftest.$ac_objext conftest.beam conftest.$ac_ext
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8147 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8148 case "$gl_cv_cc_double_expbit0" in
8150 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
8151 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
8153 cat >>confdefs.h <<_ACEOF
8154 #define DBL_EXPBIT0_WORD $word
8158 cat >>confdefs.h <<_ACEOF
8159 #define DBL_EXPBIT0_BIT $bit
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8167 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8168 if test "${ac_cv_c_bigendian+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8171 ac_cv_c_bigendian=unknown
8172 # See if we're dealing with a universal compiler.
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #ifndef __APPLE_CC__
8176 not a universal capable compiler
8181 if ac_fn_c_try_compile "$LINENO"; then :
8183 # Check for potential -arch flags. It is not universal unless
8184 # there are at least two -arch flags with different values.
8187 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8188 if test -n "$ac_prev"; then
8190 i?86 | x86_64 | ppc | ppc64)
8191 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8194 ac_cv_c_bigendian=universal
8200 elif test "x$ac_word" = "x-arch"; then
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8206 if test $ac_cv_c_bigendian = unknown; then
8207 # See if sys/param.h defines the BYTE_ORDER macro.
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209 /* end confdefs.h. */
8210 #include <sys/types.h>
8211 #include <sys/param.h>
8216 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8217 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8226 if ac_fn_c_try_compile "$LINENO"; then :
8227 # It does; now see whether it defined to BIG_ENDIAN or not.
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/param.h>
8236 #if BYTE_ORDER != BIG_ENDIAN
8244 if ac_fn_c_try_compile "$LINENO"; then :
8245 ac_cv_c_bigendian=yes
8247 ac_cv_c_bigendian=no
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 if test $ac_cv_c_bigendian = unknown; then
8254 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8262 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8270 if ac_fn_c_try_compile "$LINENO"; then :
8271 # It does; now see whether it defined to _BIG_ENDIAN or not.
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 ac_cv_c_bigendian=yes
8290 ac_cv_c_bigendian=no
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 if test $ac_cv_c_bigendian = unknown; then
8297 # Compile a test program.
8298 if test "$cross_compiling" = yes; then :
8299 # Try to guess by grepping values from an object file.
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 short int ascii_mm[] =
8303 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8304 short int ascii_ii[] =
8305 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8306 int use_ascii (int i) {
8307 return ascii_mm[i] + ascii_ii[i];
8309 short int ebcdic_ii[] =
8310 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8311 short int ebcdic_mm[] =
8312 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8313 int use_ebcdic (int i) {
8314 return ebcdic_mm[i] + ebcdic_ii[i];
8321 return use_ascii (foo) == use_ebcdic (foo);
8326 if ac_fn_c_try_compile "$LINENO"; then :
8327 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8328 ac_cv_c_bigendian=yes
8330 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8331 if test "$ac_cv_c_bigendian" = unknown; then
8332 ac_cv_c_bigendian=no
8334 # finding both strings is unlikely to happen, but who knows?
8335 ac_cv_c_bigendian=unknown
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 $ac_includes_default
8348 /* Are we little or big endian? From Harbison&Steele. */
8352 char c[sizeof (long int)];
8355 return u.c[sizeof (long int) - 1] == 1;
8361 if ac_fn_c_try_run "$LINENO"; then :
8362 ac_cv_c_bigendian=no
8364 ac_cv_c_bigendian=yes
8366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8367 conftest.$ac_objext conftest.beam conftest.$ac_ext
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8373 $as_echo "$ac_cv_c_bigendian" >&6; }
8374 case $ac_cv_c_bigendian in #(
8376 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8382 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8386 as_fn_error "unknown endianness
8387 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8393 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8394 if test "${am_cv_langinfo_codeset+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <langinfo.h>
8403 char* cs = nl_langinfo(CODESET); return !cs;
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 am_cv_langinfo_codeset=yes
8411 am_cv_langinfo_codeset=no
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8418 $as_echo "$am_cv_langinfo_codeset" >&6; }
8419 if test $am_cv_langinfo_codeset = yes; then
8421 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8435 $as_echo_n "checking for working fcntl.h... " >&6; }
8436 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8437 $as_echo_n "(cached) " >&6
8439 if test "$cross_compiling" = yes; then :
8440 gl_cv_header_working_fcntl_h=cross-compiling
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 #include <sys/types.h>
8445 #include <sys/stat.h>
8447 # include <unistd.h>
8448 #else /* on Windows with MSVC */
8450 # include <stdlib.h>
8451 # defined sleep(n) _sleep ((n) * 1000)
8458 #define O_NOFOLLOW 0
8460 static int const constants[] =
8462 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8463 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8470 int result = !constants;
8473 static char const sym[] = "conftest.sym";
8474 if (symlink ("/dev/null", sym) != 0)
8478 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8485 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8489 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8500 static char const file[] = "confdefs.h";
8501 int fd = open (file, O_RDONLY | O_NOATIME);
8507 if (fstat (fd, &st0) != 0)
8513 if (read (fd, &c, 1) != 1)
8517 if (close (fd) != 0)
8522 if (stat (file, &st1) != 0)
8525 if (st0.st_atime != st1.st_atime)
8537 if ac_fn_c_try_run "$LINENO"; then :
8538 gl_cv_header_working_fcntl_h=yes
8541 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8542 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8543 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8544 *) gl_cv_header_working_fcntl_h='no';;
8547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8548 conftest.$ac_objext conftest.beam conftest.$ac_ext
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8553 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8555 case $gl_cv_header_working_fcntl_h in #(
8556 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8560 cat >>confdefs.h <<_ACEOF
8561 #define HAVE_WORKING_O_NOATIME $ac_val
8565 case $gl_cv_header_working_fcntl_h in #(
8566 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8570 cat >>confdefs.h <<_ACEOF
8571 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8575 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8576 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8582 cat >>confdefs.h <<_ACEOF
8583 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8588 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8589 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8595 #include <features.h>
8596 #ifdef __GNU_LIBRARY__
8597 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8607 $EGREP "Lucky" >/dev/null 2>&1; then :
8608 ac_cv_gnu_library_2_1=yes
8610 ac_cv_gnu_library_2_1=no
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8618 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8620 GLIBC21="$ac_cv_gnu_library_2_1"
8632 GNULIB_MBSNRTOWCS=0;
8635 GNULIB_WCSNRTOMBS=0;
8652 GNULIB_WCSCASECMP=0;
8653 GNULIB_WCSNCASECMP=0;
8703 HAVE_DECL_WCWIDTH=1;
8704 REPLACE_MBSTATE_T=0;
8710 REPLACE_MBSRTOWCS=0;
8711 REPLACE_MBSNRTOWCS=0;
8713 REPLACE_WCSRTOMBS=0;
8714 REPLACE_WCSNRTOMBS=0;
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8726 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8727 if test "${gt_cv_locale_ja+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8736 #if HAVE_LANGINFO_CODESET
8737 # include <langinfo.h>
8746 /* Check whether the given locale name is recognized by the system. */
8747 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8748 /* On native Windows, setlocale(category, "") looks at the system settings,
8749 not at the environment variables. Also, when an encoding suffix such
8750 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8751 category of the locale to "C". */
8752 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8753 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8756 if (setlocale (LC_ALL, "") == NULL) return 1;
8758 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8759 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8760 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8761 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8762 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8763 some unit tests fail.
8764 On MirBSD 10, when an unsupported locale is specified, setlocale()
8765 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8766 #if HAVE_LANGINFO_CODESET
8768 const char *cs = nl_langinfo (CODESET);
8769 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8770 || strcmp (cs, "UTF-8") == 0)
8775 /* On Cygwin, avoid locale names without encoding suffix, because the
8776 locale_charset() function relies on the encoding suffix. Note that
8777 LC_ALL is set on the command line. */
8778 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8780 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8782 if (MB_CUR_MAX == 1)
8784 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8785 This excludes the UTF-8 encoding (except on MirBSD). */
8786 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8787 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8788 for (p = buf; *p != '\0'; p++)
8789 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8796 (eval $ac_link) 2>&5
8798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8799 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8801 # Handle native Windows specially, because there setlocale() interprets
8802 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8803 # "fr" or "fra" as "French" or "French_France.1252",
8804 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8805 # "ja" as "Japanese" or "Japanese_Japan.932",
8808 # Note that on native Windows, the Japanese locale is
8809 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8810 # cannot use it here.
8811 gt_cv_locale_ja=none
8814 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8815 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8816 # configure script would override the LC_ALL setting. Likewise for
8817 # LC_CTYPE, which is also set at the beginning of the configure script.
8818 # Test for the AIX locale name.
8819 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8820 gt_cv_locale_ja=ja_JP
8822 # Test for the locale name with explicit encoding suffix.
8823 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8824 gt_cv_locale_ja=ja_JP.EUC-JP
8826 # Test for the HP-UX, OSF/1, NetBSD locale name.
8827 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8828 gt_cv_locale_ja=ja_JP.eucJP
8830 # Test for the IRIX, FreeBSD locale name.
8831 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8832 gt_cv_locale_ja=ja_JP.EUC
8834 # Test for the Solaris 7 locale name.
8835 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8838 # Special test for NetBSD 1.6.
8839 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8840 gt_cv_locale_ja=ja_JP.eucJP
8843 gt_cv_locale_ja=none
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8857 $as_echo "$gt_cv_locale_ja" >&6; }
8858 LOCALE_JA=$gt_cv_locale_ja
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8865 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8866 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8876 #if HAVE_LANGINFO_CODESET
8877 # include <langinfo.h>
8886 /* Check whether the given locale name is recognized by the system. */
8887 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8888 /* On native Windows, setlocale(category, "") looks at the system settings,
8889 not at the environment variables. Also, when an encoding suffix such
8890 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8891 category of the locale to "C". */
8892 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8893 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8896 if (setlocale (LC_ALL, "") == NULL) return 1;
8898 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8899 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8900 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8901 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8902 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8903 some unit tests fail.
8904 On MirBSD 10, when an unsupported locale is specified, setlocale()
8905 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8906 #if HAVE_LANGINFO_CODESET
8908 const char *cs = nl_langinfo (CODESET);
8909 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8910 || strcmp (cs, "UTF-8") == 0)
8915 /* On Cygwin, avoid locale names without encoding suffix, because the
8916 locale_charset() function relies on the encoding suffix. Note that
8917 LC_ALL is set on the command line. */
8918 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8920 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8921 This excludes the UTF-8 encoding (except on MirBSD). */
8922 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8923 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8924 for (p = buf; *p != '\0'; p++)
8925 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8927 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8928 single wide character. This excludes the GB2312 and GBK encodings. */
8929 if (mblen ("\203\062\332\066", 5) != 4)
8935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8936 (eval $ac_link) 2>&5
8938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8939 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8941 # Handle native Windows specially, because there setlocale() interprets
8942 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8943 # "fr" or "fra" as "French" or "French_France.1252",
8944 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8945 # "ja" as "Japanese" or "Japanese_Japan.932",
8948 # Test for the hypothetical native Windows locale name.
8949 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8950 gt_cv_locale_zh_CN=Chinese_China.54936
8953 gt_cv_locale_zh_CN=none
8957 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8958 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8959 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8960 gt_cv_locale_zh_CN=none
8963 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8964 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8965 # configure script would override the LC_ALL setting. Likewise for
8966 # LC_CTYPE, which is also set at the beginning of the configure script.
8967 # Test for the locale name without encoding suffix.
8968 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8969 gt_cv_locale_zh_CN=zh_CN
8971 # Test for the locale name with explicit encoding suffix.
8972 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8973 gt_cv_locale_zh_CN=zh_CN.GB18030
8976 gt_cv_locale_zh_CN=none
8982 # If there was a link error, due to mblen(), the system is so old that
8983 # it certainly doesn't have a chinese locale.
8984 gt_cv_locale_zh_CN=none
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8990 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8991 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8997 $as_echo_n "checking for a french Unicode locale... " >&6; }
8998 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9007 #if HAVE_LANGINFO_CODESET
9008 # include <langinfo.h>
9015 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9016 imitates locale dependent behaviour by looking at the environment
9017 variables, and all locales use the UTF-8 encoding. */
9018 #if !(defined __BEOS__ || defined __HAIKU__)
9019 /* Check whether the given locale name is recognized by the system. */
9020 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9021 /* On native Windows, setlocale(category, "") looks at the system settings,
9022 not at the environment variables. Also, when an encoding suffix such
9023 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9024 category of the locale to "C". */
9025 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9026 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9029 if (setlocale (LC_ALL, "") == NULL) return 1;
9031 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9032 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9033 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9034 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9035 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9036 some unit tests fail. */
9037 # if HAVE_LANGINFO_CODESET
9039 const char *cs = nl_langinfo (CODESET);
9040 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9045 /* On Cygwin, avoid locale names without encoding suffix, because the
9046 locale_charset() function relies on the encoding suffix. Note that
9047 LC_ALL is set on the command line. */
9048 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9050 /* Check whether in the abbreviation of the second month, the second
9051 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9052 two bytes long, with UTF-8 encoding. */
9053 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9054 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9055 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9058 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9059 /* Check whether the decimal separator is a comma.
9060 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9061 are nl_langinfo(RADIXCHAR) are both ".". */
9062 if (localeconv () ->decimal_point[0] != ',') return 1;
9068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9069 (eval $ac_link) 2>&5
9071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9074 # Handle native Windows specially, because there setlocale() interprets
9075 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9076 # "fr" or "fra" as "French" or "French_France.1252",
9077 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9078 # "ja" as "Japanese" or "Japanese_Japan.932",
9081 # Test for the hypothetical native Windows locale name.
9082 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9083 gt_cv_locale_fr_utf8=French_France.65001
9086 gt_cv_locale_fr_utf8=none
9090 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9091 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9092 # configure script would override the LC_ALL setting. Likewise for
9093 # LC_CTYPE, which is also set at the beginning of the configure script.
9094 # Test for the usual locale name.
9095 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9096 gt_cv_locale_fr_utf8=fr_FR
9098 # Test for the locale name with explicit encoding suffix.
9099 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9100 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9102 # Test for the Solaris 7 locale name.
9103 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9104 gt_cv_locale_fr_utf8=fr.UTF-8
9107 gt_cv_locale_fr_utf8=none
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9118 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9119 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9126 $as_echo_n "checking for a traditional french locale... " >&6; }
9127 if test "${gt_cv_locale_fr+set}" = set; then :
9128 $as_echo_n "(cached) " >&6
9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9136 #if HAVE_LANGINFO_CODESET
9137 # include <langinfo.h>
9144 /* Check whether the given locale name is recognized by the system. */
9145 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9146 /* On native Windows, setlocale(category, "") looks at the system settings,
9147 not at the environment variables. Also, when an encoding suffix such
9148 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9149 category of the locale to "C". */
9150 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9151 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9154 if (setlocale (LC_ALL, "") == NULL) return 1;
9156 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9157 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9158 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9159 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9160 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9161 some unit tests fail.
9162 On MirBSD 10, when an unsupported locale is specified, setlocale()
9163 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9164 #if HAVE_LANGINFO_CODESET
9166 const char *cs = nl_langinfo (CODESET);
9167 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9168 || strcmp (cs, "UTF-8") == 0)
9173 /* On Cygwin, avoid locale names without encoding suffix, because the
9174 locale_charset() function relies on the encoding suffix. Note that
9175 LC_ALL is set on the command line. */
9176 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9178 /* Check whether in the abbreviation of the second month, the second
9179 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9180 one byte long. This excludes the UTF-8 encoding. */
9181 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9182 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9183 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9184 /* Check whether the decimal separator is a comma.
9185 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9186 are nl_langinfo(RADIXCHAR) are both ".". */
9187 if (localeconv () ->decimal_point[0] != ',') return 1;
9193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9194 (eval $ac_link) 2>&5
9196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9197 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9199 # Handle native Windows specially, because there setlocale() interprets
9200 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9201 # "fr" or "fra" as "French" or "French_France.1252",
9202 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9203 # "ja" as "Japanese" or "Japanese_Japan.932",
9206 # Test for the native Windows locale name.
9207 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9208 gt_cv_locale_fr=French_France.1252
9211 gt_cv_locale_fr=none
9215 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9216 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9217 # configure script would override the LC_ALL setting. Likewise for
9218 # LC_CTYPE, which is also set at the beginning of the configure script.
9219 # Test for the usual locale name.
9220 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9221 gt_cv_locale_fr=fr_FR
9223 # Test for the locale name with explicit encoding suffix.
9224 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9225 gt_cv_locale_fr=fr_FR.ISO-8859-1
9227 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9228 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9229 gt_cv_locale_fr=fr_FR.ISO8859-1
9231 # Test for the HP-UX locale name.
9232 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9233 gt_cv_locale_fr=fr_FR.iso88591
9235 # Test for the Solaris 7 locale name.
9236 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9240 gt_cv_locale_fr=none
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9253 $as_echo "$gt_cv_locale_fr" >&6; }
9254 LOCALE_FR=$gt_cv_locale_fr
9279 GNULIB_STRCASESTR=0;
9286 GNULIB_MBSCASECMP=0;
9287 GNULIB_MBSNCASECMP=0;
9288 GNULIB_MBSPCASECMP=0;
9289 GNULIB_MBSCASESTR=0;
9296 GNULIB_STRERROR_R=0;
9298 GNULIB_STRVERSCMP=0;
9305 HAVE_DECL_MEMRCHR=1;
9311 HAVE_DECL_STRNDUP=1;
9312 HAVE_DECL_STRNLEN=1;
9316 HAVE_DECL_STRTOK_R=1;
9317 HAVE_DECL_STRERROR_R=1;
9318 HAVE_DECL_STRSIGNAL=1;
9325 REPLACE_STRCASESTR=0;
9326 REPLACE_STRCHRNUL=0;
9328 REPLACE_STRERROR_R=0;
9332 REPLACE_STRSIGNAL=0;
9334 UNDEFINE_STRTOK_R=0;
9340 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9341 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9342 # irrelevant for anonymous mappings.
9343 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9344 if test "x$ac_cv_func_mmap" = x""yes; then :
9351 # Try to allow MAP_ANONYMOUS.
9352 gl_have_mmap_anonymous=no
9353 if test $gl_have_mmap = yes; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9355 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9359 #include <sys/mman.h>
9360 #ifdef MAP_ANONYMOUS
9361 I cannot identify this map
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9367 gl_have_mmap_anonymous=yes
9371 if test $gl_have_mmap_anonymous != yes; then
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9375 #include <sys/mman.h>
9377 I cannot identify this map
9381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9382 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9384 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9386 gl_have_mmap_anonymous=yes
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9392 $as_echo "$gl_have_mmap_anonymous" >&6; }
9393 if test $gl_have_mmap_anonymous = yes; then
9395 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9405 if test $HAVE_MEMCHR = 1; then
9406 # Detect platform-specific bugs in some versions of glibc:
9407 # memchr should not dereference anything with length 0
9408 # http://bugzilla.redhat.com/499689
9409 # memchr should not dereference overestimated length after a match
9410 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9411 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9412 # Assume that memchr works on platforms that lack mprotect.
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9414 $as_echo_n "checking whether memchr works... " >&6; }
9415 if test "${gl_cv_func_memchr_works+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9418 if test "$cross_compiling" = yes; then :
9419 gl_cv_func_memchr_works="guessing no"
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9427 # include <unistd.h>
9428 # include <sys/types.h>
9429 # include <sys/mman.h>
9441 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9442 # if HAVE_MAP_ANONYMOUS
9443 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9445 # else /* !HAVE_MAP_ANONYMOUS */
9446 const int flags = MAP_FILE | MAP_PRIVATE;
9447 int fd = open ("/dev/zero", O_RDONLY, 0666);
9451 int pagesize = getpagesize ();
9453 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9455 if (two_pages != (char *)(-1)
9456 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9457 fence = two_pages + pagesize;
9462 if (memchr (fence, 0, 0))
9464 strcpy (fence - 9, "12345678");
9465 if (memchr (fence - 9, 0, 79) != fence - 1)
9467 if (memchr (fence - 1, 0, 3) != fence - 1)
9476 if ac_fn_c_try_run "$LINENO"; then :
9477 gl_cv_func_memchr_works=yes
9479 gl_cv_func_memchr_works=no
9481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9482 conftest.$ac_objext conftest.beam conftest.$ac_ext
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9487 $as_echo "$gl_cv_func_memchr_works" >&6; }
9488 if test "$gl_cv_func_memchr_works" != yes; then
9493 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9494 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9500 cat >>confdefs.h <<_ACEOF
9501 #define HAVE_DECL_MEMMEM $ac_have_decl
9508 for ac_func in memmem
9510 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9511 if test "x$ac_cv_func_memmem" = x""yes; then :
9512 cat >>confdefs.h <<_ACEOF
9513 #define HAVE_MEMMEM 1
9519 if test $ac_cv_func_memmem = yes; then
9525 if test $ac_cv_have_decl_memmem = no; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9529 $as_echo_n "checking whether memmem works... " >&6; }
9530 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9533 if test "$cross_compiling" = yes; then :
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9537 #ifdef __GNU_LIBRARY__
9538 #include <features.h>
9539 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9540 || __GLIBC_MINOR__ > 12)) \
9541 || (__GLIBC__ > 2)) \
9542 || defined __UCLIBC__
9545 #elif defined __CYGWIN__
9546 #include <cygwin/version.h>
9547 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9556 $EGREP "Lucky user" >/dev/null 2>&1; then :
9557 gl_cv_func_memmem_works_always="guessing yes"
9559 gl_cv_func_memmem_works_always="guessing no"
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9568 #include <string.h> /* for memmem */
9569 #define P "_EF_BF_BD"
9570 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9571 #define NEEDLE P P P P P
9578 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9580 /* Check for empty needle behavior. */
9582 const char *haystack = "AAA";
9583 if (memmem (haystack, 3, NULL, 0) != haystack)
9592 if ac_fn_c_try_run "$LINENO"; then :
9593 gl_cv_func_memmem_works_always=yes
9595 gl_cv_func_memmem_works_always=no
9597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9598 conftest.$ac_objext conftest.beam conftest.$ac_ext
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9604 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9605 case "$gl_cv_func_memmem_works_always" in
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9617 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9618 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622 /* end confdefs.h. */
9624 #include <stdbool.h>
9626 "error: bool is not defined"
9629 "error: false is not defined"
9632 "error: false is not 0"
9635 "error: true is not defined"
9638 "error: true is not 1"
9640 #ifndef __bool_true_false_are_defined
9641 "error: __bool_true_false_are_defined is not defined"
9644 struct s { _Bool s: 1; _Bool t; } s;
9646 char a[true == 1 ? 1 : -1];
9647 char b[false == 0 ? 1 : -1];
9648 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9649 char d[(bool) 0.5 == true ? 1 : -1];
9650 /* See body of main program for 'e'. */
9651 char f[(_Bool) 0.0 == false ? 1 : -1];
9653 char h[sizeof (_Bool)];
9655 enum { j = false, k = true, l = false * true, m = true * 256 };
9656 /* The following fails for
9657 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9659 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9660 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9661 /* Catch a bug in an HP-UX C compiler. See
9662 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9663 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9675 /* Refer to every declared value, to avoid compiler optimizations. */
9676 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9677 + !m + !n + !o + !p + !q + !pq);
9683 if ac_fn_c_try_compile "$LINENO"; then :
9684 ac_cv_header_stdbool_h=yes
9686 ac_cv_header_stdbool_h=no
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9691 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9692 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9693 if test "x$ac_cv_type__Bool" = x""yes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE__BOOL 1
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9709 $as_echo_n "checking for wchar_t... " >&6; }
9710 if test "${gt_cv_c_wchar_t+set}" = set; then :
9711 $as_echo_n "(cached) " >&6
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9716 wchar_t foo = (wchar_t)'\0';
9725 if ac_fn_c_try_compile "$LINENO"; then :
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9733 $as_echo "$gt_cv_c_wchar_t" >&6; }
9734 if test $gt_cv_c_wchar_t = yes; then
9736 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9741 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9742 if test "${ac_cv_c_restrict+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9746 # The order here caters to the fact that C++ does not require restrict.
9747 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9750 typedef int * int_ptr;
9751 int foo (int_ptr $ac_kw ip) {
9765 if ac_fn_c_try_compile "$LINENO"; then :
9766 ac_cv_c_restrict=$ac_kw
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769 test "$ac_cv_c_restrict" != no && break
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9774 $as_echo "$ac_cv_c_restrict" >&6; }
9776 case $ac_cv_c_restrict in
9778 no) $as_echo "#define restrict /**/" >>confdefs.h
9780 *) cat >>confdefs.h <<_ACEOF
9781 #define restrict $ac_cv_c_restrict
9797 if test $gl_cv_have_include_next = yes; then
9798 gl_cv_next_string_h='<'string.h'>'
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9801 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9802 if test "${gl_cv_next_string_h+set}" = set; then :
9803 $as_echo_n "(cached) " >&6
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9813 *) gl_absname_cpp="$ac_cpp" ;;
9818 gl_dirsep_regex='[/\\]'
9821 gl_dirsep_regex='\/'
9824 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9826 gl_header_literal_regex=`echo 'string.h' \
9827 |
sed -e "$gl_make_literal_regex_sed"`
9828 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9829 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9834 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9835 sed -n "$gl_absolute_header_sed"`'"'
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9840 $as_echo "$gl_cv_next_string_h" >&6; }
9842 NEXT_STRING_H=$gl_cv_next_string_h
9844 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9846 gl_next_as_first_directive='<'string.h'>'
9848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9849 gl_next_as_first_directive=$gl_cv_next_string_h
9851 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9858 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
9859 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9861 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9862 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9863 $as_echo_n "(cached) " >&6
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9878 if ac_fn_c_try_compile "$LINENO"; then :
9879 eval "$as_gl_Symbol=yes"
9881 eval "$as_gl_Symbol=no"
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 eval ac_res=\$$as_gl_Symbol
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9887 $as_echo "$ac_res" >&6; }
9888 eval as_val=\$$as_gl_Symbol
9889 if test "x$as_val" = x""yes; then :
9890 cat >>confdefs.h <<_ACEOF
9891 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9894 eval ac_cv_have_decl_$gl_func=yes
9902 if test "$gl_cv_func_memchr_works" != yes; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9906 $as_echo_n "checking whether strstr works... " >&6; }
9907 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
9910 if test "$cross_compiling" = yes; then :
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9914 #ifdef __GNU_LIBRARY__
9915 #include <features.h>
9916 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9917 || defined __UCLIBC__
9920 #elif defined __CYGWIN__
9921 #include <cygwin/version.h>
9922 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9931 $EGREP "Lucky user" >/dev/null 2>&1; then :
9932 gl_cv_func_strstr_works_always="guessing yes"
9934 gl_cv_func_strstr_works_always="guessing no"
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9943 #include <string.h> /* for strstr */
9944 #define P "_EF_BF_BD"
9945 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9946 #define NEEDLE P P P P P
9951 return !!strstr (HAYSTACK, NEEDLE);
9957 if ac_fn_c_try_run "$LINENO"; then :
9958 gl_cv_func_strstr_works_always=yes
9960 gl_cv_func_strstr_works_always=no
9962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9963 conftest.$ac_objext conftest.beam conftest.$ac_ext
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9969 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
9970 case "$gl_cv_func_strstr_works_always" in
10005 REPLACE_FUTIMENS=0;
10011 REPLACE_UTIMENSAT=0;
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10014 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10015 if test "${ac_cv_header_stat_broken+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 #include <sys/types.h>
10021 #include <sys/stat.h>
10023 #if defined S_ISBLK && defined S_IFDIR
10024 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10027 #if defined S_ISBLK && defined S_IFCHR
10028 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10031 #if defined S_ISLNK && defined S_IFREG
10032 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10035 #if defined S_ISSOCK && defined S_IFREG
10036 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10040 if ac_fn_c_try_compile "$LINENO"; then :
10041 ac_cv_header_stat_broken=no
10043 ac_cv_header_stat_broken=yes
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10048 $as_echo "$ac_cv_header_stat_broken" >&6; }
10049 if test $ac_cv_header_stat_broken = yes; then
10051 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10057 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10058 if test "x$ac_cv_type_mode_t" = x""yes; then :
10062 cat >>confdefs.h <<_ACEOF
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10069 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10070 if test -z "$MKDIR_P"; then
10071 if test "${ac_cv_path_mkdir+set}" = set; then :
10072 $as_echo_n "(cached) " >&6
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10078 test -z "$as_dir" && as_dir=.
10079 for ac_prog in mkdir gmkdir; do
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10082 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10083 'mkdir (GNU coreutils) '* | \
10084 'mkdir (coreutils) '* | \
10085 'mkdir (fileutils) '4.1*)
10086 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10096 if test "${ac_cv_path_mkdir+set}" = set; then
10097 MKDIR_P="$ac_cv_path_mkdir -p"
10099 # As a last resort, use the slow shell script. Don't cache a
10100 # value for MKDIR_P within a source directory, because that will
10101 # break other packages using the cache if that directory is
10102 # removed, or if the value is a relative name.
10103 test -d ./--version && rmdir ./--version
10104 MKDIR_P="$ac_install_sh -d"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10108 $as_echo "$MKDIR_P" >&6; }
10112 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10113 if test "x$ac_cv_type_pid_t" = x""yes; then :
10117 cat >>confdefs.h <<_ACEOF
10125 WINDOWS_64_BIT_OFF_T=0
10131 GNULIB_NANOSLEEP=0;
10135 HAVE_DECL_LOCALTIME_R=1;
10139 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10140 REPLACE_MKTIME=GNULIB_PORTCHECK;
10141 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10142 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10149 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10150 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h. */
10160 static struct timespec x; x.tv_sec = x.tv_nsec;
10165 if ac_fn_c_try_compile "$LINENO"; then :
10166 gl_cv_sys_struct_timespec_in_time_h=yes
10168 gl_cv_sys_struct_timespec_in_time_h=no
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10173 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10175 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10176 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10177 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10178 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10179 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10182 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10183 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188 #include <sys/time.h>
10193 static struct timespec x; x.tv_sec = x.tv_nsec;
10198 if ac_fn_c_try_compile "$LINENO"; then :
10199 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10201 gl_cv_sys_struct_timespec_in_sys_time_h=no
10203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10206 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10207 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10208 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
10211 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
10212 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10217 #include <pthread.h>
10222 static struct timespec x; x.tv_sec = x.tv_nsec;
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 gl_cv_sys_struct_timespec_in_pthread_h=yes
10230 gl_cv_sys_struct_timespec_in_pthread_h=no
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
10235 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
10236 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
10237 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
10256 if test $gl_cv_have_include_next = yes; then
10257 gl_cv_next_time_h='<'time.h'>'
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
10260 $as_echo_n "checking absolute name of <time.h>... " >&6; }
10261 if test "${gl_cv_next_time_h+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10271 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10272 *) gl_absname_cpp="$ac_cpp" ;;
10277 gl_dirsep_regex='[/\\]'
10280 gl_dirsep_regex='\/'
10283 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10285 gl_header_literal_regex=`echo 'time.h' \
10286 |
sed -e "$gl_make_literal_regex_sed"`
10287 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10288 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10293 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10294 sed -n "$gl_absolute_header_sed"`'"'
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
10299 $as_echo "$gl_cv_next_time_h" >&6; }
10301 NEXT_TIME_H=$gl_cv_next_time_h
10303 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10305 gl_next_as_first_directive='<'time.h'>'
10307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10308 gl_next_as_first_directive=$gl_cv_next_time_h
10310 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10319 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10320 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10321 $as_echo_n "(cached) " >&6
10323 gl_cv_header_wchar_h_correct_inline=yes
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10327 #define wcstod renamed_wcstod
10328 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10330 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10331 included before <wchar.h>. */
10332 #include <stddef.h>
10336 extern int zero (void);
10337 int main () { return zero(); }
10340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10341 (eval $ac_compile) 2>&5
10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344 test $ac_status = 0; }; then
10345 mv conftest.$ac_objext conftest1.$ac_objext
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 #define wcstod renamed_wcstod
10350 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10352 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10353 included before <wchar.h>. */
10354 #include <stddef.h>
10358 int zero (void) { return 0; }
10361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10362 (eval $ac_compile) 2>&5
10364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365 test $ac_status = 0; }; then
10366 mv conftest.$ac_objext conftest2.$ac_objext
10367 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10370 gl_cv_header_wchar_h_correct_inline=no
10374 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10378 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10379 if test $gl_cv_header_wchar_h_correct_inline = no; then
10380 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10381 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10382 C99 mode. You have four options:
10383 - Add the flag -fgnu89-inline to CC and reconfigure, or
10384 - Fix your include files, using parts of
10385 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10386 - Use a gcc version older than 4.3, or
10387 - Don't use the flags -std=c99 or -std=gnu99.
10388 Configuration aborted." "$LINENO" 5
10395 if test $ac_cv_header_features_h = yes; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10404 $as_echo_n "checking for wint_t... " >&6; }
10405 if test "${gt_cv_c_wint_t+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10411 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10413 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10414 before <wchar.h>. */
10415 #include <stddef.h>
10419 wint_t foo = (wchar_t)'\0';
10428 if ac_fn_c_try_compile "$LINENO"; then :
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10436 $as_echo "$gt_cv_c_wint_t" >&6; }
10437 if test $gt_cv_c_wint_t = yes; then
10439 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10448 GNULIB_TOWCTRANS=0;
10452 REPLACE_ISWBLANK=0;
10458 GL_COND_LIBTOOL_TRUE=
10459 GL_COND_LIBTOOL_FALSE='#'
10461 GL_COND_LIBTOOL_TRUE='#'
10462 GL_COND_LIBTOOL_FALSE=
10465 gl_cond_libtool=false
10468 gl_m4_base='import/m4'
10478 gl_source_base='import'
10481 if test $ac_cv_func_alloca_works = no; then
10485 # Define an additional variable used in the Makefile substitution.
10486 if test $ac_cv_working_alloca_h = yes; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10488 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10489 if test "${gl_cv_rpl_alloca+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10496 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10502 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10503 gl_cv_rpl_alloca=yes
10505 gl_cv_rpl_alloca=no
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10512 $as_echo "$gl_cv_rpl_alloca" >&6; }
10513 if test $gl_cv_rpl_alloca = yes; then
10515 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10525 if test -n "$ALLOCA_H"; then
10526 GL_GENERATE_ALLOCA_H_TRUE=
10527 GL_GENERATE_ALLOCA_H_FALSE='#'
10529 GL_GENERATE_ALLOCA_H_TRUE='#'
10530 GL_GENERATE_ALLOCA_H_FALSE=
10535 if test "x$datarootdir" = x; then
10536 datarootdir='${datadir}'
10539 if test "x$docdir" = x; then
10540 docdir='${datarootdir}/doc/${PACKAGE}'
10543 if test "x$htmldir" = x; then
10544 htmldir='${docdir}'
10547 if test "x$dvidir" = x; then
10551 if test "x$pdfdir" = x; then
10555 if test "x$psdir" = x; then
10559 if test "x$lispdir" = x; then
10560 lispdir='${datarootdir}/emacs/site-lisp'
10563 if test "x$localedir" = x; then
10564 localedir='${datarootdir}/locale'
10568 pkglibexecdir='${libexecdir}/${PACKAGE}'
10583 if test $gl_cv_have_include_next = yes; then
10584 gl_cv_next_dirent_h='<'dirent.h'>'
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10587 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10588 if test "${gl_cv_next_dirent_h+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10592 if test $ac_cv_header_dirent_h = yes; then
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 #include <dirent.h>
10601 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10602 *) gl_absname_cpp="$ac_cpp" ;;
10607 gl_dirsep_regex='[/\\]'
10610 gl_dirsep_regex='\/'
10613 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10615 gl_header_literal_regex=`echo 'dirent.h' \
10616 |
sed -e "$gl_make_literal_regex_sed"`
10617 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10618 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10623 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10624 sed -n "$gl_absolute_header_sed"`'"'
10626 gl_cv_next_dirent_h='<'dirent.h'>'
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10632 $as_echo "$gl_cv_next_dirent_h" >&6; }
10634 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10636 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10638 gl_next_as_first_directive='<'dirent.h'>'
10640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10641 gl_next_as_first_directive=$gl_cv_next_dirent_h
10643 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10648 if test $ac_cv_header_dirent_h = yes; then
10656 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10657 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10659 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10660 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10661 $as_echo_n "(cached) " >&6
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 #include <dirent.h>
10676 if ac_fn_c_try_compile "$LINENO"; then :
10677 eval "$as_gl_Symbol=yes"
10679 eval "$as_gl_Symbol=no"
10681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 eval ac_res=\$$as_gl_Symbol
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10685 $as_echo "$ac_res" >&6; }
10686 eval as_val=\$$as_gl_Symbol
10687 if test "x$as_val" = x""yes; then :
10688 cat >>confdefs.h <<_ACEOF
10689 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
10692 eval ac_cv_have_decl_$gl_func=yes
10702 for ac_func in dirfd
10704 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
10705 if test "x$ac_cv_func_dirfd" = x""yes; then :
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_DIRFD 1
10713 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
10714 #include <dirent.h>
10716 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_DECL_DIRFD $ac_have_decl
10726 if test $ac_cv_have_decl_dirfd = no; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
10731 $as_echo_n "checking whether dirfd is a macro... " >&6; }
10732 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 #include <sys/types.h>
10739 #include <dirent.h>
10741 dirent_header_defines_dirfd
10744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10745 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
10746 gl_cv_func_dirfd_macro=yes
10748 gl_cv_func_dirfd_macro=no
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
10754 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
10756 # Use the replacement only if we have no function or macro with that name.
10757 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
10758 if test $ac_cv_have_decl_dirfd = yes; then
10759 # If the system declares dirfd already, let's declare rpl_dirfd instead.
10764 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
10773 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
10777 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
10778 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10782 dirfd_save_CFLAGS=$CFLAGS
10783 for ac_expr in d_fd dd_fd; do
10785 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10789 #include <sys/types.h>
10790 #include <dirent.h>
10794 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
10799 if ac_fn_c_try_compile "$LINENO"; then :
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 CFLAGS=$dirfd_save_CFLAGS
10805 test "$dir_fd_found" = yes && break
10807 test "$dir_fd_found" = yes || ac_expr=no_such_member
10809 gl_cv_sys_dir_fd_member_name=$ac_expr
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
10814 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
10815 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
10836 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
10846 REPLACE_FLOAT_LDBL=0
10848 aix* | beos* | openbsd* | mirbsd* | irix*)
10852 case "$host_cpu" in
10857 # On x86_64 systems, the C compiler may still be generating
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10866 $EGREP "yes" >/dev/null 2>&1; then :
10877 case "$host_cpu" in
10885 aix* | freebsd* | linux*)
10886 if test -n "$FLOAT_H"; then
10887 REPLACE_FLOAT_LDBL=1
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10894 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10895 if test "${gl_cv_func_itold_works+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10899 if test "$cross_compiling" = yes; then :
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904 #if defined __LP64__ || defined __arch64__
10908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10909 $EGREP "yes" >/dev/null 2>&1; then :
10910 gl_cv_func_itold_works="guessing no"
10912 gl_cv_func_itold_works="guessing yes"
10917 *) gl_cv_func_itold_works="guessing yes" ;;
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10925 volatile long double ld;
10934 if ac_fn_c_try_run "$LINENO"; then :
10935 gl_cv_func_itold_works=yes
10937 gl_cv_func_itold_works=no
10939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10940 conftest.$ac_objext conftest.beam conftest.$ac_ext
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10946 $as_echo "$gl_cv_func_itold_works" >&6; }
10947 case "$gl_cv_func_itold_works" in
10954 if test -n "$FLOAT_H"; then
10963 if test $gl_cv_have_include_next = yes; then
10964 gl_cv_next_float_h='<'float.h'>'
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10967 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10968 if test "${gl_cv_next_float_h+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h. */
10978 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10979 *) gl_absname_cpp="$ac_cpp" ;;
10984 gl_dirsep_regex='[/\\]'
10987 gl_dirsep_regex='\/'
10990 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10992 gl_header_literal_regex=`echo 'float.h' \
10993 |
sed -e "$gl_make_literal_regex_sed"`
10994 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10995 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11000 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11001 sed -n "$gl_absolute_header_sed"`'"'
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11006 $as_echo "$gl_cv_next_float_h" >&6; }
11008 NEXT_FLOAT_H=$gl_cv_next_float_h
11010 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11012 gl_next_as_first_directive='<'float.h'>'
11014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11015 gl_next_as_first_directive=$gl_cv_next_float_h
11017 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11024 if test -n "$FLOAT_H"; then
11025 GL_GENERATE_FLOAT_H_TRUE=
11026 GL_GENERATE_FLOAT_H_FALSE='#'
11028 GL_GENERATE_FLOAT_H_TRUE='#'
11029 GL_GENERATE_FLOAT_H_FALSE=
11034 if test $REPLACE_FLOAT_LDBL = 1; then
11043 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11046 if test $REPLACE_ITOLD = 1; then
11055 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11064 gl_fnmatch_required_lowercase=`
11065 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
11067 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11069 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11070 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11071 $as_echo_n "(cached) " >&6
11073 if test $gl_fnmatch_required = GNU; then
11074 gl_fnmatch_gnu_start=
11075 gl_fnmatch_gnu_end=
11077 gl_fnmatch_gnu_start='#if 0'
11078 gl_fnmatch_gnu_end='#endif'
11080 if test "$cross_compiling" = yes; then :
11081 eval "$gl_fnmatch_cache_var=\"guessing no\""
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11085 #include <fnmatch.h>
11087 y (char const *pattern, char const *string, int flags)
11089 return fnmatch (pattern, string, flags) == 0;
11092 n (char const *pattern, char const *string, int flags)
11094 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11100 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11101 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11102 static char const A_1[] = { 'A' - 1, 0 };
11103 static char const A01[] = { 'A' + 1, 0 };
11104 static char const a_1[] = { 'a' - 1, 0 };
11105 static char const a01[] = { 'a' + 1, 0 };
11106 static char const bs_1[] = { '\\\\' - 1, 0 };
11107 static char const bs01[] = { '\\\\' + 1, 0 };
11109 if (!n ("a*", "", 0))
11111 if (!y ("a*", "abc", 0))
11113 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11115 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11117 if (!y ("a\\\\bc", "abc", 0))
11119 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11121 if (!y ("*x", ".x", 0))
11123 if (!n ("*x", ".x", FNM_PERIOD))
11125 if (!y (Apat, "\\\\", 0))
11127 if (!y (Apat, "A", 0))
11129 if (!y (apat, "\\\\", 0))
11131 if (!y (apat, "a", 0))
11133 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11135 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11137 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
11139 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
11141 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
11143 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
11145 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
11147 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
11149 $gl_fnmatch_gnu_start
11150 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
11152 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
11154 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
11156 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
11158 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
11160 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
11162 $gl_fnmatch_gnu_end
11169 if ac_fn_c_try_run "$LINENO"; then :
11170 eval "$gl_fnmatch_cache_var=yes"
11172 eval "$gl_fnmatch_cache_var=no"
11174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11175 conftest.$ac_objext conftest.beam conftest.$ac_ext
11180 eval ac_res=\$$gl_fnmatch_cache_var
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11182 $as_echo "$ac_res" >&6; }
11183 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
11184 if test "$gl_fnmatch_result" = yes; then
11185 rm -f "$gl_source_base/fnmatch.h"
11187 FNMATCH_H=fnmatch.h
11190 if test -n "$FNMATCH_H"; then
11191 GL_GENERATE_FNMATCH_H_TRUE=
11192 GL_GENERATE_FNMATCH_H_FALSE='#'
11194 GL_GENERATE_FNMATCH_H_TRUE='#'
11195 GL_GENERATE_FNMATCH_H_FALSE=
11199 if test -n "$FNMATCH_H"; then
11208 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11212 cat >>confdefs.h <<_ACEOF
11213 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11217 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11219 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_DECL_ISBLANK $ac_have_decl
11238 if test -n "$FNMATCH_H"; then
11247 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11251 cat >>confdefs.h <<_ACEOF
11252 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11256 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11258 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11264 cat >>confdefs.h <<_ACEOF
11265 #define HAVE_DECL_ISBLANK $ac_have_decl
11276 if test $gl_cv_func_frexp_no_libm = no; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
11278 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
11279 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
11280 $as_echo_n "(cached) " >&6
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11292 int e; return frexp (x, &e) > 0;
11297 if ac_fn_c_try_link "$LINENO"; then :
11298 gl_cv_func_frexp_in_libm=yes
11300 gl_cv_func_frexp_in_libm=no
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
11308 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
11309 if test $gl_cv_func_frexp_in_libm = yes; then
11313 if test $gl_cv_func_frexp_no_libm = yes \
11314 || test $gl_cv_func_frexp_in_libm = yes; then
11316 LIBS="$LIBS $FREXP_LIBM"
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
11321 $as_echo_n "checking whether frexp works... " >&6; }
11322 if test "${gl_cv_func_frexp_works+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11326 if test "$cross_compiling" = yes; then :
11328 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
11329 *) gl_cv_func_frexp_works="guessing yes";;
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11338 #include <string.h>
11340 # include <unistd.h>
11342 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
11343 ICC 10.0 has a bug when optimizing the expression -zero.
11344 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
11345 to PowerPC on Mac OS X 10.5. */
11346 #if defined __hpux || defined __sgi || defined __ICC
11348 compute_minus_zero (void)
11350 return -DBL_MIN * DBL_MIN;
11352 # define minus_zero compute_minus_zero ()
11354 double minus_zero = -0.0;
11363 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
11364 number. Let the test fail in this case. */
11367 /* Test on denormalized numbers. */
11368 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
11373 double y = frexp (x, &exp);
11374 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
11375 On NetBSD: y = 0.75. Correct: y = 0.5. */
11379 /* Test on infinite numbers. */
11383 double y = frexp (x, &exp);
11387 /* Test on negative zero. */
11391 double y = frexp (x, &exp);
11392 if (memcmp (&y, &x, sizeof x))
11398 if ac_fn_c_try_run "$LINENO"; then :
11399 gl_cv_func_frexp_works=yes
11401 gl_cv_func_frexp_works=no
11403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11404 conftest.$ac_objext conftest.beam conftest.$ac_ext
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11410 $as_echo "$gl_cv_func_frexp_works" >&6; }
11413 case "$gl_cv_func_frexp_works" in
11414 *yes) gl_func_frexp=yes ;;
11415 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11420 if test $gl_func_frexp = yes; then
11422 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
11427 if test $gl_func_frexp != yes; then
11436 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11450 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11460 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11462 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11470 if test $HAVE_DECL_FREXPL = 1; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11473 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11474 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11485 int e; return frexpl (x, &e) > 0;
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 gl_cv_func_frexpl_no_libm=yes
11493 gl_cv_func_frexpl_no_libm=no
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11500 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11502 if test $gl_cv_func_frexpl_no_libm = no; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11504 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11505 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11518 int e; return frexpl (x, &e) > 0;
11523 if ac_fn_c_try_link "$LINENO"; then :
11524 gl_cv_func_frexpl_in_libm=yes
11526 gl_cv_func_frexpl_in_libm=no
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11534 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11535 if test $gl_cv_func_frexpl_in_libm = yes; then
11539 if test $gl_cv_func_frexpl_no_libm = yes \
11540 || test $gl_cv_func_frexpl_in_libm = yes; then
11542 LIBS="$LIBS $FREXPL_LIBM"
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11546 $as_echo_n "checking whether frexpl works... " >&6; }
11547 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11551 if test "$cross_compiling" = yes; then :
11554 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11555 gl_cv_func_frexpl_works="guessing no";;
11556 *) gl_cv_func_frexpl_works="guessing yes";;
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11565 /* Override the values of <float.h>, like done in float.in.h. */
11566 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11567 # undef LDBL_MIN_EXP
11568 # define LDBL_MIN_EXP (-16381)
11570 #if defined __i386__ && defined __FreeBSD__
11571 # undef LDBL_MIN_EXP
11572 # define LDBL_MIN_EXP (-16381)
11574 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11575 # undef LDBL_MIN_EXP
11576 # define LDBL_MIN_EXP DBL_MIN_EXP
11578 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11579 # if defined __GNUC__
11580 # undef LDBL_MIN_EXP
11581 # define LDBL_MIN_EXP DBL_MIN_EXP
11588 long double frexpl (long double, int *);
11592 volatile long double x;
11593 /* Test on finite numbers that fails on AIX 5.1. */
11601 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11602 function returns an invalid (incorrectly normalized) value: it returns
11603 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11604 but the correct result is
11605 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11609 long double y = frexpl (x, &exp);
11610 if (!(exp == 1 && y == 0.505L))
11613 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11614 LDBL_MAX_EXP = 16384.
11615 In the loop end test, we test x against Infinity, rather than comparing
11616 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11619 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11630 /* Test on denormalized numbers. */
11633 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11638 long double y = frexpl (x, &exp);
11639 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11640 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11641 if (exp != LDBL_MIN_EXP - 1)
11645 /* Test on infinite numbers. */
11649 long double y = frexpl (x, &exp);
11656 if ac_fn_c_try_run "$LINENO"; then :
11657 gl_cv_func_frexpl_works=yes
11659 gl_cv_func_frexpl_works=no
11661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11662 conftest.$ac_objext conftest.beam conftest.$ac_ext
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11668 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11671 case "$gl_cv_func_frexpl_works" in
11672 *yes) gl_func_frexpl=yes ;;
11673 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11678 if test $gl_func_frexpl = yes; then
11680 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11684 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11685 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11687 FREXPL_LIBM="$FREXP_LIBM"
11694 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11703 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11717 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11727 if test -n "$STDINT_H"; then
11728 PRIPTR_PREFIX='"l"'
11730 for glpfx in '' l ll I64; do
11732 '') gltype1='int';;
11733 l) gltype1='long int';;
11734 ll) gltype1='long long int';;
11735 I64) gltype1='__int64';;
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11739 #include <stdint.h>
11740 extern intptr_t foo;
11741 extern $gltype1 foo;
11750 if ac_fn_c_try_compile "$LINENO"; then :
11751 PRIPTR_PREFIX='"'$glpfx'"'
11753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 test -n "$PRIPTR_PREFIX" && break
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11761 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11762 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767 /* Work also in C++ mode. */
11768 #define __STDC_LIMIT_MACROS 1
11770 /* Work if build is not clean. */
11771 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11773 #include <limits.h>
11775 #include <stdint.h>
11778 #if defined INT32_MAX && defined INTMAX_MAX
11779 #define CONDITION (INT32_MAX < INTMAX_MAX)
11780 #elif HAVE_LONG_LONG_INT
11781 #define CONDITION (sizeof (int) < sizeof (long long int))
11783 #define CONDITION 0
11785 int test[CONDITION ? 1 : -1];
11794 if ac_fn_c_try_compile "$LINENO"; then :
11795 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11797 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11802 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11803 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11804 INT32_MAX_LT_INTMAX_MAX=1;
11806 INT32_MAX_LT_INTMAX_MAX=0;
11810 if test $APPLE_UNIVERSAL_BUILD = 0; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11813 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11814 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 /* Work also in C++ mode. */
11820 #define __STDC_LIMIT_MACROS 1
11822 /* Work if build is not clean. */
11823 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11825 #include <limits.h>
11827 #include <stdint.h>
11830 #if defined INT64_MAX
11831 #define CONDITION (INT64_MAX == LONG_MAX)
11832 #elif HAVE_LONG_LONG_INT
11833 #define CONDITION (sizeof (long long int) == sizeof (long int))
11835 #define CONDITION 0
11837 int test[CONDITION ? 1 : -1];
11846 if ac_fn_c_try_compile "$LINENO"; then :
11847 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11849 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11854 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11855 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11856 INT64_MAX_EQ_LONG_MAX=1;
11858 INT64_MAX_EQ_LONG_MAX=0;
11863 INT64_MAX_EQ_LONG_MAX=-1
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11867 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11868 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 /* Work also in C++ mode. */
11874 #define __STDC_LIMIT_MACROS 1
11876 /* Work if build is not clean. */
11877 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11879 #include <limits.h>
11881 #include <stdint.h>
11884 #if defined UINT32_MAX && defined UINTMAX_MAX
11885 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11886 #elif HAVE_LONG_LONG_INT
11887 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11889 #define CONDITION 0
11891 int test[CONDITION ? 1 : -1];
11900 if ac_fn_c_try_compile "$LINENO"; then :
11901 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11903 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11908 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11909 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11910 UINT32_MAX_LT_UINTMAX_MAX=1;
11912 UINT32_MAX_LT_UINTMAX_MAX=0;
11916 if test $APPLE_UNIVERSAL_BUILD = 0; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11919 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11920 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11921 $as_echo_n "(cached) " >&6
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 /* Work also in C++ mode. */
11926 #define __STDC_LIMIT_MACROS 1
11928 /* Work if build is not clean. */
11929 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11931 #include <limits.h>
11933 #include <stdint.h>
11936 #if defined UINT64_MAX
11937 #define CONDITION (UINT64_MAX == ULONG_MAX)
11938 #elif HAVE_LONG_LONG_INT
11939 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11941 #define CONDITION 0
11943 int test[CONDITION ? 1 : -1];
11952 if ac_fn_c_try_compile "$LINENO"; then :
11953 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11955 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11960 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11961 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11962 UINT64_MAX_EQ_ULONG_MAX=1;
11964 UINT64_MAX_EQ_ULONG_MAX=0;
11969 UINT64_MAX_EQ_ULONG_MAX=-1
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11977 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11978 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11987 # define isnand(x) __builtin_isnan ((double)(x))
11990 # define isnand(x) isnan ((double)(x))
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 gl_cv_func_isnand_no_libm=yes
12004 gl_cv_func_isnand_no_libm=no
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12011 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12013 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12014 if test $gl_cv_func_isnand_no_libm = yes; then
12016 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12020 if test $gl_func_isnand_no_libm != yes; then
12029 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12038 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12039 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12048 # define isnanl(x) __builtin_isnanl ((long double)(x))
12049 #elif defined isnan
12051 # define isnanl(x) isnan ((long double)(x))
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 gl_cv_func_isnanl_no_libm=yes
12065 gl_cv_func_isnanl_no_libm=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12072 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12074 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12075 if test $gl_func_isnanl_no_libm = yes; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12081 $as_echo_n "checking whether isnanl works... " >&6; }
12082 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12086 if test "$cross_compiling" = yes; then :
12087 case "$host_cpu" in
12088 # Guess no on ia64, x86_64, i386.
12089 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12092 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12093 *) gl_cv_func_isnanl_works="guessing yes";;
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12103 #include <limits.h>
12107 # define isnanl(x) __builtin_isnanl ((long double)(x))
12108 #elif defined isnan
12110 # define isnanl(x) isnan ((long double)(x))
12113 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12114 typedef union { unsigned int word[NWORDS]; long double value; }
12115 memory_long_double;
12116 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12117 runtime type conversion. */
12119 static long double NaNl ()
12122 return zero / zero;
12125 # define NaNl() (0.0L / 0.0L)
12131 if (!isnanl (NaNl ()))
12135 memory_long_double m;
12138 /* The isnanl function should be immune against changes in the sign bit and
12139 in the mantissa bits. The xor operation twiddles a bit that can only be
12140 a sign bit or a mantissa bit (since the exponent never extends to
12143 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
12144 for (i = 0; i < NWORDS; i++)
12146 if (!isnanl (m.value))
12150 #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
12151 /* Representation of an 80-bit 'long double' as an initializer for a sequence
12152 of 'unsigned int' words. */
12153 # ifdef WORDS_BIGENDIAN
12154 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12155 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
12156 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
12157 (unsigned int) (mantlo) << 16 \
12160 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12161 { mantlo, manthi, exponent }
12164 static memory_long_double x =
12165 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
12166 if (!isnanl (x.value))
12170 /* Signalling NaN. */
12171 static memory_long_double x =
12172 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
12173 if (!isnanl (x.value))
12176 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
12177 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
12178 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
12179 Application Architecture.
12180 Table 5-2 "Floating-Point Register Encodings"
12181 Figure 5-6 "Memory to Floating-Point Register Data Translation"
12183 { /* Pseudo-NaN. */
12184 static memory_long_double x =
12185 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
12186 if (!isnanl (x.value))
12189 { /* Pseudo-Infinity. */
12190 static memory_long_double x =
12191 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
12192 if (!isnanl (x.value))
12195 { /* Pseudo-Zero. */
12196 static memory_long_double x =
12197 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
12198 if (!isnanl (x.value))
12201 { /* Unnormalized number. */
12202 static memory_long_double x =
12203 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
12204 if (!isnanl (x.value))
12207 { /* Pseudo-Denormal. */
12208 static memory_long_double x =
12209 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
12210 if (!isnanl (x.value))
12218 if ac_fn_c_try_run "$LINENO"; then :
12219 gl_cv_func_isnanl_works=yes
12221 gl_cv_func_isnanl_works=no
12223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12224 conftest.$ac_objext conftest.beam conftest.$ac_ext
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
12230 $as_echo "$gl_cv_func_isnanl_works" >&6; }
12232 case "$gl_cv_func_isnanl_works" in
12234 *) gl_func_isnanl_no_libm=no ;;
12237 if test $gl_func_isnanl_no_libm = yes; then
12239 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
12243 if test $gl_func_isnanl_no_libm != yes; then
12252 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
12258 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
12259 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12263 if test "$cross_compiling" = yes; then :
12265 gl_cv_cc_long_double_expbit0="unknown"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12272 #include <stddef.h>
12274 #include <string.h>
12276 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12277 typedef union { long double value; unsigned int word[NWORDS]; }
12278 memory_long_double;
12279 static unsigned int ored_words[NWORDS];
12280 static unsigned int anded_words[NWORDS];
12281 static void add_to_ored_words (long double x)
12283 memory_long_double m;
12285 /* Clear it first, in case
12286 sizeof (long double) < sizeof (memory_long_double). */
12287 memset (&m, 0, sizeof (memory_long_double));
12289 for (i = 0; i < NWORDS; i++)
12291 ored_words[i] |= m.word[i];
12292 anded_words[i] &= m.word[i];
12298 FILE *fp = fopen ("conftest.out", "w");
12301 for (j = 0; j < NWORDS; j++)
12302 anded_words[j] = ~ (unsigned int) 0;
12303 add_to_ored_words (0.25L);
12304 add_to_ored_words (0.5L);
12305 add_to_ored_words (1.0L);
12306 add_to_ored_words (2.0L);
12307 add_to_ored_words (4.0L);
12308 /* Remove bits that are common (e.g. if representation of the first mantissa
12309 bit is explicit). */
12310 for (j = 0; j < NWORDS; j++)
12311 ored_words[j] &= ~anded_words[j];
12312 /* Now find the nonzero word. */
12313 for (j = 0; j < NWORDS; j++)
12314 if (ored_words[j] != 0)
12319 for (i = j + 1; i < NWORDS; i++)
12320 if (ored_words[i] != 0)
12322 fprintf (fp, "unknown");
12323 return (fclose (fp) != 0);
12326 if ((ored_words[j] >> i) & 1)
12328 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12329 return (fclose (fp) != 0);
12332 fprintf (fp, "unknown");
12333 return (fclose (fp) != 0);
12337 if ac_fn_c_try_run "$LINENO"; then :
12338 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
12340 gl_cv_cc_long_double_expbit0="unknown"
12342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12343 conftest.$ac_objext conftest.beam conftest.$ac_ext
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
12350 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
12351 case "$gl_cv_cc_long_double_expbit0" in
12353 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
12354 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
12356 cat >>confdefs.h <<_ACEOF
12357 #define LDBL_EXPBIT0_WORD $word
12361 cat >>confdefs.h <<_ACEOF
12362 #define LDBL_EXPBIT0_BIT $bit
12379 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
12392 if test $gl_cv_have_include_next = yes; then
12393 gl_cv_next_math_h='<'math.h'>'
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
12396 $as_echo_n "checking absolute name of <math.h>... " >&6; }
12397 if test "${gl_cv_next_math_h+set}" = set; then :
12398 $as_echo_n "(cached) " >&6
12401 if test $ac_cv_header_math_h = yes; then
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12410 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12411 *) gl_absname_cpp="$ac_cpp" ;;
12416 gl_dirsep_regex='[/\\]'
12419 gl_dirsep_regex='\/'
12422 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12424 gl_header_literal_regex=`echo 'math.h' \
12425 |
sed -e "$gl_make_literal_regex_sed"`
12426 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12427 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12432 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12433 sed -n "$gl_absolute_header_sed"`'"'
12435 gl_cv_next_math_h='<'math.h'>'
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12441 $as_echo "$gl_cv_next_math_h" >&6; }
12443 NEXT_MATH_H=$gl_cv_next_math_h
12445 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12447 gl_next_as_first_directive='<'math.h'>'
12449 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12450 gl_next_as_first_directive=$gl_cv_next_math_h
12452 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12459 $as_echo_n "checking whether NAN macro works... " >&6; }
12460 if test "${gl_cv_header_math_nan_works+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12469 /* Solaris 10 has a broken definition of NAN. Other platforms
12470 fail to provide NAN, or provide it only in C99 mode; this
12471 test only needs to fail when NAN is provided but wrong. */
12481 if ac_fn_c_try_compile "$LINENO"; then :
12482 gl_cv_header_math_nan_works=yes
12484 gl_cv_header_math_nan_works=no
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12489 $as_echo "$gl_cv_header_math_nan_works" >&6; }
12490 if test $gl_cv_header_math_nan_works = no; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12494 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
12495 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12504 /* Solaris 10 has a broken definition of HUGE_VAL. */
12505 double d = HUGE_VAL;
12511 if ac_fn_c_try_compile "$LINENO"; then :
12512 gl_cv_header_math_huge_val_works=yes
12514 gl_cv_header_math_huge_val_works=no
12516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12519 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12520 if test $gl_cv_header_math_huge_val_works = no; then
12525 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
12526 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12528 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12529 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12530 $as_echo_n "(cached) " >&6
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12544 if ac_fn_c_try_compile "$LINENO"; then :
12545 eval "$as_gl_Symbol=yes"
12547 eval "$as_gl_Symbol=no"
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 eval ac_res=\$$as_gl_Symbol
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12553 $as_echo "$ac_res" >&6; }
12554 eval as_val=\$$as_gl_Symbol
12555 if test "x$as_val" = x""yes; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12560 eval ac_cv_have_decl_$gl_func=yes
12575 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12580 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12581 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12586 # Guess no on AIX and OSF/1.
12587 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12588 # Guess yes otherwise.
12589 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12591 if test $LOCALE_JA != none; then
12592 if test "$cross_compiling" = yes; then :
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12598 #include <locale.h>
12599 #include <string.h>
12600 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12602 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12603 included before <wchar.h>. */
12604 #include <stddef.h>
12610 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12612 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12616 memset (&state, '\0', sizeof (mbstate_t));
12617 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12618 if (mbsinit (&state))
12624 if ac_fn_c_try_run "$LINENO"; then :
12625 gl_cv_func_mbrtowc_incomplete_state=yes
12627 gl_cv_func_mbrtowc_incomplete_state=no
12629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12630 conftest.$ac_objext conftest.beam conftest.$ac_ext
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12637 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12643 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12644 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12649 # Guess no on Solaris 8.
12650 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12651 # Guess yes otherwise.
12652 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12654 if test $LOCALE_ZH_CN != none; then
12655 if test "$cross_compiling" = yes; then :
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12661 #include <locale.h>
12662 #include <stdlib.h>
12663 #include <string.h>
12664 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12666 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12667 included before <wchar.h>. */
12668 #include <stddef.h>
12674 /* This fails on Solaris 8:
12675 mbrtowc returns 2, and sets wc to 0x00F0.
12676 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12677 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12679 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12683 memset (&state, '\0', sizeof (mbstate_t));
12684 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12685 && mbtowc (&wc, input + 3, 6) == 4)
12691 if ac_fn_c_try_run "$LINENO"; then :
12692 gl_cv_func_mbrtowc_sanitycheck=yes
12694 gl_cv_func_mbrtowc_sanitycheck=no
12696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12697 conftest.$ac_objext conftest.beam conftest.$ac_ext
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12704 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12706 REPLACE_MBSTATE_T=0
12707 case "$gl_cv_func_mbrtowc_incomplete_state" in
12709 *) REPLACE_MBSTATE_T=1 ;;
12711 case "$gl_cv_func_mbrtowc_sanitycheck" in
12713 *) REPLACE_MBSTATE_T=1 ;;
12716 REPLACE_MBSTATE_T=1
12721 if test $ac_cv_func_mbrtowc = no; then
12723 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12724 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12726 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12727 included before <wchar.h>. */
12728 #include <stddef.h>
12734 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12740 cat >>confdefs.h <<_ACEOF
12741 #define HAVE_DECL_MBRTOWC $ac_have_decl
12744 if test $ac_cv_have_decl_mbrtowc = yes; then
12748 if test $REPLACE_MBSTATE_T = 1; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12755 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12756 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12761 # Guess no on Solaris.
12762 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12763 # Guess yes otherwise.
12764 *) gl_cv_func_mbrtowc_null_arg1="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 <stdlib.h>
12775 #include <string.h>
12776 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12778 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12779 included before <wchar.h>. */
12780 #include <stddef.h>
12788 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12790 char input[] = "\303\237er";
12795 memset (&state, '\0', sizeof (mbstate_t));
12796 wc = (wchar_t) 0xBADFACE;
12797 ret = mbrtowc (&wc, input, 5, &state);
12800 if (!mbsinit (&state))
12803 memset (&state, '\0', sizeof (mbstate_t));
12804 ret = mbrtowc (NULL, input, 5, &state);
12805 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12807 if (!mbsinit (&state))
12813 if ac_fn_c_try_run "$LINENO"; then :
12814 gl_cv_func_mbrtowc_null_arg1=yes
12816 gl_cv_func_mbrtowc_null_arg1=no
12818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12819 conftest.$ac_objext conftest.beam conftest.$ac_ext
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12826 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12832 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12833 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12838 # Guess no on OSF/1.
12839 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12840 # Guess yes otherwise.
12841 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12843 if test $LOCALE_FR_UTF8 != none; then
12844 if test "$cross_compiling" = yes; then :
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12850 #include <locale.h>
12851 #include <string.h>
12852 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12854 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12855 included before <wchar.h>. */
12856 #include <stddef.h>
12862 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12868 memset (&state, '\0', sizeof (mbstate_t));
12869 wc = (wchar_t) 0xBADFACE;
12870 mbrtowc (&wc, NULL, 5, &state);
12871 /* Check that wc was not modified. */
12872 if (wc != (wchar_t) 0xBADFACE)
12878 if ac_fn_c_try_run "$LINENO"; then :
12879 gl_cv_func_mbrtowc_null_arg2=yes
12881 gl_cv_func_mbrtowc_null_arg2=no
12883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12884 conftest.$ac_objext conftest.beam conftest.$ac_ext
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12891 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12899 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12900 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12905 # Guess no on HP-UX, Solaris, native Windows.
12906 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12907 # Guess yes otherwise.
12908 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12910 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12911 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12912 if test "$cross_compiling" = yes; then :
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12918 #include <locale.h>
12919 #include <string.h>
12920 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12922 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12923 included before <wchar.h>. */
12924 #include <stddef.h>
12931 int found_some_locale = 0;
12932 /* This fails on Solaris. */
12933 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12935 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12939 memset (&state, '\0', sizeof (mbstate_t));
12940 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12943 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12946 found_some_locale = 1;
12948 /* This fails on HP-UX 11.11. */
12949 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12951 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12955 memset (&state, '\0', sizeof (mbstate_t));
12956 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12959 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12962 found_some_locale = 1;
12964 /* This fails on native Windows. */
12965 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12967 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12971 memset (&state, '\0', sizeof (mbstate_t));
12972 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12975 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12978 found_some_locale = 1;
12980 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12982 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12986 memset (&state, '\0', sizeof (mbstate_t));
12987 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12990 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12993 found_some_locale = 1;
12995 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12997 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
13001 memset (&state, '\0', sizeof (mbstate_t));
13002 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13005 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13008 found_some_locale = 1;
13010 return (found_some_locale ? result : 77);
13013 if ac_fn_c_try_run "$LINENO"; then :
13014 gl_cv_func_mbrtowc_retval=yes
13016 if test $? != 77; then
13017 gl_cv_func_mbrtowc_retval=no
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13022 conftest.$ac_objext conftest.beam conftest.$ac_ext
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13029 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13035 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13036 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13041 # Guess no on Solaris 8 and 9.
13042 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13043 # Guess yes otherwise.
13044 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13046 if test $LOCALE_ZH_CN != none; then
13047 if test "$cross_compiling" = yes; then :
13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13051 /* end confdefs.h. */
13053 #include <locale.h>
13054 #include <string.h>
13055 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13057 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13058 included before <wchar.h>. */
13059 #include <stddef.h>
13065 /* This fails on Solaris 8 and 9. */
13066 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13071 memset (&state, '\0', sizeof (mbstate_t));
13072 if (mbrtowc (&wc, "", 1, &state) != 0)
13078 if ac_fn_c_try_run "$LINENO"; then :
13079 gl_cv_func_mbrtowc_nul_retval=yes
13081 gl_cv_func_mbrtowc_nul_retval=no
13083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13084 conftest.$ac_objext conftest.beam conftest.$ac_ext
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
13091 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
13093 case "$gl_cv_func_mbrtowc_null_arg1" in
13096 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
13101 case "$gl_cv_func_mbrtowc_null_arg2" in
13104 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
13109 case "$gl_cv_func_mbrtowc_retval" in
13112 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
13117 case "$gl_cv_func_mbrtowc_nul_retval" in
13120 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
13128 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
13137 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
13154 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
13169 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13174 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13175 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13180 # Guess no on AIX and OSF/1.
13181 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13182 # Guess yes otherwise.
13183 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13185 if test $LOCALE_JA != none; then
13186 if test "$cross_compiling" = yes; then :
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13192 #include <locale.h>
13193 #include <string.h>
13194 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13196 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13197 included before <wchar.h>. */
13198 #include <stddef.h>
13204 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13206 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13210 memset (&state, '\0', sizeof (mbstate_t));
13211 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13212 if (mbsinit (&state))
13218 if ac_fn_c_try_run "$LINENO"; then :
13219 gl_cv_func_mbrtowc_incomplete_state=yes
13221 gl_cv_func_mbrtowc_incomplete_state=no
13223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13224 conftest.$ac_objext conftest.beam conftest.$ac_ext
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13231 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13237 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13238 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13243 # Guess no on Solaris 8.
13244 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13245 # Guess yes otherwise.
13246 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13248 if test $LOCALE_ZH_CN != none; then
13249 if test "$cross_compiling" = yes; then :
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13255 #include <locale.h>
13256 #include <stdlib.h>
13257 #include <string.h>
13258 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13260 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13261 included before <wchar.h>. */
13262 #include <stddef.h>
13268 /* This fails on Solaris 8:
13269 mbrtowc returns 2, and sets wc to 0x00F0.
13270 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13271 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13273 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13277 memset (&state, '\0', sizeof (mbstate_t));
13278 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13279 && mbtowc (&wc, input + 3, 6) == 4)
13285 if ac_fn_c_try_run "$LINENO"; then :
13286 gl_cv_func_mbrtowc_sanitycheck=yes
13288 gl_cv_func_mbrtowc_sanitycheck=no
13290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13291 conftest.$ac_objext conftest.beam conftest.$ac_ext
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13298 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13300 REPLACE_MBSTATE_T=0
13301 case "$gl_cv_func_mbrtowc_incomplete_state" in
13303 *) REPLACE_MBSTATE_T=1 ;;
13305 case "$gl_cv_func_mbrtowc_sanitycheck" in
13307 *) REPLACE_MBSTATE_T=1 ;;
13310 REPLACE_MBSTATE_T=1
13315 if test $ac_cv_func_mbsinit = no; then
13317 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
13318 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13320 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13321 included before <wchar.h>. */
13322 #include <stddef.h>
13328 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_DECL_MBSINIT $ac_have_decl
13338 if test $ac_cv_have_decl_mbsinit = yes; then
13342 if test $REPLACE_MBSTATE_T = 1; then
13346 mingw*) REPLACE_MBSINIT=1 ;;
13351 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
13360 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
13377 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
13391 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13396 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13397 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13402 # Guess no on AIX and OSF/1.
13403 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13404 # Guess yes otherwise.
13405 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13407 if test $LOCALE_JA != none; then
13408 if test "$cross_compiling" = yes; then :
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13414 #include <locale.h>
13415 #include <string.h>
13416 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13418 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13419 included before <wchar.h>. */
13420 #include <stddef.h>
13426 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13428 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13432 memset (&state, '\0', sizeof (mbstate_t));
13433 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13434 if (mbsinit (&state))
13440 if ac_fn_c_try_run "$LINENO"; then :
13441 gl_cv_func_mbrtowc_incomplete_state=yes
13443 gl_cv_func_mbrtowc_incomplete_state=no
13445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13446 conftest.$ac_objext conftest.beam conftest.$ac_ext
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13453 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13459 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13460 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13461 $as_echo_n "(cached) " >&6
13465 # Guess no on Solaris 8.
13466 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13467 # Guess yes otherwise.
13468 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13470 if test $LOCALE_ZH_CN != none; then
13471 if test "$cross_compiling" = yes; then :
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13477 #include <locale.h>
13478 #include <stdlib.h>
13479 #include <string.h>
13480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13483 included before <wchar.h>. */
13484 #include <stddef.h>
13490 /* This fails on Solaris 8:
13491 mbrtowc returns 2, and sets wc to 0x00F0.
13492 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13493 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13495 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13499 memset (&state, '\0', sizeof (mbstate_t));
13500 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13501 && mbtowc (&wc, input + 3, 6) == 4)
13507 if ac_fn_c_try_run "$LINENO"; then :
13508 gl_cv_func_mbrtowc_sanitycheck=yes
13510 gl_cv_func_mbrtowc_sanitycheck=no
13512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13513 conftest.$ac_objext conftest.beam conftest.$ac_ext
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13520 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13522 REPLACE_MBSTATE_T=0
13523 case "$gl_cv_func_mbrtowc_incomplete_state" in
13525 *) REPLACE_MBSTATE_T=1 ;;
13527 case "$gl_cv_func_mbrtowc_sanitycheck" in
13529 *) REPLACE_MBSTATE_T=1 ;;
13532 REPLACE_MBSTATE_T=1
13537 if test $ac_cv_func_mbsrtowcs = no; then
13539 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13540 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13542 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13543 included before <wchar.h>. */
13544 #include <stddef.h>
13550 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13556 cat >>confdefs.h <<_ACEOF
13557 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13560 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13561 REPLACE_MBSRTOWCS=1
13564 if test $REPLACE_MBSTATE_T = 1; then
13565 REPLACE_MBSRTOWCS=1
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13574 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13575 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13580 # Guess no on HP-UX, Solaris, mingw.
13581 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13582 # Guess yes otherwise.
13583 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13585 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13586 if test "$cross_compiling" = yes; then :
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13592 #include <locale.h>
13593 #include <string.h>
13594 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13596 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13597 included before <wchar.h>. */
13598 #include <stddef.h>
13605 /* Test whether the function supports a NULL destination argument.
13606 This fails on native Windows. */
13607 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13609 const char input[] = "\337er";
13610 const char *src = input;
13613 memset (&state, '\0', sizeof (mbstate_t));
13614 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13618 /* Test whether the function works when started with a conversion state
13619 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13620 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13622 const char input[] = "B\303\274\303\237er";
13625 memset (&state, '\0', sizeof (mbstate_t));
13626 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13627 if (!mbsinit (&state))
13629 const char *src = input + 2;
13630 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13634 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13636 const char input[] = "<\306\374\313\334\270\354>";
13639 memset (&state, '\0', sizeof (mbstate_t));
13640 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13641 if (!mbsinit (&state))
13643 const char *src = input + 4;
13644 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13648 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13650 const char input[] = "B\250\271\201\060\211\070er";
13653 memset (&state, '\0', sizeof (mbstate_t));
13654 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13655 if (!mbsinit (&state))
13657 const char *src = input + 2;
13658 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13665 if ac_fn_c_try_run "$LINENO"; then :
13666 gl_cv_func_mbsrtowcs_works=yes
13668 gl_cv_func_mbsrtowcs_works=no
13670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13671 conftest.$ac_objext conftest.beam conftest.$ac_ext
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13678 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13680 case "$gl_cv_func_mbsrtowcs_works" in
13682 *) REPLACE_MBSRTOWCS=1 ;;
13687 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13696 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13706 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13723 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13728 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13737 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13740 for ac_header in bp-sym.h
13742 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13743 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13744 cat >>confdefs.h <<_ACEOF
13745 #define HAVE_BP_SYM_H 1
13765 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13771 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13773 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13774 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13775 $as_echo_n "(cached) " >&6
13777 if test "$cross_compiling" = yes; then :
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13781 #include <features.h>
13782 #ifdef __GNU_LIBRARY__
13783 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13784 && !defined __UCLIBC__
13789 #include <cygwin/version.h>
13790 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797 $EGREP "Lucky user" >/dev/null 2>&1; then :
13798 gl_cv_func_memmem_works_fast="guessing yes"
13800 gl_cv_func_memmem_works_fast="guessing no"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 #include <signal.h> /* for signal */
13810 #include <string.h> /* for memmem */
13811 #include <stdlib.h> /* for malloc */
13812 #include <unistd.h> /* for alarm */
13813 static void quit (int sig) { exit (sig + 128); }
13820 size_t m = 1000000;
13821 char *haystack = (char *) malloc (2 * m + 1);
13822 char *needle = (char *) malloc (m + 1);
13823 /* Failure to compile this test due to missing alarm is okay,
13824 since all such platforms (mingw) also lack memmem. */
13825 signal (SIGALRM, quit);
13827 /* Check for quadratic performance. */
13828 if (haystack && needle)
13830 memset (haystack, 'A', 2 * m);
13831 haystack[2 * m] = 'B';
13832 memset (needle, 'A', m);
13834 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13843 if ac_fn_c_try_run "$LINENO"; then :
13844 gl_cv_func_memmem_works_fast=yes
13846 gl_cv_func_memmem_works_fast=no
13848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13849 conftest.$ac_objext conftest.beam conftest.$ac_ext
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13855 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13856 case "$gl_cv_func_memmem_works_fast" in
13864 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13873 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13880 for ac_func in memmem
13882 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13883 if test "x$ac_cv_func_memmem" = x""yes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_MEMMEM 1
13891 if test $ac_cv_func_memmem = yes; then
13897 if test $ac_cv_have_decl_memmem = no; then
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13901 $as_echo_n "checking whether memmem works... " >&6; }
13902 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13905 if test "$cross_compiling" = yes; then :
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13909 #ifdef __GNU_LIBRARY__
13910 #include <features.h>
13911 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13912 || __GLIBC_MINOR__ > 12)) \
13913 || (__GLIBC__ > 2)) \
13914 || defined __UCLIBC__
13917 #elif defined __CYGWIN__
13918 #include <cygwin/version.h>
13919 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13928 $EGREP "Lucky user" >/dev/null 2>&1; then :
13929 gl_cv_func_memmem_works_always="guessing yes"
13931 gl_cv_func_memmem_works_always="guessing no"
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13940 #include <string.h> /* for memmem */
13941 #define P "_EF_BF_BD"
13942 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13943 #define NEEDLE P P P P P
13950 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13952 /* Check for empty needle behavior. */
13954 const char *haystack = "AAA";
13955 if (memmem (haystack, 3, NULL, 0) != haystack)
13964 if ac_fn_c_try_run "$LINENO"; then :
13965 gl_cv_func_memmem_works_always=yes
13967 gl_cv_func_memmem_works_always=no
13969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13970 conftest.$ac_objext conftest.beam conftest.$ac_ext
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13976 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13977 case "$gl_cv_func_memmem_works_always" in
13986 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13995 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14009 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14019 $as_echo_n "checking for ssize_t... " >&6; }
14020 if test "${gt_cv_ssize_t+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 #include <sys/types.h>
14029 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14035 if ac_fn_c_try_compile "$LINENO"; then :
14040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14043 $as_echo "$gt_cv_ssize_t" >&6; }
14044 if test $gt_cv_ssize_t = no; then
14046 $as_echo "#define ssize_t int" >>confdefs.h
14053 # Define two additional variables used in the Makefile substitution.
14055 if test "$ac_cv_header_stdbool_h" = yes; then
14058 STDBOOL_H='stdbool.h'
14061 if test -n "$STDBOOL_H"; then
14062 GL_GENERATE_STDBOOL_H_TRUE=
14063 GL_GENERATE_STDBOOL_H_FALSE='#'
14065 GL_GENERATE_STDBOOL_H_TRUE='#'
14066 GL_GENERATE_STDBOOL_H_FALSE=
14070 if test "$ac_cv_type__Bool" = yes; then
14081 if test $gt_cv_c_wchar_t = no; then
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14086 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14087 if test "${gl_cv_decl_null_works+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <stddef.h>
14093 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14103 if ac_fn_c_try_compile "$LINENO"; then :
14104 gl_cv_decl_null_works=yes
14106 gl_cv_decl_null_works=no
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14111 $as_echo "$gl_cv_decl_null_works" >&6; }
14112 if test $gl_cv_decl_null_works = no; then
14117 if test -n "$STDDEF_H"; then
14118 GL_GENERATE_STDDEF_H_TRUE=
14119 GL_GENERATE_STDDEF_H_FALSE='#'
14121 GL_GENERATE_STDDEF_H_TRUE='#'
14122 GL_GENERATE_STDDEF_H_FALSE=
14125 if test -n "$STDDEF_H"; then
14134 if test $gl_cv_have_include_next = yes; then
14135 gl_cv_next_stddef_h='<'stddef.h'>'
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14138 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14139 if test "${gl_cv_next_stddef_h+set}" = set; then :
14140 $as_echo_n "(cached) " >&6
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <stddef.h>
14149 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14150 *) gl_absname_cpp="$ac_cpp" ;;
14155 gl_dirsep_regex='[/\\]'
14158 gl_dirsep_regex='\/'
14161 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14163 gl_header_literal_regex=`echo 'stddef.h' \
14164 |
sed -e "$gl_make_literal_regex_sed"`
14165 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14166 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14171 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14172 sed -n "$gl_absolute_header_sed"`'"'
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14177 $as_echo "$gl_cv_next_stddef_h" >&6; }
14179 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14181 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14183 gl_next_as_first_directive='<'stddef.h'>'
14185 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14186 gl_next_as_first_directive=$gl_cv_next_stddef_h
14188 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14201 if test $REPLACE_STRSTR = 0; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
14203 $as_echo_n "checking whether strstr works in linear time... " >&6; }
14204 if test "${gl_cv_func_strstr_linear+set}" = set; then :
14205 $as_echo_n "(cached) " >&6
14207 if test "$cross_compiling" = yes; then :
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 #include <features.h>
14212 #ifdef __GNU_LIBRARY__
14213 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14214 && !(defined __i386__ || defined __x86_64__) \
14215 && !defined __UCLIBC__
14220 #include <cygwin/version.h>
14221 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14228 $EGREP "Lucky user" >/dev/null 2>&1; then :
14229 gl_cv_func_strstr_linear="guessing yes"
14231 gl_cv_func_strstr_linear="guessing no"
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14240 #include <signal.h> /* for signal */
14241 #include <string.h> /* for strstr */
14242 #include <stdlib.h> /* for malloc */
14243 #include <unistd.h> /* for alarm */
14244 static void quit (int sig) { exit (sig + 128); }
14251 size_t m = 1000000;
14252 char *haystack = (char *) malloc (2 * m + 2);
14253 char *needle = (char *) malloc (m + 2);
14254 /* Failure to compile this test due to missing alarm is okay,
14255 since all such platforms (mingw) also have quadratic strstr. */
14256 signal (SIGALRM, quit);
14258 /* Check for quadratic performance. */
14259 if (haystack && needle)
14261 memset (haystack, 'A', 2 * m);
14262 haystack[2 * m] = 'B';
14263 haystack[2 * m + 1] = 0;
14264 memset (needle, 'A', m);
14267 if (!strstr (haystack, needle))
14276 if ac_fn_c_try_run "$LINENO"; then :
14277 gl_cv_func_strstr_linear=yes
14279 gl_cv_func_strstr_linear=no
14281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14282 conftest.$ac_objext conftest.beam conftest.$ac_ext
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14288 $as_echo "$gl_cv_func_strstr_linear" >&6; }
14289 case "$gl_cv_func_strstr_linear" in
14297 if test $REPLACE_STRSTR = 1; then
14306 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14312 if test "$gl_cv_func_memchr_works" != yes; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14316 $as_echo_n "checking whether strstr works... " >&6; }
14317 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
14318 $as_echo_n "(cached) " >&6
14320 if test "$cross_compiling" = yes; then :
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14324 #ifdef __GNU_LIBRARY__
14325 #include <features.h>
14326 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14327 || defined __UCLIBC__
14330 #elif defined __CYGWIN__
14331 #include <cygwin/version.h>
14332 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341 $EGREP "Lucky user" >/dev/null 2>&1; then :
14342 gl_cv_func_strstr_works_always="guessing yes"
14344 gl_cv_func_strstr_works_always="guessing no"
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14353 #include <string.h> /* for strstr */
14354 #define P "_EF_BF_BD"
14355 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14356 #define NEEDLE P P P P P
14361 return !!strstr (HAYSTACK, NEEDLE);
14367 if ac_fn_c_try_run "$LINENO"; then :
14368 gl_cv_func_strstr_works_always=yes
14370 gl_cv_func_strstr_works_always=no
14372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14373 conftest.$ac_objext conftest.beam conftest.$ac_ext
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14379 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14380 case "$gl_cv_func_strstr_works_always" in
14388 if test $REPLACE_STRSTR = 1; then
14397 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14411 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
14429 if test $gl_cv_have_include_next = yes; then
14430 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14433 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14434 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
14435 $as_echo_n "(cached) " >&6
14438 if test $ac_cv_header_sys_stat_h = yes; then
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14443 #include <sys/stat.h>
14447 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14448 *) gl_absname_cpp="$ac_cpp" ;;
14453 gl_dirsep_regex='[/\\]'
14456 gl_dirsep_regex='\/'
14459 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14461 gl_header_literal_regex=`echo 'sys/stat.h' \
14462 |
sed -e "$gl_make_literal_regex_sed"`
14463 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14464 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14469 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14470 sed -n "$gl_absolute_header_sed"`'"'
14472 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14478 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
14480 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
14482 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14483 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14484 gl_next_as_first_directive='<'sys/stat.h'>'
14486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14487 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
14489 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
14498 WINDOWS_64_BIT_ST_SIZE=0
14501 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
14503 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
14507 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
14508 #include <sys/stat.h>
14510 if test "x$ac_cv_type_nlink_t" = x""yes; then :
14514 $as_echo "#define nlink_t int" >>confdefs.h
14520 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
14521 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14523 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14524 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14525 $as_echo_n "(cached) " >&6
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 #include <sys/stat.h>
14540 if ac_fn_c_try_compile "$LINENO"; then :
14541 eval "$as_gl_Symbol=yes"
14543 eval "$as_gl_Symbol=no"
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547 eval ac_res=\$$as_gl_Symbol
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14549 $as_echo "$ac_res" >&6; }
14550 eval as_val=\$$as_gl_Symbol
14551 if test "x$as_val" = x""yes; then :
14552 cat >>confdefs.h <<_ACEOF
14553 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14556 eval ac_cv_have_decl_$gl_func=yes
14573 if test $gl_cv_have_include_next = yes; then
14574 gl_cv_next_sys_types_h='<'sys/types.h'>'
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14577 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14578 if test "${gl_cv_next_sys_types_h+set}" = set; then :
14579 $as_echo_n "(cached) " >&6
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <sys/types.h>
14588 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14589 *) gl_absname_cpp="$ac_cpp" ;;
14594 gl_dirsep_regex='[/\\]'
14597 gl_dirsep_regex='\/'
14600 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14602 gl_header_literal_regex=`echo 'sys/types.h' \
14603 |
sed -e "$gl_make_literal_regex_sed"`
14604 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14605 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14610 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14611 sed -n "$gl_absolute_header_sed"`'"'
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14616 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14618 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14620 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14621 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14622 gl_next_as_first_directive='<'sys/types.h'>'
14624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14625 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14627 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14655 if test $gl_cv_have_include_next = yes; then
14656 gl_cv_next_unistd_h='<'unistd.h'>'
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14659 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14660 if test "${gl_cv_next_unistd_h+set}" = set; then :
14661 $as_echo_n "(cached) " >&6
14664 if test $ac_cv_header_unistd_h = yes; then
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 #include <unistd.h>
14673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14674 *) gl_absname_cpp="$ac_cpp" ;;
14679 gl_dirsep_regex='[/\\]'
14682 gl_dirsep_regex='\/'
14685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14687 gl_header_literal_regex=`echo 'unistd.h' \
14688 |
sed -e "$gl_make_literal_regex_sed"`
14689 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14690 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14695 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14696 sed -n "$gl_absolute_header_sed"`'"'
14698 gl_cv_next_unistd_h='<'unistd.h'>'
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14704 $as_echo "$gl_cv_next_unistd_h" >&6; }
14706 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14708 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14710 gl_next_as_first_directive='<'unistd.h'>'
14712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14713 gl_next_as_first_directive=$gl_cv_next_unistd_h
14715 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14720 if test $ac_cv_header_unistd_h = yes; then
14732 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
14733 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14735 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14736 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14737 $as_echo_n "(cached) " >&6
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14743 # include <unistd.h>
14745 /* Some systems declare various items in the wrong headers. */
14746 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14747 # include <fcntl.h>
14748 # include <stdio.h>
14749 # include <stdlib.h>
14750 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14764 if ac_fn_c_try_compile "$LINENO"; then :
14765 eval "$as_gl_Symbol=yes"
14767 eval "$as_gl_Symbol=no"
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 eval ac_res=\$$as_gl_Symbol
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14773 $as_echo "$ac_res" >&6; }
14774 eval as_val=\$$as_gl_Symbol
14775 if test "x$as_val" = x""yes; then :
14776 cat >>confdefs.h <<_ACEOF
14777 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14780 eval ac_cv_have_decl_$gl_func=yes
14797 if test $gl_cv_have_include_next = yes; then
14798 gl_cv_next_wchar_h='<'wchar.h'>'
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14801 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14802 if test "${gl_cv_next_wchar_h+set}" = set; then :
14803 $as_echo_n "(cached) " >&6
14806 if test $ac_cv_header_wchar_h = yes; then
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14815 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14816 *) gl_absname_cpp="$ac_cpp" ;;
14821 gl_dirsep_regex='[/\\]'
14824 gl_dirsep_regex='\/'
14827 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14829 gl_header_literal_regex=`echo 'wchar.h' \
14830 |
sed -e "$gl_make_literal_regex_sed"`
14831 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14832 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14837 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14838 sed -n "$gl_absolute_header_sed"`'"'
14840 gl_cv_next_wchar_h='<'wchar.h'>'
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14846 $as_echo "$gl_cv_next_wchar_h" >&6; }
14848 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14852 gl_next_as_first_directive='<'wchar.h'>'
14854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14855 gl_next_as_first_directive=$gl_cv_next_wchar_h
14857 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14862 if test $ac_cv_header_wchar_h = yes; then
14872 if test $gt_cv_c_wint_t = yes; then
14880 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
14881 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14883 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14884 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14885 $as_echo_n "(cached) " >&6
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14890 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14892 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14893 included before <wchar.h>. */
14894 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14895 # include <stddef.h>
14896 # include <stdio.h>
14910 if ac_fn_c_try_compile "$LINENO"; then :
14911 eval "$as_gl_Symbol=yes"
14913 eval "$as_gl_Symbol=no"
14915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 eval ac_res=\$$as_gl_Symbol
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14919 $as_echo "$ac_res" >&6; }
14920 eval as_val=\$$as_gl_Symbol
14921 if test "x$as_val" = x""yes; then :
14922 cat >>confdefs.h <<_ACEOF
14923 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
14926 eval ac_cv_have_decl_$gl_func=yes
14936 if test $ac_cv_func_iswcntrl = yes; then
14944 if test $gt_cv_c_wint_t = yes; then
14960 if test $gl_cv_have_include_next = yes; then
14961 gl_cv_next_wctype_h='<'wctype.h'>'
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14964 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14965 if test "${gl_cv_next_wctype_h+set}" = set; then :
14966 $as_echo_n "(cached) " >&6
14969 if test $ac_cv_header_wctype_h = yes; then
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 #include <wctype.h>
14978 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14979 *) gl_absname_cpp="$ac_cpp" ;;
14984 gl_dirsep_regex='[/\\]'
14987 gl_dirsep_regex='\/'
14990 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14992 gl_header_literal_regex=`echo 'wctype.h' \
14993 |
sed -e "$gl_make_literal_regex_sed"`
14994 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14995 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15000 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15001 sed -n "$gl_absolute_header_sed"`'"'
15003 gl_cv_next_wctype_h='<'wctype.h'>'
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
15009 $as_echo "$gl_cv_next_wctype_h" >&6; }
15011 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
15013 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15015 gl_next_as_first_directive='<'wctype.h'>'
15017 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15018 gl_next_as_first_directive=$gl_cv_next_wctype_h
15020 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
15025 if test $ac_cv_header_wctype_h = yes; then
15026 if test $ac_cv_func_iswcntrl = yes; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
15028 $as_echo_n "checking whether iswcntrl works... " >&6; }
15029 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
15033 if test "$cross_compiling" = yes; then :
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 #include <stdlib.h>
15037 #if __GNU_LIBRARY__ == 1
15038 Linux libc5 i18n is broken.
15048 if ac_fn_c_try_compile "$LINENO"; then :
15049 gl_cv_func_iswcntrl_works="guessing yes"
15051 gl_cv_func_iswcntrl_works="guessing no"
15053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15059 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15060 included before <wchar.h>.
15061 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15062 must be included before <wchar.h>. */
15063 #include <stddef.h>
15067 #include <wctype.h>
15068 int main () { return iswprint ('x') == 0; }
15071 if ac_fn_c_try_run "$LINENO"; then :
15072 gl_cv_func_iswcntrl_works=yes
15074 gl_cv_func_iswcntrl_works=no
15076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15077 conftest.$ac_objext conftest.beam conftest.$ac_ext
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
15083 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
15091 case "$gl_cv_func_iswcntrl_works" in
15092 *yes) REPLACE_ISWCNTRL=0 ;;
15093 *) REPLACE_ISWCNTRL=1 ;;
15097 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
15101 if test $REPLACE_ISWCNTRL = 1; then
15104 for ac_func in towlower
15106 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
15107 if test "x$ac_cv_func_towlower" = x""yes; then :
15108 cat >>confdefs.h <<_ACEOF
15109 #define HAVE_TOWLOWER 1
15115 if test $ac_cv_func_towlower = yes; then
15118 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15119 included before <wchar.h>.
15120 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15121 must be included before <wchar.h>. */
15122 #include <stddef.h>
15127 # include <wctype.h>
15131 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
15137 cat >>confdefs.h <<_ACEOF
15138 #define HAVE_DECL_TOWLOWER $ac_have_decl
15141 if test $ac_cv_have_decl_towlower = yes; then
15150 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
15155 $as_echo_n "checking for wctype_t... " >&6; }
15156 if test "${gl_cv_type_wctype_t+set}" = set; then :
15157 $as_echo_n "(cached) " >&6
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15161 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15162 included before <wchar.h>.
15163 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15164 must be included before <wchar.h>. */
15165 #include <stddef.h>
15170 # include <wctype.h>
15182 if ac_fn_c_try_compile "$LINENO"; then :
15183 gl_cv_type_wctype_t=yes
15185 gl_cv_type_wctype_t=no
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
15191 $as_echo "$gl_cv_type_wctype_t" >&6; }
15192 if test $gl_cv_type_wctype_t = no; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
15197 $as_echo_n "checking for wctrans_t... " >&6; }
15198 if test "${gl_cv_type_wctrans_t+set}" = set; then :
15199 $as_echo_n "(cached) " >&6
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15204 included before <wchar.h>.
15205 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15206 must be included before <wchar.h>. */
15207 #include <stddef.h>
15211 #include <wctype.h>
15222 if ac_fn_c_try_compile "$LINENO"; then :
15223 gl_cv_type_wctrans_t=yes
15225 gl_cv_type_wctrans_t=no
15227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
15231 $as_echo "$gl_cv_type_wctrans_t" >&6; }
15232 if test $gl_cv_type_wctrans_t = no; then
15237 for gl_func in wctype iswctype wctrans towctrans ; do
15238 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15240 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15241 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15242 $as_echo_n "(cached) " >&6
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15247 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15249 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15250 included before <wchar.h>. */
15251 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15252 # include <stddef.h>
15253 # include <stdio.h>
15255 # include <wchar.h>
15257 #include <wctype.h>
15268 if ac_fn_c_try_compile "$LINENO"; then :
15269 eval "$as_gl_Symbol=yes"
15271 eval "$as_gl_Symbol=no"
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15275 eval ac_res=\$$as_gl_Symbol
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15277 $as_echo "$ac_res" >&6; }
15278 eval as_val=\$$as_gl_Symbol
15279 if test "x$as_val" = x""yes; then :
15280 cat >>confdefs.h <<_ACEOF
15281 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
15284 eval ac_cv_have_decl_$gl_func=yes
15289 # End of code from modules
15310 gl_source_base='tests'
15311 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
15313 gl_module_indicator_condition=$gltests_WITNESS
15323 LIBGNU_LIBDEPS="$gl_libdeps"
15325 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15329 # We don't use automake, but gnulib does. This line lets us generate
15331 am__api_version='1.11'
15333 # Find a good install program. We prefer a C program (faster),
15334 # so one script is as good as another. But avoid the broken or
15335 # incompatible versions:
15336 # SysV /etc/install, /usr/sbin/install
15337 # SunOS /usr/etc/install
15338 # IRIX /sbin/install
15340 # AmigaOS /C/install, which installs bootblocks on floppy discs
15341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15344 # OS/2's system install, which has a completely different semantic
15345 # ./install, which can be erroneously created by make from ./install.sh.
15346 # Reject install programs that cannot install multiple files.
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15348 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15349 if test -z "$INSTALL"; then
15350 if test "${ac_cv_path_install+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15354 for as_dir in $PATH
15357 test -z "$as_dir" && as_dir=.
15358 # Account for people who put trailing slashes in PATH elements.
15359 case $as_dir/ in #((
15360 ./ | .// | /[cC]/* | \
15361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15362 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15365 # OSF1 and SCO ODT 3.0 have their own names for install.
15366 # Don't use installbsd from OSF since it installs stuff as root
15368 for ac_prog in ginstall scoinst install; do
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15371 if test $ac_prog = install &&
15372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15373 # AIX install. It has an incompatible calling convention.
15375 elif test $ac_prog = install &&
15376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15377 # program-specific install script used by HP pwplus--don't use.
15380 rm -rf conftest.one conftest.two conftest.dir
15381 echo one > conftest.one
15382 echo two > conftest.two
15384 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15385 test -s conftest.one && test -s conftest.two &&
15386 test -s conftest.dir/conftest.one &&
15387 test -s conftest.dir/conftest.two
15389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15402 rm -rf conftest.one conftest.two conftest.dir
15405 if test "${ac_cv_path_install+set}" = set; then
15406 INSTALL=$ac_cv_path_install
15408 # As a last resort, use the slow shell script. Don't cache a
15409 # value for INSTALL within a source directory, because that will
15410 # break other packages using the cache if that directory is
15411 # removed, or if the value is a relative name.
15412 INSTALL=$ac_install_sh
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15416 $as_echo "$INSTALL" >&6; }
15418 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15419 # It thinks the first close brace ends the variable substitution.
15420 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15422 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15424 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15427 $as_echo_n "checking whether build environment is sane... " >&6; }
15430 echo timestamp > conftest.file
15431 # Reject unsafe characters in $srcdir or the absolute working directory
15432 # name. Accept space and tab only in the latter.
15436 *[\\\"\#\$\&\'\`$am_lf]*)
15437 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
15440 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
15441 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
15444 # Do `set' in a subshell so we don't clobber the current shell's
15445 # arguments. Must try -L first in case configure is actually a
15446 # symlink; some systems play weird games with the mod time of symlinks
15447 # (eg FreeBSD returns the mod time of the symlink's containing
15450 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15451 if test "$*" = "X"; then
15453 set X
`ls -t "$srcdir/configure" conftest.file`
15455 rm -f conftest.
file
15456 if test "$*" != "X $srcdir/configure conftest.file" \
15457 && test "$*" != "X conftest.file $srcdir/configure"; then
15459 # If neither matched, then we have a broken ls. This can happen
15460 # if, for instance, CONFIG_SHELL is bash and it inherits a
15461 # broken ls alias from the environment. This has actually
15462 # happened. Such a system could not be considered "sane".
15463 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
15464 alias in your environment" "$LINENO" 5
15467 test "$2" = conftest.
file
15473 as_fn_error
"newly created file is older than distributed files!
15474 Check your system clock" "$LINENO" 5
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15477 $as_echo "yes" >&6; }
15478 test "$program_prefix" != NONE
&&
15479 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
15480 # Use a double $ so make ignores it.
15481 test "$program_suffix" != NONE
&&
15482 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
15483 # Double any \ or $.
15484 # By default was `s,x,x', remove it if useless.
15485 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
15486 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
15488 # expand $ac_aux_dir to an absolute path
15489 am_aux_dir
=`cd $ac_aux_dir && pwd`
15491 if test x
"${MISSING+set}" != xset
; then
15492 case $am_aux_dir in
15494 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
15496 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
15499 # Use eval to expand $SHELL
15500 if eval "$MISSING --run true"; then
15501 am_missing_run
="$MISSING --run "
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15505 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15508 if test x
"${install_sh}" != xset
; then
15509 case $am_aux_dir in
15511 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
15513 install_sh
="\${SHELL} $am_aux_dir/install-sh"
15517 # Installed binaries are usually stripped using `strip' when the user
15518 # run `make install-strip'. However `strip' might not be the right
15519 # tool to use in cross-compilation environments, therefore Automake
15520 # will honor the `STRIP' environment variable to overrule this program.
15521 if test "$cross_compiling" != no
; then
15522 if test -n "$ac_tool_prefix"; then
15523 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15524 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15526 $as_echo_n "checking for $ac_word... " >&6; }
15527 if test "${ac_cv_prog_STRIP+set}" = set; then :
15528 $as_echo_n "(cached) " >&6
15530 if test -n "$STRIP"; then
15531 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
15533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15534 for as_dir
in $PATH
15537 test -z "$as_dir" && as_dir
=.
15538 for ac_exec_ext
in '' $ac_executable_extensions; do
15539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15540 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
15541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15550 STRIP
=$ac_cv_prog_STRIP
15551 if test -n "$STRIP"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15553 $as_echo "$STRIP" >&6; }
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15556 $as_echo "no" >&6; }
15561 if test -z "$ac_cv_prog_STRIP"; then
15563 # Extract the first word of "strip", so it can be a program name with args.
15564 set dummy strip
; ac_word
=$2
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566 $as_echo_n "checking for $ac_word... " >&6; }
15567 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15570 if test -n "$ac_ct_STRIP"; then
15571 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
15573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15574 for as_dir
in $PATH
15577 test -z "$as_dir" && as_dir
=.
15578 for ac_exec_ext
in '' $ac_executable_extensions; do
15579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15580 ac_cv_prog_ac_ct_STRIP
="strip"
15581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15590 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
15591 if test -n "$ac_ct_STRIP"; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15593 $as_echo "$ac_ct_STRIP" >&6; }
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15599 if test "x$ac_ct_STRIP" = x
; then
15602 case $cross_compiling:$ac_tool_warned in
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15606 ac_tool_warned
=yes ;;
15611 STRIP
="$ac_cv_prog_STRIP"
15615 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
15619 [\\/$
]* | ?
:[\\/]*) ;;
15620 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
15623 for ac_prog
in gawk mawk nawk
awk
15625 # Extract the first word of "$ac_prog", so it can be a program name with args.
15626 set dummy
$ac_prog; ac_word
=$2
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628 $as_echo_n "checking for $ac_word... " >&6; }
15629 if test "${ac_cv_prog_AWK+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15632 if test -n "$AWK"; then
15633 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
15635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15636 for as_dir
in $PATH
15639 test -z "$as_dir" && as_dir
=.
15640 for ac_exec_ext
in '' $ac_executable_extensions; do
15641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15642 ac_cv_prog_AWK
="$ac_prog"
15643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15652 AWK
=$ac_cv_prog_AWK
15653 if test -n "$AWK"; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15655 $as_echo "$AWK" >&6; }
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15658 $as_echo "no" >&6; }
15662 test -n "$AWK" && break
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15666 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15668 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15669 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15670 $as_echo_n "(cached) " >&6
15672 cat >conftest.
make <<\_ACEOF
15675 @
echo '@@@%%%=$(MAKE)=@@@%%%'
15677 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15678 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15679 *@@@
%%%=?
*=@@@
%%%*)
15680 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
15682 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
15684 rm -f conftest.
make
15686 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15688 $as_echo "yes" >&6; }
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15692 $as_echo "no" >&6; }
15693 SET_MAKE
="MAKE=${MAKE-make}"
15696 rm -rf .tst
2>/dev
/null
15697 mkdir .tst
2>/dev
/null
15698 if test -d .tst
; then
15703 rmdir .tst
2>/dev
/null
15705 DEPDIR
="${am__leading_dot}deps"
15707 ac_config_commands
="$ac_config_commands depfiles"
15710 am_make
=${MAKE-make}
15711 cat > confinc
<< 'END'
15713 @
echo this is the am__doit target
15716 # If we don't find an include directive, just comment out the code.
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15718 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15722 # First try GNU make style include.
15723 echo "include confinc" > confmf
15724 # Ignore all kinds of additional output from `make'.
15725 case `$am_make -s -f confmf 2> /dev/null` in #(
15726 *the\ am__doit\ target
*)
15727 am__include
=include
15732 # Now try BSD make style include.
15733 if test "$am__include" = "#"; then
15734 echo '.include "confinc"' > confmf
15735 case `$am_make -s -f confmf 2> /dev/null` in #(
15736 *the\ am__doit\ target
*)
15737 am__include
=.include
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15746 $as_echo "$_am_result" >&6; }
15747 rm -f confinc confmf
15749 # Check whether --enable-dependency-tracking was given.
15750 if test "${enable_dependency_tracking+set}" = set; then :
15751 enableval
=$enable_dependency_tracking;
15754 if test "x$enable_dependency_tracking" != xno
; then
15755 am_depcomp
="$ac_aux_dir/depcomp"
15758 if test "x$enable_dependency_tracking" != xno; then
15767 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15768 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15769 # is not polluted with repeated "-I."
15770 am__isrc
=' -I$(srcdir)'
15771 # test to see if srcdir already configured
15772 if test -f $srcdir/config.status
; then
15773 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15777 # test whether we have cygpath
15778 if test -z "$CYGPATH_W"; then
15779 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
15780 CYGPATH_W
='cygpath -w'
15787 # Define the identity of the package.
15789 VERSION
=UNUSED-VERSION
15792 # Some tools Automake needs.
15794 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15797 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
15800 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15803 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
15806 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
15808 # We need awk for the "check" target. The system "awk" is bad on
15810 # Always define AMTAR for backward compatibility.
15812 AMTAR
=${AMTAR-"${am_missing_run}tar"}
15814 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
15819 depcc
="$CC" am_compiler_list
=
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15822 $as_echo_n "checking dependency style of $depcc... " >&6; }
15823 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
15826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15827 # We make a subdir and do the tests there. Otherwise we can end up
15828 # making bogus files that we don't know about and never remove. For
15829 # instance it was reported that on HP-UX the gcc test will end up
15830 # making a dummy file named `D' -- because `-MD' means `put the output
15833 # Copy depcomp to subdir because otherwise we won't find it if we're
15834 # using a relative directory.
15835 cp "$am_depcomp" conftest.dir
15837 # We will build objects and dependencies in a subdirectory because
15838 # it helps to detect inapplicable dependency modes. For instance
15839 # both Tru64's cc and ICC support -MD to output dependencies as a
15840 # side effect of compilation, but ICC will put the dependencies in
15841 # the current directory while Tru64 will put them in the object
15845 am_cv_CC_dependencies_compiler_type
=none
15846 if test "$am_compiler_list" = ""; then
15847 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15849 am__universal
=false
15850 case " $depcc " in #(
15851 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
15854 for depmode
in $am_compiler_list; do
15855 # Setup a source with many dependencies, because some compilers
15856 # like to wrap large dependency lists on column 80 (with \), and
15857 # we should not choose a depcomp mode which is confused by this.
15859 # We need to recreate these files for each test, as the compiler may
15860 # overwrite some of them when testing with obscure command lines.
15861 # This happens at least with the AIX C compiler.
15863 for i
in 1 2 3 4 5 6; do
15864 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
15865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15866 # Solaris 8's {/usr,}/bin/sh.
15867 touch sub
/conftst
$i.h
15869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15871 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15872 # mode. It turns out that the SunPro C++ compiler does not properly
15873 # handle `-M -o', and we need to detect this. Also, some Intel
15874 # versions had trouble with output in subdirs
15875 am__obj
=sub
/conftest.
${OBJEXT-o}
15876 am__minus_obj
="-o $am__obj"
15879 # This depmode causes a compiler race in universal mode.
15880 test "$am__universal" = false ||
continue
15883 # after this tag, mechanisms are not by side-effect, so they'll
15884 # only be used when explicitly requested
15885 if test "x$enable_dependency_tracking" = xyes
; then
15891 msvisualcpp | msvcmsys
)
15892 # This compiler won't grok `-c -o', but also, the minuso test has
15893 # not run yet. These depmodes are late enough in the game, and
15894 # so weak that their functioning should not be impacted.
15895 am__obj
=conftest.
${OBJEXT-o}
15900 if depmode
=$depmode \
15901 source=sub
/conftest.c object
=$am__obj \
15902 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
15903 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
15904 >/dev
/null
2>conftest.err
&&
15905 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
15906 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
15907 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
15908 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
15909 # icc doesn't choke on unknown options, it will just issue warnings
15910 # or remarks (even with -Werror). So we grep stderr for any message
15911 # that says an option was ignored or not supported.
15912 # When given -MP, icc 7.0 and 7.1 complain thusly:
15913 # icc: Command line warning: ignoring option '-M'; no argument required
15914 # The diagnosis changed in icc 8.0:
15915 # icc: Command line remark: option '-MP' not supported
15916 if (grep 'ignoring option' conftest.err ||
15917 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
15918 am_cv_CC_dependencies_compiler_type
=$depmode
15925 rm -rf conftest.dir
15927 am_cv_CC_dependencies_compiler_type
=none
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15932 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15933 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
15936 test "x$enable_dependency_tracking" != xno \
15937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
15938 am__fastdepCC_TRUE
=
15939 am__fastdepCC_FALSE
='#'
15941 am__fastdepCC_TRUE
='#'
15942 am__fastdepCC_FALSE
=
15948 # --------------------- #
15949 # Checks for programs. #
15950 # --------------------- #
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15954 $as_echo_n "checking whether ln -s works... " >&6; }
15956 if test "$LN_S" = "ln -s"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15958 $as_echo "yes" >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15961 $as_echo "no, using $LN_S" >&6; }
15964 if test -n "$ac_tool_prefix"; then
15965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15966 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15968 $as_echo_n "checking for $ac_word... " >&6; }
15969 if test "${ac_cv_prog_RANLIB+set}" = set; then :
15970 $as_echo_n "(cached) " >&6
15972 if test -n "$RANLIB"; then
15973 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
15975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15976 for as_dir
in $PATH
15979 test -z "$as_dir" && as_dir
=.
15980 for ac_exec_ext
in '' $ac_executable_extensions; do
15981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15982 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
15983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15992 RANLIB
=$ac_cv_prog_RANLIB
15993 if test -n "$RANLIB"; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15995 $as_echo "$RANLIB" >&6; }
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998 $as_echo "no" >&6; }
16003 if test -z "$ac_cv_prog_RANLIB"; then
16004 ac_ct_RANLIB
=$RANLIB
16005 # Extract the first word of "ranlib", so it can be a program name with args.
16006 set dummy ranlib
; ac_word
=$2
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16008 $as_echo_n "checking for $ac_word... " >&6; }
16009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
16010 $as_echo_n "(cached) " >&6
16012 if test -n "$ac_ct_RANLIB"; then
16013 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
16015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16016 for as_dir
in $PATH
16019 test -z "$as_dir" && as_dir
=.
16020 for ac_exec_ext
in '' $ac_executable_extensions; do
16021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16022 ac_cv_prog_ac_ct_RANLIB
="ranlib"
16023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16032 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
16033 if test -n "$ac_ct_RANLIB"; then
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16035 $as_echo "$ac_ct_RANLIB" >&6; }
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16038 $as_echo "no" >&6; }
16041 if test "x$ac_ct_RANLIB" = x
; then
16044 case $cross_compiling:$ac_tool_warned in
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16048 ac_tool_warned
=yes ;;
16050 RANLIB
=$ac_ct_RANLIB
16053 RANLIB
="$ac_cv_prog_RANLIB"
16057 if test -n "$ac_tool_prefix"; then
16058 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16059 set dummy
${ac_tool_prefix}ar; ac_word
=$2
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16061 $as_echo_n "checking for $ac_word... " >&6; }
16062 if test "${ac_cv_prog_AR+set}" = set; then :
16063 $as_echo_n "(cached) " >&6
16065 if test -n "$AR"; then
16066 ac_cv_prog_AR
="$AR" # Let the user override the test.
16068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16069 for as_dir
in $PATH
16072 test -z "$as_dir" && as_dir
=.
16073 for ac_exec_ext
in '' $ac_executable_extensions; do
16074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16075 ac_cv_prog_AR
="${ac_tool_prefix}ar"
16076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16086 if test -n "$AR"; then
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16088 $as_echo "$AR" >&6; }
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16096 if test -z "$ac_cv_prog_AR"; then
16098 # Extract the first word of "ar", so it can be a program name with args.
16099 set dummy
ar; ac_word
=$2
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16101 $as_echo_n "checking for $ac_word... " >&6; }
16102 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16103 $as_echo_n "(cached) " >&6
16105 if test -n "$ac_ct_AR"; then
16106 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
16108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16109 for as_dir
in $PATH
16112 test -z "$as_dir" && as_dir
=.
16113 for ac_exec_ext
in '' $ac_executable_extensions; do
16114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16115 ac_cv_prog_ac_ct_AR
="ar"
16116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16125 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
16126 if test -n "$ac_ct_AR"; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16128 $as_echo "$ac_ct_AR" >&6; }
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131 $as_echo "no" >&6; }
16134 if test "x$ac_ct_AR" = x
; then
16137 case $cross_compiling:$ac_tool_warned in
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16141 ac_tool_warned
=yes ;;
16146 AR
="$ac_cv_prog_AR"
16150 # ---------------------- #
16151 # Checks for libraries. #
16152 # ---------------------- #
16154 ac_config_files
="$ac_config_files Makefile import/Makefile"
16156 ac_config_commands
="$ac_config_commands default"
16158 cat >confcache
<<\_ACEOF
16159 # This file is a shell script that caches the results of configure
16160 # tests run on this system so they can be shared between configure
16161 # scripts and configure runs, see configure's option --config-cache.
16162 # It is not useful on other systems. If it contains results you don't
16163 # want to keep, you may remove or edit it.
16165 # config.status only pays attention to the cache file if you give it
16166 # the --recheck option to rerun configure.
16168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16170 # following values.
16174 # The following way of writing the cache mishandles newlines in values,
16175 # but we know of no workaround that is simple, portable, and efficient.
16176 # So, we kill variables containing newlines.
16177 # Ultrix sh set writes to stderr and can't be redirected directly,
16178 # and sets the high bit in the cache file unless we assign to the vars.
16180 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16181 eval ac_val
=\$
$ac_var
16185 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16189 _ | IFS | as_nl
) ;; #(
16190 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16191 *) { eval $ac_var=; unset $ac_var;} ;;
16197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16198 *${as_nl}ac_space
=\
*)
16199 # `set' does not quote correctly, so add quotes: double-quote
16200 # substitution turns \\\\ into \\, and sed turns \\ into \.
16203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16206 # `set' quotes correctly as required by POSIX, so do not add quotes.
16207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16220 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16221 if test -w "$cache_file"; then
16222 test "x$cache_file" != "x/dev/null" &&
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16224 $as_echo "$as_me: updating cache $cache_file" >&6;}
16225 cat confcache
>$cache_file
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16228 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16233 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16234 # Let make expand exec_prefix.
16235 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16237 DEFS
=-DHAVE_CONFIG_H
16241 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16242 # 1. Remove the extension, and $U if already installed.
16243 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16244 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16245 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16246 # will be set to the directory where LIBOBJS objects are built.
16247 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16248 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16250 LIBOBJS
=$ac_libobjs
16252 LTLIBOBJS
=$ac_ltlibobjs
16255 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16256 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16259 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16260 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16263 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16264 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
16265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16267 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16268 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
16269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16271 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
16272 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
16273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16275 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
16276 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
16277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16280 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
16281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16285 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
16286 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
16287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16289 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16290 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16296 if test -n "$gl_LIBOBJS"; then
16297 # Remove the extension.
16298 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16299 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16300 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16301 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16304 gl_LIBOBJS
=$gl_libobjs
16306 gl_LTLIBOBJS
=$gl_ltlibobjs
16312 if test -n "$gltests_LIBOBJS"; then
16313 # Remove the extension.
16314 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16315 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16316 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16317 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16320 gltests_LIBOBJS
=$gltests_libobjs
16322 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16326 as_fn_error
"conditional \"AMDEP\" was never defined.
16327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16330 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16333 if test -n "$EXEEXT"; then
16335 am__EXEEXT_FALSE
='#'
16337 am__EXEEXT_TRUE
='#'
16342 : ${CONFIG_STATUS=./config.status}
16344 ac_clean_files_save
=$ac_clean_files
16345 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16347 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16351 # Generated by $as_me.
16352 # Run this file to recreate the current configuration.
16353 # Compiler output produced by configure, useful for debugging
16354 # configure, is in config.log if it exists.
16357 ac_cs_recheck=false
16360 SHELL=\${CONFIG_SHELL-$SHELL}
16363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16364 ## -------------------- ##
16365 ## M4sh Initialization. ##
16366 ## -------------------- ##
16368 # Be more Bourne compatible
16369 DUALCASE
=1; export DUALCASE
# for MKS sh
16370 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16373 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16374 # is contrary to our usage. Disable this feature.
16375 alias -g '${1+"$@"}'='"$@"'
16376 setopt NO_GLOB_SUBST
16378 case `(set -o) 2>/dev/null` in #(
16390 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16391 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16394 # Prefer a ksh shell builtin over an external printf program on Solaris,
16395 # but without wasting forks for bash or zsh.
16396 if test -z "$BASH_VERSION$ZSH_VERSION" \
16397 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16398 as_echo='print
-r --'
16399 as_echo_n='print
-rn --'
16400 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16401 as_echo='printf %s
\n'
16402 as_echo_n='printf %s
'
16404 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16405 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16406 as_echo_n='/usr
/ucb
/echo -n'
16408 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16409 as_echo_n_body='eval
16413 expr "X$arg" : "X\\(.*\\)$as_nl";
16414 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16416 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16418 export as_echo_n_body
16419 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16421 export as_echo_body
16422 as_echo='sh
-c $as_echo_body as_echo
'
16425 # The user is always right.
16426 if test "${PATH_SEPARATOR+set}" != set; then
16428 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16429 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16436 # We need space, tab and new line, in precisely that order. Quoting is
16437 # there to prevent editors from complaining about space-tab.
16438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16439 # splitting by setting IFS to empty value.)
16442 # Find who we are. Look in the path if we contain no directory separator.
16444 *[\\/]* ) as_myself=$0 ;;
16445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16446 for as_dir in $PATH
16449 test -z "$as_dir" && as_dir=.
16450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16456 # We did not find ourselves, most probably we were run as `sh COMMAND'
16457 # in which case we are not to be found in the path.
16458 if test "x$as_myself" = x
; then
16461 if test ! -f "$as_myself"; then
16462 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16466 # Unset variables that we do not need and which cause bugs (e.g. in
16467 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16468 # suppresses any "Segmentation fault" message there. '((' could
16469 # trigger a bug in pdksh 5.2.14.
16470 for as_var
in BASH_ENV ENV MAIL MAILPATH
16471 do eval test x\
${$as_var+set} = xset \
16472 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16485 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16488 # as_fn_error ERROR [LINENO LOG_FD]
16489 # ---------------------------------
16490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16492 # script with status $?, using 1 if that was 0.
16495 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16497 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16498 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16500 $as_echo "$as_me: error: $1" >&2
16501 as_fn_exit
$as_status
16505 # as_fn_set_status STATUS
16506 # -----------------------
16507 # Set $? to STATUS, without forking.
16508 as_fn_set_status
()
16511 } # as_fn_set_status
16513 # as_fn_exit STATUS
16514 # -----------------
16515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16519 as_fn_set_status
$1
16525 # Portably unset VAR.
16528 { eval $1=; unset $1;}
16530 as_unset
=as_fn_unset
16531 # as_fn_append VAR VALUE
16532 # ----------------------
16533 # Append the text in VALUE to the end of the definition contained in VAR. Take
16534 # advantage of any shell optimizations that allow amortized linear growth over
16535 # repeated appends, instead of the typical quadratic growth present in naive
16537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16538 eval 'as_fn_append ()
16549 # as_fn_arith ARG...
16550 # ------------------
16551 # Perform arithmetic evaluation on the ARGs, and store the result in the
16552 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16553 # must be portable across $(()) and expr.
16554 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16555 eval 'as_fn_arith ()
16562 as_val
=`expr "$@" || test $? -eq 1`
16567 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16568 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16574 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16575 as_basename
=basename
16580 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16586 as_me
=`$as_basename -- "$0" ||
16587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16588 X"$0" : 'X\(//\)$' \| \
16589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16591 sed '/^.*\/\([^/][^/]*\)\/*$/{
16605 # Avoid depending upon Character Ranges.
16606 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16607 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16608 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16609 as_cr_digits
='0123456789'
16610 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16612 ECHO_C
= ECHO_N
= ECHO_T
=
16613 case `echo -n x` in #(((((
16615 case `echo 'xy\c'` in
16616 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16618 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16625 rm -f conf$$ conf$$.exe conf$$.
file
16626 if test -d conf$$.dir
; then
16627 rm -f conf$$.dir
/conf$$.
file
16630 mkdir conf$$.dir
2>/dev
/null
16632 if (echo >conf$$.
file) 2>/dev
/null
; then
16633 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16635 # ... but there are two gotchas:
16636 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16637 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16638 # In both cases, we have to default to `cp -p'.
16639 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16641 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16649 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16650 rmdir conf$$.dir
2>/dev
/null
16655 # Create "$as_dir" as a directory, including parents if necessary.
16660 -*) as_dir
=.
/$as_dir;;
16662 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16666 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16667 *) as_qdir
=$as_dir;;
16669 as_dirs
="'$as_qdir' $as_dirs"
16670 as_dir
=`$as_dirname -- "$as_dir" ||
16671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16672 X"$as_dir" : 'X\(//\)[^/]' \| \
16673 X"$as_dir" : 'X\(//\)$' \| \
16674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16675 $as_echo X"$as_dir" |
16676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16680 /^X\(\/\/\)[^/].*/{
16693 test -d "$as_dir" && break
16695 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16696 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16700 if mkdir
-p .
2>/dev
/null
; then
16701 as_mkdir_p
='mkdir -p "$as_dir"'
16703 test -d .
/-p && rmdir .
/-p
16707 if test -x / >/dev
/null
2>&1; then
16708 as_test_x
='test -x'
16710 if ls -dL / >/dev
/null
2>&1; then
16717 if test -d "$1"; then
16723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16724 ???[sx]*):;;*)false;;esac;fi
16728 as_executable_p
=$as_test_x
16730 # Sed expression to map a string onto a valid CPP name.
16731 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16733 # Sed expression to map a string onto a valid variable name.
16734 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16738 ## ----------------------------------- ##
16739 ## Main body of $CONFIG_STATUS script. ##
16740 ## ----------------------------------- ##
16742 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16745 # Save the log message, to keep $0 and so on meaningful, and to
16746 # report actual input values of CONFIG_FILES etc. instead of their
16747 # values after options handling.
16749 This file was extended by $as_me, which was
16750 generated by GNU Autoconf 2.64. Invocation command line was
16752 CONFIG_FILES = $CONFIG_FILES
16753 CONFIG_HEADERS = $CONFIG_HEADERS
16754 CONFIG_LINKS = $CONFIG_LINKS
16755 CONFIG_COMMANDS = $CONFIG_COMMANDS
16758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16763 case $ac_config_files in *"
16764 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16767 case $ac_config_headers in *"
16768 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16773 # Files that config.status was made for.
16774 config_files="$ac_config_files"
16775 config_headers="$ac_config_headers"
16776 config_commands="$ac_config_commands"
16780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16782 \`$as_me' instantiates files and other configuration actions
16783 from templates according to the current configuration. Unless the files
16784 and actions are specified as TAGs, all are instantiated by default.
16786 Usage: $0 [OPTION]... [TAG]...
16788 -h, --help print this help, then exit
16789 -V, --version print version number and configuration settings, then exit
16790 -q, --quiet, --silent
16791 do not print progress messages
16792 -d, --debug don't remove temporary files
16793 --recheck update $as_me by reconfiguring in the same conditions
16794 --file=FILE[:TEMPLATE]
16795 instantiate the configuration file FILE
16796 --header=FILE[:TEMPLATE]
16797 instantiate the configuration header FILE
16799 Configuration files:
16802 Configuration headers:
16805 Configuration commands:
16808 Report bugs to the package provider."
16811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16814 configured by $0, generated by GNU Autoconf 2.64,
16815 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16817 Copyright (C) 2009 Free Software Foundation, Inc.
16818 This config.status script is free software; the Free Software Foundation
16819 gives unlimited permission to copy, distribute and modify it."
16826 test -n "\$AWK" || AWK=awk
16829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16830 # The default lists apply if the user does not specify any file.
16836 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16837 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16848 # Handling of the options.
16849 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16851 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16852 $as_echo "$ac_cs_version"; exit ;;
16853 --debug |
--debu |
--deb |
--de |
--d |
-d )
16855 --file |
--fil |
--fi |
--f )
16858 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16860 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16861 ac_need_defaults
=false
;;
16862 --header |
--heade |
--head |
--hea )
16865 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16867 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16868 ac_need_defaults
=false
;;
16870 # Conflict between --help and --header
16871 as_fn_error
"ambiguous option: \`$1'
16872 Try \`$0 --help' for more information.";;
16873 --help |
--hel |
-h )
16874 $as_echo "$ac_cs_usage"; exit ;;
16875 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16876 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16879 # This is an error.
16880 -*) as_fn_error
"unrecognized option: \`$1'
16881 Try \`$0 --help' for more information." ;;
16883 *) as_fn_append ac_config_targets
" $1"
16884 ac_need_defaults
=false
;;
16890 ac_configure_extra_args
=
16892 if $ac_cs_silent; then
16894 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 if \$ac_cs_recheck; then
16900 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16902 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16903 CONFIG_SHELL='$SHELL'
16904 export CONFIG_SHELL
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16913 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16914 ## Running $as_me. ##
16920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16924 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16930 # Handling of arguments.
16931 for ac_config_target
in $ac_config_targets
16933 case $ac_config_target in
16934 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16935 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16936 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16937 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
16938 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16940 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16945 # If the user did not use the arguments to specify the items to instantiate,
16946 # then the envvar interface is used. Set only those that are not.
16947 # We use the long form for the default assignment because of an extremely
16948 # bizarre bug on SunOS 4.1.3.
16949 if $ac_need_defaults; then
16950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16952 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16955 # Have a temporary directory for convenience. Make it in the build tree
16956 # simply because there is no reason against having it here, and in addition,
16957 # creating and moving files from /tmp can sometimes cause problems.
16958 # Hook for its removal unless debugging.
16959 # Note that there is a small window in which the directory will not be cleaned:
16960 # after its creation but before its name has been assigned to `$tmp'.
16964 trap 'exit_status=$?
16965 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16967 trap 'as_fn_exit 1' 1 2 13 15
16969 # Create a (secure) tmp directory for tmp files.
16972 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16973 test -n "$tmp" && test -d "$tmp"
16976 tmp
=.
/conf$$
-$RANDOM
16977 (umask 077 && mkdir
"$tmp")
16978 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16980 # Set up the scripts for CONFIG_FILES section.
16981 # No need to generate them if there are no CONFIG_FILES.
16982 # This happens for instance with `./config.status config.h'.
16983 if test -n "$CONFIG_FILES"; then
16986 ac_cr
=`echo X | tr X '\015'`
16987 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16988 # But we know of no other shell where ac_cr would be empty at this
16989 # point, so we can use a bashism as a fallback.
16990 if test "x$ac_cr" = x
; then
16991 eval ac_cr
=\$
\'\\r
\'
16993 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16994 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16997 ac_cs_awk_cr
=$ac_cr
17000 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17005 echo "cat >conf$$subs.awk <<_ACEOF" &&
17006 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17008 } >conf$$subs.sh ||
17009 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17010 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17012 for ac_last_try in false false false false false :; do
17013 . ./conf$$subs.sh ||
17014 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17016 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17017 if test $ac_delim_n = $ac_delim_num; then
17019 elif $ac_last_try; then
17020 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17022 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17025 rm -f conf$$subs.sh
17027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17028 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17032 s/^/S["/; s
/!.
*/"]=/
17042 s/\(.\{148\}\).*/\1/
17044 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17049 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17056 s/\(.\{148\}\).*/\1/
17058 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17062 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17067 ' <conf$$subs.awk | sed '
17072 ' >>$CONFIG_STATUS || ac_write_fail=1
17073 rm -f conf$$subs.awk
17074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17076 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17077 for (key in S) S_is_set[key] = 1
17083 nfields = split(line, field, "@
")
17085 len = length(field[1])
17086 for (i = 2; i < nfields; i++) {
17088 keylen = length(key)
17089 if (S_is_set[key]) {
17091 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17092 len += length(value) + length(field[++i])
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17104 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17105 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17108 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17109 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17114 # trailing colons and then remove the whole line if VPATH becomes empty
17115 # (actually we leave an empty line to preserve line numbers).
17116 if test "x
$srcdir" = x.; then
17117 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17118 s/:*\$(srcdir):*/:/
17119 s/:*\${srcdir}:*/:/
17121 s/^\([^=]*=[ ]*\):*/\1/
17127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128 fi # test -n "$CONFIG_FILES"
17130 # Set up the scripts for CONFIG_HEADERS section.
17131 # No need to generate them if there are no CONFIG_HEADERS.
17132 # This happens for instance with `./config.status Makefile'.
17133 if test -n "$CONFIG_HEADERS"; then
17134 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17138 # Transform confdefs.h into an awk script `defines.awk', embedded as
17139 # here-document in config.status, that substitutes the proper values into
17140 # config.h.in to produce config.h.
17142 # Create a delimiter string that does not exist in confdefs.h, to ease
17143 # handling of long lines.
17145 for ac_last_try in false false :; do
17146 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17147 if test -z "$ac_t"; then
17149 elif $ac_last_try; then
17150 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17152 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17156 # For the awk script, D is an array of macro values keyed by name,
17157 # likewise P contains macro parameters if any. Preserve backslash
17158 # newline sequences.
17160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17162 s/.\{148\}/&'"$ac_delim"'/g
17165 s/^[ ]*#[ ]*define[ ][ ]*/ /
17172 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17174 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17179 D["\
1"]=" \
3\\\\\\n
"\\/p
17181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17186 s/.\{148\}/&'"$ac_delim"'/g
17191 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17194 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17196 ' <confdefs.h | sed '
17197 s/'"$ac_delim"'/"\\\
17198 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17201 for (key in D) D_is_set[key] = 1
17204 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17206 split(line, arg, " ")
17207 if (arg[1] == "#") {
17211 defundef
= substr
(arg
[1], 2)
17214 split(mac1
, mac2
, "(") #)
17216 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17217 if (D_is_set
[macro
]) {
17218 # Preserve the white space surrounding the "#".
17219 print prefix
"define", macro P
[macro
] D
[macro
]
17222 # Replace #undef with comments. This is necessary, for example,
17223 # in the case of _POSIX_SOURCE, which is predefined and required
17224 # on some systems where configure will not decide to define it.
17225 if (defundef
== "undef") {
17226 print
"/*", prefix defundef
, macro
, "*/"
17234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17235 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17236 fi # test -n "$CONFIG_HEADERS"
17239 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17244 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17246 case $ac_mode$ac_tag in
17248 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17249 :[FH
]-) ac_tag
=-:-;;
17250 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17267 -) ac_f
="$tmp/stdin";;
17268 *) # Look for the file first in the build tree, then in the source tree
17269 # (if the path is not absolute). The absolute path cannot be DOS-style,
17270 # because $ac_f cannot contain `:'.
17274 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17276 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17278 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17279 as_fn_append ac_file_inputs
" '$ac_f'"
17282 # Let's still pretend it is `configure' which instantiates (i.e., don't
17283 # use $as_me), people would be surprised to read:
17284 # /* config.h. Generated by config.status. */
17285 configure_input
='Generated from '`
17286 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17288 if test x
"$ac_file" != x-
; then
17289 configure_input
="$ac_file. $configure_input"
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17291 $as_echo "$as_me: creating $ac_file" >&6;}
17293 # Neutralize special characters interpreted by sed in replacement strings.
17294 case $configure_input in #(
17295 *\
&* |
*\|
* |
*\\* )
17296 ac_sed_conf_input
=`$as_echo "$configure_input" |
17297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17298 *) ac_sed_conf_input
=$configure_input;;
17302 *:-:* |
*:-) cat >"$tmp/stdin" \
17303 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17308 ac_dir
=`$as_dirname -- "$ac_file" ||
17309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17310 X"$ac_file" : 'X\(//\)[^/]' \| \
17311 X"$ac_file" : 'X\(//\)$' \| \
17312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17313 $as_echo X"$ac_file" |
17314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17318 /^X\(\/\/\)[^/].*/{
17331 as_dir
="$ac_dir"; as_fn_mkdir_p
17335 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17337 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17338 # A ".." for each directory in $ac_dir_suffix.
17339 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17340 case $ac_top_builddir_sub in
17341 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17342 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17345 ac_abs_top_builddir
=$ac_pwd
17346 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17347 # for backward compatibility:
17348 ac_top_builddir
=$ac_top_build_prefix
17351 .
) # We are building in place.
17353 ac_top_srcdir
=$ac_top_builddir_sub
17354 ac_abs_top_srcdir
=$ac_pwd ;;
17355 [\\/]* | ?
:[\\/]* ) # Absolute name.
17356 ac_srcdir
=$srcdir$ac_dir_suffix;
17357 ac_top_srcdir
=$srcdir
17358 ac_abs_top_srcdir
=$srcdir ;;
17359 *) # Relative name.
17360 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17361 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17362 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17364 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17374 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17375 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17377 ac_MKDIR_P
=$MKDIR_P
17379 [\\/$
]* | ?
:[\\/]* ) ;;
17380 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17385 # If the template does not know about datarootdir, expand it.
17386 # FIXME: This hack should be removed a few years after 2.60.
17387 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17398 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17399 *datarootdir
*) ac_datarootdir_seen
=yes;;
17400 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17402 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17405 ac_datarootdir_hack='
17406 s&@datadir@&$datadir&g
17407 s&@docdir@&$docdir&g
17408 s&@infodir@&$infodir&g
17409 s&@localedir@&$localedir&g
17410 s&@mandir@&$mandir&g
17411 s&\\\${datarootdir}&$datarootdir&g' ;;
17415 # Neutralize VPATH when `$srcdir' = `.'.
17416 # Shell code in configure.ac might set extrasub.
17417 # FIXME: do we really want to maintain this feature?
17418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17419 ac_sed_extra="$ac_vpsub
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17424 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17425 s|@configure_input@|
$ac_sed_conf_input|
;t t
17426 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17427 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17428 s
&@srcdir@
&$ac_srcdir&;t t
17429 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17430 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17431 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17432 s
&@builddir@
&$ac_builddir&;t t
17433 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17434 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17435 s
&@INSTALL@
&$ac_INSTALL&;t t
17436 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17437 $ac_datarootdir_hack
17439 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17440 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17443 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17446 which seems to be undefined. Please make sure it is defined." >&5
17447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17448 which seems to be undefined. Please make sure it is defined." >&2;}
17452 -) cat "$tmp/out" && rm -f "$tmp/out";;
17453 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17455 || as_fn_error "could not create $ac_file" "$LINENO" 5
17461 if test x"$ac_file" != x-; then
17463 $as_echo "/* $configure_input */" \
17464 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17465 } >"$tmp/config.h" \
17466 || as_fn_error "could not create $ac_file" "$LINENO" 5
17467 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17469 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17472 mv "$tmp/config.h" "$ac_file" \
17473 || as_fn_error "could not create $ac_file" "$LINENO" 5
17476 $as_echo "/* $configure_input */" \
17477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17478 || as_fn_error "could not create -" "$LINENO" 5
17480 # Compute "$ac_file"'s index
in $config_headers.
17483 for _am_header
in $config_headers :; do
17484 case $_am_header in
17485 $_am_arg |
$_am_arg:* )
17488 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17491 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17492 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17493 X"$_am_arg" : 'X\(//\)[^/]' \| \
17494 X"$_am_arg" : 'X\(//\)$' \| \
17495 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17496 $as_echo X"$_am_arg" |
17497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17501 /^X\(\/\/\)[^/].*/{
17513 s/.*/./; q'`/stamp-h
$_am_stamp_count
17516 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17517 $as_echo "$as_me: executing $ac_file commands" >&6;}
17522 case $ac_file$ac_mode in
17523 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17524 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17525 # are listed without --file. Let's play safe and only enable the eval
17526 # if we detect the quoting.
17527 case $CONFIG_FILES in
17528 *\'*) eval set x
"$CONFIG_FILES" ;;
17529 *) set x
$CONFIG_FILES ;;
17534 # Strip MF so we end up with the name of the file.
17535 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17536 # Check whether this is an Automake generated Makefile or not.
17537 # We used to match only the files named `Makefile.in', but
17538 # some people rename them; so instead we look at the file content.
17539 # Grep'ing the first line is not enough: some people post-process
17540 # each Makefile.in and add a new line on top of each file to say so.
17541 # Grep'ing the whole file is not good either: AIX grep has a line
17542 # limit of 2048, but all sed's we know have understand at least 4000.
17543 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17544 dirpart
=`$as_dirname -- "$mf" ||
17545 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17546 X"$mf" : 'X\(//\)[^/]' \| \
17547 X"$mf" : 'X\(//\)$' \| \
17548 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17554 /^X\(\/\/\)[^/].*/{
17570 # Extract the definition of DEPDIR, am__include, and am__quote
17571 # from the Makefile without running `make'.
17572 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17573 test -z "$DEPDIR" && continue
17574 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17575 test -z "am__include" && continue
17576 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17577 # When using ansi2knr, U may be empty or an underscore; expand it
17578 U
=`sed -n 's/^U = //p' < "$mf"`
17579 # Find all dependency output files, they are included files with
17580 # $(DEPDIR) in their names. We invoke sed twice because it is the
17581 # simplest approach to changing $(DEPDIR) to its actual value in the
17583 for file in `sed -n "
17584 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17585 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17586 # Make sure the directory exists.
17587 test -f "$dirpart/$file" && continue
17588 fdir
=`$as_dirname -- "$file" ||
17589 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590 X"$file" : 'X\(//\)[^/]' \| \
17591 X"$file" : 'X\(//\)$' \| \
17592 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17593 $as_echo X"$file" |
17594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17598 /^X\(\/\/\)[^/].*/{
17611 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17612 # echo "creating $dirpart/$file"
17613 echo '# dummy' > "$dirpart/$file"
17619 case x
$CONFIG_HEADERS in
17620 xconfig.h
:config.
in)
17631 ac_clean_files
=$ac_clean_files_save
17633 test $ac_write_fail = 0 ||
17634 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17637 # configure is writing to config.log, and then calls config.status.
17638 # config.status does its own redirection, appending to config.log.
17639 # Unfortunately, on DOS this fails, as config.log is still kept open
17640 # by configure, so config.status won't be able to write to it; its
17641 # output is simply discarded. So we exec the FD to /dev/null,
17642 # effectively closing config.log, so it can be properly (re)opened and
17643 # appended to by config.status. When coming back to configure, we
17644 # need to make the FD available again.
17645 if test "$no_create" != yes; then
17647 ac_config_status_args
=
17648 test "$silent" = yes &&
17649 ac_config_status_args
="$ac_config_status_args --quiet"
17651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17654 # would make configure fail if this is the last instruction.
17655 $ac_cs_success || as_fn_exit $?
17657 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17659 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}