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>
593 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
684 NEXT_AS_FIRST_DIRECTIVE_STRING_H
686 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
688 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
690 GL_GENERATE_STDDEF_H_FALSE
691 GL_GENERATE_STDDEF_H_TRUE
696 GL_GENERATE_STDBOOL_H_FALSE
697 GL_GENERATE_STDBOOL_H_TRUE
867 NEXT_AS_FIRST_DIRECTIVE_MATH_H
902 LOCALCHARSET_TESTS_ENVIRONMENT
904 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 UINT64_MAX_EQ_ULONG_MAX
907 UINT32_MAX_LT_UINTMAX_MAX
910 INT64_MAX_EQ_LONG_MAX
911 INT32_MAX_LT_INTMAX_MAX
921 GL_GENERATE_STDINT_H_FALSE
922 GL_GENERATE_STDINT_H_TRUE
931 HAVE_SIGNED_SIG_ATOMIC_T
934 BITSIZEOF_SIG_ATOMIC_T
937 APPLE_UNIVERSAL_BUILD
941 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
946 HAVE_UNSIGNED_LONG_LONG_INT
949 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
955 REPLACE_SIGNBIT_USING_GCC
1024 HAVE_DECL_REMAINDERL
1205 GL_GENERATE_FNMATCH_H_FALSE
1206 GL_GENERATE_FNMATCH_H_TRUE
1209 GL_GENERATE_FLOAT_H_FALSE
1210 GL_GENERATE_FLOAT_H_TRUE
1212 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1220 GL_GENERATE_ERRNO_H_FALSE
1221 GL_GENERATE_ERRNO_H_TRUE
1223 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1226 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1229 PRAGMA_SYSTEM_HEADER
1230 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1253 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1254 UNISTD_H_HAVE_WINSOCK2_H
1275 REPLACE_GETDOMAINNAME
1286 HAVE_DECL_SETHOSTNAME
1287 HAVE_DECL_GETUSERSHELL
1288 HAVE_DECL_GETPAGESIZE
1289 HAVE_DECL_GETLOGIN_R
1290 HAVE_DECL_GETDOMAINNAME
1329 GNULIB_UNISTD_H_SIGPIPE
1330 GNULIB_UNISTD_H_NONBLOCKING
1356 GNULIB_GETDTABLESIZE
1357 GNULIB_GETDOMAINNAME
1388 REPLACE_CANONICALIZE_FILE_NAME
1393 HAVE_STRUCT_RANDOM_DATA
1414 HAVE_DECL_GETLOADAVG
1415 HAVE_CANONICALIZE_FILE_NAME
1428 GNULIB_REALLOC_POSIX
1445 GNULIB_CANONICALIZE_FILE_NAME
1449 GL_GENERATE_ALLOCA_H_FALSE
1450 GL_GENERATE_ALLOCA_H_TRUE
1453 GL_COND_LIBTOOL_FALSE
1454 GL_COND_LIBTOOL_TRUE
1481 MAINTAINER_MODE_FALSE
1482 MAINTAINER_MODE_TRUE
1510 program_transform_name
1523 enable_option_checking
1524 enable_maintainer_mode
1526 enable_dependency_tracking
1528 ac_precious_vars
='build_alias
1539 # Initialize some variables set by options.
1541 ac_init_version
=false
1542 ac_unrecognized_opts
=
1543 ac_unrecognized_sep
=
1544 # The variables have the same names as the options, with
1545 # dashes changed to underlines.
1546 cache_file
=/dev
/null
1553 program_transform_name
=s
,x
,x
,
1561 # Installation directory options.
1562 # These are left unexpanded so users can "make install exec_prefix=/foo"
1563 # and all the variables that are supposed to be based on exec_prefix
1564 # by default will actually change.
1565 # Use braces instead of parens because sh, perl, etc. also accept them.
1566 # (The list follows the same order as the GNU Coding Standards.)
1567 bindir
='${exec_prefix}/bin'
1568 sbindir
='${exec_prefix}/sbin'
1569 libexecdir
='${exec_prefix}/libexec'
1570 datarootdir
='${prefix}/share'
1571 datadir
='${datarootdir}'
1572 sysconfdir
='${prefix}/etc'
1573 sharedstatedir
='${prefix}/com'
1574 localstatedir
='${prefix}/var'
1575 includedir
='${prefix}/include'
1576 oldincludedir
='/usr/include'
1577 docdir
='${datarootdir}/doc/${PACKAGE}'
1578 infodir
='${datarootdir}/info'
1583 libdir
='${exec_prefix}/lib'
1584 localedir
='${datarootdir}/locale'
1585 mandir
='${datarootdir}/man'
1591 # If the previous option needs an argument, assign it.
1592 if test -n "$ac_prev"; then
1593 eval $ac_prev=\
$ac_option
1599 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1603 # Accept the important Cygnus configure options, so we can diagnose typos.
1605 case $ac_dashdash$ac_option in
1609 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1611 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1612 bindir
=$ac_optarg ;;
1614 -build |
--build |
--buil |
--bui |
--bu)
1615 ac_prev
=build_alias
;;
1616 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1617 build_alias
=$ac_optarg ;;
1619 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1620 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1621 ac_prev
=cache_file
;;
1622 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1623 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1624 cache_file
=$ac_optarg ;;
1626 --config-cache |
-C)
1627 cache_file
=config.cache
;;
1629 -datadir |
--datadir |
--datadi |
--datad)
1631 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1632 datadir
=$ac_optarg ;;
1634 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1635 |
--dataroo |
--dataro |
--datar)
1636 ac_prev
=datarootdir
;;
1637 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1638 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1639 datarootdir
=$ac_optarg ;;
1641 -disable-* |
--disable-*)
1642 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1643 # Reject names that are not valid shell variable names.
1644 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1645 as_fn_error
"invalid feature name: $ac_useropt"
1646 ac_useropt_orig
=$ac_useropt
1647 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1648 case $ac_user_opts in
1650 "enable_
$ac_useropt"
1652 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1653 ac_unrecognized_sep
=', ';;
1655 eval enable_
$ac_useropt=no
;;
1657 -docdir |
--docdir |
--docdi |
--doc |
--do)
1659 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1660 docdir
=$ac_optarg ;;
1662 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1664 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1665 dvidir
=$ac_optarg ;;
1667 -enable-* |
--enable-*)
1668 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1669 # Reject names that are not valid shell variable names.
1670 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1671 as_fn_error
"invalid feature name: $ac_useropt"
1672 ac_useropt_orig
=$ac_useropt
1673 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1674 case $ac_user_opts in
1676 "enable_
$ac_useropt"
1678 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1679 ac_unrecognized_sep
=', ';;
1681 eval enable_
$ac_useropt=\
$ac_optarg ;;
1683 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1684 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1685 |
--exec |
--exe |
--ex)
1686 ac_prev
=exec_prefix
;;
1687 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1688 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1689 |
--exec=* |
--exe=* |
--ex=*)
1690 exec_prefix
=$ac_optarg ;;
1692 -gas |
--gas |
--ga |
--g)
1693 # Obsolete; use --with-gas.
1696 -help |
--help |
--hel |
--he |
-h)
1697 ac_init_help
=long
;;
1698 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1699 ac_init_help
=recursive
;;
1700 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1701 ac_init_help
=short
;;
1703 -host |
--host |
--hos |
--ho)
1704 ac_prev
=host_alias
;;
1705 -host=* |
--host=* |
--hos=* |
--ho=*)
1706 host_alias
=$ac_optarg ;;
1708 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1710 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1712 htmldir
=$ac_optarg ;;
1714 -includedir |
--includedir |
--includedi |
--included |
--include \
1715 |
--includ |
--inclu |
--incl |
--inc)
1716 ac_prev
=includedir
;;
1717 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1718 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1719 includedir
=$ac_optarg ;;
1721 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1723 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1724 infodir
=$ac_optarg ;;
1726 -libdir |
--libdir |
--libdi |
--libd)
1728 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1729 libdir
=$ac_optarg ;;
1731 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1732 |
--libexe |
--libex |
--libe)
1733 ac_prev
=libexecdir
;;
1734 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1735 |
--libexe=* |
--libex=* |
--libe=*)
1736 libexecdir
=$ac_optarg ;;
1738 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1739 ac_prev
=localedir
;;
1740 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1741 localedir
=$ac_optarg ;;
1743 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1744 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1745 ac_prev
=localstatedir
;;
1746 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1747 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1748 localstatedir
=$ac_optarg ;;
1750 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1752 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1753 mandir
=$ac_optarg ;;
1755 -nfp |
--nfp |
--nf)
1756 # Obsolete; use --without-fp.
1759 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1760 |
--no-cr |
--no-c |
-n)
1763 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1764 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1767 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1768 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1769 |
--oldin |
--oldi |
--old |
--ol |
--o)
1770 ac_prev
=oldincludedir
;;
1771 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1772 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1773 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1774 oldincludedir
=$ac_optarg ;;
1776 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1778 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1779 prefix
=$ac_optarg ;;
1781 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1782 |
--program-pre |
--program-pr |
--program-p)
1783 ac_prev
=program_prefix
;;
1784 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1785 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1786 program_prefix
=$ac_optarg ;;
1788 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1789 |
--program-suf |
--program-su |
--program-s)
1790 ac_prev
=program_suffix
;;
1791 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1792 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1793 program_suffix
=$ac_optarg ;;
1795 -program-transform-name |
--program-transform-name \
1796 |
--program-transform-nam |
--program-transform-na \
1797 |
--program-transform-n |
--program-transform- \
1798 |
--program-transform |
--program-transfor \
1799 |
--program-transfo |
--program-transf \
1800 |
--program-trans |
--program-tran \
1801 |
--progr-tra |
--program-tr |
--program-t)
1802 ac_prev
=program_transform_name
;;
1803 -program-transform-name=* |
--program-transform-name=* \
1804 |
--program-transform-nam=* |
--program-transform-na=* \
1805 |
--program-transform-n=* |
--program-transform-=* \
1806 |
--program-transform=* |
--program-transfor=* \
1807 |
--program-transfo=* |
--program-transf=* \
1808 |
--program-trans=* |
--program-tran=* \
1809 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1810 program_transform_name
=$ac_optarg ;;
1812 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1814 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1815 pdfdir
=$ac_optarg ;;
1817 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1819 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1822 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1823 |
-silent |
--silent |
--silen |
--sile |
--sil)
1826 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1828 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1830 sbindir
=$ac_optarg ;;
1832 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1833 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1834 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1836 ac_prev
=sharedstatedir
;;
1837 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1838 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1839 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1841 sharedstatedir
=$ac_optarg ;;
1843 -site |
--site |
--sit)
1845 -site=* |
--site=* |
--sit=*)
1848 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1850 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1851 srcdir
=$ac_optarg ;;
1853 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1854 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1855 ac_prev
=sysconfdir
;;
1856 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1857 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1858 sysconfdir
=$ac_optarg ;;
1860 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1861 ac_prev
=target_alias
;;
1862 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1863 target_alias
=$ac_optarg ;;
1865 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1868 -version |
--version |
--versio |
--versi |
--vers |
-V)
1869 ac_init_version
=: ;;
1872 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1873 # Reject names that are not valid shell variable names.
1874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1875 as_fn_error
"invalid package name: $ac_useropt"
1876 ac_useropt_orig
=$ac_useropt
1877 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1878 case $ac_user_opts in
1882 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1883 ac_unrecognized_sep
=', ';;
1885 eval with_
$ac_useropt=\
$ac_optarg ;;
1887 -without-* |
--without-*)
1888 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1889 # Reject names that are not valid shell variable names.
1890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1891 as_fn_error
"invalid package name: $ac_useropt"
1892 ac_useropt_orig
=$ac_useropt
1893 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1894 case $ac_user_opts in
1898 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1899 ac_unrecognized_sep
=', ';;
1901 eval with_
$ac_useropt=no
;;
1904 # Obsolete; use --with-x.
1907 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1908 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1909 ac_prev
=x_includes
;;
1910 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1911 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1912 x_includes
=$ac_optarg ;;
1914 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1915 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1916 ac_prev
=x_libraries
;;
1917 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1918 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1919 x_libraries
=$ac_optarg ;;
1921 -*) as_fn_error
"unrecognized option: \`$ac_option'
1922 Try \`$0 --help' for more information."
1926 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1927 # Reject names that are not valid shell variable names.
1928 case $ac_envvar in #(
1929 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1930 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1932 eval $ac_envvar=\
$ac_optarg
1933 export $ac_envvar ;;
1936 # FIXME: should be removed in autoconf 3.0.
1937 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1938 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1939 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1940 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1946 if test -n "$ac_prev"; then
1947 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1948 as_fn_error
"missing argument to $ac_option"
1951 if test -n "$ac_unrecognized_opts"; then
1952 case $enable_option_checking in
1954 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1955 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1959 # Check all directory arguments for consistency.
1960 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1961 datadir sysconfdir sharedstatedir localstatedir includedir \
1962 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1963 libdir localedir mandir
1965 eval ac_val
=\$
$ac_var
1966 # Remove trailing slashes.
1969 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1970 eval $ac_var=\
$ac_val;;
1972 # Be sure to have absolute directory names.
1974 [\\/$
]* | ?
:[\\/]* ) continue;;
1975 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1977 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1980 # There might be people who depend on the old broken behavior: `$host'
1981 # used to hold the argument of --host etc.
1982 # FIXME: To remove some day.
1985 target
=$target_alias
1987 # FIXME: To remove some day.
1988 if test "x$host_alias" != x
; then
1989 if test "x$build_alias" = x
; then
1990 cross_compiling
=maybe
1991 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1992 If a cross compiler is detected then cross compile mode will be used." >&2
1993 elif test "x$build_alias" != "x$host_alias"; then
1999 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
2001 test "$silent" = yes && exec 6>/dev
/null
2004 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
2005 ac_ls_di
=`ls -di .` &&
2006 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
2007 as_fn_error
"working directory cannot be determined"
2008 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2009 as_fn_error
"pwd does not report name of working directory"
2012 # Find the source files, if location was not specified.
2013 if test -z "$srcdir"; then
2014 ac_srcdir_defaulted
=yes
2015 # Try the directory containing this script, then the parent directory.
2016 ac_confdir
=`$as_dirname -- "$as_myself" ||
2017 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2018 X"$as_myself" : 'X\(//\)[^/]' \| \
2019 X"$as_myself" : 'X\(//\)$' \| \
2020 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2021 $as_echo X"$as_myself" |
2022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2040 if test ! -r "$srcdir/$ac_unique_file"; then
2044 ac_srcdir_defaulted
=no
2046 if test ! -r "$srcdir/$ac_unique_file"; then
2047 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
2048 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
2050 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
2052 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2054 # When building in place, set srcdir=.
2055 if test "$ac_abs_confdir" = "$ac_pwd"; then
2058 # Remove unnecessary trailing slashes from srcdir.
2059 # Double slashes in file names in object file debugging info
2060 # mess up M-x gdb in Emacs.
2062 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2064 for ac_var
in $ac_precious_vars; do
2065 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
2066 eval ac_env_
${ac_var}_value
=\$
${ac_var}
2067 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
2068 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
2072 # Report the --help message.
2074 if test "$ac_init_help" = "long"; then
2075 # Omit some internal or obsolete options to make the list less imposing.
2076 # This message is too long to be a string in the A/UX 3.1 sh.
2078 \`configure' configures this package to adapt to many kinds of systems.
2080 Usage: $0 [OPTION]... [VAR=VALUE]...
2082 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2083 VAR=VALUE. See below for descriptions of some of the useful variables.
2085 Defaults for the options are specified in brackets.
2088 -h, --help display this help and exit
2089 --help=short display options specific to this package
2090 --help=recursive display the short help of all the included packages
2091 -V, --version display version information and exit
2092 -q, --quiet, --silent do not print \`checking...' messages
2093 --cache-file=FILE cache test results in FILE [disabled]
2094 -C, --config-cache alias for \`--cache-file=config.cache'
2095 -n, --no-create do not create output files
2096 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2098 Installation directories:
2099 --prefix=PREFIX install architecture-independent files in PREFIX
2100 [$ac_default_prefix]
2101 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2104 By default, \`make install' will install all the files in
2105 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2106 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2107 for instance \`--prefix=\$HOME'.
2109 For better control, use the options below.
2111 Fine tuning of the installation directories:
2112 --bindir=DIR user executables [EPREFIX/bin]
2113 --sbindir=DIR system admin executables [EPREFIX/sbin]
2114 --libexecdir=DIR program executables [EPREFIX/libexec]
2115 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2116 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2117 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2118 --libdir=DIR object code libraries [EPREFIX/lib]
2119 --includedir=DIR C header files [PREFIX/include]
2120 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2121 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2122 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2123 --infodir=DIR info documentation [DATAROOTDIR/info]
2124 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2125 --mandir=DIR man documentation [DATAROOTDIR/man]
2126 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2127 --htmldir=DIR html documentation [DOCDIR]
2128 --dvidir=DIR dvi documentation [DOCDIR]
2129 --pdfdir=DIR pdf documentation [DOCDIR]
2130 --psdir=DIR ps documentation [DOCDIR]
2136 --program-prefix=PREFIX prepend PREFIX to installed program names
2137 --program-suffix=SUFFIX append SUFFIX to installed program names
2138 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
2141 --build=BUILD configure
for building on BUILD
[guessed
]
2142 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
2143 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
2147 if test -n "$ac_init_help"; then
2152 --disable-option-checking ignore unrecognized
--enable/--with options
2153 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
2154 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
2155 --enable-maintainer-mode enable make rules and dependencies not useful
2156 (and sometimes confusing
) to the casual installer
2157 --disable-largefile omit support
for large files
2158 --disable-dependency-tracking speeds up one-time build
2159 --enable-dependency-tracking do not reject slow dependency extractors
2161 Some influential environment variables
:
2162 CC C compiler
command
2163 CFLAGS C compiler flags
2164 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
2165 nonstandard directory
<lib dir
>
2166 LIBS libraries to pass to the linker
, e.g.
-l<library
>
2167 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
2168 you have headers
in a nonstandard directory
<include dir
>
2171 Use these variables to override the choices made by
`configure' or to help
2172 it to find libraries and programs with nonstandard names/locations.
2174 Report bugs to the package provider.
2179 if test "$ac_init_help" = "recursive"; then
2180 # If there are subdirs, report their specific --help.
2181 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2182 test -d "$ac_dir" ||
2183 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2188 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2190 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
2191 # A ".." for each directory in $ac_dir_suffix.
2192 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2193 case $ac_top_builddir_sub in
2194 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2195 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2198 ac_abs_top_builddir=$ac_pwd
2199 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2200 # for backward compatibility:
2201 ac_top_builddir=$ac_top_build_prefix
2204 .) # We are building in place.
2206 ac_top_srcdir=$ac_top_builddir_sub
2207 ac_abs_top_srcdir=$ac_pwd ;;
2208 [\\/]* | ?:[\\/]* ) # Absolute name.
2209 ac_srcdir=$srcdir$ac_dir_suffix;
2210 ac_top_srcdir=$srcdir
2211 ac_abs_top_srcdir=$srcdir ;;
2213 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2214 ac_top_srcdir=$ac_top_build_prefix$srcdir
2215 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2217 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2219 cd "$ac_dir" || { ac_status=$?; continue; }
2220 # Check for guested configure.
2221 if test -f "$ac_srcdir/configure.gnu"; then
2223 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2224 elif test -f "$ac_srcdir/configure"; then
2226 $SHELL "$ac_srcdir/configure" --help=recursive
2228 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2230 cd "$ac_pwd" || { ac_status=$?; break; }
2234 test -n "$ac_init_help" && exit $ac_status
2235 if $ac_init_version; then
2238 generated by GNU Autoconf 2.64
2240 Copyright (C) 2009 Free Software Foundation, Inc.
2241 This configure script is free software; the Free Software Foundation
2242 gives unlimited permission to copy, distribute and modify it.
2247 ## ------------------------ ##
2248 ## Autoconf initialization. ##
2249 ## ------------------------ ##
2251 # ac_fn_c_try_compile LINENO
2252 # --------------------------
2253 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2254 ac_fn_c_try_compile ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 rm -f conftest.$ac_objext
2258 if { { ac_try="$ac_compile"
2260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2261 *) ac_try_echo
=$ac_try;;
2263 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_compile") 2>conftest.err
2267 if test -s conftest.err
; then
2268 grep -v '^ *+' conftest.err
>conftest.er1
2269 cat conftest.er1
>&5
2270 mv -f conftest.er1 conftest.err
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && {
2274 test -z "$ac_c_werror_flag" ||
2275 test ! -s conftest.err
2276 } && test -s conftest.
$ac_objext; then :
2279 $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.
$ac_ext >&5
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2287 } # ac_fn_c_try_compile
2289 # ac_fn_c_try_cpp LINENO
2290 # ----------------------
2291 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2294 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2295 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301 $as_echo "$ac_try_echo"; } >&5
2302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2304 if test -s conftest.err; then
2305 grep -v '^ *+' conftest.err >conftest.er1
2306 cat conftest.er1 >&5
2307 mv -f conftest.er1 conftest.err
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } >/dev/null && {
2311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2312 test ! -s conftest.err
2316 $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2326 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2327 # -------------------------------------------------------
2328 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2329 # the include files in INCLUDES and setting the cache variable VAR
2331 ac_fn_c_check_header_mongrel ()
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342 $as_echo "$ac_res" >&6; }
2344 # Is the header compilable?
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2346 $as_echo_n "checking $2 usability... " >&6; }
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2352 if ac_fn_c_try_compile "$LINENO"; then :
2353 ac_header_compiler=yes
2355 ac_header_compiler=no
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2359 $as_echo "$ac_header_compiler" >&6; }
2361 # Is the header present?
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2363 $as_echo_n "checking $2 presence... " >&6; }
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2368 if ac_fn_c_try_cpp "$LINENO"; then :
2369 ac_header_preproc=yes
2371 ac_header_preproc=no
2373 rm -f conftest.err conftest.$ac_ext
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2375 $as_echo "$ac_header_preproc" >&6; }
2377 # So? What about this header?
2378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2381 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2383 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2387 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2389 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2391 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2393 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2395 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2403 eval "$3=\$ac_header_compiler"
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 } # ac_fn_c_check_header_mongrel
2413 # ac_fn_c_try_run LINENO
2414 # ----------------------
2415 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2416 # that executables *can* be run.
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 if { { ac_try="$ac_link"
2422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2423 *) ac_try_echo
=$ac_try;;
2425 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2426 $as_echo "$ac_try_echo"; } >&5
2427 (eval "$ac_link") 2>&5
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2431 { { case "(($ac_try" in
2432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_try") 2>&5
2439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440 test $ac_status = 0; }; }; then :
2443 $as_echo "$as_me: program exited with status $ac_status" >&5
2444 $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 ac_retval=$ac_status
2449 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2455 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2456 # -------------------------------------------------------
2457 # Tests whether HEADER exists and can be compiled using the include files in
2458 # INCLUDES, setting the cache variable VAR accordingly.
2459 ac_fn_c_check_header_compile ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2472 if ac_fn_c_try_compile "$LINENO"; then :
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_header_compile
2486 # ac_fn_c_try_link LINENO
2487 # -----------------------
2488 # Try to link conftest.$ac_ext, and return whether this succeeded.
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 rm -f conftest.$ac_objext conftest$ac_exeext
2493 if { { ac_try="$ac_link"
2495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2496 *) ac_try_echo
=$ac_try;;
2498 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499 $as_echo "$ac_try_echo"; } >&5
2500 (eval "$ac_link") 2>conftest.err
2502 if test -s conftest.err
; then
2503 grep -v '^ *+' conftest.err
>conftest.er1
2504 cat conftest.er1
>&5
2505 mv -f conftest.er1 conftest.err
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; } && {
2509 test -z "$ac_c_werror_flag" ||
2510 test ! -s conftest.err
2511 } && test -s conftest
$ac_exeext && {
2512 test "$cross_compiling" = yes ||
2513 $as_test_x conftest
$ac_exeext
2517 $as_echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.
$ac_ext >&5
2522 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2523 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2524 # interfere with the next link command; also delete a directory that is
2525 # left behind by Apple's compiler. We do this before executing the actions.
2526 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2527 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2530 } # ac_fn_c_try_link
2532 # ac_fn_c_check_func LINENO FUNC VAR
2533 # ----------------------------------
2534 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2535 ac_fn_c_check_func
()
2537 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2541 $as_echo_n "(cached) " >&6
2543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2545 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2547 #define $2 innocuous_$2
2549 /* System header to define __stub macros and hopefully few prototypes,
2550 which can conflict with char $2 (); below.
2551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2552 <limits.h> exists even on freestanding compilers. */
2555 # include <limits.h>
2557 # include <assert.h>
2562 /* Override any GCC internal prototype to avoid an error.
2563 Use char because int might match the return type of a GCC
2564 builtin and then its argument prototype would still apply. */
2569 /* The GNU C library defines this for functions which it implements
2570 to always fail with ENOSYS. Some functions are actually named
2571 something starting with __ and the normal name is an alias. */
2572 #if defined __stub_$2 || defined __stub___$2
2584 if ac_fn_c_try_link
"$LINENO"; then :
2589 rm -f core conftest.err conftest.
$ac_objext \
2590 conftest
$ac_exeext conftest.
$ac_ext
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2597 } # ac_fn_c_check_func
2599 # ac_fn_c_check_decl LINENO SYMBOL VAR
2600 # ------------------------------------
2601 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2602 ac_fn_c_check_decl
()
2604 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2606 $as_echo_n "checking whether $2 is declared... " >&6; }
2607 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2624 if ac_fn_c_try_compile
"$LINENO"; then :
2629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2636 } # ac_fn_c_check_decl
2638 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2639 # --------------------------------------------
2640 # Tries to find the compile-time value of EXPR in a program that includes
2641 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2643 ac_fn_c_compute_int
()
2645 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2646 if test "$cross_compiling" = yes; then
2647 # Depending upon the size, compute the lo and hi bounds.
2648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2654 static int test_array [1 - 2 * !(($2) >= 0)];
2661 if ac_fn_c_try_compile
"$LINENO"; then :
2664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2670 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2677 if ac_fn_c_try_compile
"$LINENO"; then :
2678 ac_hi
=$ac_mid; break
2680 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2681 if test $ac_lo -le $ac_mid; then
2685 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2696 static int test_array [1 - 2 * !(($2) < 0)];
2703 if ac_fn_c_try_compile
"$LINENO"; then :
2706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2712 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2719 if ac_fn_c_try_compile
"$LINENO"; then :
2720 ac_lo
=$ac_mid; break
2722 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2723 if test $ac_mid -le $ac_hi; then
2727 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2737 # Binary search between lo and hi bounds.
2738 while test "x$ac_lo" != "x$ac_hi"; do
2739 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2746 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2753 if ac_fn_c_try_compile
"$LINENO"; then :
2756 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2761 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2768 static long int longval () { return $2; }
2769 static unsigned long int ulongval () { return $2; }
2776 FILE *f = fopen ("conftest.val", "w");
2781 long int i = longval ();
2784 fprintf (f, "%ld", i);
2788 unsigned long int i = ulongval ();
2791 fprintf (f, "%lu", i);
2793 /* Do not output a trailing newline, as this causes \r\n confusion
2794 on some platforms. */
2795 return ferror (f) || fclose (f) != 0;
2801 if ac_fn_c_try_run
"$LINENO"; then :
2802 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2811 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2814 } # ac_fn_c_compute_int
2816 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2817 # -------------------------------------------
2818 # Tests whether TYPE exists after having included INCLUDES, setting cache
2819 # variable VAR accordingly.
2820 ac_fn_c_check_type
()
2822 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2824 $as_echo_n "checking for $2... " >&6; }
2825 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2826 $as_echo_n "(cached) " >&6
2829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2841 if ac_fn_c_try_compile
"$LINENO"; then :
2842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2854 if ac_fn_c_try_compile
"$LINENO"; then :
2859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2865 $as_echo "$ac_res" >&6; }
2866 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2868 } # ac_fn_c_check_type
2869 cat >config.log
<<_ACEOF
2870 This file contains any messages produced by compilers while
2871 running configure, to aid debugging if configure makes a mistake.
2873 It was created by $as_me, which was
2874 generated by GNU Autoconf 2.64. Invocation command line was
2886 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2887 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2888 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2889 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2890 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2892 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2893 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2895 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2896 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2897 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2898 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2899 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2900 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2901 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 $as_echo "PATH: $as_dir"
2926 # Keep a trace of the command line.
2927 # Strip out --no-create and --no-recursion so they do not pile up.
2928 # Strip out --silent because we don't want to record it for future runs.
2929 # Also quote any args containing shell meta-characters.
2930 # Make two passes to allow for proper duplicate-argument suppression.
2934 ac_must_keep_next
=false
2940 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2941 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2942 |
-silent |
--silent |
--silen |
--sile |
--sil)
2945 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2948 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2950 as_fn_append ac_configure_args1
" '$ac_arg'"
2951 if test $ac_must_keep_next = true
; then
2952 ac_must_keep_next
=false
# Got value, back to normal.
2955 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2956 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2957 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2958 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2959 case "$ac_configure_args0 " in
2960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2963 -* ) ac_must_keep_next
=true
;;
2966 as_fn_append ac_configure_args
" '$ac_arg'"
2971 { ac_configure_args0
=; unset ac_configure_args0
;}
2972 { ac_configure_args1
=; unset ac_configure_args1
;}
2974 # When interrupted or exit'd, cleanup temporary files, and complete
2975 # config.log. We remove comments because anyway the quotes in there
2976 # would cause problems or look ugly.
2977 # WARNING: Use '\'' to represent an apostrophe within the trap.
2978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2979 trap 'exit_status=$?
2980 # Save into config.log some information that might help in debugging.
2985 ## ---------------- ##
2986 ## Cache variables. ##
2987 ## ---------------- ##
2990 # The following way of writing the cache mishandles newlines in values,
2992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2993 eval ac_val=\$$ac_var
2997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3001 _ | IFS | as_nl) ;; #(
3002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3003 *) { eval $ac_var=; unset $ac_var;} ;;
3008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3009 *${as_nl}ac_space=\ *)
3011 "s/'\''/'\''\\\\'\'''\''/g;
3012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3023 ## ----------------- ##
3024 ## Output variables. ##
3025 ## ----------------- ##
3028 for ac_var in $ac_subst_vars
3030 eval ac_val=\$$ac_var
3032 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3034 $as_echo "$ac_var='\''$ac_val'\''"
3038 if test -n "$ac_subst_files"; then
3040 ## ------------------- ##
3041 ## File substitutions. ##
3042 ## ------------------- ##
3045 for ac_var
in $ac_subst_files
3047 eval ac_val
=\$
$ac_var
3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3051 $as_echo "$ac_var='\''$ac_val'\''"
3056 if test -s confdefs.h; then
3066 test "$ac_signal" != 0 &&
3067 $as_echo "$as_me: caught signal $ac_signal"
3068 $as_echo "$as_me: exit $exit_status"
3070 rm -f core *.core core.conftest.* &&
3071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3074 for ac_signal
in 1 2 13 15; do
3075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3080 rm -f -r conftest
* confdefs.h
3082 $as_echo "/* confdefs.h */" > confdefs.h
3084 # Predefined preprocessor variables.
3086 cat >>confdefs.h
<<_ACEOF
3087 #define PACKAGE_NAME "$PACKAGE_NAME"
3090 cat >>confdefs.h
<<_ACEOF
3091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3094 cat >>confdefs.h
<<_ACEOF
3095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3098 cat >>confdefs.h
<<_ACEOF
3099 #define PACKAGE_STRING "$PACKAGE_STRING"
3102 cat >>confdefs.h
<<_ACEOF
3103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3106 cat >>confdefs.h
<<_ACEOF
3107 #define PACKAGE_URL "$PACKAGE_URL"
3111 # Let the site file select an alternate cache file if it wants to.
3112 # Prefer an explicitly selected file to automatically selected ones.
3115 if test -n "$CONFIG_SITE"; then
3116 ac_site_file1
=$CONFIG_SITE
3117 elif test "x$prefix" != xNONE
; then
3118 ac_site_file1
=$prefix/share
/config.site
3119 ac_site_file2
=$prefix/etc
/config.site
3121 ac_site_file1
=$ac_default_prefix/share
/config.site
3122 ac_site_file2
=$ac_default_prefix/etc
/config.site
3124 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3126 test "x$ac_site_file" = xNONE
&& continue
3127 if test -r "$ac_site_file"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3129 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3130 sed 's/^/| /' "$ac_site_file" >&5
3135 if test -r "$cache_file"; then
3136 # Some versions of bash will fail to source /dev/null (special
3137 # files actually), so we avoid doing that.
3138 if test -f "$cache_file"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3140 $as_echo "$as_me: loading cache $cache_file" >&6;}
3142 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3143 *) .
"./$cache_file";;
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3148 $as_echo "$as_me: creating cache $cache_file" >&6;}
3152 as_fn_append ac_func_list
" canonicalize_file_name"
3153 as_fn_append ac_func_list
" getcwd"
3154 as_fn_append ac_func_list
" readlink"
3155 as_fn_append ac_func_list
" realpath"
3156 as_fn_append ac_header_list
" sys/param.h"
3157 as_fn_append ac_header_list
" dirent.h"
3158 as_fn_append ac_func_list
" btowc"
3159 as_fn_append ac_func_list
" isblank"
3160 as_fn_append ac_func_list
" iswctype"
3161 as_fn_append ac_func_list
" mbsrtowcs"
3162 as_fn_append ac_func_list
" mempcpy"
3163 as_fn_append ac_func_list
" wmemchr"
3164 as_fn_append ac_func_list
" wmemcpy"
3165 as_fn_append ac_func_list
" wmempcpy"
3166 as_fn_append ac_header_list
" wctype.h"
3167 gl_fnmatch_required
=GNU
3168 as_fn_append ac_func_list
" alarm"
3169 as_fn_append ac_header_list
" wchar.h"
3170 as_fn_append ac_header_list
" stdint.h"
3171 as_fn_append ac_header_list
" inttypes.h"
3172 as_fn_append ac_header_list
" unistd.h"
3173 as_fn_append ac_func_list
" symlink"
3174 as_fn_append ac_func_list
" lstat"
3175 as_fn_append ac_header_list
" math.h"
3176 as_fn_append ac_func_list
" mbsinit"
3177 as_fn_append ac_func_list
" mbrtowc"
3178 as_fn_append ac_header_list
" sys/mman.h"
3179 as_fn_append ac_func_list
" mprotect"
3180 as_fn_append ac_header_list
" sys/stat.h"
3181 as_fn_append ac_header_list
" sys/time.h"
3182 as_fn_append ac_header_list
" features.h"
3183 as_fn_append ac_func_list
" iswcntrl"
3184 # Check that the precious variables saved in the cache have kept the same
3186 ac_cache_corrupted
=false
3187 for ac_var
in $ac_precious_vars; do
3188 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3189 eval ac_new_set
=\
$ac_env_${ac_var}_set
3190 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3191 eval ac_new_val
=\
$ac_env_${ac_var}_value
3192 case $ac_old_set,$ac_new_set in
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3196 ac_cache_corrupted
=: ;;
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3200 ac_cache_corrupted
=: ;;
3203 if test "x$ac_old_val" != "x$ac_new_val"; then
3204 # differences in whitespace do not lead to failure.
3205 ac_old_val_w
=`echo x $ac_old_val`
3206 ac_new_val_w
=`echo x $ac_new_val`
3207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3210 ac_cache_corrupted
=:
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3214 eval $ac_var=\
$ac_old_val
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3217 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3219 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3222 # Pass precious variables to config.status.
3223 if test "$ac_new_set" = set; then
3225 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3226 *) ac_arg
=$ac_var=$ac_new_val ;;
3228 case " $ac_configure_args " in
3229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3230 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3234 if $ac_cache_corrupted; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3239 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3241 ## -------------------- ##
3242 ## Main body of script. ##
3243 ## -------------------- ##
3246 ac_cpp
='$CPP $CPPFLAGS'
3247 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3252 ac_config_headers
="$ac_config_headers config.h:config.in"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3256 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3257 # Check whether --enable-maintainer-mode was given.
3258 if test "${enable_maintainer_mode+set}" = set; then :
3259 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3261 USE_MAINTAINER_MODE
=no
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3265 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3266 if test $USE_MAINTAINER_MODE = yes; then
3267 MAINTAINER_MODE_TRUE
=
3268 MAINTAINER_MODE_FALSE
='#'
3270 MAINTAINER_MODE_TRUE
='#'
3271 MAINTAINER_MODE_FALSE
=
3274 MAINT
=$MAINTAINER_MODE_TRUE
3279 ac_cpp
='$CPP $CPPFLAGS'
3280 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3283 if test -n "$ac_tool_prefix"; then
3284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3285 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if test "${ac_cv_prog_CC+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3291 if test -n "$CC"; then
3292 ac_cv_prog_CC
="$CC" # Let the user override the test.
3294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir
=.
3299 for ac_exec_ext
in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 if test -n "$CC"; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3314 $as_echo "$CC" >&6; }
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3322 if test -z "$ac_cv_prog_CC"; then
3324 # Extract the first word of "gcc", so it can be a program name with args.
3325 set dummy gcc
; ac_word
=$2
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir
=.
3339 for ac_exec_ext
in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_prog_ac_ct_CC
="gcc"
3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3354 $as_echo "$ac_ct_CC" >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3360 if test "x$ac_ct_CC" = x
; then
3363 case $cross_compiling:$ac_tool_warned in
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3367 ac_tool_warned
=yes ;;
3375 if test -z "$CC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3378 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_CC+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC
="$CC" # Let the user override the test.
3387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir
=.
3392 for ac_exec_ext
in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3416 if test -z "$CC"; then
3417 # Extract the first word of "cc", so it can be a program name with args.
3418 set dummy cc
; ac_word
=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if test "${ac_cv_prog_CC+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC
="$CC" # Let the user override the test.
3428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir
=.
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436 ac_prog_rejected
=yes
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test $ac_prog_rejected = yes; then
3448 # We found a bogon in the path, so make sure we never use it.
3449 set dummy
$ac_cv_prog_CC
3451 if test $# != 0; then
3452 # We chose a different compiler from the bogus one.
3453 # However, it has the same basename, so the bogon will be chosen
3454 # first if we set CC to just the basename; use the full file name.
3456 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 for ac_prog
in cl.exe
3476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if test "${ac_cv_prog_CC+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC
="$CC" # Let the user override the test.
3486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir
=.
3491 for ac_exec_ext
in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 if test -n "$CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3513 test -n "$CC" && break
3516 if test -z "$CC"; then
3518 for ac_prog
in cl.exe
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy
$ac_prog; ac_word
=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3527 if test -n "$ac_ct_CC"; then
3528 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir
=.
3535 for ac_exec_ext
in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_ac_ct_CC
="$ac_prog"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3548 if test -n "$ac_ct_CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3550 $as_echo "$ac_ct_CC" >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3557 test -n "$ac_ct_CC" && break
3560 if test "x$ac_ct_CC" = x
; then
3563 case $cross_compiling:$ac_tool_warned in
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3567 ac_tool_warned
=yes ;;
3576 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error
"no acceptable C compiler found in \$PATH
3579 See \`config.log' for more details." "$LINENO" 5; }
3581 # Provide some information about the compiler.
3582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3585 for ac_option
in --version -v -V -qversion; do
3586 { { ac_try
="$ac_compiler $ac_option >&5"
3588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3595 if test -s conftest.err; then
3597 ... rest of stderr output deleted ...
3598 10q' conftest.err >conftest.er1
3599 cat conftest.er1 >&5
3600 rm -f conftest.er1 conftest.err
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3612 FILE *f = fopen ("conftest.out", "w");
3613 return ferror (f) || fclose (f) != 0;
3619 ac_clean_files_save=$ac_clean_files
3620 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3621 # Try to create an executable without -o first, disregard a.out.
3622 # It will help us diagnose broken compilers, and finding out an intuition
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3625 $as_echo_n "checking for C compiler default output file name... " >&6; }
3626 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3628 # The possible output files:
3629 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3632 for ac_file in $ac_files
3635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3636 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3641 if { { ac_try="$ac_link_default"
3643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3644 *) ac_try_echo
=$ac_try;;
3646 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link_default") 2>&5
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3653 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3654 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3655 # so that the user can short-circuit this test for compilers unknown to
3657 for ac_file
in $ac_files ''
3659 test -f "$ac_file" ||
continue
3661 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3664 # We found the default executable, but exeext='' is most
3668 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3670 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672 # We set ac_cv_exeext here because the later test for it is not
3673 # safe: cross compilers may not add the suffix if given an `-o'
3674 # argument, so we may need to know it at that point already.
3675 # Even if this section looks crufty: it has the advantage of
3682 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3688 $as_echo "$ac_file" >&6; }
3689 if test -z "$ac_file"; then :
3690 $as_echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.
$ac_ext >&5
3693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3695 { as_fn_set_status
77
3696 as_fn_error
"C compiler cannot create executables
3697 See \`config.log' for more details." "$LINENO" 5; }; }
3699 ac_exeext
=$ac_cv_exeext
3701 # Check that the compiler produces executables we can run. If not, either
3702 # the compiler is broken, or we cross compile.
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3704 $as_echo_n "checking whether the C compiler works... " >&6; }
3705 # If not cross compiling, check that we can run a simple program.
3706 if test "$cross_compiling" != yes; then
3707 if { ac_try
='./$ac_file'
3708 { { case "(($ac_try" in
3709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_try") 2>&5
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; }; then
3720 if test "$cross_compiling" = maybe; then
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error "cannot run C compiled programs.
3726 If you meant to cross compile
, use \
`--host'.
3727 See \`config.log
' for more details." "$LINENO" 5; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732 $as_echo "yes" >&6; }
3734 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3735 ac_clean_files=$ac_clean_files_save
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3739 $as_echo_n "checking whether we are cross compiling... " >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741 $as_echo "$cross_compiling" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3744 $as_echo_n "checking for suffix of executables... " >&6; }
3745 if { { ac_try="$ac_link"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3757 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3758 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3760 for ac_file
in conftest.exe conftest conftest.
*; do
3761 test -f "$ac_file" ||
continue
3763 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3764 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3773 See \`config.log' for more details." "$LINENO" 5; }
3775 rm -f conftest
$ac_cv_exeext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3777 $as_echo "$ac_cv_exeext" >&6; }
3779 rm -f conftest.
$ac_ext
3780 EXEEXT
=$ac_cv_exeext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3783 $as_echo_n "checking for suffix of object files... " >&6; }
3784 if test "${ac_cv_objext+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 rm -f conftest.o conftest.obj
3799 if { { ac_try
="$ac_compile"
3801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compile") 2>&5
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }; then :
3810 for ac_file in conftest.o conftest.obj conftest.*; do
3811 test -f "$ac_file" || continue;
3813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3819 $as_echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 as_fn_error "cannot compute suffix of object files
: cannot compile
3825 See \
`config.log' for more details." "$LINENO" 5; }
3827 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3830 $as_echo "$ac_cv_objext" >&6; }
3831 OBJEXT=$ac_cv_objext
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3834 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3835 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3852 if ac_fn_c_try_compile "$LINENO"; then :
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3862 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3863 if test $ac_compiler_gnu = yes; then
3868 ac_test_CFLAGS=${CFLAGS+set}
3869 ac_save_CFLAGS=$CFLAGS
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3871 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3872 if test "${ac_cv_prog_cc_g+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3875 ac_save_c_werror_flag=$ac_c_werror_flag
3876 ac_c_werror_flag=yes
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3890 if ac_fn_c_try_compile "$LINENO"; then :
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 if ac_fn_c_try_compile "$LINENO"; then :
3908 ac_c_werror_flag=$ac_save_c_werror_flag
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3921 if ac_fn_c_try_compile "$LINENO"; then :
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3932 $as_echo "$ac_cv_prog_cc_g" >&6; }
3933 if test "$ac_test_CFLAGS" = set; then
3934 CFLAGS=$ac_save_CFLAGS
3935 elif test $ac_cv_prog_cc_g = yes; then
3936 if test "$GCC" = yes; then
3942 if test "$GCC" = yes; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3949 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3950 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 ac_cv_prog_cc_c89=no
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 #include <sys/types.h>
3960 #include <sys/stat.h>
3961 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3962 struct buf { int x; };
3963 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3964 static char *e (p, i)
3970 static char *f (char * (*g) (char **, int), char **p, ...)
3975 s = g (p, va_arg (v,int));
3980 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3981 function prototypes and stuff, but not '\xHH' hex character constants.
3982 These don't provoke an error unfortunately, instead are silently treated
3983 as 'x'. The following induces an error, until -std is added to get
3984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3985 array size at least. It's necessary to write '\x00'==0 to get something
3986 that's true only with -std. */
3987 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3989 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3990 inside strings and character constants. */
3992 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3994 int test (int i, double x);
3995 struct s1 {int (*f) (int a);};
3996 struct s2 {int (*f) (double a);};
3997 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4003 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4008 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4011 CC="$ac_save_CC $ac_arg"
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013 ac_cv_prog_cc_c89=$ac_arg
4015 rm -f core conftest.err conftest.$ac_objext
4016 test "x$ac_cv_prog_cc_c89" != "xno" && break
4018 rm -f conftest.$ac_ext
4023 case "x$ac_cv_prog_cc_c89" in
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4026 $as_echo "none needed" >&6; } ;;
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4029 $as_echo "unsupported" >&6; } ;;
4031 CC="$CC $ac_cv_prog_cc_c89"
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4033 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4035 if test "x$ac_cv_prog_cc_c89" != xno; then :
4040 ac_cpp='$CPP $CPPFLAGS'
4041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4047 for ac_t in install-sh install.sh shtool; do
4048 if test -f "$ac_dir/$ac_t"; then
4050 ac_install_sh="$ac_aux_dir/$ac_t -c"
4055 if test -z "$ac_aux_dir"; then
4056 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4059 # These three variables are undocumented and unsupported,
4060 # and are intended to be withdrawn in a future Autoconf release.
4061 # They can cause serious problems if a builder's source tree is in a directory
4062 # whose full name contains unusual characters.
4063 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4064 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4065 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4068 # Make sure we can run config.sub.
4069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4070 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4073 $as_echo_n "checking build system type... " >&6; }
4074 if test "${ac_cv_build+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4077 ac_build_alias=$build_alias
4078 test "x$ac_build_alias" = x &&
4079 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4080 test "x$ac_build_alias" = x &&
4081 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4083 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4087 $as_echo "$ac_cv_build" >&6; }
4088 case $ac_cv_build in
4090 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4093 ac_save_IFS=$IFS; IFS='-'
4099 # Remember, the first character of IFS is used to create $*,
4100 # except with old shells:
4103 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4107 $as_echo_n "checking host system type... " >&6; }
4108 if test "${ac_cv_host+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4111 if test "x$host_alias" = x; then
4112 ac_cv_host=$ac_cv_build
4114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4115 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4120 $as_echo "$ac_cv_host" >&6; }
4123 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4126 ac_save_IFS=$IFS; IFS='-'
4132 # Remember, the first character of IFS is used to create $*,
4133 # except with old shells:
4136 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4146 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4151 if test -z "$CPP"; then
4152 if test "${ac_cv_prog_CPP+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4170 # include <limits.h>
4172 # include <assert.h>
4176 if ac_fn_c_try_cpp "$LINENO"; then :
4179 # Broken: fails on valid input.
4182 rm -f conftest.err conftest.$ac_ext
4184 # OK, works on sane cases. Now check whether nonexistent headers
4185 # can be detected and how.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <ac_nonexistent.h>
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4191 # Broken: success on invalid input.
4194 # Passes both tests.
4198 rm -f conftest.err conftest.$ac_ext
4201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4202 rm -f conftest.err conftest.
$ac_ext
4203 if $ac_preproc_ok; then :
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4216 $as_echo "$CPP" >&6; }
4218 for ac_c_preproc_warn_flag
in '' yes
4220 # Use a header file that comes with gcc, so configuring glibc
4221 # with a fresh cross-compiler works.
4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4223 # <limits.h> exists even on freestanding compilers.
4224 # On the NeXT, cc -E runs the code through the compiler's parser,
4225 # not just through cpp. "Syntax error" is here to catch this case.
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4229 # include <limits.h>
4231 # include <assert.h>
4235 if ac_fn_c_try_cpp
"$LINENO"; then :
4238 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.
$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4249 if ac_fn_c_try_cpp
"$LINENO"; then :
4250 # Broken: success on invalid input.
4253 # Passes both tests.
4257 rm -f conftest.err conftest.
$ac_ext
4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4261 rm -f conftest.err conftest.
$ac_ext
4262 if $ac_preproc_ok; then :
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4268 See \`config.log' for more details." "$LINENO" 5; }
4272 ac_cpp
='$CPP $CPPFLAGS'
4273 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4279 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280 if test "${ac_cv_path_GREP+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found
=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4287 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4290 test -z "$as_dir" && as_dir
=.
4291 for ac_prog
in grep ggrep
; do
4292 for ac_exec_ext
in '' $ac_executable_extensions; do
4293 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4295 # Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297 case `"$ac_path_GREP" --version 2>&1` in
4299 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4302 $as_echo_n 0123456789 >"conftest.in"
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4310 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4311 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP
="$ac_path_GREP"
4315 ac_path_GREP_max
=$ac_count
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4320 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4323 $ac_path_GREP_found && break 3
4328 if test -z "$ac_cv_path_GREP"; then
4329 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332 ac_cv_path_GREP
=$GREP
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP
="$ac_cv_path_GREP"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if test "${ac_cv_path_EGREP+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4346 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4347 then ac_cv_path_EGREP
="$GREP -E"
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found
=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4353 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4356 test -z "$as_dir" && as_dir
=.
4357 for ac_prog
in egrep; do
4358 for ac_exec_ext
in '' $ac_executable_extensions; do
4359 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4365 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4368 $as_echo_n 0123456789 >"conftest.in"
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4376 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4377 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP
="$ac_path_EGREP"
4381 ac_path_EGREP_max
=$ac_count
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4386 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4389 $ac_path_EGREP_found && break 3
4394 if test -z "$ac_cv_path_EGREP"; then
4395 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4398 ac_cv_path_EGREP
=$EGREP
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4404 $as_echo "$ac_cv_path_EGREP" >&6; }
4405 EGREP
="$ac_cv_path_EGREP"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4409 $as_echo_n "checking for ANSI C header files... " >&6; }
4410 if test "${ac_cv_header_stdc+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4428 if ac_fn_c_try_compile
"$LINENO"; then :
4429 ac_cv_header_stdc
=yes
4431 ac_cv_header_stdc
=no
4433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4435 if test $ac_cv_header_stdc = yes; then
4436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4443 $EGREP "memchr" >/dev
/null
2>&1; then :
4446 ac_cv_header_stdc
=no
4452 if test $ac_cv_header_stdc = yes; then
4453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev
/null
2>&1; then :
4463 ac_cv_header_stdc
=no
4469 if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then :
4474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4478 #if ((' ' & 0x0FF) == 0x020)
4479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4482 # define ISLOWER(c) \
4483 (('a' <= (c) && (c) <= 'i') \
4484 || ('j' <= (c) && (c) <= 'r') \
4485 || ('s' <= (c) && (c) <= 'z'))
4486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4494 for (i = 0; i < 256; i++)
4495 if (XOR (islower (i), ISLOWER (i))
4496 || toupper (i) != TOUPPER (i))
4501 if ac_fn_c_try_run
"$LINENO"; then :
4504 ac_cv_header_stdc
=no
4506 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4507 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4513 $as_echo "$ac_cv_header_stdc" >&6; }
4514 if test $ac_cv_header_stdc = yes; then
4516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4521 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4522 inttypes.h stdint.h unistd.h
4524 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4525 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4527 eval as_val
=\$
$as_ac_Header
4528 if test "x$as_val" = x
""yes; then :
4529 cat >>confdefs.h
<<_ACEOF
4530 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4541 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4542 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4549 if test "$MINIX" = yes; then
4551 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4554 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4557 $as_echo "#define _MINIX 1" >>confdefs.h
4564 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4571 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4572 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4578 # define __EXTENSIONS__ 1
4579 $ac_includes_default
4588 if ac_fn_c_try_compile
"$LINENO"; then :
4589 ac_cv_safe_to_define___extensions__
=yes
4591 ac_cv_safe_to_define___extensions__
=no
4593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4596 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4597 test $ac_cv_safe_to_define___extensions__ = yes &&
4598 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4600 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4602 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4604 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4606 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4608 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4614 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4615 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4629 gl_cv_c_amsterdam_compiler
=yes
4631 gl_cv_c_amsterdam_compiler
=no
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4638 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4639 if test -z "$AR"; then
4640 if test $gl_cv_c_amsterdam_compiler = yes; then
4642 if test -z "$ARFLAGS"; then
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4648 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_AR+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$AR"; then
4655 ac_cv_prog_AR
="$AR" # Let the user override the test.
4657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir
=.
4662 for ac_exec_ext
in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test -n "$AR"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4677 $as_echo "$AR" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_AR"; then
4687 # Extract the first word of "ar", so it can be a program name with args.
4688 set dummy
ar; ac_word
=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_AR"; then
4695 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir
=.
4702 for ac_exec_ext
in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_AR
="ar"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4715 if test -n "$ac_ct_AR"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4717 $as_echo "$ac_ct_AR" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_AR" = x
; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned
=yes ;;
4738 if test -z "$ARFLAGS"; then
4743 if test -z "$ARFLAGS"; then
4749 if test -z "$RANLIB"; then
4750 if test $gl_cv_c_amsterdam_compiler = yes; then
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4755 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757 $as_echo_n "checking for $ac_word... " >&6; }
4758 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4761 if test -n "$RANLIB"; then
4762 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir
=.
4769 for ac_exec_ext
in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 RANLIB
=$ac_cv_prog_RANLIB
4782 if test -n "$RANLIB"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4784 $as_echo "$RANLIB" >&6; }
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4792 if test -z "$ac_cv_prog_RANLIB"; then
4793 ac_ct_RANLIB
=$RANLIB
4794 # Extract the first word of "ranlib", so it can be a program name with args.
4795 set dummy ranlib
; ac_word
=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4801 if test -n "$ac_ct_RANLIB"; then
4802 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4808 test -z "$as_dir" && as_dir
=.
4809 for ac_exec_ext
in '' $ac_executable_extensions; do
4810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4822 if test -n "$ac_ct_RANLIB"; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4824 $as_echo "$ac_ct_RANLIB" >&6; }
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 $as_echo "no" >&6; }
4830 if test "x$ac_ct_RANLIB" = x
; then
4833 case $cross_compiling:$ac_tool_warned in
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned
=yes ;;
4839 RANLIB
=$ac_ct_RANLIB
4842 RANLIB
="$ac_cv_prog_RANLIB"
4858 # IEEE behaviour is the default on all CPUs except Alpha and SH
4859 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4860 # and the GCC 4.1.2 manual).
4863 # On Alpha systems, a compiler option provides the behaviour.
4864 # See the ieee(3) manual page, also available at
4865 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4866 if test -n "$GCC"; then
4867 # GCC has the option -mieee.
4868 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4869 CPPFLAGS
="$CPPFLAGS -mieee"
4871 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4872 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4873 CPPFLAGS
="$CPPFLAGS -ieee"
4877 if test -n "$GCC"; then
4878 # GCC has the option -mieee.
4879 CPPFLAGS
="$CPPFLAGS -mieee"
4884 # Check whether --enable-largefile was given.
4885 if test "${enable_largefile+set}" = set; then :
4886 enableval
=$enable_largefile;
4889 if test "$enable_largefile" != no
; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4892 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4893 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4896 ac_cv_sys_largefile_CC
=no
4897 if test "$GCC" != yes; then
4900 # IRIX 6.2 and later do not support large files by default,
4901 # so use the C compiler's -n32 option if that helps.
4902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <sys/types.h>
4905 /* Check that off_t can represent 2**63 - 1 correctly.
4906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4907 since some C++ compilers masquerading as C compilers
4908 incorrectly reject 9223372036854775807. */
4909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4911 && LARGE_OFF_T % 2147483647 == 1)
4921 if ac_fn_c_try_compile
"$LINENO"; then :
4924 rm -f core conftest.err conftest.
$ac_objext
4926 if ac_fn_c_try_compile
"$LINENO"; then :
4927 ac_cv_sys_largefile_CC
=' -n32'; break
4929 rm -f core conftest.err conftest.
$ac_objext
4933 rm -f conftest.
$ac_ext
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4937 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4938 if test "$ac_cv_sys_largefile_CC" != no
; then
4939 CC
=$CC$ac_cv_sys_largefile_CC
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4943 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4944 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <sys/types.h>
4951 /* Check that off_t can represent 2**63 - 1 correctly.
4952 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953 since some C++ compilers masquerading as C compilers
4954 incorrectly reject 9223372036854775807. */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957 && LARGE_OFF_T % 2147483647 == 1)
4967 if ac_fn_c_try_compile
"$LINENO"; then :
4968 ac_cv_sys_file_offset_bits
=no
; break
4970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #define _FILE_OFFSET_BITS 64
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4991 if ac_fn_c_try_compile
"$LINENO"; then :
4992 ac_cv_sys_file_offset_bits
=64; break
4994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4995 ac_cv_sys_file_offset_bits
=unknown
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5000 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5001 case $ac_cv_sys_file_offset_bits in #(
5004 cat >>confdefs.h
<<_ACEOF
5005 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5010 if test $ac_cv_sys_file_offset_bits = unknown
; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5012 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5013 if test "${ac_cv_sys_large_files+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5019 #include <sys/types.h>
5020 /* Check that off_t can represent 2**63 - 1 correctly.
5021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022 since some C++ compilers masquerading as C compilers
5023 incorrectly reject 9223372036854775807. */
5024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026 && LARGE_OFF_T % 2147483647 == 1)
5036 if ac_fn_c_try_compile
"$LINENO"; then :
5037 ac_cv_sys_large_files
=no
; break
5039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 #define _LARGE_FILES 1
5043 #include <sys/types.h>
5044 /* Check that off_t can represent 2**63 - 1 correctly.
5045 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5046 since some C++ compilers masquerading as C compilers
5047 incorrectly reject 9223372036854775807. */
5048 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5049 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5050 && LARGE_OFF_T % 2147483647 == 1)
5060 if ac_fn_c_try_compile
"$LINENO"; then :
5061 ac_cv_sys_large_files
=1; break
5063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5064 ac_cv_sys_large_files
=unknown
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5069 $as_echo "$ac_cv_sys_large_files" >&6; }
5070 case $ac_cv_sys_large_files in #(
5073 cat >>confdefs.h
<<_ACEOF
5074 #define _LARGE_FILES $ac_cv_sys_large_files
5086 # Code from module alloca:
5087 # Code from module alloca-opt:
5088 # Code from module canonicalize-lgpl:
5089 # Code from module configmake:
5090 # Code from module dirent:
5091 # Code from module dirfd:
5092 # Code from module dosname:
5093 # Code from module errno:
5094 # Code from module extensions:
5096 # Code from module extern-inline:
5097 # Code from module float:
5098 # Code from module fnmatch:
5099 # Code from module fnmatch-gnu:
5100 # Code from module fpieee:
5102 # Code from module fpucw:
5103 # Code from module frexp:
5104 # Code from module frexpl:
5105 # Code from module include_next:
5106 # Code from module inttypes:
5107 # Code from module inttypes-incomplete:
5108 # Code from module isnand-nolibm:
5109 # Code from module isnanl-nolibm:
5110 # Code from module largefile:
5112 # Code from module localcharset:
5113 # Code from module lstat:
5114 # Code from module malloca:
5115 # Code from module math:
5116 # Code from module mbrtowc:
5117 # Code from module mbsinit:
5118 # Code from module mbsrtowcs:
5119 # Code from module memchr:
5120 # Code from module memmem:
5121 # Code from module memmem-simple:
5122 # Code from module multiarch:
5123 # Code from module nocrash:
5124 # Code from module pathmax:
5125 # Code from module readlink:
5126 # Code from module snippet/_Noreturn:
5127 # Code from module snippet/arg-nonnull:
5128 # Code from module snippet/c++defs:
5129 # Code from module snippet/warn-on-use:
5130 # Code from module ssize_t:
5131 # Code from module stat:
5132 # Code from module stdbool:
5133 # Code from module stddef:
5134 # Code from module stdint:
5135 # Code from module stdlib:
5136 # Code from module streq:
5137 # Code from module string:
5138 # Code from module strnlen1:
5139 # Code from module strstr:
5140 # Code from module strstr-simple:
5141 # Code from module sys_stat:
5142 # Code from module sys_types:
5143 # Code from module time:
5144 # Code from module unistd:
5145 # Code from module update-copyright:
5146 # Code from module verify:
5147 # Code from module wchar:
5148 # Code from module wctype-h:
5151 ac_cpp
='$CPP $CPPFLAGS'
5152 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5155 if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5157 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_CC+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -n "$CC"; then
5164 ac_cv_prog_CC
="$CC" # Let the user override the test.
5166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir
=.
5171 for ac_exec_ext
in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 if test -n "$CC"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5186 $as_echo "$CC" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5194 if test -z "$ac_cv_prog_CC"; then
5196 # Extract the first word of "gcc", so it can be a program name with args.
5197 set dummy gcc
; ac_word
=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5203 if test -n "$ac_ct_CC"; then
5204 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir
=.
5211 for ac_exec_ext
in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_ac_ct_CC
="gcc"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5224 if test -n "$ac_ct_CC"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5226 $as_echo "$ac_ct_CC" >&6; }
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5232 if test "x$ac_ct_CC" = x
; then
5235 case $cross_compiling:$ac_tool_warned in
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned
=yes ;;
5247 if test -z "$CC"; then
5248 if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5250 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252 $as_echo_n "checking for $ac_word... " >&6; }
5253 if test "${ac_cv_prog_CC+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5256 if test -n "$CC"; then
5257 ac_cv_prog_CC
="$CC" # Let the user override the test.
5259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir
=.
5264 for ac_exec_ext
in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 if test -n "$CC"; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5279 $as_echo "$CC" >&6; }
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5288 if test -z "$CC"; then
5289 # Extract the first word of "cc", so it can be a program name with args.
5290 set dummy cc
; ac_word
=$2
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292 $as_echo_n "checking for $ac_word... " >&6; }
5293 if test "${ac_cv_prog_CC+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -n "$CC"; then
5297 ac_cv_prog_CC
="$CC" # Let the user override the test.
5300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir
=.
5305 for ac_exec_ext
in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5308 ac_prog_rejected
=yes
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 if test $ac_prog_rejected = yes; then
5320 # We found a bogon in the path, so make sure we never use it.
5321 set dummy
$ac_cv_prog_CC
5323 if test $# != 0; then
5324 # We chose a different compiler from the bogus one.
5325 # However, it has the same basename, so the bogon will be chosen
5326 # first if we set CC to just the basename; use the full file name.
5328 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5334 if test -n "$CC"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5336 $as_echo "$CC" >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5344 if test -z "$CC"; then
5345 if test -n "$ac_tool_prefix"; then
5346 for ac_prog
in cl.exe
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if test "${ac_cv_prog_CC+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5355 if test -n "$CC"; then
5356 ac_cv_prog_CC
="$CC" # Let the user override the test.
5358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir
=.
5363 for ac_exec_ext
in '' $ac_executable_extensions; do
5364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 if test -n "$CC"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5378 $as_echo "$CC" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5385 test -n "$CC" && break
5388 if test -z "$CC"; then
5390 for ac_prog
in cl.exe
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393 set dummy
$ac_prog; ac_word
=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 if test -n "$ac_ct_CC"; then
5400 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir
=.
5407 for ac_exec_ext
in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_ac_ct_CC
="$ac_prog"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5420 if test -n "$ac_ct_CC"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5422 $as_echo "$ac_ct_CC" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5429 test -n "$ac_ct_CC" && break
5432 if test "x$ac_ct_CC" = x
; then
5435 case $cross_compiling:$ac_tool_warned in
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5439 ac_tool_warned
=yes ;;
5448 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error
"no acceptable C compiler found in \$PATH
5451 See \`config.log' for more details." "$LINENO" 5; }
5453 # Provide some information about the compiler.
5454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5457 for ac_option
in --version -v -V -qversion; do
5458 { { ac_try
="$ac_compiler $ac_option >&5"
5460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464 $as_echo "$ac_try_echo"; } >&5
5465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5467 if test -s conftest.err; then
5469 ... rest of stderr output deleted ...
5470 10q' conftest.err >conftest.er1
5471 cat conftest.er1 >&5
5472 rm -f conftest.er1 conftest.err
5474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5475 test $ac_status = 0; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5480 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5497 if ac_fn_c_try_compile "$LINENO"; then :
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5508 if test $ac_compiler_gnu = yes; then
5513 ac_test_CFLAGS=${CFLAGS+set}
5514 ac_save_CFLAGS=$CFLAGS
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5517 if test "${ac_cv_prog_cc_g+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5520 ac_save_c_werror_flag=$ac_c_werror_flag
5521 ac_c_werror_flag=yes
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5535 if ac_fn_c_try_compile "$LINENO"; then :
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5550 if ac_fn_c_try_compile "$LINENO"; then :
5553 ac_c_werror_flag=$ac_save_c_werror_flag
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5566 if ac_fn_c_try_compile "$LINENO"; then :
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5577 $as_echo "$ac_cv_prog_cc_g" >&6; }
5578 if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580 elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5587 if test "$GCC" = yes; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5595 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5598 ac_cv_prog_cc_c89=no
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5604 #include <sys/types.h>
5605 #include <sys/stat.h>
5606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5607 struct buf { int x; };
5608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5609 static char *e (p, i)
5615 static char *f (char * (*g) (char **, int), char **p, ...)
5620 s = g (p, va_arg (v,int));
5625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5626 function prototypes and stuff, but not '\xHH' hex character constants.
5627 These don't provoke an error unfortunately, instead are silently treated
5628 as 'x'. The following induces an error, until -std is added to get
5629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5630 array size at least. It's necessary to write '\x00'==0 to get something
5631 that's true only with -std. */
5632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5634 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5635 inside strings and character constants. */
5637 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5639 int test (int i, double x);
5640 struct s1 {int (*f) (int a);};
5641 struct s2 {int (*f) (double a);};
5642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5648 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5654 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5656 CC="$ac_save_CC $ac_arg"
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 ac_cv_prog_cc_c89=$ac_arg
5660 rm -f core conftest.err conftest.$ac_objext
5661 test "x$ac_cv_prog_cc_c89" != "xno" && break
5663 rm -f conftest.$ac_ext
5668 case "x$ac_cv_prog_cc_c89" in
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5671 $as_echo "none needed" >&6; } ;;
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5674 $as_echo "unsupported" >&6; } ;;
5676 CC="$CC $ac_cv_prog_cc_c89"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5678 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5680 if test "x$ac_cv_prog_cc_c89" != xno; then :
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5691 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5695 for ac_dir in ../.. "$srcdir"/../..; do
5696 for ac_t in install-sh install.sh shtool; do
5697 if test -f "$ac_dir/$ac_t"; then
5699 ac_install_sh="$ac_aux_dir/$ac_t -c"
5704 if test -z "$ac_aux_dir"; then
5705 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5708 # These three variables are undocumented and unsupported,
5709 # and are intended to be withdrawn in a future Autoconf release.
5710 # They can cause serious problems if a builder's source tree is in a directory
5711 # whose full name contains unusual characters.
5712 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5713 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5714 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5718 $as_echo_n "checking target system type... " >&6; }
5719 if test "${ac_cv_target+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5722 if test "x$target_alias" = x; then
5723 ac_cv_target=$ac_cv_host
5725 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5726 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5731 $as_echo "$ac_cv_target" >&6; }
5732 case $ac_cv_target in
5734 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5736 target=$ac_cv_target
5737 ac_save_IFS=$IFS; IFS='-'
5743 # Remember, the first character of IFS is used to create $*,
5744 # except with old shells:
5747 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5750 # The aliases save the names the user supplied, while $host etc.
5751 # will get canonicalized.
5752 test -n "$target_alias" &&
5753 test "$program_prefix$program_suffix$program_transform_name" = \
5755 program_prefix=${target_alias}-
5763 LIBC_FATAL_STDERR_=1
5764 export LIBC_FATAL_STDERR_
5766 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5767 # for constant arguments. Useless!
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5769 $as_echo_n "checking for working alloca.h... " >&6; }
5770 if test "${ac_cv_working_alloca_h+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5779 char *p = (char *) alloca (2 * sizeof (int));
5785 if ac_fn_c_try_link "$LINENO"; then :
5786 ac_cv_working_alloca_h=yes
5788 ac_cv_working_alloca_h=no
5790 rm -f core conftest.err conftest.$ac_objext \
5791 conftest$ac_exeext conftest.$ac_ext
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5794 $as_echo "$ac_cv_working_alloca_h" >&6; }
5795 if test $ac_cv_working_alloca_h = yes; then
5797 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5802 $as_echo_n "checking for alloca... " >&6; }
5803 if test "${ac_cv_func_alloca_works+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5809 # define alloca __builtin_alloca
5812 # include <malloc.h>
5813 # define alloca _alloca
5815 # ifdef HAVE_ALLOCA_H
5816 # include <alloca.h>
5821 # ifndef alloca /* predefined by HP cc +Olibcalls */
5832 char *p = (char *) alloca (1);
5838 if ac_fn_c_try_link "$LINENO"; then :
5839 ac_cv_func_alloca_works=yes
5841 ac_cv_func_alloca_works=no
5843 rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5847 $as_echo "$ac_cv_func_alloca_works" >&6; }
5849 if test $ac_cv_func_alloca_works = yes; then
5851 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5854 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5855 # that cause trouble. Some versions do not even contain alloca or
5856 # contain a buggy version. If you still want to use their alloca,
5857 # use ar to extract alloca.o from them instead of compiling alloca.c.
5863 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5865 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5869 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5870 if test "${ac_cv_os_cray+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 #if defined CRAY && ! defined CRAY2
5882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5883 $EGREP "webecray" >/dev/null 2>&1; then :
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5892 $as_echo "$ac_cv_os_cray" >&6; }
5893 if test $ac_cv_os_cray = yes; then
5894 for ac_func in _getb67 GETB67 getb67; do
5895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5897 eval as_val=\$$as_ac_var
5898 if test "x$as_val" = x""yes; then :
5900 cat >>confdefs.h <<_ACEOF
5901 #define CRAY_STACKSEG_END $ac_func
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5911 $as_echo_n "checking stack direction for C alloca... " >&6; }
5912 if test "${ac_cv_c_stack_direction+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5915 if test "$cross_compiling" = yes; then :
5916 ac_cv_c_stack_direction=0
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 $ac_includes_default
5922 find_stack_direction (int *addr, int depth)
5927 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5928 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5933 main (int argc, char **argv)
5935 return find_stack_direction (0, argc + !argv + 20) < 0;
5938 if ac_fn_c_try_run "$LINENO"; then :
5939 ac_cv_c_stack_direction=1
5941 ac_cv_c_stack_direction=-1
5943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5944 conftest.$ac_objext conftest.beam conftest.$ac_ext
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5949 $as_echo "$ac_cv_c_stack_direction" >&6; }
5950 cat >>confdefs.h <<_ACEOF
5951 #define STACK_DIRECTION $ac_cv_c_stack_direction
5960 GNULIB_CALLOC_POSIX=0;
5961 GNULIB_CANONICALIZE_FILE_NAME=0;
5962 GNULIB_GETLOADAVG=0;
5965 GNULIB_MALLOC_POSIX=0;
5972 GNULIB_POSIX_OPENPT=0;
5978 GNULIB_REALLOC_POSIX=0;
5985 GNULIB_SYSTEM_POSIX=0;
5991 HAVE_CANONICALIZE_FILE_NAME=1;
5992 HAVE_DECL_GETLOADAVG=1;
6000 HAVE_POSIX_OPENPT=1;
6013 HAVE_STRUCT_RANDOM_DATA=1;
6014 HAVE_SYS_LOADAVG_H=0;
6016 HAVE_DECL_UNSETENV=1;
6018 REPLACE_CANONICALIZE_FILE_NAME=0;
6023 REPLACE_PTSNAME_R=0;
6036 for ac_func in $ac_func_list
6038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6040 eval as_val=\$$as_ac_var
6041 if test "x$as_val" = x""yes; then :
6042 cat >>confdefs.h <<_ACEOF
6043 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6058 $as_echo_n "checking whether // is distinct from /... " >&6; }
6059 if test "${gl_cv_double_slash_root+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6062 if test x"$cross_compiling" = xyes ; then
6063 # When cross-compiling, there is no way to tell whether // is special
6064 # short of a list of hosts. However, the only known hosts to date
6065 # that have a distinct // are Apollo DomainOS (too old to port to),
6066 # Cygwin, and z/OS. If anyone knows of another system for which // has
6067 # special semantics and is distinct from /, please report it to
6068 # <bug-gnulib@gnu.org>.
6070 *-cygwin | i370-ibm-openedition)
6071 gl_cv_double_slash_root=yes ;;
6073 # Be optimistic and assume that / and // are the same when we
6075 gl_cv_double_slash_root='unknown, assuming no' ;;
6078 set x `ls -di / // 2>/dev
/null
`
6079 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6080 gl_cv_double_slash_root=no
6082 gl_cv_double_slash_root=yes
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6087 $as_echo "$gl_cv_double_slash_root" >&6; }
6088 if test "$gl_cv_double_slash_root" = yes; then
6090 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6099 $as_echo_n "checking whether realpath works... " >&6; }
6100 if test "${gl_cv_func_realpath_works+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6106 if test "$cross_compiling" = yes; then :
6108 # Guess yes on glibc systems.
6109 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6110 # If we don't know, assume the worst.
6111 *) gl_cv_func_realpath_works="guessing no" ;;
6115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116 /* end confdefs.h. */
6121 #if defined __MACH__ && defined __APPLE__
6122 /* Avoid a crash on Mac OS X. */
6123 #include <mach/mach.h>
6124 #include <mach/mach_error.h>
6125 #include <mach/thread_status.h>
6126 #include <mach/exception.h>
6127 #include <mach/task.h>
6128 #include <pthread.h>
6129 /* The exception port on which our thread listens. */
6130 static mach_port_t our_exception_port;
6131 /* The main function of the thread listening for exceptions of type
6134 mach_exception_thread (void *arg)
6136 /* Buffer for a message to be received. */
6138 mach_msg_header_t head;
6139 mach_msg_body_t msgh_body;
6142 mach_msg_return_t retval;
6143 /* Wait for a message on the exception port. */
6144 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6145 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6146 if (retval != MACH_MSG_SUCCESS)
6153 mach_port_t self = mach_task_self ();
6154 /* Allocate a port on which the thread shall listen for exceptions. */
6155 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6157 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6158 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6159 MACH_MSG_TYPE_MAKE_SEND)
6161 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6163 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6164 /* Create the thread listening on the exception port. */
6165 pthread_attr_t attr;
6167 if (pthread_attr_init (&attr) == 0
6168 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6169 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6170 pthread_attr_destroy (&attr);
6171 /* Replace the exception port info for these exceptions with our own.
6172 Note that we replace the exception port for the entire task, not only
6173 for a particular thread. This has the effect that when our exception
6174 port gets the message, the thread specific exception port has already
6175 been asked, and we don't need to bother about it.
6176 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6177 task_set_exception_ports (self, mask, our_exception_port,
6178 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6183 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6184 /* Avoid a crash on native Windows. */
6185 #define WIN32_LEAN_AND_MEAN
6186 #include <windows.h>
6187 #include <winerror.h>
6189 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6191 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6193 case EXCEPTION_ACCESS_VIOLATION:
6194 case EXCEPTION_IN_PAGE_ERROR:
6195 case EXCEPTION_STACK_OVERFLOW:
6196 case EXCEPTION_GUARD_PAGE:
6197 case EXCEPTION_PRIV_INSTRUCTION:
6198 case EXCEPTION_ILLEGAL_INSTRUCTION:
6199 case EXCEPTION_DATATYPE_MISALIGNMENT:
6200 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6201 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6204 return EXCEPTION_CONTINUE_SEARCH;
6209 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6212 /* Avoid a crash on POSIX systems. */
6214 /* A POSIX signal handler. */
6216 exception_handler (int sig)
6224 signal (SIGSEGV, exception_handler);
6227 signal (SIGBUS, exception_handler);
6241 char *name = realpath ("conftest.a", NULL);
6242 if (!(name && *name == '/'))
6246 char *name = realpath ("conftest.b/../conftest.a", NULL);
6251 char *name = realpath ("conftest.a/", NULL);
6256 char *name1 = realpath (".", NULL);
6257 char *name2 = realpath ("conftest.d//./..", NULL);
6258 if (strcmp (name1, name2) != 0)
6268 if ac_fn_c_try_run "$LINENO"; then :
6269 gl_cv_func_realpath_works=yes
6271 gl_cv_func_realpath_works=no
6273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6274 conftest.$ac_objext conftest.beam conftest.$ac_ext
6277 rm -rf conftest.a conftest.d
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6281 $as_echo "$gl_cv_func_realpath_works" >&6; }
6282 case "$gl_cv_func_realpath_works" in
6285 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6293 for ac_header in $ac_header_list
6295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6296 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6298 eval as_val=\$$as_ac_Header
6299 if test "x$as_val" = x""yes; then :
6300 cat >>confdefs.h <<_ACEOF
6301 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6325 GNULIB_EUIDACCESS=0;
6333 GNULIB_GETDOMAINNAME=0;
6334 GNULIB_GETDTABLESIZE=0;
6336 GNULIB_GETHOSTNAME=0;
6338 GNULIB_GETLOGIN_R=0;
6339 GNULIB_GETPAGESIZE=0;
6340 GNULIB_GETUSERSHELL=0;
6341 GNULIB_GROUP_MEMBER=0;
6353 GNULIB_READLINKAT=0;
6355 GNULIB_SETHOSTNAME=0;
6360 GNULIB_UNISTD_H_NONBLOCKING=0;
6361 GNULIB_UNISTD_H_SIGPIPE=0;
6376 HAVE_GETDTABLESIZE=1;
6381 HAVE_GROUP_MEMBER=1;
6397 HAVE_DECL_ENVIRON=1;
6399 HAVE_DECL_FDATASYNC=1;
6400 HAVE_DECL_GETDOMAINNAME=1;
6401 HAVE_DECL_GETLOGIN_R=1;
6402 HAVE_DECL_GETPAGESIZE=1;
6403 HAVE_DECL_GETUSERSHELL=1;
6404 HAVE_DECL_SETHOSTNAME=1;
6405 HAVE_DECL_TTYNAME_R=1;
6413 REPLACE_FTRUNCATE=0;
6415 REPLACE_GETDOMAINNAME=0;
6416 REPLACE_GETLOGIN_R=0;
6417 REPLACE_GETGROUPS=0;
6418 REPLACE_GETPAGESIZE=0;
6431 REPLACE_TTYNAME_R=0;
6436 UNISTD_H_HAVE_WINSOCK2_H=0;
6437 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6454 HAVE_DECL_FDOPENDIR=1;
6461 REPLACE_FDOPENDIR=0;
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6466 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6467 if test "${gl_cv_have_include_next+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6470 rm -rf conftestd1a conftestd1b conftestd2
6471 mkdir conftestd1a conftestd1b conftestd2
6472 cat <<EOF > conftestd1a/conftest.h
6473 #define DEFINED_IN_CONFTESTD1
6474 #include_next <conftest.h>
6475 #ifdef DEFINED_IN_CONFTESTD2
6478 #error "include_next doesn't work"
6481 cat <<EOF > conftestd1b/conftest.h
6482 #define DEFINED_IN_CONFTESTD1
6484 #include_next <conftest.h>
6485 #ifdef DEFINED_IN_CONFTESTD2
6488 #error "include_next doesn't work"
6491 cat <<EOF > conftestd2/conftest.h
6492 #ifndef DEFINED_IN_CONFTESTD1
6493 #error "include_next test doesn't work"
6495 #define DEFINED_IN_CONFTESTD2
6497 gl_save_CPPFLAGS="$CPPFLAGS"
6498 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <conftest.h>
6503 if ac_fn_c_try_compile "$LINENO"; then :
6504 gl_cv_have_include_next=yes
6506 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 #include <conftest.h>
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 gl_cv_have_include_next=buggy
6514 gl_cv_have_include_next=no
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 CPPFLAGS="$gl_save_CPPFLAGS"
6521 rm -rf conftestd1a conftestd1b conftestd2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6525 $as_echo "$gl_cv_have_include_next" >&6; }
6526 PRAGMA_SYSTEM_HEADER=
6527 if test $gl_cv_have_include_next = yes; then
6528 INCLUDE_NEXT=include_next
6529 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6530 if test -n "$GCC"; then
6531 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6534 if test $gl_cv_have_include_next = buggy; then
6535 INCLUDE_NEXT=include
6536 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6538 INCLUDE_NEXT=include
6539 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6546 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6547 if test "${gl_cv_pragma_columns+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "choke me" >/dev/null 2>&1; then :
6560 gl_cv_pragma_columns=yes
6562 gl_cv_pragma_columns=no
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6569 $as_echo "$gl_cv_pragma_columns" >&6; }
6570 if test $gl_cv_pragma_columns = yes; then
6571 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6582 $as_echo_n "checking for complete errno.h... " >&6; }
6583 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6591 #if !defined ETXTBSY
6600 #if !defined ENOLINK
6606 #if !defined EMULTIHOP
6609 #if !defined EBADMSG
6612 #if !defined EOVERFLOW
6615 #if !defined ENOTSUP
6618 #if !defined ENETRESET
6621 #if !defined ECONNABORTED
6630 #if !defined ECANCELED
6633 #if !defined EOWNERDEAD
6636 #if !defined ENOTRECOVERABLE
6644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "booboo" >/dev/null 2>&1; then :
6646 gl_cv_header_errno_h_complete=no
6648 gl_cv_header_errno_h_complete=yes
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6655 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6656 if test $gl_cv_header_errno_h_complete = yes; then
6667 if test $gl_cv_have_include_next = yes; then
6668 gl_cv_next_errno_h='<'errno.h'>'
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6671 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6672 if test "${gl_cv_next_errno_h+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6682 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6683 *) gl_absname_cpp="$ac_cpp" ;;
6688 gl_dirsep_regex='[/\\]'
6691 gl_dirsep_regex='\/'
6694 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6696 gl_header_literal_regex=`echo 'errno.h' \
6697 |
sed -e "$gl_make_literal_regex_sed"`
6698 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6699 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6704 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6705 sed -n "$gl_absolute_header_sed"`'"'
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6710 $as_echo "$gl_cv_next_errno_h" >&6; }
6712 NEXT_ERRNO_H=$gl_cv_next_errno_h
6714 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6716 gl_next_as_first_directive='<'errno.h'>'
6718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6719 gl_next_as_first_directive=$gl_cv_next_errno_h
6721 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6729 if test -n "$ERRNO_H"; then
6730 GL_GENERATE_ERRNO_H_TRUE=
6731 GL_GENERATE_ERRNO_H_FALSE='#'
6733 GL_GENERATE_ERRNO_H_TRUE='#'
6734 GL_GENERATE_ERRNO_H_FALSE=
6738 if test -n "$ERRNO_H"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6740 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6741 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "yes" >/dev/null 2>&1; then :
6756 gl_cv_header_errno_h_EMULTIHOP=yes
6758 gl_cv_header_errno_h_EMULTIHOP=no
6762 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6766 #define _XOPEN_SOURCE_EXTENDED 1
6773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774 $EGREP "yes" >/dev/null 2>&1; then :
6775 gl_cv_header_errno_h_EMULTIHOP=hidden
6779 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6780 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6781 #define _XOPEN_SOURCE_EXTENDED 1
6783 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6795 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6796 case $gl_cv_header_errno_h_EMULTIHOP in
6798 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6801 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6809 if test -n "$ERRNO_H"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6811 $as_echo_n "checking for ENOLINK value... " >&6; }
6812 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "yes" >/dev/null 2>&1; then :
6827 gl_cv_header_errno_h_ENOLINK=yes
6829 gl_cv_header_errno_h_ENOLINK=no
6833 if test $gl_cv_header_errno_h_ENOLINK = no; then
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6837 #define _XOPEN_SOURCE_EXTENDED 1
6844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845 $EGREP "yes" >/dev/null 2>&1; then :
6846 gl_cv_header_errno_h_ENOLINK=hidden
6850 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6851 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6852 #define _XOPEN_SOURCE_EXTENDED 1
6854 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6866 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6867 case $gl_cv_header_errno_h_ENOLINK in
6869 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6872 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6880 if test -n "$ERRNO_H"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6882 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6883 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6897 $EGREP "yes" >/dev/null 2>&1; then :
6898 gl_cv_header_errno_h_EOVERFLOW=yes
6900 gl_cv_header_errno_h_EOVERFLOW=no
6904 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6908 #define _XOPEN_SOURCE_EXTENDED 1
6915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916 $EGREP "yes" >/dev/null 2>&1; then :
6917 gl_cv_header_errno_h_EOVERFLOW=hidden
6921 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6922 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6923 #define _XOPEN_SOURCE_EXTENDED 1
6925 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6937 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6938 case $gl_cv_header_errno_h_EOVERFLOW in
6940 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6943 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6957 $as_echo_n "checking for mbstate_t... " >&6; }
6958 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6967 included before <wchar.h>. */
6975 mbstate_t x; return sizeof x;
6980 if ac_fn_c_try_compile "$LINENO"; then :
6981 ac_cv_type_mbstate_t=yes
6983 ac_cv_type_mbstate_t=no
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6988 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6989 if test $ac_cv_type_mbstate_t = yes; then
6991 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6995 $as_echo "#define mbstate_t int" >>confdefs.h
7093 GNULIB_REMAINDERF=0;
7094 GNULIB_REMAINDERL=0;
7180 HAVE_DECL_COPYSIGNF=1;
7197 HAVE_DECL_REMAINDER=1;
7198 HAVE_DECL_REMAINDERL=1;
7260 REPLACE_REMAINDER=0;
7261 REPLACE_REMAINDERF=0;
7262 REPLACE_REMAINDERL=0;
7267 REPLACE_SIGNBIT_USING_GCC=0;
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7275 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7276 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7287 int e; return frexp (x, &e) > 0;
7292 if ac_fn_c_try_link "$LINENO"; then :
7293 gl_cv_func_frexp_no_libm=yes
7295 gl_cv_func_frexp_no_libm=no
7297 rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7302 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7308 $as_echo_n "checking whether long double and double are the same... " >&6; }
7309 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7318 typedef int check[sizeof (long double) == sizeof (double)
7319 && LDBL_MANT_DIG == DBL_MANT_DIG
7320 && LDBL_MAX_EXP == DBL_MAX_EXP
7321 && LDBL_MIN_EXP == DBL_MIN_EXP
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329 gl_cv_long_double_equals_double=yes
7331 gl_cv_long_double_equals_double=no
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7337 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7338 if test $gl_cv_long_double_equals_double = yes; then
7340 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7342 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7344 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7350 $as_echo_n "checking for unsigned long long int... " >&6; }
7351 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7354 ac_cv_type_unsigned_long_long_int=yes
7355 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7359 /* For now, do not test the preprocessor; as of 2007 there are too many
7360 implementations with broken preprocessors. Perhaps this can
7361 be revisited in 2012. In the meantime, code should not expect
7362 #if to work with literals wider than 32 bits. */
7363 /* Test literals. */
7364 long long int ll = 9223372036854775807ll;
7365 long long int nll = -9223372036854775807LL;
7366 unsigned long long int ull = 18446744073709551615ULL;
7367 /* Test constant expressions. */
7368 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7370 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7376 /* Test availability of runtime routines for shift and division. */
7377 long long int llmax = 9223372036854775807ll;
7378 unsigned long long int ullmax = 18446744073709551615ull;
7379 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7380 | (llmax / ll) | (llmax % ll)
7381 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7382 | (ullmax / ull) | (ullmax % ull));
7388 if ac_fn_c_try_link "$LINENO"; then :
7391 ac_cv_type_unsigned_long_long_int=no
7393 rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7398 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7399 if test $ac_cv_type_unsigned_long_long_int = yes; then
7401 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7408 $as_echo_n "checking for long long int... " >&6; }
7409 if test "${ac_cv_type_long_long_int+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7412 ac_cv_type_long_long_int=yes
7413 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7414 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7415 if test $ac_cv_type_long_long_int = yes; then
7416 if test "$cross_compiling" = yes; then :
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7424 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7425 # define LLONG_MAX (HALF - 1 + HALF)
7430 long long int n = 1;
7434 long long int m = n << i;
7437 if (LLONG_MAX / 2 < m)
7445 if ac_fn_c_try_run "$LINENO"; then :
7448 ac_cv_type_long_long_int=no
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7451 conftest.$ac_objext conftest.beam conftest.$ac_ext
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7458 $as_echo "$ac_cv_type_long_long_int" >&6; }
7459 if test $ac_cv_type_long_long_int = yes; then
7461 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7470 gl_cv_c_multiarch=no
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 #ifndef __APPLE_CC__
7474 not a universal capable compiler
7479 if ac_fn_c_try_compile "$LINENO"; then :
7483 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7484 if test -n "$prev"; then
7486 i?86 | x86_64 | ppc | ppc64)
7487 if test -z "$arch" || test "$arch" = "$word"; then
7490 gl_cv_c_multiarch=yes
7496 if test "x$word" = "x-arch"; then
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 if test $gl_cv_c_multiarch = yes; then
7505 APPLE_UNIVERSAL_BUILD=1
7507 APPLE_UNIVERSAL_BUILD=0
7514 if test $ac_cv_type_long_long_int = yes; then
7515 HAVE_LONG_LONG_INT=1
7517 HAVE_LONG_LONG_INT=0
7521 if test $ac_cv_type_unsigned_long_long_int = yes; then
7522 HAVE_UNSIGNED_LONG_LONG_INT=1
7524 HAVE_UNSIGNED_LONG_LONG_INT=0
7529 if test $ac_cv_header_wchar_h = yes; then
7536 if test $ac_cv_header_inttypes_h = yes; then
7543 if test $ac_cv_header_sys_types_h = yes; then
7559 if test $gl_cv_have_include_next = yes; then
7560 gl_cv_next_stdint_h='<'stdint.h'>'
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7563 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7564 if test "${gl_cv_next_stdint_h+set}" = set; then :
7565 $as_echo_n "(cached) " >&6
7568 if test $ac_cv_header_stdint_h = yes; then
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7577 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7578 *) gl_absname_cpp="$ac_cpp" ;;
7583 gl_dirsep_regex='[/\\]'
7586 gl_dirsep_regex='\/'
7589 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7591 gl_header_literal_regex=`echo 'stdint.h' \
7592 |
sed -e "$gl_make_literal_regex_sed"`
7593 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7594 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7599 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7600 sed -n "$gl_absolute_header_sed"`'"'
7602 gl_cv_next_stdint_h='<'stdint.h'>'
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7608 $as_echo "$gl_cv_next_stdint_h" >&6; }
7610 NEXT_STDINT_H=$gl_cv_next_stdint_h
7612 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7613 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7614 gl_next_as_first_directive='<'stdint.h'>'
7616 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7617 gl_next_as_first_directive=$gl_cv_next_stdint_h
7619 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7624 if test $ac_cv_header_stdint_h = yes; then
7631 if test $ac_cv_header_stdint_h = yes; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7633 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7634 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7637 gl_cv_header_working_stdint_h=no
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7642 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7644 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7645 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7646 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7651 included before <wchar.h>. */
7662 int8_t a1 = INT8_MAX;
7663 int8_t a1min = INT8_MIN;
7666 int16_t a2 = INT16_MAX;
7667 int16_t a2min = INT16_MIN;
7670 int32_t a3 = INT32_MAX;
7671 int32_t a3min = INT32_MIN;
7674 int64_t a4 = INT64_MAX;
7675 int64_t a4min = INT64_MIN;
7678 uint8_t b1 = UINT8_MAX;
7680 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7683 uint16_t b2 = UINT16_MAX;
7686 uint32_t b3 = UINT32_MAX;
7689 uint64_t b4 = UINT64_MAX;
7691 int_least8_t c1 = INT8_C (0x7f);
7692 int_least8_t c1max = INT_LEAST8_MAX;
7693 int_least8_t c1min = INT_LEAST8_MIN;
7694 int_least16_t c2 = INT16_C (0x7fff);
7695 int_least16_t c2max = INT_LEAST16_MAX;
7696 int_least16_t c2min = INT_LEAST16_MIN;
7697 int_least32_t c3 = INT32_C (0x7fffffff);
7698 int_least32_t c3max = INT_LEAST32_MAX;
7699 int_least32_t c3min = INT_LEAST32_MIN;
7700 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7701 int_least64_t c4max = INT_LEAST64_MAX;
7702 int_least64_t c4min = INT_LEAST64_MIN;
7703 uint_least8_t d1 = UINT8_C (0xff);
7704 uint_least8_t d1max = UINT_LEAST8_MAX;
7705 uint_least16_t d2 = UINT16_C (0xffff);
7706 uint_least16_t d2max = UINT_LEAST16_MAX;
7707 uint_least32_t d3 = UINT32_C (0xffffffff);
7708 uint_least32_t d3max = UINT_LEAST32_MAX;
7709 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7710 uint_least64_t d4max = UINT_LEAST64_MAX;
7711 int_fast8_t e1 = INT_FAST8_MAX;
7712 int_fast8_t e1min = INT_FAST8_MIN;
7713 int_fast16_t e2 = INT_FAST16_MAX;
7714 int_fast16_t e2min = INT_FAST16_MIN;
7715 int_fast32_t e3 = INT_FAST32_MAX;
7716 int_fast32_t e3min = INT_FAST32_MIN;
7717 int_fast64_t e4 = INT_FAST64_MAX;
7718 int_fast64_t e4min = INT_FAST64_MIN;
7719 uint_fast8_t f1 = UINT_FAST8_MAX;
7720 uint_fast16_t f2 = UINT_FAST16_MAX;
7721 uint_fast32_t f3 = UINT_FAST32_MAX;
7722 uint_fast64_t f4 = UINT_FAST64_MAX;
7724 intptr_t g = INTPTR_MAX;
7725 intptr_t gmin = INTPTR_MIN;
7728 uintptr_t h = UINTPTR_MAX;
7730 intmax_t i = INTMAX_MAX;
7731 uintmax_t j = UINTMAX_MAX;
7733 #include <limits.h> /* for CHAR_BIT */
7734 #define TYPE_MINIMUM(t) \
7735 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7736 #define TYPE_MAXIMUM(t) \
7737 ((t) ((t) 0 < (t) -1 \
7739 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7742 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7743 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7745 /* Detect bug in FreeBSD 6.0 / ia64. */
7746 int check_SIG_ATOMIC:
7747 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7748 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7750 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7752 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7753 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7755 /* Detect bug in mingw. */
7757 WINT_MIN == TYPE_MINIMUM (wint_t)
7758 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7761 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7763 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7765 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7767 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7769 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7772 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7775 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7778 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7780 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7781 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7782 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7783 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7784 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7785 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7786 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7787 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7788 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7789 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7790 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7801 if ac_fn_c_try_compile "$LINENO"; then :
7802 if test "$cross_compiling" = yes; then :
7803 gl_cv_header_working_stdint_h=yes
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7810 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7814 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7815 included before <wchar.h>. */
7827 #define MVAL(macro) MVAL1(macro)
7828 #define MVAL1(expression) #expression
7829 static const char *macro_values[] =
7863 for (mv = macro_values; *mv != NULL; mv++)
7865 const char *value = *mv;
7866 /* Test whether it looks like a cast expression. */
7867 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7868 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7869 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7870 || strncmp (value, "((int)"/*)*/, 6) == 0
7871 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7872 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7873 return mv - macro_values + 1;
7881 if ac_fn_c_try_run "$LINENO"; then :
7882 gl_cv_header_working_stdint_h=yes
7884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7885 conftest.$ac_objext conftest.beam conftest.$ac_ext
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7894 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7896 if test "$gl_cv_header_working_stdint_h" = yes; then
7899 for ac_header in sys/inttypes.h sys/bitypes.h
7901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7902 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7903 eval as_val=\$$as_ac_Header
7904 if test "x$as_val" = x""yes; then :
7905 cat >>confdefs.h <<_ACEOF
7906 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7913 if test $ac_cv_header_sys_inttypes_h = yes; then
7914 HAVE_SYS_INTTYPES_H=1
7916 HAVE_SYS_INTTYPES_H=0
7919 if test $ac_cv_header_sys_bitypes_h = yes; then
7920 HAVE_SYS_BITYPES_H=1
7922 HAVE_SYS_BITYPES_H=0
7928 if test $APPLE_UNIVERSAL_BUILD = 0; then
7931 for gltype in ptrdiff_t size_t ; do
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7933 $as_echo_n "checking for bit size of $gltype... " >&6; }
7934 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7935 $as_echo_n "(cached) " >&6
7937 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7938 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7939 included before <wchar.h>. */
7948 #include <limits.h>"; then :
7954 eval gl_cv_bitsizeof_${gltype}=\$result
7957 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7959 $as_echo "$ac_res" >&6; }
7960 eval result=\$gl_cv_bitsizeof_${gltype}
7961 if test $result = unknown; then
7964 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7965 cat >>confdefs.h <<_ACEOF
7966 #define BITSIZEOF_${GLTYPE} $result
7969 eval BITSIZEOF_${GLTYPE}=\$result
7976 for gltype in sig_atomic_t wchar_t wint_t ; do
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7978 $as_echo_n "checking for bit size of $gltype... " >&6; }
7979 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7980 $as_echo_n "(cached) " >&6
7982 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7983 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7984 included before <wchar.h>. */
7993 #include <limits.h>"; then :
7999 eval gl_cv_bitsizeof_${gltype}=\$result
8002 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8004 $as_echo "$ac_res" >&6; }
8005 eval result=\$gl_cv_bitsizeof_${gltype}
8006 if test $result = unknown; then
8009 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8010 cat >>confdefs.h <<_ACEOF
8011 #define BITSIZEOF_${GLTYPE} $result
8014 eval BITSIZEOF_${GLTYPE}=\$result
8020 for gltype in sig_atomic_t wchar_t wint_t ; do
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8022 $as_echo_n "checking whether $gltype is signed... " >&6; }
8023 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8024 $as_echo_n "(cached) " >&6
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8029 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8030 included before <wchar.h>. */
8039 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8048 if ac_fn_c_try_compile "$LINENO"; then :
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 eval gl_cv_type_${gltype}_signed=\$result
8057 eval ac_res=\$gl_cv_type_${gltype}_signed
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8059 $as_echo "$ac_res" >&6; }
8060 eval result=\$gl_cv_type_${gltype}_signed
8061 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8062 if test "$result" = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064 #define HAVE_SIGNED_${GLTYPE} 1
8067 eval HAVE_SIGNED_${GLTYPE}=1
8069 eval HAVE_SIGNED_${GLTYPE}=0
8074 gl_cv_type_ptrdiff_t_signed=yes
8075 gl_cv_type_size_t_signed=no
8076 if test $APPLE_UNIVERSAL_BUILD = 0; then
8079 for gltype in ptrdiff_t size_t ; do
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8081 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8082 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8083 $as_echo_n "(cached) " >&6
8085 eval gl_cv_type_${gltype}_suffix=no
8086 eval result=\$gl_cv_type_${gltype}_signed
8087 if test "$result" = yes; then
8092 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8095 l) gltype1='long int';;
8096 ll) gltype1='long long int';;
8097 i64) gltype1='__int64';;
8098 u) gltype1='unsigned int';;
8099 ul) gltype1='unsigned long int';;
8100 ull) gltype1='unsigned long long int';;
8101 ui64)gltype1='unsigned __int64';;
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8106 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8107 included before <wchar.h>. */
8117 extern $gltype1 foo;
8126 if ac_fn_c_try_compile "$LINENO"; then :
8127 eval gl_cv_type_${gltype}_suffix=\$glsuf
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 eval result=\$gl_cv_type_${gltype}_suffix
8131 test "$result" != no && break
8134 eval ac_res=\$gl_cv_type_${gltype}_suffix
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8136 $as_echo "$ac_res" >&6; }
8137 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8138 eval result=\$gl_cv_type_${gltype}_suffix
8139 test "$result" = no && result=
8140 eval ${GLTYPE}_SUFFIX=\$result
8141 cat >>confdefs.h <<_ACEOF
8142 #define ${GLTYPE}_SUFFIX $result
8151 for gltype in sig_atomic_t wchar_t wint_t ; do
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8153 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8154 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8155 $as_echo_n "(cached) " >&6
8157 eval gl_cv_type_${gltype}_suffix=no
8158 eval result=\$gl_cv_type_${gltype}_signed
8159 if test "$result" = yes; then
8164 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8167 l) gltype1='long int';;
8168 ll) gltype1='long long int';;
8169 i64) gltype1='__int64';;
8170 u) gltype1='unsigned int';;
8171 ul) gltype1='unsigned long int';;
8172 ull) gltype1='unsigned long long int';;
8173 ui64)gltype1='unsigned __int64';;
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8178 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8179 included before <wchar.h>. */
8189 extern $gltype1 foo;
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 eval gl_cv_type_${gltype}_suffix=\$glsuf
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 eval result=\$gl_cv_type_${gltype}_suffix
8203 test "$result" != no && break
8206 eval ac_res=\$gl_cv_type_${gltype}_suffix
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8208 $as_echo "$ac_res" >&6; }
8209 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8210 eval result=\$gl_cv_type_${gltype}_suffix
8211 test "$result" = no && result=
8212 eval ${GLTYPE}_SUFFIX=\$result
8213 cat >>confdefs.h <<_ACEOF
8214 #define ${GLTYPE}_SUFFIX $result
8221 if test $BITSIZEOF_WINT_T -lt 32; then
8228 if test -n "$STDINT_H"; then
8229 GL_GENERATE_STDINT_H_TRUE=
8230 GL_GENERATE_STDINT_H_FALSE='#'
8232 GL_GENERATE_STDINT_H_TRUE='#'
8233 GL_GENERATE_STDINT_H_FALSE=
8244 HAVE_DECL_IMAXABS=1;
8245 HAVE_DECL_IMAXDIV=1;
8246 HAVE_DECL_STRTOIMAX=1;
8247 HAVE_DECL_STRTOUMAX=1;
8248 REPLACE_STRTOIMAX=0;
8249 INT32_MAX_LT_INTMAX_MAX=1;
8250 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8251 PRI_MACROS_BROKEN=0;
8252 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8253 UINT32_MAX_LT_UINTMAX_MAX=1;
8254 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8270 if test $gl_cv_have_include_next = yes; then
8271 gl_cv_next_inttypes_h='<'inttypes.h'>'
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8274 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8275 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8279 if test $ac_cv_header_inttypes_h = yes; then
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284 #include <inttypes.h>
8288 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8289 *) gl_absname_cpp="$ac_cpp" ;;
8294 gl_dirsep_regex='[/\\]'
8297 gl_dirsep_regex='\/'
8300 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8302 gl_header_literal_regex=`echo 'inttypes.h' \
8303 |
sed -e "$gl_make_literal_regex_sed"`
8304 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8305 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8310 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8311 sed -n "$gl_absolute_header_sed"`'"'
8313 gl_cv_next_inttypes_h='<'inttypes.h'>'
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8319 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8321 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8323 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8324 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8325 gl_next_as_first_directive='<'inttypes.h'>'
8327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8328 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8330 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8339 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8340 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8342 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8343 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8344 $as_echo_n "(cached) " >&6
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #include <inttypes.h>
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 eval "$as_gl_Symbol=yes"
8362 eval "$as_gl_Symbol=no"
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 eval ac_res=\$$as_gl_Symbol
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8368 $as_echo "$ac_res" >&6; }
8369 eval as_val=\$$as_gl_Symbol
8370 if test "x$as_val" = x""yes; then :
8371 cat >>confdefs.h <<_ACEOF
8372 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8375 eval ac_cv_have_decl_$gl_func=yes
8381 for ac_header in inttypes.h
8383 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8384 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8385 cat >>confdefs.h <<_ACEOF
8386 #define HAVE_INTTYPES_H 1
8393 if test $ac_cv_header_inttypes_h = yes; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8395 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8396 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8397 $as_echo_n "(cached) " >&6
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8403 #include <inttypes.h>
8416 if ac_fn_c_try_compile "$LINENO"; then :
8417 gt_cv_inttypes_pri_broken=no
8419 gt_cv_inttypes_pri_broken=yes
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8425 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8427 if test "$gt_cv_inttypes_pri_broken" = yes; then
8429 cat >>confdefs.h <<_ACEOF
8430 #define PRI_MACROS_BROKEN 1
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8441 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8442 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8443 $as_echo_n "(cached) " >&6
8446 if test "$cross_compiling" = yes; then :
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8451 #if defined arm || defined __arm || defined __arm__
8456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8457 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8458 gl_cv_cc_double_expbit0="unknown"
8462 if test "${ac_cv_c_bigendian+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8465 ac_cv_c_bigendian=unknown
8466 # See if we're dealing with a universal compiler.
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 #ifndef __APPLE_CC__
8470 not a universal capable compiler
8475 if ac_fn_c_try_compile "$LINENO"; then :
8477 # Check for potential -arch flags. It is not universal unless
8478 # there are at least two -arch flags with different values.
8481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8482 if test -n "$ac_prev"; then
8484 i?86 | x86_64 | ppc | ppc64)
8485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8488 ac_cv_c_bigendian=universal
8494 elif test "x$ac_word" = "x-arch"; then
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 if test $ac_cv_c_bigendian = unknown; then
8501 # See if sys/param.h defines the BYTE_ORDER macro.
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/param.h>
8510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8520 if ac_fn_c_try_compile "$LINENO"; then :
8521 # It does; now see whether it defined to BIG_ENDIAN or not.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <sys/types.h>
8525 #include <sys/param.h>
8530 #if BYTE_ORDER != BIG_ENDIAN
8538 if ac_fn_c_try_compile "$LINENO"; then :
8539 ac_cv_c_bigendian=yes
8541 ac_cv_c_bigendian=no
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 if test $ac_cv_c_bigendian = unknown; then
8548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 # It does; now see whether it defined to _BIG_ENDIAN or not.
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 ac_cv_c_bigendian=yes
8584 ac_cv_c_bigendian=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 if test $ac_cv_c_bigendian = unknown; then
8591 # Compile a test program.
8592 if test "$cross_compiling" = yes; then :
8593 # Try to guess by grepping values from an object file.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 short int ascii_mm[] =
8597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8598 short int ascii_ii[] =
8599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8600 int use_ascii (int i) {
8601 return ascii_mm[i] + ascii_ii[i];
8603 short int ebcdic_ii[] =
8604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8605 short int ebcdic_mm[] =
8606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8607 int use_ebcdic (int i) {
8608 return ebcdic_mm[i] + ebcdic_ii[i];
8615 return use_ascii (foo) == use_ebcdic (foo);
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8622 ac_cv_c_bigendian=yes
8624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8625 if test "$ac_cv_c_bigendian" = unknown; then
8626 ac_cv_c_bigendian=no
8628 # finding both strings is unlikely to happen, but who knows?
8629 ac_cv_c_bigendian=unknown
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 $ac_includes_default
8642 /* Are we little or big endian? From Harbison&Steele. */
8646 char c[sizeof (long int)];
8649 return u.c[sizeof (long int) - 1] == 1;
8655 if ac_fn_c_try_run "$LINENO"; then :
8656 ac_cv_c_bigendian=no
8658 ac_cv_c_bigendian=yes
8660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8661 conftest.$ac_objext conftest.beam conftest.$ac_ext
8667 case $ac_cv_c_bigendian in #(
8669 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8671 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8674 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8678 gl_cv_cc_double_expbit0="unknown" ;;
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8695 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8696 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8697 static unsigned int ored_words[NWORDS];
8698 static unsigned int anded_words[NWORDS];
8699 static void add_to_ored_words (double x)
8703 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8704 memset (&m, 0, sizeof (memory_double));
8706 for (i = 0; i < NWORDS; i++)
8708 ored_words[i] |= m.word[i];
8709 anded_words[i] &= m.word[i];
8715 FILE *fp = fopen ("conftest.out", "w");
8718 for (j = 0; j < NWORDS; j++)
8719 anded_words[j] = ~ (unsigned int) 0;
8720 add_to_ored_words (0.25);
8721 add_to_ored_words (0.5);
8722 add_to_ored_words (1.0);
8723 add_to_ored_words (2.0);
8724 add_to_ored_words (4.0);
8725 /* Remove bits that are common (e.g. if representation of the first mantissa
8726 bit is explicit). */
8727 for (j = 0; j < NWORDS; j++)
8728 ored_words[j] &= ~anded_words[j];
8729 /* Now find the nonzero word. */
8730 for (j = 0; j < NWORDS; j++)
8731 if (ored_words[j] != 0)
8736 for (i = j + 1; i < NWORDS; i++)
8737 if (ored_words[i] != 0)
8739 fprintf (fp, "unknown");
8740 return (fclose (fp) != 0);
8743 if ((ored_words[j] >> i) & 1)
8745 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8746 return (fclose (fp) != 0);
8749 fprintf (fp, "unknown");
8750 return (fclose (fp) != 0);
8754 if ac_fn_c_try_run "$LINENO"; then :
8755 gl_cv_cc_double_expbit0=`cat conftest.out
`
8757 gl_cv_cc_double_expbit0="unknown"
8759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760 conftest.$ac_objext conftest.beam conftest.$ac_ext
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8767 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8768 case "$gl_cv_cc_double_expbit0" in
8770 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
8771 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
8773 cat >>confdefs.h <<_ACEOF
8774 #define DBL_EXPBIT0_WORD $word
8778 cat >>confdefs.h <<_ACEOF
8779 #define DBL_EXPBIT0_BIT $bit
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8787 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8788 if test "${ac_cv_c_bigendian+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8791 ac_cv_c_bigendian=unknown
8792 # See if we're dealing with a universal compiler.
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 #ifndef __APPLE_CC__
8796 not a universal capable compiler
8801 if ac_fn_c_try_compile "$LINENO"; then :
8803 # Check for potential -arch flags. It is not universal unless
8804 # there are at least two -arch flags with different values.
8807 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8808 if test -n "$ac_prev"; then
8810 i?86 | x86_64 | ppc | ppc64)
8811 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8814 ac_cv_c_bigendian=universal
8820 elif test "x$ac_word" = "x-arch"; then
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 if test $ac_cv_c_bigendian = unknown; then
8827 # See if sys/param.h defines the BYTE_ORDER macro.
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8830 #include <sys/types.h>
8831 #include <sys/param.h>
8836 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8837 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8846 if ac_fn_c_try_compile "$LINENO"; then :
8847 # It does; now see whether it defined to BIG_ENDIAN or not.
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 #include <sys/types.h>
8851 #include <sys/param.h>
8856 #if BYTE_ORDER != BIG_ENDIAN
8864 if ac_fn_c_try_compile "$LINENO"; then :
8865 ac_cv_c_bigendian=yes
8867 ac_cv_c_bigendian=no
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873 if test $ac_cv_c_bigendian = unknown; then
8874 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8882 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8890 if ac_fn_c_try_compile "$LINENO"; then :
8891 # It does; now see whether it defined to _BIG_ENDIAN or not.
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8907 if ac_fn_c_try_compile "$LINENO"; then :
8908 ac_cv_c_bigendian=yes
8910 ac_cv_c_bigendian=no
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 if test $ac_cv_c_bigendian = unknown; then
8917 # Compile a test program.
8918 if test "$cross_compiling" = yes; then :
8919 # Try to guess by grepping values from an object file.
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 short int ascii_mm[] =
8923 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8924 short int ascii_ii[] =
8925 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8926 int use_ascii (int i) {
8927 return ascii_mm[i] + ascii_ii[i];
8929 short int ebcdic_ii[] =
8930 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8931 short int ebcdic_mm[] =
8932 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8933 int use_ebcdic (int i) {
8934 return ebcdic_mm[i] + ebcdic_ii[i];
8941 return use_ascii (foo) == use_ebcdic (foo);
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8948 ac_cv_c_bigendian=yes
8950 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8951 if test "$ac_cv_c_bigendian" = unknown; then
8952 ac_cv_c_bigendian=no
8954 # finding both strings is unlikely to happen, but who knows?
8955 ac_cv_c_bigendian=unknown
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 $ac_includes_default
8968 /* Are we little or big endian? From Harbison&Steele. */
8972 char c[sizeof (long int)];
8975 return u.c[sizeof (long int) - 1] == 1;
8981 if ac_fn_c_try_run "$LINENO"; then :
8982 ac_cv_c_bigendian=no
8984 ac_cv_c_bigendian=yes
8986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8987 conftest.$ac_objext conftest.beam conftest.$ac_ext
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8993 $as_echo "$ac_cv_c_bigendian" >&6; }
8994 case $ac_cv_c_bigendian in #(
8996 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9002 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9006 as_fn_error "unknown endianness
9007 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9016 $as_echo_n "checking for 64-bit off_t... " >&6; }
9017 if test "${gl_cv_type_off_t_64+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 #include <sys/types.h>
9023 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9033 if ac_fn_c_try_compile "$LINENO"; then :
9034 gl_cv_type_off_t_64=yes
9036 gl_cv_type_off_t_64=no
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9042 $as_echo "$gl_cv_type_off_t_64" >&6; }
9043 if test $gl_cv_type_off_t_64 = no; then
9044 WINDOWS_64_BIT_OFF_T=1
9046 WINDOWS_64_BIT_OFF_T=0
9048 WINDOWS_64_BIT_ST_SIZE=1
9051 WINDOWS_64_BIT_OFF_T=0
9052 WINDOWS_64_BIT_ST_SIZE=0
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9058 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9059 if test "${am_cv_langinfo_codeset+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 #include <langinfo.h>
9068 char* cs = nl_langinfo(CODESET); return !cs;
9073 if ac_fn_c_try_link "$LINENO"; then :
9074 am_cv_langinfo_codeset=yes
9076 am_cv_langinfo_codeset=no
9078 rm -f core conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9083 $as_echo "$am_cv_langinfo_codeset" >&6; }
9084 if test $am_cv_langinfo_codeset = yes; then
9086 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9100 $as_echo_n "checking for working fcntl.h... " >&6; }
9101 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9104 if test "$cross_compiling" = yes; then :
9105 gl_cv_header_working_fcntl_h=cross-compiling
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 #include <sys/types.h>
9110 #include <sys/stat.h>
9112 # include <unistd.h>
9113 #else /* on Windows with MSVC */
9115 # include <stdlib.h>
9116 # defined sleep(n) _sleep ((n) * 1000)
9123 #define O_NOFOLLOW 0
9125 static int const constants[] =
9127 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9128 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9135 int result = !constants;
9138 static char const sym[] = "conftest.sym";
9139 if (symlink ("/dev/null", sym) != 0)
9143 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9150 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9154 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9165 static char const file[] = "confdefs.h";
9166 int fd = open (file, O_RDONLY | O_NOATIME);
9172 if (fstat (fd, &st0) != 0)
9178 if (read (fd, &c, 1) != 1)
9182 if (close (fd) != 0)
9187 if (stat (file, &st1) != 0)
9190 if (st0.st_atime != st1.st_atime)
9202 if ac_fn_c_try_run "$LINENO"; then :
9203 gl_cv_header_working_fcntl_h=yes
9206 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9207 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9208 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9209 *) gl_cv_header_working_fcntl_h='no';;
9212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9218 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9220 case $gl_cv_header_working_fcntl_h in #(
9221 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9225 cat >>confdefs.h <<_ACEOF
9226 #define HAVE_WORKING_O_NOATIME $ac_val
9230 case $gl_cv_header_working_fcntl_h in #(
9231 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9235 cat >>confdefs.h <<_ACEOF
9236 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9240 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9241 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9253 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9254 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9260 #include <features.h>
9261 #ifdef __GNU_LIBRARY__
9262 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9272 $EGREP "Lucky" >/dev/null 2>&1; then :
9273 ac_cv_gnu_library_2_1=yes
9275 ac_cv_gnu_library_2_1=no
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9283 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9285 GLIBC21="$ac_cv_gnu_library_2_1"
9321 REPLACE_UTIMENSAT=0;
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9327 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9328 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9331 rm -f conftest.sym conftest.file
9333 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9334 if test "$cross_compiling" = yes; then :
9336 # Guess yes on glibc systems.
9337 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9338 # If we don't know, assume the worst.
9339 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 $ac_includes_default
9350 /* Linux will dereference the symlink and fail, as required by
9351 POSIX. That is better in the sense that it means we will not
9352 have to compile and use the lstat wrapper. */
9353 return lstat ("conftest.sym/", &sbuf) == 0;
9359 if ac_fn_c_try_run "$LINENO"; then :
9360 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9362 gl_cv_func_lstat_dereferences_slashed_symlink=no
9364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9365 conftest.$ac_objext conftest.beam conftest.$ac_ext
9369 # If the 'ln -s' command failed, then we probably don't even
9370 # have an lstat function.
9371 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
9373 rm -f conftest.sym conftest.file
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9377 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9378 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9381 cat >>confdefs.h <<_ACEOF
9382 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9389 for ac_header in stdlib.h
9391 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9392 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_STDLIB_H 1
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9402 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9403 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9406 if test "$cross_compiling" = yes; then :
9407 ac_cv_func_malloc_0_nonnull=no
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9412 # include <stdlib.h>
9420 return ! malloc (0);
9425 if ac_fn_c_try_run "$LINENO"; then :
9426 ac_cv_func_malloc_0_nonnull=yes
9428 ac_cv_func_malloc_0_nonnull=no
9430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9431 conftest.$ac_objext conftest.beam conftest.$ac_ext
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9436 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9437 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9438 gl_cv_func_malloc_0_nonnull=1
9440 gl_cv_func_malloc_0_nonnull=0
9444 cat >>confdefs.h <<_ACEOF
9445 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9458 GNULIB_MBSNRTOWCS=0;
9461 GNULIB_WCSNRTOMBS=0;
9478 GNULIB_WCSCASECMP=0;
9479 GNULIB_WCSNCASECMP=0;
9529 HAVE_DECL_WCWIDTH=1;
9530 REPLACE_MBSTATE_T=0;
9536 REPLACE_MBSRTOWCS=0;
9537 REPLACE_MBSNRTOWCS=0;
9539 REPLACE_WCSRTOMBS=0;
9540 REPLACE_WCSNRTOMBS=0;
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9552 $as_echo_n "checking for a traditional japanese locale... " >&6; }
9553 if test "${gt_cv_locale_ja+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9562 #if HAVE_LANGINFO_CODESET
9563 # include <langinfo.h>
9572 /* Check whether the given locale name is recognized by the system. */
9573 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9574 /* On native Windows, setlocale(category, "") looks at the system settings,
9575 not at the environment variables. Also, when an encoding suffix such
9576 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9577 category of the locale to "C". */
9578 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9579 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9582 if (setlocale (LC_ALL, "") == NULL) return 1;
9584 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9585 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9586 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9587 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9588 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9589 some unit tests fail.
9590 On MirBSD 10, when an unsupported locale is specified, setlocale()
9591 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9592 #if HAVE_LANGINFO_CODESET
9594 const char *cs = nl_langinfo (CODESET);
9595 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9596 || strcmp (cs, "UTF-8") == 0)
9601 /* On Cygwin, avoid locale names without encoding suffix, because the
9602 locale_charset() function relies on the encoding suffix. Note that
9603 LC_ALL is set on the command line. */
9604 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9606 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9608 if (MB_CUR_MAX == 1)
9610 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9611 This excludes the UTF-8 encoding (except on MirBSD). */
9612 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9613 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9614 for (p = buf; *p != '\0'; p++)
9615 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9622 (eval $ac_link) 2>&5
9624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9625 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9627 # Handle native Windows specially, because there setlocale() interprets
9628 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9629 # "fr" or "fra" as "French" or "French_France.1252",
9630 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9631 # "ja" as "Japanese" or "Japanese_Japan.932",
9634 # Note that on native Windows, the Japanese locale is
9635 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9636 # cannot use it here.
9637 gt_cv_locale_ja=none
9640 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9641 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9642 # configure script would override the LC_ALL setting. Likewise for
9643 # LC_CTYPE, which is also set at the beginning of the configure script.
9644 # Test for the AIX locale name.
9645 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9646 gt_cv_locale_ja=ja_JP
9648 # Test for the locale name with explicit encoding suffix.
9649 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9650 gt_cv_locale_ja=ja_JP.EUC-JP
9652 # Test for the HP-UX, OSF/1, NetBSD locale name.
9653 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9654 gt_cv_locale_ja=ja_JP.eucJP
9656 # Test for the IRIX, FreeBSD locale name.
9657 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9658 gt_cv_locale_ja=ja_JP.EUC
9660 # Test for the Solaris 7 locale name.
9661 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9664 # Special test for NetBSD 1.6.
9665 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9666 gt_cv_locale_ja=ja_JP.eucJP
9669 gt_cv_locale_ja=none
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9683 $as_echo "$gt_cv_locale_ja" >&6; }
9684 LOCALE_JA=$gt_cv_locale_ja
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9691 $as_echo_n "checking for a transitional chinese locale... " >&6; }
9692 if test "${gt_cv_locale_zh_CN+set}" = set; then :
9693 $as_echo_n "(cached) " >&6
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9702 #if HAVE_LANGINFO_CODESET
9703 # include <langinfo.h>
9712 /* Check whether the given locale name is recognized by the system. */
9713 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9714 /* On native Windows, setlocale(category, "") looks at the system settings,
9715 not at the environment variables. Also, when an encoding suffix such
9716 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9717 category of the locale to "C". */
9718 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9719 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9722 if (setlocale (LC_ALL, "") == NULL) return 1;
9724 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9725 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9726 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9727 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9728 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9729 some unit tests fail.
9730 On MirBSD 10, when an unsupported locale is specified, setlocale()
9731 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9732 #if HAVE_LANGINFO_CODESET
9734 const char *cs = nl_langinfo (CODESET);
9735 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9736 || strcmp (cs, "UTF-8") == 0)
9741 /* On Cygwin, avoid locale names without encoding suffix, because the
9742 locale_charset() function relies on the encoding suffix. Note that
9743 LC_ALL is set on the command line. */
9744 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9746 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9747 This excludes the UTF-8 encoding (except on MirBSD). */
9748 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9749 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9750 for (p = buf; *p != '\0'; p++)
9751 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9753 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9754 single wide character. This excludes the GB2312 and GBK encodings. */
9755 if (mblen ("\203\062\332\066", 5) != 4)
9761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9762 (eval $ac_link) 2>&5
9764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9767 # Handle native Windows specially, because there setlocale() interprets
9768 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9769 # "fr" or "fra" as "French" or "French_France.1252",
9770 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9771 # "ja" as "Japanese" or "Japanese_Japan.932",
9774 # Test for the hypothetical native Windows locale name.
9775 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9776 gt_cv_locale_zh_CN=Chinese_China.54936
9779 gt_cv_locale_zh_CN=none
9783 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9784 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9785 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9786 gt_cv_locale_zh_CN=none
9789 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9790 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9791 # configure script would override the LC_ALL setting. Likewise for
9792 # LC_CTYPE, which is also set at the beginning of the configure script.
9793 # Test for the locale name without encoding suffix.
9794 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9795 gt_cv_locale_zh_CN=zh_CN
9797 # Test for the locale name with explicit encoding suffix.
9798 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9799 gt_cv_locale_zh_CN=zh_CN.GB18030
9802 gt_cv_locale_zh_CN=none
9808 # If there was a link error, due to mblen(), the system is so old that
9809 # it certainly doesn't have a chinese locale.
9810 gt_cv_locale_zh_CN=none
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9816 $as_echo "$gt_cv_locale_zh_CN" >&6; }
9817 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9823 $as_echo_n "checking for a french Unicode locale... " >&6; }
9824 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9825 $as_echo_n "(cached) " >&6
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9833 #if HAVE_LANGINFO_CODESET
9834 # include <langinfo.h>
9841 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9842 imitates locale dependent behaviour by looking at the environment
9843 variables, and all locales use the UTF-8 encoding. */
9844 #if !(defined __BEOS__ || defined __HAIKU__)
9845 /* Check whether the given locale name is recognized by the system. */
9846 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9847 /* On native Windows, setlocale(category, "") looks at the system settings,
9848 not at the environment variables. Also, when an encoding suffix such
9849 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9850 category of the locale to "C". */
9851 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9852 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9855 if (setlocale (LC_ALL, "") == NULL) return 1;
9857 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9858 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9859 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9860 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9861 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9862 some unit tests fail. */
9863 # if HAVE_LANGINFO_CODESET
9865 const char *cs = nl_langinfo (CODESET);
9866 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9871 /* On Cygwin, avoid locale names without encoding suffix, because the
9872 locale_charset() function relies on the encoding suffix. Note that
9873 LC_ALL is set on the command line. */
9874 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9876 /* Check whether in the abbreviation of the second month, the second
9877 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9878 two bytes long, with UTF-8 encoding. */
9879 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9880 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9881 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9884 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9885 /* Check whether the decimal separator is a comma.
9886 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9887 are nl_langinfo(RADIXCHAR) are both ".". */
9888 if (localeconv () ->decimal_point[0] != ',') return 1;
9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9895 (eval $ac_link) 2>&5
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9900 # Handle native Windows specially, because there setlocale() interprets
9901 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9902 # "fr" or "fra" as "French" or "French_France.1252",
9903 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9904 # "ja" as "Japanese" or "Japanese_Japan.932",
9907 # Test for the hypothetical native Windows locale name.
9908 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9909 gt_cv_locale_fr_utf8=French_France.65001
9912 gt_cv_locale_fr_utf8=none
9916 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9917 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9918 # configure script would override the LC_ALL setting. Likewise for
9919 # LC_CTYPE, which is also set at the beginning of the configure script.
9920 # Test for the usual locale name.
9921 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9922 gt_cv_locale_fr_utf8=fr_FR
9924 # Test for the locale name with explicit encoding suffix.
9925 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9926 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9928 # Test for the Solaris 7 locale name.
9929 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9930 gt_cv_locale_fr_utf8=fr.UTF-8
9933 gt_cv_locale_fr_utf8=none
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9944 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9945 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9952 $as_echo_n "checking for a traditional french locale... " >&6; }
9953 if test "${gt_cv_locale_fr+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9962 #if HAVE_LANGINFO_CODESET
9963 # include <langinfo.h>
9970 /* Check whether the given locale name is recognized by the system. */
9971 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9972 /* On native Windows, setlocale(category, "") looks at the system settings,
9973 not at the environment variables. Also, when an encoding suffix such
9974 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9975 category of the locale to "C". */
9976 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9977 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9980 if (setlocale (LC_ALL, "") == NULL) return 1;
9982 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9983 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9984 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9985 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9986 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9987 some unit tests fail.
9988 On MirBSD 10, when an unsupported locale is specified, setlocale()
9989 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9990 #if HAVE_LANGINFO_CODESET
9992 const char *cs = nl_langinfo (CODESET);
9993 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9994 || strcmp (cs, "UTF-8") == 0)
9999 /* On Cygwin, avoid locale names without encoding suffix, because the
10000 locale_charset() function relies on the encoding suffix. Note that
10001 LC_ALL is set on the command line. */
10002 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10004 /* Check whether in the abbreviation of the second month, the second
10005 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10006 one byte long. This excludes the UTF-8 encoding. */
10007 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10008 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10009 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10010 /* Check whether the decimal separator is a comma.
10011 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10012 are nl_langinfo(RADIXCHAR) are both ".". */
10013 if (localeconv () ->decimal_point[0] != ',') return 1;
10019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10020 (eval $ac_link) 2>&5
10022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10023 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10025 # Handle native Windows specially, because there setlocale() interprets
10026 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10027 # "fr" or "fra" as "French" or "French_France.1252",
10028 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10029 # "ja" as "Japanese" or "Japanese_Japan.932",
10032 # Test for the native Windows locale name.
10033 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10034 gt_cv_locale_fr=French_France.1252
10037 gt_cv_locale_fr=none
10041 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10042 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10043 # configure script would override the LC_ALL setting. Likewise for
10044 # LC_CTYPE, which is also set at the beginning of the configure script.
10045 # Test for the usual locale name.
10046 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10047 gt_cv_locale_fr=fr_FR
10049 # Test for the locale name with explicit encoding suffix.
10050 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10051 gt_cv_locale_fr=fr_FR.ISO-8859-1
10053 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10054 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10055 gt_cv_locale_fr=fr_FR.ISO8859-1
10057 # Test for the HP-UX locale name.
10058 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10059 gt_cv_locale_fr=fr_FR.iso88591
10061 # Test for the Solaris 7 locale name.
10062 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10066 gt_cv_locale_fr=none
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10079 $as_echo "$gt_cv_locale_fr" >&6; }
10080 LOCALE_FR=$gt_cv_locale_fr
10094 GNULIB_RAWMEMCHR=0;
10097 GNULIB_STRCHRNUL=0;
10105 GNULIB_STRCASESTR=0;
10112 GNULIB_MBSCASECMP=0;
10113 GNULIB_MBSNCASECMP=0;
10114 GNULIB_MBSPCASECMP=0;
10115 GNULIB_MBSCASESTR=0;
10122 GNULIB_STRERROR_R=0;
10123 GNULIB_STRSIGNAL=0;
10124 GNULIB_STRVERSCMP=0;
10129 HAVE_DECL_MEMMEM=1;
10131 HAVE_DECL_MEMRCHR=1;
10136 HAVE_DECL_STRDUP=1;
10137 HAVE_DECL_STRNDUP=1;
10138 HAVE_DECL_STRNLEN=1;
10142 HAVE_DECL_STRTOK_R=1;
10143 HAVE_DECL_STRERROR_R=1;
10144 HAVE_DECL_STRSIGNAL=1;
10151 REPLACE_STRCASESTR=0;
10152 REPLACE_STRCHRNUL=0;
10153 REPLACE_STRERROR=0;
10154 REPLACE_STRERROR_R=0;
10158 REPLACE_STRSIGNAL=0;
10159 REPLACE_STRTOK_R=0;
10160 UNDEFINE_STRTOK_R=0;
10166 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10167 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10168 # irrelevant for anonymous mappings.
10169 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10170 if test "x$ac_cv_func_mmap" = x""yes; then :
10177 # Try to allow MAP_ANONYMOUS.
10178 gl_have_mmap_anonymous=no
10179 if test $gl_have_mmap = yes; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10181 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10185 #include <sys/mman.h>
10186 #ifdef MAP_ANONYMOUS
10187 I cannot identify this map
10191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10192 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10193 gl_have_mmap_anonymous=yes
10197 if test $gl_have_mmap_anonymous != yes; then
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10201 #include <sys/mman.h>
10203 I cannot identify this map
10207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10208 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10210 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10212 gl_have_mmap_anonymous=yes
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10218 $as_echo "$gl_have_mmap_anonymous" >&6; }
10219 if test $gl_have_mmap_anonymous = yes; then
10221 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10231 if test $HAVE_MEMCHR = 1; then
10232 # Detect platform-specific bugs in some versions of glibc:
10233 # memchr should not dereference anything with length 0
10234 # http://bugzilla.redhat.com/499689
10235 # memchr should not dereference overestimated length after a match
10236 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10237 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10238 # Assume that memchr works on platforms that lack mprotect.
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10240 $as_echo_n "checking whether memchr works... " >&6; }
10241 if test "${gl_cv_func_memchr_works+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 if test "$cross_compiling" = yes; then :
10245 gl_cv_func_memchr_works="guessing no"
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10250 #include <string.h>
10251 #if HAVE_SYS_MMAN_H
10252 # include <fcntl.h>
10253 # include <unistd.h>
10254 # include <sys/types.h>
10255 # include <sys/mman.h>
10257 # define MAP_FILE 0
10266 char *fence = NULL;
10267 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10268 # if HAVE_MAP_ANONYMOUS
10269 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10271 # else /* !HAVE_MAP_ANONYMOUS */
10272 const int flags = MAP_FILE | MAP_PRIVATE;
10273 int fd = open ("/dev/zero", O_RDONLY, 0666);
10277 int pagesize = getpagesize ();
10279 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10281 if (two_pages != (char *)(-1)
10282 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10283 fence = two_pages + pagesize;
10288 if (memchr (fence, 0, 0))
10290 strcpy (fence - 9, "12345678");
10291 if (memchr (fence - 9, 0, 79) != fence - 1)
10293 if (memchr (fence - 1, 0, 3) != fence - 1)
10302 if ac_fn_c_try_run "$LINENO"; then :
10303 gl_cv_func_memchr_works=yes
10305 gl_cv_func_memchr_works=no
10307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10308 conftest.$ac_objext conftest.beam conftest.$ac_ext
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10313 $as_echo "$gl_cv_func_memchr_works" >&6; }
10314 if test "$gl_cv_func_memchr_works" != yes; then
10319 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10320 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10326 cat >>confdefs.h <<_ACEOF
10327 #define HAVE_DECL_MEMMEM $ac_have_decl
10334 for ac_func in memmem
10336 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10337 if test "x$ac_cv_func_memmem" = x""yes; then :
10338 cat >>confdefs.h <<_ACEOF
10339 #define HAVE_MEMMEM 1
10345 if test $ac_cv_func_memmem = yes; then
10351 if test $ac_cv_have_decl_memmem = no; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10355 $as_echo_n "checking whether memmem works... " >&6; }
10356 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10359 if test "$cross_compiling" = yes; then :
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10363 #ifdef __GNU_LIBRARY__
10364 #include <features.h>
10365 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10366 || __GLIBC_MINOR__ > 12)) \
10367 || (__GLIBC__ > 2)) \
10368 || defined __UCLIBC__
10371 #elif defined __CYGWIN__
10372 #include <cygwin/version.h>
10373 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10382 $EGREP "Lucky user" >/dev/null 2>&1; then :
10383 gl_cv_func_memmem_works_always="guessing yes"
10385 gl_cv_func_memmem_works_always="guessing no"
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10394 #include <string.h> /* for memmem */
10395 #define P "_EF_BF_BD"
10396 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10397 #define NEEDLE P P P P P
10404 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10406 /* Check for empty needle behavior. */
10408 const char *haystack = "AAA";
10409 if (memmem (haystack, 3, NULL, 0) != haystack)
10418 if ac_fn_c_try_run "$LINENO"; then :
10419 gl_cv_func_memmem_works_always=yes
10421 gl_cv_func_memmem_works_always=no
10423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10424 conftest.$ac_objext conftest.beam conftest.$ac_ext
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10430 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10431 case "$gl_cv_func_memmem_works_always" in
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10441 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10442 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10448 #include <stdbool.h>
10450 "error: bool is not defined"
10453 "error: false is not defined"
10456 "error: false is not 0"
10459 "error: true is not defined"
10462 "error: true is not 1"
10464 #ifndef __bool_true_false_are_defined
10465 "error: __bool_true_false_are_defined is not defined"
10468 struct s { _Bool s: 1; _Bool t; } s;
10470 char a[true == 1 ? 1 : -1];
10471 char b[false == 0 ? 1 : -1];
10472 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10473 char d[(bool) 0.5 == true ? 1 : -1];
10474 /* See body of main program for 'e'. */
10475 char f[(_Bool) 0.0 == false ? 1 : -1];
10477 char h[sizeof (_Bool)];
10478 char i[sizeof s.t];
10479 enum { j = false, k = true, l = false * true, m = true * 256 };
10480 /* The following fails for
10481 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10483 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10484 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10485 /* Catch a bug in an HP-UX C compiler. See
10486 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10487 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10499 /* Refer to every declared value, to avoid compiler optimizations. */
10500 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10501 + !m + !n + !o + !p + !q + !pq);
10507 if ac_fn_c_try_compile "$LINENO"; then :
10508 ac_cv_header_stdbool_h=yes
10510 ac_cv_header_stdbool_h=no
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10515 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10516 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10517 if test "x$ac_cv_type__Bool" = x""yes; then :
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE__BOOL 1
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10533 $as_echo_n "checking for wchar_t... " >&6; }
10534 if test "${gt_cv_c_wchar_t+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10539 #include <stddef.h>
10540 wchar_t foo = (wchar_t)'\0';
10549 if ac_fn_c_try_compile "$LINENO"; then :
10550 gt_cv_c_wchar_t=yes
10554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10557 $as_echo "$gt_cv_c_wchar_t" >&6; }
10558 if test $gt_cv_c_wchar_t = yes; then
10560 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10565 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10566 if test "${ac_cv_c_restrict+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10569 ac_cv_c_restrict=no
10570 # The order here caters to the fact that C++ does not require restrict.
10571 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10574 typedef int * int_ptr;
10575 int foo (int_ptr $ac_kw ip) {
10582 int * $ac_kw t = s;
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590 ac_cv_c_restrict=$ac_kw
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 test "$ac_cv_c_restrict" != no && break
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10598 $as_echo "$ac_cv_c_restrict" >&6; }
10600 case $ac_cv_c_restrict in
10602 no) $as_echo "#define restrict /**/" >>confdefs.h
10604 *) cat >>confdefs.h <<_ACEOF
10605 #define restrict $ac_cv_c_restrict
10621 if test $gl_cv_have_include_next = yes; then
10622 gl_cv_next_string_h='<'string.h'>'
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10625 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10626 if test "${gl_cv_next_string_h+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <string.h>
10636 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10637 *) gl_absname_cpp="$ac_cpp" ;;
10642 gl_dirsep_regex='[/\\]'
10645 gl_dirsep_regex='\/'
10648 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10650 gl_header_literal_regex=`echo 'string.h' \
10651 |
sed -e "$gl_make_literal_regex_sed"`
10652 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10653 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10658 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10659 sed -n "$gl_absolute_header_sed"`'"'
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10664 $as_echo "$gl_cv_next_string_h" >&6; }
10666 NEXT_STRING_H=$gl_cv_next_string_h
10668 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10669 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10670 gl_next_as_first_directive='<'string.h'>'
10672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10673 gl_next_as_first_directive=$gl_cv_next_string_h
10675 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10682 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
10683 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10685 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10686 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10687 $as_echo_n "(cached) " >&6
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10691 #include <string.h>
10702 if ac_fn_c_try_compile "$LINENO"; then :
10703 eval "$as_gl_Symbol=yes"
10705 eval "$as_gl_Symbol=no"
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10709 eval ac_res=\$$as_gl_Symbol
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10711 $as_echo "$ac_res" >&6; }
10712 eval as_val=\$$as_gl_Symbol
10713 if test "x$as_val" = x""yes; then :
10714 cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
10718 eval ac_cv_have_decl_$gl_func=yes
10726 if test "$gl_cv_func_memchr_works" != yes; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10730 $as_echo_n "checking whether strstr works... " >&6; }
10731 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10734 if test "$cross_compiling" = yes; then :
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 #ifdef __GNU_LIBRARY__
10739 #include <features.h>
10740 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
10741 || defined __UCLIBC__
10744 #elif defined __CYGWIN__
10745 #include <cygwin/version.h>
10746 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755 $EGREP "Lucky user" >/dev/null 2>&1; then :
10756 gl_cv_func_strstr_works_always="guessing yes"
10758 gl_cv_func_strstr_works_always="guessing no"
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10767 #include <string.h> /* for strstr */
10768 #define P "_EF_BF_BD"
10769 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10770 #define NEEDLE P P P P P
10775 return !!strstr (HAYSTACK, NEEDLE);
10781 if ac_fn_c_try_run "$LINENO"; then :
10782 gl_cv_func_strstr_works_always=yes
10784 gl_cv_func_strstr_works_always=no
10786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10787 conftest.$ac_objext conftest.beam conftest.$ac_ext
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
10793 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
10794 case "$gl_cv_func_strstr_works_always" in
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10803 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10804 if test "${ac_cv_header_stat_broken+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809 #include <sys/types.h>
10810 #include <sys/stat.h>
10812 #if defined S_ISBLK && defined S_IFDIR
10813 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10816 #if defined S_ISBLK && defined S_IFCHR
10817 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10820 #if defined S_ISLNK && defined S_IFREG
10821 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10824 #if defined S_ISSOCK && defined S_IFREG
10825 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10829 if ac_fn_c_try_compile "$LINENO"; then :
10830 ac_cv_header_stat_broken=no
10832 ac_cv_header_stat_broken=yes
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10837 $as_echo "$ac_cv_header_stat_broken" >&6; }
10838 if test $ac_cv_header_stat_broken = yes; then
10840 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10846 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10847 if test "x$ac_cv_type_mode_t" = x""yes; then :
10851 cat >>confdefs.h <<_ACEOF
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10859 if test -z "$MKDIR_P"; then
10860 if test "${ac_cv_path_mkdir+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10867 test -z "$as_dir" && as_dir=.
10868 for ac_prog in mkdir gmkdir; do
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10872 'mkdir (GNU coreutils) '* | \
10873 'mkdir (coreutils) '* | \
10874 'mkdir (fileutils) '4.1*)
10875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10885 if test "${ac_cv_path_mkdir+set}" = set; then
10886 MKDIR_P="$ac_cv_path_mkdir -p"
10888 # As a last resort, use the slow shell script. Don't cache a
10889 # value for MKDIR_P within a source directory, because that will
10890 # break other packages using the cache if that directory is
10891 # removed, or if the value is a relative name.
10892 test -d ./--version && rmdir ./--version
10893 MKDIR_P="$ac_install_sh -d"
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10897 $as_echo "$MKDIR_P" >&6; }
10901 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10902 if test "x$ac_cv_type_pid_t" = x""yes; then :
10906 cat >>confdefs.h <<_ACEOF
10920 GNULIB_NANOSLEEP=0;
10924 HAVE_DECL_LOCALTIME_R=1;
10928 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10929 REPLACE_MKTIME=GNULIB_PORTCHECK;
10930 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10931 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10938 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10939 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10949 static struct timespec x; x.tv_sec = x.tv_nsec;
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 gl_cv_sys_struct_timespec_in_time_h=yes
10957 gl_cv_sys_struct_timespec_in_time_h=no
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10962 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10964 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10965 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10966 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10967 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10968 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10971 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10972 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977 #include <sys/time.h>
10982 static struct timespec x; x.tv_sec = x.tv_nsec;
10987 if ac_fn_c_try_compile "$LINENO"; then :
10988 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10990 gl_cv_sys_struct_timespec_in_sys_time_h=no
10992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10995 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10996 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10997 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11000 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11001 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #include <pthread.h>
11011 static struct timespec x; x.tv_sec = x.tv_nsec;
11016 if ac_fn_c_try_compile "$LINENO"; then :
11017 gl_cv_sys_struct_timespec_in_pthread_h=yes
11019 gl_cv_sys_struct_timespec_in_pthread_h=no
11021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11024 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11025 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11026 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11045 if test $gl_cv_have_include_next = yes; then
11046 gl_cv_next_time_h='<'time.h'>'
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11049 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11050 if test "${gl_cv_next_time_h+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11061 *) gl_absname_cpp="$ac_cpp" ;;
11066 gl_dirsep_regex='[/\\]'
11069 gl_dirsep_regex='\/'
11072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11074 gl_header_literal_regex=`echo 'time.h' \
11075 |
sed -e "$gl_make_literal_regex_sed"`
11076 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11077 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11082 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11083 sed -n "$gl_absolute_header_sed"`'"'
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11088 $as_echo "$gl_cv_next_time_h" >&6; }
11090 NEXT_TIME_H=$gl_cv_next_time_h
11092 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11094 gl_next_as_first_directive='<'time.h'>'
11096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11097 gl_next_as_first_directive=$gl_cv_next_time_h
11099 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11108 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11109 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11110 $as_echo_n "(cached) " >&6
11112 gl_cv_header_wchar_h_correct_inline=yes
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11116 #define wcstod renamed_wcstod
11117 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11120 included before <wchar.h>. */
11121 #include <stddef.h>
11125 extern int zero (void);
11126 int main () { return zero(); }
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11130 (eval $ac_compile) 2>&5
11132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; }; then
11134 mv conftest.$ac_objext conftest1.$ac_objext
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11138 #define wcstod renamed_wcstod
11139 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11141 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11142 included before <wchar.h>. */
11143 #include <stddef.h>
11147 int zero (void) { return 0; }
11150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11151 (eval $ac_compile) 2>&5
11153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11154 test $ac_status = 0; }; then
11155 mv conftest.$ac_objext conftest2.$ac_objext
11156 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11159 gl_cv_header_wchar_h_correct_inline=no
11163 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11167 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11168 if test $gl_cv_header_wchar_h_correct_inline = no; then
11169 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11170 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11171 C99 mode. You have four options:
11172 - Add the flag -fgnu89-inline to CC and reconfigure, or
11173 - Fix your include files, using parts of
11174 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11175 - Use a gcc version older than 4.3, or
11176 - Don't use the flags -std=c99 or -std=gnu99.
11177 Configuration aborted." "$LINENO" 5
11184 if test $ac_cv_header_features_h = yes; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11193 $as_echo_n "checking for wint_t... " >&6; }
11194 if test "${gt_cv_c_wint_t+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11202 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11203 before <wchar.h>. */
11204 #include <stddef.h>
11208 wint_t foo = (wchar_t)'\0';
11217 if ac_fn_c_try_compile "$LINENO"; then :
11222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11225 $as_echo "$gt_cv_c_wint_t" >&6; }
11226 if test $gt_cv_c_wint_t = yes; then
11228 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11237 GNULIB_TOWCTRANS=0;
11241 REPLACE_ISWBLANK=0;
11247 GL_COND_LIBTOOL_TRUE=
11248 GL_COND_LIBTOOL_FALSE='#'
11250 GL_COND_LIBTOOL_TRUE='#'
11251 GL_COND_LIBTOOL_FALSE=
11254 gl_cond_libtool=false
11257 gl_m4_base='import/m4'
11267 gl_source_base='import'
11270 if test $ac_cv_func_alloca_works = no; then
11274 # Define an additional variable used in the Makefile substitution.
11275 if test $ac_cv_working_alloca_h = yes; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11277 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11278 if test "${gl_cv_rpl_alloca+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11291 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11292 gl_cv_rpl_alloca=yes
11294 gl_cv_rpl_alloca=no
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11301 $as_echo "$gl_cv_rpl_alloca" >&6; }
11302 if test $gl_cv_rpl_alloca = yes; then
11304 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11314 if test -n "$ALLOCA_H"; then
11315 GL_GENERATE_ALLOCA_H_TRUE=
11316 GL_GENERATE_ALLOCA_H_FALSE='#'
11318 GL_GENERATE_ALLOCA_H_TRUE='#'
11319 GL_GENERATE_ALLOCA_H_FALSE=
11326 if test $ac_cv_func_canonicalize_file_name = no; then
11327 HAVE_CANONICALIZE_FILE_NAME=0
11328 if test $ac_cv_func_realpath = no; then
11331 case "$gl_cv_func_realpath_works" in
11333 *) REPLACE_REALPATH=1 ;;
11337 case "$gl_cv_func_realpath_works" in
11341 REPLACE_CANONICALIZE_FILE_NAME=1
11347 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
11356 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
11361 cat >>confdefs.h <<_ACEOF
11362 #define GNULIB_CANONICALIZE_LGPL 1
11371 GNULIB_CANONICALIZE_FILE_NAME=1
11377 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
11392 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
11397 if test "x$datarootdir" = x; then
11398 datarootdir='${datadir}'
11401 if test "x$docdir" = x; then
11402 docdir='${datarootdir}/doc/${PACKAGE}'
11405 if test "x$htmldir" = x; then
11406 htmldir='${docdir}'
11409 if test "x$dvidir" = x; then
11413 if test "x$pdfdir" = x; then
11417 if test "x$psdir" = x; then
11421 if test "x$lispdir" = x; then
11422 lispdir='${datarootdir}/emacs/site-lisp'
11425 if test "x$localedir" = x; then
11426 localedir='${datarootdir}/locale'
11430 pkglibexecdir='${libexecdir}/${PACKAGE}'
11445 if test $gl_cv_have_include_next = yes; then
11446 gl_cv_next_dirent_h='<'dirent.h'>'
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
11449 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
11450 if test "${gl_cv_next_dirent_h+set}" = set; then :
11451 $as_echo_n "(cached) " >&6
11454 if test $ac_cv_header_dirent_h = yes; then
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459 #include <dirent.h>
11463 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11464 *) gl_absname_cpp="$ac_cpp" ;;
11469 gl_dirsep_regex='[/\\]'
11472 gl_dirsep_regex='\/'
11475 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11477 gl_header_literal_regex=`echo 'dirent.h' \
11478 |
sed -e "$gl_make_literal_regex_sed"`
11479 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11480 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11485 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11486 sed -n "$gl_absolute_header_sed"`'"'
11488 gl_cv_next_dirent_h='<'dirent.h'>'
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
11494 $as_echo "$gl_cv_next_dirent_h" >&6; }
11496 NEXT_DIRENT_H=$gl_cv_next_dirent_h
11498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11500 gl_next_as_first_directive='<'dirent.h'>'
11502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11503 gl_next_as_first_directive=$gl_cv_next_dirent_h
11505 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
11510 if test $ac_cv_header_dirent_h = yes; then
11518 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
11519 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11521 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11522 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11523 $as_echo_n "(cached) " >&6
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11527 #include <dirent.h>
11538 if ac_fn_c_try_compile "$LINENO"; then :
11539 eval "$as_gl_Symbol=yes"
11541 eval "$as_gl_Symbol=no"
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 eval ac_res=\$$as_gl_Symbol
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11547 $as_echo "$ac_res" >&6; }
11548 eval as_val=\$$as_gl_Symbol
11549 if test "x$as_val" = x""yes; then :
11550 cat >>confdefs.h <<_ACEOF
11551 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11554 eval ac_cv_have_decl_$gl_func=yes
11564 for ac_func in dirfd
11566 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11567 if test "x$ac_cv_func_dirfd" = x""yes; then :
11568 cat >>confdefs.h <<_ACEOF
11569 #define HAVE_DIRFD 1
11575 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11576 #include <dirent.h>
11578 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_DECL_DIRFD $ac_have_decl
11588 if test $ac_cv_have_decl_dirfd = no; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11593 $as_echo_n "checking whether dirfd is a macro... " >&6; }
11594 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11600 #include <sys/types.h>
11601 #include <dirent.h>
11603 dirent_header_defines_dirfd
11606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11607 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11608 gl_cv_func_dirfd_macro=yes
11610 gl_cv_func_dirfd_macro=no
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11616 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
11618 # Use the replacement only if we have no function or macro with that name.
11619 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11620 if test $ac_cv_have_decl_dirfd = yes; then
11621 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11626 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11635 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11639 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11640 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11644 dirfd_save_CFLAGS=$CFLAGS
11645 for ac_expr in d_fd dd_fd; do
11647 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11651 #include <sys/types.h>
11652 #include <dirent.h>
11656 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11661 if ac_fn_c_try_compile "$LINENO"; then :
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 CFLAGS=$dirfd_save_CFLAGS
11667 test "$dir_fd_found" = yes && break
11669 test "$dir_fd_found" = yes || ac_expr=no_such_member
11671 gl_cv_sys_dir_fd_member_name=$ac_expr
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11676 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11677 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11679 cat >>confdefs.h <<_ACEOF
11680 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11698 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11708 REPLACE_FLOAT_LDBL=0
11710 aix* | beos* | openbsd* | mirbsd* | irix*)
11714 case "$host_cpu" in
11719 # On x86_64 systems, the C compiler may still be generating
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
11727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11728 $EGREP "yes" >/dev/null 2>&1; then :
11739 case "$host_cpu" in
11747 aix* | freebsd* | linux*)
11748 if test -n "$FLOAT_H"; then
11749 REPLACE_FLOAT_LDBL=1
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
11756 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
11757 if test "${gl_cv_func_itold_works+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11761 if test "$cross_compiling" = yes; then :
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766 #if defined __LP64__ || defined __arch64__
11770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 $EGREP "yes" >/dev/null 2>&1; then :
11772 gl_cv_func_itold_works="guessing no"
11774 gl_cv_func_itold_works="guessing yes"
11779 *) gl_cv_func_itold_works="guessing yes" ;;
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11787 volatile long double ld;
11796 if ac_fn_c_try_run "$LINENO"; then :
11797 gl_cv_func_itold_works=yes
11799 gl_cv_func_itold_works=no
11801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11802 conftest.$ac_objext conftest.beam conftest.$ac_ext
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
11808 $as_echo "$gl_cv_func_itold_works" >&6; }
11809 case "$gl_cv_func_itold_works" in
11816 if test -n "$FLOAT_H"; then
11825 if test $gl_cv_have_include_next = yes; then
11826 gl_cv_next_float_h='<'float.h'>'
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
11829 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11830 if test "${gl_cv_next_float_h+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11840 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11841 *) gl_absname_cpp="$ac_cpp" ;;
11846 gl_dirsep_regex='[/\\]'
11849 gl_dirsep_regex='\/'
11852 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11854 gl_header_literal_regex=`echo 'float.h' \
11855 |
sed -e "$gl_make_literal_regex_sed"`
11856 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11857 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11862 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11863 sed -n "$gl_absolute_header_sed"`'"'
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11868 $as_echo "$gl_cv_next_float_h" >&6; }
11870 NEXT_FLOAT_H=$gl_cv_next_float_h
11872 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11873 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11874 gl_next_as_first_directive='<'float.h'>'
11876 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11877 gl_next_as_first_directive=$gl_cv_next_float_h
11879 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11886 if test -n "$FLOAT_H"; then
11887 GL_GENERATE_FLOAT_H_TRUE=
11888 GL_GENERATE_FLOAT_H_FALSE='#'
11890 GL_GENERATE_FLOAT_H_TRUE='#'
11891 GL_GENERATE_FLOAT_H_FALSE=
11896 if test $REPLACE_FLOAT_LDBL = 1; then
11905 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11908 if test $REPLACE_ITOLD = 1; then
11917 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11926 gl_fnmatch_required_lowercase=`
11927 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
11929 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11931 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11932 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11933 $as_echo_n "(cached) " >&6
11935 if test $gl_fnmatch_required = GNU; then
11936 gl_fnmatch_gnu_start=
11937 gl_fnmatch_gnu_end=
11939 gl_fnmatch_gnu_start='#if 0'
11940 gl_fnmatch_gnu_end='#endif'
11942 if test "$cross_compiling" = yes; then :
11943 eval "$gl_fnmatch_cache_var=\"guessing no\""
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 #include <fnmatch.h>
11949 y (char const *pattern, char const *string, int flags)
11951 return fnmatch (pattern, string, flags) == 0;
11954 n (char const *pattern, char const *string, int flags)
11956 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11962 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11963 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11964 static char const A_1[] = { 'A' - 1, 0 };
11965 static char const A01[] = { 'A' + 1, 0 };
11966 static char const a_1[] = { 'a' - 1, 0 };
11967 static char const a01[] = { 'a' + 1, 0 };
11968 static char const bs_1[] = { '\\\\' - 1, 0 };
11969 static char const bs01[] = { '\\\\' + 1, 0 };
11971 if (!n ("a*", "", 0))
11973 if (!y ("a*", "abc", 0))
11975 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11977 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11979 if (!y ("a\\\\bc", "abc", 0))
11981 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11983 if (!y ("*x", ".x", 0))
11985 if (!n ("*x", ".x", FNM_PERIOD))
11987 if (!y (Apat, "\\\\", 0))
11989 if (!y (Apat, "A", 0))
11991 if (!y (apat, "\\\\", 0))
11993 if (!y (apat, "a", 0))
11995 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11997 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11999 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12001 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12003 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12005 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12007 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12009 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12011 $gl_fnmatch_gnu_start
12012 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12014 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12016 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12018 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12020 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12022 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12024 $gl_fnmatch_gnu_end
12031 if ac_fn_c_try_run "$LINENO"; then :
12032 eval "$gl_fnmatch_cache_var=yes"
12034 eval "$gl_fnmatch_cache_var=no"
12036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12037 conftest.$ac_objext conftest.beam conftest.$ac_ext
12042 eval ac_res=\$$gl_fnmatch_cache_var
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12044 $as_echo "$ac_res" >&6; }
12045 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12046 if test "$gl_fnmatch_result" = yes; then
12047 rm -f "$gl_source_base/fnmatch.h"
12049 FNMATCH_H=fnmatch.h
12052 if test -n "$FNMATCH_H"; then
12053 GL_GENERATE_FNMATCH_H_TRUE=
12054 GL_GENERATE_FNMATCH_H_FALSE='#'
12056 GL_GENERATE_FNMATCH_H_TRUE='#'
12057 GL_GENERATE_FNMATCH_H_FALSE=
12061 if test -n "$FNMATCH_H"; then
12070 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12074 cat >>confdefs.h <<_ACEOF
12075 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12079 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12081 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12087 cat >>confdefs.h <<_ACEOF
12088 #define HAVE_DECL_ISBLANK $ac_have_decl
12100 if test -n "$FNMATCH_H"; then
12109 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12113 cat >>confdefs.h <<_ACEOF
12114 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12118 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12120 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12126 cat >>confdefs.h <<_ACEOF
12127 #define HAVE_DECL_ISBLANK $ac_have_decl
12138 if test $gl_cv_func_frexp_no_libm = no; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12140 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12141 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12154 int e; return frexp (x, &e) > 0;
12159 if ac_fn_c_try_link "$LINENO"; then :
12160 gl_cv_func_frexp_in_libm=yes
12162 gl_cv_func_frexp_in_libm=no
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12170 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12171 if test $gl_cv_func_frexp_in_libm = yes; then
12175 if test $gl_cv_func_frexp_no_libm = yes \
12176 || test $gl_cv_func_frexp_in_libm = yes; then
12178 LIBS="$LIBS $FREXP_LIBM"
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
12183 $as_echo_n "checking whether frexp works... " >&6; }
12184 if test "${gl_cv_func_frexp_works+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12188 if test "$cross_compiling" = yes; then :
12190 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
12191 *) gl_cv_func_frexp_works="guessing yes";;
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12200 #include <string.h>
12202 # include <unistd.h>
12204 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
12205 ICC 10.0 has a bug when optimizing the expression -zero.
12206 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
12207 to PowerPC on Mac OS X 10.5. */
12208 #if defined __hpux || defined __sgi || defined __ICC
12210 compute_minus_zero (void)
12212 return -DBL_MIN * DBL_MIN;
12214 # define minus_zero compute_minus_zero ()
12216 double minus_zero = -0.0;
12225 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
12226 number. Let the test fail in this case. */
12229 /* Test on denormalized numbers. */
12230 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
12235 double y = frexp (x, &exp);
12236 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
12237 On NetBSD: y = 0.75. Correct: y = 0.5. */
12241 /* Test on infinite numbers. */
12245 double y = frexp (x, &exp);
12249 /* Test on negative zero. */
12253 double y = frexp (x, &exp);
12254 if (memcmp (&y, &x, sizeof x))
12260 if ac_fn_c_try_run "$LINENO"; then :
12261 gl_cv_func_frexp_works=yes
12263 gl_cv_func_frexp_works=no
12265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12266 conftest.$ac_objext conftest.beam conftest.$ac_ext
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
12272 $as_echo "$gl_cv_func_frexp_works" >&6; }
12275 case "$gl_cv_func_frexp_works" in
12276 *yes) gl_func_frexp=yes ;;
12277 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
12282 if test $gl_func_frexp = yes; then
12284 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
12289 if test $gl_func_frexp != yes; then
12298 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
12312 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
12322 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
12324 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
12332 if test $HAVE_DECL_FREXPL = 1; then
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
12335 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
12336 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
12337 $as_echo_n "(cached) " >&6
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12347 int e; return frexpl (x, &e) > 0;
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 gl_cv_func_frexpl_no_libm=yes
12355 gl_cv_func_frexpl_no_libm=no
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
12362 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
12364 if test $gl_cv_func_frexpl_no_libm = no; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
12366 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
12367 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12380 int e; return frexpl (x, &e) > 0;
12385 if ac_fn_c_try_link "$LINENO"; then :
12386 gl_cv_func_frexpl_in_libm=yes
12388 gl_cv_func_frexpl_in_libm=no
12390 rm -f core conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
12396 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
12397 if test $gl_cv_func_frexpl_in_libm = yes; then
12401 if test $gl_cv_func_frexpl_no_libm = yes \
12402 || test $gl_cv_func_frexpl_in_libm = yes; then
12404 LIBS="$LIBS $FREXPL_LIBM"
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
12408 $as_echo_n "checking whether frexpl works... " >&6; }
12409 if test "${gl_cv_func_frexpl_works+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12413 if test "$cross_compiling" = yes; then :
12416 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
12417 gl_cv_func_frexpl_works="guessing no";;
12418 *) gl_cv_func_frexpl_works="guessing yes";;
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12427 /* Override the values of <float.h>, like done in float.in.h. */
12428 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
12429 # undef LDBL_MIN_EXP
12430 # define LDBL_MIN_EXP (-16381)
12432 #if defined __i386__ && defined __FreeBSD__
12433 # undef LDBL_MIN_EXP
12434 # define LDBL_MIN_EXP (-16381)
12436 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
12437 # undef LDBL_MIN_EXP
12438 # define LDBL_MIN_EXP DBL_MIN_EXP
12440 #if defined __sgi && (LDBL_MANT_DIG >= 106)
12441 # if defined __GNUC__
12442 # undef LDBL_MIN_EXP
12443 # define LDBL_MIN_EXP DBL_MIN_EXP
12450 long double frexpl (long double, int *);
12454 volatile long double x;
12455 /* Test on finite numbers that fails on AIX 5.1. */
12463 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
12464 function returns an invalid (incorrectly normalized) value: it returns
12465 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
12466 but the correct result is
12467 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
12471 long double y = frexpl (x, &exp);
12472 if (!(exp == 1 && y == 0.505L))
12475 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
12476 LDBL_MAX_EXP = 16384.
12477 In the loop end test, we test x against Infinity, rather than comparing
12478 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
12481 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
12492 /* Test on denormalized numbers. */
12495 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
12500 long double y = frexpl (x, &exp);
12501 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
12502 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
12503 if (exp != LDBL_MIN_EXP - 1)
12507 /* Test on infinite numbers. */
12511 long double y = frexpl (x, &exp);
12518 if ac_fn_c_try_run "$LINENO"; then :
12519 gl_cv_func_frexpl_works=yes
12521 gl_cv_func_frexpl_works=no
12523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12524 conftest.$ac_objext conftest.beam conftest.$ac_ext
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
12530 $as_echo "$gl_cv_func_frexpl_works" >&6; }
12533 case "$gl_cv_func_frexpl_works" in
12534 *yes) gl_func_frexpl=yes ;;
12535 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
12540 if test $gl_func_frexpl = yes; then
12542 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12546 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12547 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12549 FREXPL_LIBM="$FREXP_LIBM"
12556 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12565 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12579 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12589 if test -n "$STDINT_H"; then
12590 PRIPTR_PREFIX='"l"'
12592 for glpfx in '' l ll I64; do
12594 '') gltype1='int';;
12595 l) gltype1='long int';;
12596 ll) gltype1='long long int';;
12597 I64) gltype1='__int64';;
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12601 #include <stdint.h>
12602 extern intptr_t foo;
12603 extern $gltype1 foo;
12612 if ac_fn_c_try_compile "$LINENO"; then :
12613 PRIPTR_PREFIX='"'$glpfx'"'
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 test -n "$PRIPTR_PREFIX" && break
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12623 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12624 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h. */
12629 /* Work also in C++ mode. */
12630 #define __STDC_LIMIT_MACROS 1
12632 /* Work if build is not clean. */
12633 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12635 #include <limits.h>
12637 #include <stdint.h>
12640 #if defined INT32_MAX && defined INTMAX_MAX
12641 #define CONDITION (INT32_MAX < INTMAX_MAX)
12642 #elif HAVE_LONG_LONG_INT
12643 #define CONDITION (sizeof (int) < sizeof (long long int))
12645 #define CONDITION 0
12647 int test[CONDITION ? 1 : -1];
12656 if ac_fn_c_try_compile "$LINENO"; then :
12657 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12659 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12664 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12665 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12666 INT32_MAX_LT_INTMAX_MAX=1;
12668 INT32_MAX_LT_INTMAX_MAX=0;
12672 if test $APPLE_UNIVERSAL_BUILD = 0; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
12675 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
12676 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12681 /* Work also in C++ mode. */
12682 #define __STDC_LIMIT_MACROS 1
12684 /* Work if build is not clean. */
12685 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12687 #include <limits.h>
12689 #include <stdint.h>
12692 #if defined INT64_MAX
12693 #define CONDITION (INT64_MAX == LONG_MAX)
12694 #elif HAVE_LONG_LONG_INT
12695 #define CONDITION (sizeof (long long int) == sizeof (long int))
12697 #define CONDITION 0
12699 int test[CONDITION ? 1 : -1];
12708 if ac_fn_c_try_compile "$LINENO"; then :
12709 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
12711 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
12716 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
12717 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
12718 INT64_MAX_EQ_LONG_MAX=1;
12720 INT64_MAX_EQ_LONG_MAX=0;
12725 INT64_MAX_EQ_LONG_MAX=-1
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
12729 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
12730 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 /* Work also in C++ mode. */
12736 #define __STDC_LIMIT_MACROS 1
12738 /* Work if build is not clean. */
12739 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12741 #include <limits.h>
12743 #include <stdint.h>
12746 #if defined UINT32_MAX && defined UINTMAX_MAX
12747 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
12748 #elif HAVE_LONG_LONG_INT
12749 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
12751 #define CONDITION 0
12753 int test[CONDITION ? 1 : -1];
12762 if ac_fn_c_try_compile "$LINENO"; then :
12763 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
12765 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
12770 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
12771 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
12772 UINT32_MAX_LT_UINTMAX_MAX=1;
12774 UINT32_MAX_LT_UINTMAX_MAX=0;
12778 if test $APPLE_UNIVERSAL_BUILD = 0; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
12781 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
12782 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786 /* end confdefs.h. */
12787 /* Work also in C++ mode. */
12788 #define __STDC_LIMIT_MACROS 1
12790 /* Work if build is not clean. */
12791 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12793 #include <limits.h>
12795 #include <stdint.h>
12798 #if defined UINT64_MAX
12799 #define CONDITION (UINT64_MAX == ULONG_MAX)
12800 #elif HAVE_LONG_LONG_INT
12801 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
12803 #define CONDITION 0
12805 int test[CONDITION ? 1 : -1];
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
12817 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
12822 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
12823 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
12824 UINT64_MAX_EQ_ULONG_MAX=1;
12826 UINT64_MAX_EQ_ULONG_MAX=0;
12831 UINT64_MAX_EQ_ULONG_MAX=-1
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
12839 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
12840 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12849 # define isnand(x) __builtin_isnan ((double)(x))
12852 # define isnand(x) isnan ((double)(x))
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 gl_cv_func_isnand_no_libm=yes
12866 gl_cv_func_isnand_no_libm=no
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12873 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12875 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12876 if test $gl_cv_func_isnand_no_libm = yes; then
12878 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12882 if test $gl_func_isnand_no_libm != yes; then
12891 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12900 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12901 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12910 # define isnanl(x) __builtin_isnanl ((long double)(x))
12911 #elif defined isnan
12913 # define isnanl(x) isnan ((long double)(x))
12924 if ac_fn_c_try_link "$LINENO"; then :
12925 gl_cv_func_isnanl_no_libm=yes
12927 gl_cv_func_isnanl_no_libm=no
12929 rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12934 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12936 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12937 if test $gl_func_isnanl_no_libm = yes; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12943 $as_echo_n "checking whether isnanl works... " >&6; }
12944 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12948 if test "$cross_compiling" = yes; then :
12949 case "$host_cpu" in
12950 # Guess no on ia64, x86_64, i386.
12951 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12954 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12955 *) gl_cv_func_isnanl_works="guessing yes";;
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12965 #include <limits.h>
12969 # define isnanl(x) __builtin_isnanl ((long double)(x))
12970 #elif defined isnan
12972 # define isnanl(x) isnan ((long double)(x))
12975 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12976 typedef union { unsigned int word[NWORDS]; long double value; }
12977 memory_long_double;
12978 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12979 runtime type conversion. */
12981 static long double NaNl ()
12984 return zero / zero;
12987 # define NaNl() (0.0L / 0.0L)
12993 if (!isnanl (NaNl ()))
12997 memory_long_double m;
13000 /* The isnanl function should be immune against changes in the sign bit and
13001 in the mantissa bits. The xor operation twiddles a bit that can only be
13002 a sign bit or a mantissa bit (since the exponent never extends to
13005 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
13006 for (i = 0; i < NWORDS; i++)
13008 if (!isnanl (m.value))
13012 #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
13013 /* Representation of an 80-bit 'long double' as an initializer for a sequence
13014 of 'unsigned int' words. */
13015 # ifdef WORDS_BIGENDIAN
13016 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13017 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
13018 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
13019 (unsigned int) (mantlo) << 16 \
13022 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13023 { mantlo, manthi, exponent }
13026 static memory_long_double x =
13027 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
13028 if (!isnanl (x.value))
13032 /* Signalling NaN. */
13033 static memory_long_double x =
13034 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
13035 if (!isnanl (x.value))
13038 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
13039 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
13040 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
13041 Application Architecture.
13042 Table 5-2 "Floating-Point Register Encodings"
13043 Figure 5-6 "Memory to Floating-Point Register Data Translation"
13045 { /* Pseudo-NaN. */
13046 static memory_long_double x =
13047 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
13048 if (!isnanl (x.value))
13051 { /* Pseudo-Infinity. */
13052 static memory_long_double x =
13053 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
13054 if (!isnanl (x.value))
13057 { /* Pseudo-Zero. */
13058 static memory_long_double x =
13059 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
13060 if (!isnanl (x.value))
13063 { /* Unnormalized number. */
13064 static memory_long_double x =
13065 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
13066 if (!isnanl (x.value))
13069 { /* Pseudo-Denormal. */
13070 static memory_long_double x =
13071 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
13072 if (!isnanl (x.value))
13080 if ac_fn_c_try_run "$LINENO"; then :
13081 gl_cv_func_isnanl_works=yes
13083 gl_cv_func_isnanl_works=no
13085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13086 conftest.$ac_objext conftest.beam conftest.$ac_ext
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
13092 $as_echo "$gl_cv_func_isnanl_works" >&6; }
13094 case "$gl_cv_func_isnanl_works" in
13096 *) gl_func_isnanl_no_libm=no ;;
13099 if test $gl_func_isnanl_no_libm = yes; then
13101 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
13105 if test $gl_func_isnanl_no_libm != yes; then
13114 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
13120 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
13121 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13125 if test "$cross_compiling" = yes; then :
13127 gl_cv_cc_long_double_expbit0="unknown"
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13134 #include <stddef.h>
13136 #include <string.h>
13138 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13139 typedef union { long double value; unsigned int word[NWORDS]; }
13140 memory_long_double;
13141 static unsigned int ored_words[NWORDS];
13142 static unsigned int anded_words[NWORDS];
13143 static void add_to_ored_words (long double x)
13145 memory_long_double m;
13147 /* Clear it first, in case
13148 sizeof (long double) < sizeof (memory_long_double). */
13149 memset (&m, 0, sizeof (memory_long_double));
13151 for (i = 0; i < NWORDS; i++)
13153 ored_words[i] |= m.word[i];
13154 anded_words[i] &= m.word[i];
13160 FILE *fp = fopen ("conftest.out", "w");
13163 for (j = 0; j < NWORDS; j++)
13164 anded_words[j] = ~ (unsigned int) 0;
13165 add_to_ored_words (0.25L);
13166 add_to_ored_words (0.5L);
13167 add_to_ored_words (1.0L);
13168 add_to_ored_words (2.0L);
13169 add_to_ored_words (4.0L);
13170 /* Remove bits that are common (e.g. if representation of the first mantissa
13171 bit is explicit). */
13172 for (j = 0; j < NWORDS; j++)
13173 ored_words[j] &= ~anded_words[j];
13174 /* Now find the nonzero word. */
13175 for (j = 0; j < NWORDS; j++)
13176 if (ored_words[j] != 0)
13181 for (i = j + 1; i < NWORDS; i++)
13182 if (ored_words[i] != 0)
13184 fprintf (fp, "unknown");
13185 return (fclose (fp) != 0);
13188 if ((ored_words[j] >> i) & 1)
13190 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13191 return (fclose (fp) != 0);
13194 fprintf (fp, "unknown");
13195 return (fclose (fp) != 0);
13199 if ac_fn_c_try_run "$LINENO"; then :
13200 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
13202 gl_cv_cc_long_double_expbit0="unknown"
13204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13205 conftest.$ac_objext conftest.beam conftest.$ac_ext
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
13212 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
13213 case "$gl_cv_cc_long_double_expbit0" in
13215 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
13216 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
13218 cat >>confdefs.h <<_ACEOF
13219 #define LDBL_EXPBIT0_WORD $word
13223 cat >>confdefs.h <<_ACEOF
13224 #define LDBL_EXPBIT0_BIT $bit
13242 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
13247 if test $ac_cv_func_lstat = yes; then
13249 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13258 if test $REPLACE_LSTAT = 1; then
13267 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13282 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
13301 if test $gl_cv_have_include_next = yes; then
13302 gl_cv_next_math_h='<'math.h'>'
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
13305 $as_echo_n "checking absolute name of <math.h>... " >&6; }
13306 if test "${gl_cv_next_math_h+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13310 if test $ac_cv_header_math_h = yes; then
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13319 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13320 *) gl_absname_cpp="$ac_cpp" ;;
13325 gl_dirsep_regex='[/\\]'
13328 gl_dirsep_regex='\/'
13331 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13333 gl_header_literal_regex=`echo 'math.h' \
13334 |
sed -e "$gl_make_literal_regex_sed"`
13335 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13336 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13341 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13342 sed -n "$gl_absolute_header_sed"`'"'
13344 gl_cv_next_math_h='<'math.h'>'
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
13350 $as_echo "$gl_cv_next_math_h" >&6; }
13352 NEXT_MATH_H=$gl_cv_next_math_h
13354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13356 gl_next_as_first_directive='<'math.h'>'
13358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13359 gl_next_as_first_directive=$gl_cv_next_math_h
13361 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
13368 $as_echo_n "checking whether NAN macro works... " >&6; }
13369 if test "${gl_cv_header_math_nan_works+set}" = set; then :
13370 $as_echo_n "(cached) " >&6
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13378 /* Solaris 10 has a broken definition of NAN. Other platforms
13379 fail to provide NAN, or provide it only in C99 mode; this
13380 test only needs to fail when NAN is provided but wrong. */
13390 if ac_fn_c_try_compile "$LINENO"; then :
13391 gl_cv_header_math_nan_works=yes
13393 gl_cv_header_math_nan_works=no
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
13398 $as_echo "$gl_cv_header_math_nan_works" >&6; }
13399 if test $gl_cv_header_math_nan_works = no; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
13403 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
13404 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13413 /* Solaris 10 has a broken definition of HUGE_VAL. */
13414 double d = HUGE_VAL;
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421 gl_cv_header_math_huge_val_works=yes
13423 gl_cv_header_math_huge_val_works=no
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
13428 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
13429 if test $gl_cv_header_math_huge_val_works = no; then
13434 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
13435 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13437 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13438 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13439 $as_echo_n "(cached) " >&6
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13453 if ac_fn_c_try_compile "$LINENO"; then :
13454 eval "$as_gl_Symbol=yes"
13456 eval "$as_gl_Symbol=no"
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 eval ac_res=\$$as_gl_Symbol
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13462 $as_echo "$ac_res" >&6; }
13463 eval as_val=\$$as_gl_Symbol
13464 if test "x$as_val" = x""yes; then :
13465 cat >>confdefs.h <<_ACEOF
13466 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13469 eval ac_cv_have_decl_$gl_func=yes
13484 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13489 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13490 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13495 # Guess no on AIX and OSF/1.
13496 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13497 # Guess yes otherwise.
13498 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13500 if test $LOCALE_JA != none; then
13501 if test "$cross_compiling" = yes; then :
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13507 #include <locale.h>
13508 #include <string.h>
13509 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13511 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13512 included before <wchar.h>. */
13513 #include <stddef.h>
13519 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13521 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13525 memset (&state, '\0', sizeof (mbstate_t));
13526 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13527 if (mbsinit (&state))
13533 if ac_fn_c_try_run "$LINENO"; then :
13534 gl_cv_func_mbrtowc_incomplete_state=yes
13536 gl_cv_func_mbrtowc_incomplete_state=no
13538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13539 conftest.$ac_objext conftest.beam conftest.$ac_ext
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13546 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13552 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13553 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13554 $as_echo_n "(cached) " >&6
13558 # Guess no on Solaris 8.
13559 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13560 # Guess yes otherwise.
13561 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13563 if test $LOCALE_ZH_CN != none; then
13564 if test "$cross_compiling" = yes; then :
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13570 #include <locale.h>
13571 #include <stdlib.h>
13572 #include <string.h>
13573 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13575 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13576 included before <wchar.h>. */
13577 #include <stddef.h>
13583 /* This fails on Solaris 8:
13584 mbrtowc returns 2, and sets wc to 0x00F0.
13585 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13586 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13588 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13592 memset (&state, '\0', sizeof (mbstate_t));
13593 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13594 && mbtowc (&wc, input + 3, 6) == 4)
13600 if ac_fn_c_try_run "$LINENO"; then :
13601 gl_cv_func_mbrtowc_sanitycheck=yes
13603 gl_cv_func_mbrtowc_sanitycheck=no
13605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13606 conftest.$ac_objext conftest.beam conftest.$ac_ext
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13613 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13615 REPLACE_MBSTATE_T=0
13616 case "$gl_cv_func_mbrtowc_incomplete_state" in
13618 *) REPLACE_MBSTATE_T=1 ;;
13620 case "$gl_cv_func_mbrtowc_sanitycheck" in
13622 *) REPLACE_MBSTATE_T=1 ;;
13625 REPLACE_MBSTATE_T=1
13630 if test $ac_cv_func_mbrtowc = no; then
13632 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
13633 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13635 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13636 included before <wchar.h>. */
13637 #include <stddef.h>
13643 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
13649 cat >>confdefs.h <<_ACEOF
13650 #define HAVE_DECL_MBRTOWC $ac_have_decl
13653 if test $ac_cv_have_decl_mbrtowc = yes; then
13657 if test $REPLACE_MBSTATE_T = 1; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
13664 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
13665 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13670 # Guess no on Solaris.
13671 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
13672 # Guess yes otherwise.
13673 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
13675 if test $LOCALE_FR_UTF8 != none; then
13676 if test "$cross_compiling" = yes; then :
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13682 #include <locale.h>
13683 #include <stdlib.h>
13684 #include <string.h>
13685 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13687 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13688 included before <wchar.h>. */
13689 #include <stddef.h>
13697 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13699 char input[] = "\303\237er";
13704 memset (&state, '\0', sizeof (mbstate_t));
13705 wc = (wchar_t) 0xBADFACE;
13706 ret = mbrtowc (&wc, input, 5, &state);
13709 if (!mbsinit (&state))
13712 memset (&state, '\0', sizeof (mbstate_t));
13713 ret = mbrtowc (NULL, input, 5, &state);
13714 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
13716 if (!mbsinit (&state))
13722 if ac_fn_c_try_run "$LINENO"; then :
13723 gl_cv_func_mbrtowc_null_arg1=yes
13725 gl_cv_func_mbrtowc_null_arg1=no
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
13735 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
13741 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
13742 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13747 # Guess no on OSF/1.
13748 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
13749 # Guess yes otherwise.
13750 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
13752 if test $LOCALE_FR_UTF8 != none; then
13753 if test "$cross_compiling" = yes; then :
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13759 #include <locale.h>
13760 #include <string.h>
13761 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13763 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13764 included before <wchar.h>. */
13765 #include <stddef.h>
13771 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13777 memset (&state, '\0', sizeof (mbstate_t));
13778 wc = (wchar_t) 0xBADFACE;
13779 mbrtowc (&wc, NULL, 5, &state);
13780 /* Check that wc was not modified. */
13781 if (wc != (wchar_t) 0xBADFACE)
13787 if ac_fn_c_try_run "$LINENO"; then :
13788 gl_cv_func_mbrtowc_null_arg2=yes
13790 gl_cv_func_mbrtowc_null_arg2=no
13792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13793 conftest.$ac_objext conftest.beam conftest.$ac_ext
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
13800 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
13808 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
13809 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13814 # Guess no on HP-UX, Solaris, native Windows.
13815 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
13816 # Guess yes otherwise.
13817 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
13819 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
13820 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
13821 if test "$cross_compiling" = yes; then :
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13827 #include <locale.h>
13828 #include <string.h>
13829 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13832 included before <wchar.h>. */
13833 #include <stddef.h>
13840 int found_some_locale = 0;
13841 /* This fails on Solaris. */
13842 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13844 char input[] = "B\303\274\303\237er"; /* "Büßer" */
13848 memset (&state, '\0', sizeof (mbstate_t));
13849 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13852 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
13855 found_some_locale = 1;
13857 /* This fails on HP-UX 11.11. */
13858 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13860 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13864 memset (&state, '\0', sizeof (mbstate_t));
13865 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13868 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
13871 found_some_locale = 1;
13873 /* This fails on native Windows. */
13874 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
13876 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
13880 memset (&state, '\0', sizeof (mbstate_t));
13881 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13884 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13887 found_some_locale = 1;
13889 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
13891 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
13895 memset (&state, '\0', sizeof (mbstate_t));
13896 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13899 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13902 found_some_locale = 1;
13904 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
13906 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
13910 memset (&state, '\0', sizeof (mbstate_t));
13911 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13914 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13917 found_some_locale = 1;
13919 return (found_some_locale ? result : 77);
13922 if ac_fn_c_try_run "$LINENO"; then :
13923 gl_cv_func_mbrtowc_retval=yes
13925 if test $? != 77; then
13926 gl_cv_func_mbrtowc_retval=no
13930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13931 conftest.$ac_objext conftest.beam conftest.$ac_ext
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13938 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13944 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13945 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13950 # Guess no on Solaris 8 and 9.
13951 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13952 # Guess yes otherwise.
13953 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13955 if test $LOCALE_ZH_CN != none; then
13956 if test "$cross_compiling" = yes; then :
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13962 #include <locale.h>
13963 #include <string.h>
13964 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13966 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13967 included before <wchar.h>. */
13968 #include <stddef.h>
13974 /* This fails on Solaris 8 and 9. */
13975 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13980 memset (&state, '\0', sizeof (mbstate_t));
13981 if (mbrtowc (&wc, "", 1, &state) != 0)
13987 if ac_fn_c_try_run "$LINENO"; then :
13988 gl_cv_func_mbrtowc_nul_retval=yes
13990 gl_cv_func_mbrtowc_nul_retval=no
13992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13993 conftest.$ac_objext conftest.beam conftest.$ac_ext
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
14000 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
14002 case "$gl_cv_func_mbrtowc_null_arg1" in
14005 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
14010 case "$gl_cv_func_mbrtowc_null_arg2" in
14013 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
14018 case "$gl_cv_func_mbrtowc_retval" in
14021 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
14026 case "$gl_cv_func_mbrtowc_nul_retval" in
14029 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
14037 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
14046 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
14063 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
14078 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14083 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14084 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14085 $as_echo_n "(cached) " >&6
14089 # Guess no on AIX and OSF/1.
14090 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14091 # Guess yes otherwise.
14092 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14094 if test $LOCALE_JA != none; then
14095 if test "$cross_compiling" = yes; then :
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14101 #include <locale.h>
14102 #include <string.h>
14103 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14105 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14106 included before <wchar.h>. */
14107 #include <stddef.h>
14113 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14115 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14119 memset (&state, '\0', sizeof (mbstate_t));
14120 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14121 if (mbsinit (&state))
14127 if ac_fn_c_try_run "$LINENO"; then :
14128 gl_cv_func_mbrtowc_incomplete_state=yes
14130 gl_cv_func_mbrtowc_incomplete_state=no
14132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14133 conftest.$ac_objext conftest.beam conftest.$ac_ext
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14140 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14146 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14147 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
14152 # Guess no on Solaris 8.
14153 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14154 # Guess yes otherwise.
14155 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14157 if test $LOCALE_ZH_CN != none; then
14158 if test "$cross_compiling" = yes; then :
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14164 #include <locale.h>
14165 #include <stdlib.h>
14166 #include <string.h>
14167 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14169 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14170 included before <wchar.h>. */
14171 #include <stddef.h>
14177 /* This fails on Solaris 8:
14178 mbrtowc returns 2, and sets wc to 0x00F0.
14179 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14180 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14182 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14186 memset (&state, '\0', sizeof (mbstate_t));
14187 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14188 && mbtowc (&wc, input + 3, 6) == 4)
14194 if ac_fn_c_try_run "$LINENO"; then :
14195 gl_cv_func_mbrtowc_sanitycheck=yes
14197 gl_cv_func_mbrtowc_sanitycheck=no
14199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14200 conftest.$ac_objext conftest.beam conftest.$ac_ext
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14207 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14209 REPLACE_MBSTATE_T=0
14210 case "$gl_cv_func_mbrtowc_incomplete_state" in
14212 *) REPLACE_MBSTATE_T=1 ;;
14214 case "$gl_cv_func_mbrtowc_sanitycheck" in
14216 *) REPLACE_MBSTATE_T=1 ;;
14219 REPLACE_MBSTATE_T=1
14224 if test $ac_cv_func_mbsinit = no; then
14226 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
14227 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14229 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14230 included before <wchar.h>. */
14231 #include <stddef.h>
14237 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
14243 cat >>confdefs.h <<_ACEOF
14244 #define HAVE_DECL_MBSINIT $ac_have_decl
14247 if test $ac_cv_have_decl_mbsinit = yes; then
14251 if test $REPLACE_MBSTATE_T = 1; then
14255 mingw*) REPLACE_MBSINIT=1 ;;
14260 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
14269 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
14286 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
14300 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14305 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14306 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14307 $as_echo_n "(cached) " >&6
14311 # Guess no on AIX and OSF/1.
14312 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14313 # Guess yes otherwise.
14314 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14316 if test $LOCALE_JA != none; then
14317 if test "$cross_compiling" = yes; then :
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14323 #include <locale.h>
14324 #include <string.h>
14325 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14327 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14328 included before <wchar.h>. */
14329 #include <stddef.h>
14335 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14337 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14341 memset (&state, '\0', sizeof (mbstate_t));
14342 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14343 if (mbsinit (&state))
14349 if ac_fn_c_try_run "$LINENO"; then :
14350 gl_cv_func_mbrtowc_incomplete_state=yes
14352 gl_cv_func_mbrtowc_incomplete_state=no
14354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355 conftest.$ac_objext conftest.beam conftest.$ac_ext
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14362 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14368 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14369 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14370 $as_echo_n "(cached) " >&6
14374 # Guess no on Solaris 8.
14375 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14376 # Guess yes otherwise.
14377 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14379 if test $LOCALE_ZH_CN != none; then
14380 if test "$cross_compiling" = yes; then :
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14386 #include <locale.h>
14387 #include <stdlib.h>
14388 #include <string.h>
14389 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14391 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14392 included before <wchar.h>. */
14393 #include <stddef.h>
14399 /* This fails on Solaris 8:
14400 mbrtowc returns 2, and sets wc to 0x00F0.
14401 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14402 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14404 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14408 memset (&state, '\0', sizeof (mbstate_t));
14409 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14410 && mbtowc (&wc, input + 3, 6) == 4)
14416 if ac_fn_c_try_run "$LINENO"; then :
14417 gl_cv_func_mbrtowc_sanitycheck=yes
14419 gl_cv_func_mbrtowc_sanitycheck=no
14421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14422 conftest.$ac_objext conftest.beam conftest.$ac_ext
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14429 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14431 REPLACE_MBSTATE_T=0
14432 case "$gl_cv_func_mbrtowc_incomplete_state" in
14434 *) REPLACE_MBSTATE_T=1 ;;
14436 case "$gl_cv_func_mbrtowc_sanitycheck" in
14438 *) REPLACE_MBSTATE_T=1 ;;
14441 REPLACE_MBSTATE_T=1
14446 if test $ac_cv_func_mbsrtowcs = no; then
14448 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
14449 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14452 included before <wchar.h>. */
14453 #include <stddef.h>
14459 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
14465 cat >>confdefs.h <<_ACEOF
14466 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
14469 if test $ac_cv_have_decl_mbsrtowcs = yes; then
14470 REPLACE_MBSRTOWCS=1
14473 if test $REPLACE_MBSTATE_T = 1; then
14474 REPLACE_MBSRTOWCS=1
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
14483 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
14484 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14489 # Guess no on HP-UX, Solaris, mingw.
14490 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
14491 # Guess yes otherwise.
14492 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
14494 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
14495 if test "$cross_compiling" = yes; then :
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14501 #include <locale.h>
14502 #include <string.h>
14503 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14505 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14506 included before <wchar.h>. */
14507 #include <stddef.h>
14514 /* Test whether the function supports a NULL destination argument.
14515 This fails on native Windows. */
14516 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14518 const char input[] = "\337er";
14519 const char *src = input;
14522 memset (&state, '\0', sizeof (mbstate_t));
14523 if (mbsrtowcs (NULL, &src, 1, &state) != 3
14527 /* Test whether the function works when started with a conversion state
14528 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
14529 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14531 const char input[] = "B\303\274\303\237er";
14534 memset (&state, '\0', sizeof (mbstate_t));
14535 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14536 if (!mbsinit (&state))
14538 const char *src = input + 2;
14539 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14543 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14545 const char input[] = "<\306\374\313\334\270\354>";
14548 memset (&state, '\0', sizeof (mbstate_t));
14549 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14550 if (!mbsinit (&state))
14552 const char *src = input + 4;
14553 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14557 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14559 const char input[] = "B\250\271\201\060\211\070er";
14562 memset (&state, '\0', sizeof (mbstate_t));
14563 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14564 if (!mbsinit (&state))
14566 const char *src = input + 2;
14567 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14574 if ac_fn_c_try_run "$LINENO"; then :
14575 gl_cv_func_mbsrtowcs_works=yes
14577 gl_cv_func_mbsrtowcs_works=no
14579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14580 conftest.$ac_objext conftest.beam conftest.$ac_ext
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14587 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14589 case "$gl_cv_func_mbsrtowcs_works" in
14591 *) REPLACE_MBSRTOWCS=1 ;;
14596 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
14605 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14615 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
14632 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
14637 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
14646 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
14649 for ac_header in bp-sym.h
14651 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
14652 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_BP_SYM_H 1
14674 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
14680 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
14682 $as_echo_n "checking whether memmem works in linear time... " >&6; }
14683 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
14684 $as_echo_n "(cached) " >&6
14686 if test "$cross_compiling" = yes; then :
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14690 #include <features.h>
14691 #ifdef __GNU_LIBRARY__
14692 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
14693 && !defined __UCLIBC__
14698 #include <cygwin/version.h>
14699 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
14705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14706 $EGREP "Lucky user" >/dev/null 2>&1; then :
14707 gl_cv_func_memmem_works_fast="guessing yes"
14709 gl_cv_func_memmem_works_fast="guessing no"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 #include <signal.h> /* for signal */
14719 #include <string.h> /* for memmem */
14720 #include <stdlib.h> /* for malloc */
14721 #include <unistd.h> /* for alarm */
14722 static void quit (int sig) { exit (sig + 128); }
14729 size_t m = 1000000;
14730 char *haystack = (char *) malloc (2 * m + 1);
14731 char *needle = (char *) malloc (m + 1);
14732 /* Failure to compile this test due to missing alarm is okay,
14733 since all such platforms (mingw) also lack memmem. */
14734 signal (SIGALRM, quit);
14736 /* Check for quadratic performance. */
14737 if (haystack && needle)
14739 memset (haystack, 'A', 2 * m);
14740 haystack[2 * m] = 'B';
14741 memset (needle, 'A', m);
14743 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
14752 if ac_fn_c_try_run "$LINENO"; then :
14753 gl_cv_func_memmem_works_fast=yes
14755 gl_cv_func_memmem_works_fast=no
14757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14758 conftest.$ac_objext conftest.beam conftest.$ac_ext
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
14764 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
14765 case "$gl_cv_func_memmem_works_fast" in
14773 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14782 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14789 for ac_func in memmem
14791 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
14792 if test "x$ac_cv_func_memmem" = x""yes; then :
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_MEMMEM 1
14800 if test $ac_cv_func_memmem = yes; then
14806 if test $ac_cv_have_decl_memmem = no; then
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14810 $as_echo_n "checking whether memmem works... " >&6; }
14811 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14814 if test "$cross_compiling" = yes; then :
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14818 #ifdef __GNU_LIBRARY__
14819 #include <features.h>
14820 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14821 || __GLIBC_MINOR__ > 12)) \
14822 || (__GLIBC__ > 2)) \
14823 || defined __UCLIBC__
14826 #elif defined __CYGWIN__
14827 #include <cygwin/version.h>
14828 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14837 $EGREP "Lucky user" >/dev/null 2>&1; then :
14838 gl_cv_func_memmem_works_always="guessing yes"
14840 gl_cv_func_memmem_works_always="guessing no"
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14849 #include <string.h> /* for memmem */
14850 #define P "_EF_BF_BD"
14851 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14852 #define NEEDLE P P P P P
14859 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14861 /* Check for empty needle behavior. */
14863 const char *haystack = "AAA";
14864 if (memmem (haystack, 3, NULL, 0) != haystack)
14873 if ac_fn_c_try_run "$LINENO"; then :
14874 gl_cv_func_memmem_works_always=yes
14876 gl_cv_func_memmem_works_always=no
14878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14879 conftest.$ac_objext conftest.beam conftest.$ac_ext
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14885 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14886 case "$gl_cv_func_memmem_works_always" in
14895 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14904 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14918 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14929 if test $ac_cv_func_readlink = no; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14933 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14934 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14935 $as_echo_n "(cached) " >&6
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14939 #include <unistd.h>
14940 /* Cause compilation failure if original declaration has wrong type. */
14941 ssize_t readlink (const char *, char *, size_t);
14950 if ac_fn_c_try_compile "$LINENO"; then :
14951 gl_cv_decl_readlink_works=yes
14953 gl_cv_decl_readlink_works=no
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14958 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14960 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14961 if test "${gl_cv_func_readlink_works+set}" = set; then :
14962 $as_echo_n "(cached) " >&6
14964 # We have readlink, so assume ln -s works.
14965 ln -s conftest.no-such conftest.link
14966 ln -s conftest.link conftest.lnk2
14967 if test "$cross_compiling" = yes; then :
14969 # Guess yes on glibc systems.
14970 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14971 # If we don't know, assume the worst.
14972 *) gl_cv_func_readlink_works="guessing no" ;;
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 #include <unistd.h>
14984 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14989 if ac_fn_c_try_run "$LINENO"; then :
14990 gl_cv_func_readlink_works=yes
14992 gl_cv_func_readlink_works=no
14994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14995 conftest.$ac_objext conftest.beam conftest.$ac_ext
14998 rm -f conftest.link conftest.lnk2
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
15001 $as_echo "$gl_cv_func_readlink_works" >&6; }
15002 case "$gl_cv_func_readlink_works" in
15004 if test "$gl_cv_decl_readlink_works" != yes; then
15010 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
15017 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
15026 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
15043 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15049 $as_echo_n "checking for ssize_t... " >&6; }
15050 if test "${gt_cv_ssize_t+set}" = set; then :
15051 $as_echo_n "(cached) " >&6
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055 #include <sys/types.h>
15059 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15065 if ac_fn_c_try_compile "$LINENO"; then :
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
15073 $as_echo "$gt_cv_ssize_t" >&6; }
15074 if test $gt_cv_ssize_t = no; then
15076 $as_echo "#define ssize_t int" >>confdefs.h
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15084 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15085 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15086 $as_echo_n "(cached) " >&6
15088 if test "$cross_compiling" = yes; then :
15090 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15091 *) gl_cv_func_stat_dir_slash="guessing yes";;
15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15095 /* end confdefs.h. */
15096 #include <sys/stat.h>
15101 struct stat st; return stat (".", &st) != stat ("./", &st);
15106 if ac_fn_c_try_run "$LINENO"; then :
15107 gl_cv_func_stat_dir_slash=yes
15109 gl_cv_func_stat_dir_slash=no
15111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112 conftest.$ac_objext conftest.beam conftest.$ac_ext
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15117 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15119 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15120 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15121 $as_echo_n "(cached) " >&6
15124 # Assume that if we have lstat, we can also check symlinks.
15125 if test $ac_cv_func_lstat = yes; then
15126 ln -s conftest.tmp conftest.lnk
15128 if test "$cross_compiling" = yes; then :
15130 # Guess yes on glibc systems.
15131 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15132 # If we don't know, assume the worst.
15133 *) gl_cv_func_stat_file_slash="guessing no" ;;
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 #include <sys/stat.h>
15146 if (!stat ("conftest.tmp/", &st))
15149 if (!stat ("conftest.lnk/", &st))
15158 if ac_fn_c_try_run "$LINENO"; then :
15159 gl_cv_func_stat_file_slash=yes
15161 gl_cv_func_stat_file_slash=no
15163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15164 conftest.$ac_objext conftest.beam conftest.$ac_ext
15167 rm -f conftest.tmp conftest.lnk
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15170 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
15171 case $gl_cv_func_stat_dir_slash in
15172 *no) REPLACE_STAT=1
15174 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15177 case $gl_cv_func_stat_file_slash in
15178 *no) REPLACE_STAT=1
15180 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15184 if test $REPLACE_STAT = 1; then
15193 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
15208 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
15215 # Define two additional variables used in the Makefile substitution.
15217 if test "$ac_cv_header_stdbool_h" = yes; then
15220 STDBOOL_H='stdbool.h'
15223 if test -n "$STDBOOL_H"; then
15224 GL_GENERATE_STDBOOL_H_TRUE=
15225 GL_GENERATE_STDBOOL_H_FALSE='#'
15227 GL_GENERATE_STDBOOL_H_TRUE='#'
15228 GL_GENERATE_STDBOOL_H_FALSE=
15232 if test "$ac_cv_type__Bool" = yes; then
15243 if test $gt_cv_c_wchar_t = no; then
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15248 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15249 if test "${gl_cv_decl_null_works+set}" = set; then :
15250 $as_echo_n "(cached) " >&6
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 #include <stddef.h>
15255 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266 gl_cv_decl_null_works=yes
15268 gl_cv_decl_null_works=no
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15273 $as_echo "$gl_cv_decl_null_works" >&6; }
15274 if test $gl_cv_decl_null_works = no; then
15279 if test -n "$STDDEF_H"; then
15280 GL_GENERATE_STDDEF_H_TRUE=
15281 GL_GENERATE_STDDEF_H_FALSE='#'
15283 GL_GENERATE_STDDEF_H_TRUE='#'
15284 GL_GENERATE_STDDEF_H_FALSE=
15287 if test -n "$STDDEF_H"; then
15296 if test $gl_cv_have_include_next = yes; then
15297 gl_cv_next_stddef_h='<'stddef.h'>'
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15300 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15301 if test "${gl_cv_next_stddef_h+set}" = set; then :
15302 $as_echo_n "(cached) " >&6
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <stddef.h>
15311 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15312 *) gl_absname_cpp="$ac_cpp" ;;
15317 gl_dirsep_regex='[/\\]'
15320 gl_dirsep_regex='\/'
15323 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15325 gl_header_literal_regex=`echo 'stddef.h' \
15326 |
sed -e "$gl_make_literal_regex_sed"`
15327 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15328 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15333 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15334 sed -n "$gl_absolute_header_sed"`'"'
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15339 $as_echo "$gl_cv_next_stddef_h" >&6; }
15341 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15345 gl_next_as_first_directive='<'stddef.h'>'
15347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15348 gl_next_as_first_directive=$gl_cv_next_stddef_h
15350 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15368 if test $gl_cv_have_include_next = yes; then
15369 gl_cv_next_stdlib_h='<'stdlib.h'>'
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15372 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15373 if test "${gl_cv_next_stdlib_h+set}" = set; then :
15374 $as_echo_n "(cached) " >&6
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15379 #include <stdlib.h>
15383 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15384 *) gl_absname_cpp="$ac_cpp" ;;
15389 gl_dirsep_regex='[/\\]'
15392 gl_dirsep_regex='\/'
15395 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15397 gl_header_literal_regex=`echo 'stdlib.h' \
15398 |
sed -e "$gl_make_literal_regex_sed"`
15399 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15400 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15405 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15406 sed -n "$gl_absolute_header_sed"`'"'
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15411 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15413 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15417 gl_next_as_first_directive='<'stdlib.h'>'
15419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15420 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15422 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15429 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
15430 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15432 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15433 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15434 $as_echo_n "(cached) " >&6
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 #include <stdlib.h>
15439 #if HAVE_SYS_LOADAVG_H
15440 # include <sys/loadavg.h>
15443 # include <random.h>
15455 if ac_fn_c_try_compile "$LINENO"; then :
15456 eval "$as_gl_Symbol=yes"
15458 eval "$as_gl_Symbol=no"
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 eval ac_res=\$$as_gl_Symbol
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15464 $as_echo "$ac_res" >&6; }
15465 eval as_val=\$$as_gl_Symbol
15466 if test "x$as_val" = x""yes; then :
15467 cat >>confdefs.h <<_ACEOF
15468 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
15471 eval ac_cv_have_decl_$gl_func=yes
15481 if test $REPLACE_STRSTR = 0; then
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
15483 $as_echo_n "checking whether strstr works in linear time... " >&6; }
15484 if test "${gl_cv_func_strstr_linear+set}" = set; then :
15485 $as_echo_n "(cached) " >&6
15487 if test "$cross_compiling" = yes; then :
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15491 #include <features.h>
15492 #ifdef __GNU_LIBRARY__
15493 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15494 && !(defined __i386__ || defined __x86_64__) \
15495 && !defined __UCLIBC__
15500 #include <cygwin/version.h>
15501 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15508 $EGREP "Lucky user" >/dev/null 2>&1; then :
15509 gl_cv_func_strstr_linear="guessing yes"
15511 gl_cv_func_strstr_linear="guessing no"
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 #include <signal.h> /* for signal */
15521 #include <string.h> /* for strstr */
15522 #include <stdlib.h> /* for malloc */
15523 #include <unistd.h> /* for alarm */
15524 static void quit (int sig) { exit (sig + 128); }
15531 size_t m = 1000000;
15532 char *haystack = (char *) malloc (2 * m + 2);
15533 char *needle = (char *) malloc (m + 2);
15534 /* Failure to compile this test due to missing alarm is okay,
15535 since all such platforms (mingw) also have quadratic strstr. */
15536 signal (SIGALRM, quit);
15538 /* Check for quadratic performance. */
15539 if (haystack && needle)
15541 memset (haystack, 'A', 2 * m);
15542 haystack[2 * m] = 'B';
15543 haystack[2 * m + 1] = 0;
15544 memset (needle, 'A', m);
15547 if (!strstr (haystack, needle))
15556 if ac_fn_c_try_run "$LINENO"; then :
15557 gl_cv_func_strstr_linear=yes
15559 gl_cv_func_strstr_linear=no
15561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15562 conftest.$ac_objext conftest.beam conftest.$ac_ext
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
15568 $as_echo "$gl_cv_func_strstr_linear" >&6; }
15569 case "$gl_cv_func_strstr_linear" in
15577 if test $REPLACE_STRSTR = 1; then
15586 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
15592 if test "$gl_cv_func_memchr_works" != yes; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
15596 $as_echo_n "checking whether strstr works... " >&6; }
15597 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
15598 $as_echo_n "(cached) " >&6
15600 if test "$cross_compiling" = yes; then :
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15604 #ifdef __GNU_LIBRARY__
15605 #include <features.h>
15606 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
15607 || defined __UCLIBC__
15610 #elif defined __CYGWIN__
15611 #include <cygwin/version.h>
15612 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15621 $EGREP "Lucky user" >/dev/null 2>&1; then :
15622 gl_cv_func_strstr_works_always="guessing yes"
15624 gl_cv_func_strstr_works_always="guessing no"
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15633 #include <string.h> /* for strstr */
15634 #define P "_EF_BF_BD"
15635 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15636 #define NEEDLE P P P P P
15641 return !!strstr (HAYSTACK, NEEDLE);
15647 if ac_fn_c_try_run "$LINENO"; then :
15648 gl_cv_func_strstr_works_always=yes
15650 gl_cv_func_strstr_works_always=no
15652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15653 conftest.$ac_objext conftest.beam conftest.$ac_ext
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
15659 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
15660 case "$gl_cv_func_strstr_works_always" in
15668 if test $REPLACE_STRSTR = 1; then
15677 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
15691 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
15709 if test $gl_cv_have_include_next = yes; then
15710 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15713 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15714 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15718 if test $ac_cv_header_sys_stat_h = yes; then
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723 #include <sys/stat.h>
15727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15728 *) gl_absname_cpp="$ac_cpp" ;;
15733 gl_dirsep_regex='[/\\]'
15736 gl_dirsep_regex='\/'
15739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15741 gl_header_literal_regex=`echo 'sys/stat.h' \
15742 |
sed -e "$gl_make_literal_regex_sed"`
15743 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15749 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15750 sed -n "$gl_absolute_header_sed"`'"'
15752 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15758 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15760 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15762 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15764 gl_next_as_first_directive='<'sys/stat.h'>'
15766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15767 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15769 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15781 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15783 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15787 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15788 #include <sys/stat.h>
15790 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15794 $as_echo "#define nlink_t int" >>confdefs.h
15800 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
15801 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15803 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15804 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15805 $as_echo_n "(cached) " >&6
15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15808 /* end confdefs.h. */
15809 #include <sys/stat.h>
15820 if ac_fn_c_try_compile "$LINENO"; then :
15821 eval "$as_gl_Symbol=yes"
15823 eval "$as_gl_Symbol=no"
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15827 eval ac_res=\$$as_gl_Symbol
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15829 $as_echo "$ac_res" >&6; }
15830 eval as_val=\$$as_gl_Symbol
15831 if test "x$as_val" = x""yes; then :
15832 cat >>confdefs.h <<_ACEOF
15833 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
15836 eval ac_cv_have_decl_$gl_func=yes
15853 if test $gl_cv_have_include_next = yes; then
15854 gl_cv_next_sys_types_h='<'sys/types.h'>'
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15857 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15858 if test "${gl_cv_next_sys_types_h+set}" = set; then :
15859 $as_echo_n "(cached) " >&6
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 #include <sys/types.h>
15868 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15869 *) gl_absname_cpp="$ac_cpp" ;;
15874 gl_dirsep_regex='[/\\]'
15877 gl_dirsep_regex='\/'
15880 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15882 gl_header_literal_regex=`echo 'sys/types.h' \
15883 |
sed -e "$gl_make_literal_regex_sed"`
15884 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15885 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15890 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15891 sed -n "$gl_absolute_header_sed"`'"'
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15896 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15898 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
15900 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15902 gl_next_as_first_directive='<'sys/types.h'>'
15904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15905 gl_next_as_first_directive=$gl_cv_next_sys_types_h
15907 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
15935 if test $gl_cv_have_include_next = yes; then
15936 gl_cv_next_unistd_h='<'unistd.h'>'
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15939 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15940 if test "${gl_cv_next_unistd_h+set}" = set; then :
15941 $as_echo_n "(cached) " >&6
15944 if test $ac_cv_header_unistd_h = yes; then
15947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h. */
15949 #include <unistd.h>
15953 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15954 *) gl_absname_cpp="$ac_cpp" ;;
15959 gl_dirsep_regex='[/\\]'
15962 gl_dirsep_regex='\/'
15965 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15967 gl_header_literal_regex=`echo 'unistd.h' \
15968 |
sed -e "$gl_make_literal_regex_sed"`
15969 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15970 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15975 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15976 sed -n "$gl_absolute_header_sed"`'"'
15978 gl_cv_next_unistd_h='<'unistd.h'>'
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15984 $as_echo "$gl_cv_next_unistd_h" >&6; }
15986 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15990 gl_next_as_first_directive='<'unistd.h'>'
15992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15993 gl_next_as_first_directive=$gl_cv_next_unistd_h
15995 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
16000 if test $ac_cv_header_unistd_h = yes; then
16012 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
16013 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16015 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16016 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16017 $as_echo_n "(cached) " >&6
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16020 /* end confdefs.h. */
16023 # include <unistd.h>
16025 /* Some systems declare various items in the wrong headers. */
16026 #if !(defined __GLIBC__ && !defined __UCLIBC__)
16027 # include <fcntl.h>
16028 # include <stdio.h>
16029 # include <stdlib.h>
16030 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16044 if ac_fn_c_try_compile "$LINENO"; then :
16045 eval "$as_gl_Symbol=yes"
16047 eval "$as_gl_Symbol=no"
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 eval ac_res=\$$as_gl_Symbol
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16053 $as_echo "$ac_res" >&6; }
16054 eval as_val=\$$as_gl_Symbol
16055 if test "x$as_val" = x""yes; then :
16056 cat >>confdefs.h <<_ACEOF
16057 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16060 eval ac_cv_have_decl_$gl_func=yes
16077 if test $gl_cv_have_include_next = yes; then
16078 gl_cv_next_wchar_h='<'wchar.h'>'
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
16081 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
16082 if test "${gl_cv_next_wchar_h+set}" = set; then :
16083 $as_echo_n "(cached) " >&6
16086 if test $ac_cv_header_wchar_h = yes; then
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16095 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16096 *) gl_absname_cpp="$ac_cpp" ;;
16101 gl_dirsep_regex='[/\\]'
16104 gl_dirsep_regex='\/'
16107 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16109 gl_header_literal_regex=`echo 'wchar.h' \
16110 |
sed -e "$gl_make_literal_regex_sed"`
16111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16117 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16118 sed -n "$gl_absolute_header_sed"`'"'
16120 gl_cv_next_wchar_h='<'wchar.h'>'
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
16126 $as_echo "$gl_cv_next_wchar_h" >&6; }
16128 NEXT_WCHAR_H=$gl_cv_next_wchar_h
16130 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16132 gl_next_as_first_directive='<'wchar.h'>'
16134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16135 gl_next_as_first_directive=$gl_cv_next_wchar_h
16137 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
16142 if test $ac_cv_header_wchar_h = yes; then
16152 if test $gt_cv_c_wint_t = yes; then
16160 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
16161 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16163 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16164 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16165 $as_echo_n "(cached) " >&6
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16170 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16172 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16173 included before <wchar.h>. */
16174 #if !(defined __GLIBC__ && !defined __UCLIBC__)
16175 # include <stddef.h>
16176 # include <stdio.h>
16190 if ac_fn_c_try_compile "$LINENO"; then :
16191 eval "$as_gl_Symbol=yes"
16193 eval "$as_gl_Symbol=no"
16195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197 eval ac_res=\$$as_gl_Symbol
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16199 $as_echo "$ac_res" >&6; }
16200 eval as_val=\$$as_gl_Symbol
16201 if test "x$as_val" = x""yes; then :
16202 cat >>confdefs.h <<_ACEOF
16203 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16206 eval ac_cv_have_decl_$gl_func=yes
16216 if test $ac_cv_func_iswcntrl = yes; then
16224 if test $gt_cv_c_wint_t = yes; then
16240 if test $gl_cv_have_include_next = yes; then
16241 gl_cv_next_wctype_h='<'wctype.h'>'
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
16244 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
16245 if test "${gl_cv_next_wctype_h+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16249 if test $ac_cv_header_wctype_h = yes; then
16252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16253 /* end confdefs.h. */
16254 #include <wctype.h>
16258 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16259 *) gl_absname_cpp="$ac_cpp" ;;
16264 gl_dirsep_regex='[/\\]'
16267 gl_dirsep_regex='\/'
16270 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16272 gl_header_literal_regex=`echo 'wctype.h' \
16273 |
sed -e "$gl_make_literal_regex_sed"`
16274 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16280 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16281 sed -n "$gl_absolute_header_sed"`'"'
16283 gl_cv_next_wctype_h='<'wctype.h'>'
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
16289 $as_echo "$gl_cv_next_wctype_h" >&6; }
16291 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
16293 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16295 gl_next_as_first_directive='<'wctype.h'>'
16297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16298 gl_next_as_first_directive=$gl_cv_next_wctype_h
16300 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
16305 if test $ac_cv_header_wctype_h = yes; then
16306 if test $ac_cv_func_iswcntrl = yes; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
16308 $as_echo_n "checking whether iswcntrl works... " >&6; }
16309 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
16310 $as_echo_n "(cached) " >&6
16313 if test "$cross_compiling" = yes; then :
16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315 /* end confdefs.h. */
16316 #include <stdlib.h>
16317 #if __GNU_LIBRARY__ == 1
16318 Linux libc5 i18n is broken.
16328 if ac_fn_c_try_compile "$LINENO"; then :
16329 gl_cv_func_iswcntrl_works="guessing yes"
16331 gl_cv_func_iswcntrl_works="guessing no"
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16339 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16340 included before <wchar.h>.
16341 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16342 must be included before <wchar.h>. */
16343 #include <stddef.h>
16347 #include <wctype.h>
16348 int main () { return iswprint ('x') == 0; }
16351 if ac_fn_c_try_run "$LINENO"; then :
16352 gl_cv_func_iswcntrl_works=yes
16354 gl_cv_func_iswcntrl_works=no
16356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16357 conftest.$ac_objext conftest.beam conftest.$ac_ext
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
16363 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
16371 case "$gl_cv_func_iswcntrl_works" in
16372 *yes) REPLACE_ISWCNTRL=0 ;;
16373 *) REPLACE_ISWCNTRL=1 ;;
16377 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
16381 if test $REPLACE_ISWCNTRL = 1; then
16384 for ac_func in towlower
16386 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
16387 if test "x$ac_cv_func_towlower" = x""yes; then :
16388 cat >>confdefs.h <<_ACEOF
16389 #define HAVE_TOWLOWER 1
16395 if test $ac_cv_func_towlower = yes; then
16398 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16399 included before <wchar.h>.
16400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16401 must be included before <wchar.h>. */
16402 #include <stddef.h>
16407 # include <wctype.h>
16411 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
16417 cat >>confdefs.h <<_ACEOF
16418 #define HAVE_DECL_TOWLOWER $ac_have_decl
16421 if test $ac_cv_have_decl_towlower = yes; then
16430 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
16435 $as_echo_n "checking for wctype_t... " >&6; }
16436 if test "${gl_cv_type_wctype_t+set}" = set; then :
16437 $as_echo_n "(cached) " >&6
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16442 included before <wchar.h>.
16443 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16444 must be included before <wchar.h>. */
16445 #include <stddef.h>
16450 # include <wctype.h>
16462 if ac_fn_c_try_compile "$LINENO"; then :
16463 gl_cv_type_wctype_t=yes
16465 gl_cv_type_wctype_t=no
16467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
16471 $as_echo "$gl_cv_type_wctype_t" >&6; }
16472 if test $gl_cv_type_wctype_t = no; then
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
16477 $as_echo_n "checking for wctrans_t... " >&6; }
16478 if test "${gl_cv_type_wctrans_t+set}" = set; then :
16479 $as_echo_n "(cached) " >&6
16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* end confdefs.h. */
16483 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
16484 included before <wchar.h>.
16485 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
16486 must be included before <wchar.h>. */
16487 #include <stddef.h>
16491 #include <wctype.h>
16502 if ac_fn_c_try_compile "$LINENO"; then :
16503 gl_cv_type_wctrans_t=yes
16505 gl_cv_type_wctrans_t=no
16507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
16511 $as_echo "$gl_cv_type_wctrans_t" >&6; }
16512 if test $gl_cv_type_wctrans_t = no; then
16517 for gl_func in wctype iswctype wctrans towctrans ; do
16518 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16520 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16521 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16522 $as_echo_n "(cached) " >&6
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16527 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16529 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16530 included before <wchar.h>. */
16531 #if !(defined __GLIBC__ && !defined __UCLIBC__)
16532 # include <stddef.h>
16533 # include <stdio.h>
16535 # include <wchar.h>
16537 #include <wctype.h>
16548 if ac_fn_c_try_compile "$LINENO"; then :
16549 eval "$as_gl_Symbol=yes"
16551 eval "$as_gl_Symbol=no"
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 eval ac_res=\$$as_gl_Symbol
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16557 $as_echo "$ac_res" >&6; }
16558 eval as_val=\$$as_gl_Symbol
16559 if test "x$as_val" = x""yes; then :
16560 cat >>confdefs.h <<_ACEOF
16561 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
16564 eval ac_cv_have_decl_$gl_func=yes
16569 # End of code from modules
16590 gl_source_base='tests'
16591 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
16593 gl_module_indicator_condition=$gltests_WITNESS
16603 LIBGNU_LIBDEPS="$gl_libdeps"
16605 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16609 # We don't use automake, but gnulib does. This line lets us generate
16611 am__api_version='1.11'
16613 # Find a good install program. We prefer a C program (faster),
16614 # so one script is as good as another. But avoid the broken or
16615 # incompatible versions:
16616 # SysV /etc/install, /usr/sbin/install
16617 # SunOS /usr/etc/install
16618 # IRIX /sbin/install
16620 # AmigaOS /C/install, which installs bootblocks on floppy discs
16621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16624 # OS/2's system install, which has a completely different semantic
16625 # ./install, which can be erroneously created by make from ./install.sh.
16626 # Reject install programs that cannot install multiple files.
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
16628 $as_echo_n "checking for a BSD-compatible install... " >&6; }
16629 if test -z "$INSTALL"; then
16630 if test "${ac_cv_path_install+set}" = set; then :
16631 $as_echo_n "(cached) " >&6
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16637 test -z "$as_dir" && as_dir=.
16638 # Account for people who put trailing slashes in PATH elements.
16639 case $as_dir/ in #((
16640 ./ | .// | /[cC]/* | \
16641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
16645 # OSF1 and SCO ODT 3.0 have their own names for install.
16646 # Don't use installbsd from OSF since it installs stuff as root
16648 for ac_prog in ginstall scoinst install; do
16649 for ac_exec_ext in '' $ac_executable_extensions; do
16650 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16651 if test $ac_prog = install &&
16652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16653 # AIX install. It has an incompatible calling convention.
16655 elif test $ac_prog = install &&
16656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16657 # program-specific install script used by HP pwplus--don't use.
16660 rm -rf conftest.one conftest.two conftest.dir
16661 echo one > conftest.one
16662 echo two > conftest.two
16664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16665 test -s conftest.one && test -s conftest.two &&
16666 test -s conftest.dir/conftest.one &&
16667 test -s conftest.dir/conftest.two
16669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16682 rm -rf conftest.one conftest.two conftest.dir
16685 if test "${ac_cv_path_install+set}" = set; then
16686 INSTALL=$ac_cv_path_install
16688 # As a last resort, use the slow shell script. Don't cache a
16689 # value for INSTALL within a source directory, because that will
16690 # break other packages using the cache if that directory is
16691 # removed, or if the value is a relative name.
16692 INSTALL=$ac_install_sh
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
16696 $as_echo "$INSTALL" >&6; }
16698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16699 # It thinks the first close brace ends the variable substitution.
16700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
16707 $as_echo_n "checking whether build environment is sane... " >&6; }
16710 echo timestamp > conftest.file
16711 # Reject unsafe characters in $srcdir or the absolute working directory
16712 # name. Accept space and tab only in the latter.
16716 *[\\\"\#\$\&\'\`$am_lf]*)
16717 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
16720 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
16721 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
16724 # Do `set' in a subshell so we don't clobber the current shell's
16725 # arguments. Must try -L first in case configure is actually a
16726 # symlink; some systems play weird games with the mod time of symlinks
16727 # (eg FreeBSD returns the mod time of the symlink's containing
16730 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
16731 if test "$*" = "X"; then
16733 set X
`ls -t "$srcdir/configure" conftest.file`
16735 rm -f conftest.
file
16736 if test "$*" != "X $srcdir/configure conftest.file" \
16737 && test "$*" != "X conftest.file $srcdir/configure"; then
16739 # If neither matched, then we have a broken ls. This can happen
16740 # if, for instance, CONFIG_SHELL is bash and it inherits a
16741 # broken ls alias from the environment. This has actually
16742 # happened. Such a system could not be considered "sane".
16743 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
16744 alias in your environment" "$LINENO" 5
16747 test "$2" = conftest.
file
16753 as_fn_error
"newly created file is older than distributed files!
16754 Check your system clock" "$LINENO" 5
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16757 $as_echo "yes" >&6; }
16758 test "$program_prefix" != NONE
&&
16759 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
16760 # Use a double $ so make ignores it.
16761 test "$program_suffix" != NONE
&&
16762 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
16763 # Double any \ or $.
16764 # By default was `s,x,x', remove it if useless.
16765 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
16766 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
16768 # expand $ac_aux_dir to an absolute path
16769 am_aux_dir
=`cd $ac_aux_dir && pwd`
16771 if test x
"${MISSING+set}" != xset
; then
16772 case $am_aux_dir in
16774 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
16776 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
16779 # Use eval to expand $SHELL
16780 if eval "$MISSING --run true"; then
16781 am_missing_run
="$MISSING --run "
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
16785 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
16788 if test x
"${install_sh}" != xset
; then
16789 case $am_aux_dir in
16791 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
16793 install_sh
="\${SHELL} $am_aux_dir/install-sh"
16797 # Installed binaries are usually stripped using `strip' when the user
16798 # run `make install-strip'. However `strip' might not be the right
16799 # tool to use in cross-compilation environments, therefore Automake
16800 # will honor the `STRIP' environment variable to overrule this program.
16801 if test "$cross_compiling" != no
; then
16802 if test -n "$ac_tool_prefix"; then
16803 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16804 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16806 $as_echo_n "checking for $ac_word... " >&6; }
16807 if test "${ac_cv_prog_STRIP+set}" = set; then :
16808 $as_echo_n "(cached) " >&6
16810 if test -n "$STRIP"; then
16811 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
16813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16814 for as_dir
in $PATH
16817 test -z "$as_dir" && as_dir
=.
16818 for ac_exec_ext
in '' $ac_executable_extensions; do
16819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16820 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
16821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16830 STRIP
=$ac_cv_prog_STRIP
16831 if test -n "$STRIP"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16833 $as_echo "$STRIP" >&6; }
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16841 if test -z "$ac_cv_prog_STRIP"; then
16843 # Extract the first word of "strip", so it can be a program name with args.
16844 set dummy strip
; ac_word
=$2
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16846 $as_echo_n "checking for $ac_word... " >&6; }
16847 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
16848 $as_echo_n "(cached) " >&6
16850 if test -n "$ac_ct_STRIP"; then
16851 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
16853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16854 for as_dir
in $PATH
16857 test -z "$as_dir" && as_dir
=.
16858 for ac_exec_ext
in '' $ac_executable_extensions; do
16859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16860 ac_cv_prog_ac_ct_STRIP
="strip"
16861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16870 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
16871 if test -n "$ac_ct_STRIP"; then
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16873 $as_echo "$ac_ct_STRIP" >&6; }
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16879 if test "x$ac_ct_STRIP" = x
; then
16882 case $cross_compiling:$ac_tool_warned in
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16886 ac_tool_warned
=yes ;;
16891 STRIP
="$ac_cv_prog_STRIP"
16895 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
16899 [\\/$
]* | ?
:[\\/]*) ;;
16900 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
16903 for ac_prog
in gawk mawk nawk
awk
16905 # Extract the first word of "$ac_prog", so it can be a program name with args.
16906 set dummy
$ac_prog; ac_word
=$2
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16908 $as_echo_n "checking for $ac_word... " >&6; }
16909 if test "${ac_cv_prog_AWK+set}" = set; then :
16910 $as_echo_n "(cached) " >&6
16912 if test -n "$AWK"; then
16913 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
16915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16916 for as_dir
in $PATH
16919 test -z "$as_dir" && as_dir
=.
16920 for ac_exec_ext
in '' $ac_executable_extensions; do
16921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16922 ac_cv_prog_AWK
="$ac_prog"
16923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16932 AWK
=$ac_cv_prog_AWK
16933 if test -n "$AWK"; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16935 $as_echo "$AWK" >&6; }
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16942 test -n "$AWK" && break
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16946 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16948 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16949 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16950 $as_echo_n "(cached) " >&6
16952 cat >conftest.
make <<\_ACEOF
16955 @
echo '@@@%%%=$(MAKE)=@@@%%%'
16957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16959 *@@@
%%%=?
*=@@@
%%%*)
16960 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
16962 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
16964 rm -f conftest.
make
16966 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968 $as_echo "yes" >&6; }
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972 $as_echo "no" >&6; }
16973 SET_MAKE
="MAKE=${MAKE-make}"
16976 rm -rf .tst
2>/dev
/null
16977 mkdir .tst
2>/dev
/null
16978 if test -d .tst
; then
16983 rmdir .tst
2>/dev
/null
16985 DEPDIR
="${am__leading_dot}deps"
16987 ac_config_commands
="$ac_config_commands depfiles"
16990 am_make
=${MAKE-make}
16991 cat > confinc
<< 'END'
16993 @
echo this is the am__doit target
16996 # If we don't find an include directive, just comment out the code.
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16998 $as_echo_n "checking for style of include used by $am_make... " >&6; }
17002 # First try GNU make style include.
17003 echo "include confinc" > confmf
17004 # Ignore all kinds of additional output from `make'.
17005 case `$am_make -s -f confmf 2> /dev/null` in #(
17006 *the\ am__doit\ target
*)
17007 am__include
=include
17012 # Now try BSD make style include.
17013 if test "$am__include" = "#"; then
17014 echo '.include "confinc"' > confmf
17015 case `$am_make -s -f confmf 2> /dev/null` in #(
17016 *the\ am__doit\ target
*)
17017 am__include
=.include
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
17026 $as_echo "$_am_result" >&6; }
17027 rm -f confinc confmf
17029 # Check whether --enable-dependency-tracking was given.
17030 if test "${enable_dependency_tracking+set}" = set; then :
17031 enableval
=$enable_dependency_tracking;
17034 if test "x$enable_dependency_tracking" != xno
; then
17035 am_depcomp
="$ac_aux_dir/depcomp"
17038 if test "x$enable_dependency_tracking" != xno; then
17047 if test "`cd $srcdir && pwd`" != "`pwd`"; then
17048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
17049 # is not polluted with repeated "-I."
17050 am__isrc
=' -I$(srcdir)'
17051 # test to see if srcdir already configured
17052 if test -f $srcdir/config.status
; then
17053 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
17057 # test whether we have cygpath
17058 if test -z "$CYGPATH_W"; then
17059 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
17060 CYGPATH_W
='cygpath -w'
17067 # Define the identity of the package.
17069 VERSION
=UNUSED-VERSION
17072 # Some tools Automake needs.
17074 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
17077 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
17080 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
17083 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
17086 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
17088 # We need awk for the "check" target. The system "awk" is bad on
17090 # Always define AMTAR for backward compatibility.
17092 AMTAR
=${AMTAR-"${am_missing_run}tar"}
17094 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
17099 depcc
="$CC" am_compiler_list
=
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17102 $as_echo_n "checking dependency style of $depcc... " >&6; }
17103 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
17104 $as_echo_n "(cached) " >&6
17106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17107 # We make a subdir and do the tests there. Otherwise we can end up
17108 # making bogus files that we don't know about and never remove. For
17109 # instance it was reported that on HP-UX the gcc test will end up
17110 # making a dummy file named `D' -- because `-MD' means `put the output
17113 # Copy depcomp to subdir because otherwise we won't find it if we're
17114 # using a relative directory.
17115 cp "$am_depcomp" conftest.dir
17117 # We will build objects and dependencies in a subdirectory because
17118 # it helps to detect inapplicable dependency modes. For instance
17119 # both Tru64's cc and ICC support -MD to output dependencies as a
17120 # side effect of compilation, but ICC will put the dependencies in
17121 # the current directory while Tru64 will put them in the object
17125 am_cv_CC_dependencies_compiler_type
=none
17126 if test "$am_compiler_list" = ""; then
17127 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17129 am__universal
=false
17130 case " $depcc " in #(
17131 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
17134 for depmode
in $am_compiler_list; do
17135 # Setup a source with many dependencies, because some compilers
17136 # like to wrap large dependency lists on column 80 (with \), and
17137 # we should not choose a depcomp mode which is confused by this.
17139 # We need to recreate these files for each test, as the compiler may
17140 # overwrite some of them when testing with obscure command lines.
17141 # This happens at least with the AIX C compiler.
17143 for i
in 1 2 3 4 5 6; do
17144 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
17145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17146 # Solaris 8's {/usr,}/bin/sh.
17147 touch sub
/conftst
$i.h
17149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17152 # mode. It turns out that the SunPro C++ compiler does not properly
17153 # handle `-M -o', and we need to detect this. Also, some Intel
17154 # versions had trouble with output in subdirs
17155 am__obj
=sub
/conftest.
${OBJEXT-o}
17156 am__minus_obj
="-o $am__obj"
17159 # This depmode causes a compiler race in universal mode.
17160 test "$am__universal" = false ||
continue
17163 # after this tag, mechanisms are not by side-effect, so they'll
17164 # only be used when explicitly requested
17165 if test "x$enable_dependency_tracking" = xyes
; then
17171 msvisualcpp | msvcmsys
)
17172 # This compiler won't grok `-c -o', but also, the minuso test has
17173 # not run yet. These depmodes are late enough in the game, and
17174 # so weak that their functioning should not be impacted.
17175 am__obj
=conftest.
${OBJEXT-o}
17180 if depmode
=$depmode \
17181 source=sub
/conftest.c object
=$am__obj \
17182 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
17183 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
17184 >/dev
/null
2>conftest.err
&&
17185 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
17186 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
17187 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
17188 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
17189 # icc doesn't choke on unknown options, it will just issue warnings
17190 # or remarks (even with -Werror). So we grep stderr for any message
17191 # that says an option was ignored or not supported.
17192 # When given -MP, icc 7.0 and 7.1 complain thusly:
17193 # icc: Command line warning: ignoring option '-M'; no argument required
17194 # The diagnosis changed in icc 8.0:
17195 # icc: Command line remark: option '-MP' not supported
17196 if (grep 'ignoring option' conftest.err ||
17197 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
17198 am_cv_CC_dependencies_compiler_type
=$depmode
17205 rm -rf conftest.dir
17207 am_cv_CC_dependencies_compiler_type
=none
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17213 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
17216 test "x$enable_dependency_tracking" != xno \
17217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
17218 am__fastdepCC_TRUE
=
17219 am__fastdepCC_FALSE
='#'
17221 am__fastdepCC_TRUE
='#'
17222 am__fastdepCC_FALSE
=
17228 # --------------------- #
17229 # Checks for programs. #
17230 # --------------------- #
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
17234 $as_echo_n "checking whether ln -s works... " >&6; }
17236 if test "$LN_S" = "ln -s"; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238 $as_echo "yes" >&6; }
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
17241 $as_echo "no, using $LN_S" >&6; }
17244 if test -n "$ac_tool_prefix"; then
17245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17246 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 $as_echo_n "checking for $ac_word... " >&6; }
17249 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17250 $as_echo_n "(cached) " >&6
17252 if test -n "$RANLIB"; then
17253 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
17255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17256 for as_dir
in $PATH
17259 test -z "$as_dir" && as_dir
=.
17260 for ac_exec_ext
in '' $ac_executable_extensions; do
17261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17262 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17272 RANLIB
=$ac_cv_prog_RANLIB
17273 if test -n "$RANLIB"; then
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17275 $as_echo "$RANLIB" >&6; }
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17283 if test -z "$ac_cv_prog_RANLIB"; then
17284 ac_ct_RANLIB
=$RANLIB
17285 # Extract the first word of "ranlib", so it can be a program name with args.
17286 set dummy ranlib
; ac_word
=$2
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17288 $as_echo_n "checking for $ac_word... " >&6; }
17289 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17290 $as_echo_n "(cached) " >&6
17292 if test -n "$ac_ct_RANLIB"; then
17293 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
17295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17296 for as_dir
in $PATH
17299 test -z "$as_dir" && as_dir
=.
17300 for ac_exec_ext
in '' $ac_executable_extensions; do
17301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17302 ac_cv_prog_ac_ct_RANLIB
="ranlib"
17303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17312 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
17313 if test -n "$ac_ct_RANLIB"; then
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17315 $as_echo "$ac_ct_RANLIB" >&6; }
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17318 $as_echo "no" >&6; }
17321 if test "x$ac_ct_RANLIB" = x
; then
17324 case $cross_compiling:$ac_tool_warned in
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17328 ac_tool_warned
=yes ;;
17330 RANLIB
=$ac_ct_RANLIB
17333 RANLIB
="$ac_cv_prog_RANLIB"
17337 if test -n "$ac_tool_prefix"; then
17338 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
17339 set dummy
${ac_tool_prefix}ar; ac_word
=$2
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17341 $as_echo_n "checking for $ac_word... " >&6; }
17342 if test "${ac_cv_prog_AR+set}" = set; then :
17343 $as_echo_n "(cached) " >&6
17345 if test -n "$AR"; then
17346 ac_cv_prog_AR
="$AR" # Let the user override the test.
17348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17349 for as_dir
in $PATH
17352 test -z "$as_dir" && as_dir
=.
17353 for ac_exec_ext
in '' $ac_executable_extensions; do
17354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17355 ac_cv_prog_AR
="${ac_tool_prefix}ar"
17356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17366 if test -n "$AR"; then
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
17368 $as_echo "$AR" >&6; }
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17371 $as_echo "no" >&6; }
17376 if test -z "$ac_cv_prog_AR"; then
17378 # Extract the first word of "ar", so it can be a program name with args.
17379 set dummy
ar; ac_word
=$2
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17381 $as_echo_n "checking for $ac_word... " >&6; }
17382 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
17383 $as_echo_n "(cached) " >&6
17385 if test -n "$ac_ct_AR"; then
17386 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
17388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17389 for as_dir
in $PATH
17392 test -z "$as_dir" && as_dir
=.
17393 for ac_exec_ext
in '' $ac_executable_extensions; do
17394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17395 ac_cv_prog_ac_ct_AR
="ar"
17396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17405 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
17406 if test -n "$ac_ct_AR"; then
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
17408 $as_echo "$ac_ct_AR" >&6; }
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17411 $as_echo "no" >&6; }
17414 if test "x$ac_ct_AR" = x
; then
17417 case $cross_compiling:$ac_tool_warned in
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17421 ac_tool_warned
=yes ;;
17426 AR
="$ac_cv_prog_AR"
17430 # ---------------------- #
17431 # Checks for libraries. #
17432 # ---------------------- #
17434 ac_config_files
="$ac_config_files Makefile import/Makefile"
17436 ac_config_commands
="$ac_config_commands default"
17438 cat >confcache
<<\_ACEOF
17439 # This file is a shell script that caches the results of configure
17440 # tests run on this system so they can be shared between configure
17441 # scripts and configure runs, see configure's option --config-cache.
17442 # It is not useful on other systems. If it contains results you don't
17443 # want to keep, you may remove or edit it.
17445 # config.status only pays attention to the cache file if you give it
17446 # the --recheck option to rerun configure.
17448 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17450 # following values.
17454 # The following way of writing the cache mishandles newlines in values,
17455 # but we know of no workaround that is simple, portable, and efficient.
17456 # So, we kill variables containing newlines.
17457 # Ultrix sh set writes to stderr and can't be redirected directly,
17458 # and sets the high bit in the cache file unless we assign to the vars.
17460 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17461 eval ac_val
=\$
$ac_var
17465 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17469 _ | IFS | as_nl
) ;; #(
17470 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17471 *) { eval $ac_var=; unset $ac_var;} ;;
17477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17478 *${as_nl}ac_space
=\
*)
17479 # `set' does not quote correctly, so add quotes: double-quote
17480 # substitution turns \\\\ into \\, and sed turns \\ into \.
17483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17486 # `set' quotes correctly as required by POSIX, so do not add quotes.
17487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17500 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17501 if test -w "$cache_file"; then
17502 test "x$cache_file" != "x/dev/null" &&
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17504 $as_echo "$as_me: updating cache $cache_file" >&6;}
17505 cat confcache
>$cache_file
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17508 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17513 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17514 # Let make expand exec_prefix.
17515 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17517 DEFS
=-DHAVE_CONFIG_H
17521 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17522 # 1. Remove the extension, and $U if already installed.
17523 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17524 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17526 # will be set to the directory where LIBOBJS objects are built.
17527 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17528 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17530 LIBOBJS
=$ac_libobjs
17532 LTLIBOBJS
=$ac_ltlibobjs
17535 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17536 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
17537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17539 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17540 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
17541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17543 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
17544 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
17545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17547 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
17548 as_fn_error
"conditional \"GL_GENERATE_ERRNO_H\" was never defined.
17549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17551 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
17552 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
17553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17555 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
17556 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
17557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17559 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
17560 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
17561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17565 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
17566 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
17567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17569 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
17570 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
17571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17576 if test -n "$gl_LIBOBJS"; then
17577 # Remove the extension.
17578 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17579 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17580 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17581 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17584 gl_LIBOBJS
=$gl_libobjs
17586 gl_LTLIBOBJS
=$gl_ltlibobjs
17592 if test -n "$gltests_LIBOBJS"; then
17593 # Remove the extension.
17594 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17595 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17596 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17597 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17600 gltests_LIBOBJS
=$gltests_libobjs
17602 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17605 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17606 as_fn_error
"conditional \"AMDEP\" was never defined.
17607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17609 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17610 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
17611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17613 if test -n "$EXEEXT"; then
17615 am__EXEEXT_FALSE
='#'
17617 am__EXEEXT_TRUE
='#'
17622 : ${CONFIG_STATUS=./config.status}
17624 ac_clean_files_save
=$ac_clean_files
17625 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17627 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17629 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17631 # Generated by $as_me.
17632 # Run this file to recreate the current configuration.
17633 # Compiler output produced by configure, useful for debugging
17634 # configure, is in config.log if it exists.
17637 ac_cs_recheck=false
17640 SHELL=\${CONFIG_SHELL-$SHELL}
17643 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17644 ## -------------------- ##
17645 ## M4sh Initialization. ##
17646 ## -------------------- ##
17648 # Be more Bourne compatible
17649 DUALCASE
=1; export DUALCASE
# for MKS sh
17650 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17654 # is contrary to our usage. Disable this feature.
17655 alias -g '${1+"$@"}'='"$@"'
17656 setopt NO_GLOB_SUBST
17658 case `(set -o) 2>/dev/null` in #(
17670 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17671 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17674 # Prefer a ksh shell builtin over an external printf program on Solaris,
17675 # but without wasting forks for bash or zsh.
17676 if test -z "$BASH_VERSION$ZSH_VERSION" \
17677 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17678 as_echo='print
-r --'
17679 as_echo_n='print
-rn --'
17680 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17681 as_echo='printf %s
\n'
17682 as_echo_n='printf %s
'
17684 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17685 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17686 as_echo_n='/usr
/ucb
/echo -n'
17688 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17689 as_echo_n_body='eval
17693 expr "X$arg" : "X\\(.*\\)$as_nl";
17694 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17696 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17698 export as_echo_n_body
17699 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17701 export as_echo_body
17702 as_echo='sh
-c $as_echo_body as_echo
'
17705 # The user is always right.
17706 if test "${PATH_SEPARATOR+set}" != set; then
17708 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17709 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17716 # We need space, tab and new line, in precisely that order. Quoting is
17717 # there to prevent editors from complaining about space-tab.
17718 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17719 # splitting by setting IFS to empty value.)
17722 # Find who we are. Look in the path if we contain no directory separator.
17724 *[\\/]* ) as_myself=$0 ;;
17725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17726 for as_dir in $PATH
17729 test -z "$as_dir" && as_dir=.
17730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17736 # We did not find ourselves, most probably we were run as `sh COMMAND'
17737 # in which case we are not to be found in the path.
17738 if test "x$as_myself" = x
; then
17741 if test ! -f "$as_myself"; then
17742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17746 # Unset variables that we do not need and which cause bugs (e.g. in
17747 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17748 # suppresses any "Segmentation fault" message there. '((' could
17749 # trigger a bug in pdksh 5.2.14.
17750 for as_var
in BASH_ENV ENV MAIL MAILPATH
17751 do eval test x\
${$as_var+set} = xset \
17752 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17765 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17768 # as_fn_error ERROR [LINENO LOG_FD]
17769 # ---------------------------------
17770 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17771 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17772 # script with status $?, using 1 if that was 0.
17775 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17777 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17780 $as_echo "$as_me: error: $1" >&2
17781 as_fn_exit
$as_status
17785 # as_fn_set_status STATUS
17786 # -----------------------
17787 # Set $? to STATUS, without forking.
17788 as_fn_set_status
()
17791 } # as_fn_set_status
17793 # as_fn_exit STATUS
17794 # -----------------
17795 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17799 as_fn_set_status
$1
17805 # Portably unset VAR.
17808 { eval $1=; unset $1;}
17810 as_unset
=as_fn_unset
17811 # as_fn_append VAR VALUE
17812 # ----------------------
17813 # Append the text in VALUE to the end of the definition contained in VAR. Take
17814 # advantage of any shell optimizations that allow amortized linear growth over
17815 # repeated appends, instead of the typical quadratic growth present in naive
17817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17818 eval 'as_fn_append ()
17829 # as_fn_arith ARG...
17830 # ------------------
17831 # Perform arithmetic evaluation on the ARGs, and store the result in the
17832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17833 # must be portable across $(()) and expr.
17834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17835 eval 'as_fn_arith ()
17842 as_val
=`expr "$@" || test $? -eq 1`
17847 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17848 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17854 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17855 as_basename
=basename
17860 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17866 as_me
=`$as_basename -- "$0" ||
17867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17868 X"$0" : 'X\(//\)$' \| \
17869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17871 sed '/^.*\/\([^/][^/]*\)\/*$/{
17885 # Avoid depending upon Character Ranges.
17886 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17887 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17888 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17889 as_cr_digits
='0123456789'
17890 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17892 ECHO_C
= ECHO_N
= ECHO_T
=
17893 case `echo -n x` in #(((((
17895 case `echo 'xy\c'` in
17896 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17898 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17905 rm -f conf$$ conf$$.exe conf$$.
file
17906 if test -d conf$$.dir
; then
17907 rm -f conf$$.dir
/conf$$.
file
17910 mkdir conf$$.dir
2>/dev
/null
17912 if (echo >conf$$.
file) 2>/dev
/null
; then
17913 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17915 # ... but there are two gotchas:
17916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17918 # In both cases, we have to default to `cp -p'.
17919 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17921 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17929 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17930 rmdir conf$$.dir
2>/dev
/null
17935 # Create "$as_dir" as a directory, including parents if necessary.
17940 -*) as_dir
=.
/$as_dir;;
17942 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17946 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17947 *) as_qdir
=$as_dir;;
17949 as_dirs
="'$as_qdir' $as_dirs"
17950 as_dir
=`$as_dirname -- "$as_dir" ||
17951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17952 X"$as_dir" : 'X\(//\)[^/]' \| \
17953 X"$as_dir" : 'X\(//\)$' \| \
17954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17955 $as_echo X"$as_dir" |
17956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17960 /^X\(\/\/\)[^/].*/{
17973 test -d "$as_dir" && break
17975 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17976 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17980 if mkdir
-p .
2>/dev
/null
; then
17981 as_mkdir_p
='mkdir -p "$as_dir"'
17983 test -d .
/-p && rmdir .
/-p
17987 if test -x / >/dev
/null
2>&1; then
17988 as_test_x
='test -x'
17990 if ls -dL / >/dev
/null
2>&1; then
17997 if test -d "$1"; then
18003 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18004 ???[sx]*):;;*)false;;esac;fi
18008 as_executable_p
=$as_test_x
18010 # Sed expression to map a string onto a valid CPP name.
18011 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18013 # Sed expression to map a string onto a valid variable name.
18014 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18018 ## ----------------------------------- ##
18019 ## Main body of $CONFIG_STATUS script. ##
18020 ## ----------------------------------- ##
18022 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18025 # Save the log message, to keep $0 and so on meaningful, and to
18026 # report actual input values of CONFIG_FILES etc. instead of their
18027 # values after options handling.
18029 This file was extended by $as_me, which was
18030 generated by GNU Autoconf 2.64. Invocation command line was
18032 CONFIG_FILES = $CONFIG_FILES
18033 CONFIG_HEADERS = $CONFIG_HEADERS
18034 CONFIG_LINKS = $CONFIG_LINKS
18035 CONFIG_COMMANDS = $CONFIG_COMMANDS
18038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18043 case $ac_config_files in *"
18044 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18047 case $ac_config_headers in *"
18048 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 # Files that config.status was made for.
18054 config_files="$ac_config_files"
18055 config_headers="$ac_config_headers"
18056 config_commands="$ac_config_commands"
18060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18062 \`$as_me' instantiates files and other configuration actions
18063 from templates according to the current configuration. Unless the files
18064 and actions are specified as TAGs, all are instantiated by default.
18066 Usage: $0 [OPTION]... [TAG]...
18068 -h, --help print this help, then exit
18069 -V, --version print version number and configuration settings, then exit
18070 -q, --quiet, --silent
18071 do not print progress messages
18072 -d, --debug don't remove temporary files
18073 --recheck update $as_me by reconfiguring in the same conditions
18074 --file=FILE[:TEMPLATE]
18075 instantiate the configuration file FILE
18076 --header=FILE[:TEMPLATE]
18077 instantiate the configuration header FILE
18079 Configuration files:
18082 Configuration headers:
18085 Configuration commands:
18088 Report bugs to the package provider."
18091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18094 configured by $0, generated by GNU Autoconf 2.64,
18095 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18097 Copyright (C) 2009 Free Software Foundation, Inc.
18098 This config.status script is free software; the Free Software Foundation
18099 gives unlimited permission to copy, distribute and modify it."
18106 test -n "\$AWK" || AWK=awk
18109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18110 # The default lists apply if the user does not specify any file.
18116 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18117 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18128 # Handling of the options.
18129 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18131 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18132 $as_echo "$ac_cs_version"; exit ;;
18133 --debug |
--debu |
--deb |
--de |
--d |
-d )
18135 --file |
--fil |
--fi |
--f )
18138 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18140 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18141 ac_need_defaults
=false
;;
18142 --header |
--heade |
--head |
--hea )
18145 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18147 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18148 ac_need_defaults
=false
;;
18150 # Conflict between --help and --header
18151 as_fn_error
"ambiguous option: \`$1'
18152 Try \`$0 --help' for more information.";;
18153 --help |
--hel |
-h )
18154 $as_echo "$ac_cs_usage"; exit ;;
18155 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18156 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18159 # This is an error.
18160 -*) as_fn_error
"unrecognized option: \`$1'
18161 Try \`$0 --help' for more information." ;;
18163 *) as_fn_append ac_config_targets
" $1"
18164 ac_need_defaults
=false
;;
18170 ac_configure_extra_args
=
18172 if $ac_cs_silent; then
18174 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18179 if \$ac_cs_recheck; then
18180 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18182 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18183 CONFIG_SHELL='$SHELL'
18184 export CONFIG_SHELL
18189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18194 ## Running $as_me. ##
18200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18204 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18210 # Handling of arguments.
18211 for ac_config_target
in $ac_config_targets
18213 case $ac_config_target in
18214 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18215 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18216 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18217 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
18218 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18220 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18225 # If the user did not use the arguments to specify the items to instantiate,
18226 # then the envvar interface is used. Set only those that are not.
18227 # We use the long form for the default assignment because of an extremely
18228 # bizarre bug on SunOS 4.1.3.
18229 if $ac_need_defaults; then
18230 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18231 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18232 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18235 # Have a temporary directory for convenience. Make it in the build tree
18236 # simply because there is no reason against having it here, and in addition,
18237 # creating and moving files from /tmp can sometimes cause problems.
18238 # Hook for its removal unless debugging.
18239 # Note that there is a small window in which the directory will not be cleaned:
18240 # after its creation but before its name has been assigned to `$tmp'.
18244 trap 'exit_status=$?
18245 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18247 trap 'as_fn_exit 1' 1 2 13 15
18249 # Create a (secure) tmp directory for tmp files.
18252 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18253 test -n "$tmp" && test -d "$tmp"
18256 tmp
=.
/conf$$
-$RANDOM
18257 (umask 077 && mkdir
"$tmp")
18258 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18260 # Set up the scripts for CONFIG_FILES section.
18261 # No need to generate them if there are no CONFIG_FILES.
18262 # This happens for instance with `./config.status config.h'.
18263 if test -n "$CONFIG_FILES"; then
18266 ac_cr
=`echo X | tr X '\015'`
18267 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18268 # But we know of no other shell where ac_cr would be empty at this
18269 # point, so we can use a bashism as a fallback.
18270 if test "x$ac_cr" = x
; then
18271 eval ac_cr
=\$
\'\\r
\'
18273 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18274 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18277 ac_cs_awk_cr
=$ac_cr
18280 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18285 echo "cat >conf$$subs.awk <<_ACEOF" &&
18286 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18288 } >conf$$subs.sh ||
18289 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18292 for ac_last_try in false false false false false :; do
18293 . ./conf$$subs.sh ||
18294 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18296 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18297 if test $ac_delim_n = $ac_delim_num; then
18299 elif $ac_last_try; then
18300 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18302 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18305 rm -f conf$$subs.sh
18307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18312 s/^/S["/; s
/!.
*/"]=/
18322 s/\(.\{148\}\).*/\1/
18324 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18329 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18336 s/\(.\{148\}\).*/\1/
18338 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18342 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18347 ' <conf$$subs.awk | sed '
18352 ' >>$CONFIG_STATUS || ac_write_fail=1
18353 rm -f conf$$subs.awk
18354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18356 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18357 for (key in S) S_is_set[key] = 1
18363 nfields = split(line, field, "@
")
18365 len = length(field[1])
18366 for (i = 2; i < nfields; i++) {
18368 keylen = length(key)
18369 if (S_is_set[key]) {
18371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18372 len += length(value) + length(field[++i])
18383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18384 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18385 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18388 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18389 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18394 # trailing colons and then remove the whole line if VPATH becomes empty
18395 # (actually we leave an empty line to preserve line numbers).
18396 if test "x
$srcdir" = x.; then
18397 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18398 s/:*\$(srcdir):*/:/
18399 s/:*\${srcdir}:*/:/
18401 s/^\([^=]*=[ ]*\):*/\1/
18407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18408 fi # test -n "$CONFIG_FILES"
18410 # Set up the scripts for CONFIG_HEADERS section.
18411 # No need to generate them if there are no CONFIG_HEADERS.
18412 # This happens for instance with `./config.status Makefile'.
18413 if test -n "$CONFIG_HEADERS"; then
18414 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18418 # Transform confdefs.h into an awk script `defines.awk', embedded as
18419 # here-document in config.status, that substitutes the proper values into
18420 # config.h.in to produce config.h.
18422 # Create a delimiter string that does not exist in confdefs.h, to ease
18423 # handling of long lines.
18425 for ac_last_try in false false :; do
18426 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18427 if test -z "$ac_t"; then
18429 elif $ac_last_try; then
18430 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18432 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18436 # For the awk script, D is an array of macro values keyed by name,
18437 # likewise P contains macro parameters if any. Preserve backslash
18438 # newline sequences.
18440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18442 s/.\{148\}/&'"$ac_delim"'/g
18445 s/^[ ]*#[ ]*define[ ][ ]*/ /
18452 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18454 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18459 D["\
1"]=" \
3\\\\\\n
"\\/p
18461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18466 s/.\{148\}/&'"$ac_delim"'/g
18471 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18474 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18476 ' <confdefs.h | sed '
18477 s/'"$ac_delim"'/"\\\
18478 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481 for (key in D) D_is_set[key] = 1
18484 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18486 split(line, arg, " ")
18487 if (arg[1] == "#") {
18491 defundef
= substr
(arg
[1], 2)
18494 split(mac1
, mac2
, "(") #)
18496 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18497 if (D_is_set
[macro
]) {
18498 # Preserve the white space surrounding the "#".
18499 print prefix
"define", macro P
[macro
] D
[macro
]
18502 # Replace #undef with comments. This is necessary, for example,
18503 # in the case of _POSIX_SOURCE, which is predefined and required
18504 # on some systems where configure will not decide to define it.
18505 if (defundef
== "undef") {
18506 print
"/*", prefix defundef
, macro
, "*/"
18514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18515 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18516 fi # test -n "$CONFIG_HEADERS"
18519 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18524 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18526 case $ac_mode$ac_tag in
18528 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18529 :[FH
]-) ac_tag
=-:-;;
18530 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18547 -) ac_f
="$tmp/stdin";;
18548 *) # Look for the file first in the build tree, then in the source tree
18549 # (if the path is not absolute). The absolute path cannot be DOS-style,
18550 # because $ac_f cannot contain `:'.
18554 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18556 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18558 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18559 as_fn_append ac_file_inputs
" '$ac_f'"
18562 # Let's still pretend it is `configure' which instantiates (i.e., don't
18563 # use $as_me), people would be surprised to read:
18564 # /* config.h. Generated by config.status. */
18565 configure_input
='Generated from '`
18566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18568 if test x
"$ac_file" != x-
; then
18569 configure_input
="$ac_file. $configure_input"
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18571 $as_echo "$as_me: creating $ac_file" >&6;}
18573 # Neutralize special characters interpreted by sed in replacement strings.
18574 case $configure_input in #(
18575 *\
&* |
*\|
* |
*\\* )
18576 ac_sed_conf_input
=`$as_echo "$configure_input" |
18577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18578 *) ac_sed_conf_input
=$configure_input;;
18582 *:-:* |
*:-) cat >"$tmp/stdin" \
18583 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18588 ac_dir
=`$as_dirname -- "$ac_file" ||
18589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18590 X"$ac_file" : 'X\(//\)[^/]' \| \
18591 X"$ac_file" : 'X\(//\)$' \| \
18592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18593 $as_echo X"$ac_file" |
18594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18598 /^X\(\/\/\)[^/].*/{
18611 as_dir
="$ac_dir"; as_fn_mkdir_p
18615 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18617 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18618 # A ".." for each directory in $ac_dir_suffix.
18619 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18620 case $ac_top_builddir_sub in
18621 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18622 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18625 ac_abs_top_builddir
=$ac_pwd
18626 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18627 # for backward compatibility:
18628 ac_top_builddir
=$ac_top_build_prefix
18631 .
) # We are building in place.
18633 ac_top_srcdir
=$ac_top_builddir_sub
18634 ac_abs_top_srcdir
=$ac_pwd ;;
18635 [\\/]* | ?
:[\\/]* ) # Absolute name.
18636 ac_srcdir
=$srcdir$ac_dir_suffix;
18637 ac_top_srcdir
=$srcdir
18638 ac_abs_top_srcdir
=$srcdir ;;
18639 *) # Relative name.
18640 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18641 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18642 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18644 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18654 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18655 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18657 ac_MKDIR_P
=$MKDIR_P
18659 [\\/$
]* | ?
:[\\/]* ) ;;
18660 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18665 # If the template does not know about datarootdir, expand it.
18666 # FIXME: This hack should be removed a few years after 2.60.
18667 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18679 *datarootdir
*) ac_datarootdir_seen
=yes;;
18680 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18685 ac_datarootdir_hack='
18686 s&@datadir@&$datadir&g
18687 s&@docdir@&$docdir&g
18688 s&@infodir@&$infodir&g
18689 s&@localedir@&$localedir&g
18690 s&@mandir@&$mandir&g
18691 s&\\\${datarootdir}&$datarootdir&g' ;;
18695 # Neutralize VPATH when `$srcdir' = `.'.
18696 # Shell code in configure.ac might set extrasub.
18697 # FIXME: do we really want to maintain this feature?
18698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18699 ac_sed_extra="$ac_vpsub
18702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18704 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18705 s|@configure_input@|
$ac_sed_conf_input|
;t t
18706 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18707 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18708 s
&@srcdir@
&$ac_srcdir&;t t
18709 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18710 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18711 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18712 s
&@builddir@
&$ac_builddir&;t t
18713 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18714 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18715 s
&@INSTALL@
&$ac_INSTALL&;t t
18716 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18717 $ac_datarootdir_hack
18719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18720 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18723 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18726 which seems to be undefined. Please make sure it is defined." >&5
18727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18728 which seems to be undefined. Please make sure it is defined." >&2;}
18732 -) cat "$tmp/out" && rm -f "$tmp/out";;
18733 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18735 || as_fn_error "could not create $ac_file" "$LINENO" 5
18741 if test x"$ac_file" != x-; then
18743 $as_echo "/* $configure_input */" \
18744 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18745 } >"$tmp/config.h" \
18746 || as_fn_error "could not create $ac_file" "$LINENO" 5
18747 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18752 mv "$tmp/config.h" "$ac_file" \
18753 || as_fn_error "could not create $ac_file" "$LINENO" 5
18756 $as_echo "/* $configure_input */" \
18757 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18758 || as_fn_error "could not create -" "$LINENO" 5
18760 # Compute "$ac_file"'s index
in $config_headers.
18763 for _am_header
in $config_headers :; do
18764 case $_am_header in
18765 $_am_arg |
$_am_arg:* )
18768 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18773 X"$_am_arg" : 'X\(//\)[^/]' \| \
18774 X"$_am_arg" : 'X\(//\)$' \| \
18775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18776 $as_echo X"$_am_arg" |
18777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18781 /^X\(\/\/\)[^/].*/{
18793 s/.*/./; q'`/stamp-h
$_am_stamp_count
18796 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18797 $as_echo "$as_me: executing $ac_file commands" >&6;}
18802 case $ac_file$ac_mode in
18803 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18804 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18805 # are listed without --file. Let's play safe and only enable the eval
18806 # if we detect the quoting.
18807 case $CONFIG_FILES in
18808 *\'*) eval set x
"$CONFIG_FILES" ;;
18809 *) set x
$CONFIG_FILES ;;
18814 # Strip MF so we end up with the name of the file.
18815 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18816 # Check whether this is an Automake generated Makefile or not.
18817 # We used to match only the files named `Makefile.in', but
18818 # some people rename them; so instead we look at the file content.
18819 # Grep'ing the first line is not enough: some people post-process
18820 # each Makefile.in and add a new line on top of each file to say so.
18821 # Grep'ing the whole file is not good either: AIX grep has a line
18822 # limit of 2048, but all sed's we know have understand at least 4000.
18823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18824 dirpart
=`$as_dirname -- "$mf" ||
18825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18826 X"$mf" : 'X\(//\)[^/]' \| \
18827 X"$mf" : 'X\(//\)$' \| \
18828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18834 /^X\(\/\/\)[^/].*/{
18850 # Extract the definition of DEPDIR, am__include, and am__quote
18851 # from the Makefile without running `make'.
18852 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18853 test -z "$DEPDIR" && continue
18854 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18855 test -z "am__include" && continue
18856 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18857 # When using ansi2knr, U may be empty or an underscore; expand it
18858 U
=`sed -n 's/^U = //p' < "$mf"`
18859 # Find all dependency output files, they are included files with
18860 # $(DEPDIR) in their names. We invoke sed twice because it is the
18861 # simplest approach to changing $(DEPDIR) to its actual value in the
18863 for file in `sed -n "
18864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18866 # Make sure the directory exists.
18867 test -f "$dirpart/$file" && continue
18868 fdir
=`$as_dirname -- "$file" ||
18869 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18870 X"$file" : 'X\(//\)[^/]' \| \
18871 X"$file" : 'X\(//\)$' \| \
18872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18873 $as_echo X"$file" |
18874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18878 /^X\(\/\/\)[^/].*/{
18891 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18892 # echo "creating $dirpart/$file"
18893 echo '# dummy' > "$dirpart/$file"
18899 case x
$CONFIG_HEADERS in
18900 xconfig.h
:config.
in)
18911 ac_clean_files
=$ac_clean_files_save
18913 test $ac_write_fail = 0 ||
18914 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18917 # configure is writing to config.log, and then calls config.status.
18918 # config.status does its own redirection, appending to config.log.
18919 # Unfortunately, on DOS this fails, as config.log is still kept open
18920 # by configure, so config.status won't be able to write to it; its
18921 # output is simply discarded. So we exec the FD to /dev/null,
18922 # effectively closing config.log, so it can be properly (re)opened and
18923 # appended to by config.status. When coming back to configure, we
18924 # need to make the FD available again.
18925 if test "$no_create" != yes; then
18927 ac_config_status_args
=
18928 test "$silent" = yes &&
18929 ac_config_status_args
="$ac_config_status_args --quiet"
18931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18934 # would make configure fail if this is the last instruction.
18935 $ac_cs_success || as_fn_exit $?
18937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}