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 as_fn_append ac_func_list
" btowc"
2860 as_fn_append ac_func_list
" isblank"
2861 as_fn_append ac_func_list
" iswctype"
2862 as_fn_append ac_func_list
" mbsrtowcs"
2863 as_fn_append ac_func_list
" mempcpy"
2864 as_fn_append ac_func_list
" wmemchr"
2865 as_fn_append ac_func_list
" wmemcpy"
2866 as_fn_append ac_func_list
" wmempcpy"
2867 as_fn_append ac_header_list
" wctype.h"
2868 gl_fnmatch_required
=GNU
2869 as_fn_append ac_func_list
" alarm"
2870 as_fn_append ac_header_list
" wchar.h"
2871 as_fn_append ac_header_list
" stdint.h"
2872 as_fn_append ac_header_list
" inttypes.h"
2873 as_fn_append ac_header_list
" unistd.h"
2874 as_fn_append ac_func_list
" symlink"
2875 as_fn_append ac_header_list
" math.h"
2876 as_fn_append ac_func_list
" mbsinit"
2877 as_fn_append ac_func_list
" mbrtowc"
2878 as_fn_append ac_header_list
" sys/mman.h"
2879 as_fn_append ac_func_list
" mprotect"
2880 as_fn_append ac_header_list
" features.h"
2881 as_fn_append ac_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
5598 for ac_func in $ac_func_list
5600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5602 eval as_val=\$$as_ac_var
5603 if test "x$as_val" = x""yes; then :
5604 cat >>confdefs.h <<_ACEOF
5605 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5630 for ac_header in $ac_header_list
5632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5635 eval as_val=\$$as_ac_Header
5636 if test "x$as_val" = x""yes; then :
5637 cat >>confdefs.h <<_ACEOF
5638 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5723 GNULIB_REMAINDERF=0;
5724 GNULIB_REMAINDERL=0;
5810 HAVE_DECL_COPYSIGNF=1;
5827 HAVE_DECL_REMAINDER=1;
5828 HAVE_DECL_REMAINDERL=1;
5890 REPLACE_REMAINDER=0;
5891 REPLACE_REMAINDERF=0;
5892 REPLACE_REMAINDERL=0;
5897 REPLACE_SIGNBIT_USING_GCC=0;
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
5905 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
5906 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5917 int e; return frexp (x, &e) > 0;
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 gl_cv_func_frexp_no_libm=yes
5925 gl_cv_func_frexp_no_libm=no
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
5932 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
5938 $as_echo_n "checking whether long double and double are the same... " >&6; }
5939 if test "${gl_cv_long_double_equals_double+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5948 typedef int check[sizeof (long double) == sizeof (double)
5949 && LDBL_MANT_DIG == DBL_MANT_DIG
5950 && LDBL_MAX_EXP == DBL_MAX_EXP
5951 && LDBL_MIN_EXP == DBL_MIN_EXP
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 gl_cv_long_double_equals_double=yes
5961 gl_cv_long_double_equals_double=no
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
5967 $as_echo "$gl_cv_long_double_equals_double" >&6; }
5968 if test $gl_cv_long_double_equals_double = yes; then
5970 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
5972 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
5974 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5980 $as_echo_n "checking for unsigned long long int... " >&6; }
5981 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5984 ac_cv_type_unsigned_long_long_int=yes
5985 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5989 /* For now, do not test the preprocessor; as of 2007 there are too many
5990 implementations with broken preprocessors. Perhaps this can
5991 be revisited in 2012. In the meantime, code should not expect
5992 #if to work with literals wider than 32 bits. */
5993 /* Test literals. */
5994 long long int ll = 9223372036854775807ll;
5995 long long int nll = -9223372036854775807LL;
5996 unsigned long long int ull = 18446744073709551615ULL;
5997 /* Test constant expressions. */
5998 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6000 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6006 /* Test availability of runtime routines for shift and division. */
6007 long long int llmax = 9223372036854775807ll;
6008 unsigned long long int ullmax = 18446744073709551615ull;
6009 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6010 | (llmax / ll) | (llmax % ll)
6011 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6012 | (ullmax / ull) | (ullmax % ull));
6018 if ac_fn_c_try_link "$LINENO"; then :
6021 ac_cv_type_unsigned_long_long_int=no
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6028 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6029 if test $ac_cv_type_unsigned_long_long_int = yes; then
6031 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6038 $as_echo_n "checking for long long int... " >&6; }
6039 if test "${ac_cv_type_long_long_int+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6042 ac_cv_type_long_long_int=yes
6043 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6044 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6045 if test $ac_cv_type_long_long_int = yes; then
6046 if test "$cross_compiling" = yes; then :
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6054 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6055 # define LLONG_MAX (HALF - 1 + HALF)
6060 long long int n = 1;
6064 long long int m = n << i;
6067 if (LLONG_MAX / 2 < m)
6075 if ac_fn_c_try_run "$LINENO"; then :
6078 ac_cv_type_long_long_int=no
6080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6081 conftest.$ac_objext conftest.beam conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6088 $as_echo "$ac_cv_type_long_long_int" >&6; }
6089 if test $ac_cv_type_long_long_int = yes; then
6091 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6100 gl_cv_c_multiarch=no
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #ifndef __APPLE_CC__
6104 not a universal capable compiler
6109 if ac_fn_c_try_compile "$LINENO"; then :
6113 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6114 if test -n "$prev"; then
6116 i?86 | x86_64 | ppc | ppc64)
6117 if test -z "$arch" || test "$arch" = "$word"; then
6120 gl_cv_c_multiarch=yes
6126 if test "x$word" = "x-arch"; then
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 if test $gl_cv_c_multiarch = yes; then
6135 APPLE_UNIVERSAL_BUILD=1
6137 APPLE_UNIVERSAL_BUILD=0
6144 if test $ac_cv_type_long_long_int = yes; then
6145 HAVE_LONG_LONG_INT=1
6147 HAVE_LONG_LONG_INT=0
6151 if test $ac_cv_type_unsigned_long_long_int = yes; then
6152 HAVE_UNSIGNED_LONG_LONG_INT=1
6154 HAVE_UNSIGNED_LONG_LONG_INT=0
6159 if test $ac_cv_header_wchar_h = yes; then
6166 if test $ac_cv_header_inttypes_h = yes; then
6173 if test $ac_cv_header_sys_types_h = yes; then
6189 if test $gl_cv_have_include_next = yes; then
6190 gl_cv_next_stdint_h='<'stdint.h'>'
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6193 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6194 if test "${gl_cv_next_stdint_h+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6198 if test $ac_cv_header_stdint_h = yes; then
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6208 *) gl_absname_cpp="$ac_cpp" ;;
6213 gl_dirsep_regex='[/\\]'
6216 gl_dirsep_regex='\/'
6219 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6221 gl_header_literal_regex=`echo 'stdint.h' \
6222 |
sed -e "$gl_make_literal_regex_sed"`
6223 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6229 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6230 sed -n "$gl_absolute_header_sed"`'"'
6232 gl_cv_next_stdint_h='<'stdint.h'>'
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6238 $as_echo "$gl_cv_next_stdint_h" >&6; }
6240 NEXT_STDINT_H=$gl_cv_next_stdint_h
6242 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6244 gl_next_as_first_directive='<'stdint.h'>'
6246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6247 gl_next_as_first_directive=$gl_cv_next_stdint_h
6249 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6254 if test $ac_cv_header_stdint_h = yes; then
6261 if test $ac_cv_header_stdint_h = yes; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6263 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6264 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6267 gl_cv_header_working_stdint_h=no
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6272 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6274 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6275 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6276 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6280 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6281 included before <wchar.h>. */
6292 int8_t a1 = INT8_MAX;
6293 int8_t a1min = INT8_MIN;
6296 int16_t a2 = INT16_MAX;
6297 int16_t a2min = INT16_MIN;
6300 int32_t a3 = INT32_MAX;
6301 int32_t a3min = INT32_MIN;
6304 int64_t a4 = INT64_MAX;
6305 int64_t a4min = INT64_MIN;
6308 uint8_t b1 = UINT8_MAX;
6310 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6313 uint16_t b2 = UINT16_MAX;
6316 uint32_t b3 = UINT32_MAX;
6319 uint64_t b4 = UINT64_MAX;
6321 int_least8_t c1 = INT8_C (0x7f);
6322 int_least8_t c1max = INT_LEAST8_MAX;
6323 int_least8_t c1min = INT_LEAST8_MIN;
6324 int_least16_t c2 = INT16_C (0x7fff);
6325 int_least16_t c2max = INT_LEAST16_MAX;
6326 int_least16_t c2min = INT_LEAST16_MIN;
6327 int_least32_t c3 = INT32_C (0x7fffffff);
6328 int_least32_t c3max = INT_LEAST32_MAX;
6329 int_least32_t c3min = INT_LEAST32_MIN;
6330 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6331 int_least64_t c4max = INT_LEAST64_MAX;
6332 int_least64_t c4min = INT_LEAST64_MIN;
6333 uint_least8_t d1 = UINT8_C (0xff);
6334 uint_least8_t d1max = UINT_LEAST8_MAX;
6335 uint_least16_t d2 = UINT16_C (0xffff);
6336 uint_least16_t d2max = UINT_LEAST16_MAX;
6337 uint_least32_t d3 = UINT32_C (0xffffffff);
6338 uint_least32_t d3max = UINT_LEAST32_MAX;
6339 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6340 uint_least64_t d4max = UINT_LEAST64_MAX;
6341 int_fast8_t e1 = INT_FAST8_MAX;
6342 int_fast8_t e1min = INT_FAST8_MIN;
6343 int_fast16_t e2 = INT_FAST16_MAX;
6344 int_fast16_t e2min = INT_FAST16_MIN;
6345 int_fast32_t e3 = INT_FAST32_MAX;
6346 int_fast32_t e3min = INT_FAST32_MIN;
6347 int_fast64_t e4 = INT_FAST64_MAX;
6348 int_fast64_t e4min = INT_FAST64_MIN;
6349 uint_fast8_t f1 = UINT_FAST8_MAX;
6350 uint_fast16_t f2 = UINT_FAST16_MAX;
6351 uint_fast32_t f3 = UINT_FAST32_MAX;
6352 uint_fast64_t f4 = UINT_FAST64_MAX;
6354 intptr_t g = INTPTR_MAX;
6355 intptr_t gmin = INTPTR_MIN;
6358 uintptr_t h = UINTPTR_MAX;
6360 intmax_t i = INTMAX_MAX;
6361 uintmax_t j = UINTMAX_MAX;
6363 #include <limits.h> /* for CHAR_BIT */
6364 #define TYPE_MINIMUM(t) \
6365 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6366 #define TYPE_MAXIMUM(t) \
6367 ((t) ((t) 0 < (t) -1 \
6369 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6372 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6373 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6375 /* Detect bug in FreeBSD 6.0 / ia64. */
6376 int check_SIG_ATOMIC:
6377 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6378 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6380 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6382 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6383 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6385 /* Detect bug in mingw. */
6387 WINT_MIN == TYPE_MINIMUM (wint_t)
6388 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6391 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6393 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6395 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6397 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6399 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6402 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6405 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6408 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6410 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6411 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6412 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6413 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6414 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6415 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6416 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6417 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6418 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6419 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6420 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 if test "$cross_compiling" = yes; then :
6433 gl_cv_header_working_stdint_h=yes
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6440 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6444 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6445 included before <wchar.h>. */
6457 #define MVAL(macro) MVAL1(macro)
6458 #define MVAL1(expression) #expression
6459 static const char *macro_values[] =
6493 for (mv = macro_values; *mv != NULL; mv++)
6495 const char *value = *mv;
6496 /* Test whether it looks like a cast expression. */
6497 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6498 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6499 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6500 || strncmp (value, "((int)"/*)*/, 6) == 0
6501 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6502 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6503 return mv - macro_values + 1;
6511 if ac_fn_c_try_run "$LINENO"; then :
6512 gl_cv_header_working_stdint_h=yes
6514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6515 conftest.$ac_objext conftest.beam conftest.$ac_ext
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6524 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6526 if test "$gl_cv_header_working_stdint_h" = yes; then
6529 for ac_header in sys/inttypes.h sys/bitypes.h
6531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6532 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6533 eval as_val=\$$as_ac_Header
6534 if test "x$as_val" = x""yes; then :
6535 cat >>confdefs.h <<_ACEOF
6536 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6543 if test $ac_cv_header_sys_inttypes_h = yes; then
6544 HAVE_SYS_INTTYPES_H=1
6546 HAVE_SYS_INTTYPES_H=0
6549 if test $ac_cv_header_sys_bitypes_h = yes; then
6550 HAVE_SYS_BITYPES_H=1
6552 HAVE_SYS_BITYPES_H=0
6558 if test $APPLE_UNIVERSAL_BUILD = 0; then
6561 for gltype in ptrdiff_t size_t ; do
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6563 $as_echo_n "checking for bit size of $gltype... " >&6; }
6564 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6565 $as_echo_n "(cached) " >&6
6567 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6569 included before <wchar.h>. */
6578 #include <limits.h>"; then :
6584 eval gl_cv_bitsizeof_${gltype}=\$result
6587 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6589 $as_echo "$ac_res" >&6; }
6590 eval result=\$gl_cv_bitsizeof_${gltype}
6591 if test $result = unknown; then
6594 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6595 cat >>confdefs.h <<_ACEOF
6596 #define BITSIZEOF_${GLTYPE} $result
6599 eval BITSIZEOF_${GLTYPE}=\$result
6606 for gltype in sig_atomic_t wchar_t wint_t ; do
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6608 $as_echo_n "checking for bit size of $gltype... " >&6; }
6609 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6610 $as_echo_n "(cached) " >&6
6612 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6614 included before <wchar.h>. */
6623 #include <limits.h>"; then :
6629 eval gl_cv_bitsizeof_${gltype}=\$result
6632 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6634 $as_echo "$ac_res" >&6; }
6635 eval result=\$gl_cv_bitsizeof_${gltype}
6636 if test $result = unknown; then
6639 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6640 cat >>confdefs.h <<_ACEOF
6641 #define BITSIZEOF_${GLTYPE} $result
6644 eval BITSIZEOF_${GLTYPE}=\$result
6650 for gltype in sig_atomic_t wchar_t wint_t ; do
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6652 $as_echo_n "checking whether $gltype is signed... " >&6; }
6653 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6654 $as_echo_n "(cached) " >&6
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6659 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6660 included before <wchar.h>. */
6669 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6678 if ac_fn_c_try_compile "$LINENO"; then :
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 eval gl_cv_type_${gltype}_signed=\$result
6687 eval ac_res=\$gl_cv_type_${gltype}_signed
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 eval result=\$gl_cv_type_${gltype}_signed
6691 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6692 if test "$result" = yes; then
6693 cat >>confdefs.h <<_ACEOF
6694 #define HAVE_SIGNED_${GLTYPE} 1
6697 eval HAVE_SIGNED_${GLTYPE}=1
6699 eval HAVE_SIGNED_${GLTYPE}=0
6704 gl_cv_type_ptrdiff_t_signed=yes
6705 gl_cv_type_size_t_signed=no
6706 if test $APPLE_UNIVERSAL_BUILD = 0; then
6709 for gltype in ptrdiff_t size_t ; do
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6711 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6712 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6713 $as_echo_n "(cached) " >&6
6715 eval gl_cv_type_${gltype}_suffix=no
6716 eval result=\$gl_cv_type_${gltype}_signed
6717 if test "$result" = yes; then
6722 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6725 l) gltype1='long int';;
6726 ll) gltype1='long long int';;
6727 i64) gltype1='__int64';;
6728 u) gltype1='unsigned int';;
6729 ul) gltype1='unsigned long int';;
6730 ull) gltype1='unsigned long long int';;
6731 ui64)gltype1='unsigned __int64';;
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6737 included before <wchar.h>. */
6747 extern $gltype1 foo;
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757 eval gl_cv_type_${gltype}_suffix=\$glsuf
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 eval result=\$gl_cv_type_${gltype}_suffix
6761 test "$result" != no && break
6764 eval ac_res=\$gl_cv_type_${gltype}_suffix
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6766 $as_echo "$ac_res" >&6; }
6767 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6768 eval result=\$gl_cv_type_${gltype}_suffix
6769 test "$result" = no && result=
6770 eval ${GLTYPE}_SUFFIX=\$result
6771 cat >>confdefs.h <<_ACEOF
6772 #define ${GLTYPE}_SUFFIX $result
6781 for gltype in sig_atomic_t wchar_t wint_t ; do
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6783 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6784 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6787 eval gl_cv_type_${gltype}_suffix=no
6788 eval result=\$gl_cv_type_${gltype}_signed
6789 if test "$result" = yes; then
6794 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6797 l) gltype1='long int';;
6798 ll) gltype1='long long int';;
6799 i64) gltype1='__int64';;
6800 u) gltype1='unsigned int';;
6801 ul) gltype1='unsigned long int';;
6802 ull) gltype1='unsigned long long int';;
6803 ui64)gltype1='unsigned __int64';;
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6809 included before <wchar.h>. */
6819 extern $gltype1 foo;
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829 eval gl_cv_type_${gltype}_suffix=\$glsuf
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 eval result=\$gl_cv_type_${gltype}_suffix
6833 test "$result" != no && break
6836 eval ac_res=\$gl_cv_type_${gltype}_suffix
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6838 $as_echo "$ac_res" >&6; }
6839 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6840 eval result=\$gl_cv_type_${gltype}_suffix
6841 test "$result" = no && result=
6842 eval ${GLTYPE}_SUFFIX=\$result
6843 cat >>confdefs.h <<_ACEOF
6844 #define ${GLTYPE}_SUFFIX $result
6851 if test $BITSIZEOF_WINT_T -lt 32; then
6858 if test -n "$STDINT_H"; then
6859 GL_GENERATE_STDINT_H_TRUE=
6860 GL_GENERATE_STDINT_H_FALSE='#'
6862 GL_GENERATE_STDINT_H_TRUE='#'
6863 GL_GENERATE_STDINT_H_FALSE=
6874 HAVE_DECL_IMAXABS=1;
6875 HAVE_DECL_IMAXDIV=1;
6876 HAVE_DECL_STRTOIMAX=1;
6877 HAVE_DECL_STRTOUMAX=1;
6878 REPLACE_STRTOIMAX=0;
6879 INT32_MAX_LT_INTMAX_MAX=1;
6880 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6881 PRI_MACROS_BROKEN=0;
6882 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6883 UINT32_MAX_LT_UINTMAX_MAX=1;
6884 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6900 if test $gl_cv_have_include_next = yes; then
6901 gl_cv_next_inttypes_h='<'inttypes.h'>'
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6904 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6905 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6909 if test $ac_cv_header_inttypes_h = yes; then
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914 #include <inttypes.h>
6918 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6919 *) gl_absname_cpp="$ac_cpp" ;;
6924 gl_dirsep_regex='[/\\]'
6927 gl_dirsep_regex='\/'
6930 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6932 gl_header_literal_regex=`echo 'inttypes.h' \
6933 |
sed -e "$gl_make_literal_regex_sed"`
6934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6940 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6941 sed -n "$gl_absolute_header_sed"`'"'
6943 gl_cv_next_inttypes_h='<'inttypes.h'>'
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6949 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6951 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6955 gl_next_as_first_directive='<'inttypes.h'>'
6957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6958 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6960 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6969 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6970 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6972 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6973 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 #include <inttypes.h>
6989 if ac_fn_c_try_compile "$LINENO"; then :
6990 eval "$as_gl_Symbol=yes"
6992 eval "$as_gl_Symbol=no"
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 eval ac_res=\$$as_gl_Symbol
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6998 $as_echo "$ac_res" >&6; }
6999 eval as_val=\$$as_gl_Symbol
7000 if test "x$as_val" = x""yes; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
7005 eval ac_cv_have_decl_$gl_func=yes
7011 for ac_header in inttypes.h
7013 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7014 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_INTTYPES_H 1
7023 if test $ac_cv_header_inttypes_h = yes; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7025 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7026 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7033 #include <inttypes.h>
7046 if ac_fn_c_try_compile "$LINENO"; then :
7047 gt_cv_inttypes_pri_broken=no
7049 gt_cv_inttypes_pri_broken=yes
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7055 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7057 if test "$gt_cv_inttypes_pri_broken" = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define PRI_MACROS_BROKEN 1
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7071 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7072 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7076 if test "$cross_compiling" = yes; then :
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7081 #if defined arm || defined __arm || defined __arm__
7086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7087 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7088 gl_cv_cc_double_expbit0="unknown"
7092 if test "${ac_cv_c_bigendian+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7095 ac_cv_c_bigendian=unknown
7096 # See if we're dealing with a universal compiler.
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #ifndef __APPLE_CC__
7100 not a universal capable compiler
7105 if ac_fn_c_try_compile "$LINENO"; then :
7107 # Check for potential -arch flags. It is not universal unless
7108 # there are at least two -arch flags with different values.
7111 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7112 if test -n "$ac_prev"; then
7114 i?86 | x86_64 | ppc | ppc64)
7115 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7118 ac_cv_c_bigendian=universal
7124 elif test "x$ac_word" = "x-arch"; then
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 if test $ac_cv_c_bigendian = unknown; then
7131 # See if sys/param.h defines the BYTE_ORDER macro.
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <sys/types.h>
7135 #include <sys/param.h>
7140 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7141 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7150 if ac_fn_c_try_compile "$LINENO"; then :
7151 # It does; now see whether it defined to BIG_ENDIAN or not.
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 #include <sys/types.h>
7155 #include <sys/param.h>
7160 #if BYTE_ORDER != BIG_ENDIAN
7168 if ac_fn_c_try_compile "$LINENO"; then :
7169 ac_cv_c_bigendian=yes
7171 ac_cv_c_bigendian=no
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 if test $ac_cv_c_bigendian = unknown; then
7178 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7186 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 # It does; now see whether it defined to _BIG_ENDIAN or not.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7211 if ac_fn_c_try_compile "$LINENO"; then :
7212 ac_cv_c_bigendian=yes
7214 ac_cv_c_bigendian=no
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 if test $ac_cv_c_bigendian = unknown; then
7221 # Compile a test program.
7222 if test "$cross_compiling" = yes; then :
7223 # Try to guess by grepping values from an object file.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 short int ascii_mm[] =
7227 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7228 short int ascii_ii[] =
7229 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7230 int use_ascii (int i) {
7231 return ascii_mm[i] + ascii_ii[i];
7233 short int ebcdic_ii[] =
7234 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7235 short int ebcdic_mm[] =
7236 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7237 int use_ebcdic (int i) {
7238 return ebcdic_mm[i] + ebcdic_ii[i];
7245 return use_ascii (foo) == use_ebcdic (foo);
7250 if ac_fn_c_try_compile "$LINENO"; then :
7251 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7252 ac_cv_c_bigendian=yes
7254 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7255 if test "$ac_cv_c_bigendian" = unknown; then
7256 ac_cv_c_bigendian=no
7258 # finding both strings is unlikely to happen, but who knows?
7259 ac_cv_c_bigendian=unknown
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 $ac_includes_default
7272 /* Are we little or big endian? From Harbison&Steele. */
7276 char c[sizeof (long int)];
7279 return u.c[sizeof (long int) - 1] == 1;
7285 if ac_fn_c_try_run "$LINENO"; then :
7286 ac_cv_c_bigendian=no
7288 ac_cv_c_bigendian=yes
7290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7291 conftest.$ac_objext conftest.beam conftest.$ac_ext
7297 case $ac_cv_c_bigendian in #(
7299 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7301 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7304 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7308 gl_cv_cc_double_expbit0="unknown" ;;
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7325 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7326 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7327 static unsigned int ored_words[NWORDS];
7328 static unsigned int anded_words[NWORDS];
7329 static void add_to_ored_words (double x)
7333 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7334 memset (&m, 0, sizeof (memory_double));
7336 for (i = 0; i < NWORDS; i++)
7338 ored_words[i] |= m.word[i];
7339 anded_words[i] &= m.word[i];
7345 FILE *fp = fopen ("conftest.out", "w");
7348 for (j = 0; j < NWORDS; j++)
7349 anded_words[j] = ~ (unsigned int) 0;
7350 add_to_ored_words (0.25);
7351 add_to_ored_words (0.5);
7352 add_to_ored_words (1.0);
7353 add_to_ored_words (2.0);
7354 add_to_ored_words (4.0);
7355 /* Remove bits that are common (e.g. if representation of the first mantissa
7356 bit is explicit). */
7357 for (j = 0; j < NWORDS; j++)
7358 ored_words[j] &= ~anded_words[j];
7359 /* Now find the nonzero word. */
7360 for (j = 0; j < NWORDS; j++)
7361 if (ored_words[j] != 0)
7366 for (i = j + 1; i < NWORDS; i++)
7367 if (ored_words[i] != 0)
7369 fprintf (fp, "unknown");
7370 return (fclose (fp) != 0);
7373 if ((ored_words[j] >> i) & 1)
7375 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7376 return (fclose (fp) != 0);
7379 fprintf (fp, "unknown");
7380 return (fclose (fp) != 0);
7384 if ac_fn_c_try_run "$LINENO"; then :
7385 gl_cv_cc_double_expbit0=`cat conftest.out
`
7387 gl_cv_cc_double_expbit0="unknown"
7389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7390 conftest.$ac_objext conftest.beam conftest.$ac_ext
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7397 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7398 case "$gl_cv_cc_double_expbit0" in
7400 word=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
7401 bit=`echo "$gl_cv_cc_double_expbit0" |
sed -e 's/word.*bit //'`
7403 cat >>confdefs.h <<_ACEOF
7404 #define DBL_EXPBIT0_WORD $word
7408 cat >>confdefs.h <<_ACEOF
7409 #define DBL_EXPBIT0_BIT $bit
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7417 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7418 if test "${ac_cv_c_bigendian+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7421 ac_cv_c_bigendian=unknown
7422 # See if we're dealing with a universal compiler.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #ifndef __APPLE_CC__
7426 not a universal capable compiler
7431 if ac_fn_c_try_compile "$LINENO"; then :
7433 # Check for potential -arch flags. It is not universal unless
7434 # there are at least two -arch flags with different values.
7437 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7438 if test -n "$ac_prev"; then
7440 i?86 | x86_64 | ppc | ppc64)
7441 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7444 ac_cv_c_bigendian=universal
7450 elif test "x$ac_word" = "x-arch"; then
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 if test $ac_cv_c_bigendian = unknown; then
7457 # See if sys/param.h defines the BYTE_ORDER macro.
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <sys/types.h>
7461 #include <sys/param.h>
7466 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7467 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 # It does; now see whether it defined to BIG_ENDIAN or not.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 #include <sys/types.h>
7481 #include <sys/param.h>
7486 #if BYTE_ORDER != BIG_ENDIAN
7494 if ac_fn_c_try_compile "$LINENO"; then :
7495 ac_cv_c_bigendian=yes
7497 ac_cv_c_bigendian=no
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 if test $ac_cv_c_bigendian = unknown; then
7504 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7512 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521 # It does; now see whether it defined to _BIG_ENDIAN or not.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 ac_cv_c_bigendian=yes
7540 ac_cv_c_bigendian=no
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 if test $ac_cv_c_bigendian = unknown; then
7547 # Compile a test program.
7548 if test "$cross_compiling" = yes; then :
7549 # Try to guess by grepping values from an object file.
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 short int ascii_mm[] =
7553 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7554 short int ascii_ii[] =
7555 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7556 int use_ascii (int i) {
7557 return ascii_mm[i] + ascii_ii[i];
7559 short int ebcdic_ii[] =
7560 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7561 short int ebcdic_mm[] =
7562 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7563 int use_ebcdic (int i) {
7564 return ebcdic_mm[i] + ebcdic_ii[i];
7571 return use_ascii (foo) == use_ebcdic (foo);
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7578 ac_cv_c_bigendian=yes
7580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7581 if test "$ac_cv_c_bigendian" = unknown; then
7582 ac_cv_c_bigendian=no
7584 # finding both strings is unlikely to happen, but who knows?
7585 ac_cv_c_bigendian=unknown
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 $ac_includes_default
7598 /* Are we little or big endian? From Harbison&Steele. */
7602 char c[sizeof (long int)];
7605 return u.c[sizeof (long int) - 1] == 1;
7611 if ac_fn_c_try_run "$LINENO"; then :
7612 ac_cv_c_bigendian=no
7614 ac_cv_c_bigendian=yes
7616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7617 conftest.$ac_objext conftest.beam conftest.$ac_ext
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7623 $as_echo "$ac_cv_c_bigendian" >&6; }
7624 case $ac_cv_c_bigendian in #(
7626 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7632 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7636 as_fn_error "unknown endianness
7637 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7643 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7644 if test "${am_cv_langinfo_codeset+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <langinfo.h>
7653 char* cs = nl_langinfo(CODESET); return !cs;
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 am_cv_langinfo_codeset=yes
7661 am_cv_langinfo_codeset=no
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7668 $as_echo "$am_cv_langinfo_codeset" >&6; }
7669 if test $am_cv_langinfo_codeset = yes; then
7671 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7685 $as_echo_n "checking for working fcntl.h... " >&6; }
7686 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7689 if test "$cross_compiling" = yes; then :
7690 gl_cv_header_working_fcntl_h=cross-compiling
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <sys/types.h>
7695 #include <sys/stat.h>
7697 # include <unistd.h>
7698 #else /* on Windows with MSVC */
7700 # include <stdlib.h>
7701 # defined sleep(n) _sleep ((n) * 1000)
7708 #define O_NOFOLLOW 0
7710 static int const constants[] =
7712 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7713 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7720 int result = !constants;
7723 static char const sym[] = "conftest.sym";
7724 if (symlink ("/dev/null", sym) != 0)
7728 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7735 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7739 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7750 static char const file[] = "confdefs.h";
7751 int fd = open (file, O_RDONLY | O_NOATIME);
7757 if (fstat (fd, &st0) != 0)
7763 if (read (fd, &c, 1) != 1)
7767 if (close (fd) != 0)
7772 if (stat (file, &st1) != 0)
7775 if (st0.st_atime != st1.st_atime)
7787 if ac_fn_c_try_run "$LINENO"; then :
7788 gl_cv_header_working_fcntl_h=yes
7791 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7792 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7793 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7794 *) gl_cv_header_working_fcntl_h='no';;
7797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7798 conftest.$ac_objext conftest.beam conftest.$ac_ext
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7803 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7805 case $gl_cv_header_working_fcntl_h in #(
7806 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_WORKING_O_NOATIME $ac_val
7815 case $gl_cv_header_working_fcntl_h in #(
7816 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7820 cat >>confdefs.h <<_ACEOF
7821 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7825 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7826 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7832 cat >>confdefs.h <<_ACEOF
7833 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7838 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7839 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7845 #include <features.h>
7846 #ifdef __GNU_LIBRARY__
7847 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7857 $EGREP "Lucky" >/dev/null 2>&1; then :
7858 ac_cv_gnu_library_2_1=yes
7860 ac_cv_gnu_library_2_1=no
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7868 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7870 GLIBC21="$ac_cv_gnu_library_2_1"
7882 GNULIB_MBSNRTOWCS=0;
7885 GNULIB_WCSNRTOMBS=0;
7902 GNULIB_WCSCASECMP=0;
7903 GNULIB_WCSNCASECMP=0;
7953 HAVE_DECL_WCWIDTH=1;
7954 REPLACE_MBSTATE_T=0;
7960 REPLACE_MBSRTOWCS=0;
7961 REPLACE_MBSNRTOWCS=0;
7963 REPLACE_WCSRTOMBS=0;
7964 REPLACE_WCSNRTOMBS=0;
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
7976 $as_echo_n "checking for a traditional japanese locale... " >&6; }
7977 if test "${gt_cv_locale_ja+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7986 #if HAVE_LANGINFO_CODESET
7987 # include <langinfo.h>
7996 /* Check whether the given locale name is recognized by the system. */
7997 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7998 /* On native Windows, setlocale(category, "") looks at the system settings,
7999 not at the environment variables. Also, when an encoding suffix such
8000 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8001 category of the locale to "C". */
8002 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8003 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8006 if (setlocale (LC_ALL, "") == NULL) return 1;
8008 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8009 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8010 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8011 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8012 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8013 some unit tests fail.
8014 On MirBSD 10, when an unsupported locale is specified, setlocale()
8015 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8016 #if HAVE_LANGINFO_CODESET
8018 const char *cs = nl_langinfo (CODESET);
8019 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8020 || strcmp (cs, "UTF-8") == 0)
8025 /* On Cygwin, avoid locale names without encoding suffix, because the
8026 locale_charset() function relies on the encoding suffix. Note that
8027 LC_ALL is set on the command line. */
8028 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8030 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8032 if (MB_CUR_MAX == 1)
8034 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8035 This excludes the UTF-8 encoding (except on MirBSD). */
8036 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8037 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8038 for (p = buf; *p != '\0'; p++)
8039 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8046 (eval $ac_link) 2>&5
8048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8051 # Handle native Windows specially, because there setlocale() interprets
8052 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8053 # "fr" or "fra" as "French" or "French_France.1252",
8054 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8055 # "ja" as "Japanese" or "Japanese_Japan.932",
8058 # Note that on native Windows, the Japanese locale is
8059 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8060 # cannot use it here.
8061 gt_cv_locale_ja=none
8064 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8065 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8066 # configure script would override the LC_ALL setting. Likewise for
8067 # LC_CTYPE, which is also set at the beginning of the configure script.
8068 # Test for the AIX locale name.
8069 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8070 gt_cv_locale_ja=ja_JP
8072 # Test for the locale name with explicit encoding suffix.
8073 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8074 gt_cv_locale_ja=ja_JP.EUC-JP
8076 # Test for the HP-UX, OSF/1, NetBSD locale name.
8077 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8078 gt_cv_locale_ja=ja_JP.eucJP
8080 # Test for the IRIX, FreeBSD locale name.
8081 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8082 gt_cv_locale_ja=ja_JP.EUC
8084 # Test for the Solaris 7 locale name.
8085 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8088 # Special test for NetBSD 1.6.
8089 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8090 gt_cv_locale_ja=ja_JP.eucJP
8093 gt_cv_locale_ja=none
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8107 $as_echo "$gt_cv_locale_ja" >&6; }
8108 LOCALE_JA=$gt_cv_locale_ja
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8115 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8116 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8126 #if HAVE_LANGINFO_CODESET
8127 # include <langinfo.h>
8136 /* Check whether the given locale name is recognized by the system. */
8137 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8138 /* On native Windows, setlocale(category, "") looks at the system settings,
8139 not at the environment variables. Also, when an encoding suffix such
8140 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8141 category of the locale to "C". */
8142 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8143 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8146 if (setlocale (LC_ALL, "") == NULL) return 1;
8148 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8149 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8150 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8151 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8152 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8153 some unit tests fail.
8154 On MirBSD 10, when an unsupported locale is specified, setlocale()
8155 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8156 #if HAVE_LANGINFO_CODESET
8158 const char *cs = nl_langinfo (CODESET);
8159 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8160 || strcmp (cs, "UTF-8") == 0)
8165 /* On Cygwin, avoid locale names without encoding suffix, because the
8166 locale_charset() function relies on the encoding suffix. Note that
8167 LC_ALL is set on the command line. */
8168 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8170 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8171 This excludes the UTF-8 encoding (except on MirBSD). */
8172 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8173 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8174 for (p = buf; *p != '\0'; p++)
8175 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8177 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8178 single wide character. This excludes the GB2312 and GBK encodings. */
8179 if (mblen ("\203\062\332\066", 5) != 4)
8185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8186 (eval $ac_link) 2>&5
8188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8189 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8191 # Handle native Windows specially, because there setlocale() interprets
8192 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8193 # "fr" or "fra" as "French" or "French_France.1252",
8194 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8195 # "ja" as "Japanese" or "Japanese_Japan.932",
8198 # Test for the hypothetical native Windows locale name.
8199 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8200 gt_cv_locale_zh_CN=Chinese_China.54936
8203 gt_cv_locale_zh_CN=none
8207 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8208 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8209 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8210 gt_cv_locale_zh_CN=none
8213 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8214 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8215 # configure script would override the LC_ALL setting. Likewise for
8216 # LC_CTYPE, which is also set at the beginning of the configure script.
8217 # Test for the locale name without encoding suffix.
8218 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8219 gt_cv_locale_zh_CN=zh_CN
8221 # Test for the locale name with explicit encoding suffix.
8222 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8223 gt_cv_locale_zh_CN=zh_CN.GB18030
8226 gt_cv_locale_zh_CN=none
8232 # If there was a link error, due to mblen(), the system is so old that
8233 # it certainly doesn't have a chinese locale.
8234 gt_cv_locale_zh_CN=none
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8240 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8241 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8247 $as_echo_n "checking for a french Unicode locale... " >&6; }
8248 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8257 #if HAVE_LANGINFO_CODESET
8258 # include <langinfo.h>
8265 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8266 imitates locale dependent behaviour by looking at the environment
8267 variables, and all locales use the UTF-8 encoding. */
8268 #if !(defined __BEOS__ || defined __HAIKU__)
8269 /* Check whether the given locale name is recognized by the system. */
8270 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8271 /* On native Windows, setlocale(category, "") looks at the system settings,
8272 not at the environment variables. Also, when an encoding suffix such
8273 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8274 category of the locale to "C". */
8275 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8276 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8279 if (setlocale (LC_ALL, "") == NULL) return 1;
8281 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8282 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8283 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8284 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8285 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8286 some unit tests fail. */
8287 # if HAVE_LANGINFO_CODESET
8289 const char *cs = nl_langinfo (CODESET);
8290 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8295 /* On Cygwin, avoid locale names without encoding suffix, because the
8296 locale_charset() function relies on the encoding suffix. Note that
8297 LC_ALL is set on the command line. */
8298 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8300 /* Check whether in the abbreviation of the second month, the second
8301 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8302 two bytes long, with UTF-8 encoding. */
8303 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8304 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8305 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8308 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8309 /* Check whether the decimal separator is a comma.
8310 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8311 are nl_langinfo(RADIXCHAR) are both ".". */
8312 if (localeconv () ->decimal_point[0] != ',') return 1;
8318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8319 (eval $ac_link) 2>&5
8321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8322 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8324 # Handle native Windows specially, because there setlocale() interprets
8325 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8326 # "fr" or "fra" as "French" or "French_France.1252",
8327 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8328 # "ja" as "Japanese" or "Japanese_Japan.932",
8331 # Test for the hypothetical native Windows locale name.
8332 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8333 gt_cv_locale_fr_utf8=French_France.65001
8336 gt_cv_locale_fr_utf8=none
8340 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8341 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8342 # configure script would override the LC_ALL setting. Likewise for
8343 # LC_CTYPE, which is also set at the beginning of the configure script.
8344 # Test for the usual locale name.
8345 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8346 gt_cv_locale_fr_utf8=fr_FR
8348 # Test for the locale name with explicit encoding suffix.
8349 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8350 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8352 # Test for the Solaris 7 locale name.
8353 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8354 gt_cv_locale_fr_utf8=fr.UTF-8
8357 gt_cv_locale_fr_utf8=none
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8368 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8369 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8376 $as_echo_n "checking for a traditional french locale... " >&6; }
8377 if test "${gt_cv_locale_fr+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8386 #if HAVE_LANGINFO_CODESET
8387 # include <langinfo.h>
8394 /* Check whether the given locale name is recognized by the system. */
8395 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8396 /* On native Windows, setlocale(category, "") looks at the system settings,
8397 not at the environment variables. Also, when an encoding suffix such
8398 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8399 category of the locale to "C". */
8400 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8401 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8404 if (setlocale (LC_ALL, "") == NULL) return 1;
8406 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8407 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8408 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8409 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8410 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8411 some unit tests fail.
8412 On MirBSD 10, when an unsupported locale is specified, setlocale()
8413 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8414 #if HAVE_LANGINFO_CODESET
8416 const char *cs = nl_langinfo (CODESET);
8417 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8418 || strcmp (cs, "UTF-8") == 0)
8423 /* On Cygwin, avoid locale names without encoding suffix, because the
8424 locale_charset() function relies on the encoding suffix. Note that
8425 LC_ALL is set on the command line. */
8426 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8428 /* Check whether in the abbreviation of the second month, the second
8429 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8430 one byte long. This excludes the UTF-8 encoding. */
8431 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8432 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8433 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8434 /* Check whether the decimal separator is a comma.
8435 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8436 are nl_langinfo(RADIXCHAR) are both ".". */
8437 if (localeconv () ->decimal_point[0] != ',') return 1;
8443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8444 (eval $ac_link) 2>&5
8446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8447 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8449 # Handle native Windows specially, because there setlocale() interprets
8450 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8451 # "fr" or "fra" as "French" or "French_France.1252",
8452 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8453 # "ja" as "Japanese" or "Japanese_Japan.932",
8456 # Test for the native Windows locale name.
8457 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8458 gt_cv_locale_fr=French_France.1252
8461 gt_cv_locale_fr=none
8465 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8466 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8467 # configure script would override the LC_ALL setting. Likewise for
8468 # LC_CTYPE, which is also set at the beginning of the configure script.
8469 # Test for the usual locale name.
8470 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8471 gt_cv_locale_fr=fr_FR
8473 # Test for the locale name with explicit encoding suffix.
8474 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8475 gt_cv_locale_fr=fr_FR.ISO-8859-1
8477 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8478 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8479 gt_cv_locale_fr=fr_FR.ISO8859-1
8481 # Test for the HP-UX locale name.
8482 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8483 gt_cv_locale_fr=fr_FR.iso88591
8485 # Test for the Solaris 7 locale name.
8486 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8490 gt_cv_locale_fr=none
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8503 $as_echo "$gt_cv_locale_fr" >&6; }
8504 LOCALE_FR=$gt_cv_locale_fr
8529 GNULIB_STRCASESTR=0;
8536 GNULIB_MBSCASECMP=0;
8537 GNULIB_MBSNCASECMP=0;
8538 GNULIB_MBSPCASECMP=0;
8539 GNULIB_MBSCASESTR=0;
8546 GNULIB_STRERROR_R=0;
8548 GNULIB_STRVERSCMP=0;
8555 HAVE_DECL_MEMRCHR=1;
8561 HAVE_DECL_STRNDUP=1;
8562 HAVE_DECL_STRNLEN=1;
8566 HAVE_DECL_STRTOK_R=1;
8567 HAVE_DECL_STRERROR_R=1;
8568 HAVE_DECL_STRSIGNAL=1;
8575 REPLACE_STRCASESTR=0;
8576 REPLACE_STRCHRNUL=0;
8578 REPLACE_STRERROR_R=0;
8582 REPLACE_STRSIGNAL=0;
8584 UNDEFINE_STRTOK_R=0;
8590 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8591 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8592 # irrelevant for anonymous mappings.
8593 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8594 if test "x$ac_cv_func_mmap" = x""yes; then :
8601 # Try to allow MAP_ANONYMOUS.
8602 gl_have_mmap_anonymous=no
8603 if test $gl_have_mmap = yes; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8605 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8609 #include <sys/mman.h>
8610 #ifdef MAP_ANONYMOUS
8611 I cannot identify this map
8615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8616 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8617 gl_have_mmap_anonymous=yes
8621 if test $gl_have_mmap_anonymous != yes; then
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8625 #include <sys/mman.h>
8627 I cannot identify this map
8631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8632 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8634 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8636 gl_have_mmap_anonymous=yes
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8642 $as_echo "$gl_have_mmap_anonymous" >&6; }
8643 if test $gl_have_mmap_anonymous = yes; then
8645 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8655 if test $HAVE_MEMCHR = 1; then
8656 # Detect platform-specific bugs in some versions of glibc:
8657 # memchr should not dereference anything with length 0
8658 # http://bugzilla.redhat.com/499689
8659 # memchr should not dereference overestimated length after a match
8660 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8661 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8662 # Assume that memchr works on platforms that lack mprotect.
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8664 $as_echo_n "checking whether memchr works... " >&6; }
8665 if test "${gl_cv_func_memchr_works+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8668 if test "$cross_compiling" = yes; then :
8669 gl_cv_func_memchr_works="guessing no"
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8677 # include <unistd.h>
8678 # include <sys/types.h>
8679 # include <sys/mman.h>
8691 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8692 # if HAVE_MAP_ANONYMOUS
8693 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8695 # else /* !HAVE_MAP_ANONYMOUS */
8696 const int flags = MAP_FILE | MAP_PRIVATE;
8697 int fd = open ("/dev/zero", O_RDONLY, 0666);
8701 int pagesize = getpagesize ();
8703 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8705 if (two_pages != (char *)(-1)
8706 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8707 fence = two_pages + pagesize;
8712 if (memchr (fence, 0, 0))
8714 strcpy (fence - 9, "12345678");
8715 if (memchr (fence - 9, 0, 79) != fence - 1)
8717 if (memchr (fence - 1, 0, 3) != fence - 1)
8726 if ac_fn_c_try_run "$LINENO"; then :
8727 gl_cv_func_memchr_works=yes
8729 gl_cv_func_memchr_works=no
8731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8732 conftest.$ac_objext conftest.beam conftest.$ac_ext
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8737 $as_echo "$gl_cv_func_memchr_works" >&6; }
8738 if test "$gl_cv_func_memchr_works" != yes; then
8743 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8744 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8750 cat >>confdefs.h <<_ACEOF
8751 #define HAVE_DECL_MEMMEM $ac_have_decl
8758 for ac_func in memmem
8760 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8761 if test "x$ac_cv_func_memmem" = x""yes; then :
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_MEMMEM 1
8769 if test $ac_cv_func_memmem = yes; then
8775 if test $ac_cv_have_decl_memmem = no; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8779 $as_echo_n "checking whether memmem works... " >&6; }
8780 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8783 if test "$cross_compiling" = yes; then :
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8787 #ifdef __GNU_LIBRARY__
8788 #include <features.h>
8789 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8790 || __GLIBC_MINOR__ > 12)) \
8791 || (__GLIBC__ > 2)) \
8792 || defined __UCLIBC__
8795 #elif defined __CYGWIN__
8796 #include <cygwin/version.h>
8797 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 $EGREP "Lucky user" >/dev/null 2>&1; then :
8807 gl_cv_func_memmem_works_always="guessing yes"
8809 gl_cv_func_memmem_works_always="guessing no"
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8818 #include <string.h> /* for memmem */
8819 #define P "_EF_BF_BD"
8820 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8821 #define NEEDLE P P P P P
8828 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8830 /* Check for empty needle behavior. */
8832 const char *haystack = "AAA";
8833 if (memmem (haystack, 3, NULL, 0) != haystack)
8842 if ac_fn_c_try_run "$LINENO"; then :
8843 gl_cv_func_memmem_works_always=yes
8845 gl_cv_func_memmem_works_always=no
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8848 conftest.$ac_objext conftest.beam conftest.$ac_ext
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8854 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8855 case "$gl_cv_func_memmem_works_always" in
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8865 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8866 if test "${ac_cv_header_stdbool_h+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 #include <stdbool.h>
8874 "error: bool is not defined"
8877 "error: false is not defined"
8880 "error: false is not 0"
8883 "error: true is not defined"
8886 "error: true is not 1"
8888 #ifndef __bool_true_false_are_defined
8889 "error: __bool_true_false_are_defined is not defined"
8892 struct s { _Bool s: 1; _Bool t; } s;
8894 char a[true == 1 ? 1 : -1];
8895 char b[false == 0 ? 1 : -1];
8896 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8897 char d[(bool) 0.5 == true ? 1 : -1];
8898 /* See body of main program for 'e'. */
8899 char f[(_Bool) 0.0 == false ? 1 : -1];
8901 char h[sizeof (_Bool)];
8903 enum { j = false, k = true, l = false * true, m = true * 256 };
8904 /* The following fails for
8905 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8907 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8908 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8909 /* Catch a bug in an HP-UX C compiler. See
8910 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8911 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8923 /* Refer to every declared value, to avoid compiler optimizations. */
8924 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8925 + !m + !n + !o + !p + !q + !pq);
8931 if ac_fn_c_try_compile "$LINENO"; then :
8932 ac_cv_header_stdbool_h=yes
8934 ac_cv_header_stdbool_h=no
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8939 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8940 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8941 if test "x$ac_cv_type__Bool" = x""yes; then :
8943 cat >>confdefs.h <<_ACEOF
8944 #define HAVE__BOOL 1
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8957 $as_echo_n "checking for wchar_t... " >&6; }
8958 if test "${gt_cv_c_wchar_t+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8964 wchar_t foo = (wchar_t)'\0';
8973 if ac_fn_c_try_compile "$LINENO"; then :
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8981 $as_echo "$gt_cv_c_wchar_t" >&6; }
8982 if test $gt_cv_c_wchar_t = yes; then
8984 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8989 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8990 if test "${ac_cv_c_restrict+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8994 # The order here caters to the fact that C++ does not require restrict.
8995 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 typedef int * int_ptr;
8999 int foo (int_ptr $ac_kw ip) {
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 ac_cv_c_restrict=$ac_kw
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 test "$ac_cv_c_restrict" != no && break
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9022 $as_echo "$ac_cv_c_restrict" >&6; }
9024 case $ac_cv_c_restrict in
9026 no) $as_echo "#define restrict /**/" >>confdefs.h
9028 *) cat >>confdefs.h <<_ACEOF
9029 #define restrict $ac_cv_c_restrict
9045 if test $gl_cv_have_include_next = yes; then
9046 gl_cv_next_string_h='<'string.h'>'
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9049 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9050 if test "${gl_cv_next_string_h+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9061 *) gl_absname_cpp="$ac_cpp" ;;
9066 gl_dirsep_regex='[/\\]'
9069 gl_dirsep_regex='\/'
9072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9074 gl_header_literal_regex=`echo 'string.h' \
9075 |
sed -e "$gl_make_literal_regex_sed"`
9076 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9077 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9082 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9083 sed -n "$gl_absolute_header_sed"`'"'
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9088 $as_echo "$gl_cv_next_string_h" >&6; }
9090 NEXT_STRING_H=$gl_cv_next_string_h
9092 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9094 gl_next_as_first_directive='<'string.h'>'
9096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9097 gl_next_as_first_directive=$gl_cv_next_string_h
9099 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9106 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
9107 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9109 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9110 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9111 $as_echo_n "(cached) " >&6
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9126 if ac_fn_c_try_compile "$LINENO"; then :
9127 eval "$as_gl_Symbol=yes"
9129 eval "$as_gl_Symbol=no"
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133 eval ac_res=\$$as_gl_Symbol
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9135 $as_echo "$ac_res" >&6; }
9136 eval as_val=\$$as_gl_Symbol
9137 if test "x$as_val" = x""yes; then :
9138 cat >>confdefs.h <<_ACEOF
9139 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
9142 eval ac_cv_have_decl_$gl_func=yes
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9149 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9150 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9153 gl_cv_header_wchar_h_correct_inline=yes
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9157 #define wcstod renamed_wcstod
9158 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9160 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9161 included before <wchar.h>. */
9166 extern int zero (void);
9167 int main () { return zero(); }
9170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9171 (eval $ac_compile) 2>&5
9173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174 test $ac_status = 0; }; then
9175 mv conftest.$ac_objext conftest1.$ac_objext
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9179 #define wcstod renamed_wcstod
9180 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9182 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9183 included before <wchar.h>. */
9188 int zero (void) { return 0; }
9191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9192 (eval $ac_compile) 2>&5
9194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9195 test $ac_status = 0; }; then
9196 mv conftest.$ac_objext conftest2.$ac_objext
9197 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9200 gl_cv_header_wchar_h_correct_inline=no
9204 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9208 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9209 if test $gl_cv_header_wchar_h_correct_inline = no; then
9210 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9211 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9212 C99 mode. You have four options:
9213 - Add the flag -fgnu89-inline to CC and reconfigure, or
9214 - Fix your include files, using parts of
9215 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9216 - Use a gcc version older than 4.3, or
9217 - Don't use the flags -std=c99 or -std=gnu99.
9218 Configuration aborted." "$LINENO" 5
9225 if test $ac_cv_header_features_h = yes; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9234 $as_echo_n "checking for wint_t... " >&6; }
9235 if test "${gt_cv_c_wint_t+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9241 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9243 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9244 before <wchar.h>. */
9249 wint_t foo = (wchar_t)'\0';
9258 if ac_fn_c_try_compile "$LINENO"; then :
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9266 $as_echo "$gt_cv_c_wint_t" >&6; }
9267 if test $gt_cv_c_wint_t = yes; then
9269 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9288 GL_COND_LIBTOOL_TRUE=
9289 GL_COND_LIBTOOL_FALSE='#'
9291 GL_COND_LIBTOOL_TRUE='#'
9292 GL_COND_LIBTOOL_FALSE=
9295 gl_cond_libtool=false
9298 gl_m4_base='import/m4'
9308 gl_source_base='import'
9311 if test $ac_cv_func_alloca_works = no; then
9315 # Define an additional variable used in the Makefile substitution.
9316 if test $ac_cv_working_alloca_h = yes; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9318 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9319 if test "${gl_cv_rpl_alloca+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9326 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
9331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9332 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9333 gl_cv_rpl_alloca=yes
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9342 $as_echo "$gl_cv_rpl_alloca" >&6; }
9343 if test $gl_cv_rpl_alloca = yes; then
9345 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9355 if test -n "$ALLOCA_H"; then
9356 GL_GENERATE_ALLOCA_H_TRUE=
9357 GL_GENERATE_ALLOCA_H_FALSE='#'
9359 GL_GENERATE_ALLOCA_H_TRUE='#'
9360 GL_GENERATE_ALLOCA_H_FALSE=
9365 if test "x$datarootdir" = x; then
9366 datarootdir='${datadir}'
9369 if test "x$docdir" = x; then
9370 docdir='${datarootdir}/doc/${PACKAGE}'
9373 if test "x$htmldir" = x; then
9377 if test "x$dvidir" = x; then
9381 if test "x$pdfdir" = x; then
9385 if test "x$psdir" = x; then
9389 if test "x$lispdir" = x; then
9390 lispdir='${datarootdir}/emacs/site-lisp'
9393 if test "x$localedir" = x; then
9394 localedir='${datarootdir}/locale'
9398 pkglibexecdir='${libexecdir}/${PACKAGE}'
9406 REPLACE_FLOAT_LDBL=0
9408 aix* | beos* | openbsd* | mirbsd* | irix*)
9417 # On x86_64 systems, the C compiler may still be generating
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
9425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9426 $EGREP "yes" >/dev/null 2>&1; then :
9445 aix* | freebsd* | linux*)
9446 if test -n "$FLOAT_H"; then
9447 REPLACE_FLOAT_LDBL=1
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9454 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9455 if test "${gl_cv_func_itold_works+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9459 if test "$cross_compiling" = yes; then :
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 #if defined __LP64__ || defined __arch64__
9468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9469 $EGREP "yes" >/dev/null 2>&1; then :
9470 gl_cv_func_itold_works="guessing no"
9472 gl_cv_func_itold_works="guessing yes"
9477 *) gl_cv_func_itold_works="guessing yes" ;;
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9485 volatile long double ld;
9494 if ac_fn_c_try_run "$LINENO"; then :
9495 gl_cv_func_itold_works=yes
9497 gl_cv_func_itold_works=no
9499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9500 conftest.$ac_objext conftest.beam conftest.$ac_ext
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9506 $as_echo "$gl_cv_func_itold_works" >&6; }
9507 case "$gl_cv_func_itold_works" in
9514 if test -n "$FLOAT_H"; then
9523 if test $gl_cv_have_include_next = yes; then
9524 gl_cv_next_float_h='<'float.h'>'
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9527 $as_echo_n "checking absolute name of <float.h>... " >&6; }
9528 if test "${gl_cv_next_float_h+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9538 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9539 *) gl_absname_cpp="$ac_cpp" ;;
9544 gl_dirsep_regex='[/\\]'
9547 gl_dirsep_regex='\/'
9550 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9552 gl_header_literal_regex=`echo 'float.h' \
9553 |
sed -e "$gl_make_literal_regex_sed"`
9554 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9555 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9560 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9561 sed -n "$gl_absolute_header_sed"`'"'
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9566 $as_echo "$gl_cv_next_float_h" >&6; }
9568 NEXT_FLOAT_H=$gl_cv_next_float_h
9570 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9572 gl_next_as_first_directive='<'float.h'>'
9574 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9575 gl_next_as_first_directive=$gl_cv_next_float_h
9577 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9584 if test -n "$FLOAT_H"; then
9585 GL_GENERATE_FLOAT_H_TRUE=
9586 GL_GENERATE_FLOAT_H_FALSE='#'
9588 GL_GENERATE_FLOAT_H_TRUE='#'
9589 GL_GENERATE_FLOAT_H_FALSE=
9594 if test $REPLACE_FLOAT_LDBL = 1; then
9603 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9606 if test $REPLACE_ITOLD = 1; then
9615 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9624 gl_fnmatch_required_lowercase=`
9625 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
9627 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9629 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9630 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9631 $as_echo_n "(cached) " >&6
9633 if test $gl_fnmatch_required = GNU; then
9634 gl_fnmatch_gnu_start=
9637 gl_fnmatch_gnu_start='#if 0'
9638 gl_fnmatch_gnu_end='#endif'
9640 if test "$cross_compiling" = yes; then :
9641 eval "$gl_fnmatch_cache_var=\"guessing no\""
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 #include <fnmatch.h>
9647 y (char const *pattern, char const *string, int flags)
9649 return fnmatch (pattern, string, flags) == 0;
9652 n (char const *pattern, char const *string, int flags)
9654 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9660 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9661 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9662 static char const A_1[] = { 'A' - 1, 0 };
9663 static char const A01[] = { 'A' + 1, 0 };
9664 static char const a_1[] = { 'a' - 1, 0 };
9665 static char const a01[] = { 'a' + 1, 0 };
9666 static char const bs_1[] = { '\\\\' - 1, 0 };
9667 static char const bs01[] = { '\\\\' + 1, 0 };
9669 if (!n ("a*", "", 0))
9671 if (!y ("a*", "abc", 0))
9673 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
9675 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
9677 if (!y ("a\\\\bc", "abc", 0))
9679 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
9681 if (!y ("*x", ".x", 0))
9683 if (!n ("*x", ".x", FNM_PERIOD))
9685 if (!y (Apat, "\\\\", 0))
9687 if (!y (Apat, "A", 0))
9689 if (!y (apat, "\\\\", 0))
9691 if (!y (apat, "a", 0))
9693 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
9695 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
9697 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
9699 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
9701 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
9703 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
9705 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
9707 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
9709 $gl_fnmatch_gnu_start
9710 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
9712 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
9714 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
9716 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
9718 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
9720 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
9729 if ac_fn_c_try_run "$LINENO"; then :
9730 eval "$gl_fnmatch_cache_var=yes"
9732 eval "$gl_fnmatch_cache_var=no"
9734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9735 conftest.$ac_objext conftest.beam conftest.$ac_ext
9740 eval ac_res=\$$gl_fnmatch_cache_var
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9742 $as_echo "$ac_res" >&6; }
9743 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
9744 if test "$gl_fnmatch_result" = yes; then
9745 rm -f "$gl_source_base/fnmatch.h"
9750 if test -n "$FNMATCH_H"; then
9751 GL_GENERATE_FNMATCH_H_TRUE=
9752 GL_GENERATE_FNMATCH_H_FALSE='#'
9754 GL_GENERATE_FNMATCH_H_TRUE='#'
9755 GL_GENERATE_FNMATCH_H_FALSE=
9759 if test -n "$FNMATCH_H"; then
9768 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9772 cat >>confdefs.h <<_ACEOF
9773 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9777 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9779 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9785 cat >>confdefs.h <<_ACEOF
9786 #define HAVE_DECL_ISBLANK $ac_have_decl
9798 if test -n "$FNMATCH_H"; then
9807 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9811 cat >>confdefs.h <<_ACEOF
9812 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9816 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9818 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9824 cat >>confdefs.h <<_ACEOF
9825 #define HAVE_DECL_ISBLANK $ac_have_decl
9836 if test $gl_cv_func_frexp_no_libm = no; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9838 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9839 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9852 int e; return frexp (x, &e) > 0;
9857 if ac_fn_c_try_link "$LINENO"; then :
9858 gl_cv_func_frexp_in_libm=yes
9860 gl_cv_func_frexp_in_libm=no
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9868 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9869 if test $gl_cv_func_frexp_in_libm = yes; then
9873 if test $gl_cv_func_frexp_no_libm = yes \
9874 || test $gl_cv_func_frexp_in_libm = yes; then
9876 LIBS="$LIBS $FREXP_LIBM"
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9881 $as_echo_n "checking whether frexp works... " >&6; }
9882 if test "${gl_cv_func_frexp_works+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9886 if test "$cross_compiling" = yes; then :
9888 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
9889 *) gl_cv_func_frexp_works="guessing yes";;
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9900 # include <unistd.h>
9902 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9903 ICC 10.0 has a bug when optimizing the expression -zero.
9904 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9905 to PowerPC on Mac OS X 10.5. */
9906 #if defined __hpux || defined __sgi || defined __ICC
9908 compute_minus_zero (void)
9910 return -DBL_MIN * DBL_MIN;
9912 # define minus_zero compute_minus_zero ()
9914 double minus_zero = -0.0;
9923 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9924 number. Let the test fail in this case. */
9927 /* Test on denormalized numbers. */
9928 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9933 double y = frexp (x, &exp);
9934 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9935 On NetBSD: y = 0.75. Correct: y = 0.5. */
9939 /* Test on infinite numbers. */
9943 double y = frexp (x, &exp);
9947 /* Test on negative zero. */
9951 double y = frexp (x, &exp);
9952 if (memcmp (&y, &x, sizeof x))
9958 if ac_fn_c_try_run "$LINENO"; then :
9959 gl_cv_func_frexp_works=yes
9961 gl_cv_func_frexp_works=no
9963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9964 conftest.$ac_objext conftest.beam conftest.$ac_ext
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9970 $as_echo "$gl_cv_func_frexp_works" >&6; }
9973 case "$gl_cv_func_frexp_works" in
9974 *yes) gl_func_frexp=yes ;;
9975 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
9980 if test $gl_func_frexp = yes; then
9982 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9987 if test $gl_func_frexp != yes; then
9996 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10010 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10020 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10022 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10030 if test $HAVE_DECL_FREXPL = 1; then
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10033 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10034 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10045 int e; return frexpl (x, &e) > 0;
10050 if ac_fn_c_try_link "$LINENO"; then :
10051 gl_cv_func_frexpl_no_libm=yes
10053 gl_cv_func_frexpl_no_libm=no
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10060 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10062 if test $gl_cv_func_frexpl_no_libm = no; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10064 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10065 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10078 int e; return frexpl (x, &e) > 0;
10083 if ac_fn_c_try_link "$LINENO"; then :
10084 gl_cv_func_frexpl_in_libm=yes
10086 gl_cv_func_frexpl_in_libm=no
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10094 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10095 if test $gl_cv_func_frexpl_in_libm = yes; then
10099 if test $gl_cv_func_frexpl_no_libm = yes \
10100 || test $gl_cv_func_frexpl_in_libm = yes; then
10102 LIBS="$LIBS $FREXPL_LIBM"
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10106 $as_echo_n "checking whether frexpl works... " >&6; }
10107 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10111 if test "$cross_compiling" = yes; then :
10114 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10115 gl_cv_func_frexpl_works="guessing no";;
10116 *) gl_cv_func_frexpl_works="guessing yes";;
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10125 /* Override the values of <float.h>, like done in float.in.h. */
10126 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10127 # undef LDBL_MIN_EXP
10128 # define LDBL_MIN_EXP (-16381)
10130 #if defined __i386__ && defined __FreeBSD__
10131 # undef LDBL_MIN_EXP
10132 # define LDBL_MIN_EXP (-16381)
10134 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10135 # undef LDBL_MIN_EXP
10136 # define LDBL_MIN_EXP DBL_MIN_EXP
10138 #if defined __sgi && (LDBL_MANT_DIG >= 106)
10139 # if defined __GNUC__
10140 # undef LDBL_MIN_EXP
10141 # define LDBL_MIN_EXP DBL_MIN_EXP
10148 long double frexpl (long double, int *);
10152 volatile long double x;
10153 /* Test on finite numbers that fails on AIX 5.1. */
10161 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10162 function returns an invalid (incorrectly normalized) value: it returns
10163 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10164 but the correct result is
10165 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10169 long double y = frexpl (x, &exp);
10170 if (!(exp == 1 && y == 0.505L))
10173 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10174 LDBL_MAX_EXP = 16384.
10175 In the loop end test, we test x against Infinity, rather than comparing
10176 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10179 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10190 /* Test on denormalized numbers. */
10193 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10198 long double y = frexpl (x, &exp);
10199 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10200 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10201 if (exp != LDBL_MIN_EXP - 1)
10205 /* Test on infinite numbers. */
10209 long double y = frexpl (x, &exp);
10216 if ac_fn_c_try_run "$LINENO"; then :
10217 gl_cv_func_frexpl_works=yes
10219 gl_cv_func_frexpl_works=no
10221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10222 conftest.$ac_objext conftest.beam conftest.$ac_ext
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10228 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10231 case "$gl_cv_func_frexpl_works" in
10232 *yes) gl_func_frexpl=yes ;;
10233 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10238 if test $gl_func_frexpl = yes; then
10240 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10244 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10245 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10247 FREXPL_LIBM="$FREXP_LIBM"
10254 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10263 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10277 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10287 if test -n "$STDINT_H"; then
10288 PRIPTR_PREFIX='"l"'
10290 for glpfx in '' l ll I64; do
10292 '') gltype1='int';;
10293 l) gltype1='long int';;
10294 ll) gltype1='long long int';;
10295 I64) gltype1='__int64';;
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <stdint.h>
10300 extern intptr_t foo;
10301 extern $gltype1 foo;
10310 if ac_fn_c_try_compile "$LINENO"; then :
10311 PRIPTR_PREFIX='"'$glpfx'"'
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314 test -n "$PRIPTR_PREFIX" && break
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10321 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10322 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 /* Work also in C++ mode. */
10328 #define __STDC_LIMIT_MACROS 1
10330 /* Work if build is not clean. */
10331 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10333 #include <limits.h>
10335 #include <stdint.h>
10338 #if defined INT32_MAX && defined INTMAX_MAX
10339 #define CONDITION (INT32_MAX < INTMAX_MAX)
10340 #elif HAVE_LONG_LONG_INT
10341 #define CONDITION (sizeof (int) < sizeof (long long int))
10343 #define CONDITION 0
10345 int test[CONDITION ? 1 : -1];
10354 if ac_fn_c_try_compile "$LINENO"; then :
10355 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10357 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10362 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10363 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10364 INT32_MAX_LT_INTMAX_MAX=1;
10366 INT32_MAX_LT_INTMAX_MAX=0;
10370 if test $APPLE_UNIVERSAL_BUILD = 0; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10373 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10374 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 /* Work also in C++ mode. */
10380 #define __STDC_LIMIT_MACROS 1
10382 /* Work if build is not clean. */
10383 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10385 #include <limits.h>
10387 #include <stdint.h>
10390 #if defined INT64_MAX
10391 #define CONDITION (INT64_MAX == LONG_MAX)
10392 #elif HAVE_LONG_LONG_INT
10393 #define CONDITION (sizeof (long long int) == sizeof (long int))
10395 #define CONDITION 0
10397 int test[CONDITION ? 1 : -1];
10406 if ac_fn_c_try_compile "$LINENO"; then :
10407 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10409 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10414 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10415 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10416 INT64_MAX_EQ_LONG_MAX=1;
10418 INT64_MAX_EQ_LONG_MAX=0;
10423 INT64_MAX_EQ_LONG_MAX=-1
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10427 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10428 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 /* Work also in C++ mode. */
10434 #define __STDC_LIMIT_MACROS 1
10436 /* Work if build is not clean. */
10437 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10439 #include <limits.h>
10441 #include <stdint.h>
10444 #if defined UINT32_MAX && defined UINTMAX_MAX
10445 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10446 #elif HAVE_LONG_LONG_INT
10447 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10449 #define CONDITION 0
10451 int test[CONDITION ? 1 : -1];
10460 if ac_fn_c_try_compile "$LINENO"; then :
10461 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10463 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10468 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10469 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10470 UINT32_MAX_LT_UINTMAX_MAX=1;
10472 UINT32_MAX_LT_UINTMAX_MAX=0;
10476 if test $APPLE_UNIVERSAL_BUILD = 0; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10479 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10480 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10481 $as_echo_n "(cached) " >&6
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 /* Work also in C++ mode. */
10486 #define __STDC_LIMIT_MACROS 1
10488 /* Work if build is not clean. */
10489 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10491 #include <limits.h>
10493 #include <stdint.h>
10496 #if defined UINT64_MAX
10497 #define CONDITION (UINT64_MAX == ULONG_MAX)
10498 #elif HAVE_LONG_LONG_INT
10499 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10501 #define CONDITION 0
10503 int test[CONDITION ? 1 : -1];
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10515 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10520 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10521 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10522 UINT64_MAX_EQ_ULONG_MAX=1;
10524 UINT64_MAX_EQ_ULONG_MAX=0;
10529 UINT64_MAX_EQ_ULONG_MAX=-1
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10537 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10538 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10547 # define isnand(x) __builtin_isnan ((double)(x))
10550 # define isnand(x) isnan ((double)(x))
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 gl_cv_func_isnand_no_libm=yes
10564 gl_cv_func_isnand_no_libm=no
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10571 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10573 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10574 if test $gl_cv_func_isnand_no_libm = yes; then
10576 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10580 if test $gl_func_isnand_no_libm != yes; then
10589 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10598 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10599 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10608 # define isnanl(x) __builtin_isnanl ((long double)(x))
10609 #elif defined isnan
10611 # define isnanl(x) isnan ((long double)(x))
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 gl_cv_func_isnanl_no_libm=yes
10625 gl_cv_func_isnanl_no_libm=no
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10632 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10634 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10635 if test $gl_func_isnanl_no_libm = yes; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10641 $as_echo_n "checking whether isnanl works... " >&6; }
10642 if test "${gl_cv_func_isnanl_works+set}" = set; then :
10643 $as_echo_n "(cached) " >&6
10646 if test "$cross_compiling" = yes; then :
10647 case "$host_cpu" in
10648 # Guess no on ia64, x86_64, i386.
10649 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10652 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10653 *) gl_cv_func_isnanl_works="guessing yes";;
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10663 #include <limits.h>
10667 # define isnanl(x) __builtin_isnanl ((long double)(x))
10668 #elif defined isnan
10670 # define isnanl(x) isnan ((long double)(x))
10673 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10674 typedef union { unsigned int word[NWORDS]; long double value; }
10675 memory_long_double;
10676 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
10677 runtime type conversion. */
10679 static long double NaNl ()
10682 return zero / zero;
10685 # define NaNl() (0.0L / 0.0L)
10691 if (!isnanl (NaNl ()))
10695 memory_long_double m;
10698 /* The isnanl function should be immune against changes in the sign bit and
10699 in the mantissa bits. The xor operation twiddles a bit that can only be
10700 a sign bit or a mantissa bit (since the exponent never extends to
10703 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
10704 for (i = 0; i < NWORDS; i++)
10706 if (!isnanl (m.value))
10710 #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
10711 /* Representation of an 80-bit 'long double' as an initializer for a sequence
10712 of 'unsigned int' words. */
10713 # ifdef WORDS_BIGENDIAN
10714 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10715 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
10716 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
10717 (unsigned int) (mantlo) << 16 \
10720 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10721 { mantlo, manthi, exponent }
10724 static memory_long_double x =
10725 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
10726 if (!isnanl (x.value))
10730 /* Signalling NaN. */
10731 static memory_long_double x =
10732 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
10733 if (!isnanl (x.value))
10736 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
10737 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
10738 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
10739 Application Architecture.
10740 Table 5-2 "Floating-Point Register Encodings"
10741 Figure 5-6 "Memory to Floating-Point Register Data Translation"
10743 { /* Pseudo-NaN. */
10744 static memory_long_double x =
10745 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
10746 if (!isnanl (x.value))
10749 { /* Pseudo-Infinity. */
10750 static memory_long_double x =
10751 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
10752 if (!isnanl (x.value))
10755 { /* Pseudo-Zero. */
10756 static memory_long_double x =
10757 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
10758 if (!isnanl (x.value))
10761 { /* Unnormalized number. */
10762 static memory_long_double x =
10763 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
10764 if (!isnanl (x.value))
10767 { /* Pseudo-Denormal. */
10768 static memory_long_double x =
10769 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
10770 if (!isnanl (x.value))
10778 if ac_fn_c_try_run "$LINENO"; then :
10779 gl_cv_func_isnanl_works=yes
10781 gl_cv_func_isnanl_works=no
10783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10784 conftest.$ac_objext conftest.beam conftest.$ac_ext
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
10790 $as_echo "$gl_cv_func_isnanl_works" >&6; }
10792 case "$gl_cv_func_isnanl_works" in
10794 *) gl_func_isnanl_no_libm=no ;;
10797 if test $gl_func_isnanl_no_libm = yes; then
10799 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
10803 if test $gl_func_isnanl_no_libm != yes; then
10812 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
10818 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
10819 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10823 if test "$cross_compiling" = yes; then :
10825 gl_cv_cc_long_double_expbit0="unknown"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10832 #include <stddef.h>
10834 #include <string.h>
10836 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10837 typedef union { long double value; unsigned int word[NWORDS]; }
10838 memory_long_double;
10839 static unsigned int ored_words[NWORDS];
10840 static unsigned int anded_words[NWORDS];
10841 static void add_to_ored_words (long double x)
10843 memory_long_double m;
10845 /* Clear it first, in case
10846 sizeof (long double) < sizeof (memory_long_double). */
10847 memset (&m, 0, sizeof (memory_long_double));
10849 for (i = 0; i < NWORDS; i++)
10851 ored_words[i] |= m.word[i];
10852 anded_words[i] &= m.word[i];
10858 FILE *fp = fopen ("conftest.out", "w");
10861 for (j = 0; j < NWORDS; j++)
10862 anded_words[j] = ~ (unsigned int) 0;
10863 add_to_ored_words (0.25L);
10864 add_to_ored_words (0.5L);
10865 add_to_ored_words (1.0L);
10866 add_to_ored_words (2.0L);
10867 add_to_ored_words (4.0L);
10868 /* Remove bits that are common (e.g. if representation of the first mantissa
10869 bit is explicit). */
10870 for (j = 0; j < NWORDS; j++)
10871 ored_words[j] &= ~anded_words[j];
10872 /* Now find the nonzero word. */
10873 for (j = 0; j < NWORDS; j++)
10874 if (ored_words[j] != 0)
10879 for (i = j + 1; i < NWORDS; i++)
10880 if (ored_words[i] != 0)
10882 fprintf (fp, "unknown");
10883 return (fclose (fp) != 0);
10886 if ((ored_words[j] >> i) & 1)
10888 fprintf (fp, "word %d bit %d", (int) j, (int) i);
10889 return (fclose (fp) != 0);
10892 fprintf (fp, "unknown");
10893 return (fclose (fp) != 0);
10897 if ac_fn_c_try_run "$LINENO"; then :
10898 gl_cv_cc_long_double_expbit0=`cat conftest.out
`
10900 gl_cv_cc_long_double_expbit0="unknown"
10902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10903 conftest.$ac_objext conftest.beam conftest.$ac_ext
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
10910 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
10911 case "$gl_cv_cc_long_double_expbit0" in
10913 word=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word //' -e 's/ bit.*//'`
10914 bit=`echo "$gl_cv_cc_long_double_expbit0" |
sed -e 's/word.*bit //'`
10916 cat >>confdefs.h <<_ACEOF
10917 #define LDBL_EXPBIT0_WORD $word
10921 cat >>confdefs.h <<_ACEOF
10922 #define LDBL_EXPBIT0_BIT $bit
10939 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
10952 if test $gl_cv_have_include_next = yes; then
10953 gl_cv_next_math_h='<'math.h'>'
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
10956 $as_echo_n "checking absolute name of <math.h>... " >&6; }
10957 if test "${gl_cv_next_math_h+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10961 if test $ac_cv_header_math_h = yes; then
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10970 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10971 *) gl_absname_cpp="$ac_cpp" ;;
10976 gl_dirsep_regex='[/\\]'
10979 gl_dirsep_regex='\/'
10982 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10984 gl_header_literal_regex=`echo 'math.h' \
10985 |
sed -e "$gl_make_literal_regex_sed"`
10986 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10987 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10992 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10993 sed -n "$gl_absolute_header_sed"`'"'
10995 gl_cv_next_math_h='<'math.h'>'
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11001 $as_echo "$gl_cv_next_math_h" >&6; }
11003 NEXT_MATH_H=$gl_cv_next_math_h
11005 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11007 gl_next_as_first_directive='<'math.h'>'
11009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11010 gl_next_as_first_directive=$gl_cv_next_math_h
11012 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11019 $as_echo_n "checking whether NAN macro works... " >&6; }
11020 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11029 /* Solaris 10 has a broken definition of NAN. Other platforms
11030 fail to provide NAN, or provide it only in C99 mode; this
11031 test only needs to fail when NAN is provided but wrong. */
11041 if ac_fn_c_try_compile "$LINENO"; then :
11042 gl_cv_header_math_nan_works=yes
11044 gl_cv_header_math_nan_works=no
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11049 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11050 if test $gl_cv_header_math_nan_works = no; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11054 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11055 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11064 /* Solaris 10 has a broken definition of HUGE_VAL. */
11065 double d = HUGE_VAL;
11071 if ac_fn_c_try_compile "$LINENO"; then :
11072 gl_cv_header_math_huge_val_works=yes
11074 gl_cv_header_math_huge_val_works=no
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11079 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11080 if test $gl_cv_header_math_huge_val_works = no; then
11085 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
11086 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11088 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11089 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11090 $as_echo_n "(cached) " >&6
11092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11104 if ac_fn_c_try_compile "$LINENO"; then :
11105 eval "$as_gl_Symbol=yes"
11107 eval "$as_gl_Symbol=no"
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 eval ac_res=\$$as_gl_Symbol
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11113 $as_echo "$ac_res" >&6; }
11114 eval as_val=\$$as_gl_Symbol
11115 if test "x$as_val" = x""yes; then :
11116 cat >>confdefs.h <<_ACEOF
11117 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11120 eval ac_cv_have_decl_$gl_func=yes
11135 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11140 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11141 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11146 # Guess no on AIX and OSF/1.
11147 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11148 # Guess yes otherwise.
11149 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11151 if test $LOCALE_JA != none; then
11152 if test "$cross_compiling" = yes; then :
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11158 #include <locale.h>
11159 #include <string.h>
11160 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11162 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11163 included before <wchar.h>. */
11164 #include <stddef.h>
11170 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11172 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11176 memset (&state, '\0', sizeof (mbstate_t));
11177 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11178 if (mbsinit (&state))
11184 if ac_fn_c_try_run "$LINENO"; then :
11185 gl_cv_func_mbrtowc_incomplete_state=yes
11187 gl_cv_func_mbrtowc_incomplete_state=no
11189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11190 conftest.$ac_objext conftest.beam conftest.$ac_ext
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11197 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11203 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11204 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11209 # Guess no on Solaris 8.
11210 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11211 # Guess yes otherwise.
11212 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11214 if test $LOCALE_ZH_CN != none; then
11215 if test "$cross_compiling" = yes; then :
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 #include <locale.h>
11222 #include <stdlib.h>
11223 #include <string.h>
11224 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11226 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11227 included before <wchar.h>. */
11228 #include <stddef.h>
11234 /* This fails on Solaris 8:
11235 mbrtowc returns 2, and sets wc to 0x00F0.
11236 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11237 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11239 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11243 memset (&state, '\0', sizeof (mbstate_t));
11244 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11245 && mbtowc (&wc, input + 3, 6) == 4)
11251 if ac_fn_c_try_run "$LINENO"; then :
11252 gl_cv_func_mbrtowc_sanitycheck=yes
11254 gl_cv_func_mbrtowc_sanitycheck=no
11256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11257 conftest.$ac_objext conftest.beam conftest.$ac_ext
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11264 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11266 REPLACE_MBSTATE_T=0
11267 case "$gl_cv_func_mbrtowc_incomplete_state" in
11269 *) REPLACE_MBSTATE_T=1 ;;
11271 case "$gl_cv_func_mbrtowc_sanitycheck" in
11273 *) REPLACE_MBSTATE_T=1 ;;
11276 REPLACE_MBSTATE_T=1
11281 if test $ac_cv_func_mbrtowc = no; then
11283 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11284 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11286 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11287 included before <wchar.h>. */
11288 #include <stddef.h>
11294 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_DECL_MBRTOWC $ac_have_decl
11304 if test $ac_cv_have_decl_mbrtowc = yes; then
11308 if test $REPLACE_MBSTATE_T = 1; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11315 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11316 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11321 # Guess no on Solaris.
11322 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11323 # Guess yes otherwise.
11324 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11326 if test $LOCALE_FR_UTF8 != none; then
11327 if test "$cross_compiling" = yes; then :
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 #include <locale.h>
11334 #include <stdlib.h>
11335 #include <string.h>
11336 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11338 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11339 included before <wchar.h>. */
11340 #include <stddef.h>
11348 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11350 char input[] = "\303\237er";
11355 memset (&state, '\0', sizeof (mbstate_t));
11356 wc = (wchar_t) 0xBADFACE;
11357 ret = mbrtowc (&wc, input, 5, &state);
11360 if (!mbsinit (&state))
11363 memset (&state, '\0', sizeof (mbstate_t));
11364 ret = mbrtowc (NULL, input, 5, &state);
11365 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11367 if (!mbsinit (&state))
11373 if ac_fn_c_try_run "$LINENO"; then :
11374 gl_cv_func_mbrtowc_null_arg1=yes
11376 gl_cv_func_mbrtowc_null_arg1=no
11378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11379 conftest.$ac_objext conftest.beam conftest.$ac_ext
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11386 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11392 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11393 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11398 # Guess no on OSF/1.
11399 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11400 # Guess yes otherwise.
11401 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11403 if test $LOCALE_FR_UTF8 != none; then
11404 if test "$cross_compiling" = yes; then :
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11410 #include <locale.h>
11411 #include <string.h>
11412 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11414 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11415 included before <wchar.h>. */
11416 #include <stddef.h>
11422 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11428 memset (&state, '\0', sizeof (mbstate_t));
11429 wc = (wchar_t) 0xBADFACE;
11430 mbrtowc (&wc, NULL, 5, &state);
11431 /* Check that wc was not modified. */
11432 if (wc != (wchar_t) 0xBADFACE)
11438 if ac_fn_c_try_run "$LINENO"; then :
11439 gl_cv_func_mbrtowc_null_arg2=yes
11441 gl_cv_func_mbrtowc_null_arg2=no
11443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11444 conftest.$ac_objext conftest.beam conftest.$ac_ext
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11451 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11459 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11460 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11465 # Guess no on HP-UX, Solaris, native Windows.
11466 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11467 # Guess yes otherwise.
11468 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11470 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11471 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11472 if test "$cross_compiling" = yes; then :
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11478 #include <locale.h>
11479 #include <string.h>
11480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11483 included before <wchar.h>. */
11484 #include <stddef.h>
11491 int found_some_locale = 0;
11492 /* This fails on Solaris. */
11493 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11495 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11499 memset (&state, '\0', sizeof (mbstate_t));
11500 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11503 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11506 found_some_locale = 1;
11508 /* This fails on HP-UX 11.11. */
11509 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11511 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11515 memset (&state, '\0', sizeof (mbstate_t));
11516 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11519 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11522 found_some_locale = 1;
11524 /* This fails on native Windows. */
11525 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11527 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11531 memset (&state, '\0', sizeof (mbstate_t));
11532 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11535 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11538 found_some_locale = 1;
11540 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11542 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11546 memset (&state, '\0', sizeof (mbstate_t));
11547 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11550 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11553 found_some_locale = 1;
11555 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11557 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11561 memset (&state, '\0', sizeof (mbstate_t));
11562 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11565 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11568 found_some_locale = 1;
11570 return (found_some_locale ? result : 77);
11573 if ac_fn_c_try_run "$LINENO"; then :
11574 gl_cv_func_mbrtowc_retval=yes
11576 if test $? != 77; then
11577 gl_cv_func_mbrtowc_retval=no
11581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11582 conftest.$ac_objext conftest.beam conftest.$ac_ext
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11589 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11595 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11596 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11601 # Guess no on Solaris 8 and 9.
11602 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11603 # Guess yes otherwise.
11604 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11606 if test $LOCALE_ZH_CN != none; then
11607 if test "$cross_compiling" = yes; then :
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11613 #include <locale.h>
11614 #include <string.h>
11615 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11617 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11618 included before <wchar.h>. */
11619 #include <stddef.h>
11625 /* This fails on Solaris 8 and 9. */
11626 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11631 memset (&state, '\0', sizeof (mbstate_t));
11632 if (mbrtowc (&wc, "", 1, &state) != 0)
11638 if ac_fn_c_try_run "$LINENO"; then :
11639 gl_cv_func_mbrtowc_nul_retval=yes
11641 gl_cv_func_mbrtowc_nul_retval=no
11643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11644 conftest.$ac_objext conftest.beam conftest.$ac_ext
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11651 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11653 case "$gl_cv_func_mbrtowc_null_arg1" in
11656 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11661 case "$gl_cv_func_mbrtowc_null_arg2" in
11664 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11669 case "$gl_cv_func_mbrtowc_retval" in
11672 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
11677 case "$gl_cv_func_mbrtowc_nul_retval" in
11680 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
11688 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
11697 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
11714 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
11729 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11734 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11735 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11740 # Guess no on AIX and OSF/1.
11741 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11742 # Guess yes otherwise.
11743 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11745 if test $LOCALE_JA != none; then
11746 if test "$cross_compiling" = yes; then :
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11752 #include <locale.h>
11753 #include <string.h>
11754 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11756 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11757 included before <wchar.h>. */
11758 #include <stddef.h>
11764 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11766 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11770 memset (&state, '\0', sizeof (mbstate_t));
11771 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11772 if (mbsinit (&state))
11778 if ac_fn_c_try_run "$LINENO"; then :
11779 gl_cv_func_mbrtowc_incomplete_state=yes
11781 gl_cv_func_mbrtowc_incomplete_state=no
11783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11784 conftest.$ac_objext conftest.beam conftest.$ac_ext
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11791 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11797 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11798 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11803 # Guess no on Solaris 8.
11804 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11805 # Guess yes otherwise.
11806 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11808 if test $LOCALE_ZH_CN != none; then
11809 if test "$cross_compiling" = yes; then :
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11815 #include <locale.h>
11816 #include <stdlib.h>
11817 #include <string.h>
11818 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11820 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11821 included before <wchar.h>. */
11822 #include <stddef.h>
11828 /* This fails on Solaris 8:
11829 mbrtowc returns 2, and sets wc to 0x00F0.
11830 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11831 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11833 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11837 memset (&state, '\0', sizeof (mbstate_t));
11838 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11839 && mbtowc (&wc, input + 3, 6) == 4)
11845 if ac_fn_c_try_run "$LINENO"; then :
11846 gl_cv_func_mbrtowc_sanitycheck=yes
11848 gl_cv_func_mbrtowc_sanitycheck=no
11850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11851 conftest.$ac_objext conftest.beam conftest.$ac_ext
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11858 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11860 REPLACE_MBSTATE_T=0
11861 case "$gl_cv_func_mbrtowc_incomplete_state" in
11863 *) REPLACE_MBSTATE_T=1 ;;
11865 case "$gl_cv_func_mbrtowc_sanitycheck" in
11867 *) REPLACE_MBSTATE_T=1 ;;
11870 REPLACE_MBSTATE_T=1
11875 if test $ac_cv_func_mbsinit = no; then
11877 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
11878 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11880 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11881 included before <wchar.h>. */
11882 #include <stddef.h>
11888 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_DECL_MBSINIT $ac_have_decl
11898 if test $ac_cv_have_decl_mbsinit = yes; then
11902 if test $REPLACE_MBSTATE_T = 1; then
11906 mingw*) REPLACE_MBSINIT=1 ;;
11911 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
11920 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
11937 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
11951 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11956 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11957 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11962 # Guess no on AIX and OSF/1.
11963 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11964 # Guess yes otherwise.
11965 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11967 if test $LOCALE_JA != none; then
11968 if test "$cross_compiling" = yes; then :
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11974 #include <locale.h>
11975 #include <string.h>
11976 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11978 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11979 included before <wchar.h>. */
11980 #include <stddef.h>
11986 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11988 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11992 memset (&state, '\0', sizeof (mbstate_t));
11993 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11994 if (mbsinit (&state))
12000 if ac_fn_c_try_run "$LINENO"; then :
12001 gl_cv_func_mbrtowc_incomplete_state=yes
12003 gl_cv_func_mbrtowc_incomplete_state=no
12005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12006 conftest.$ac_objext conftest.beam conftest.$ac_ext
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12013 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12019 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12020 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12025 # Guess no on Solaris 8.
12026 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12027 # Guess yes otherwise.
12028 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12030 if test $LOCALE_ZH_CN != none; then
12031 if test "$cross_compiling" = yes; then :
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 #include <locale.h>
12038 #include <stdlib.h>
12039 #include <string.h>
12040 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12042 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12043 included before <wchar.h>. */
12044 #include <stddef.h>
12050 /* This fails on Solaris 8:
12051 mbrtowc returns 2, and sets wc to 0x00F0.
12052 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12053 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12055 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12059 memset (&state, '\0', sizeof (mbstate_t));
12060 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12061 && mbtowc (&wc, input + 3, 6) == 4)
12067 if ac_fn_c_try_run "$LINENO"; then :
12068 gl_cv_func_mbrtowc_sanitycheck=yes
12070 gl_cv_func_mbrtowc_sanitycheck=no
12072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12073 conftest.$ac_objext conftest.beam conftest.$ac_ext
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12080 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12082 REPLACE_MBSTATE_T=0
12083 case "$gl_cv_func_mbrtowc_incomplete_state" in
12085 *) REPLACE_MBSTATE_T=1 ;;
12087 case "$gl_cv_func_mbrtowc_sanitycheck" in
12089 *) REPLACE_MBSTATE_T=1 ;;
12092 REPLACE_MBSTATE_T=1
12097 if test $ac_cv_func_mbsrtowcs = no; then
12099 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12100 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12102 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12103 included before <wchar.h>. */
12104 #include <stddef.h>
12110 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12116 cat >>confdefs.h <<_ACEOF
12117 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12120 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12121 REPLACE_MBSRTOWCS=1
12124 if test $REPLACE_MBSTATE_T = 1; then
12125 REPLACE_MBSRTOWCS=1
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12134 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12135 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12140 # Guess no on HP-UX, Solaris, mingw.
12141 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12142 # Guess yes otherwise.
12143 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12145 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12146 if test "$cross_compiling" = yes; then :
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 #include <locale.h>
12153 #include <string.h>
12154 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12156 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12157 included before <wchar.h>. */
12158 #include <stddef.h>
12165 /* Test whether the function supports a NULL destination argument.
12166 This fails on native Windows. */
12167 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12169 const char input[] = "\337er";
12170 const char *src = input;
12173 memset (&state, '\0', sizeof (mbstate_t));
12174 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12178 /* Test whether the function works when started with a conversion state
12179 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12180 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12182 const char input[] = "B\303\274\303\237er";
12185 memset (&state, '\0', sizeof (mbstate_t));
12186 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12187 if (!mbsinit (&state))
12189 const char *src = input + 2;
12190 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12194 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12196 const char input[] = "<\306\374\313\334\270\354>";
12199 memset (&state, '\0', sizeof (mbstate_t));
12200 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12201 if (!mbsinit (&state))
12203 const char *src = input + 4;
12204 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12208 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12210 const char input[] = "B\250\271\201\060\211\070er";
12213 memset (&state, '\0', sizeof (mbstate_t));
12214 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12215 if (!mbsinit (&state))
12217 const char *src = input + 2;
12218 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12225 if ac_fn_c_try_run "$LINENO"; then :
12226 gl_cv_func_mbsrtowcs_works=yes
12228 gl_cv_func_mbsrtowcs_works=no
12230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12231 conftest.$ac_objext conftest.beam conftest.$ac_ext
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12238 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12240 case "$gl_cv_func_mbsrtowcs_works" in
12242 *) REPLACE_MBSRTOWCS=1 ;;
12247 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
12256 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12266 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12283 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
12288 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12297 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12300 for ac_header in bp-sym.h
12302 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12303 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12304 cat >>confdefs.h <<_ACEOF
12305 #define HAVE_BP_SYM_H 1
12325 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12331 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12333 $as_echo_n "checking whether memmem works in linear time... " >&6; }
12334 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12337 if test "$cross_compiling" = yes; then :
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 #include <features.h>
12342 #ifdef __GNU_LIBRARY__
12343 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12344 && !defined __UCLIBC__
12349 #include <cygwin/version.h>
12350 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12357 $EGREP "Lucky user" >/dev/null 2>&1; then :
12358 gl_cv_func_memmem_works_fast="guessing yes"
12360 gl_cv_func_memmem_works_fast="guessing no"
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 #include <signal.h> /* for signal */
12370 #include <string.h> /* for memmem */
12371 #include <stdlib.h> /* for malloc */
12372 #include <unistd.h> /* for alarm */
12373 static void quit (int sig) { exit (sig + 128); }
12380 size_t m = 1000000;
12381 char *haystack = (char *) malloc (2 * m + 1);
12382 char *needle = (char *) malloc (m + 1);
12383 /* Failure to compile this test due to missing alarm is okay,
12384 since all such platforms (mingw) also lack memmem. */
12385 signal (SIGALRM, quit);
12387 /* Check for quadratic performance. */
12388 if (haystack && needle)
12390 memset (haystack, 'A', 2 * m);
12391 haystack[2 * m] = 'B';
12392 memset (needle, 'A', m);
12394 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12403 if ac_fn_c_try_run "$LINENO"; then :
12404 gl_cv_func_memmem_works_fast=yes
12406 gl_cv_func_memmem_works_fast=no
12408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12409 conftest.$ac_objext conftest.beam conftest.$ac_ext
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12415 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
12416 case "$gl_cv_func_memmem_works_fast" in
12424 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12433 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12440 for ac_func in memmem
12442 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12443 if test "x$ac_cv_func_memmem" = x""yes; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_MEMMEM 1
12451 if test $ac_cv_func_memmem = yes; then
12457 if test $ac_cv_have_decl_memmem = no; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12461 $as_echo_n "checking whether memmem works... " >&6; }
12462 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12465 if test "$cross_compiling" = yes; then :
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 #ifdef __GNU_LIBRARY__
12470 #include <features.h>
12471 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12472 || __GLIBC_MINOR__ > 12)) \
12473 || (__GLIBC__ > 2)) \
12474 || defined __UCLIBC__
12477 #elif defined __CYGWIN__
12478 #include <cygwin/version.h>
12479 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12488 $EGREP "Lucky user" >/dev/null 2>&1; then :
12489 gl_cv_func_memmem_works_always="guessing yes"
12491 gl_cv_func_memmem_works_always="guessing no"
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12500 #include <string.h> /* for memmem */
12501 #define P "_EF_BF_BD"
12502 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12503 #define NEEDLE P P P P P
12510 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12512 /* Check for empty needle behavior. */
12514 const char *haystack = "AAA";
12515 if (memmem (haystack, 3, NULL, 0) != haystack)
12524 if ac_fn_c_try_run "$LINENO"; then :
12525 gl_cv_func_memmem_works_always=yes
12527 gl_cv_func_memmem_works_always=no
12529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12530 conftest.$ac_objext conftest.beam conftest.$ac_ext
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12536 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12537 case "$gl_cv_func_memmem_works_always" in
12546 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12555 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12569 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12577 # Define two additional variables used in the Makefile substitution.
12579 if test "$ac_cv_header_stdbool_h" = yes; then
12582 STDBOOL_H='stdbool.h'
12585 if test -n "$STDBOOL_H"; then
12586 GL_GENERATE_STDBOOL_H_TRUE=
12587 GL_GENERATE_STDBOOL_H_FALSE='#'
12589 GL_GENERATE_STDBOOL_H_TRUE='#'
12590 GL_GENERATE_STDBOOL_H_FALSE=
12594 if test "$ac_cv_type__Bool" = yes; then
12605 if test $gt_cv_c_wchar_t = no; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12610 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12611 if test "${gl_cv_decl_null_works+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 #include <stddef.h>
12617 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12627 if ac_fn_c_try_compile "$LINENO"; then :
12628 gl_cv_decl_null_works=yes
12630 gl_cv_decl_null_works=no
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12635 $as_echo "$gl_cv_decl_null_works" >&6; }
12636 if test $gl_cv_decl_null_works = no; then
12641 if test -n "$STDDEF_H"; then
12642 GL_GENERATE_STDDEF_H_TRUE=
12643 GL_GENERATE_STDDEF_H_FALSE='#'
12645 GL_GENERATE_STDDEF_H_TRUE='#'
12646 GL_GENERATE_STDDEF_H_FALSE=
12649 if test -n "$STDDEF_H"; then
12658 if test $gl_cv_have_include_next = yes; then
12659 gl_cv_next_stddef_h='<'stddef.h'>'
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
12662 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
12663 if test "${gl_cv_next_stddef_h+set}" = set; then :
12664 $as_echo_n "(cached) " >&6
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #include <stddef.h>
12673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12674 *) gl_absname_cpp="$ac_cpp" ;;
12679 gl_dirsep_regex='[/\\]'
12682 gl_dirsep_regex='\/'
12685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12687 gl_header_literal_regex=`echo 'stddef.h' \
12688 |
sed -e "$gl_make_literal_regex_sed"`
12689 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12690 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12695 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12696 sed -n "$gl_absolute_header_sed"`'"'
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
12701 $as_echo "$gl_cv_next_stddef_h" >&6; }
12703 NEXT_STDDEF_H=$gl_cv_next_stddef_h
12705 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12707 gl_next_as_first_directive='<'stddef.h'>'
12709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12710 gl_next_as_first_directive=$gl_cv_next_stddef_h
12712 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
12735 if test $gl_cv_have_include_next = yes; then
12736 gl_cv_next_wchar_h='<'wchar.h'>'
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
12739 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
12740 if test "${gl_cv_next_wchar_h+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12744 if test $ac_cv_header_wchar_h = yes; then
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12753 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12754 *) gl_absname_cpp="$ac_cpp" ;;
12759 gl_dirsep_regex='[/\\]'
12762 gl_dirsep_regex='\/'
12765 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12767 gl_header_literal_regex=`echo 'wchar.h' \
12768 |
sed -e "$gl_make_literal_regex_sed"`
12769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12775 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12776 sed -n "$gl_absolute_header_sed"`'"'
12778 gl_cv_next_wchar_h='<'wchar.h'>'
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
12784 $as_echo "$gl_cv_next_wchar_h" >&6; }
12786 NEXT_WCHAR_H=$gl_cv_next_wchar_h
12788 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12790 gl_next_as_first_directive='<'wchar.h'>'
12792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12793 gl_next_as_first_directive=$gl_cv_next_wchar_h
12795 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
12800 if test $ac_cv_header_wchar_h = yes; then
12810 if test $gt_cv_c_wint_t = yes; then
12818 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
12819 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12821 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12822 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12823 $as_echo_n "(cached) " >&6
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12828 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12830 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12831 included before <wchar.h>. */
12832 #if !(defined __GLIBC__ && !defined __UCLIBC__)
12833 # include <stddef.h>
12834 # include <stdio.h>
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849 eval "$as_gl_Symbol=yes"
12851 eval "$as_gl_Symbol=no"
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 eval ac_res=\$$as_gl_Symbol
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12857 $as_echo "$ac_res" >&6; }
12858 eval as_val=\$$as_gl_Symbol
12859 if test "x$as_val" = x""yes; then :
12860 cat >>confdefs.h <<_ACEOF
12861 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
12864 eval ac_cv_have_decl_$gl_func=yes
12874 if test $ac_cv_func_iswcntrl = yes; then
12882 if test $gt_cv_c_wint_t = yes; then
12898 if test $gl_cv_have_include_next = yes; then
12899 gl_cv_next_wctype_h='<'wctype.h'>'
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
12902 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
12903 if test "${gl_cv_next_wctype_h+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12907 if test $ac_cv_header_wctype_h = yes; then
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <wctype.h>
12916 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12917 *) gl_absname_cpp="$ac_cpp" ;;
12922 gl_dirsep_regex='[/\\]'
12925 gl_dirsep_regex='\/'
12928 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12930 gl_header_literal_regex=`echo 'wctype.h' \
12931 |
sed -e "$gl_make_literal_regex_sed"`
12932 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12933 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12938 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12939 sed -n "$gl_absolute_header_sed"`'"'
12941 gl_cv_next_wctype_h='<'wctype.h'>'
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
12947 $as_echo "$gl_cv_next_wctype_h" >&6; }
12949 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
12951 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12953 gl_next_as_first_directive='<'wctype.h'>'
12955 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12956 gl_next_as_first_directive=$gl_cv_next_wctype_h
12958 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
12963 if test $ac_cv_header_wctype_h = yes; then
12964 if test $ac_cv_func_iswcntrl = yes; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
12966 $as_echo_n "checking whether iswcntrl works... " >&6; }
12967 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
12971 if test "$cross_compiling" = yes; then :
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 #include <stdlib.h>
12975 #if __GNU_LIBRARY__ == 1
12976 Linux libc5 i18n is broken.
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 gl_cv_func_iswcntrl_works="guessing yes"
12989 gl_cv_func_iswcntrl_works="guessing no"
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
12998 included before <wchar.h>.
12999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13000 must be included before <wchar.h>. */
13001 #include <stddef.h>
13005 #include <wctype.h>
13006 int main () { return iswprint ('x') == 0; }
13009 if ac_fn_c_try_run "$LINENO"; then :
13010 gl_cv_func_iswcntrl_works=yes
13012 gl_cv_func_iswcntrl_works=no
13014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13015 conftest.$ac_objext conftest.beam conftest.$ac_ext
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13021 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13029 case "$gl_cv_func_iswcntrl_works" in
13030 *yes) REPLACE_ISWCNTRL=0 ;;
13031 *) REPLACE_ISWCNTRL=1 ;;
13035 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13039 if test $REPLACE_ISWCNTRL = 1; then
13042 for ac_func in towlower
13044 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13045 if test "x$ac_cv_func_towlower" = x""yes; then :
13046 cat >>confdefs.h <<_ACEOF
13047 #define HAVE_TOWLOWER 1
13053 if test $ac_cv_func_towlower = yes; then
13056 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13057 included before <wchar.h>.
13058 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13059 must be included before <wchar.h>. */
13060 #include <stddef.h>
13065 # include <wctype.h>
13069 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_DECL_TOWLOWER $ac_have_decl
13079 if test $ac_cv_have_decl_towlower = yes; then
13088 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13093 $as_echo_n "checking for wctype_t... " >&6; }
13094 if test "${gl_cv_type_wctype_t+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13100 included before <wchar.h>.
13101 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13102 must be included before <wchar.h>. */
13103 #include <stddef.h>
13108 # include <wctype.h>
13120 if ac_fn_c_try_compile "$LINENO"; then :
13121 gl_cv_type_wctype_t=yes
13123 gl_cv_type_wctype_t=no
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13129 $as_echo "$gl_cv_type_wctype_t" >&6; }
13130 if test $gl_cv_type_wctype_t = no; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13135 $as_echo_n "checking for wctrans_t... " >&6; }
13136 if test "${gl_cv_type_wctrans_t+set}" = set; then :
13137 $as_echo_n "(cached) " >&6
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13142 included before <wchar.h>.
13143 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13144 must be included before <wchar.h>. */
13145 #include <stddef.h>
13149 #include <wctype.h>
13160 if ac_fn_c_try_compile "$LINENO"; then :
13161 gl_cv_type_wctrans_t=yes
13163 gl_cv_type_wctrans_t=no
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13169 $as_echo "$gl_cv_type_wctrans_t" >&6; }
13170 if test $gl_cv_type_wctrans_t = no; then
13175 for gl_func in wctype iswctype wctrans towctrans ; do
13176 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13178 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13179 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13180 $as_echo_n "(cached) " >&6
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13185 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13187 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13188 included before <wchar.h>. */
13189 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13190 # include <stddef.h>
13191 # include <stdio.h>
13193 # include <wchar.h>
13195 #include <wctype.h>
13206 if ac_fn_c_try_compile "$LINENO"; then :
13207 eval "$as_gl_Symbol=yes"
13209 eval "$as_gl_Symbol=no"
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 eval ac_res=\$$as_gl_Symbol
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13215 $as_echo "$ac_res" >&6; }
13216 eval as_val=\$$as_gl_Symbol
13217 if test "x$as_val" = x""yes; then :
13218 cat >>confdefs.h <<_ACEOF
13219 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
13222 eval ac_cv_have_decl_$gl_func=yes
13227 # End of code from modules
13248 gl_source_base='tests'
13249 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
13251 gl_module_indicator_condition=$gltests_WITNESS
13261 LIBGNU_LIBDEPS="$gl_libdeps"
13263 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13267 # We don't use automake, but gnulib does. This line lets us generate
13269 am__api_version='1.11'
13271 # Find a good install program. We prefer a C program (faster),
13272 # so one script is as good as another. But avoid the broken or
13273 # incompatible versions:
13274 # SysV /etc/install, /usr/sbin/install
13275 # SunOS /usr/etc/install
13276 # IRIX /sbin/install
13278 # AmigaOS /C/install, which installs bootblocks on floppy discs
13279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13282 # OS/2's system install, which has a completely different semantic
13283 # ./install, which can be erroneously created by make from ./install.sh.
13284 # Reject install programs that cannot install multiple files.
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13287 if test -z "$INSTALL"; then
13288 if test "${ac_cv_path_install+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13295 test -z "$as_dir" && as_dir=.
13296 # Account for people who put trailing slashes in PATH elements.
13297 case $as_dir/ in #((
13298 ./ | .// | /[cC]/* | \
13299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13300 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13303 # OSF1 and SCO ODT 3.0 have their own names for install.
13304 # Don't use installbsd from OSF since it installs stuff as root
13306 for ac_prog in ginstall scoinst install; do
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13309 if test $ac_prog = install &&
13310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13311 # AIX install. It has an incompatible calling convention.
13313 elif test $ac_prog = install &&
13314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13315 # program-specific install script used by HP pwplus--don't use.
13318 rm -rf conftest.one conftest.two conftest.dir
13319 echo one > conftest.one
13320 echo two > conftest.two
13322 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13323 test -s conftest.one && test -s conftest.two &&
13324 test -s conftest.dir/conftest.one &&
13325 test -s conftest.dir/conftest.two
13327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13340 rm -rf conftest.one conftest.two conftest.dir
13343 if test "${ac_cv_path_install+set}" = set; then
13344 INSTALL=$ac_cv_path_install
13346 # As a last resort, use the slow shell script. Don't cache a
13347 # value for INSTALL within a source directory, because that will
13348 # break other packages using the cache if that directory is
13349 # removed, or if the value is a relative name.
13350 INSTALL=$ac_install_sh
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13354 $as_echo "$INSTALL" >&6; }
13356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13357 # It thinks the first close brace ends the variable substitution.
13358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13365 $as_echo_n "checking whether build environment is sane... " >&6; }
13368 echo timestamp > conftest.file
13369 # Reject unsafe characters in $srcdir or the absolute working directory
13370 # name. Accept space and tab only in the latter.
13374 *[\\\"\#\$\&\'\`$am_lf]*)
13375 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
13378 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
13379 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13382 # Do `set' in a subshell so we don't clobber the current shell's
13383 # arguments. Must try -L first in case configure is actually a
13384 # symlink; some systems play weird games with the mod time of symlinks
13385 # (eg FreeBSD returns the mod time of the symlink's containing
13388 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13389 if test "$*" = "X"; then
13391 set X
`ls -t "$srcdir/configure" conftest.file`
13393 rm -f conftest.
file
13394 if test "$*" != "X $srcdir/configure conftest.file" \
13395 && test "$*" != "X conftest.file $srcdir/configure"; then
13397 # If neither matched, then we have a broken ls. This can happen
13398 # if, for instance, CONFIG_SHELL is bash and it inherits a
13399 # broken ls alias from the environment. This has actually
13400 # happened. Such a system could not be considered "sane".
13401 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
13402 alias in your environment" "$LINENO" 5
13405 test "$2" = conftest.
file
13411 as_fn_error
"newly created file is older than distributed files!
13412 Check your system clock" "$LINENO" 5
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13415 $as_echo "yes" >&6; }
13416 test "$program_prefix" != NONE
&&
13417 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
13418 # Use a double $ so make ignores it.
13419 test "$program_suffix" != NONE
&&
13420 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
13421 # Double any \ or $.
13422 # By default was `s,x,x', remove it if useless.
13423 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
13424 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
13426 # expand $ac_aux_dir to an absolute path
13427 am_aux_dir
=`cd $ac_aux_dir && pwd`
13429 if test x
"${MISSING+set}" != xset
; then
13430 case $am_aux_dir in
13432 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
13434 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
13437 # Use eval to expand $SHELL
13438 if eval "$MISSING --run true"; then
13439 am_missing_run
="$MISSING --run "
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13443 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13446 if test x
"${install_sh}" != xset
; then
13447 case $am_aux_dir in
13449 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
13451 install_sh
="\${SHELL} $am_aux_dir/install-sh"
13455 # Installed binaries are usually stripped using `strip' when the user
13456 # run `make install-strip'. However `strip' might not be the right
13457 # tool to use in cross-compilation environments, therefore Automake
13458 # will honor the `STRIP' environment variable to overrule this program.
13459 if test "$cross_compiling" != no
; then
13460 if test -n "$ac_tool_prefix"; then
13461 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13462 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464 $as_echo_n "checking for $ac_word... " >&6; }
13465 if test "${ac_cv_prog_STRIP+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
13468 if test -n "$STRIP"; then
13469 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
13471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13472 for as_dir
in $PATH
13475 test -z "$as_dir" && as_dir
=.
13476 for ac_exec_ext
in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488 STRIP
=$ac_cv_prog_STRIP
13489 if test -n "$STRIP"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13491 $as_echo "$STRIP" >&6; }
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13499 if test -z "$ac_cv_prog_STRIP"; then
13501 # Extract the first word of "strip", so it can be a program name with args.
13502 set dummy strip
; ac_word
=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13508 if test -n "$ac_ct_STRIP"; then
13509 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
13511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13512 for as_dir
in $PATH
13515 test -z "$as_dir" && as_dir
=.
13516 for ac_exec_ext
in '' $ac_executable_extensions; do
13517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13518 ac_cv_prog_ac_ct_STRIP
="strip"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13528 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
13529 if test -n "$ac_ct_STRIP"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13531 $as_echo "$ac_ct_STRIP" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13537 if test "x$ac_ct_STRIP" = x
; then
13540 case $cross_compiling:$ac_tool_warned in
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13544 ac_tool_warned
=yes ;;
13549 STRIP
="$ac_cv_prog_STRIP"
13553 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13556 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13557 if test -z "$MKDIR_P"; then
13558 if test "${ac_cv_path_mkdir+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13562 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
13565 test -z "$as_dir" && as_dir
=.
13566 for ac_prog
in mkdir gmkdir
; do
13567 for ac_exec_ext
in '' $ac_executable_extensions; do
13568 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
13569 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13570 'mkdir (GNU coreutils) '* | \
13571 'mkdir (coreutils) '* | \
13572 'mkdir (fileutils) '4.1*)
13573 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
13583 if test "${ac_cv_path_mkdir+set}" = set; then
13584 MKDIR_P
="$ac_cv_path_mkdir -p"
13586 # As a last resort, use the slow shell script. Don't cache a
13587 # value for MKDIR_P within a source directory, because that will
13588 # break other packages using the cache if that directory is
13589 # removed, or if the value is a relative name.
13590 test -d .
/--version && rmdir .
/--version
13591 MKDIR_P
="$ac_install_sh -d"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13595 $as_echo "$MKDIR_P" >&6; }
13600 [\\/$
]* | ?
:[\\/]*) ;;
13601 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
13604 for ac_prog
in gawk mawk nawk
awk
13606 # Extract the first word of "$ac_prog", so it can be a program name with args.
13607 set dummy
$ac_prog; ac_word
=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609 $as_echo_n "checking for $ac_word... " >&6; }
13610 if test "${ac_cv_prog_AWK+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13613 if test -n "$AWK"; then
13614 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
13616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13617 for as_dir
in $PATH
13620 test -z "$as_dir" && as_dir
=.
13621 for ac_exec_ext
in '' $ac_executable_extensions; do
13622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13623 ac_cv_prog_AWK
="$ac_prog"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 AWK
=$ac_cv_prog_AWK
13634 if test -n "$AWK"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13636 $as_echo "$AWK" >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639 $as_echo "no" >&6; }
13643 test -n "$AWK" && break
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13647 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13649 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13650 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
13651 $as_echo_n "(cached) " >&6
13653 cat >conftest.
make <<\_ACEOF
13656 @
echo '@@@%%%=$(MAKE)=@@@%%%'
13658 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13659 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13660 *@@@
%%%=?
*=@@@
%%%*)
13661 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
13663 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
13665 rm -f conftest.
make
13667 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13669 $as_echo "yes" >&6; }
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673 $as_echo "no" >&6; }
13674 SET_MAKE
="MAKE=${MAKE-make}"
13677 rm -rf .tst
2>/dev
/null
13678 mkdir .tst
2>/dev
/null
13679 if test -d .tst
; then
13684 rmdir .tst
2>/dev
/null
13686 DEPDIR
="${am__leading_dot}deps"
13688 ac_config_commands
="$ac_config_commands depfiles"
13691 am_make
=${MAKE-make}
13692 cat > confinc
<< 'END'
13694 @
echo this is the am__doit target
13697 # If we don't find an include directive, just comment out the code.
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13699 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13703 # First try GNU make style include.
13704 echo "include confinc" > confmf
13705 # Ignore all kinds of additional output from `make'.
13706 case `$am_make -s -f confmf 2> /dev/null` in #(
13707 *the\ am__doit\ target
*)
13708 am__include
=include
13713 # Now try BSD make style include.
13714 if test "$am__include" = "#"; then
13715 echo '.include "confinc"' > confmf
13716 case `$am_make -s -f confmf 2> /dev/null` in #(
13717 *the\ am__doit\ target
*)
13718 am__include
=.include
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13727 $as_echo "$_am_result" >&6; }
13728 rm -f confinc confmf
13730 # Check whether --enable-dependency-tracking was given.
13731 if test "${enable_dependency_tracking+set}" = set; then :
13732 enableval
=$enable_dependency_tracking;
13735 if test "x$enable_dependency_tracking" != xno
; then
13736 am_depcomp
="$ac_aux_dir/depcomp"
13739 if test "x$enable_dependency_tracking" != xno; then
13748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13750 # is not polluted with repeated "-I."
13751 am__isrc
=' -I$(srcdir)'
13752 # test to see if srcdir already configured
13753 if test -f $srcdir/config.status
; then
13754 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13758 # test whether we have cygpath
13759 if test -z "$CYGPATH_W"; then
13760 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
13761 CYGPATH_W
='cygpath -w'
13768 # Define the identity of the package.
13770 VERSION
=UNUSED-VERSION
13773 # Some tools Automake needs.
13775 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13778 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
13781 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13784 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
13787 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
13789 # We need awk for the "check" target. The system "awk" is bad on
13791 # Always define AMTAR for backward compatibility.
13793 AMTAR
=${AMTAR-"${am_missing_run}tar"}
13795 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
13800 depcc
="$CC" am_compiler_list
=
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13803 $as_echo_n "checking dependency style of $depcc... " >&6; }
13804 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13808 # We make a subdir and do the tests there. Otherwise we can end up
13809 # making bogus files that we don't know about and never remove. For
13810 # instance it was reported that on HP-UX the gcc test will end up
13811 # making a dummy file named `D' -- because `-MD' means `put the output
13814 # Copy depcomp to subdir because otherwise we won't find it if we're
13815 # using a relative directory.
13816 cp "$am_depcomp" conftest.dir
13818 # We will build objects and dependencies in a subdirectory because
13819 # it helps to detect inapplicable dependency modes. For instance
13820 # both Tru64's cc and ICC support -MD to output dependencies as a
13821 # side effect of compilation, but ICC will put the dependencies in
13822 # the current directory while Tru64 will put them in the object
13826 am_cv_CC_dependencies_compiler_type
=none
13827 if test "$am_compiler_list" = ""; then
13828 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13830 am__universal
=false
13831 case " $depcc " in #(
13832 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
13835 for depmode
in $am_compiler_list; do
13836 # Setup a source with many dependencies, because some compilers
13837 # like to wrap large dependency lists on column 80 (with \), and
13838 # we should not choose a depcomp mode which is confused by this.
13840 # We need to recreate these files for each test, as the compiler may
13841 # overwrite some of them when testing with obscure command lines.
13842 # This happens at least with the AIX C compiler.
13844 for i
in 1 2 3 4 5 6; do
13845 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
13846 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13847 # Solaris 8's {/usr,}/bin/sh.
13848 touch sub
/conftst
$i.h
13850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13852 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13853 # mode. It turns out that the SunPro C++ compiler does not properly
13854 # handle `-M -o', and we need to detect this. Also, some Intel
13855 # versions had trouble with output in subdirs
13856 am__obj
=sub
/conftest.
${OBJEXT-o}
13857 am__minus_obj
="-o $am__obj"
13860 # This depmode causes a compiler race in universal mode.
13861 test "$am__universal" = false ||
continue
13864 # after this tag, mechanisms are not by side-effect, so they'll
13865 # only be used when explicitly requested
13866 if test "x$enable_dependency_tracking" = xyes
; then
13872 msvisualcpp | msvcmsys
)
13873 # This compiler won't grok `-c -o', but also, the minuso test has
13874 # not run yet. These depmodes are late enough in the game, and
13875 # so weak that their functioning should not be impacted.
13876 am__obj
=conftest.
${OBJEXT-o}
13881 if depmode
=$depmode \
13882 source=sub
/conftest.c object
=$am__obj \
13883 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
13884 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
13885 >/dev
/null
2>conftest.err
&&
13886 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
13887 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
13888 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
13889 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
13890 # icc doesn't choke on unknown options, it will just issue warnings
13891 # or remarks (even with -Werror). So we grep stderr for any message
13892 # that says an option was ignored or not supported.
13893 # When given -MP, icc 7.0 and 7.1 complain thusly:
13894 # icc: Command line warning: ignoring option '-M'; no argument required
13895 # The diagnosis changed in icc 8.0:
13896 # icc: Command line remark: option '-MP' not supported
13897 if (grep 'ignoring option' conftest.err ||
13898 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
13899 am_cv_CC_dependencies_compiler_type
=$depmode
13906 rm -rf conftest.dir
13908 am_cv_CC_dependencies_compiler_type
=none
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13913 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13914 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
13917 test "x$enable_dependency_tracking" != xno \
13918 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
13919 am__fastdepCC_TRUE
=
13920 am__fastdepCC_FALSE
='#'
13922 am__fastdepCC_TRUE
='#'
13923 am__fastdepCC_FALSE
=
13929 # --------------------- #
13930 # Checks for programs. #
13931 # --------------------- #
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13935 $as_echo_n "checking whether ln -s works... " >&6; }
13937 if test "$LN_S" = "ln -s"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13939 $as_echo "yes" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13942 $as_echo "no, using $LN_S" >&6; }
13945 if test -n "$ac_tool_prefix"; then
13946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13947 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13953 if test -n "$RANLIB"; then
13954 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
13956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13957 for as_dir
in $PATH
13960 test -z "$as_dir" && as_dir
=.
13961 for ac_exec_ext
in '' $ac_executable_extensions; do
13962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13963 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13973 RANLIB
=$ac_cv_prog_RANLIB
13974 if test -n "$RANLIB"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13976 $as_echo "$RANLIB" >&6; }
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13984 if test -z "$ac_cv_prog_RANLIB"; then
13985 ac_ct_RANLIB
=$RANLIB
13986 # Extract the first word of "ranlib", so it can be a program name with args.
13987 set dummy ranlib
; ac_word
=$2
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13989 $as_echo_n "checking for $ac_word... " >&6; }
13990 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13991 $as_echo_n "(cached) " >&6
13993 if test -n "$ac_ct_RANLIB"; then
13994 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
13996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13997 for as_dir
in $PATH
14000 test -z "$as_dir" && as_dir
=.
14001 for ac_exec_ext
in '' $ac_executable_extensions; do
14002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14003 ac_cv_prog_ac_ct_RANLIB
="ranlib"
14004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14013 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
14014 if test -n "$ac_ct_RANLIB"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14016 $as_echo "$ac_ct_RANLIB" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14022 if test "x$ac_ct_RANLIB" = x
; then
14025 case $cross_compiling:$ac_tool_warned in
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14029 ac_tool_warned
=yes ;;
14031 RANLIB
=$ac_ct_RANLIB
14034 RANLIB
="$ac_cv_prog_RANLIB"
14038 if test -n "$ac_tool_prefix"; then
14039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14040 set dummy
${ac_tool_prefix}ar; ac_word
=$2
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042 $as_echo_n "checking for $ac_word... " >&6; }
14043 if test "${ac_cv_prog_AR+set}" = set; then :
14044 $as_echo_n "(cached) " >&6
14046 if test -n "$AR"; then
14047 ac_cv_prog_AR
="$AR" # Let the user override the test.
14049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14050 for as_dir
in $PATH
14053 test -z "$as_dir" && as_dir
=.
14054 for ac_exec_ext
in '' $ac_executable_extensions; do
14055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14056 ac_cv_prog_AR
="${ac_tool_prefix}ar"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 if test -n "$AR"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14069 $as_echo "$AR" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14077 if test -z "$ac_cv_prog_AR"; then
14079 # Extract the first word of "ar", so it can be a program name with args.
14080 set dummy
ar; ac_word
=$2
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14082 $as_echo_n "checking for $ac_word... " >&6; }
14083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14086 if test -n "$ac_ct_AR"; then
14087 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
14089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14090 for as_dir
in $PATH
14093 test -z "$as_dir" && as_dir
=.
14094 for ac_exec_ext
in '' $ac_executable_extensions; do
14095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14096 ac_cv_prog_ac_ct_AR
="ar"
14097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14106 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
14107 if test -n "$ac_ct_AR"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14109 $as_echo "$ac_ct_AR" >&6; }
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 $as_echo "no" >&6; }
14115 if test "x$ac_ct_AR" = x
; then
14118 case $cross_compiling:$ac_tool_warned in
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14122 ac_tool_warned
=yes ;;
14127 AR
="$ac_cv_prog_AR"
14131 # ---------------------- #
14132 # Checks for libraries. #
14133 # ---------------------- #
14135 ac_config_files
="$ac_config_files Makefile import/Makefile"
14137 ac_config_commands
="$ac_config_commands default"
14139 cat >confcache
<<\_ACEOF
14140 # This file is a shell script that caches the results of configure
14141 # tests run on this system so they can be shared between configure
14142 # scripts and configure runs, see configure's option --config-cache.
14143 # It is not useful on other systems. If it contains results you don't
14144 # want to keep, you may remove or edit it.
14146 # config.status only pays attention to the cache file if you give it
14147 # the --recheck option to rerun configure.
14149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14151 # following values.
14155 # The following way of writing the cache mishandles newlines in values,
14156 # but we know of no workaround that is simple, portable, and efficient.
14157 # So, we kill variables containing newlines.
14158 # Ultrix sh set writes to stderr and can't be redirected directly,
14159 # and sets the high bit in the cache file unless we assign to the vars.
14161 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14162 eval ac_val
=\$
$ac_var
14166 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14170 _ | IFS | as_nl
) ;; #(
14171 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14172 *) { eval $ac_var=; unset $ac_var;} ;;
14178 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14179 *${as_nl}ac_space
=\
*)
14180 # `set' does not quote correctly, so add quotes: double-quote
14181 # substitution turns \\\\ into \\, and sed turns \\ into \.
14184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14187 # `set' quotes correctly as required by POSIX, so do not add quotes.
14188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14199 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14201 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14202 if test -w "$cache_file"; then
14203 test "x$cache_file" != "x/dev/null" &&
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14205 $as_echo "$as_me: updating cache $cache_file" >&6;}
14206 cat confcache
>$cache_file
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14209 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14214 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14215 # Let make expand exec_prefix.
14216 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14218 DEFS
=-DHAVE_CONFIG_H
14222 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14223 # 1. Remove the extension, and $U if already installed.
14224 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14225 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14226 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14227 # will be set to the directory where LIBOBJS objects are built.
14228 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14229 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14231 LIBOBJS
=$ac_libobjs
14233 LTLIBOBJS
=$ac_ltlibobjs
14236 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14237 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14240 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14241 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
14242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14244 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14245 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14248 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14249 as_fn_error
"conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14252 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14253 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14256 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14257 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
14258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14262 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14263 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14266 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14267 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14273 if test -n "$gl_LIBOBJS"; then
14274 # Remove the extension.
14275 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14276 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14277 gl_libobjs
="$gl_libobjs $i.$ac_objext"
14278 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
14281 gl_LIBOBJS
=$gl_libobjs
14283 gl_LTLIBOBJS
=$gl_ltlibobjs
14289 if test -n "$gltests_LIBOBJS"; then
14290 # Remove the extension.
14291 sed_drop_objext
='s/\.o$//;s/\.obj$//'
14292 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14293 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
14294 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
14297 gltests_LIBOBJS
=$gltests_libobjs
14299 gltests_LTLIBOBJS
=$gltests_ltlibobjs
14302 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14303 as_fn_error
"conditional \"AMDEP\" was never defined.
14304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14306 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14307 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14310 if test -n "$EXEEXT"; then
14312 am__EXEEXT_FALSE
='#'
14314 am__EXEEXT_TRUE
='#'
14319 : ${CONFIG_STATUS=./config.status}
14321 ac_clean_files_save
=$ac_clean_files
14322 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14324 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14326 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14328 # Generated by $as_me.
14329 # Run this file to recreate the current configuration.
14330 # Compiler output produced by configure, useful for debugging
14331 # configure, is in config.log if it exists.
14334 ac_cs_recheck=false
14337 SHELL=\${CONFIG_SHELL-$SHELL}
14340 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14341 ## -------------------- ##
14342 ## M4sh Initialization. ##
14343 ## -------------------- ##
14345 # Be more Bourne compatible
14346 DUALCASE
=1; export DUALCASE
# for MKS sh
14347 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14351 # is contrary to our usage. Disable this feature.
14352 alias -g '${1+"$@"}'='"$@"'
14353 setopt NO_GLOB_SUBST
14355 case `(set -o) 2>/dev/null` in #(
14367 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14368 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14371 # Prefer a ksh shell builtin over an external printf program on Solaris,
14372 # but without wasting forks for bash or zsh.
14373 if test -z "$BASH_VERSION$ZSH_VERSION" \
14374 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14375 as_echo='print
-r --'
14376 as_echo_n='print
-rn --'
14377 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14378 as_echo='printf %s
\n'
14379 as_echo_n='printf %s
'
14381 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14382 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14383 as_echo_n='/usr
/ucb
/echo -n'
14385 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14386 as_echo_n_body='eval
14390 expr "X$arg" : "X\\(.*\\)$as_nl";
14391 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14393 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14395 export as_echo_n_body
14396 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14398 export as_echo_body
14399 as_echo='sh
-c $as_echo_body as_echo
'
14402 # The user is always right.
14403 if test "${PATH_SEPARATOR+set}" != set; then
14405 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14406 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14413 # We need space, tab and new line, in precisely that order. Quoting is
14414 # there to prevent editors from complaining about space-tab.
14415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14416 # splitting by setting IFS to empty value.)
14419 # Find who we are. Look in the path if we contain no directory separator.
14421 *[\\/]* ) as_myself=$0 ;;
14422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14426 test -z "$as_dir" && as_dir=.
14427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14433 # We did not find ourselves, most probably we were run as `sh COMMAND'
14434 # in which case we are not to be found in the path.
14435 if test "x$as_myself" = x
; then
14438 if test ! -f "$as_myself"; then
14439 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14443 # Unset variables that we do not need and which cause bugs (e.g. in
14444 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14445 # suppresses any "Segmentation fault" message there. '((' could
14446 # trigger a bug in pdksh 5.2.14.
14447 for as_var
in BASH_ENV ENV MAIL MAILPATH
14448 do eval test x\
${$as_var+set} = xset \
14449 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14462 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14465 # as_fn_error ERROR [LINENO LOG_FD]
14466 # ---------------------------------
14467 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14468 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14469 # script with status $?, using 1 if that was 0.
14472 as_status
=$?
; test $as_status -eq 0 && as_status
=1
14474 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14475 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14477 $as_echo "$as_me: error: $1" >&2
14478 as_fn_exit
$as_status
14482 # as_fn_set_status STATUS
14483 # -----------------------
14484 # Set $? to STATUS, without forking.
14485 as_fn_set_status
()
14488 } # as_fn_set_status
14490 # as_fn_exit STATUS
14491 # -----------------
14492 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14496 as_fn_set_status
$1
14502 # Portably unset VAR.
14505 { eval $1=; unset $1;}
14507 as_unset
=as_fn_unset
14508 # as_fn_append VAR VALUE
14509 # ----------------------
14510 # Append the text in VALUE to the end of the definition contained in VAR. Take
14511 # advantage of any shell optimizations that allow amortized linear growth over
14512 # repeated appends, instead of the typical quadratic growth present in naive
14514 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14515 eval 'as_fn_append ()
14526 # as_fn_arith ARG...
14527 # ------------------
14528 # Perform arithmetic evaluation on the ARGs, and store the result in the
14529 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14530 # must be portable across $(()) and expr.
14531 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14532 eval 'as_fn_arith ()
14539 as_val
=`expr "$@" || test $? -eq 1`
14544 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14545 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14551 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14552 as_basename
=basename
14557 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14563 as_me
=`$as_basename -- "$0" ||
14564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14565 X"$0" : 'X\(//\)$' \| \
14566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14568 sed '/^.*\/\([^/][^/]*\)\/*$/{
14582 # Avoid depending upon Character Ranges.
14583 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14584 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14585 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14586 as_cr_digits
='0123456789'
14587 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14589 ECHO_C
= ECHO_N
= ECHO_T
=
14590 case `echo -n x` in #(((((
14592 case `echo 'xy\c'` in
14593 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14595 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14602 rm -f conf$$ conf$$.exe conf$$.
file
14603 if test -d conf$$.dir
; then
14604 rm -f conf$$.dir
/conf$$.
file
14607 mkdir conf$$.dir
2>/dev
/null
14609 if (echo >conf$$.
file) 2>/dev
/null
; then
14610 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14612 # ... but there are two gotchas:
14613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14615 # In both cases, we have to default to `cp -p'.
14616 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14618 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14626 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14627 rmdir conf$$.dir
2>/dev
/null
14632 # Create "$as_dir" as a directory, including parents if necessary.
14637 -*) as_dir
=.
/$as_dir;;
14639 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14643 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14644 *) as_qdir
=$as_dir;;
14646 as_dirs
="'$as_qdir' $as_dirs"
14647 as_dir
=`$as_dirname -- "$as_dir" ||
14648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14649 X"$as_dir" : 'X\(//\)[^/]' \| \
14650 X"$as_dir" : 'X\(//\)$' \| \
14651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14652 $as_echo X"$as_dir" |
14653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14657 /^X\(\/\/\)[^/].*/{
14670 test -d "$as_dir" && break
14672 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14673 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
14677 if mkdir
-p .
2>/dev
/null
; then
14678 as_mkdir_p
='mkdir -p "$as_dir"'
14680 test -d .
/-p && rmdir .
/-p
14684 if test -x / >/dev
/null
2>&1; then
14685 as_test_x
='test -x'
14687 if ls -dL / >/dev
/null
2>&1; then
14694 if test -d "$1"; then
14700 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14701 ???[sx]*):;;*)false;;esac;fi
14705 as_executable_p
=$as_test_x
14707 # Sed expression to map a string onto a valid CPP name.
14708 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14710 # Sed expression to map a string onto a valid variable name.
14711 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14715 ## ----------------------------------- ##
14716 ## Main body of $CONFIG_STATUS script. ##
14717 ## ----------------------------------- ##
14719 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14722 # Save the log message, to keep $0 and so on meaningful, and to
14723 # report actual input values of CONFIG_FILES etc. instead of their
14724 # values after options handling.
14726 This file was extended by $as_me, which was
14727 generated by GNU Autoconf 2.64. Invocation command line was
14729 CONFIG_FILES = $CONFIG_FILES
14730 CONFIG_HEADERS = $CONFIG_HEADERS
14731 CONFIG_LINKS = $CONFIG_LINKS
14732 CONFIG_COMMANDS = $CONFIG_COMMANDS
14735 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14740 case $ac_config_files in *"
14741 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14744 case $ac_config_headers in *"
14745 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14750 # Files that config.status was made for.
14751 config_files="$ac_config_files"
14752 config_headers="$ac_config_headers"
14753 config_commands="$ac_config_commands"
14757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14759 \`$as_me' instantiates files and other configuration actions
14760 from templates according to the current configuration. Unless the files
14761 and actions are specified as TAGs, all are instantiated by default.
14763 Usage: $0 [OPTION]... [TAG]...
14765 -h, --help print this help, then exit
14766 -V, --version print version number and configuration settings, then exit
14767 -q, --quiet, --silent
14768 do not print progress messages
14769 -d, --debug don't remove temporary files
14770 --recheck update $as_me by reconfiguring in the same conditions
14771 --file=FILE[:TEMPLATE]
14772 instantiate the configuration file FILE
14773 --header=FILE[:TEMPLATE]
14774 instantiate the configuration header FILE
14776 Configuration files:
14779 Configuration headers:
14782 Configuration commands:
14785 Report bugs to the package provider."
14788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14791 configured by $0, generated by GNU Autoconf 2.64,
14792 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14794 Copyright (C) 2009 Free Software Foundation, Inc.
14795 This config.status script is free software; the Free Software Foundation
14796 gives unlimited permission to copy, distribute and modify it."
14803 test -n "\$AWK" || AWK=awk
14806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14807 # The default lists apply if the user does not specify any file.
14813 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14814 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14825 # Handling of the options.
14826 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14828 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14829 $as_echo "$ac_cs_version"; exit ;;
14830 --debug |
--debu |
--deb |
--de |
--d |
-d )
14832 --file |
--fil |
--fi |
--f )
14835 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14837 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14838 ac_need_defaults
=false
;;
14839 --header |
--heade |
--head |
--hea )
14842 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14844 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14845 ac_need_defaults
=false
;;
14847 # Conflict between --help and --header
14848 as_fn_error
"ambiguous option: \`$1'
14849 Try \`$0 --help' for more information.";;
14850 --help |
--hel |
-h )
14851 $as_echo "$ac_cs_usage"; exit ;;
14852 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14853 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14856 # This is an error.
14857 -*) as_fn_error
"unrecognized option: \`$1'
14858 Try \`$0 --help' for more information." ;;
14860 *) as_fn_append ac_config_targets
" $1"
14861 ac_need_defaults
=false
;;
14867 ac_configure_extra_args
=
14869 if $ac_cs_silent; then
14871 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14876 if \$ac_cs_recheck; then
14877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14880 CONFIG_SHELL='$SHELL'
14881 export CONFIG_SHELL
14886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14891 ## Running $as_me. ##
14897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14907 # Handling of arguments.
14908 for ac_config_target
in $ac_config_targets
14910 case $ac_config_target in
14911 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14912 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14913 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14914 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
14915 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14917 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14922 # If the user did not use the arguments to specify the items to instantiate,
14923 # then the envvar interface is used. Set only those that are not.
14924 # We use the long form for the default assignment because of an extremely
14925 # bizarre bug on SunOS 4.1.3.
14926 if $ac_need_defaults; then
14927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14932 # Have a temporary directory for convenience. Make it in the build tree
14933 # simply because there is no reason against having it here, and in addition,
14934 # creating and moving files from /tmp can sometimes cause problems.
14935 # Hook for its removal unless debugging.
14936 # Note that there is a small window in which the directory will not be cleaned:
14937 # after its creation but before its name has been assigned to `$tmp'.
14941 trap 'exit_status=$?
14942 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14944 trap 'as_fn_exit 1' 1 2 13 15
14946 # Create a (secure) tmp directory for tmp files.
14949 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14950 test -n "$tmp" && test -d "$tmp"
14953 tmp
=.
/conf$$
-$RANDOM
14954 (umask 077 && mkdir
"$tmp")
14955 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14957 # Set up the scripts for CONFIG_FILES section.
14958 # No need to generate them if there are no CONFIG_FILES.
14959 # This happens for instance with `./config.status config.h'.
14960 if test -n "$CONFIG_FILES"; then
14963 ac_cr
=`echo X | tr X '\015'`
14964 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14965 # But we know of no other shell where ac_cr would be empty at this
14966 # point, so we can use a bashism as a fallback.
14967 if test "x$ac_cr" = x
; then
14968 eval ac_cr
=\$
\'\\r
\'
14970 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14971 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14974 ac_cs_awk_cr
=$ac_cr
14977 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14982 echo "cat >conf$$subs.awk <<_ACEOF" &&
14983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14985 } >conf$$subs.sh ||
14986 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14987 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14989 for ac_last_try in false false false false false :; do
14990 . ./conf$$subs.sh ||
14991 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14993 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14994 if test $ac_delim_n = $ac_delim_num; then
14996 elif $ac_last_try; then
14997 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14999 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15002 rm -f conf$$subs.sh
15004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15005 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
15009 s/^/S["/; s
/!.
*/"]=/
15019 s/\(.\{148\}\).*/\1/
15021 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15026 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15033 s/\(.\{148\}\).*/\1/
15035 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15039 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15044 ' <conf$$subs.awk | sed '
15049 ' >>$CONFIG_STATUS || ac_write_fail=1
15050 rm -f conf$$subs.awk
15051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15053 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
15054 for (key in S) S_is_set[key] = 1
15060 nfields = split(line, field, "@
")
15062 len = length(field[1])
15063 for (i = 2; i < nfields; i++) {
15065 keylen = length(key)
15066 if (S_is_set[key]) {
15068 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15069 len += length(value) + length(field[++i])
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15082 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15085 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
15086 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
15089 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15090 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
15091 # trailing colons and then remove the whole line if VPATH becomes empty
15092 # (actually we leave an empty line to preserve line numbers).
15093 if test "x
$srcdir" = x.; then
15094 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15095 s/:*\$(srcdir):*/:/
15096 s/:*\${srcdir}:*/:/
15098 s/^\([^=]*=[ ]*\):*/\1/
15104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15105 fi # test -n "$CONFIG_FILES"
15107 # Set up the scripts for CONFIG_HEADERS section.
15108 # No need to generate them if there are no CONFIG_HEADERS.
15109 # This happens for instance with `./config.status Makefile'.
15110 if test -n "$CONFIG_HEADERS"; then
15111 cat >"$tmp/defines.
awk" <<\_ACAWK ||
15115 # Transform confdefs.h into an awk script `defines.awk', embedded as
15116 # here-document in config.status, that substitutes the proper values into
15117 # config.h.in to produce config.h.
15119 # Create a delimiter string that does not exist in confdefs.h, to ease
15120 # handling of long lines.
15122 for ac_last_try in false false :; do
15123 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
15124 if test -z "$ac_t"; then
15126 elif $ac_last_try; then
15127 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
15129 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15133 # For the awk script, D is an array of macro values keyed by name,
15134 # likewise P contains macro parameters if any. Preserve backslash
15135 # newline sequences.
15137 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15139 s/.\{148\}/&'"$ac_delim"'/g
15142 s/^[ ]*#[ ]*define[ ][ ]*/ /
15149 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15151 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15155 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15156 D["\
1"]=" \
3\\\\\\n
"\\/p
15158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15163 s/.\{148\}/&'"$ac_delim"'/g
15168 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15171 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15173 ' <confdefs.h | sed '
15174 s/'"$ac_delim"'/"\\\
15175 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15178 for (key in D) D_is_set[key] = 1
15181 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15183 split(line, arg, " ")
15184 if (arg[1] == "#") {
15188 defundef
= substr
(arg
[1], 2)
15191 split(mac1
, mac2
, "(") #)
15193 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15194 if (D_is_set
[macro
]) {
15195 # Preserve the white space surrounding the "#".
15196 print prefix
"define", macro P
[macro
] D
[macro
]
15199 # Replace #undef with comments. This is necessary, for example,
15200 # in the case of _POSIX_SOURCE, which is predefined and required
15201 # on some systems where configure will not decide to define it.
15202 if (defundef
== "undef") {
15203 print
"/*", prefix defundef
, macro
, "*/"
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15212 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
15213 fi # test -n "$CONFIG_HEADERS"
15216 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15221 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15223 case $ac_mode$ac_tag in
15225 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15226 :[FH
]-) ac_tag
=-:-;;
15227 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15244 -) ac_f
="$tmp/stdin";;
15245 *) # Look for the file first in the build tree, then in the source tree
15246 # (if the path is not absolute). The absolute path cannot be DOS-style,
15247 # because $ac_f cannot contain `:'.
15251 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15253 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
15255 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15256 as_fn_append ac_file_inputs
" '$ac_f'"
15259 # Let's still pretend it is `configure' which instantiates (i.e., don't
15260 # use $as_me), people would be surprised to read:
15261 # /* config.h. Generated by config.status. */
15262 configure_input
='Generated from '`
15263 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15265 if test x
"$ac_file" != x-
; then
15266 configure_input
="$ac_file. $configure_input"
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15268 $as_echo "$as_me: creating $ac_file" >&6;}
15270 # Neutralize special characters interpreted by sed in replacement strings.
15271 case $configure_input in #(
15272 *\
&* |
*\|
* |
*\\* )
15273 ac_sed_conf_input
=`$as_echo "$configure_input" |
15274 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15275 *) ac_sed_conf_input
=$configure_input;;
15279 *:-:* |
*:-) cat >"$tmp/stdin" \
15280 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
15285 ac_dir
=`$as_dirname -- "$ac_file" ||
15286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15287 X"$ac_file" : 'X\(//\)[^/]' \| \
15288 X"$ac_file" : 'X\(//\)$' \| \
15289 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15290 $as_echo X"$ac_file" |
15291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15295 /^X\(\/\/\)[^/].*/{
15308 as_dir
="$ac_dir"; as_fn_mkdir_p
15312 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15314 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15315 # A ".." for each directory in $ac_dir_suffix.
15316 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15317 case $ac_top_builddir_sub in
15318 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15319 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15322 ac_abs_top_builddir
=$ac_pwd
15323 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15324 # for backward compatibility:
15325 ac_top_builddir
=$ac_top_build_prefix
15328 .
) # We are building in place.
15330 ac_top_srcdir
=$ac_top_builddir_sub
15331 ac_abs_top_srcdir
=$ac_pwd ;;
15332 [\\/]* | ?
:[\\/]* ) # Absolute name.
15333 ac_srcdir
=$srcdir$ac_dir_suffix;
15334 ac_top_srcdir
=$srcdir
15335 ac_abs_top_srcdir
=$srcdir ;;
15336 *) # Relative name.
15337 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15338 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15339 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15341 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15351 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15352 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15354 ac_MKDIR_P
=$MKDIR_P
15356 [\\/$
]* | ?
:[\\/]* ) ;;
15357 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15362 # If the template does not know about datarootdir, expand it.
15363 # FIXME: This hack should be removed a few years after 2.60.
15364 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15375 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15376 *datarootdir
*) ac_datarootdir_seen
=yes;;
15377 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15379 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 ac_datarootdir_hack='
15383 s&@datadir@&$datadir&g
15384 s&@docdir@&$docdir&g
15385 s&@infodir@&$infodir&g
15386 s&@localedir@&$localedir&g
15387 s&@mandir@&$mandir&g
15388 s&\\\${datarootdir}&$datarootdir&g' ;;
15392 # Neutralize VPATH when `$srcdir' = `.'.
15393 # Shell code in configure.ac might set extrasub.
15394 # FIXME: do we really want to maintain this feature?
15395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15396 ac_sed_extra="$ac_vpsub
15399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15401 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15402 s|@configure_input@|
$ac_sed_conf_input|
;t t
15403 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15404 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15405 s
&@srcdir@
&$ac_srcdir&;t t
15406 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15407 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15408 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15409 s
&@builddir@
&$ac_builddir&;t t
15410 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15411 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15412 s
&@INSTALL@
&$ac_INSTALL&;t t
15413 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15414 $ac_datarootdir_hack
15416 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
15417 || as_fn_error "could not create
$ac_file" "$LINENO" 5
15419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15423 which seems to be undefined. Please make sure it is defined." >&5
15424 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15425 which seems to be undefined. Please make sure it is defined." >&2;}
15429 -) cat "$tmp/out" && rm -f "$tmp/out";;
15430 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15432 || as_fn_error "could not create $ac_file" "$LINENO" 5
15438 if test x"$ac_file" != x-; then
15440 $as_echo "/* $configure_input */" \
15441 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15442 } >"$tmp/config.h" \
15443 || as_fn_error "could not create $ac_file" "$LINENO" 5
15444 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15446 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15449 mv "$tmp/config.h" "$ac_file" \
15450 || as_fn_error "could not create $ac_file" "$LINENO" 5
15453 $as_echo "/* $configure_input */" \
15454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15455 || as_fn_error "could not create -" "$LINENO" 5
15457 # Compute "$ac_file"'s index
in $config_headers.
15460 for _am_header
in $config_headers :; do
15461 case $_am_header in
15462 $_am_arg |
$_am_arg:* )
15465 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15468 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15469 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15470 X"$_am_arg" : 'X\(//\)[^/]' \| \
15471 X"$_am_arg" : 'X\(//\)$' \| \
15472 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15473 $as_echo X"$_am_arg" |
15474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15478 /^X\(\/\/\)[^/].*/{
15490 s/.*/./; q'`/stamp-h
$_am_stamp_count
15493 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15494 $as_echo "$as_me: executing $ac_file commands" >&6;}
15499 case $ac_file$ac_mode in
15500 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15501 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15502 # are listed without --file. Let's play safe and only enable the eval
15503 # if we detect the quoting.
15504 case $CONFIG_FILES in
15505 *\'*) eval set x
"$CONFIG_FILES" ;;
15506 *) set x
$CONFIG_FILES ;;
15511 # Strip MF so we end up with the name of the file.
15512 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15513 # Check whether this is an Automake generated Makefile or not.
15514 # We used to match only the files named `Makefile.in', but
15515 # some people rename them; so instead we look at the file content.
15516 # Grep'ing the first line is not enough: some people post-process
15517 # each Makefile.in and add a new line on top of each file to say so.
15518 # Grep'ing the whole file is not good either: AIX grep has a line
15519 # limit of 2048, but all sed's we know have understand at least 4000.
15520 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15521 dirpart
=`$as_dirname -- "$mf" ||
15522 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15523 X"$mf" : 'X\(//\)[^/]' \| \
15524 X"$mf" : 'X\(//\)$' \| \
15525 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15531 /^X\(\/\/\)[^/].*/{
15547 # Extract the definition of DEPDIR, am__include, and am__quote
15548 # from the Makefile without running `make'.
15549 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15550 test -z "$DEPDIR" && continue
15551 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15552 test -z "am__include" && continue
15553 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15554 # When using ansi2knr, U may be empty or an underscore; expand it
15555 U
=`sed -n 's/^U = //p' < "$mf"`
15556 # Find all dependency output files, they are included files with
15557 # $(DEPDIR) in their names. We invoke sed twice because it is the
15558 # simplest approach to changing $(DEPDIR) to its actual value in the
15560 for file in `sed -n "
15561 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15562 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15563 # Make sure the directory exists.
15564 test -f "$dirpart/$file" && continue
15565 fdir
=`$as_dirname -- "$file" ||
15566 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15567 X"$file" : 'X\(//\)[^/]' \| \
15568 X"$file" : 'X\(//\)$' \| \
15569 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15570 $as_echo X"$file" |
15571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15575 /^X\(\/\/\)[^/].*/{
15588 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15589 # echo "creating $dirpart/$file"
15590 echo '# dummy' > "$dirpart/$file"
15596 case x
$CONFIG_HEADERS in
15597 xconfig.h
:config.
in)
15608 ac_clean_files
=$ac_clean_files_save
15610 test $ac_write_fail = 0 ||
15611 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15614 # configure is writing to config.log, and then calls config.status.
15615 # config.status does its own redirection, appending to config.log.
15616 # Unfortunately, on DOS this fails, as config.log is still kept open
15617 # by configure, so config.status won't be able to write to it; its
15618 # output is simply discarded. So we exec the FD to /dev/null,
15619 # effectively closing config.log, so it can be properly (re)opened and
15620 # appended to by config.status. When coming back to configure, we
15621 # need to make the FD available again.
15622 if test "$no_create" != yes; then
15624 ac_config_status_args
=
15625 test "$silent" = yes &&
15626 ac_config_status_args
="$ac_config_status_args --quiet"
15628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15631 # would make configure fail if this is the last instruction.
15632 $ac_cs_success || as_fn_exit $?
15634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}