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>
591 gl_fnmatch_required
=POSIX
594 ac_subst_vars
='am__EXEEXT_FALSE
620 INSTALL_STRIP_PROGRAM
641 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
655 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_STRING_H
659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
661 GL_GENERATE_STDDEF_H_FALSE
662 GL_GENERATE_STDDEF_H_TRUE
667 GL_GENERATE_STDBOOL_H_FALSE
668 GL_GENERATE_STDBOOL_H_TRUE
838 NEXT_AS_FIRST_DIRECTIVE_MATH_H
840 LOCALCHARSET_TESTS_ENVIRONMENT
842 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
844 UINT64_MAX_EQ_ULONG_MAX
845 UINT32_MAX_LT_UINTMAX_MAX
848 INT64_MAX_EQ_LONG_MAX
849 INT32_MAX_LT_INTMAX_MAX
859 GL_GENERATE_STDINT_H_FALSE
860 GL_GENERATE_STDINT_H_TRUE
869 HAVE_SIGNED_SIG_ATOMIC_T
872 BITSIZEOF_SIG_ATOMIC_T
875 APPLE_UNIVERSAL_BUILD
879 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
884 HAVE_UNSIGNED_LONG_LONG_INT
887 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
893 REPLACE_SIGNBIT_USING_GCC
1143 GL_GENERATE_FNMATCH_H_FALSE
1144 GL_GENERATE_FNMATCH_H_TRUE
1147 GL_GENERATE_FLOAT_H_FALSE
1148 GL_GENERATE_FLOAT_H_TRUE
1150 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1153 PRAGMA_SYSTEM_HEADER
1154 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1158 GL_GENERATE_ALLOCA_H_FALSE
1159 GL_GENERATE_ALLOCA_H_TRUE
1162 GL_COND_LIBTOOL_FALSE
1163 GL_COND_LIBTOOL_TRUE
1190 MAINTAINER_MODE_FALSE
1191 MAINTAINER_MODE_TRUE
1219 program_transform_name
1232 enable_option_checking
1233 enable_maintainer_mode
1234 enable_dependency_tracking
1236 ac_precious_vars
='build_alias
1247 # Initialize some variables set by options.
1249 ac_init_version
=false
1250 ac_unrecognized_opts
=
1251 ac_unrecognized_sep
=
1252 # The variables have the same names as the options, with
1253 # dashes changed to underlines.
1254 cache_file
=/dev
/null
1261 program_transform_name
=s
,x
,x
,
1269 # Installation directory options.
1270 # These are left unexpanded so users can "make install exec_prefix=/foo"
1271 # and all the variables that are supposed to be based on exec_prefix
1272 # by default will actually change.
1273 # Use braces instead of parens because sh, perl, etc. also accept them.
1274 # (The list follows the same order as the GNU Coding Standards.)
1275 bindir
='${exec_prefix}/bin'
1276 sbindir
='${exec_prefix}/sbin'
1277 libexecdir
='${exec_prefix}/libexec'
1278 datarootdir
='${prefix}/share'
1279 datadir
='${datarootdir}'
1280 sysconfdir
='${prefix}/etc'
1281 sharedstatedir
='${prefix}/com'
1282 localstatedir
='${prefix}/var'
1283 includedir
='${prefix}/include'
1284 oldincludedir
='/usr/include'
1285 docdir
='${datarootdir}/doc/${PACKAGE}'
1286 infodir
='${datarootdir}/info'
1291 libdir
='${exec_prefix}/lib'
1292 localedir
='${datarootdir}/locale'
1293 mandir
='${datarootdir}/man'
1299 # If the previous option needs an argument, assign it.
1300 if test -n "$ac_prev"; then
1301 eval $ac_prev=\
$ac_option
1307 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1311 # Accept the important Cygnus configure options, so we can diagnose typos.
1313 case $ac_dashdash$ac_option in
1317 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1319 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1320 bindir
=$ac_optarg ;;
1322 -build |
--build |
--buil |
--bui |
--bu)
1323 ac_prev
=build_alias
;;
1324 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1325 build_alias
=$ac_optarg ;;
1327 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1328 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1329 ac_prev
=cache_file
;;
1330 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1331 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1332 cache_file
=$ac_optarg ;;
1334 --config-cache |
-C)
1335 cache_file
=config.cache
;;
1337 -datadir |
--datadir |
--datadi |
--datad)
1339 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1340 datadir
=$ac_optarg ;;
1342 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1343 |
--dataroo |
--dataro |
--datar)
1344 ac_prev
=datarootdir
;;
1345 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1346 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1347 datarootdir
=$ac_optarg ;;
1349 -disable-* |
--disable-*)
1350 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1353 as_fn_error
"invalid feature name: $ac_useropt"
1354 ac_useropt_orig
=$ac_useropt
1355 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1358 "enable_
$ac_useropt"
1360 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1361 ac_unrecognized_sep
=', ';;
1363 eval enable_
$ac_useropt=no
;;
1365 -docdir |
--docdir |
--docdi |
--doc |
--do)
1367 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1368 docdir
=$ac_optarg ;;
1370 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1372 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1373 dvidir
=$ac_optarg ;;
1375 -enable-* |
--enable-*)
1376 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1379 as_fn_error
"invalid feature name: $ac_useropt"
1380 ac_useropt_orig
=$ac_useropt
1381 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1384 "enable_
$ac_useropt"
1386 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1387 ac_unrecognized_sep
=', ';;
1389 eval enable_
$ac_useropt=\
$ac_optarg ;;
1391 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1392 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1393 |
--exec |
--exe |
--ex)
1394 ac_prev
=exec_prefix
;;
1395 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1396 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1397 |
--exec=* |
--exe=* |
--ex=*)
1398 exec_prefix
=$ac_optarg ;;
1400 -gas |
--gas |
--ga |
--g)
1401 # Obsolete; use --with-gas.
1404 -help |
--help |
--hel |
--he |
-h)
1405 ac_init_help
=long
;;
1406 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1407 ac_init_help
=recursive
;;
1408 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1409 ac_init_help
=short
;;
1411 -host |
--host |
--hos |
--ho)
1412 ac_prev
=host_alias
;;
1413 -host=* |
--host=* |
--hos=* |
--ho=*)
1414 host_alias
=$ac_optarg ;;
1416 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1418 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1420 htmldir
=$ac_optarg ;;
1422 -includedir |
--includedir |
--includedi |
--included |
--include \
1423 |
--includ |
--inclu |
--incl |
--inc)
1424 ac_prev
=includedir
;;
1425 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1426 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1427 includedir
=$ac_optarg ;;
1429 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1431 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1432 infodir
=$ac_optarg ;;
1434 -libdir |
--libdir |
--libdi |
--libd)
1436 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1437 libdir
=$ac_optarg ;;
1439 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1440 |
--libexe |
--libex |
--libe)
1441 ac_prev
=libexecdir
;;
1442 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1443 |
--libexe=* |
--libex=* |
--libe=*)
1444 libexecdir
=$ac_optarg ;;
1446 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1447 ac_prev
=localedir
;;
1448 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1449 localedir
=$ac_optarg ;;
1451 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1452 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1453 ac_prev
=localstatedir
;;
1454 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1455 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1456 localstatedir
=$ac_optarg ;;
1458 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1460 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1461 mandir
=$ac_optarg ;;
1463 -nfp |
--nfp |
--nf)
1464 # Obsolete; use --without-fp.
1467 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1468 |
--no-cr |
--no-c |
-n)
1471 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1472 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1475 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1476 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1477 |
--oldin |
--oldi |
--old |
--ol |
--o)
1478 ac_prev
=oldincludedir
;;
1479 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1480 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1481 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1482 oldincludedir
=$ac_optarg ;;
1484 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1486 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1487 prefix
=$ac_optarg ;;
1489 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1490 |
--program-pre |
--program-pr |
--program-p)
1491 ac_prev
=program_prefix
;;
1492 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1493 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1494 program_prefix
=$ac_optarg ;;
1496 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1497 |
--program-suf |
--program-su |
--program-s)
1498 ac_prev
=program_suffix
;;
1499 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1500 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1501 program_suffix
=$ac_optarg ;;
1503 -program-transform-name |
--program-transform-name \
1504 |
--program-transform-nam |
--program-transform-na \
1505 |
--program-transform-n |
--program-transform- \
1506 |
--program-transform |
--program-transfor \
1507 |
--program-transfo |
--program-transf \
1508 |
--program-trans |
--program-tran \
1509 |
--progr-tra |
--program-tr |
--program-t)
1510 ac_prev
=program_transform_name
;;
1511 -program-transform-name=* |
--program-transform-name=* \
1512 |
--program-transform-nam=* |
--program-transform-na=* \
1513 |
--program-transform-n=* |
--program-transform-=* \
1514 |
--program-transform=* |
--program-transfor=* \
1515 |
--program-transfo=* |
--program-transf=* \
1516 |
--program-trans=* |
--program-tran=* \
1517 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1518 program_transform_name
=$ac_optarg ;;
1520 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1522 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1523 pdfdir
=$ac_optarg ;;
1525 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1527 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1530 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1531 |
-silent |
--silent |
--silen |
--sile |
--sil)
1534 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1536 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1538 sbindir
=$ac_optarg ;;
1540 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1541 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1542 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1544 ac_prev
=sharedstatedir
;;
1545 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1546 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1547 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1549 sharedstatedir
=$ac_optarg ;;
1551 -site |
--site |
--sit)
1553 -site=* |
--site=* |
--sit=*)
1556 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1558 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1559 srcdir
=$ac_optarg ;;
1561 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1562 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1563 ac_prev
=sysconfdir
;;
1564 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1565 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1566 sysconfdir
=$ac_optarg ;;
1568 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1569 ac_prev
=target_alias
;;
1570 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1571 target_alias
=$ac_optarg ;;
1573 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1576 -version |
--version |
--versio |
--versi |
--vers |
-V)
1577 ac_init_version
=: ;;
1580 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1583 as_fn_error
"invalid package name: $ac_useropt"
1584 ac_useropt_orig
=$ac_useropt
1585 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1590 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1591 ac_unrecognized_sep
=', ';;
1593 eval with_
$ac_useropt=\
$ac_optarg ;;
1595 -without-* |
--without-*)
1596 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1597 # Reject names that are not valid shell variable names.
1598 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1599 as_fn_error
"invalid package name: $ac_useropt"
1600 ac_useropt_orig
=$ac_useropt
1601 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1602 case $ac_user_opts in
1606 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1607 ac_unrecognized_sep
=', ';;
1609 eval with_
$ac_useropt=no
;;
1612 # Obsolete; use --with-x.
1615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1617 ac_prev
=x_includes
;;
1618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1620 x_includes
=$ac_optarg ;;
1622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1624 ac_prev
=x_libraries
;;
1625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1627 x_libraries
=$ac_optarg ;;
1629 -*) as_fn_error
"unrecognized option: \`$ac_option'
1630 Try \`$0 --help' for more information."
1634 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1635 # Reject names that are not valid shell variable names.
1636 case $ac_envvar in #(
1637 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1638 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1640 eval $ac_envvar=\
$ac_optarg
1641 export $ac_envvar ;;
1644 # FIXME: should be removed in autoconf 3.0.
1645 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1647 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1654 if test -n "$ac_prev"; then
1655 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1656 as_fn_error
"missing argument to $ac_option"
1659 if test -n "$ac_unrecognized_opts"; then
1660 case $enable_option_checking in
1662 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1663 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1667 # Check all directory arguments for consistency.
1668 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1669 datadir sysconfdir sharedstatedir localstatedir includedir \
1670 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1671 libdir localedir mandir
1673 eval ac_val
=\$
$ac_var
1674 # Remove trailing slashes.
1677 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1678 eval $ac_var=\
$ac_val;;
1680 # Be sure to have absolute directory names.
1682 [\\/$
]* | ?
:[\\/]* ) continue;;
1683 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1685 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1688 # There might be people who depend on the old broken behavior: `$host'
1689 # used to hold the argument of --host etc.
1690 # FIXME: To remove some day.
1693 target
=$target_alias
1695 # FIXME: To remove some day.
1696 if test "x$host_alias" != x
; then
1697 if test "x$build_alias" = x
; then
1698 cross_compiling
=maybe
1699 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1700 If a cross compiler is detected then cross compile mode will be used." >&2
1701 elif test "x$build_alias" != "x$host_alias"; then
1707 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1709 test "$silent" = yes && exec 6>/dev
/null
1712 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1713 ac_ls_di
=`ls -di .` &&
1714 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1715 as_fn_error
"working directory cannot be determined"
1716 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1717 as_fn_error
"pwd does not report name of working directory"
1720 # Find the source files, if location was not specified.
1721 if test -z "$srcdir"; then
1722 ac_srcdir_defaulted
=yes
1723 # Try the directory containing this script, then the parent directory.
1724 ac_confdir
=`$as_dirname -- "$as_myself" ||
1725 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726 X"$as_myself" : 'X\(//\)[^/]' \| \
1727 X"$as_myself" : 'X\(//\)$' \| \
1728 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729 $as_echo X"$as_myself" |
1730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1752 ac_srcdir_defaulted
=no
1754 if test ! -r "$srcdir/$ac_unique_file"; then
1755 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1756 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1758 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1760 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1762 # When building in place, set srcdir=.
1763 if test "$ac_abs_confdir" = "$ac_pwd"; then
1766 # Remove unnecessary trailing slashes from srcdir.
1767 # Double slashes in file names in object file debugging info
1768 # mess up M-x gdb in Emacs.
1770 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1772 for ac_var
in $ac_precious_vars; do
1773 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1774 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1775 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1776 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1780 # Report the --help message.
1782 if test "$ac_init_help" = "long"; then
1783 # Omit some internal or obsolete options to make the list less imposing.
1784 # This message is too long to be a string in the A/UX 3.1 sh.
1786 \`configure' configures this package to adapt to many kinds of systems.
1788 Usage: $0 [OPTION]... [VAR=VALUE]...
1790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791 VAR=VALUE. See below for descriptions of some of the useful variables.
1793 Defaults for the options are specified in brackets.
1796 -h, --help display this help and exit
1797 --help=short display options specific to this package
1798 --help=recursive display the short help of all the included packages
1799 -V, --version display version information and exit
1800 -q, --quiet, --silent do not print \`checking...' messages
1801 --cache-file=FILE cache test results in FILE [disabled]
1802 -C, --config-cache alias for \`--cache-file=config.cache'
1803 -n, --no-create do not create output files
1804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1806 Installation directories:
1807 --prefix=PREFIX install architecture-independent files in PREFIX
1808 [$ac_default_prefix]
1809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1812 By default, \`make install' will install all the files in
1813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815 for instance \`--prefix=\$HOME'.
1817 For better control, use the options below.
1819 Fine tuning of the installation directories:
1820 --bindir=DIR user executables [EPREFIX/bin]
1821 --sbindir=DIR system admin executables [EPREFIX/sbin]
1822 --libexecdir=DIR program executables [EPREFIX/libexec]
1823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1826 --libdir=DIR object code libraries [EPREFIX/lib]
1827 --includedir=DIR C header files [PREFIX/include]
1828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1829 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1830 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1831 --infodir=DIR info documentation [DATAROOTDIR/info]
1832 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1833 --mandir=DIR man documentation [DATAROOTDIR/man]
1834 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1835 --htmldir=DIR html documentation [DOCDIR]
1836 --dvidir=DIR dvi documentation [DOCDIR]
1837 --pdfdir=DIR pdf documentation [DOCDIR]
1838 --psdir=DIR ps documentation [DOCDIR]
1844 --program-prefix=PREFIX prepend PREFIX to installed program names
1845 --program-suffix=SUFFIX append SUFFIX to installed program names
1846 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1849 --build=BUILD configure
for building on BUILD
[guessed
]
1850 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1851 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1855 if test -n "$ac_init_help"; then
1860 --disable-option-checking ignore unrecognized
--enable/--with options
1861 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1862 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1863 --enable-maintainer-mode enable make rules and dependencies not useful
1864 (and sometimes confusing
) to the casual installer
1865 --disable-dependency-tracking speeds up one-time build
1866 --enable-dependency-tracking do not reject slow dependency extractors
1868 Some influential environment variables
:
1869 CC C compiler
command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1872 nonstandard directory
<lib dir
>
1873 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1874 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1875 you have headers
in a nonstandard directory
<include dir
>
1878 Use these variables to override the choices made by
`configure' or to help
1879 it to find libraries and programs with nonstandard names/locations.
1881 Report bugs to the package provider.
1886 if test "$ac_init_help" = "recursive"; then
1887 # If there are subdirs, report their specific --help.
1888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1889 test -d "$ac_dir" ||
1890 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1898 # A ".." for each directory in $ac_dir_suffix.
1899 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1900 case $ac_top_builddir_sub in
1901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1905 ac_abs_top_builddir=$ac_pwd
1906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1907 # for backward compatibility:
1908 ac_top_builddir=$ac_top_build_prefix
1911 .) # We are building in place.
1913 ac_top_srcdir=$ac_top_builddir_sub
1914 ac_abs_top_srcdir=$ac_pwd ;;
1915 [\\/]* | ?:[\\/]* ) # Absolute name.
1916 ac_srcdir=$srcdir$ac_dir_suffix;
1917 ac_top_srcdir=$srcdir
1918 ac_abs_top_srcdir=$srcdir ;;
1920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1921 ac_top_srcdir=$ac_top_build_prefix$srcdir
1922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1926 cd "$ac_dir" || { ac_status=$?; continue; }
1927 # Check for guested configure.
1928 if test -f "$ac_srcdir/configure.gnu"; then
1930 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1931 elif test -f "$ac_srcdir/configure"; then
1933 $SHELL "$ac_srcdir/configure" --help=recursive
1935 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1937 cd "$ac_pwd" || { ac_status=$?; break; }
1941 test -n "$ac_init_help" && exit $ac_status
1942 if $ac_init_version; then
1945 generated by GNU Autoconf 2.64
1947 Copyright (C) 2009 Free Software Foundation, Inc.
1948 This configure script is free software; the Free Software Foundation
1949 gives unlimited permission to copy, distribute and modify it.
1954 ## ------------------------ ##
1955 ## Autoconf initialization. ##
1956 ## ------------------------ ##
1958 # ac_fn_c_try_compile LINENO
1959 # --------------------------
1960 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_compile ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext
1965 if { { ac_try="$ac_compile"
1967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1968 *) ac_try_echo
=$ac_try;;
1970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_compile") 2>conftest.err
1974 if test -s conftest.err
; then
1975 grep -v '^ *+' conftest.err
>conftest.er1
1976 cat conftest.er1
>&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest.
$ac_objext; then :
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.
$ac_ext >&5
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1994 } # ac_fn_c_try_compile
1996 # ac_fn_c_try_cpp LINENO
1997 # ----------------------
1998 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2001 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2002 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011 if test -s conftest.err; then
2012 grep -v '^ *+' conftest.err >conftest.er1
2013 cat conftest.er1 >&5
2014 mv -f conftest.er1 conftest.err
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } >/dev/null && {
2018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2019 test ! -s conftest.err
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2033 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2034 # -------------------------------------------------------
2035 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2036 # the include files in INCLUDES and setting the cache variable VAR
2038 ac_fn_c_check_header_mongrel ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2051 # Is the header compilable?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2053 $as_echo_n "checking $2 usability... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_header_compiler=yes
2062 ac_header_compiler=no
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2066 $as_echo "$ac_header_compiler" >&6; }
2068 # Is the header present?
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2070 $as_echo_n "checking $2 presence... " >&6; }
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2075 if ac_fn_c_try_cpp "$LINENO"; then :
2076 ac_header_preproc=yes
2078 ac_header_preproc=no
2080 rm -f conftest.err conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2082 $as_echo "$ac_header_preproc" >&6; }
2084 # So? What about this header?
2085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2088 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2094 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2096 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2098 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2100 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2108 $as_echo_n "(cached) " >&6
2110 eval "$3=\$ac_header_compiler"
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2118 } # ac_fn_c_check_header_mongrel
2120 # ac_fn_c_try_run LINENO
2121 # ----------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2123 # that executables *can* be run.
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_link"
2129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2130 *) ac_try_echo
=$ac_try;;
2132 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>&5
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2138 { { case "(($ac_try" in
2139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_try") 2>&5
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; }; }; then :
2150 $as_echo "$as_me: program exited with status $ac_status" >&5
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2154 ac_retval=$ac_status
2156 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2163 # -------------------------------------------------------
2164 # Tests whether HEADER exists and can be compiled using the include files in
2165 # INCLUDES, setting the cache variable VAR accordingly.
2166 ac_fn_c_check_header_compile ()
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2179 if ac_fn_c_try_compile "$LINENO"; then :
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191 } # ac_fn_c_check_header_compile
2193 # ac_fn_c_try_link LINENO
2194 # -----------------------
2195 # Try to link conftest.$ac_ext, and return whether this succeeded.
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 rm -f conftest.$ac_objext conftest$ac_exeext
2200 if { { ac_try="$ac_link"
2202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2203 *) ac_try_echo
=$ac_try;;
2205 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_link") 2>conftest.err
2209 if test -s conftest.err
; then
2210 grep -v '^ *+' conftest.err
>conftest.er1
2211 cat conftest.er1
>&5
2212 mv -f conftest.er1 conftest.err
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } && {
2216 test -z "$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 } && test -s conftest
$ac_exeext && {
2219 test "$cross_compiling" = yes ||
2220 $as_test_x conftest
$ac_exeext
2224 $as_echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.
$ac_ext >&5
2229 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2230 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2231 # interfere with the next link command; also delete a directory that is
2232 # left behind by Apple's compiler. We do this before executing the actions.
2233 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2237 } # ac_fn_c_try_link
2239 # ac_fn_c_check_func LINENO FUNC VAR
2240 # ----------------------------------
2241 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2242 ac_fn_c_check_func
()
2244 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2254 #define $2 innocuous_$2
2256 /* System header to define __stub macros and hopefully few prototypes,
2257 which can conflict with char $2 (); below.
2258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2259 <limits.h> exists even on freestanding compilers. */
2262 # include <limits.h>
2264 # include <assert.h>
2269 /* Override any GCC internal prototype to avoid an error.
2270 Use char because int might match the return type of a GCC
2271 builtin and then its argument prototype would still apply. */
2276 /* The GNU C library defines this for functions which it implements
2277 to always fail with ENOSYS. Some functions are actually named
2278 something starting with __ and the normal name is an alias. */
2279 #if defined __stub_$2 || defined __stub___$2
2291 if ac_fn_c_try_link
"$LINENO"; then :
2296 rm -f core conftest.err conftest.
$ac_objext \
2297 conftest
$ac_exeext conftest.
$ac_ext
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2304 } # ac_fn_c_check_func
2306 # ac_fn_c_check_decl LINENO SYMBOL VAR
2307 # ------------------------------------
2308 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2309 ac_fn_c_check_decl
()
2311 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2313 $as_echo_n "checking whether $2 is declared... " >&6; }
2314 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2331 if ac_fn_c_try_compile
"$LINENO"; then :
2336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2343 } # ac_fn_c_check_decl
2345 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2346 # --------------------------------------------
2347 # Tries to find the compile-time value of EXPR in a program that includes
2348 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2350 ac_fn_c_compute_int
()
2352 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2353 if test "$cross_compiling" = yes; then
2354 # Depending upon the size, compute the lo and hi bounds.
2355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) >= 0)];
2368 if ac_fn_c_try_compile
"$LINENO"; then :
2371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2377 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2384 if ac_fn_c_try_compile
"$LINENO"; then :
2385 ac_hi
=$ac_mid; break
2387 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2388 if test $ac_lo -le $ac_mid; then
2392 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2403 static int test_array [1 - 2 * !(($2) < 0)];
2410 if ac_fn_c_try_compile
"$LINENO"; then :
2413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2419 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2426 if ac_fn_c_try_compile
"$LINENO"; then :
2427 ac_lo
=$ac_mid; break
2429 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2430 if test $ac_mid -le $ac_hi; then
2434 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2444 # Binary search between lo and hi bounds.
2445 while test "x$ac_lo" != "x$ac_hi"; do
2446 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2453 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2460 if ac_fn_c_try_compile
"$LINENO"; then :
2463 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2468 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2475 static long int longval () { return $2; }
2476 static unsigned long int ulongval () { return $2; }
2483 FILE *f = fopen ("conftest.val", "w");
2488 long int i = longval ();
2491 fprintf (f, "%ld", i);
2495 unsigned long int i = ulongval ();
2498 fprintf (f, "%lu", i);
2500 /* Do not output a trailing newline, as this causes \r\n confusion
2501 on some platforms. */
2502 return ferror (f) || fclose (f) != 0;
2508 if ac_fn_c_try_run
"$LINENO"; then :
2509 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2521 } # ac_fn_c_compute_int
2523 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2524 # -------------------------------------------
2525 # Tests whether TYPE exists after having included INCLUDES, setting cache
2526 # variable VAR accordingly.
2527 ac_fn_c_check_type
()
2529 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2531 $as_echo_n "checking for $2... " >&6; }
2532 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2533 $as_echo_n "(cached) " >&6
2536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h. */
2548 if ac_fn_c_try_compile
"$LINENO"; then :
2549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2561 if ac_fn_c_try_compile
"$LINENO"; then :
2566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2575 } # ac_fn_c_check_type
2576 cat >config.log
<<_ACEOF
2577 This file contains any messages produced by compilers while
2578 running configure, to aid debugging if configure makes a mistake.
2580 It was created by $as_me, which was
2581 generated by GNU Autoconf 2.64. Invocation command line was
2593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir
=.
2617 $as_echo "PATH: $as_dir"
2633 # Keep a trace of the command line.
2634 # Strip out --no-create and --no-recursion so they do not pile up.
2635 # Strip out --silent because we don't want to record it for future runs.
2636 # Also quote any args containing shell meta-characters.
2637 # Make two passes to allow for proper duplicate-argument suppression.
2641 ac_must_keep_next
=false
2647 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2648 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2649 |
-silent |
--silent |
--silen |
--sile |
--sil)
2652 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2655 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2657 as_fn_append ac_configure_args1
" '$ac_arg'"
2658 if test $ac_must_keep_next = true
; then
2659 ac_must_keep_next
=false
# Got value, back to normal.
2662 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2663 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2664 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2665 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2666 case "$ac_configure_args0 " in
2667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2670 -* ) ac_must_keep_next
=true
;;
2673 as_fn_append ac_configure_args
" '$ac_arg'"
2678 { ac_configure_args0
=; unset ac_configure_args0
;}
2679 { ac_configure_args1
=; unset ac_configure_args1
;}
2681 # When interrupted or exit'd, cleanup temporary files, and complete
2682 # config.log. We remove comments because anyway the quotes in there
2683 # would cause problems or look ugly.
2684 # WARNING: Use '\'' to represent an apostrophe within the trap.
2685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2686 trap 'exit_status=$?
2687 # Save into config.log some information that might help in debugging.
2692 ## ---------------- ##
2693 ## Cache variables. ##
2694 ## ---------------- ##
2697 # The following way of writing the cache mishandles newlines in values,
2699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2700 eval ac_val=\$$ac_var
2704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2708 _ | IFS | as_nl) ;; #(
2709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2710 *) { eval $ac_var=; unset $ac_var;} ;;
2715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2716 *${as_nl}ac_space=\ *)
2718 "s/'\''/'\''\\\\'\'''\''/g;
2719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2730 ## ----------------- ##
2731 ## Output variables. ##
2732 ## ----------------- ##
2735 for ac_var in $ac_subst_vars
2737 eval ac_val=\$$ac_var
2739 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2741 $as_echo "$ac_var='\''$ac_val'\''"
2745 if test -n "$ac_subst_files"; then
2747 ## ------------------- ##
2748 ## File substitutions. ##
2749 ## ------------------- ##
2752 for ac_var
in $ac_subst_files
2754 eval ac_val
=\$
$ac_var
2756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2758 $as_echo "$ac_var='\''$ac_val'\''"
2763 if test -s confdefs.h; then
2773 test "$ac_signal" != 0 &&
2774 $as_echo "$as_me: caught signal $ac_signal"
2775 $as_echo "$as_me: exit $exit_status"
2777 rm -f core *.core core.conftest.* &&
2778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2781 for ac_signal
in 1 2 13 15; do
2782 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2786 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2787 rm -f -r conftest
* confdefs.h
2789 $as_echo "/* confdefs.h */" > confdefs.h
2791 # Predefined preprocessor variables.
2793 cat >>confdefs.h
<<_ACEOF
2794 #define PACKAGE_NAME "$PACKAGE_NAME"
2797 cat >>confdefs.h
<<_ACEOF
2798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2801 cat >>confdefs.h
<<_ACEOF
2802 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2805 cat >>confdefs.h
<<_ACEOF
2806 #define PACKAGE_STRING "$PACKAGE_STRING"
2809 cat >>confdefs.h
<<_ACEOF
2810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2813 cat >>confdefs.h
<<_ACEOF
2814 #define PACKAGE_URL "$PACKAGE_URL"
2818 # Let the site file select an alternate cache file if it wants to.
2819 # Prefer an explicitly selected file to automatically selected ones.
2822 if test -n "$CONFIG_SITE"; then
2823 ac_site_file1
=$CONFIG_SITE
2824 elif test "x$prefix" != xNONE
; then
2825 ac_site_file1
=$prefix/share
/config.site
2826 ac_site_file2
=$prefix/etc
/config.site
2828 ac_site_file1
=$ac_default_prefix/share
/config.site
2829 ac_site_file2
=$ac_default_prefix/etc
/config.site
2831 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2833 test "x$ac_site_file" = xNONE
&& continue
2834 if test -r "$ac_site_file"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2836 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2837 sed 's/^/| /' "$ac_site_file" >&5
2842 if test -r "$cache_file"; then
2843 # Some versions of bash will fail to source /dev/null (special
2844 # files actually), so we avoid doing that.
2845 if test -f "$cache_file"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2847 $as_echo "$as_me: loading cache $cache_file" >&6;}
2849 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2850 *) .
"./$cache_file";;
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2855 $as_echo "$as_me: creating cache $cache_file" >&6;}
2859 gl_func_list
="$gl_func_list btowc"
2860 gl_func_list
="$gl_func_list isblank"
2861 gl_func_list
="$gl_func_list iswctype"
2862 gl_func_list
="$gl_func_list mbsrtowcs"
2863 gl_func_list
="$gl_func_list mempcpy"
2864 gl_func_list
="$gl_func_list wmemchr"
2865 gl_func_list
="$gl_func_list wmemcpy"
2866 gl_func_list
="$gl_func_list wmempcpy"
2867 gl_header_list
="$gl_header_list wctype.h"
2868 gl_fnmatch_required
=GNU
2869 gl_func_list
="$gl_func_list alarm"
2870 gl_header_list
="$gl_header_list wchar.h"
2871 gl_header_list
="$gl_header_list stdint.h"
2872 gl_header_list
="$gl_header_list inttypes.h"
2873 gl_header_list
="$gl_header_list unistd.h"
2874 gl_func_list
="$gl_func_list symlink"
2875 gl_header_list
="$gl_header_list math.h"
2876 gl_func_list
="$gl_func_list mbsinit"
2877 gl_func_list
="$gl_func_list mbrtowc"
2878 gl_header_list
="$gl_header_list sys/mman.h"
2879 gl_func_list
="$gl_func_list mprotect"
2880 gl_header_list
="$gl_header_list features.h"
2881 gl_func_list
="$gl_func_list iswcntrl"
2882 # Check that the precious variables saved in the cache have kept the same
2884 ac_cache_corrupted
=false
2885 for ac_var
in $ac_precious_vars; do
2886 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2887 eval ac_new_set
=\
$ac_env_${ac_var}_set
2888 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2889 eval ac_new_val
=\
$ac_env_${ac_var}_value
2890 case $ac_old_set,$ac_new_set in
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2893 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2894 ac_cache_corrupted
=: ;;
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2897 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2898 ac_cache_corrupted
=: ;;
2901 if test "x$ac_old_val" != "x$ac_new_val"; then
2902 # differences in whitespace do not lead to failure.
2903 ac_old_val_w
=`echo x $ac_old_val`
2904 ac_new_val_w
=`echo x $ac_new_val`
2905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2908 ac_cache_corrupted
=:
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2912 eval $ac_var=\
$ac_old_val
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2915 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2920 # Pass precious variables to config.status.
2921 if test "$ac_new_set" = set; then
2923 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 *) ac_arg
=$ac_var=$ac_new_val ;;
2926 case " $ac_configure_args " in
2927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2928 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2932 if $ac_cache_corrupted; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2937 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2939 ## -------------------- ##
2940 ## Main body of script. ##
2941 ## -------------------- ##
2944 ac_cpp
='$CPP $CPPFLAGS'
2945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2950 ac_config_headers
="$ac_config_headers config.h:config.in"
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2954 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2955 # Check whether --enable-maintainer-mode was given.
2956 if test "${enable_maintainer_mode+set}" = set; then :
2957 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2959 USE_MAINTAINER_MODE
=no
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2963 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2964 if test $USE_MAINTAINER_MODE = yes; then
2965 MAINTAINER_MODE_TRUE
=
2966 MAINTAINER_MODE_FALSE
='#'
2968 MAINTAINER_MODE_TRUE
='#'
2969 MAINTAINER_MODE_FALSE
=
2972 MAINT
=$MAINTAINER_MODE_TRUE
2977 ac_cpp
='$CPP $CPPFLAGS'
2978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC
="$CC" # Let the user override the test.
2992 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir
=.
2997 for ac_exec_ext
in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3020 if test -z "$ac_cv_prog_CC"; then
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc
; ac_word
=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir
=.
3037 for ac_exec_ext
in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_ac_ct_CC
="gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3058 if test "x$ac_ct_CC" = x
; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned
=yes ;;
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if test "${ac_cv_prog_CC+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC
="$CC" # Let the user override the test.
3085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir
=.
3090 for ac_exec_ext
in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc
; ac_word
=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC
="$CC" # Let the user override the test.
3126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir
=.
3131 for ac_exec_ext
in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected
=yes
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy
$ac_cv_prog_CC
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3154 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog
in cl.exe
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC
="$CC" # Let the user override the test.
3184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir
=.
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3211 test -n "$CC" && break
3214 if test -z "$CC"; then
3216 for ac_prog
in cl.exe
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy
$ac_prog; ac_word
=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir
=.
3233 for ac_exec_ext
in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC
="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$ac_ct_CC" && break
3258 if test "x$ac_ct_CC" = x
; then
3261 case $cross_compiling:$ac_tool_warned in
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned
=yes ;;
3274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error
"no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details." "$LINENO" 5; }
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3283 for ac_option
in --version -v -V -qversion; do
3284 { { ac_try
="$ac_compiler $ac_option >&5"
3286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3293 if test -s conftest.err; then
3295 ... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3298 rm -f conftest.er1 conftest.err
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3317 ac_clean_files_save=$ac_clean_files
3318 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3319 # Try to create an executable without -o first, disregard a.out.
3320 # It will help us diagnose broken compilers, and finding out an intuition
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323 $as_echo_n "checking for C compiler default output file name... " >&6; }
3324 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3326 # The possible output files:
3327 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3330 for ac_file in $ac_files
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3339 if { { ac_try="$ac_link_default"
3341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3342 *) ac_try_echo
=$ac_try;;
3344 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_link_default") 2>&5
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3353 # so that the user can short-circuit this test for compilers unknown to
3355 for ac_file
in $ac_files ''
3357 test -f "$ac_file" ||
continue
3359 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3362 # We found the default executable, but exeext='' is most
3366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3368 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370 # We set ac_cv_exeext here because the later test for it is not
3371 # safe: cross compilers may not add the suffix if given an `-o'
3372 # argument, so we may need to know it at that point already.
3373 # Even if this section looks crufty: it has the advantage of
3380 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386 $as_echo "$ac_file" >&6; }
3387 if test -z "$ac_file"; then :
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.
$ac_ext >&5
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { as_fn_set_status
77
3394 as_fn_error
"C compiler cannot create executables
3395 See \`config.log' for more details." "$LINENO" 5; }; }
3397 ac_exeext
=$ac_cv_exeext
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402 $as_echo_n "checking whether the C compiler works... " >&6; }
3403 # If not cross compiling, check that we can run a simple program.
3404 if test "$cross_compiling" != yes; then
3405 if { ac_try
='./$ac_file'
3406 { { case "(($ac_try" in
3407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_try") 2>&5
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; }; then
3418 if test "$cross_compiling" = maybe; then
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error "cannot run C compiled programs.
3424 If you meant to cross compile
, use \
`--host'.
3425 See \`config.log
' for more details." "$LINENO" 5; }
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3432 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3433 ac_clean_files=$ac_clean_files_save
3434 # Check that the compiler produces executables we can run. If not, either
3435 # the compiler is broken, or we cross compile.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437 $as_echo_n "checking whether we are cross compiling... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439 $as_echo "$cross_compiling" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442 $as_echo_n "checking for suffix of executables... " >&6; }
3443 if { { ac_try="$ac_link"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3455 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3456 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3458 for ac_file
in conftest.exe conftest conftest.
*; do
3459 test -f "$ac_file" ||
continue
3461 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3462 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3471 See \`config.log' for more details." "$LINENO" 5; }
3473 rm -f conftest
$ac_cv_exeext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3475 $as_echo "$ac_cv_exeext" >&6; }
3477 rm -f conftest.
$ac_ext
3478 EXEEXT
=$ac_cv_exeext
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3481 $as_echo_n "checking for suffix of object files... " >&6; }
3482 if test "${ac_cv_objext+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3496 rm -f conftest.o conftest.obj
3497 if { { ac_try
="$ac_compile"
3499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compile") 2>&5
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; then :
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error "cannot compute suffix of object files
: cannot compile
3523 See \
`config.log' for more details." "$LINENO" 5; }
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3560 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3561 if test $ac_compiler_gnu = yes; then
3566 ac_test_CFLAGS=${CFLAGS+set}
3567 ac_save_CFLAGS=$CFLAGS
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3570 if test "${ac_cv_prog_cc_g+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3573 ac_save_c_werror_flag=$ac_c_werror_flag
3574 ac_c_werror_flag=yes
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3588 if ac_fn_c_try_compile "$LINENO"; then :
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3603 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3619 if ac_fn_c_try_compile "$LINENO"; then :
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3630 $as_echo "$ac_cv_prog_cc_g" >&6; }
3631 if test "$ac_test_CFLAGS" = set; then
3632 CFLAGS=$ac_save_CFLAGS
3633 elif test $ac_cv_prog_cc_g = yes; then
3634 if test "$GCC" = yes; then
3640 if test "$GCC" = yes; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3647 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3648 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 ac_cv_prog_cc_c89=no
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3657 #include <sys/types.h>
3658 #include <sys/stat.h>
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3673 s = g (p, va_arg (v,int));
3678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std. */
3685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3688 inside strings and character constants. */
3690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3692 int test (int i, double x);
3693 struct s1 {int (*f) (int a);};
3694 struct s2 {int (*f) (double a);};
3695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709 CC="$ac_save_CC $ac_arg"
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_c89=$ac_arg
3713 rm -f core conftest.err conftest.$ac_objext
3714 test "x$ac_cv_prog_cc_c89" != "xno" && break
3716 rm -f conftest.$ac_ext
3721 case "x$ac_cv_prog_cc_c89" in
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3724 $as_echo "none needed" >&6; } ;;
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3727 $as_echo "unsupported" >&6; } ;;
3729 CC="$CC $ac_cv_prog_cc_c89"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3733 if test "x$ac_cv_prog_cc_c89" != xno; then :
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3745 for ac_t in install-sh install.sh shtool; do
3746 if test -f "$ac_dir/$ac_t"; then
3748 ac_install_sh="$ac_aux_dir/$ac_t -c"
3753 if test -z "$ac_aux_dir"; then
3754 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3757 # These three variables are undocumented and unsupported,
3758 # and are intended to be withdrawn in a future Autoconf release.
3759 # They can cause serious problems if a builder's source tree is in a directory
3760 # whose full name contains unusual characters.
3761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3766 # Make sure we can run config.sub.
3767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3768 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3771 $as_echo_n "checking build system type... " >&6; }
3772 if test "${ac_cv_build+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3775 ac_build_alias=$build_alias
3776 test "x$ac_build_alias" = x &&
3777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3778 test "x$ac_build_alias" = x &&
3779 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3781 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3785 $as_echo "$ac_cv_build" >&6; }
3786 case $ac_cv_build in
3788 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3791 ac_save_IFS=$IFS; IFS='-'
3797 # Remember, the first character of IFS is used to create $*,
3798 # except with old shells:
3801 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3805 $as_echo_n "checking host system type... " >&6; }
3806 if test "${ac_cv_host+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3809 if test "x$host_alias" = x; then
3810 ac_cv_host=$ac_cv_build
3812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3813 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3818 $as_echo "$ac_cv_host" >&6; }
3821 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3824 ac_save_IFS=$IFS; IFS='-'
3830 # Remember, the first character of IFS is used to create $*,
3831 # except with old shells:
3834 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3845 # On Suns, sometimes $CPP names a directory.
3846 if test -n "$CPP" && test -d "$CPP"; then
3849 if test -z "$CPP"; then
3850 if test "${ac_cv_prog_CPP+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3853 # Double quotes because CPP needs to be expanded
3854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3857 for ac_c_preproc_warn_flag in '' yes
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3868 # include <limits.h>
3870 # include <assert.h>
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3877 # Broken: fails on valid input.
3880 rm -f conftest.err conftest.$ac_ext
3882 # OK, works on sane cases. Now check whether nonexistent headers
3883 # can be detected and how.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3888 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: success on invalid input.
3892 # Passes both tests.
3896 rm -f conftest.err conftest.$ac_ext
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.
$ac_ext
3901 if $ac_preproc_ok; then :
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3914 $as_echo "$CPP" >&6; }
3916 for ac_c_preproc_warn_flag
in '' yes
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
3920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
3922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3927 # include <limits.h>
3929 # include <assert.h>
3933 if ac_fn_c_try_cpp
"$LINENO"; then :
3936 # Broken: fails on valid input.
3939 rm -f conftest.err conftest.
$ac_ext
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #include <ac_nonexistent.h>
3947 if ac_fn_c_try_cpp
"$LINENO"; then :
3948 # Broken: success on invalid input.
3951 # Passes both tests.
3955 rm -f conftest.err conftest.
$ac_ext
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.
$ac_ext
3960 if $ac_preproc_ok; then :
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." "$LINENO" 5; }
3970 ac_cpp
='$CPP $CPPFLAGS'
3971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3977 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3981 if test -z "$GREP"; then
3982 ac_path_GREP_found
=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3985 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3988 test -z "$as_dir" && as_dir
=.
3989 for ac_prog
in grep ggrep
; do
3990 for ac_exec_ext
in '' $ac_executable_extensions; do
3991 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3993 # Check for GNU ac_path_GREP and select it if it is found.
3994 # Check for GNU $ac_path_GREP
3995 case `"$ac_path_GREP" --version 2>&1` in
3997 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4000 $as_echo_n 0123456789 >"conftest.in"
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 $as_echo 'GREP' >> "conftest.nl"
4007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4008 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4009 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_GREP
="$ac_path_GREP"
4013 ac_path_GREP_max
=$ac_count
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4018 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4021 $ac_path_GREP_found && break 3
4026 if test -z "$ac_cv_path_GREP"; then
4027 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4030 ac_cv_path_GREP
=$GREP
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4035 $as_echo "$ac_cv_path_GREP" >&6; }
4036 GREP
="$ac_cv_path_GREP"
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4040 $as_echo_n "checking for egrep... " >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4044 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4045 then ac_cv_path_EGREP
="$GREP -E"
4047 if test -z "$EGREP"; then
4048 ac_path_EGREP_found
=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4051 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4054 test -z "$as_dir" && as_dir
=.
4055 for ac_prog
in egrep; do
4056 for ac_exec_ext
in '' $ac_executable_extensions; do
4057 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4059 # Check for GNU ac_path_EGREP and select it if it is found.
4060 # Check for GNU $ac_path_EGREP
4061 case `"$ac_path_EGREP" --version 2>&1` in
4063 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4066 $as_echo_n 0123456789 >"conftest.in"
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'EGREP' >> "conftest.nl"
4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4074 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4075 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_EGREP
="$ac_path_EGREP"
4079 ac_path_EGREP_max
=$ac_count
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4084 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4087 $ac_path_EGREP_found && break 3
4092 if test -z "$ac_cv_path_EGREP"; then
4093 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4096 ac_cv_path_EGREP
=$EGREP
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4102 $as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP
="$ac_cv_path_EGREP"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4107 $as_echo_n "checking for ANSI C header files... " >&6; }
4108 if test "${ac_cv_header_stdc+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4126 if ac_fn_c_try_compile
"$LINENO"; then :
4127 ac_cv_header_stdc
=yes
4129 ac_cv_header_stdc
=no
4131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4133 if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev
/null
2>&1; then :
4144 ac_cv_header_stdc
=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "free" >/dev
/null
2>&1; then :
4161 ac_cv_header_stdc
=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4169 if test "$cross_compiling" = yes; then :
4172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 #if ((' ' & 0x0FF) == 0x020)
4177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4180 # define ISLOWER(c) \
4181 (('a' <= (c) && (c) <= 'i') \
4182 || ('j' <= (c) && (c) <= 'r') \
4183 || ('s' <= (c) && (c) <= 'z'))
4184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4192 for (i = 0; i < 256; i++)
4193 if (XOR (islower (i), ISLOWER (i))
4194 || toupper (i) != TOUPPER (i))
4199 if ac_fn_c_try_run
"$LINENO"; then :
4202 ac_cv_header_stdc
=no
4204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4205 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4211 $as_echo "$ac_cv_header_stdc" >&6; }
4212 if test $ac_cv_header_stdc = yes; then
4214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4220 inttypes.h stdint.h unistd.h
4222 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4225 eval as_val
=\$
$as_ac_Header
4226 if test "x$as_val" = x
""yes; then :
4227 cat >>confdefs.h
<<_ACEOF
4228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4239 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4240 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4247 if test "$MINIX" = yes; then
4249 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4252 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4255 $as_echo "#define _MINIX 1" >>confdefs.h
4262 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4269 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4270 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4276 # define __EXTENSIONS__ 1
4277 $ac_includes_default
4286 if ac_fn_c_try_compile
"$LINENO"; then :
4287 ac_cv_safe_to_define___extensions__
=yes
4289 ac_cv_safe_to_define___extensions__
=no
4291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4294 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4295 test $ac_cv_safe_to_define___extensions__ = yes &&
4296 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4298 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4300 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4302 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4304 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4306 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4312 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4313 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4327 gl_cv_c_amsterdam_compiler
=yes
4329 gl_cv_c_amsterdam_compiler
=no
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4336 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4337 if test -z "$AR"; then
4338 if test $gl_cv_c_amsterdam_compiler = yes; then
4340 if test -z "$ARFLAGS"; then
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4346 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_AR+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4352 if test -n "$AR"; then
4353 ac_cv_prog_AR
="$AR" # Let the user override the test.
4355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir
=.
4360 for ac_exec_ext
in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 if test -n "$AR"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4375 $as_echo "$AR" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4383 if test -z "$ac_cv_prog_AR"; then
4385 # Extract the first word of "ar", so it can be a program name with args.
4386 set dummy
ar; ac_word
=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4392 if test -n "$ac_ct_AR"; then
4393 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir
=.
4400 for ac_exec_ext
in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_AR
="ar"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4413 if test -n "$ac_ct_AR"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4415 $as_echo "$ac_ct_AR" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4421 if test "x$ac_ct_AR" = x
; then
4424 case $cross_compiling:$ac_tool_warned in
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428 ac_tool_warned
=yes ;;
4436 if test -z "$ARFLAGS"; then
4441 if test -z "$ARFLAGS"; then
4447 if test -z "$RANLIB"; then
4448 if test $gl_cv_c_amsterdam_compiler = yes; then
4451 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4453 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -n "$RANLIB"; then
4460 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir
=.
4467 for ac_exec_ext
in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 RANLIB
=$ac_cv_prog_RANLIB
4480 if test -n "$RANLIB"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4482 $as_echo "$RANLIB" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4490 if test -z "$ac_cv_prog_RANLIB"; then
4491 ac_ct_RANLIB
=$RANLIB
4492 # Extract the first word of "ranlib", so it can be a program name with args.
4493 set dummy ranlib
; ac_word
=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4499 if test -n "$ac_ct_RANLIB"; then
4500 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4506 test -z "$as_dir" && as_dir
=.
4507 for ac_exec_ext
in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4520 if test -n "$ac_ct_RANLIB"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4522 $as_echo "$ac_ct_RANLIB" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4528 if test "x$ac_ct_RANLIB" = x
; then
4531 case $cross_compiling:$ac_tool_warned in
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535 ac_tool_warned
=yes ;;
4537 RANLIB
=$ac_ct_RANLIB
4540 RANLIB
="$ac_cv_prog_RANLIB"
4556 # IEEE behaviour is the default on all CPUs except Alpha and SH
4557 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4558 # and the GCC 4.1.2 manual).
4561 # On Alpha systems, a compiler option provides the behaviour.
4562 # See the ieee(3) manual page, also available at
4563 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4564 if test -n "$GCC"; then
4565 # GCC has the option -mieee.
4566 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4567 CPPFLAGS
="$CPPFLAGS -mieee"
4569 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4570 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4571 CPPFLAGS
="$CPPFLAGS -ieee"
4575 if test -n "$GCC"; then
4576 # GCC has the option -mieee.
4577 CPPFLAGS
="$CPPFLAGS -mieee"
4584 # Code from module alloca:
4585 # Code from module alloca-opt:
4586 # Code from module configmake:
4587 # Code from module extensions:
4589 # Code from module extern-inline:
4590 # Code from module float:
4591 # Code from module fnmatch:
4592 # Code from module fnmatch-gnu:
4593 # Code from module fpieee:
4595 # Code from module fpucw:
4596 # Code from module frexp:
4597 # Code from module frexpl:
4598 # Code from module include_next:
4599 # Code from module inttypes:
4600 # Code from module inttypes-incomplete:
4601 # Code from module isnand-nolibm:
4602 # Code from module isnanl-nolibm:
4603 # Code from module localcharset:
4604 # Code from module math:
4605 # Code from module mbrtowc:
4606 # Code from module mbsinit:
4607 # Code from module mbsrtowcs:
4608 # Code from module memchr:
4609 # Code from module memmem:
4610 # Code from module memmem-simple:
4611 # Code from module multiarch:
4612 # Code from module snippet/arg-nonnull:
4613 # Code from module snippet/c++defs:
4614 # Code from module snippet/warn-on-use:
4615 # Code from module stdbool:
4616 # Code from module stddef:
4617 # Code from module stdint:
4618 # Code from module streq:
4619 # Code from module string:
4620 # Code from module strnlen1:
4621 # Code from module update-copyright:
4622 # Code from module verify:
4623 # Code from module wchar:
4624 # Code from module wctype-h:
4627 ac_cpp
='$CPP $CPPFLAGS'
4628 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4633 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC
="$CC" # Let the user override the test.
4642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir
=.
4647 for ac_exec_ext
in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4670 if test -z "$ac_cv_prog_CC"; then
4672 # Extract the first word of "gcc", so it can be a program name with args.
4673 set dummy gcc
; ac_word
=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir
=.
4687 for ac_exec_ext
in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_CC
="gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4702 $as_echo "$ac_ct_CC" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4708 if test "x$ac_ct_CC" = x
; then
4711 case $cross_compiling:$ac_tool_warned in
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715 ac_tool_warned
=yes ;;
4723 if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC
="$CC" # Let the user override the test.
4735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir
=.
4740 for ac_exec_ext
in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 if test -n "$CC"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4755 $as_echo "$CC" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4764 if test -z "$CC"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766 set dummy cc
; ac_word
=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_CC+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC
="$CC" # Let the user override the test.
4776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir
=.
4781 for ac_exec_ext
in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected
=yes
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy
$ac_cv_prog_CC
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4804 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4810 if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4820 if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog
in cl.exe
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_CC+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -n "$CC"; then
4832 ac_cv_prog_CC
="$CC" # Let the user override the test.
4834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4838 test -z "$as_dir" && as_dir
=.
4839 for ac_exec_ext
in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 if test -n "$CC"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4854 $as_echo "$CC" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4861 test -n "$CC" && break
4864 if test -z "$CC"; then
4866 for ac_prog
in cl.exe
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy
$ac_prog; ac_word
=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4875 if test -n "$ac_ct_CC"; then
4876 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir
=.
4883 for ac_exec_ext
in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_CC
="$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4896 if test -n "$ac_ct_CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4898 $as_echo "$ac_ct_CC" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4905 test -n "$ac_ct_CC" && break
4908 if test "x$ac_ct_CC" = x
; then
4911 case $cross_compiling:$ac_tool_warned in
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915 ac_tool_warned
=yes ;;
4924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error
"no acceptable C compiler found in \$PATH
4927 See \`config.log' for more details." "$LINENO" 5; }
4929 # Provide some information about the compiler.
4930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4933 for ac_option
in --version -v -V -qversion; do
4934 { { ac_try
="$ac_compiler $ac_option >&5"
4936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 $as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4943 if test -s conftest.err; then
4945 ... rest of stderr output deleted ...
4946 10q' conftest.err >conftest.er1
4947 cat conftest.er1 >&5
4948 rm -f conftest.er1 conftest.err
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4955 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4956 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4973 if ac_fn_c_try_compile "$LINENO"; then :
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4983 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4984 if test $ac_compiler_gnu = yes; then
4989 ac_test_CFLAGS=${CFLAGS+set}
4990 ac_save_CFLAGS=$CFLAGS
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4992 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4993 if test "${ac_cv_prog_cc_g+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4996 ac_save_c_werror_flag=$ac_c_werror_flag
4997 ac_c_werror_flag=yes
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5011 if ac_fn_c_try_compile "$LINENO"; then :
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5026 if ac_fn_c_try_compile "$LINENO"; then :
5029 ac_c_werror_flag=$ac_save_c_werror_flag
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5042 if ac_fn_c_try_compile "$LINENO"; then :
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 ac_c_werror_flag=$ac_save_c_werror_flag
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5053 $as_echo "$ac_cv_prog_cc_g" >&6; }
5054 if test "$ac_test_CFLAGS" = set; then
5055 CFLAGS=$ac_save_CFLAGS
5056 elif test $ac_cv_prog_cc_g = yes; then
5057 if test "$GCC" = yes; then
5063 if test "$GCC" = yes; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5070 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5071 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5074 ac_cv_prog_cc_c89=no
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5080 #include <sys/types.h>
5081 #include <sys/stat.h>
5082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5083 struct buf { int x; };
5084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5085 static char *e (p, i)
5091 static char *f (char * (*g) (char **, int), char **p, ...)
5096 s = g (p, va_arg (v,int));
5101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5102 function prototypes and stuff, but not '\xHH' hex character constants.
5103 These don't provoke an error unfortunately, instead are silently treated
5104 as 'x'. The following induces an error, until -std is added to get
5105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5106 array size at least. It's necessary to write '\x00'==0 to get something
5107 that's true only with -std. */
5108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5111 inside strings and character constants. */
5113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5115 int test (int i, double x);
5116 struct s1 {int (*f) (int a);};
5117 struct s2 {int (*f) (double a);};
5118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c89=$ac_arg
5136 rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c89" != "xno" && break
5139 rm -f conftest.$ac_ext
5144 case "x$ac_cv_prog_cc_c89" in
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147 $as_echo "none needed" >&6; } ;;
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 $as_echo "unsupported" >&6; } ;;
5152 CC="$CC $ac_cv_prog_cc_c89"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5156 if test "x$ac_cv_prog_cc_c89" != xno; then :
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5171 for ac_dir in ../.. "$srcdir"/../..; do
5172 for ac_t in install-sh install.sh shtool; do
5173 if test -f "$ac_dir/$ac_t"; then
5175 ac_install_sh="$ac_aux_dir/$ac_t -c"
5180 if test -z "$ac_aux_dir"; then
5181 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5184 # These three variables are undocumented and unsupported,
5185 # and are intended to be withdrawn in a future Autoconf release.
5186 # They can cause serious problems if a builder's source tree is in a directory
5187 # whose full name contains unusual characters.
5188 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5189 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5190 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5194 $as_echo_n "checking target system type... " >&6; }
5195 if test "${ac_cv_target+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 if test "x$target_alias" = x; then
5199 ac_cv_target=$ac_cv_host
5201 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5202 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5207 $as_echo "$ac_cv_target" >&6; }
5208 case $ac_cv_target in
5210 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5212 target=$ac_cv_target
5213 ac_save_IFS=$IFS; IFS='-'
5219 # Remember, the first character of IFS is used to create $*,
5220 # except with old shells:
5223 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
5226 # The aliases save the names the user supplied, while $host etc.
5227 # will get canonicalized.
5228 test -n "$target_alias" &&
5229 test "$program_prefix$program_suffix$program_transform_name" = \
5231 program_prefix=${target_alias}-
5239 LIBC_FATAL_STDERR_=1
5240 export LIBC_FATAL_STDERR_
5242 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5243 # for constant arguments. Useless!
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5245 $as_echo_n "checking for working alloca.h... " >&6; }
5246 if test "${ac_cv_working_alloca_h+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5255 char *p = (char *) alloca (2 * sizeof (int));
5261 if ac_fn_c_try_link "$LINENO"; then :
5262 ac_cv_working_alloca_h=yes
5264 ac_cv_working_alloca_h=no
5266 rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5270 $as_echo "$ac_cv_working_alloca_h" >&6; }
5271 if test $ac_cv_working_alloca_h = yes; then
5273 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5278 $as_echo_n "checking for alloca... " >&6; }
5279 if test "${ac_cv_func_alloca_works+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5285 # define alloca __builtin_alloca
5288 # include <malloc.h>
5289 # define alloca _alloca
5291 # ifdef HAVE_ALLOCA_H
5292 # include <alloca.h>
5297 # ifndef alloca /* predefined by HP cc +Olibcalls */
5308 char *p = (char *) alloca (1);
5314 if ac_fn_c_try_link "$LINENO"; then :
5315 ac_cv_func_alloca_works=yes
5317 ac_cv_func_alloca_works=no
5319 rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5323 $as_echo "$ac_cv_func_alloca_works" >&6; }
5325 if test $ac_cv_func_alloca_works = yes; then
5327 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5330 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5331 # that cause trouble. Some versions do not even contain alloca or
5332 # contain a buggy version. If you still want to use their alloca,
5333 # use ar to extract alloca.o from them instead of compiling alloca.c.
5339 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5341 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5345 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5346 if test "${ac_cv_os_cray+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #if defined CRAY && ! defined CRAY2
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "webecray" >/dev/null 2>&1; then :
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5368 $as_echo "$ac_cv_os_cray" >&6; }
5369 if test $ac_cv_os_cray = yes; then
5370 for ac_func in _getb67 GETB67 getb67; do
5371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5373 eval as_val=\$$as_ac_var
5374 if test "x$as_val" = x""yes; then :
5376 cat >>confdefs.h <<_ACEOF
5377 #define CRAY_STACKSEG_END $ac_func
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5387 $as_echo_n "checking stack direction for C alloca... " >&6; }
5388 if test "${ac_cv_c_stack_direction+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5391 if test "$cross_compiling" = yes; then :
5392 ac_cv_c_stack_direction=0
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 $ac_includes_default
5398 find_stack_direction (int *addr, int depth)
5403 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5404 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5409 main (int argc, char **argv)
5411 return find_stack_direction (0, argc + !argv + 20) < 0;
5414 if ac_fn_c_try_run "$LINENO"; then :
5415 ac_cv_c_stack_direction=1
5417 ac_cv_c_stack_direction=-1
5419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5420 conftest.$ac_objext conftest.beam conftest.$ac_ext
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5425 $as_echo "$ac_cv_c_stack_direction" >&6; }
5426 cat >>confdefs.h <<_ACEOF
5427 #define STACK_DIRECTION $ac_cv_c_stack_direction
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5439 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5440 if test "${gl_cv_have_include_next+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5443 rm -rf conftestd1a conftestd1b conftestd2
5444 mkdir conftestd1a conftestd1b conftestd2
5445 cat <<EOF > conftestd1a/conftest.h
5446 #define DEFINED_IN_CONFTESTD1
5447 #include_next <conftest.h>
5448 #ifdef DEFINED_IN_CONFTESTD2
5451 #error "include_next doesn't work"
5454 cat <<EOF > conftestd1b/conftest.h
5455 #define DEFINED_IN_CONFTESTD1
5457 #include_next <conftest.h>
5458 #ifdef DEFINED_IN_CONFTESTD2
5461 #error "include_next doesn't work"
5464 cat <<EOF > conftestd2/conftest.h
5465 #ifndef DEFINED_IN_CONFTESTD1
5466 #error "include_next test doesn't work"
5468 #define DEFINED_IN_CONFTESTD2
5470 gl_save_CPPFLAGS="$CPPFLAGS"
5471 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #include <conftest.h>
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 gl_cv_have_include_next=yes
5479 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #include <conftest.h>
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 gl_cv_have_include_next=buggy
5487 gl_cv_have_include_next=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 CPPFLAGS="$gl_save_CPPFLAGS"
5494 rm -rf conftestd1a conftestd1b conftestd2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5498 $as_echo "$gl_cv_have_include_next" >&6; }
5499 PRAGMA_SYSTEM_HEADER=
5500 if test $gl_cv_have_include_next = yes; then
5501 INCLUDE_NEXT=include_next
5502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5503 if test -n "$GCC"; then
5504 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5507 if test $gl_cv_have_include_next = buggy; then
5508 INCLUDE_NEXT=include
5509 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5511 INCLUDE_NEXT=include
5512 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5519 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5520 if test "${gl_cv_pragma_columns+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532 $EGREP "choke me" >/dev/null 2>&1; then :
5533 gl_cv_pragma_columns=yes
5535 gl_cv_pragma_columns=no
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5542 $as_echo "$gl_cv_pragma_columns" >&6; }
5543 if test $gl_cv_pragma_columns = yes; then
5544 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5553 $as_echo_n "checking for mbstate_t... " >&6; }
5554 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 $ac_includes_default
5560 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5562 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5563 included before <wchar.h>. */
5571 mbstate_t x; return sizeof x;
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_type_mbstate_t=yes
5579 ac_cv_type_mbstate_t=no
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5584 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5585 if test $ac_cv_type_mbstate_t = yes; then
5587 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5591 $as_echo "#define mbstate_t int" >>confdefs.h
5599 for ac_func in $gl_func_list
5601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5603 eval as_val=\$$as_ac_var
5604 if test "x$as_val" = x""yes; then :
5605 cat >>confdefs.h <<_ACEOF
5606 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5655 for ac_header in $gl_header_list
5657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5658 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5659 eval as_val=\$$as_ac_Header
5660 if test "x$as_val" = x""yes; then :
5661 cat >>confdefs.h <<_ACEOF
5662 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5749 GNULIB_REMAINDERF=0;
5750 GNULIB_REMAINDERL=0;
5836 HAVE_DECL_COPYSIGNF=1;
5853 HAVE_DECL_REMAINDER=1;
5854 HAVE_DECL_REMAINDERL=1;
5916 REPLACE_REMAINDER=0;
5917 REPLACE_REMAINDERF=0;
5918 REPLACE_REMAINDERL=0;
5923 REPLACE_SIGNBIT_USING_GCC=0;
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
5931 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
5932 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5943 int e; return frexp (x, &e) > 0;
5948 if ac_fn_c_try_link "$LINENO"; then :
5949 gl_cv_func_frexp_no_libm=yes
5951 gl_cv_func_frexp_no_libm=no
5953 rm -f core conftest.err conftest.$ac_objext \
5954 conftest$ac_exeext conftest.$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
5958 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
5967 $as_echo_n "checking whether long double and double are the same... " >&6; }
5968 if test "${gl_cv_long_double_equals_double+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5977 typedef int check[sizeof (long double) == sizeof (double)
5978 && LDBL_MANT_DIG == DBL_MANT_DIG
5979 && LDBL_MAX_EXP == DBL_MAX_EXP
5980 && LDBL_MIN_EXP == DBL_MIN_EXP
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 gl_cv_long_double_equals_double=yes
5990 gl_cv_long_double_equals_double=no
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
5996 $as_echo "$gl_cv_long_double_equals_double" >&6; }
5997 if test $gl_cv_long_double_equals_double = yes; then
5999 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6001 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6003 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6009 $as_echo_n "checking for unsigned long long int... " >&6; }
6010 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6013 ac_cv_type_unsigned_long_long_int=yes
6014 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6018 /* For now, do not test the preprocessor; as of 2007 there are too many
6019 implementations with broken preprocessors. Perhaps this can
6020 be revisited in 2012. In the meantime, code should not expect
6021 #if to work with literals wider than 32 bits. */
6022 /* Test literals. */
6023 long long int ll = 9223372036854775807ll;
6024 long long int nll = -9223372036854775807LL;
6025 unsigned long long int ull = 18446744073709551615ULL;
6026 /* Test constant expressions. */
6027 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6029 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6035 /* Test availability of runtime routines for shift and division. */
6036 long long int llmax = 9223372036854775807ll;
6037 unsigned long long int ullmax = 18446744073709551615ull;
6038 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6039 | (llmax / ll) | (llmax % ll)
6040 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6041 | (ullmax / ull) | (ullmax % ull));
6047 if ac_fn_c_try_link "$LINENO"; then :
6050 ac_cv_type_unsigned_long_long_int=no
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6057 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6058 if test $ac_cv_type_unsigned_long_long_int = yes; then
6060 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6067 $as_echo_n "checking for long long int... " >&6; }
6068 if test "${ac_cv_type_long_long_int+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6071 ac_cv_type_long_long_int=yes
6072 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6073 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6074 if test $ac_cv_type_long_long_int = yes; then
6075 if test "$cross_compiling" = yes; then :
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6083 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6084 # define LLONG_MAX (HALF - 1 + HALF)
6089 long long int n = 1;
6093 long long int m = n << i;
6096 if (LLONG_MAX / 2 < m)
6104 if ac_fn_c_try_run "$LINENO"; then :
6107 ac_cv_type_long_long_int=no
6109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6110 conftest.$ac_objext conftest.beam conftest.$ac_ext
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6117 $as_echo "$ac_cv_type_long_long_int" >&6; }
6118 if test $ac_cv_type_long_long_int = yes; then
6120 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6135 gl_cv_c_multiarch=no
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138 #ifndef __APPLE_CC__
6139 not a universal capable compiler
6144 if ac_fn_c_try_compile "$LINENO"; then :
6148 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6149 if test -n "$prev"; then
6151 i?86 | x86_64 | ppc | ppc64)
6152 if test -z "$arch" || test "$arch" = "$word"; then
6155 gl_cv_c_multiarch=yes
6161 if test "x$word" = "x-arch"; then
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 if test $gl_cv_c_multiarch = yes; then
6170 APPLE_UNIVERSAL_BUILD=1
6172 APPLE_UNIVERSAL_BUILD=0
6179 if test $ac_cv_type_long_long_int = yes; then
6180 HAVE_LONG_LONG_INT=1
6182 HAVE_LONG_LONG_INT=0
6186 if test $ac_cv_type_unsigned_long_long_int = yes; then
6187 HAVE_UNSIGNED_LONG_LONG_INT=1
6189 HAVE_UNSIGNED_LONG_LONG_INT=0
6200 if test $ac_cv_header_wchar_h = yes; then
6207 if test $ac_cv_header_inttypes_h = yes; then
6214 if test $ac_cv_header_sys_types_h = yes; then
6236 if test $gl_cv_have_include_next = yes; then
6237 gl_cv_next_stdint_h='<'stdint.h'>'
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6240 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6241 if test "${gl_cv_next_stdint_h+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
6245 if test $ac_cv_header_stdint_h = yes; then
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6254 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6255 *) gl_absname_cpp="$ac_cpp" ;;
6260 gl_dirsep_regex='[/\\]'
6263 gl_dirsep_regex='\/'
6266 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6268 gl_header_literal_regex=`echo 'stdint.h' \
6269 |
sed -e "$gl_make_literal_regex_sed"`
6270 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6271 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6276 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6277 sed -n "$gl_absolute_header_sed"`'"'
6279 gl_cv_next_stdint_h='<'stdint.h'>'
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6285 $as_echo "$gl_cv_next_stdint_h" >&6; }
6287 NEXT_STDINT_H=$gl_cv_next_stdint_h
6289 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6291 gl_next_as_first_directive='<'stdint.h'>'
6293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6294 gl_next_as_first_directive=$gl_cv_next_stdint_h
6296 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6301 if test $ac_cv_header_stdint_h = yes; then
6308 if test $ac_cv_header_stdint_h = yes; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6310 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6311 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6314 gl_cv_header_working_stdint_h=no
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6319 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6321 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6322 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6323 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6327 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6328 included before <wchar.h>. */
6339 int8_t a1 = INT8_MAX;
6340 int8_t a1min = INT8_MIN;
6343 int16_t a2 = INT16_MAX;
6344 int16_t a2min = INT16_MIN;
6347 int32_t a3 = INT32_MAX;
6348 int32_t a3min = INT32_MIN;
6351 int64_t a4 = INT64_MAX;
6352 int64_t a4min = INT64_MIN;
6355 uint8_t b1 = UINT8_MAX;
6357 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6360 uint16_t b2 = UINT16_MAX;
6363 uint32_t b3 = UINT32_MAX;
6366 uint64_t b4 = UINT64_MAX;
6368 int_least8_t c1 = INT8_C (0x7f);
6369 int_least8_t c1max = INT_LEAST8_MAX;
6370 int_least8_t c1min = INT_LEAST8_MIN;
6371 int_least16_t c2 = INT16_C (0x7fff);
6372 int_least16_t c2max = INT_LEAST16_MAX;
6373 int_least16_t c2min = INT_LEAST16_MIN;
6374 int_least32_t c3 = INT32_C (0x7fffffff);
6375 int_least32_t c3max = INT_LEAST32_MAX;
6376 int_least32_t c3min = INT_LEAST32_MIN;
6377 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6378 int_least64_t c4max = INT_LEAST64_MAX;
6379 int_least64_t c4min = INT_LEAST64_MIN;
6380 uint_least8_t d1 = UINT8_C (0xff);
6381 uint_least8_t d1max = UINT_LEAST8_MAX;
6382 uint_least16_t d2 = UINT16_C (0xffff);
6383 uint_least16_t d2max = UINT_LEAST16_MAX;
6384 uint_least32_t d3 = UINT32_C (0xffffffff);
6385 uint_least32_t d3max = UINT_LEAST32_MAX;
6386 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6387 uint_least64_t d4max = UINT_LEAST64_MAX;
6388 int_fast8_t e1 = INT_FAST8_MAX;
6389 int_fast8_t e1min = INT_FAST8_MIN;
6390 int_fast16_t e2 = INT_FAST16_MAX;
6391 int_fast16_t e2min = INT_FAST16_MIN;
6392 int_fast32_t e3 = INT_FAST32_MAX;
6393 int_fast32_t e3min = INT_FAST32_MIN;
6394 int_fast64_t e4 = INT_FAST64_MAX;
6395 int_fast64_t e4min = INT_FAST64_MIN;
6396 uint_fast8_t f1 = UINT_FAST8_MAX;
6397 uint_fast16_t f2 = UINT_FAST16_MAX;
6398 uint_fast32_t f3 = UINT_FAST32_MAX;
6399 uint_fast64_t f4 = UINT_FAST64_MAX;
6401 intptr_t g = INTPTR_MAX;
6402 intptr_t gmin = INTPTR_MIN;
6405 uintptr_t h = UINTPTR_MAX;
6407 intmax_t i = INTMAX_MAX;
6408 uintmax_t j = UINTMAX_MAX;
6410 #include <limits.h> /* for CHAR_BIT */
6411 #define TYPE_MINIMUM(t) \
6412 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6413 #define TYPE_MAXIMUM(t) \
6414 ((t) ((t) 0 < (t) -1 \
6416 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6419 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6420 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6422 /* Detect bug in FreeBSD 6.0 / ia64. */
6423 int check_SIG_ATOMIC:
6424 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6425 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6427 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6429 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6430 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6432 /* Detect bug in mingw. */
6434 WINT_MIN == TYPE_MINIMUM (wint_t)
6435 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6438 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6440 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6442 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6444 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6446 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6449 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6452 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6455 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6457 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6458 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6459 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6460 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6461 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6462 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6463 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6464 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6465 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6466 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6467 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 if test "$cross_compiling" = yes; then :
6480 gl_cv_header_working_stdint_h=yes
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6487 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6491 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6492 included before <wchar.h>. */
6504 #define MVAL(macro) MVAL1(macro)
6505 #define MVAL1(expression) #expression
6506 static const char *macro_values[] =
6540 for (mv = macro_values; *mv != NULL; mv++)
6542 const char *value = *mv;
6543 /* Test whether it looks like a cast expression. */
6544 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6545 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6546 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6547 || strncmp (value, "((int)"/*)*/, 6) == 0
6548 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6549 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6550 return mv - macro_values + 1;
6558 if ac_fn_c_try_run "$LINENO"; then :
6559 gl_cv_header_working_stdint_h=yes
6561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6562 conftest.$ac_objext conftest.beam conftest.$ac_ext
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6571 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6573 if test "$gl_cv_header_working_stdint_h" = yes; then
6576 for ac_header in sys/inttypes.h sys/bitypes.h
6578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6579 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6580 eval as_val=\$$as_ac_Header
6581 if test "x$as_val" = x""yes; then :
6582 cat >>confdefs.h <<_ACEOF
6583 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6590 if test $ac_cv_header_sys_inttypes_h = yes; then
6591 HAVE_SYS_INTTYPES_H=1
6593 HAVE_SYS_INTTYPES_H=0
6596 if test $ac_cv_header_sys_bitypes_h = yes; then
6597 HAVE_SYS_BITYPES_H=1
6599 HAVE_SYS_BITYPES_H=0
6605 if test $APPLE_UNIVERSAL_BUILD = 0; then
6608 for gltype in ptrdiff_t size_t ; do
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6610 $as_echo_n "checking for bit size of $gltype... " >&6; }
6611 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6612 $as_echo_n "(cached) " >&6
6614 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6615 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6616 included before <wchar.h>. */
6625 #include <limits.h>"; then :
6631 eval gl_cv_bitsizeof_${gltype}=\$result
6634 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6636 $as_echo "$ac_res" >&6; }
6637 eval result=\$gl_cv_bitsizeof_${gltype}
6638 if test $result = unknown; then
6641 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6642 cat >>confdefs.h <<_ACEOF
6643 #define BITSIZEOF_${GLTYPE} $result
6646 eval BITSIZEOF_${GLTYPE}=\$result
6653 for gltype in sig_atomic_t wchar_t wint_t ; do
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6655 $as_echo_n "checking for bit size of $gltype... " >&6; }
6656 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6659 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6660 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6661 included before <wchar.h>. */
6670 #include <limits.h>"; then :
6676 eval gl_cv_bitsizeof_${gltype}=\$result
6679 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 eval result=\$gl_cv_bitsizeof_${gltype}
6683 if test $result = unknown; then
6686 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6687 cat >>confdefs.h <<_ACEOF
6688 #define BITSIZEOF_${GLTYPE} $result
6691 eval BITSIZEOF_${GLTYPE}=\$result
6697 for gltype in sig_atomic_t wchar_t wint_t ; do
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6699 $as_echo_n "checking whether $gltype is signed... " >&6; }
6700 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6701 $as_echo_n "(cached) " >&6
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6706 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6707 included before <wchar.h>. */
6716 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6725 if ac_fn_c_try_compile "$LINENO"; then :
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 eval gl_cv_type_${gltype}_signed=\$result
6734 eval ac_res=\$gl_cv_type_${gltype}_signed
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6736 $as_echo "$ac_res" >&6; }
6737 eval result=\$gl_cv_type_${gltype}_signed
6738 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6739 if test "$result" = yes; then
6740 cat >>confdefs.h <<_ACEOF
6741 #define HAVE_SIGNED_${GLTYPE} 1
6744 eval HAVE_SIGNED_${GLTYPE}=1
6746 eval HAVE_SIGNED_${GLTYPE}=0
6751 gl_cv_type_ptrdiff_t_signed=yes
6752 gl_cv_type_size_t_signed=no
6753 if test $APPLE_UNIVERSAL_BUILD = 0; then
6756 for gltype in ptrdiff_t size_t ; do
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6758 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6759 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6760 $as_echo_n "(cached) " >&6
6762 eval gl_cv_type_${gltype}_suffix=no
6763 eval result=\$gl_cv_type_${gltype}_signed
6764 if test "$result" = yes; then
6769 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6772 l) gltype1='long int';;
6773 ll) gltype1='long long int';;
6774 i64) gltype1='__int64';;
6775 u) gltype1='unsigned int';;
6776 ul) gltype1='unsigned long int';;
6777 ull) gltype1='unsigned long long int';;
6778 ui64)gltype1='unsigned __int64';;
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6783 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6784 included before <wchar.h>. */
6794 extern $gltype1 foo;
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 eval gl_cv_type_${gltype}_suffix=\$glsuf
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 eval result=\$gl_cv_type_${gltype}_suffix
6808 test "$result" != no && break
6811 eval ac_res=\$gl_cv_type_${gltype}_suffix
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813 $as_echo "$ac_res" >&6; }
6814 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6815 eval result=\$gl_cv_type_${gltype}_suffix
6816 test "$result" = no && result=
6817 eval ${GLTYPE}_SUFFIX=\$result
6818 cat >>confdefs.h <<_ACEOF
6819 #define ${GLTYPE}_SUFFIX $result
6828 for gltype in sig_atomic_t wchar_t wint_t ; do
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6830 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6831 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6832 $as_echo_n "(cached) " >&6
6834 eval gl_cv_type_${gltype}_suffix=no
6835 eval result=\$gl_cv_type_${gltype}_signed
6836 if test "$result" = yes; then
6841 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6844 l) gltype1='long int';;
6845 ll) gltype1='long long int';;
6846 i64) gltype1='__int64';;
6847 u) gltype1='unsigned int';;
6848 ul) gltype1='unsigned long int';;
6849 ull) gltype1='unsigned long long int';;
6850 ui64)gltype1='unsigned __int64';;
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6855 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6856 included before <wchar.h>. */
6866 extern $gltype1 foo;
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 eval gl_cv_type_${gltype}_suffix=\$glsuf
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 eval result=\$gl_cv_type_${gltype}_suffix
6880 test "$result" != no && break
6883 eval ac_res=\$gl_cv_type_${gltype}_suffix
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885 $as_echo "$ac_res" >&6; }
6886 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6887 eval result=\$gl_cv_type_${gltype}_suffix
6888 test "$result" = no && result=
6889 eval ${GLTYPE}_SUFFIX=\$result
6890 cat >>confdefs.h <<_ACEOF
6891 #define ${GLTYPE}_SUFFIX $result
6898 if test $BITSIZEOF_WINT_T -lt 32; then
6905 if test -n "$STDINT_H"; then
6906 GL_GENERATE_STDINT_H_TRUE=
6907 GL_GENERATE_STDINT_H_FALSE='#'
6909 GL_GENERATE_STDINT_H_TRUE='#'
6910 GL_GENERATE_STDINT_H_FALSE=
6924 HAVE_DECL_IMAXABS=1;
6925 HAVE_DECL_IMAXDIV=1;
6926 HAVE_DECL_STRTOIMAX=1;
6927 HAVE_DECL_STRTOUMAX=1;
6928 REPLACE_STRTOIMAX=0;
6929 INT32_MAX_LT_INTMAX_MAX=1;
6930 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6931 PRI_MACROS_BROKEN=0;
6932 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6933 UINT32_MAX_LT_UINTMAX_MAX=1;
6934 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6962 if test $gl_cv_have_include_next = yes; then
6963 gl_cv_next_inttypes_h='<'inttypes.h'>'
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6966 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6967 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6971 if test $ac_cv_header_inttypes_h = yes; then
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6976 #include <inttypes.h>
6980 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6981 *) gl_absname_cpp="$ac_cpp" ;;
6986 gl_dirsep_regex='[/\\]'
6989 gl_dirsep_regex='\/'
6992 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6994 gl_header_literal_regex=`echo 'inttypes.h' \
6995 |
sed -e "$gl_make_literal_regex_sed"`
6996 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6997 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7002 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7003 sed -n "$gl_absolute_header_sed"`'"'
7005 gl_cv_next_inttypes_h='<'inttypes.h'>'
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7011 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7013 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7017 gl_next_as_first_directive='<'inttypes.h'>'
7019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7020 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7022 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7031 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7032 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7034 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7035 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7036 $as_echo_n "(cached) " >&6
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 #include <inttypes.h>
7051 if ac_fn_c_try_compile "$LINENO"; then :
7052 eval "$as_gl_Symbol=yes"
7054 eval "$as_gl_Symbol=no"
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 eval ac_res=\$$as_gl_Symbol
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7060 $as_echo "$ac_res" >&6; }
7061 eval as_val=\$$as_gl_Symbol
7062 if test "x$as_val" = x""yes; then :
7063 cat >>confdefs.h <<_ACEOF
7064 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7067 eval ac_cv_have_decl_$gl_func=yes
7073 for ac_header in inttypes.h
7075 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7076 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_INTTYPES_H 1
7085 if test $ac_cv_header_inttypes_h = yes; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7087 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7088 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7095 #include <inttypes.h>
7108 if ac_fn_c_try_compile "$LINENO"; then :
7109 gt_cv_inttypes_pri_broken=no
7111 gt_cv_inttypes_pri_broken=yes
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7117 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7119 if test "$gt_cv_inttypes_pri_broken" = yes; then
7121 cat >>confdefs.h <<_ACEOF
7122 #define PRI_MACROS_BROKEN 1
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7133 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7134 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7135 $as_echo_n "(cached) " >&6
7138 if test "$cross_compiling" = yes; then :
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7143 #if defined arm || defined __arm || defined __arm__
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7150 gl_cv_cc_double_expbit0="unknown"
7154 if test "${ac_cv_c_bigendian+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7157 ac_cv_c_bigendian=unknown
7158 # See if we're dealing with a universal compiler.
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 #ifndef __APPLE_CC__
7162 not a universal capable compiler
7167 if ac_fn_c_try_compile "$LINENO"; then :
7169 # Check for potential -arch flags. It is not universal unless
7170 # there are at least two -arch flags with different values.
7173 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7174 if test -n "$ac_prev"; then
7176 i?86 | x86_64 | ppc | ppc64)
7177 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7180 ac_cv_c_bigendian=universal
7186 elif test "x$ac_word" = "x-arch"; then
7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7192 if test $ac_cv_c_bigendian = unknown; then
7193 # See if sys/param.h defines the BYTE_ORDER macro.
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7196 #include <sys/types.h>
7197 #include <sys/param.h>
7202 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7203 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7212 if ac_fn_c_try_compile "$LINENO"; then :
7213 # It does; now see whether it defined to BIG_ENDIAN or not.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <sys/types.h>
7217 #include <sys/param.h>
7222 #if BYTE_ORDER != BIG_ENDIAN
7230 if ac_fn_c_try_compile "$LINENO"; then :
7231 ac_cv_c_bigendian=yes
7233 ac_cv_c_bigendian=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 if test $ac_cv_c_bigendian = unknown; then
7240 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7248 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7256 if ac_fn_c_try_compile "$LINENO"; then :
7257 # It does; now see whether it defined to _BIG_ENDIAN or not.
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_c_bigendian=yes
7276 ac_cv_c_bigendian=no
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 if test $ac_cv_c_bigendian = unknown; then
7283 # Compile a test program.
7284 if test "$cross_compiling" = yes; then :
7285 # Try to guess by grepping values from an object file.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 short int ascii_mm[] =
7289 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7290 short int ascii_ii[] =
7291 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7292 int use_ascii (int i) {
7293 return ascii_mm[i] + ascii_ii[i];
7295 short int ebcdic_ii[] =
7296 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7297 short int ebcdic_mm[] =
7298 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7299 int use_ebcdic (int i) {
7300 return ebcdic_mm[i] + ebcdic_ii[i];
7307 return use_ascii (foo) == use_ebcdic (foo);
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7314 ac_cv_c_bigendian=yes
7316 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7317 if test "$ac_cv_c_bigendian" = unknown; then
7318 ac_cv_c_bigendian=no
7320 # finding both strings is unlikely to happen, but who knows?
7321 ac_cv_c_bigendian=unknown
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7329 $ac_includes_default
7334 /* Are we little or big endian? From Harbison&Steele. */
7338 char c[sizeof (long int)];
7341 return u.c[sizeof (long int) - 1] == 1;
7347 if ac_fn_c_try_run "$LINENO"; then :
7348 ac_cv_c_bigendian=no
7350 ac_cv_c_bigendian=yes
7352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7353 conftest.$ac_objext conftest.beam conftest.$ac_ext
7359 case $ac_cv_c_bigendian in #(
7361 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7363 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7366 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7370 gl_cv_cc_double_expbit0="unknown" ;;
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7387 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7388 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7389 static unsigned int ored_words[NWORDS];
7390 static unsigned int anded_words[NWORDS];
7391 static void add_to_ored_words (double x)
7395 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7396 memset (&m, 0, sizeof (memory_double));
7398 for (i = 0; i < NWORDS; i++)
7400 ored_words[i] |= m.word[i];
7401 anded_words[i] &= m.word[i];
7407 FILE *fp = fopen ("conftest.out", "w");
7410 for (j = 0; j < NWORDS; j++)
7411 anded_words[j] = ~ (unsigned int) 0;
7412 add_to_ored_words (0.25);
7413 add_to_ored_words (0.5);
7414 add_to_ored_words (1.0);
7415 add_to_ored_words (2.0);
7416 add_to_ored_words (4.0);
7417 /* Remove bits that are common (e.g. if representation of the first mantissa
7418 bit is explicit). */
7419 for (j = 0; j < NWORDS; j++)
7420 ored_words[j] &= ~anded_words[j];
7421 /* Now find the nonzero word. */
7422 for (j = 0; j < NWORDS; j++)
7423 if (ored_words[j] != 0)
7428 for (i = j + 1; i < NWORDS; i++)
7429 if (ored_words[i] != 0)
7431 fprintf (fp, "unknown");
7432 return (fclose (fp) != 0);
7435 if ((ored_words[j] >> i) & 1)
7437 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7438 return (fclose (fp) != 0);
7441 fprintf (fp, "unknown");
7442 return (fclose (fp) != 0);
7446 if ac_fn_c_try_run "$LINENO"; then :
7447 gl_cv_cc_double_expbit0=`cat conftest.out
`
7449 gl_cv_cc_double_expbit0="unknown"
7451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7452 conftest.$ac_objext conftest.beam conftest.$ac_ext
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7459 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7460 case "$gl_cv_cc_double_expbit0" in
7462 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
7463 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
7465 cat >>confdefs.h <<_ACEOF
7466 #define DBL_EXPBIT0_WORD $word
7470 cat >>confdefs.h <<_ACEOF
7471 #define DBL_EXPBIT0_BIT $bit
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7479 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7480 if test "${ac_cv_c_bigendian+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7483 ac_cv_c_bigendian=unknown
7484 # See if we're dealing with a universal compiler.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 #ifndef __APPLE_CC__
7488 not a universal capable compiler
7493 if ac_fn_c_try_compile "$LINENO"; then :
7495 # Check for potential -arch flags. It is not universal unless
7496 # there are at least two -arch flags with different values.
7499 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7500 if test -n "$ac_prev"; then
7502 i?86 | x86_64 | ppc | ppc64)
7503 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7506 ac_cv_c_bigendian=universal
7512 elif test "x$ac_word" = "x-arch"; then
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 if test $ac_cv_c_bigendian = unknown; then
7519 # See if sys/param.h defines the BYTE_ORDER macro.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #include <sys/types.h>
7523 #include <sys/param.h>
7528 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7529 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 # It does; now see whether it defined to BIG_ENDIAN or not.
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7542 #include <sys/types.h>
7543 #include <sys/param.h>
7548 #if BYTE_ORDER != BIG_ENDIAN
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557 ac_cv_c_bigendian=yes
7559 ac_cv_c_bigendian=no
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 if test $ac_cv_c_bigendian = unknown; then
7566 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7574 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7582 if ac_fn_c_try_compile "$LINENO"; then :
7583 # It does; now see whether it defined to _BIG_ENDIAN or not.
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 ac_cv_c_bigendian=yes
7602 ac_cv_c_bigendian=no
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 if test $ac_cv_c_bigendian = unknown; then
7609 # Compile a test program.
7610 if test "$cross_compiling" = yes; then :
7611 # Try to guess by grepping values from an object file.
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 short int ascii_mm[] =
7615 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7616 short int ascii_ii[] =
7617 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7618 int use_ascii (int i) {
7619 return ascii_mm[i] + ascii_ii[i];
7621 short int ebcdic_ii[] =
7622 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7623 short int ebcdic_mm[] =
7624 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7625 int use_ebcdic (int i) {
7626 return ebcdic_mm[i] + ebcdic_ii[i];
7633 return use_ascii (foo) == use_ebcdic (foo);
7638 if ac_fn_c_try_compile "$LINENO"; then :
7639 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7640 ac_cv_c_bigendian=yes
7642 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7643 if test "$ac_cv_c_bigendian" = unknown; then
7644 ac_cv_c_bigendian=no
7646 # finding both strings is unlikely to happen, but who knows?
7647 ac_cv_c_bigendian=unknown
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 $ac_includes_default
7660 /* Are we little or big endian? From Harbison&Steele. */
7664 char c[sizeof (long int)];
7667 return u.c[sizeof (long int) - 1] == 1;
7673 if ac_fn_c_try_run "$LINENO"; then :
7674 ac_cv_c_bigendian=no
7676 ac_cv_c_bigendian=yes
7678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7679 conftest.$ac_objext conftest.beam conftest.$ac_ext
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7685 $as_echo "$ac_cv_c_bigendian" >&6; }
7686 case $ac_cv_c_bigendian in #(
7688 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7694 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7698 as_fn_error "unknown endianness
7699 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7705 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7706 if test "${am_cv_langinfo_codeset+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 #include <langinfo.h>
7715 char* cs = nl_langinfo(CODESET); return !cs;
7720 if ac_fn_c_try_link "$LINENO"; then :
7721 am_cv_langinfo_codeset=yes
7723 am_cv_langinfo_codeset=no
7725 rm -f core conftest.err conftest.$ac_objext \
7726 conftest$ac_exeext conftest.$ac_ext
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7730 $as_echo "$am_cv_langinfo_codeset" >&6; }
7731 if test $am_cv_langinfo_codeset = yes; then
7733 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7765 $as_echo_n "checking for working fcntl.h... " >&6; }
7766 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7769 if test "$cross_compiling" = yes; then :
7770 gl_cv_header_working_fcntl_h=cross-compiling
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7775 #include <sys/stat.h>
7777 # include <unistd.h>
7778 #else /* on Windows with MSVC */
7780 # include <stdlib.h>
7781 # defined sleep(n) _sleep ((n) * 1000)
7788 #define O_NOFOLLOW 0
7790 static int const constants[] =
7792 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7793 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7800 int result = !constants;
7803 static char const sym[] = "conftest.sym";
7804 if (symlink ("/dev/null", sym) != 0)
7808 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7815 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7819 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7830 static char const file[] = "confdefs.h";
7831 int fd = open (file, O_RDONLY | O_NOATIME);
7837 if (fstat (fd, &st0) != 0)
7843 if (read (fd, &c, 1) != 1)
7847 if (close (fd) != 0)
7852 if (stat (file, &st1) != 0)
7855 if (st0.st_atime != st1.st_atime)
7867 if ac_fn_c_try_run "$LINENO"; then :
7868 gl_cv_header_working_fcntl_h=yes
7871 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7872 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7873 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7874 *) gl_cv_header_working_fcntl_h='no';;
7877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7878 conftest.$ac_objext conftest.beam conftest.$ac_ext
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7883 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7885 case $gl_cv_header_working_fcntl_h in #(
7886 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7890 cat >>confdefs.h <<_ACEOF
7891 #define HAVE_WORKING_O_NOATIME $ac_val
7895 case $gl_cv_header_working_fcntl_h in #(
7896 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7906 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7907 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7913 cat >>confdefs.h <<_ACEOF
7914 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7920 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7921 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7927 #include <features.h>
7928 #ifdef __GNU_LIBRARY__
7929 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7939 $EGREP "Lucky" >/dev/null 2>&1; then :
7940 ac_cv_gnu_library_2_1=yes
7942 ac_cv_gnu_library_2_1=no
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7950 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7952 GLIBC21="$ac_cv_gnu_library_2_1"
7967 GNULIB_MBSNRTOWCS=0;
7970 GNULIB_WCSNRTOMBS=0;
7987 GNULIB_WCSCASECMP=0;
7988 GNULIB_WCSNCASECMP=0;
8038 HAVE_DECL_WCWIDTH=1;
8039 REPLACE_MBSTATE_T=0;
8045 REPLACE_MBSRTOWCS=0;
8046 REPLACE_MBSNRTOWCS=0;
8048 REPLACE_WCSRTOMBS=0;
8049 REPLACE_WCSNRTOMBS=0;
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8067 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8068 if test "${gt_cv_locale_ja+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8077 #if HAVE_LANGINFO_CODESET
8078 # include <langinfo.h>
8087 /* Check whether the given locale name is recognized by the system. */
8088 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8089 /* On native Windows, setlocale(category, "") looks at the system settings,
8090 not at the environment variables. Also, when an encoding suffix such
8091 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8092 category of the locale to "C". */
8093 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8094 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8097 if (setlocale (LC_ALL, "") == NULL) return 1;
8099 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8100 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8101 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8102 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8103 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8104 some unit tests fail.
8105 On MirBSD 10, when an unsupported locale is specified, setlocale()
8106 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8107 #if HAVE_LANGINFO_CODESET
8109 const char *cs = nl_langinfo (CODESET);
8110 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8111 || strcmp (cs, "UTF-8") == 0)
8116 /* On Cygwin, avoid locale names without encoding suffix, because the
8117 locale_charset() function relies on the encoding suffix. Note that
8118 LC_ALL is set on the command line. */
8119 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8121 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8123 if (MB_CUR_MAX == 1)
8125 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8126 This excludes the UTF-8 encoding (except on MirBSD). */
8127 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8128 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8129 for (p = buf; *p != '\0'; p++)
8130 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8137 (eval $ac_link) 2>&5
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8142 # Handle native Windows specially, because there setlocale() interprets
8143 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8144 # "fr" or "fra" as "French" or "French_France.1252",
8145 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8146 # "ja" as "Japanese" or "Japanese_Japan.932",
8149 # Note that on native Windows, the Japanese locale is
8150 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8151 # cannot use it here.
8152 gt_cv_locale_ja=none
8155 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8156 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8157 # configure script would override the LC_ALL setting. Likewise for
8158 # LC_CTYPE, which is also set at the beginning of the configure script.
8159 # Test for the AIX locale name.
8160 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8161 gt_cv_locale_ja=ja_JP
8163 # Test for the locale name with explicit encoding suffix.
8164 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8165 gt_cv_locale_ja=ja_JP.EUC-JP
8167 # Test for the HP-UX, OSF/1, NetBSD locale name.
8168 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8169 gt_cv_locale_ja=ja_JP.eucJP
8171 # Test for the IRIX, FreeBSD locale name.
8172 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8173 gt_cv_locale_ja=ja_JP.EUC
8175 # Test for the Solaris 7 locale name.
8176 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8179 # Special test for NetBSD 1.6.
8180 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8181 gt_cv_locale_ja=ja_JP.eucJP
8184 gt_cv_locale_ja=none
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8198 $as_echo "$gt_cv_locale_ja" >&6; }
8199 LOCALE_JA=$gt_cv_locale_ja
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8206 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8207 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8217 #if HAVE_LANGINFO_CODESET
8218 # include <langinfo.h>
8227 /* Check whether the given locale name is recognized by the system. */
8228 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8229 /* On native Windows, setlocale(category, "") looks at the system settings,
8230 not at the environment variables. Also, when an encoding suffix such
8231 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8232 category of the locale to "C". */
8233 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8234 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8237 if (setlocale (LC_ALL, "") == NULL) return 1;
8239 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8240 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8241 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8242 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8243 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8244 some unit tests fail.
8245 On MirBSD 10, when an unsupported locale is specified, setlocale()
8246 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8247 #if HAVE_LANGINFO_CODESET
8249 const char *cs = nl_langinfo (CODESET);
8250 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8251 || strcmp (cs, "UTF-8") == 0)
8256 /* On Cygwin, avoid locale names without encoding suffix, because the
8257 locale_charset() function relies on the encoding suffix. Note that
8258 LC_ALL is set on the command line. */
8259 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8261 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8262 This excludes the UTF-8 encoding (except on MirBSD). */
8263 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8264 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8265 for (p = buf; *p != '\0'; p++)
8266 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8268 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8269 single wide character. This excludes the GB2312 and GBK encodings. */
8270 if (mblen ("\203\062\332\066", 5) != 4)
8276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8277 (eval $ac_link) 2>&5
8279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8282 # Handle native Windows specially, because there setlocale() interprets
8283 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8284 # "fr" or "fra" as "French" or "French_France.1252",
8285 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8286 # "ja" as "Japanese" or "Japanese_Japan.932",
8289 # Test for the hypothetical native Windows locale name.
8290 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8291 gt_cv_locale_zh_CN=Chinese_China.54936
8294 gt_cv_locale_zh_CN=none
8298 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8299 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8300 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8301 gt_cv_locale_zh_CN=none
8304 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8305 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8306 # configure script would override the LC_ALL setting. Likewise for
8307 # LC_CTYPE, which is also set at the beginning of the configure script.
8308 # Test for the locale name without encoding suffix.
8309 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8310 gt_cv_locale_zh_CN=zh_CN
8312 # Test for the locale name with explicit encoding suffix.
8313 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8314 gt_cv_locale_zh_CN=zh_CN.GB18030
8317 gt_cv_locale_zh_CN=none
8323 # If there was a link error, due to mblen(), the system is so old that
8324 # it certainly doesn't have a chinese locale.
8325 gt_cv_locale_zh_CN=none
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8331 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8332 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8338 $as_echo_n "checking for a french Unicode locale... " >&6; }
8339 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8348 #if HAVE_LANGINFO_CODESET
8349 # include <langinfo.h>
8356 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8357 imitates locale dependent behaviour by looking at the environment
8358 variables, and all locales use the UTF-8 encoding. */
8359 #if !(defined __BEOS__ || defined __HAIKU__)
8360 /* Check whether the given locale name is recognized by the system. */
8361 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8362 /* On native Windows, setlocale(category, "") looks at the system settings,
8363 not at the environment variables. Also, when an encoding suffix such
8364 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8365 category of the locale to "C". */
8366 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8367 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8370 if (setlocale (LC_ALL, "") == NULL) return 1;
8372 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8373 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8374 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8375 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8376 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8377 some unit tests fail. */
8378 # if HAVE_LANGINFO_CODESET
8380 const char *cs = nl_langinfo (CODESET);
8381 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8386 /* On Cygwin, avoid locale names without encoding suffix, because the
8387 locale_charset() function relies on the encoding suffix. Note that
8388 LC_ALL is set on the command line. */
8389 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8391 /* Check whether in the abbreviation of the second month, the second
8392 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8393 two bytes long, with UTF-8 encoding. */
8394 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8395 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8396 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8399 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8400 /* Check whether the decimal separator is a comma.
8401 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8402 are nl_langinfo(RADIXCHAR) are both ".". */
8403 if (localeconv () ->decimal_point[0] != ',') return 1;
8409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8410 (eval $ac_link) 2>&5
8412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8413 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8415 # Handle native Windows specially, because there setlocale() interprets
8416 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8417 # "fr" or "fra" as "French" or "French_France.1252",
8418 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8419 # "ja" as "Japanese" or "Japanese_Japan.932",
8422 # Test for the hypothetical native Windows locale name.
8423 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8424 gt_cv_locale_fr_utf8=French_France.65001
8427 gt_cv_locale_fr_utf8=none
8431 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8432 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8433 # configure script would override the LC_ALL setting. Likewise for
8434 # LC_CTYPE, which is also set at the beginning of the configure script.
8435 # Test for the usual locale name.
8436 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8437 gt_cv_locale_fr_utf8=fr_FR
8439 # Test for the locale name with explicit encoding suffix.
8440 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8441 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8443 # Test for the Solaris 7 locale name.
8444 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8445 gt_cv_locale_fr_utf8=fr.UTF-8
8448 gt_cv_locale_fr_utf8=none
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8459 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8460 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8467 $as_echo_n "checking for a traditional french locale... " >&6; }
8468 if test "${gt_cv_locale_fr+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8477 #if HAVE_LANGINFO_CODESET
8478 # include <langinfo.h>
8485 /* Check whether the given locale name is recognized by the system. */
8486 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8487 /* On native Windows, setlocale(category, "") looks at the system settings,
8488 not at the environment variables. Also, when an encoding suffix such
8489 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8490 category of the locale to "C". */
8491 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8492 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8495 if (setlocale (LC_ALL, "") == NULL) return 1;
8497 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8498 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8499 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8500 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8501 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8502 some unit tests fail.
8503 On MirBSD 10, when an unsupported locale is specified, setlocale()
8504 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8505 #if HAVE_LANGINFO_CODESET
8507 const char *cs = nl_langinfo (CODESET);
8508 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8509 || strcmp (cs, "UTF-8") == 0)
8514 /* On Cygwin, avoid locale names without encoding suffix, because the
8515 locale_charset() function relies on the encoding suffix. Note that
8516 LC_ALL is set on the command line. */
8517 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8519 /* Check whether in the abbreviation of the second month, the second
8520 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8521 one byte long. This excludes the UTF-8 encoding. */
8522 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8523 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8524 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8525 /* Check whether the decimal separator is a comma.
8526 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8527 are nl_langinfo(RADIXCHAR) are both ".". */
8528 if (localeconv () ->decimal_point[0] != ',') return 1;
8534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8535 (eval $ac_link) 2>&5
8537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8538 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8540 # Handle native Windows specially, because there setlocale() interprets
8541 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8542 # "fr" or "fra" as "French" or "French_France.1252",
8543 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8544 # "ja" as "Japanese" or "Japanese_Japan.932",
8547 # Test for the native Windows locale name.
8548 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8549 gt_cv_locale_fr=French_France.1252
8552 gt_cv_locale_fr=none
8556 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8557 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8558 # configure script would override the LC_ALL setting. Likewise for
8559 # LC_CTYPE, which is also set at the beginning of the configure script.
8560 # Test for the usual locale name.
8561 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8562 gt_cv_locale_fr=fr_FR
8564 # Test for the locale name with explicit encoding suffix.
8565 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8566 gt_cv_locale_fr=fr_FR.ISO-8859-1
8568 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8569 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8570 gt_cv_locale_fr=fr_FR.ISO8859-1
8572 # Test for the HP-UX locale name.
8573 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8574 gt_cv_locale_fr=fr_FR.iso88591
8576 # Test for the Solaris 7 locale name.
8577 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8581 gt_cv_locale_fr=none
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8594 $as_echo "$gt_cv_locale_fr" >&6; }
8595 LOCALE_FR=$gt_cv_locale_fr
8626 GNULIB_STRCASESTR=0;
8633 GNULIB_MBSCASECMP=0;
8634 GNULIB_MBSNCASECMP=0;
8635 GNULIB_MBSPCASECMP=0;
8636 GNULIB_MBSCASESTR=0;
8643 GNULIB_STRERROR_R=0;
8645 GNULIB_STRVERSCMP=0;
8652 HAVE_DECL_MEMRCHR=1;
8658 HAVE_DECL_STRNDUP=1;
8659 HAVE_DECL_STRNLEN=1;
8663 HAVE_DECL_STRTOK_R=1;
8664 HAVE_DECL_STRERROR_R=1;
8665 HAVE_DECL_STRSIGNAL=1;
8672 REPLACE_STRCASESTR=0;
8673 REPLACE_STRCHRNUL=0;
8675 REPLACE_STRERROR_R=0;
8679 REPLACE_STRSIGNAL=0;
8681 UNDEFINE_STRTOK_R=0;
8687 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8688 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8689 # irrelevant for anonymous mappings.
8690 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8691 if test "x$ac_cv_func_mmap" = x""yes; then :
8698 # Try to allow MAP_ANONYMOUS.
8699 gl_have_mmap_anonymous=no
8700 if test $gl_have_mmap = yes; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8702 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8706 #include <sys/mman.h>
8707 #ifdef MAP_ANONYMOUS
8708 I cannot identify this map
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8714 gl_have_mmap_anonymous=yes
8718 if test $gl_have_mmap_anonymous != yes; then
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8722 #include <sys/mman.h>
8724 I cannot identify this map
8728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8729 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8731 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8733 gl_have_mmap_anonymous=yes
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8739 $as_echo "$gl_have_mmap_anonymous" >&6; }
8740 if test $gl_have_mmap_anonymous = yes; then
8742 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8764 if test $HAVE_MEMCHR = 1; then
8765 # Detect platform-specific bugs in some versions of glibc:
8766 # memchr should not dereference anything with length 0
8767 # http://bugzilla.redhat.com/499689
8768 # memchr should not dereference overestimated length after a match
8769 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8770 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8771 # Assume that memchr works on platforms that lack mprotect.
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8773 $as_echo_n "checking whether memchr works... " >&6; }
8774 if test "${gl_cv_func_memchr_works+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8777 if test "$cross_compiling" = yes; then :
8778 gl_cv_func_memchr_works="guessing no"
8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8781 /* end confdefs.h. */
8786 # include <unistd.h>
8787 # include <sys/types.h>
8788 # include <sys/mman.h>
8800 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8801 # if HAVE_MAP_ANONYMOUS
8802 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8804 # else /* !HAVE_MAP_ANONYMOUS */
8805 const int flags = MAP_FILE | MAP_PRIVATE;
8806 int fd = open ("/dev/zero", O_RDONLY, 0666);
8810 int pagesize = getpagesize ();
8812 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8814 if (two_pages != (char *)(-1)
8815 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8816 fence = two_pages + pagesize;
8821 if (memchr (fence, 0, 0))
8823 strcpy (fence - 9, "12345678");
8824 if (memchr (fence - 9, 0, 79) != fence - 1)
8826 if (memchr (fence - 1, 0, 3) != fence - 1)
8835 if ac_fn_c_try_run "$LINENO"; then :
8836 gl_cv_func_memchr_works=yes
8838 gl_cv_func_memchr_works=no
8840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8841 conftest.$ac_objext conftest.beam conftest.$ac_ext
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8846 $as_echo "$gl_cv_func_memchr_works" >&6; }
8847 if test "$gl_cv_func_memchr_works" != yes; then
8853 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8854 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_DECL_MEMMEM $ac_have_decl
8869 for ac_func in memmem
8871 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8872 if test "x$ac_cv_func_memmem" = x""yes; then :
8873 cat >>confdefs.h <<_ACEOF
8874 #define HAVE_MEMMEM 1
8880 if test $ac_cv_func_memmem = yes; then
8892 if test $ac_cv_have_decl_memmem = no; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8896 $as_echo_n "checking whether memmem works... " >&6; }
8897 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8900 if test "$cross_compiling" = yes; then :
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8904 #ifdef __GNU_LIBRARY__
8905 #include <features.h>
8906 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8907 || __GLIBC_MINOR__ > 12)) \
8908 || (__GLIBC__ > 2)) \
8909 || defined __UCLIBC__
8912 #elif defined __CYGWIN__
8913 #include <cygwin/version.h>
8914 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8923 $EGREP "Lucky user" >/dev/null 2>&1; then :
8924 gl_cv_func_memmem_works_always="guessing yes"
8926 gl_cv_func_memmem_works_always="guessing no"
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8935 #include <string.h> /* for memmem */
8936 #define P "_EF_BF_BD"
8937 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8938 #define NEEDLE P P P P P
8945 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8947 /* Check for empty needle behavior. */
8949 const char *haystack = "AAA";
8950 if (memmem (haystack, 3, NULL, 0) != haystack)
8959 if ac_fn_c_try_run "$LINENO"; then :
8960 gl_cv_func_memmem_works_always=yes
8962 gl_cv_func_memmem_works_always=no
8964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8965 conftest.$ac_objext conftest.beam conftest.$ac_ext
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8971 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8972 case "$gl_cv_func_memmem_works_always" in
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8982 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8983 if test "${ac_cv_header_stdbool_h+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8989 #include <stdbool.h>
8991 "error: bool is not defined"
8994 "error: false is not defined"
8997 "error: false is not 0"
9000 "error: true is not defined"
9003 "error: true is not 1"
9005 #ifndef __bool_true_false_are_defined
9006 "error: __bool_true_false_are_defined is not defined"
9009 struct s { _Bool s: 1; _Bool t; } s;
9011 char a[true == 1 ? 1 : -1];
9012 char b[false == 0 ? 1 : -1];
9013 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9014 char d[(bool) 0.5 == true ? 1 : -1];
9015 /* See body of main program for 'e'. */
9016 char f[(_Bool) 0.0 == false ? 1 : -1];
9018 char h[sizeof (_Bool)];
9020 enum { j = false, k = true, l = false * true, m = true * 256 };
9021 /* The following fails for
9022 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9024 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9025 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9026 /* Catch a bug in an HP-UX C compiler. See
9027 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9028 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9040 /* Refer to every declared value, to avoid compiler optimizations. */
9041 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9042 + !m + !n + !o + !p + !q + !pq);
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049 ac_cv_header_stdbool_h=yes
9051 ac_cv_header_stdbool_h=no
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9056 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9057 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9058 if test "x$ac_cv_type__Bool" = x""yes; then :
9060 cat >>confdefs.h <<_ACEOF
9061 #define HAVE__BOOL 1
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9074 $as_echo_n "checking for wchar_t... " >&6; }
9075 if test "${gt_cv_c_wchar_t+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 wchar_t foo = (wchar_t)'\0';
9090 if ac_fn_c_try_compile "$LINENO"; then :
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9098 $as_echo "$gt_cv_c_wchar_t" >&6; }
9099 if test $gt_cv_c_wchar_t = yes; then
9101 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9106 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9107 if test "${ac_cv_c_restrict+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9111 # The order here caters to the fact that C++ does not require restrict.
9112 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 typedef int * int_ptr;
9116 int foo (int_ptr $ac_kw ip) {
9130 if ac_fn_c_try_compile "$LINENO"; then :
9131 ac_cv_c_restrict=$ac_kw
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 test "$ac_cv_c_restrict" != no && break
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9139 $as_echo "$ac_cv_c_restrict" >&6; }
9141 case $ac_cv_c_restrict in
9143 no) $as_echo "#define restrict /**/" >>confdefs.h
9145 *) cat >>confdefs.h <<_ACEOF
9146 #define restrict $ac_cv_c_restrict
9162 if test $gl_cv_have_include_next = yes; then
9163 gl_cv_next_string_h='<'string.h'>'
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9166 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9167 if test "${gl_cv_next_string_h+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9177 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9178 *) gl_absname_cpp="$ac_cpp" ;;
9183 gl_dirsep_regex='[/\\]'
9186 gl_dirsep_regex='\/'
9189 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9191 gl_header_literal_regex=`echo 'string.h' \
9192 |
sed -e "$gl_make_literal_regex_sed"`
9193 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9194 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9199 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9200 sed -n "$gl_absolute_header_sed"`'"'
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9205 $as_echo "$gl_cv_next_string_h" >&6; }
9207 NEXT_STRING_H=$gl_cv_next_string_h
9209 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9210 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9211 gl_next_as_first_directive='<'string.h'>'
9213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9214 gl_next_as_first_directive=$gl_cv_next_string_h
9216 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9223 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
9224 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9226 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9227 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9228 $as_echo_n "(cached) " >&6
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9243 if ac_fn_c_try_compile "$LINENO"; then :
9244 eval "$as_gl_Symbol=yes"
9246 eval "$as_gl_Symbol=no"
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 eval ac_res=\$$as_gl_Symbol
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9252 $as_echo "$ac_res" >&6; }
9253 eval as_val=\$$as_gl_Symbol
9254 if test "x$as_val" = x""yes; then :
9255 cat >>confdefs.h <<_ACEOF
9256 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9259 eval ac_cv_have_decl_$gl_func=yes
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9266 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9267 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9270 gl_cv_header_wchar_h_correct_inline=yes
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9274 #define wcstod renamed_wcstod
9275 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9277 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9278 included before <wchar.h>. */
9283 extern int zero (void);
9284 int main () { return zero(); }
9287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9288 (eval $ac_compile) 2>&5
9290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9291 test $ac_status = 0; }; then
9292 mv conftest.$ac_objext conftest1.$ac_objext
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9296 #define wcstod renamed_wcstod
9297 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9299 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9300 included before <wchar.h>. */
9305 int zero (void) { return 0; }
9308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9309 (eval $ac_compile) 2>&5
9311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9312 test $ac_status = 0; }; then
9313 mv conftest.$ac_objext conftest2.$ac_objext
9314 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9317 gl_cv_header_wchar_h_correct_inline=no
9321 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9325 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9326 if test $gl_cv_header_wchar_h_correct_inline = no; then
9327 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9328 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9329 C99 mode. You have four options:
9330 - Add the flag -fgnu89-inline to CC and reconfigure, or
9331 - Fix your include files, using parts of
9332 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9333 - Use a gcc version older than 4.3, or
9334 - Don't use the flags -std=c99 or -std=gnu99.
9335 Configuration aborted." "$LINENO" 5
9351 if test $ac_cv_header_features_h = yes; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9360 $as_echo_n "checking for wint_t... " >&6; }
9361 if test "${gt_cv_c_wint_t+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9367 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9369 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9370 before <wchar.h>. */
9375 wint_t foo = (wchar_t)'\0';
9384 if ac_fn_c_try_compile "$LINENO"; then :
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9392 $as_echo "$gt_cv_c_wint_t" >&6; }
9393 if test $gt_cv_c_wint_t = yes; then
9395 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9417 GL_COND_LIBTOOL_TRUE=
9418 GL_COND_LIBTOOL_FALSE='#'
9420 GL_COND_LIBTOOL_TRUE='#'
9421 GL_COND_LIBTOOL_FALSE=
9424 gl_cond_libtool=false
9427 gl_m4_base='import/m4'
9437 gl_source_base='import'
9440 if test $ac_cv_func_alloca_works = no; then
9444 # Define an additional variable used in the Makefile substitution.
9445 if test $ac_cv_working_alloca_h = yes; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9447 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9448 if test "${gl_cv_rpl_alloca+set}" = set; then :
9449 $as_echo_n "(cached) " >&6
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9462 gl_cv_rpl_alloca=yes
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9471 $as_echo "$gl_cv_rpl_alloca" >&6; }
9472 if test $gl_cv_rpl_alloca = yes; then
9474 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9484 if test -n "$ALLOCA_H"; then
9485 GL_GENERATE_ALLOCA_H_TRUE=
9486 GL_GENERATE_ALLOCA_H_FALSE='#'
9488 GL_GENERATE_ALLOCA_H_TRUE='#'
9489 GL_GENERATE_ALLOCA_H_FALSE=
9494 if test "x$datarootdir" = x; then
9495 datarootdir='${datadir}'
9498 if test "x$docdir" = x; then
9499 docdir='${datarootdir}/doc/${PACKAGE}'
9502 if test "x$htmldir" = x; then
9506 if test "x$dvidir" = x; then
9510 if test "x$pdfdir" = x; then
9514 if test "x$psdir" = x; then
9518 if test "x$lispdir" = x; then
9519 lispdir='${datarootdir}/emacs/site-lisp'
9522 if test "x$localedir" = x; then
9523 localedir='${datarootdir}/locale'
9527 pkglibexecdir='${libexecdir}/${PACKAGE}'
9535 REPLACE_FLOAT_LDBL=0
9537 aix* | beos* | openbsd* | mirbsd* | irix*)
9546 # On x86_64 systems, the C compiler may still be generating
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
9554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9555 $EGREP "yes" >/dev/null 2>&1; then :
9574 aix* | freebsd* | linux*)
9575 if test -n "$FLOAT_H"; then
9576 REPLACE_FLOAT_LDBL=1
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9583 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9584 if test "${gl_cv_func_itold_works+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9588 if test "$cross_compiling" = yes; then :
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 #if defined __LP64__ || defined __arch64__
9597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9598 $EGREP "yes" >/dev/null 2>&1; then :
9599 gl_cv_func_itold_works="guessing no"
9601 gl_cv_func_itold_works="guessing yes"
9606 *) gl_cv_func_itold_works="guessing yes" ;;
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9614 volatile long double ld;
9623 if ac_fn_c_try_run "$LINENO"; then :
9624 gl_cv_func_itold_works=yes
9626 gl_cv_func_itold_works=no
9628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9629 conftest.$ac_objext conftest.beam conftest.$ac_ext
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9635 $as_echo "$gl_cv_func_itold_works" >&6; }
9636 case "$gl_cv_func_itold_works" in
9643 if test -n "$FLOAT_H"; then
9652 if test $gl_cv_have_include_next = yes; then
9653 gl_cv_next_float_h='<'float.h'>'
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9656 $as_echo_n "checking absolute name of <float.h>... " >&6; }
9657 if test "${gl_cv_next_float_h+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9667 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9668 *) gl_absname_cpp="$ac_cpp" ;;
9673 gl_dirsep_regex='[/\\]'
9676 gl_dirsep_regex='\/'
9679 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9681 gl_header_literal_regex=`echo 'float.h' \
9682 |
sed -e "$gl_make_literal_regex_sed"`
9683 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9684 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9689 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9690 sed -n "$gl_absolute_header_sed"`'"'
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9695 $as_echo "$gl_cv_next_float_h" >&6; }
9697 NEXT_FLOAT_H=$gl_cv_next_float_h
9699 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9701 gl_next_as_first_directive='<'float.h'>'
9703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9704 gl_next_as_first_directive=$gl_cv_next_float_h
9706 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9713 if test -n "$FLOAT_H"; then
9714 GL_GENERATE_FLOAT_H_TRUE=
9715 GL_GENERATE_FLOAT_H_FALSE='#'
9717 GL_GENERATE_FLOAT_H_TRUE='#'
9718 GL_GENERATE_FLOAT_H_FALSE=
9723 if test $REPLACE_FLOAT_LDBL = 1; then
9732 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9735 if test $REPLACE_ITOLD = 1; then
9744 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9753 gl_fnmatch_required_lowercase=`
9754 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
9756 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9758 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9759 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9760 $as_echo_n "(cached) " >&6
9762 if test $gl_fnmatch_required = GNU; then
9763 gl_fnmatch_gnu_start=
9766 gl_fnmatch_gnu_start='#if 0'
9767 gl_fnmatch_gnu_end='#endif'
9769 if test "$cross_compiling" = yes; then :
9770 eval "$gl_fnmatch_cache_var=\"guessing no\""
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 #include <fnmatch.h>
9776 y (char const *pattern, char const *string, int flags)
9778 return fnmatch (pattern, string, flags) == 0;
9781 n (char const *pattern, char const *string, int flags)
9783 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9789 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9790 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9791 static char const A_1[] = { 'A' - 1, 0 };
9792 static char const A01[] = { 'A' + 1, 0 };
9793 static char const a_1[] = { 'a' - 1, 0 };
9794 static char const a01[] = { 'a' + 1, 0 };
9795 static char const bs_1[] = { '\\\\' - 1, 0 };
9796 static char const bs01[] = { '\\\\' + 1, 0 };
9798 if (!n ("a*", "", 0))
9800 if (!y ("a*", "abc", 0))
9802 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
9804 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
9806 if (!y ("a\\\\bc", "abc", 0))
9808 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
9810 if (!y ("*x", ".x", 0))
9812 if (!n ("*x", ".x", FNM_PERIOD))
9814 if (!y (Apat, "\\\\", 0))
9816 if (!y (Apat, "A", 0))
9818 if (!y (apat, "\\\\", 0))
9820 if (!y (apat, "a", 0))
9822 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
9824 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
9826 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
9828 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
9830 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
9832 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
9834 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
9836 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
9838 $gl_fnmatch_gnu_start
9839 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
9841 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
9843 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
9845 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
9847 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
9849 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
9858 if ac_fn_c_try_run "$LINENO"; then :
9859 eval "$gl_fnmatch_cache_var=yes"
9861 eval "$gl_fnmatch_cache_var=no"
9863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9864 conftest.$ac_objext conftest.beam conftest.$ac_ext
9869 eval ac_res=\$$gl_fnmatch_cache_var
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9871 $as_echo "$ac_res" >&6; }
9872 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
9873 if test "$gl_fnmatch_result" = yes; then
9874 rm -f "$gl_source_base/fnmatch.h"
9879 if test -n "$FNMATCH_H"; then
9880 GL_GENERATE_FNMATCH_H_TRUE=
9881 GL_GENERATE_FNMATCH_H_FALSE='#'
9883 GL_GENERATE_FNMATCH_H_TRUE='#'
9884 GL_GENERATE_FNMATCH_H_FALSE=
9888 if test -n "$FNMATCH_H"; then
9897 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9901 cat >>confdefs.h <<_ACEOF
9902 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9906 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9908 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9914 cat >>confdefs.h <<_ACEOF
9915 #define HAVE_DECL_ISBLANK $ac_have_decl
9960 if test -n "$FNMATCH_H"; then
9969 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9973 cat >>confdefs.h <<_ACEOF
9974 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9978 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9980 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9986 cat >>confdefs.h <<_ACEOF
9987 #define HAVE_DECL_ISBLANK $ac_have_decl
10031 if test $gl_cv_func_frexp_no_libm = no; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10033 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10034 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10047 int e; return frexp (x, &e) > 0;
10052 if ac_fn_c_try_link "$LINENO"; then :
10053 gl_cv_func_frexp_in_libm=yes
10055 gl_cv_func_frexp_in_libm=no
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10063 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10064 if test $gl_cv_func_frexp_in_libm = yes; then
10068 if test $gl_cv_func_frexp_no_libm = yes \
10069 || test $gl_cv_func_frexp_in_libm = yes; then
10071 LIBS="$LIBS $FREXP_LIBM"
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10082 $as_echo_n "checking whether frexp works... " >&6; }
10083 if test "${gl_cv_func_frexp_works+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10087 if test "$cross_compiling" = yes; then :
10089 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10090 *) gl_cv_func_frexp_works="guessing yes";;
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10099 #include <string.h>
10101 # include <unistd.h>
10103 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10104 ICC 10.0 has a bug when optimizing the expression -zero.
10105 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10106 to PowerPC on Mac OS X 10.5. */
10107 #if defined __hpux || defined __sgi || defined __ICC
10109 compute_minus_zero (void)
10111 return -DBL_MIN * DBL_MIN;
10113 # define minus_zero compute_minus_zero ()
10115 double minus_zero = -0.0;
10124 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10125 number. Let the test fail in this case. */
10128 /* Test on denormalized numbers. */
10129 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10134 double y = frexp (x, &exp);
10135 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10136 On NetBSD: y = 0.75. Correct: y = 0.5. */
10140 /* Test on infinite numbers. */
10144 double y = frexp (x, &exp);
10148 /* Test on negative zero. */
10152 double y = frexp (x, &exp);
10153 if (memcmp (&y, &x, sizeof x))
10159 if ac_fn_c_try_run "$LINENO"; then :
10160 gl_cv_func_frexp_works=yes
10162 gl_cv_func_frexp_works=no
10164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10165 conftest.$ac_objext conftest.beam conftest.$ac_ext
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10171 $as_echo "$gl_cv_func_frexp_works" >&6; }
10174 case "$gl_cv_func_frexp_works" in
10175 *yes) gl_func_frexp=yes ;;
10176 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10181 if test $gl_func_frexp = yes; then
10183 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10188 if test $gl_func_frexp != yes; then
10197 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10211 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10221 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10223 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10231 if test $HAVE_DECL_FREXPL = 1; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10234 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10235 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10246 int e; return frexpl (x, &e) > 0;
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 gl_cv_func_frexpl_no_libm=yes
10254 gl_cv_func_frexpl_no_libm=no
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10261 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10263 if test $gl_cv_func_frexpl_no_libm = no; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10265 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10266 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10267 $as_echo_n "(cached) " >&6
10272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10279 int e; return frexpl (x, &e) > 0;
10284 if ac_fn_c_try_link "$LINENO"; then :
10285 gl_cv_func_frexpl_in_libm=yes
10287 gl_cv_func_frexpl_in_libm=no
10289 rm -f core conftest.err conftest.$ac_objext \
10290 conftest$ac_exeext conftest.$ac_ext
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10295 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10296 if test $gl_cv_func_frexpl_in_libm = yes; then
10300 if test $gl_cv_func_frexpl_no_libm = yes \
10301 || test $gl_cv_func_frexpl_in_libm = yes; then
10303 LIBS="$LIBS $FREXPL_LIBM"
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10307 $as_echo_n "checking whether frexpl works... " >&6; }
10308 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10312 if test "$cross_compiling" = yes; then :
10315 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10316 gl_cv_func_frexpl_works="guessing no";;
10317 *) gl_cv_func_frexpl_works="guessing yes";;
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10326 /* Override the values of <float.h>, like done in float.in.h. */
10327 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10328 # undef LDBL_MIN_EXP
10329 # define LDBL_MIN_EXP (-16381)
10331 #if defined __i386__ && defined __FreeBSD__
10332 # undef LDBL_MIN_EXP
10333 # define LDBL_MIN_EXP (-16381)
10335 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10336 # undef LDBL_MIN_EXP
10337 # define LDBL_MIN_EXP DBL_MIN_EXP
10339 #if defined __sgi && (LDBL_MANT_DIG >= 106)
10340 # if defined __GNUC__
10341 # undef LDBL_MIN_EXP
10342 # define LDBL_MIN_EXP DBL_MIN_EXP
10349 long double frexpl (long double, int *);
10353 volatile long double x;
10354 /* Test on finite numbers that fails on AIX 5.1. */
10362 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10363 function returns an invalid (incorrectly normalized) value: it returns
10364 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10365 but the correct result is
10366 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10370 long double y = frexpl (x, &exp);
10371 if (!(exp == 1 && y == 0.505L))
10374 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10375 LDBL_MAX_EXP = 16384.
10376 In the loop end test, we test x against Infinity, rather than comparing
10377 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10380 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10391 /* Test on denormalized numbers. */
10394 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10399 long double y = frexpl (x, &exp);
10400 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10401 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10402 if (exp != LDBL_MIN_EXP - 1)
10406 /* Test on infinite numbers. */
10410 long double y = frexpl (x, &exp);
10417 if ac_fn_c_try_run "$LINENO"; then :
10418 gl_cv_func_frexpl_works=yes
10420 gl_cv_func_frexpl_works=no
10422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10423 conftest.$ac_objext conftest.beam conftest.$ac_ext
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10429 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10432 case "$gl_cv_func_frexpl_works" in
10433 *yes) gl_func_frexpl=yes ;;
10434 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10439 if test $gl_func_frexpl = yes; then
10441 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10445 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10446 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10448 FREXPL_LIBM="$FREXP_LIBM"
10455 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10464 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10478 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10488 if test -n "$STDINT_H"; then
10489 PRIPTR_PREFIX='"l"'
10491 for glpfx in '' l ll I64; do
10493 '') gltype1='int';;
10494 l) gltype1='long int';;
10495 ll) gltype1='long long int';;
10496 I64) gltype1='__int64';;
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 #include <stdint.h>
10501 extern intptr_t foo;
10502 extern $gltype1 foo;
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512 PRIPTR_PREFIX='"'$glpfx'"'
10514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10515 test -n "$PRIPTR_PREFIX" && break
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10522 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10523 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 /* Work also in C++ mode. */
10529 #define __STDC_LIMIT_MACROS 1
10531 /* Work if build is not clean. */
10532 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10534 #include <limits.h>
10536 #include <stdint.h>
10539 #if defined INT32_MAX && defined INTMAX_MAX
10540 #define CONDITION (INT32_MAX < INTMAX_MAX)
10541 #elif HAVE_LONG_LONG_INT
10542 #define CONDITION (sizeof (int) < sizeof (long long int))
10544 #define CONDITION 0
10546 int test[CONDITION ? 1 : -1];
10555 if ac_fn_c_try_compile "$LINENO"; then :
10556 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10558 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10563 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10564 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10565 INT32_MAX_LT_INTMAX_MAX=1;
10567 INT32_MAX_LT_INTMAX_MAX=0;
10571 if test $APPLE_UNIVERSAL_BUILD = 0; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10574 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10575 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580 /* Work also in C++ mode. */
10581 #define __STDC_LIMIT_MACROS 1
10583 /* Work if build is not clean. */
10584 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10586 #include <limits.h>
10588 #include <stdint.h>
10591 #if defined INT64_MAX
10592 #define CONDITION (INT64_MAX == LONG_MAX)
10593 #elif HAVE_LONG_LONG_INT
10594 #define CONDITION (sizeof (long long int) == sizeof (long int))
10596 #define CONDITION 0
10598 int test[CONDITION ? 1 : -1];
10607 if ac_fn_c_try_compile "$LINENO"; then :
10608 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10610 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10615 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10616 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10617 INT64_MAX_EQ_LONG_MAX=1;
10619 INT64_MAX_EQ_LONG_MAX=0;
10624 INT64_MAX_EQ_LONG_MAX=-1
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10628 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10629 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 /* Work also in C++ mode. */
10635 #define __STDC_LIMIT_MACROS 1
10637 /* Work if build is not clean. */
10638 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10640 #include <limits.h>
10642 #include <stdint.h>
10645 #if defined UINT32_MAX && defined UINTMAX_MAX
10646 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10647 #elif HAVE_LONG_LONG_INT
10648 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10650 #define CONDITION 0
10652 int test[CONDITION ? 1 : -1];
10661 if ac_fn_c_try_compile "$LINENO"; then :
10662 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10664 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10669 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10670 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10671 UINT32_MAX_LT_UINTMAX_MAX=1;
10673 UINT32_MAX_LT_UINTMAX_MAX=0;
10677 if test $APPLE_UNIVERSAL_BUILD = 0; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10680 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10681 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10682 $as_echo_n "(cached) " >&6
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686 /* Work also in C++ mode. */
10687 #define __STDC_LIMIT_MACROS 1
10689 /* Work if build is not clean. */
10690 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10692 #include <limits.h>
10694 #include <stdint.h>
10697 #if defined UINT64_MAX
10698 #define CONDITION (UINT64_MAX == ULONG_MAX)
10699 #elif HAVE_LONG_LONG_INT
10700 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10702 #define CONDITION 0
10704 int test[CONDITION ? 1 : -1];
10713 if ac_fn_c_try_compile "$LINENO"; then :
10714 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10716 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10721 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10722 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10723 UINT64_MAX_EQ_ULONG_MAX=1;
10725 UINT64_MAX_EQ_ULONG_MAX=0;
10730 UINT64_MAX_EQ_ULONG_MAX=-1
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10738 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10739 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10748 # define isnand(x) __builtin_isnan ((double)(x))
10751 # define isnand(x) isnan ((double)(x))
10762 if ac_fn_c_try_link "$LINENO"; then :
10763 gl_cv_func_isnand_no_libm=yes
10765 gl_cv_func_isnand_no_libm=no
10767 rm -f core conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10772 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10774 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10775 if test $gl_cv_func_isnand_no_libm = yes; then
10777 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10781 if test $gl_func_isnand_no_libm != yes; then
10790 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10799 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10800 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10809 # define isnanl(x) __builtin_isnanl ((long double)(x))
10810 #elif defined isnan
10812 # define isnanl(x) isnan ((long double)(x))
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 gl_cv_func_isnanl_no_libm=yes
10826 gl_cv_func_isnanl_no_libm=no
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10833 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10835 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10836 if test $gl_func_isnanl_no_libm = yes; then
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10842 $as_echo_n "checking whether isnanl works... " >&6; }
10843 if test "${gl_cv_func_isnanl_works+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10847 if test "$cross_compiling" = yes; then :
10848 case "$host_cpu" in
10849 # Guess no on ia64, x86_64, i386.
10850 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10853 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10854 *) gl_cv_func_isnanl_works="guessing yes";;
10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861 /* end confdefs.h. */
10864 #include <limits.h>
10868 # define isnanl(x) __builtin_isnanl ((long double)(x))
10869 #elif defined isnan
10871 # define isnanl(x) isnan ((long double)(x))
10874 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10875 typedef union { unsigned int word[NWORDS]; long double value; }
10876 memory_long_double;
10877 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
10878 runtime type conversion. */
10880 static long double NaNl ()
10883 return zero / zero;
10886 # define NaNl() (0.0L / 0.0L)
10892 if (!isnanl (NaNl ()))
10896 memory_long_double m;
10899 /* The isnanl function should be immune against changes in the sign bit and
10900 in the mantissa bits. The xor operation twiddles a bit that can only be
10901 a sign bit or a mantissa bit (since the exponent never extends to
10904 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
10905 for (i = 0; i < NWORDS; i++)
10907 if (!isnanl (m.value))
10911 #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
10912 /* Representation of an 80-bit 'long double' as an initializer for a sequence
10913 of 'unsigned int' words. */
10914 # ifdef WORDS_BIGENDIAN
10915 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10916 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
10917 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
10918 (unsigned int) (mantlo) << 16 \
10921 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10922 { mantlo, manthi, exponent }
10925 static memory_long_double x =
10926 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
10927 if (!isnanl (x.value))
10931 /* Signalling NaN. */
10932 static memory_long_double x =
10933 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
10934 if (!isnanl (x.value))
10937 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
10938 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
10939 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
10940 Application Architecture.
10941 Table 5-2 "Floating-Point Register Encodings"
10942 Figure 5-6 "Memory to Floating-Point Register Data Translation"
10944 { /* Pseudo-NaN. */
10945 static memory_long_double x =
10946 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
10947 if (!isnanl (x.value))
10950 { /* Pseudo-Infinity. */
10951 static memory_long_double x =
10952 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
10953 if (!isnanl (x.value))
10956 { /* Pseudo-Zero. */
10957 static memory_long_double x =
10958 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
10959 if (!isnanl (x.value))
10962 { /* Unnormalized number. */
10963 static memory_long_double x =
10964 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
10965 if (!isnanl (x.value))
10968 { /* Pseudo-Denormal. */
10969 static memory_long_double x =
10970 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
10971 if (!isnanl (x.value))
10979 if ac_fn_c_try_run "$LINENO"; then :
10980 gl_cv_func_isnanl_works=yes
10982 gl_cv_func_isnanl_works=no
10984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10985 conftest.$ac_objext conftest.beam conftest.$ac_ext
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
10991 $as_echo "$gl_cv_func_isnanl_works" >&6; }
10993 case "$gl_cv_func_isnanl_works" in
10995 *) gl_func_isnanl_no_libm=no ;;
10998 if test $gl_func_isnanl_no_libm = yes; then
11000 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11004 if test $gl_func_isnanl_no_libm != yes; then
11013 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11019 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11020 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11024 if test "$cross_compiling" = yes; then :
11026 gl_cv_cc_long_double_expbit0="unknown"
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11033 #include <stddef.h>
11035 #include <string.h>
11037 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11038 typedef union { long double value; unsigned int word[NWORDS]; }
11039 memory_long_double;
11040 static unsigned int ored_words[NWORDS];
11041 static unsigned int anded_words[NWORDS];
11042 static void add_to_ored_words (long double x)
11044 memory_long_double m;
11046 /* Clear it first, in case
11047 sizeof (long double) < sizeof (memory_long_double). */
11048 memset (&m, 0, sizeof (memory_long_double));
11050 for (i = 0; i < NWORDS; i++)
11052 ored_words[i] |= m.word[i];
11053 anded_words[i] &= m.word[i];
11059 FILE *fp = fopen ("conftest.out", "w");
11062 for (j = 0; j < NWORDS; j++)
11063 anded_words[j] = ~ (unsigned int) 0;
11064 add_to_ored_words (0.25L);
11065 add_to_ored_words (0.5L);
11066 add_to_ored_words (1.0L);
11067 add_to_ored_words (2.0L);
11068 add_to_ored_words (4.0L);
11069 /* Remove bits that are common (e.g. if representation of the first mantissa
11070 bit is explicit). */
11071 for (j = 0; j < NWORDS; j++)
11072 ored_words[j] &= ~anded_words[j];
11073 /* Now find the nonzero word. */
11074 for (j = 0; j < NWORDS; j++)
11075 if (ored_words[j] != 0)
11080 for (i = j + 1; i < NWORDS; i++)
11081 if (ored_words[i] != 0)
11083 fprintf (fp, "unknown");
11084 return (fclose (fp) != 0);
11087 if ((ored_words[j] >> i) & 1)
11089 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11090 return (fclose (fp) != 0);
11093 fprintf (fp, "unknown");
11094 return (fclose (fp) != 0);
11098 if ac_fn_c_try_run "$LINENO"; then :
11099 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
11101 gl_cv_cc_long_double_expbit0="unknown"
11103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11104 conftest.$ac_objext conftest.beam conftest.$ac_ext
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11111 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11112 case "$gl_cv_cc_long_double_expbit0" in
11114 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
11115 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
11117 cat >>confdefs.h <<_ACEOF
11118 #define LDBL_EXPBIT0_WORD $word
11122 cat >>confdefs.h <<_ACEOF
11123 #define LDBL_EXPBIT0_BIT $bit
11146 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11165 if test $gl_cv_have_include_next = yes; then
11166 gl_cv_next_math_h='<'math.h'>'
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11169 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11170 if test "${gl_cv_next_math_h+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11174 if test $ac_cv_header_math_h = yes; then
11177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11183 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11184 *) gl_absname_cpp="$ac_cpp" ;;
11189 gl_dirsep_regex='[/\\]'
11192 gl_dirsep_regex='\/'
11195 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11197 gl_header_literal_regex=`echo 'math.h' \
11198 |
sed -e "$gl_make_literal_regex_sed"`
11199 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11200 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11205 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11206 sed -n "$gl_absolute_header_sed"`'"'
11208 gl_cv_next_math_h='<'math.h'>'
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11214 $as_echo "$gl_cv_next_math_h" >&6; }
11216 NEXT_MATH_H=$gl_cv_next_math_h
11218 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11220 gl_next_as_first_directive='<'math.h'>'
11222 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11223 gl_next_as_first_directive=$gl_cv_next_math_h
11225 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11232 $as_echo_n "checking whether NAN macro works... " >&6; }
11233 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11242 /* Solaris 10 has a broken definition of NAN. Other platforms
11243 fail to provide NAN, or provide it only in C99 mode; this
11244 test only needs to fail when NAN is provided but wrong. */
11254 if ac_fn_c_try_compile "$LINENO"; then :
11255 gl_cv_header_math_nan_works=yes
11257 gl_cv_header_math_nan_works=no
11259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11262 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11263 if test $gl_cv_header_math_nan_works = no; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11267 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11268 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11269 $as_echo_n "(cached) " >&6
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11277 /* Solaris 10 has a broken definition of HUGE_VAL. */
11278 double d = HUGE_VAL;
11284 if ac_fn_c_try_compile "$LINENO"; then :
11285 gl_cv_header_math_huge_val_works=yes
11287 gl_cv_header_math_huge_val_works=no
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11292 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11293 if test $gl_cv_header_math_huge_val_works = no; then
11298 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
11299 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11301 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11302 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11303 $as_echo_n "(cached) " >&6
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11317 if ac_fn_c_try_compile "$LINENO"; then :
11318 eval "$as_gl_Symbol=yes"
11320 eval "$as_gl_Symbol=no"
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 eval ac_res=\$$as_gl_Symbol
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11326 $as_echo "$ac_res" >&6; }
11327 eval as_val=\$$as_gl_Symbol
11328 if test "x$as_val" = x""yes; then :
11329 cat >>confdefs.h <<_ACEOF
11330 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11333 eval ac_cv_have_decl_$gl_func=yes
11360 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11365 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11366 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
11371 # Guess no on AIX and OSF/1.
11372 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11373 # Guess yes otherwise.
11374 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11376 if test $LOCALE_JA != none; then
11377 if test "$cross_compiling" = yes; then :
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 #include <locale.h>
11384 #include <string.h>
11385 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11387 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11388 included before <wchar.h>. */
11389 #include <stddef.h>
11395 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11397 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11401 memset (&state, '\0', sizeof (mbstate_t));
11402 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11403 if (mbsinit (&state))
11409 if ac_fn_c_try_run "$LINENO"; then :
11410 gl_cv_func_mbrtowc_incomplete_state=yes
11412 gl_cv_func_mbrtowc_incomplete_state=no
11414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11415 conftest.$ac_objext conftest.beam conftest.$ac_ext
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11422 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11428 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11429 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11430 $as_echo_n "(cached) " >&6
11434 # Guess no on Solaris 8.
11435 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11436 # Guess yes otherwise.
11437 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11439 if test $LOCALE_ZH_CN != none; then
11440 if test "$cross_compiling" = yes; then :
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11446 #include <locale.h>
11447 #include <stdlib.h>
11448 #include <string.h>
11449 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11452 included before <wchar.h>. */
11453 #include <stddef.h>
11459 /* This fails on Solaris 8:
11460 mbrtowc returns 2, and sets wc to 0x00F0.
11461 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11462 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11464 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11468 memset (&state, '\0', sizeof (mbstate_t));
11469 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11470 && mbtowc (&wc, input + 3, 6) == 4)
11476 if ac_fn_c_try_run "$LINENO"; then :
11477 gl_cv_func_mbrtowc_sanitycheck=yes
11479 gl_cv_func_mbrtowc_sanitycheck=no
11481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11482 conftest.$ac_objext conftest.beam conftest.$ac_ext
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11489 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11491 REPLACE_MBSTATE_T=0
11492 case "$gl_cv_func_mbrtowc_incomplete_state" in
11494 *) REPLACE_MBSTATE_T=1 ;;
11496 case "$gl_cv_func_mbrtowc_sanitycheck" in
11498 *) REPLACE_MBSTATE_T=1 ;;
11501 REPLACE_MBSTATE_T=1
11512 if test $ac_cv_func_mbrtowc = no; then
11514 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11515 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11517 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11518 included before <wchar.h>. */
11519 #include <stddef.h>
11525 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11531 cat >>confdefs.h <<_ACEOF
11532 #define HAVE_DECL_MBRTOWC $ac_have_decl
11535 if test $ac_cv_have_decl_mbrtowc = yes; then
11539 if test $REPLACE_MBSTATE_T = 1; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11546 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11547 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
11552 # Guess no on Solaris.
11553 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11554 # Guess yes otherwise.
11555 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11557 if test $LOCALE_FR_UTF8 != none; then
11558 if test "$cross_compiling" = yes; then :
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 #include <locale.h>
11565 #include <stdlib.h>
11566 #include <string.h>
11567 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11569 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11570 included before <wchar.h>. */
11571 #include <stddef.h>
11579 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11581 char input[] = "\303\237er";
11586 memset (&state, '\0', sizeof (mbstate_t));
11587 wc = (wchar_t) 0xBADFACE;
11588 ret = mbrtowc (&wc, input, 5, &state);
11591 if (!mbsinit (&state))
11594 memset (&state, '\0', sizeof (mbstate_t));
11595 ret = mbrtowc (NULL, input, 5, &state);
11596 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11598 if (!mbsinit (&state))
11604 if ac_fn_c_try_run "$LINENO"; then :
11605 gl_cv_func_mbrtowc_null_arg1=yes
11607 gl_cv_func_mbrtowc_null_arg1=no
11609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11610 conftest.$ac_objext conftest.beam conftest.$ac_ext
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11617 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11623 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11624 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11629 # Guess no on OSF/1.
11630 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11631 # Guess yes otherwise.
11632 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11634 if test $LOCALE_FR_UTF8 != none; then
11635 if test "$cross_compiling" = yes; then :
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11641 #include <locale.h>
11642 #include <string.h>
11643 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11645 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11646 included before <wchar.h>. */
11647 #include <stddef.h>
11653 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11659 memset (&state, '\0', sizeof (mbstate_t));
11660 wc = (wchar_t) 0xBADFACE;
11661 mbrtowc (&wc, NULL, 5, &state);
11662 /* Check that wc was not modified. */
11663 if (wc != (wchar_t) 0xBADFACE)
11669 if ac_fn_c_try_run "$LINENO"; then :
11670 gl_cv_func_mbrtowc_null_arg2=yes
11672 gl_cv_func_mbrtowc_null_arg2=no
11674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11675 conftest.$ac_objext conftest.beam conftest.$ac_ext
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11682 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11690 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11691 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11696 # Guess no on HP-UX, Solaris, native Windows.
11697 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11698 # Guess yes otherwise.
11699 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11701 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11702 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11703 if test "$cross_compiling" = yes; then :
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11709 #include <locale.h>
11710 #include <string.h>
11711 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11713 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11714 included before <wchar.h>. */
11715 #include <stddef.h>
11722 int found_some_locale = 0;
11723 /* This fails on Solaris. */
11724 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11726 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11730 memset (&state, '\0', sizeof (mbstate_t));
11731 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11734 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11737 found_some_locale = 1;
11739 /* This fails on HP-UX 11.11. */
11740 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11742 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11746 memset (&state, '\0', sizeof (mbstate_t));
11747 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11750 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11753 found_some_locale = 1;
11755 /* This fails on native Windows. */
11756 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11758 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11762 memset (&state, '\0', sizeof (mbstate_t));
11763 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11766 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11769 found_some_locale = 1;
11771 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11773 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11777 memset (&state, '\0', sizeof (mbstate_t));
11778 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11781 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11784 found_some_locale = 1;
11786 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11788 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11792 memset (&state, '\0', sizeof (mbstate_t));
11793 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11796 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11799 found_some_locale = 1;
11801 return (found_some_locale ? result : 77);
11804 if ac_fn_c_try_run "$LINENO"; then :
11805 gl_cv_func_mbrtowc_retval=yes
11807 if test $? != 77; then
11808 gl_cv_func_mbrtowc_retval=no
11812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11813 conftest.$ac_objext conftest.beam conftest.$ac_ext
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11820 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11826 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11827 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11832 # Guess no on Solaris 8 and 9.
11833 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11834 # Guess yes otherwise.
11835 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11837 if test $LOCALE_ZH_CN != none; then
11838 if test "$cross_compiling" = yes; then :
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11844 #include <locale.h>
11845 #include <string.h>
11846 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11848 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11849 included before <wchar.h>. */
11850 #include <stddef.h>
11856 /* This fails on Solaris 8 and 9. */
11857 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11862 memset (&state, '\0', sizeof (mbstate_t));
11863 if (mbrtowc (&wc, "", 1, &state) != 0)
11869 if ac_fn_c_try_run "$LINENO"; then :
11870 gl_cv_func_mbrtowc_nul_retval=yes
11872 gl_cv_func_mbrtowc_nul_retval=no
11874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11875 conftest.$ac_objext conftest.beam conftest.$ac_ext
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11882 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11884 case "$gl_cv_func_mbrtowc_null_arg1" in
11887 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11892 case "$gl_cv_func_mbrtowc_null_arg2" in
11895 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11900 case "$gl_cv_func_mbrtowc_retval" in
11903 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
11908 case "$gl_cv_func_mbrtowc_nul_retval" in
11911 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
11919 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
11928 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
11945 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
11972 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11977 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11978 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
11983 # Guess no on AIX and OSF/1.
11984 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11985 # Guess yes otherwise.
11986 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11988 if test $LOCALE_JA != none; then
11989 if test "$cross_compiling" = yes; then :
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 #include <locale.h>
11996 #include <string.h>
11997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12000 included before <wchar.h>. */
12001 #include <stddef.h>
12007 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12009 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12013 memset (&state, '\0', sizeof (mbstate_t));
12014 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12015 if (mbsinit (&state))
12021 if ac_fn_c_try_run "$LINENO"; then :
12022 gl_cv_func_mbrtowc_incomplete_state=yes
12024 gl_cv_func_mbrtowc_incomplete_state=no
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12027 conftest.$ac_objext conftest.beam conftest.$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12034 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12040 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12041 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12046 # Guess no on Solaris 8.
12047 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12048 # Guess yes otherwise.
12049 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12051 if test $LOCALE_ZH_CN != none; then
12052 if test "$cross_compiling" = yes; then :
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12058 #include <locale.h>
12059 #include <stdlib.h>
12060 #include <string.h>
12061 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12063 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12064 included before <wchar.h>. */
12065 #include <stddef.h>
12071 /* This fails on Solaris 8:
12072 mbrtowc returns 2, and sets wc to 0x00F0.
12073 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12074 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12076 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12080 memset (&state, '\0', sizeof (mbstate_t));
12081 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12082 && mbtowc (&wc, input + 3, 6) == 4)
12088 if ac_fn_c_try_run "$LINENO"; then :
12089 gl_cv_func_mbrtowc_sanitycheck=yes
12091 gl_cv_func_mbrtowc_sanitycheck=no
12093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12094 conftest.$ac_objext conftest.beam conftest.$ac_ext
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12101 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12103 REPLACE_MBSTATE_T=0
12104 case "$gl_cv_func_mbrtowc_incomplete_state" in
12106 *) REPLACE_MBSTATE_T=1 ;;
12108 case "$gl_cv_func_mbrtowc_sanitycheck" in
12110 *) REPLACE_MBSTATE_T=1 ;;
12113 REPLACE_MBSTATE_T=1
12124 if test $ac_cv_func_mbsinit = no; then
12126 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12127 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12129 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12130 included before <wchar.h>. */
12131 #include <stddef.h>
12137 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12143 cat >>confdefs.h <<_ACEOF
12144 #define HAVE_DECL_MBSINIT $ac_have_decl
12147 if test $ac_cv_have_decl_mbsinit = yes; then
12151 if test $REPLACE_MBSTATE_T = 1; then
12155 mingw*) REPLACE_MBSINIT=1 ;;
12160 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12169 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12186 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12212 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12217 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12218 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12223 # Guess no on AIX and OSF/1.
12224 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12225 # Guess yes otherwise.
12226 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12228 if test $LOCALE_JA != none; then
12229 if test "$cross_compiling" = yes; then :
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 #include <locale.h>
12236 #include <string.h>
12237 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12239 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12240 included before <wchar.h>. */
12241 #include <stddef.h>
12247 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12249 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12253 memset (&state, '\0', sizeof (mbstate_t));
12254 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12255 if (mbsinit (&state))
12261 if ac_fn_c_try_run "$LINENO"; then :
12262 gl_cv_func_mbrtowc_incomplete_state=yes
12264 gl_cv_func_mbrtowc_incomplete_state=no
12266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12267 conftest.$ac_objext conftest.beam conftest.$ac_ext
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12274 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12280 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12281 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12286 # Guess no on Solaris 8.
12287 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12288 # Guess yes otherwise.
12289 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12291 if test $LOCALE_ZH_CN != none; then
12292 if test "$cross_compiling" = yes; then :
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12298 #include <locale.h>
12299 #include <stdlib.h>
12300 #include <string.h>
12301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12304 included before <wchar.h>. */
12305 #include <stddef.h>
12311 /* This fails on Solaris 8:
12312 mbrtowc returns 2, and sets wc to 0x00F0.
12313 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12314 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12316 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12320 memset (&state, '\0', sizeof (mbstate_t));
12321 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12322 && mbtowc (&wc, input + 3, 6) == 4)
12328 if ac_fn_c_try_run "$LINENO"; then :
12329 gl_cv_func_mbrtowc_sanitycheck=yes
12331 gl_cv_func_mbrtowc_sanitycheck=no
12333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12341 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12343 REPLACE_MBSTATE_T=0
12344 case "$gl_cv_func_mbrtowc_incomplete_state" in
12346 *) REPLACE_MBSTATE_T=1 ;;
12348 case "$gl_cv_func_mbrtowc_sanitycheck" in
12350 *) REPLACE_MBSTATE_T=1 ;;
12353 REPLACE_MBSTATE_T=1
12364 if test $ac_cv_func_mbsrtowcs = no; then
12366 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12367 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12369 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12370 included before <wchar.h>. */
12371 #include <stddef.h>
12377 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12383 cat >>confdefs.h <<_ACEOF
12384 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12387 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12388 REPLACE_MBSRTOWCS=1
12391 if test $REPLACE_MBSTATE_T = 1; then
12392 REPLACE_MBSRTOWCS=1
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12401 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12402 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12407 # Guess no on HP-UX, Solaris, mingw.
12408 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12409 # Guess yes otherwise.
12410 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12412 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12413 if test "$cross_compiling" = yes; then :
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 #include <locale.h>
12420 #include <string.h>
12421 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12423 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12424 included before <wchar.h>. */
12425 #include <stddef.h>
12432 /* Test whether the function supports a NULL destination argument.
12433 This fails on native Windows. */
12434 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12436 const char input[] = "\337er";
12437 const char *src = input;
12440 memset (&state, '\0', sizeof (mbstate_t));
12441 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12445 /* Test whether the function works when started with a conversion state
12446 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12447 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12449 const char input[] = "B\303\274\303\237er";
12452 memset (&state, '\0', sizeof (mbstate_t));
12453 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12454 if (!mbsinit (&state))
12456 const char *src = input + 2;
12457 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12461 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12463 const char input[] = "<\306\374\313\334\270\354>";
12466 memset (&state, '\0', sizeof (mbstate_t));
12467 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12468 if (!mbsinit (&state))
12470 const char *src = input + 4;
12471 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12475 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12477 const char input[] = "B\250\271\201\060\211\070er";
12480 memset (&state, '\0', sizeof (mbstate_t));
12481 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12482 if (!mbsinit (&state))
12484 const char *src = input + 2;
12485 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12492 if ac_fn_c_try_run "$LINENO"; then :
12493 gl_cv_func_mbsrtowcs_works=yes
12495 gl_cv_func_mbsrtowcs_works=no
12497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12498 conftest.$ac_objext conftest.beam conftest.$ac_ext
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12505 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12507 case "$gl_cv_func_mbsrtowcs_works" in
12509 *) REPLACE_MBSRTOWCS=1 ;;
12514 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
12523 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12533 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12550 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
12555 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12564 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12567 for ac_header in bp-sym.h
12569 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12570 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_BP_SYM_H 1
12592 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12598 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12600 $as_echo_n "checking whether memmem works in linear time... " >&6; }
12601 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12604 if test "$cross_compiling" = yes; then :
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12608 #include <features.h>
12609 #ifdef __GNU_LIBRARY__
12610 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12611 && !defined __UCLIBC__
12616 #include <cygwin/version.h>
12617 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12624 $EGREP "Lucky user" >/dev/null 2>&1; then :
12625 gl_cv_func_memmem_works_fast="guessing yes"
12627 gl_cv_func_memmem_works_fast="guessing no"
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12636 #include <signal.h> /* for signal */
12637 #include <string.h> /* for memmem */
12638 #include <stdlib.h> /* for malloc */
12639 #include <unistd.h> /* for alarm */
12640 static void quit (int sig) { exit (sig + 128); }
12647 size_t m = 1000000;
12648 char *haystack = (char *) malloc (2 * m + 1);
12649 char *needle = (char *) malloc (m + 1);
12650 /* Failure to compile this test due to missing alarm is okay,
12651 since all such platforms (mingw) also lack memmem. */
12652 signal (SIGALRM, quit);
12654 /* Check for quadratic performance. */
12655 if (haystack && needle)
12657 memset (haystack, 'A', 2 * m);
12658 haystack[2 * m] = 'B';
12659 memset (needle, 'A', m);
12661 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12670 if ac_fn_c_try_run "$LINENO"; then :
12671 gl_cv_func_memmem_works_fast=yes
12673 gl_cv_func_memmem_works_fast=no
12675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12676 conftest.$ac_objext conftest.beam conftest.$ac_ext
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12682 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
12683 case "$gl_cv_func_memmem_works_fast" in
12691 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12700 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12707 for ac_func in memmem
12709 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12710 if test "x$ac_cv_func_memmem" = x""yes; then :
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_MEMMEM 1
12718 if test $ac_cv_func_memmem = yes; then
12730 if test $ac_cv_have_decl_memmem = no; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12734 $as_echo_n "checking whether memmem works... " >&6; }
12735 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12738 if test "$cross_compiling" = yes; then :
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12742 #ifdef __GNU_LIBRARY__
12743 #include <features.h>
12744 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12745 || __GLIBC_MINOR__ > 12)) \
12746 || (__GLIBC__ > 2)) \
12747 || defined __UCLIBC__
12750 #elif defined __CYGWIN__
12751 #include <cygwin/version.h>
12752 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12761 $EGREP "Lucky user" >/dev/null 2>&1; then :
12762 gl_cv_func_memmem_works_always="guessing yes"
12764 gl_cv_func_memmem_works_always="guessing no"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12773 #include <string.h> /* for memmem */
12774 #define P "_EF_BF_BD"
12775 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12776 #define NEEDLE P P P P P
12783 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12785 /* Check for empty needle behavior. */
12787 const char *haystack = "AAA";
12788 if (memmem (haystack, 3, NULL, 0) != haystack)
12797 if ac_fn_c_try_run "$LINENO"; then :
12798 gl_cv_func_memmem_works_always=yes
12800 gl_cv_func_memmem_works_always=no
12802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12803 conftest.$ac_objext conftest.beam conftest.$ac_ext
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12809 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12810 case "$gl_cv_func_memmem_works_always" in
12819 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12828 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12842 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12850 # Define two additional variables used in the Makefile substitution.
12852 if test "$ac_cv_header_stdbool_h" = yes; then
12855 STDBOOL_H='stdbool.h'
12858 if test -n "$STDBOOL_H"; then
12859 GL_GENERATE_STDBOOL_H_TRUE=
12860 GL_GENERATE_STDBOOL_H_FALSE='#'
12862 GL_GENERATE_STDBOOL_H_TRUE='#'
12863 GL_GENERATE_STDBOOL_H_FALSE=
12867 if test "$ac_cv_type__Bool" = yes; then
12878 if test $gt_cv_c_wchar_t = no; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12883 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12884 if test "${gl_cv_decl_null_works+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #include <stddef.h>
12890 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12900 if ac_fn_c_try_compile "$LINENO"; then :
12901 gl_cv_decl_null_works=yes
12903 gl_cv_decl_null_works=no
12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12908 $as_echo "$gl_cv_decl_null_works" >&6; }
12909 if test $gl_cv_decl_null_works = no; then
12914 if test -n "$STDDEF_H"; then
12915 GL_GENERATE_STDDEF_H_TRUE=
12916 GL_GENERATE_STDDEF_H_FALSE='#'
12918 GL_GENERATE_STDDEF_H_TRUE='#'
12919 GL_GENERATE_STDDEF_H_FALSE=
12922 if test -n "$STDDEF_H"; then
12931 if test $gl_cv_have_include_next = yes; then
12932 gl_cv_next_stddef_h='<'stddef.h'>'
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
12935 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
12936 if test "${gl_cv_next_stddef_h+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942 #include <stddef.h>
12946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12947 *) gl_absname_cpp="$ac_cpp" ;;
12952 gl_dirsep_regex='[/\\]'
12955 gl_dirsep_regex='\/'
12958 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12960 gl_header_literal_regex=`echo 'stddef.h' \
12961 |
sed -e "$gl_make_literal_regex_sed"`
12962 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12968 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12969 sed -n "$gl_absolute_header_sed"`'"'
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
12974 $as_echo "$gl_cv_next_stddef_h" >&6; }
12976 NEXT_STDDEF_H=$gl_cv_next_stddef_h
12978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12980 gl_next_as_first_directive='<'stddef.h'>'
12982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12983 gl_next_as_first_directive=$gl_cv_next_stddef_h
12985 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13014 if test $gl_cv_have_include_next = yes; then
13015 gl_cv_next_wchar_h='<'wchar.h'>'
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
13018 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
13019 if test "${gl_cv_next_wchar_h+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13023 if test $ac_cv_header_wchar_h = yes; then
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13032 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13033 *) gl_absname_cpp="$ac_cpp" ;;
13038 gl_dirsep_regex='[/\\]'
13041 gl_dirsep_regex='\/'
13044 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13046 gl_header_literal_regex=`echo 'wchar.h' \
13047 |
sed -e "$gl_make_literal_regex_sed"`
13048 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13049 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13054 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13055 sed -n "$gl_absolute_header_sed"`'"'
13057 gl_cv_next_wchar_h='<'wchar.h'>'
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
13063 $as_echo "$gl_cv_next_wchar_h" >&6; }
13065 NEXT_WCHAR_H=$gl_cv_next_wchar_h
13067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13069 gl_next_as_first_directive='<'wchar.h'>'
13071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13072 gl_next_as_first_directive=$gl_cv_next_wchar_h
13074 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
13079 if test $ac_cv_header_wchar_h = yes; then
13089 if test $gt_cv_c_wint_t = yes; then
13097 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
13098 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13100 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13101 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13102 $as_echo_n "(cached) " >&6
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13107 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13109 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13110 included before <wchar.h>. */
13111 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13112 # include <stddef.h>
13113 # include <stdio.h>
13127 if ac_fn_c_try_compile "$LINENO"; then :
13128 eval "$as_gl_Symbol=yes"
13130 eval "$as_gl_Symbol=no"
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 eval ac_res=\$$as_gl_Symbol
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13136 $as_echo "$ac_res" >&6; }
13137 eval as_val=\$$as_gl_Symbol
13138 if test "x$as_val" = x""yes; then :
13139 cat >>confdefs.h <<_ACEOF
13140 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13143 eval ac_cv_have_decl_$gl_func=yes
13159 if test $ac_cv_func_iswcntrl = yes; then
13167 if test $gt_cv_c_wint_t = yes; then
13189 if test $gl_cv_have_include_next = yes; then
13190 gl_cv_next_wctype_h='<'wctype.h'>'
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
13193 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
13194 if test "${gl_cv_next_wctype_h+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13198 if test $ac_cv_header_wctype_h = yes; then
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 #include <wctype.h>
13207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13208 *) gl_absname_cpp="$ac_cpp" ;;
13213 gl_dirsep_regex='[/\\]'
13216 gl_dirsep_regex='\/'
13219 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13221 gl_header_literal_regex=`echo 'wctype.h' \
13222 |
sed -e "$gl_make_literal_regex_sed"`
13223 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13229 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13230 sed -n "$gl_absolute_header_sed"`'"'
13232 gl_cv_next_wctype_h='<'wctype.h'>'
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
13238 $as_echo "$gl_cv_next_wctype_h" >&6; }
13240 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
13242 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13244 gl_next_as_first_directive='<'wctype.h'>'
13246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13247 gl_next_as_first_directive=$gl_cv_next_wctype_h
13249 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
13254 if test $ac_cv_header_wctype_h = yes; then
13255 if test $ac_cv_func_iswcntrl = yes; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
13257 $as_echo_n "checking whether iswcntrl works... " >&6; }
13258 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
13259 $as_echo_n "(cached) " >&6
13262 if test "$cross_compiling" = yes; then :
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265 #include <stdlib.h>
13266 #if __GNU_LIBRARY__ == 1
13267 Linux libc5 i18n is broken.
13277 if ac_fn_c_try_compile "$LINENO"; then :
13278 gl_cv_func_iswcntrl_works="guessing yes"
13280 gl_cv_func_iswcntrl_works="guessing no"
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13288 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13289 included before <wchar.h>.
13290 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13291 must be included before <wchar.h>. */
13292 #include <stddef.h>
13296 #include <wctype.h>
13297 int main () { return iswprint ('x') == 0; }
13300 if ac_fn_c_try_run "$LINENO"; then :
13301 gl_cv_func_iswcntrl_works=yes
13303 gl_cv_func_iswcntrl_works=no
13305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13306 conftest.$ac_objext conftest.beam conftest.$ac_ext
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13312 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13320 case "$gl_cv_func_iswcntrl_works" in
13321 *yes) REPLACE_ISWCNTRL=0 ;;
13322 *) REPLACE_ISWCNTRL=1 ;;
13326 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13330 if test $REPLACE_ISWCNTRL = 1; then
13333 for ac_func in towlower
13335 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13336 if test "x$ac_cv_func_towlower" = x""yes; then :
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_TOWLOWER 1
13344 if test $ac_cv_func_towlower = yes; then
13347 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13348 included before <wchar.h>.
13349 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13350 must be included before <wchar.h>. */
13351 #include <stddef.h>
13356 # include <wctype.h>
13360 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_DECL_TOWLOWER $ac_have_decl
13370 if test $ac_cv_have_decl_towlower = yes; then
13379 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13384 $as_echo_n "checking for wctype_t... " >&6; }
13385 if test "${gl_cv_type_wctype_t+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13391 included before <wchar.h>.
13392 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13393 must be included before <wchar.h>. */
13394 #include <stddef.h>
13399 # include <wctype.h>
13411 if ac_fn_c_try_compile "$LINENO"; then :
13412 gl_cv_type_wctype_t=yes
13414 gl_cv_type_wctype_t=no
13416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13420 $as_echo "$gl_cv_type_wctype_t" >&6; }
13421 if test $gl_cv_type_wctype_t = no; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13426 $as_echo_n "checking for wctrans_t... " >&6; }
13427 if test "${gl_cv_type_wctrans_t+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13433 included before <wchar.h>.
13434 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13435 must be included before <wchar.h>. */
13436 #include <stddef.h>
13440 #include <wctype.h>
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 gl_cv_type_wctrans_t=yes
13454 gl_cv_type_wctrans_t=no
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13460 $as_echo "$gl_cv_type_wctrans_t" >&6; }
13461 if test $gl_cv_type_wctrans_t = no; then
13466 for gl_func in wctype iswctype wctrans towctrans ; do
13467 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13469 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13470 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13471 $as_echo_n "(cached) " >&6
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13476 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13478 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13479 included before <wchar.h>. */
13480 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13481 # include <stddef.h>
13482 # include <stdio.h>
13484 # include <wchar.h>
13486 #include <wctype.h>
13497 if ac_fn_c_try_compile "$LINENO"; then :
13498 eval "$as_gl_Symbol=yes"
13500 eval "$as_gl_Symbol=no"
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 eval ac_res=\$$as_gl_Symbol
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13506 $as_echo "$ac_res" >&6; }
13507 eval as_val=\$$as_gl_Symbol
13508 if test "x$as_val" = x""yes; then :
13509 cat >>confdefs.h <<_ACEOF
13510 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13513 eval ac_cv_have_decl_$gl_func=yes
13518 # End of code from modules
13539 gl_source_base='tests'
13540 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
13542 gl_module_indicator_condition=$gltests_WITNESS
13552 LIBGNU_LIBDEPS="$gl_libdeps"
13554 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13558 # We don't use automake, but gnulib does. This line lets us generate
13560 am__api_version='1.11'
13562 # Find a good install program. We prefer a C program (faster),
13563 # so one script is as good as another. But avoid the broken or
13564 # incompatible versions:
13565 # SysV /etc/install, /usr/sbin/install
13566 # SunOS /usr/etc/install
13567 # IRIX /sbin/install
13569 # AmigaOS /C/install, which installs bootblocks on floppy discs
13570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13573 # OS/2's system install, which has a completely different semantic
13574 # ./install, which can be erroneously created by make from ./install.sh.
13575 # Reject install programs that cannot install multiple files.
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13578 if test -z "$INSTALL"; then
13579 if test "${ac_cv_path_install+set}" = set; then :
13580 $as_echo_n "(cached) " >&6
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13586 test -z "$as_dir" && as_dir=.
13587 # Account for people who put trailing slashes in PATH elements.
13588 case $as_dir/ in #((
13589 ./ | .// | /[cC]/* | \
13590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13594 # OSF1 and SCO ODT 3.0 have their own names for install.
13595 # Don't use installbsd from OSF since it installs stuff as root
13597 for ac_prog in ginstall scoinst install; do
13598 for ac_exec_ext in '' $ac_executable_extensions; do
13599 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13600 if test $ac_prog = install &&
13601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13602 # AIX install. It has an incompatible calling convention.
13604 elif test $ac_prog = install &&
13605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13606 # program-specific install script used by HP pwplus--don't use.
13609 rm -rf conftest.one conftest.two conftest.dir
13610 echo one > conftest.one
13611 echo two > conftest.two
13613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13614 test -s conftest.one && test -s conftest.two &&
13615 test -s conftest.dir/conftest.one &&
13616 test -s conftest.dir/conftest.two
13618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13631 rm -rf conftest.one conftest.two conftest.dir
13634 if test "${ac_cv_path_install+set}" = set; then
13635 INSTALL=$ac_cv_path_install
13637 # As a last resort, use the slow shell script. Don't cache a
13638 # value for INSTALL within a source directory, because that will
13639 # break other packages using the cache if that directory is
13640 # removed, or if the value is a relative name.
13641 INSTALL=$ac_install_sh
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13645 $as_echo "$INSTALL" >&6; }
13647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13648 # It thinks the first close brace ends the variable substitution.
13649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13656 $as_echo_n "checking whether build environment is sane... " >&6; }
13659 echo timestamp > conftest.file
13660 # Reject unsafe characters in $srcdir or the absolute working directory
13661 # name. Accept space and tab only in the latter.
13665 *[\\\"\#\$\&\'\`$am_lf]*)
13666 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
13669 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
13670 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13673 # Do `set' in a subshell so we don't clobber the current shell's
13674 # arguments. Must try -L first in case configure is actually a
13675 # symlink; some systems play weird games with the mod time of symlinks
13676 # (eg FreeBSD returns the mod time of the symlink's containing
13679 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13680 if test "$*" = "X"; then
13682 set X
`ls -t "$srcdir/configure" conftest.file`
13684 rm -f conftest.
file
13685 if test "$*" != "X $srcdir/configure conftest.file" \
13686 && test "$*" != "X conftest.file $srcdir/configure"; then
13688 # If neither matched, then we have a broken ls. This can happen
13689 # if, for instance, CONFIG_SHELL is bash and it inherits a
13690 # broken ls alias from the environment. This has actually
13691 # happened. Such a system could not be considered "sane".
13692 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
13693 alias in your environment" "$LINENO" 5
13696 test "$2" = conftest.
file
13702 as_fn_error
"newly created file is older than distributed files!
13703 Check your system clock" "$LINENO" 5
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13706 $as_echo "yes" >&6; }
13707 test "$program_prefix" != NONE
&&
13708 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
13709 # Use a double $ so make ignores it.
13710 test "$program_suffix" != NONE
&&
13711 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
13712 # Double any \ or $.
13713 # By default was `s,x,x', remove it if useless.
13714 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
13715 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
13717 # expand $ac_aux_dir to an absolute path
13718 am_aux_dir
=`cd $ac_aux_dir && pwd`
13720 if test x
"${MISSING+set}" != xset
; then
13721 case $am_aux_dir in
13723 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
13725 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
13728 # Use eval to expand $SHELL
13729 if eval "$MISSING --run true"; then
13730 am_missing_run
="$MISSING --run "
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13737 if test x
"${install_sh}" != xset
; then
13738 case $am_aux_dir in
13740 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
13742 install_sh
="\${SHELL} $am_aux_dir/install-sh"
13746 # Installed binaries are usually stripped using `strip' when the user
13747 # run `make install-strip'. However `strip' might not be the right
13748 # tool to use in cross-compilation environments, therefore Automake
13749 # will honor the `STRIP' environment variable to overrule this program.
13750 if test "$cross_compiling" != no
; then
13751 if test -n "$ac_tool_prefix"; then
13752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13753 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755 $as_echo_n "checking for $ac_word... " >&6; }
13756 if test "${ac_cv_prog_STRIP+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13759 if test -n "$STRIP"; then
13760 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
13762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13763 for as_dir
in $PATH
13766 test -z "$as_dir" && as_dir
=.
13767 for ac_exec_ext
in '' $ac_executable_extensions; do
13768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13769 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13779 STRIP
=$ac_cv_prog_STRIP
13780 if test -n "$STRIP"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13782 $as_echo "$STRIP" >&6; }
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13790 if test -z "$ac_cv_prog_STRIP"; then
13792 # Extract the first word of "strip", so it can be a program name with args.
13793 set dummy strip
; ac_word
=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13799 if test -n "$ac_ct_STRIP"; then
13800 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
13802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13803 for as_dir
in $PATH
13806 test -z "$as_dir" && as_dir
=.
13807 for ac_exec_ext
in '' $ac_executable_extensions; do
13808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809 ac_cv_prog_ac_ct_STRIP
="strip"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13819 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
13820 if test -n "$ac_ct_STRIP"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13822 $as_echo "$ac_ct_STRIP" >&6; }
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13828 if test "x$ac_ct_STRIP" = x
; then
13831 case $cross_compiling:$ac_tool_warned in
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13835 ac_tool_warned
=yes ;;
13840 STRIP
="$ac_cv_prog_STRIP"
13844 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13848 if test -z "$MKDIR_P"; then
13849 if test "${ac_cv_path_mkdir+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13853 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
13856 test -z "$as_dir" && as_dir
=.
13857 for ac_prog
in mkdir gmkdir
; do
13858 for ac_exec_ext
in '' $ac_executable_extensions; do
13859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
13860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13861 'mkdir (GNU coreutils) '* | \
13862 'mkdir (coreutils) '* | \
13863 'mkdir (fileutils) '4.1*)
13864 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
13874 if test "${ac_cv_path_mkdir+set}" = set; then
13875 MKDIR_P
="$ac_cv_path_mkdir -p"
13877 # As a last resort, use the slow shell script. Don't cache a
13878 # value for MKDIR_P within a source directory, because that will
13879 # break other packages using the cache if that directory is
13880 # removed, or if the value is a relative name.
13881 test -d .
/--version && rmdir .
/--version
13882 MKDIR_P
="$ac_install_sh -d"
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13886 $as_echo "$MKDIR_P" >&6; }
13891 [\\/$
]* | ?
:[\\/]*) ;;
13892 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
13895 for ac_prog
in gawk mawk nawk
awk
13897 # Extract the first word of "$ac_prog", so it can be a program name with args.
13898 set dummy
$ac_prog; ac_word
=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if test "${ac_cv_prog_AWK+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
13904 if test -n "$AWK"; then
13905 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
13907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13908 for as_dir
in $PATH
13911 test -z "$as_dir" && as_dir
=.
13912 for ac_exec_ext
in '' $ac_executable_extensions; do
13913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13914 ac_cv_prog_AWK
="$ac_prog"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13924 AWK
=$ac_cv_prog_AWK
13925 if test -n "$AWK"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13927 $as_echo "$AWK" >&6; }
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930 $as_echo "no" >&6; }
13934 test -n "$AWK" && break
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13938 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13940 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13941 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
13942 $as_echo_n "(cached) " >&6
13944 cat >conftest.
make <<\_ACEOF
13947 @
echo '@@@%%%=$(MAKE)=@@@%%%'
13949 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13950 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13951 *@@@
%%%=?
*=@@@
%%%*)
13952 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
13954 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
13956 rm -f conftest.
make
13958 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13960 $as_echo "yes" >&6; }
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13965 SET_MAKE
="MAKE=${MAKE-make}"
13968 rm -rf .tst
2>/dev
/null
13969 mkdir .tst
2>/dev
/null
13970 if test -d .tst
; then
13975 rmdir .tst
2>/dev
/null
13977 DEPDIR
="${am__leading_dot}deps"
13979 ac_config_commands
="$ac_config_commands depfiles"
13982 am_make
=${MAKE-make}
13983 cat > confinc
<< 'END'
13985 @
echo this is the am__doit target
13988 # If we don't find an include directive, just comment out the code.
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13994 # First try GNU make style include.
13995 echo "include confinc" > confmf
13996 # Ignore all kinds of additional output from `make'.
13997 case `$am_make -s -f confmf 2> /dev/null` in #(
13998 *the\ am__doit\ target
*)
13999 am__include
=include
14004 # Now try BSD make style include.
14005 if test "$am__include" = "#"; then
14006 echo '.include "confinc"' > confmf
14007 case `$am_make -s -f confmf 2> /dev/null` in #(
14008 *the\ am__doit\ target
*)
14009 am__include
=.include
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14018 $as_echo "$_am_result" >&6; }
14019 rm -f confinc confmf
14021 # Check whether --enable-dependency-tracking was given.
14022 if test "${enable_dependency_tracking+set}" = set; then :
14023 enableval
=$enable_dependency_tracking;
14026 if test "x$enable_dependency_tracking" != xno
; then
14027 am_depcomp
="$ac_aux_dir/depcomp"
14030 if test "x$enable_dependency_tracking" != xno; then
14039 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14040 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14041 # is not polluted with repeated "-I."
14042 am__isrc
=' -I$(srcdir)'
14043 # test to see if srcdir already configured
14044 if test -f $srcdir/config.status
; then
14045 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14049 # test whether we have cygpath
14050 if test -z "$CYGPATH_W"; then
14051 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
14052 CYGPATH_W
='cygpath -w'
14059 # Define the identity of the package.
14061 VERSION
=UNUSED-VERSION
14064 # Some tools Automake needs.
14066 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14069 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
14072 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14075 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
14078 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
14080 # We need awk for the "check" target. The system "awk" is bad on
14082 # Always define AMTAR for backward compatibility.
14084 AMTAR
=${AMTAR-"${am_missing_run}tar"}
14086 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
14091 depcc
="$CC" am_compiler_list
=
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14094 $as_echo_n "checking dependency style of $depcc... " >&6; }
14095 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14099 # We make a subdir and do the tests there. Otherwise we can end up
14100 # making bogus files that we don't know about and never remove. For
14101 # instance it was reported that on HP-UX the gcc test will end up
14102 # making a dummy file named `D' -- because `-MD' means `put the output
14105 # Copy depcomp to subdir because otherwise we won't find it if we're
14106 # using a relative directory.
14107 cp "$am_depcomp" conftest.dir
14109 # We will build objects and dependencies in a subdirectory because
14110 # it helps to detect inapplicable dependency modes. For instance
14111 # both Tru64's cc and ICC support -MD to output dependencies as a
14112 # side effect of compilation, but ICC will put the dependencies in
14113 # the current directory while Tru64 will put them in the object
14117 am_cv_CC_dependencies_compiler_type
=none
14118 if test "$am_compiler_list" = ""; then
14119 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14121 am__universal
=false
14122 case " $depcc " in #(
14123 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
14126 for depmode
in $am_compiler_list; do
14127 # Setup a source with many dependencies, because some compilers
14128 # like to wrap large dependency lists on column 80 (with \), and
14129 # we should not choose a depcomp mode which is confused by this.
14131 # We need to recreate these files for each test, as the compiler may
14132 # overwrite some of them when testing with obscure command lines.
14133 # This happens at least with the AIX C compiler.
14135 for i
in 1 2 3 4 5 6; do
14136 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
14137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14138 # Solaris 8's {/usr,}/bin/sh.
14139 touch sub
/conftst
$i.h
14141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
14144 # mode. It turns out that the SunPro C++ compiler does not properly
14145 # handle `-M -o', and we need to detect this. Also, some Intel
14146 # versions had trouble with output in subdirs
14147 am__obj
=sub
/conftest.
${OBJEXT-o}
14148 am__minus_obj
="-o $am__obj"
14151 # This depmode causes a compiler race in universal mode.
14152 test "$am__universal" = false ||
continue
14155 # after this tag, mechanisms are not by side-effect, so they'll
14156 # only be used when explicitly requested
14157 if test "x$enable_dependency_tracking" = xyes
; then
14163 msvisualcpp | msvcmsys
)
14164 # This compiler won't grok `-c -o', but also, the minuso test has
14165 # not run yet. These depmodes are late enough in the game, and
14166 # so weak that their functioning should not be impacted.
14167 am__obj
=conftest.
${OBJEXT-o}
14172 if depmode
=$depmode \
14173 source=sub
/conftest.c object
=$am__obj \
14174 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
14175 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
14176 >/dev
/null
2>conftest.err
&&
14177 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14178 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
14179 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
14180 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
14181 # icc doesn't choke on unknown options, it will just issue warnings
14182 # or remarks (even with -Werror). So we grep stderr for any message
14183 # that says an option was ignored or not supported.
14184 # When given -MP, icc 7.0 and 7.1 complain thusly:
14185 # icc: Command line warning: ignoring option '-M'; no argument required
14186 # The diagnosis changed in icc 8.0:
14187 # icc: Command line remark: option '-MP' not supported
14188 if (grep 'ignoring option' conftest.err ||
14189 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
14190 am_cv_CC_dependencies_compiler_type
=$depmode
14197 rm -rf conftest.dir
14199 am_cv_CC_dependencies_compiler_type
=none
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14204 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14205 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
14208 test "x$enable_dependency_tracking" != xno \
14209 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
14210 am__fastdepCC_TRUE
=
14211 am__fastdepCC_FALSE
='#'
14213 am__fastdepCC_TRUE
='#'
14214 am__fastdepCC_FALSE
=
14220 # --------------------- #
14221 # Checks for programs. #
14222 # --------------------- #
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14226 $as_echo_n "checking whether ln -s works... " >&6; }
14228 if test "$LN_S" = "ln -s"; then
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14230 $as_echo "yes" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14233 $as_echo "no, using $LN_S" >&6; }
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14238 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14240 $as_echo_n "checking for $ac_word... " >&6; }
14241 if test "${ac_cv_prog_RANLIB+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14244 if test -n "$RANLIB"; then
14245 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
14247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14248 for as_dir
in $PATH
14251 test -z "$as_dir" && as_dir
=.
14252 for ac_exec_ext
in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14264 RANLIB
=$ac_cv_prog_RANLIB
14265 if test -n "$RANLIB"; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14267 $as_echo "$RANLIB" >&6; }
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14275 if test -z "$ac_cv_prog_RANLIB"; then
14276 ac_ct_RANLIB
=$RANLIB
14277 # Extract the first word of "ranlib", so it can be a program name with args.
14278 set dummy ranlib
; ac_word
=$2
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14280 $as_echo_n "checking for $ac_word... " >&6; }
14281 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
14282 $as_echo_n "(cached) " >&6
14284 if test -n "$ac_ct_RANLIB"; then
14285 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
14287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14288 for as_dir
in $PATH
14291 test -z "$as_dir" && as_dir
=.
14292 for ac_exec_ext
in '' $ac_executable_extensions; do
14293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14294 ac_cv_prog_ac_ct_RANLIB
="ranlib"
14295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14304 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
14305 if test -n "$ac_ct_RANLIB"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14307 $as_echo "$ac_ct_RANLIB" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14313 if test "x$ac_ct_RANLIB" = x
; then
14316 case $cross_compiling:$ac_tool_warned in
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14320 ac_tool_warned
=yes ;;
14322 RANLIB
=$ac_ct_RANLIB
14325 RANLIB
="$ac_cv_prog_RANLIB"
14329 if test -n "$ac_tool_prefix"; then
14330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14331 set dummy
${ac_tool_prefix}ar; ac_word
=$2
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333 $as_echo_n "checking for $ac_word... " >&6; }
14334 if test "${ac_cv_prog_AR+set}" = set; then :
14335 $as_echo_n "(cached) " >&6
14337 if test -n "$AR"; then
14338 ac_cv_prog_AR
="$AR" # Let the user override the test.
14340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14341 for as_dir
in $PATH
14344 test -z "$as_dir" && as_dir
=.
14345 for ac_exec_ext
in '' $ac_executable_extensions; do
14346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14347 ac_cv_prog_AR
="${ac_tool_prefix}ar"
14348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14358 if test -n "$AR"; then
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14360 $as_echo "$AR" >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363 $as_echo "no" >&6; }
14368 if test -z "$ac_cv_prog_AR"; then
14370 # Extract the first word of "ar", so it can be a program name with args.
14371 set dummy
ar; ac_word
=$2
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14373 $as_echo_n "checking for $ac_word... " >&6; }
14374 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14377 if test -n "$ac_ct_AR"; then
14378 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
14380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14381 for as_dir
in $PATH
14384 test -z "$as_dir" && as_dir
=.
14385 for ac_exec_ext
in '' $ac_executable_extensions; do
14386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14387 ac_cv_prog_ac_ct_AR
="ar"
14388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
14398 if test -n "$ac_ct_AR"; then
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14400 $as_echo "$ac_ct_AR" >&6; }
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14403 $as_echo "no" >&6; }
14406 if test "x$ac_ct_AR" = x
; then
14409 case $cross_compiling:$ac_tool_warned in
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14413 ac_tool_warned
=yes ;;
14418 AR
="$ac_cv_prog_AR"
14422 # ---------------------- #
14423 # Checks for libraries. #
14424 # ---------------------- #
14426 ac_config_files
="$ac_config_files Makefile import/Makefile"
14428 ac_config_commands
="$ac_config_commands default"
14430 cat >confcache
<<\_ACEOF
14431 # This file is a shell script that caches the results of configure
14432 # tests run on this system so they can be shared between configure
14433 # scripts and configure runs, see configure's option --config-cache.
14434 # It is not useful on other systems. If it contains results you don't
14435 # want to keep, you may remove or edit it.
14437 # config.status only pays attention to the cache file if you give it
14438 # the --recheck option to rerun configure.
14440 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14441 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14442 # following values.
14446 # The following way of writing the cache mishandles newlines in values,
14447 # but we know of no workaround that is simple, portable, and efficient.
14448 # So, we kill variables containing newlines.
14449 # Ultrix sh set writes to stderr and can't be redirected directly,
14450 # and sets the high bit in the cache file unless we assign to the vars.
14452 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14453 eval ac_val
=\$
$ac_var
14457 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14458 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14461 _ | IFS | as_nl
) ;; #(
14462 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14463 *) { eval $ac_var=; unset $ac_var;} ;;
14469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14470 *${as_nl}ac_space
=\
*)
14471 # `set' does not quote correctly, so add quotes: double-quote
14472 # substitution turns \\\\ into \\, and sed turns \\ into \.
14475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14478 # `set' quotes correctly as required by POSIX, so do not add quotes.
14479 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14492 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14493 if test -w "$cache_file"; then
14494 test "x$cache_file" != "x/dev/null" &&
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14496 $as_echo "$as_me: updating cache $cache_file" >&6;}
14497 cat confcache
>$cache_file
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14500 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14505 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14506 # Let make expand exec_prefix.
14507 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14509 DEFS
=-DHAVE_CONFIG_H
14513 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14514 # 1. Remove the extension, and $U if already installed.
14515 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14516 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14518 # will be set to the directory where LIBOBJS objects are built.
14519 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14520 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14522 LIBOBJS
=$ac_libobjs
14524 LTLIBOBJS
=$ac_ltlibobjs
14527 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14528 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14531 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14532 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
14533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14535 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14536 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14539 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14540 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14543 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14544 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14547 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14548 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
14549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14553 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14554 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14557 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14558 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14564 if test -n "$gl_LIBOBJS"; then
14565 # Remove the extension.
14566 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14567 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14568 gl_libobjs
="$gl_libobjs $i.$ac_objext"
14569 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
14572 gl_LIBOBJS
=$gl_libobjs
14574 gl_LTLIBOBJS
=$gl_ltlibobjs
14580 if test -n "$gltests_LIBOBJS"; then
14581 # Remove the extension.
14582 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14583 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14584 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
14585 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
14588 gltests_LIBOBJS
=$gltests_libobjs
14590 gltests_LTLIBOBJS
=$gltests_ltlibobjs
14593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14594 as_fn_error
"conditional \"AMDEP\" was never defined.
14595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14598 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14601 if test -n "$EXEEXT"; then
14603 am__EXEEXT_FALSE
='#'
14605 am__EXEEXT_TRUE
='#'
14610 : ${CONFIG_STATUS=./config.status}
14612 ac_clean_files_save
=$ac_clean_files
14613 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14615 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14619 # Generated by $as_me.
14620 # Run this file to recreate the current configuration.
14621 # Compiler output produced by configure, useful for debugging
14622 # configure, is in config.log if it exists.
14625 ac_cs_recheck=false
14628 SHELL=\${CONFIG_SHELL-$SHELL}
14631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14632 ## -------------------- ##
14633 ## M4sh Initialization. ##
14634 ## -------------------- ##
14636 # Be more Bourne compatible
14637 DUALCASE
=1; export DUALCASE
# for MKS sh
14638 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14641 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14642 # is contrary to our usage. Disable this feature.
14643 alias -g '${1+"$@"}'='"$@"'
14644 setopt NO_GLOB_SUBST
14646 case `(set -o) 2>/dev/null` in #(
14658 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14659 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14662 # Prefer a ksh shell builtin over an external printf program on Solaris,
14663 # but without wasting forks for bash or zsh.
14664 if test -z "$BASH_VERSION$ZSH_VERSION" \
14665 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14666 as_echo='print
-r --'
14667 as_echo_n='print
-rn --'
14668 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14669 as_echo='printf %s
\n'
14670 as_echo_n='printf %s
'
14672 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14673 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14674 as_echo_n='/usr
/ucb
/echo -n'
14676 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14677 as_echo_n_body='eval
14681 expr "X$arg" : "X\\(.*\\)$as_nl";
14682 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14684 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14686 export as_echo_n_body
14687 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14689 export as_echo_body
14690 as_echo='sh
-c $as_echo_body as_echo
'
14693 # The user is always right.
14694 if test "${PATH_SEPARATOR+set}" != set; then
14696 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14697 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14704 # We need space, tab and new line, in precisely that order. Quoting is
14705 # there to prevent editors from complaining about space-tab.
14706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14707 # splitting by setting IFS to empty value.)
14710 # Find who we are. Look in the path if we contain no directory separator.
14712 *[\\/]* ) as_myself=$0 ;;
14713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14717 test -z "$as_dir" && as_dir=.
14718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14724 # We did not find ourselves, most probably we were run as `sh COMMAND'
14725 # in which case we are not to be found in the path.
14726 if test "x$as_myself" = x
; then
14729 if test ! -f "$as_myself"; then
14730 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14734 # Unset variables that we do not need and which cause bugs (e.g. in
14735 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14736 # suppresses any "Segmentation fault" message there. '((' could
14737 # trigger a bug in pdksh 5.2.14.
14738 for as_var
in BASH_ENV ENV MAIL MAILPATH
14739 do eval test x\
${$as_var+set} = xset \
14740 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14753 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14756 # as_fn_error ERROR [LINENO LOG_FD]
14757 # ---------------------------------
14758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14760 # script with status $?, using 1 if that was 0.
14763 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14765 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14766 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14768 $as_echo "$as_me: error: $1" >&2
14769 as_fn_exit
$as_status
14773 # as_fn_set_status STATUS
14774 # -----------------------
14775 # Set $? to STATUS, without forking.
14776 as_fn_set_status
()
14779 } # as_fn_set_status
14781 # as_fn_exit STATUS
14782 # -----------------
14783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14787 as_fn_set_status
$1
14793 # Portably unset VAR.
14796 { eval $1=; unset $1;}
14798 as_unset
=as_fn_unset
14799 # as_fn_append VAR VALUE
14800 # ----------------------
14801 # Append the text in VALUE to the end of the definition contained in VAR. Take
14802 # advantage of any shell optimizations that allow amortized linear growth over
14803 # repeated appends, instead of the typical quadratic growth present in naive
14805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14806 eval 'as_fn_append ()
14817 # as_fn_arith ARG...
14818 # ------------------
14819 # Perform arithmetic evaluation on the ARGs, and store the result in the
14820 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14821 # must be portable across $(()) and expr.
14822 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14823 eval 'as_fn_arith ()
14830 as_val
=`expr "$@" || test $? -eq 1`
14835 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14836 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14842 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14843 as_basename
=basename
14848 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14854 as_me
=`$as_basename -- "$0" ||
14855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14856 X"$0" : 'X\(//\)$' \| \
14857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14859 sed '/^.*\/\([^/][^/]*\)\/*$/{
14873 # Avoid depending upon Character Ranges.
14874 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14875 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14876 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14877 as_cr_digits
='0123456789'
14878 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14880 ECHO_C
= ECHO_N
= ECHO_T
=
14881 case `echo -n x` in #(((((
14883 case `echo 'xy\c'` in
14884 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14886 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14893 rm -f conf$$ conf$$.exe conf$$.
file
14894 if test -d conf$$.dir
; then
14895 rm -f conf$$.dir
/conf$$.
file
14898 mkdir conf$$.dir
2>/dev
/null
14900 if (echo >conf$$.
file) 2>/dev
/null
; then
14901 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14903 # ... but there are two gotchas:
14904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14906 # In both cases, we have to default to `cp -p'.
14907 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14909 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14917 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14918 rmdir conf$$.dir
2>/dev
/null
14923 # Create "$as_dir" as a directory, including parents if necessary.
14928 -*) as_dir
=.
/$as_dir;;
14930 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14934 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14935 *) as_qdir
=$as_dir;;
14937 as_dirs
="'$as_qdir' $as_dirs"
14938 as_dir
=`$as_dirname -- "$as_dir" ||
14939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14940 X"$as_dir" : 'X\(//\)[^/]' \| \
14941 X"$as_dir" : 'X\(//\)$' \| \
14942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14943 $as_echo X"$as_dir" |
14944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14948 /^X\(\/\/\)[^/].*/{
14961 test -d "$as_dir" && break
14963 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14964 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14968 if mkdir
-p .
2>/dev
/null
; then
14969 as_mkdir_p
='mkdir -p "$as_dir"'
14971 test -d .
/-p && rmdir .
/-p
14975 if test -x / >/dev
/null
2>&1; then
14976 as_test_x
='test -x'
14978 if ls -dL / >/dev
/null
2>&1; then
14985 if test -d "$1"; then
14991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14992 ???[sx]*):;;*)false;;esac;fi
14996 as_executable_p
=$as_test_x
14998 # Sed expression to map a string onto a valid CPP name.
14999 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15001 # Sed expression to map a string onto a valid variable name.
15002 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15006 ## ----------------------------------- ##
15007 ## Main body of $CONFIG_STATUS script. ##
15008 ## ----------------------------------- ##
15010 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15013 # Save the log message, to keep $0 and so on meaningful, and to
15014 # report actual input values of CONFIG_FILES etc. instead of their
15015 # values after options handling.
15017 This file was extended by $as_me, which was
15018 generated by GNU Autoconf 2.64. Invocation command line was
15020 CONFIG_FILES = $CONFIG_FILES
15021 CONFIG_HEADERS = $CONFIG_HEADERS
15022 CONFIG_LINKS = $CONFIG_LINKS
15023 CONFIG_COMMANDS = $CONFIG_COMMANDS
15026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15031 case $ac_config_files in *"
15032 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15035 case $ac_config_headers in *"
15036 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15041 # Files that config.status was made for.
15042 config_files="$ac_config_files"
15043 config_headers="$ac_config_headers"
15044 config_commands="$ac_config_commands"
15048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15050 \`$as_me' instantiates files and other configuration actions
15051 from templates according to the current configuration. Unless the files
15052 and actions are specified as TAGs, all are instantiated by default.
15054 Usage: $0 [OPTION]... [TAG]...
15056 -h, --help print this help, then exit
15057 -V, --version print version number and configuration settings, then exit
15058 -q, --quiet, --silent
15059 do not print progress messages
15060 -d, --debug don't remove temporary files
15061 --recheck update $as_me by reconfiguring in the same conditions
15062 --file=FILE[:TEMPLATE]
15063 instantiate the configuration file FILE
15064 --header=FILE[:TEMPLATE]
15065 instantiate the configuration header FILE
15067 Configuration files:
15070 Configuration headers:
15073 Configuration commands:
15076 Report bugs to the package provider."
15079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15082 configured by $0, generated by GNU Autoconf 2.64,
15083 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15085 Copyright (C) 2009 Free Software Foundation, Inc.
15086 This config.status script is free software; the Free Software Foundation
15087 gives unlimited permission to copy, distribute and modify it."
15094 test -n "\$AWK" || AWK=awk
15097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15098 # The default lists apply if the user does not specify any file.
15104 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15105 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15116 # Handling of the options.
15117 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15119 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15120 $as_echo "$ac_cs_version"; exit ;;
15121 --debug |
--debu |
--deb |
--de |
--d |
-d )
15123 --file |
--fil |
--fi |
--f )
15126 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15128 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15129 ac_need_defaults
=false
;;
15130 --header |
--heade |
--head |
--hea )
15133 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15135 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15136 ac_need_defaults
=false
;;
15138 # Conflict between --help and --header
15139 as_fn_error
"ambiguous option: \`$1'
15140 Try \`$0 --help' for more information.";;
15141 --help |
--hel |
-h )
15142 $as_echo "$ac_cs_usage"; exit ;;
15143 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15144 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15147 # This is an error.
15148 -*) as_fn_error
"unrecognized option: \`$1'
15149 Try \`$0 --help' for more information." ;;
15151 *) as_fn_append ac_config_targets
" $1"
15152 ac_need_defaults
=false
;;
15158 ac_configure_extra_args
=
15160 if $ac_cs_silent; then
15162 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15167 if \$ac_cs_recheck; then
15168 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15171 CONFIG_SHELL='$SHELL'
15172 export CONFIG_SHELL
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15182 ## Running $as_me. ##
15188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15192 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15198 # Handling of arguments.
15199 for ac_config_target
in $ac_config_targets
15201 case $ac_config_target in
15202 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
15203 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15204 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15205 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
15206 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15208 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15213 # If the user did not use the arguments to specify the items to instantiate,
15214 # then the envvar interface is used. Set only those that are not.
15215 # We use the long form for the default assignment because of an extremely
15216 # bizarre bug on SunOS 4.1.3.
15217 if $ac_need_defaults; then
15218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15219 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15223 # Have a temporary directory for convenience. Make it in the build tree
15224 # simply because there is no reason against having it here, and in addition,
15225 # creating and moving files from /tmp can sometimes cause problems.
15226 # Hook for its removal unless debugging.
15227 # Note that there is a small window in which the directory will not be cleaned:
15228 # after its creation but before its name has been assigned to `$tmp'.
15232 trap 'exit_status=$?
15233 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15235 trap 'as_fn_exit 1' 1 2 13 15
15237 # Create a (secure) tmp directory for tmp files.
15240 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15241 test -n "$tmp" && test -d "$tmp"
15244 tmp
=.
/conf$$
-$RANDOM
15245 (umask 077 && mkdir
"$tmp")
15246 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
15248 # Set up the scripts for CONFIG_FILES section.
15249 # No need to generate them if there are no CONFIG_FILES.
15250 # This happens for instance with `./config.status config.h'.
15251 if test -n "$CONFIG_FILES"; then
15254 ac_cr
=`echo X | tr X '\015'`
15255 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15256 # But we know of no other shell where ac_cr would be empty at this
15257 # point, so we can use a bashism as a fallback.
15258 if test "x$ac_cr" = x
; then
15259 eval ac_cr
=\$
\'\\r
\'
15261 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15262 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15265 ac_cs_awk_cr
=$ac_cr
15268 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15273 echo "cat >conf$$subs.awk <<_ACEOF" &&
15274 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15276 } >conf$$subs.sh ||
15277 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15278 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15280 for ac_last_try in false false false false false :; do
15281 . ./conf$$subs.sh ||
15282 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15284 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15285 if test $ac_delim_n = $ac_delim_num; then
15287 elif $ac_last_try; then
15288 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
15290 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15293 rm -f conf$$subs.sh
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15300 s/^/S["/; s
/!.
*/"]=/
15310 s/\(.\{148\}\).*/\1/
15312 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15317 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15324 s/\(.\{148\}\).*/\1/
15326 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15330 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15335 ' <conf$$subs.awk | sed '
15340 ' >>$CONFIG_STATUS || ac_write_fail=1
15341 rm -f conf$$subs.awk
15342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15344 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15345 for (key in S) S_is_set[key] = 1
15351 nfields = split(line, field, "@
")
15353 len = length(field[1])
15354 for (i = 2; i < nfields; i++) {
15356 keylen = length(key)
15357 if (S_is_set[key]) {
15359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15360 len += length(value) + length(field[++i])
15371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15373 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15376 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15377 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15380 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15381 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15382 # trailing colons and then remove the whole line if VPATH becomes empty
15383 # (actually we leave an empty line to preserve line numbers).
15384 if test "x
$srcdir" = x.; then
15385 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15386 s/:*\$(srcdir):*/:/
15387 s/:*\${srcdir}:*/:/
15389 s/^\([^=]*=[ ]*\):*/\1/
15395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15396 fi # test -n "$CONFIG_FILES"
15398 # Set up the scripts for CONFIG_HEADERS section.
15399 # No need to generate them if there are no CONFIG_HEADERS.
15400 # This happens for instance with `./config.status Makefile'.
15401 if test -n "$CONFIG_HEADERS"; then
15402 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15406 # Transform confdefs.h into an awk script `defines.awk', embedded as
15407 # here-document in config.status, that substitutes the proper values into
15408 # config.h.in to produce config.h.
15410 # Create a delimiter string that does not exist in confdefs.h, to ease
15411 # handling of long lines.
15413 for ac_last_try in false false :; do
15414 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15415 if test -z "$ac_t"; then
15417 elif $ac_last_try; then
15418 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15420 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15424 # For the awk script, D is an array of macro values keyed by name,
15425 # likewise P contains macro parameters if any. Preserve backslash
15426 # newline sequences.
15428 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15430 s/.\{148\}/&'"$ac_delim"'/g
15433 s/^[ ]*#[ ]*define[ ][ ]*/ /
15440 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15442 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15447 D["\
1"]=" \
3\\\\\\n
"\\/p
15449 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15454 s/.\{148\}/&'"$ac_delim"'/g
15459 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15462 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15464 ' <confdefs.h | sed '
15465 s/'"$ac_delim"'/"\\\
15466 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15469 for (key in D) D_is_set[key] = 1
15472 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15474 split(line, arg, " ")
15475 if (arg[1] == "#") {
15479 defundef
= substr
(arg
[1], 2)
15482 split(mac1
, mac2
, "(") #)
15484 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15485 if (D_is_set
[macro
]) {
15486 # Preserve the white space surrounding the "#".
15487 print prefix
"define", macro P
[macro
] D
[macro
]
15490 # Replace #undef with comments. This is necessary, for example,
15491 # in the case of _POSIX_SOURCE, which is predefined and required
15492 # on some systems where configure will not decide to define it.
15493 if (defundef
== "undef") {
15494 print
"/*", prefix defundef
, macro
, "*/"
15502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15503 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15504 fi # test -n "$CONFIG_HEADERS"
15507 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15512 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15514 case $ac_mode$ac_tag in
15516 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15517 :[FH
]-) ac_tag
=-:-;;
15518 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15535 -) ac_f
="$tmp/stdin";;
15536 *) # Look for the file first in the build tree, then in the source tree
15537 # (if the path is not absolute). The absolute path cannot be DOS-style,
15538 # because $ac_f cannot contain `:'.
15542 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15544 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15546 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15547 as_fn_append ac_file_inputs
" '$ac_f'"
15550 # Let's still pretend it is `configure' which instantiates (i.e., don't
15551 # use $as_me), people would be surprised to read:
15552 # /* config.h. Generated by config.status. */
15553 configure_input
='Generated from '`
15554 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15556 if test x
"$ac_file" != x-
; then
15557 configure_input
="$ac_file. $configure_input"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15559 $as_echo "$as_me: creating $ac_file" >&6;}
15561 # Neutralize special characters interpreted by sed in replacement strings.
15562 case $configure_input in #(
15563 *\
&* |
*\|
* |
*\\* )
15564 ac_sed_conf_input
=`$as_echo "$configure_input" |
15565 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15566 *) ac_sed_conf_input
=$configure_input;;
15570 *:-:* |
*:-) cat >"$tmp/stdin" \
15571 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15576 ac_dir
=`$as_dirname -- "$ac_file" ||
15577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15578 X"$ac_file" : 'X\(//\)[^/]' \| \
15579 X"$ac_file" : 'X\(//\)$' \| \
15580 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15581 $as_echo X"$ac_file" |
15582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15586 /^X\(\/\/\)[^/].*/{
15599 as_dir
="$ac_dir"; as_fn_mkdir_p
15603 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15605 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15606 # A ".." for each directory in $ac_dir_suffix.
15607 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15608 case $ac_top_builddir_sub in
15609 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15610 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15613 ac_abs_top_builddir
=$ac_pwd
15614 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15615 # for backward compatibility:
15616 ac_top_builddir
=$ac_top_build_prefix
15619 .
) # We are building in place.
15621 ac_top_srcdir
=$ac_top_builddir_sub
15622 ac_abs_top_srcdir
=$ac_pwd ;;
15623 [\\/]* | ?
:[\\/]* ) # Absolute name.
15624 ac_srcdir
=$srcdir$ac_dir_suffix;
15625 ac_top_srcdir
=$srcdir
15626 ac_abs_top_srcdir
=$srcdir ;;
15627 *) # Relative name.
15628 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15629 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15630 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15632 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15642 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15643 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15645 ac_MKDIR_P
=$MKDIR_P
15647 [\\/$
]* | ?
:[\\/]* ) ;;
15648 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15653 # If the template does not know about datarootdir, expand it.
15654 # FIXME: This hack should be removed a few years after 2.60.
15655 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15666 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15667 *datarootdir
*) ac_datarootdir_seen
=yes;;
15668 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15670 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15673 ac_datarootdir_hack='
15674 s&@datadir@&$datadir&g
15675 s&@docdir@&$docdir&g
15676 s&@infodir@&$infodir&g
15677 s&@localedir@&$localedir&g
15678 s&@mandir@&$mandir&g
15679 s&\\\${datarootdir}&$datarootdir&g' ;;
15683 # Neutralize VPATH when `$srcdir' = `.'.
15684 # Shell code in configure.ac might set extrasub.
15685 # FIXME: do we really want to maintain this feature?
15686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15687 ac_sed_extra="$ac_vpsub
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15692 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15693 s|@configure_input@|
$ac_sed_conf_input|
;t t
15694 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15695 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15696 s
&@srcdir@
&$ac_srcdir&;t t
15697 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15698 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15699 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15700 s
&@builddir@
&$ac_builddir&;t t
15701 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15702 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15703 s
&@INSTALL@
&$ac_INSTALL&;t t
15704 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15705 $ac_datarootdir_hack
15707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
15708 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15711 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15714 which seems to be undefined. Please make sure it is defined." >&5
15715 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15716 which seems to be undefined. Please make sure it is defined." >&2;}
15720 -) cat "$tmp/out" && rm -f "$tmp/out";;
15721 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15723 || as_fn_error "could not create $ac_file" "$LINENO" 5
15729 if test x"$ac_file" != x-; then
15731 $as_echo "/* $configure_input */" \
15732 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15733 } >"$tmp/config.h" \
15734 || as_fn_error "could not create $ac_file" "$LINENO" 5
15735 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15737 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15740 mv "$tmp/config.h" "$ac_file" \
15741 || as_fn_error "could not create $ac_file" "$LINENO" 5
15744 $as_echo "/* $configure_input */" \
15745 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15746 || as_fn_error "could not create -" "$LINENO" 5
15748 # Compute "$ac_file"'s index
in $config_headers.
15751 for _am_header
in $config_headers :; do
15752 case $_am_header in
15753 $_am_arg |
$_am_arg:* )
15756 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15759 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15760 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15761 X"$_am_arg" : 'X\(//\)[^/]' \| \
15762 X"$_am_arg" : 'X\(//\)$' \| \
15763 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15764 $as_echo X"$_am_arg" |
15765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15769 /^X\(\/\/\)[^/].*/{
15781 s/.*/./; q'`/stamp-h
$_am_stamp_count
15784 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15785 $as_echo "$as_me: executing $ac_file commands" >&6;}
15790 case $ac_file$ac_mode in
15791 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15792 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15793 # are listed without --file. Let's play safe and only enable the eval
15794 # if we detect the quoting.
15795 case $CONFIG_FILES in
15796 *\'*) eval set x
"$CONFIG_FILES" ;;
15797 *) set x
$CONFIG_FILES ;;
15802 # Strip MF so we end up with the name of the file.
15803 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15804 # Check whether this is an Automake generated Makefile or not.
15805 # We used to match only the files named `Makefile.in', but
15806 # some people rename them; so instead we look at the file content.
15807 # Grep'ing the first line is not enough: some people post-process
15808 # each Makefile.in and add a new line on top of each file to say so.
15809 # Grep'ing the whole file is not good either: AIX grep has a line
15810 # limit of 2048, but all sed's we know have understand at least 4000.
15811 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15812 dirpart
=`$as_dirname -- "$mf" ||
15813 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15814 X"$mf" : 'X\(//\)[^/]' \| \
15815 X"$mf" : 'X\(//\)$' \| \
15816 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15822 /^X\(\/\/\)[^/].*/{
15838 # Extract the definition of DEPDIR, am__include, and am__quote
15839 # from the Makefile without running `make'.
15840 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15841 test -z "$DEPDIR" && continue
15842 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15843 test -z "am__include" && continue
15844 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15845 # When using ansi2knr, U may be empty or an underscore; expand it
15846 U
=`sed -n 's/^U = //p' < "$mf"`
15847 # Find all dependency output files, they are included files with
15848 # $(DEPDIR) in their names. We invoke sed twice because it is the
15849 # simplest approach to changing $(DEPDIR) to its actual value in the
15851 for file in `sed -n "
15852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15854 # Make sure the directory exists.
15855 test -f "$dirpart/$file" && continue
15856 fdir
=`$as_dirname -- "$file" ||
15857 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15858 X"$file" : 'X\(//\)[^/]' \| \
15859 X"$file" : 'X\(//\)$' \| \
15860 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15861 $as_echo X"$file" |
15862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15866 /^X\(\/\/\)[^/].*/{
15879 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15880 # echo "creating $dirpart/$file"
15881 echo '# dummy' > "$dirpart/$file"
15887 case x
$CONFIG_HEADERS in
15888 xconfig.h
:config.
in)
15899 ac_clean_files
=$ac_clean_files_save
15901 test $ac_write_fail = 0 ||
15902 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15905 # configure is writing to config.log, and then calls config.status.
15906 # config.status does its own redirection, appending to config.log.
15907 # Unfortunately, on DOS this fails, as config.log is still kept open
15908 # by configure, so config.status won't be able to write to it; its
15909 # output is simply discarded. So we exec the FD to /dev/null,
15910 # effectively closing config.log, so it can be properly (re)opened and
15911 # appended to by config.status. When coming back to configure, we
15912 # need to make the FD available again.
15913 if test "$no_create" != yes; then
15915 ac_config_status_args
=
15916 test "$silent" = yes &&
15917 ac_config_status_args
="$ac_config_status_args --quiet"
15919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15922 # would make configure fail if this is the last instruction.
15923 $ac_cs_success || as_fn_exit $?
15925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15927 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}