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 LOCALCHARSET_TESTS_ENVIRONMENT
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
867 HAVE_SIGNED_SIG_ATOMIC_T
870 BITSIZEOF_SIG_ATOMIC_T
873 APPLE_UNIVERSAL_BUILD
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
881 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
886 HAVE_UNSIGNED_LONG_LONG_INT
888 GL_GENERATE_FNMATCH_H_FALSE
889 GL_GENERATE_FNMATCH_H_TRUE
893 GL_GENERATE_ALLOCA_H_FALSE
894 GL_GENERATE_ALLOCA_H_TRUE
897 GL_COND_LIBTOOL_FALSE
925 MAINTAINER_MODE_FALSE
954 program_transform_name
967 enable_option_checking
968 enable_maintainer_mode
969 enable_dependency_tracking
971 ac_precious_vars
='build_alias
982 # Initialize some variables set by options.
984 ac_init_version
=false
985 ac_unrecognized_opts
=
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
996 program_transform_name
=s
,x
,x
,
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir
='${exec_prefix}/bin'
1011 sbindir
='${exec_prefix}/sbin'
1012 libexecdir
='${exec_prefix}/libexec'
1013 datarootdir
='${prefix}/share'
1014 datadir
='${datarootdir}'
1015 sysconfdir
='${prefix}/etc'
1016 sharedstatedir
='${prefix}/com'
1017 localstatedir
='${prefix}/var'
1018 includedir
='${prefix}/include'
1019 oldincludedir
='/usr/include'
1020 docdir
='${datarootdir}/doc/${PACKAGE}'
1021 infodir
='${datarootdir}/info'
1026 libdir
='${exec_prefix}/lib'
1027 localedir
='${datarootdir}/locale'
1028 mandir
='${datarootdir}/man'
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\
$ac_option
1042 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1048 case $ac_dashdash$ac_option in
1052 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1054 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1055 bindir
=$ac_optarg ;;
1057 -build |
--build |
--buil |
--bui |
--bu)
1058 ac_prev
=build_alias
;;
1059 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1060 build_alias
=$ac_optarg ;;
1062 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1063 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1064 ac_prev
=cache_file
;;
1065 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1066 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1067 cache_file
=$ac_optarg ;;
1069 --config-cache |
-C)
1070 cache_file
=config.cache
;;
1072 -datadir |
--datadir |
--datadi |
--datad)
1074 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1075 datadir
=$ac_optarg ;;
1077 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1078 |
--dataroo |
--dataro |
--datar)
1079 ac_prev
=datarootdir
;;
1080 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1081 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1082 datarootdir
=$ac_optarg ;;
1084 -disable-* |
--disable-*)
1085 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1088 as_fn_error
"invalid feature name: $ac_useropt"
1089 ac_useropt_orig
=$ac_useropt
1090 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "enable_
$ac_useropt"
1095 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096 ac_unrecognized_sep
=', ';;
1098 eval enable_
$ac_useropt=no
;;
1100 -docdir |
--docdir |
--docdi |
--doc |
--do)
1102 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1103 docdir
=$ac_optarg ;;
1105 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1107 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1108 dvidir
=$ac_optarg ;;
1110 -enable-* |
--enable-*)
1111 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1114 as_fn_error
"invalid feature name: $ac_useropt"
1115 ac_useropt_orig
=$ac_useropt
1116 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "enable_
$ac_useropt"
1121 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep
=', ';;
1124 eval enable_
$ac_useropt=\
$ac_optarg ;;
1126 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1127 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1128 |
--exec |
--exe |
--ex)
1129 ac_prev
=exec_prefix
;;
1130 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1131 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1132 |
--exec=* |
--exe=* |
--ex=*)
1133 exec_prefix
=$ac_optarg ;;
1135 -gas |
--gas |
--ga |
--g)
1136 # Obsolete; use --with-gas.
1139 -help |
--help |
--hel |
--he |
-h)
1140 ac_init_help
=long
;;
1141 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1142 ac_init_help
=recursive
;;
1143 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1144 ac_init_help
=short
;;
1146 -host |
--host |
--hos |
--ho)
1147 ac_prev
=host_alias
;;
1148 -host=* |
--host=* |
--hos=* |
--ho=*)
1149 host_alias
=$ac_optarg ;;
1151 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1153 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1155 htmldir
=$ac_optarg ;;
1157 -includedir |
--includedir |
--includedi |
--included |
--include \
1158 |
--includ |
--inclu |
--incl |
--inc)
1159 ac_prev
=includedir
;;
1160 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1161 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1162 includedir
=$ac_optarg ;;
1164 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1166 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1167 infodir
=$ac_optarg ;;
1169 -libdir |
--libdir |
--libdi |
--libd)
1171 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1172 libdir
=$ac_optarg ;;
1174 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1175 |
--libexe |
--libex |
--libe)
1176 ac_prev
=libexecdir
;;
1177 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1178 |
--libexe=* |
--libex=* |
--libe=*)
1179 libexecdir
=$ac_optarg ;;
1181 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1182 ac_prev
=localedir
;;
1183 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1184 localedir
=$ac_optarg ;;
1186 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1187 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1188 ac_prev
=localstatedir
;;
1189 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1190 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1191 localstatedir
=$ac_optarg ;;
1193 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1195 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1196 mandir
=$ac_optarg ;;
1198 -nfp |
--nfp |
--nf)
1199 # Obsolete; use --without-fp.
1202 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1203 |
--no-cr |
--no-c |
-n)
1206 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1207 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1210 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1211 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1212 |
--oldin |
--oldi |
--old |
--ol |
--o)
1213 ac_prev
=oldincludedir
;;
1214 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1215 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1216 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1217 oldincludedir
=$ac_optarg ;;
1219 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1221 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1222 prefix
=$ac_optarg ;;
1224 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1225 |
--program-pre |
--program-pr |
--program-p)
1226 ac_prev
=program_prefix
;;
1227 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1228 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1229 program_prefix
=$ac_optarg ;;
1231 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1232 |
--program-suf |
--program-su |
--program-s)
1233 ac_prev
=program_suffix
;;
1234 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1235 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1236 program_suffix
=$ac_optarg ;;
1238 -program-transform-name |
--program-transform-name \
1239 |
--program-transform-nam |
--program-transform-na \
1240 |
--program-transform-n |
--program-transform- \
1241 |
--program-transform |
--program-transfor \
1242 |
--program-transfo |
--program-transf \
1243 |
--program-trans |
--program-tran \
1244 |
--progr-tra |
--program-tr |
--program-t)
1245 ac_prev
=program_transform_name
;;
1246 -program-transform-name=* |
--program-transform-name=* \
1247 |
--program-transform-nam=* |
--program-transform-na=* \
1248 |
--program-transform-n=* |
--program-transform-=* \
1249 |
--program-transform=* |
--program-transfor=* \
1250 |
--program-transfo=* |
--program-transf=* \
1251 |
--program-trans=* |
--program-tran=* \
1252 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1253 program_transform_name
=$ac_optarg ;;
1255 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1257 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1258 pdfdir
=$ac_optarg ;;
1260 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1262 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1265 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1266 |
-silent |
--silent |
--silen |
--sile |
--sil)
1269 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1271 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1273 sbindir
=$ac_optarg ;;
1275 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1276 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1277 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1279 ac_prev
=sharedstatedir
;;
1280 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1281 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1282 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1284 sharedstatedir
=$ac_optarg ;;
1286 -site |
--site |
--sit)
1288 -site=* |
--site=* |
--sit=*)
1291 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1293 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1294 srcdir
=$ac_optarg ;;
1296 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1297 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1298 ac_prev
=sysconfdir
;;
1299 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1300 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1301 sysconfdir
=$ac_optarg ;;
1303 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1304 ac_prev
=target_alias
;;
1305 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1306 target_alias
=$ac_optarg ;;
1308 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1311 -version |
--version |
--versio |
--versi |
--vers |
-V)
1312 ac_init_version
=: ;;
1315 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1318 as_fn_error
"invalid package name: $ac_useropt"
1319 ac_useropt_orig
=$ac_useropt
1320 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep
=', ';;
1328 eval with_
$ac_useropt=\
$ac_optarg ;;
1330 -without-* |
--without-*)
1331 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1334 as_fn_error
"invalid package name: $ac_useropt"
1335 ac_useropt_orig
=$ac_useropt
1336 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1341 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342 ac_unrecognized_sep
=', ';;
1344 eval with_
$ac_useropt=no
;;
1347 # Obsolete; use --with-x.
1350 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1351 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1352 ac_prev
=x_includes
;;
1353 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1354 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1355 x_includes
=$ac_optarg ;;
1357 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1358 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1359 ac_prev
=x_libraries
;;
1360 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1361 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1362 x_libraries
=$ac_optarg ;;
1364 -*) as_fn_error
"unrecognized option: \`$ac_option'
1365 Try \`$0 --help' for more information."
1369 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1370 # Reject names that are not valid shell variable names.
1371 case $ac_envvar in #(
1372 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1373 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1375 eval $ac_envvar=\
$ac_optarg
1376 export $ac_envvar ;;
1379 # FIXME: should be removed in autoconf 3.0.
1380 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1382 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389 if test -n "$ac_prev"; then
1390 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1391 as_fn_error
"missing argument to $ac_option"
1394 if test -n "$ac_unrecognized_opts"; then
1395 case $enable_option_checking in
1397 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1398 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 # Check all directory arguments for consistency.
1403 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404 datadir sysconfdir sharedstatedir localstatedir includedir \
1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406 libdir localedir mandir
1408 eval ac_val
=\$
$ac_var
1409 # Remove trailing slashes.
1412 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413 eval $ac_var=\
$ac_val;;
1415 # Be sure to have absolute directory names.
1417 [\\/$
]* | ?
:[\\/]* ) continue;;
1418 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1420 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1428 target
=$target_alias
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x
; then
1432 if test "x$build_alias" = x
; then
1433 cross_compiling
=maybe
1434 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1435 If a cross compiler is detected then cross compile mode will be used." >&2
1436 elif test "x$build_alias" != "x$host_alias"; then
1442 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1444 test "$silent" = yes && exec 6>/dev
/null
1447 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1448 ac_ls_di
=`ls -di .` &&
1449 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1450 as_fn_error
"working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 as_fn_error
"pwd does not report name of working directory"
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted
=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir
=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 $as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1487 ac_srcdir_defaulted
=no
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1491 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1493 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1495 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1497 # When building in place, set srcdir=.
1498 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 # Remove unnecessary trailing slashes from srcdir.
1502 # Double slashes in file names in object file debugging info
1503 # mess up M-x gdb in Emacs.
1505 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1507 for ac_var
in $ac_precious_vars; do
1508 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1509 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1510 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1511 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1515 # Report the --help message.
1517 if test "$ac_init_help" = "long"; then
1518 # Omit some internal or obsolete options to make the list less imposing.
1519 # This message is too long to be a string in the A/UX 3.1 sh.
1521 \`configure' configures this package to adapt to many kinds of systems.
1523 Usage: $0 [OPTION]... [VAR=VALUE]...
1525 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1526 VAR=VALUE. See below for descriptions of some of the useful variables.
1528 Defaults for the options are specified in brackets.
1531 -h, --help display this help and exit
1532 --help=short display options specific to this package
1533 --help=recursive display the short help of all the included packages
1534 -V, --version display version information and exit
1535 -q, --quiet, --silent do not print \`checking...' messages
1536 --cache-file=FILE cache test results in FILE [disabled]
1537 -C, --config-cache alias for \`--cache-file=config.cache'
1538 -n, --no-create do not create output files
1539 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1541 Installation directories:
1542 --prefix=PREFIX install architecture-independent files in PREFIX
1543 [$ac_default_prefix]
1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 By default, \`make install' will install all the files in
1548 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1549 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1550 for instance \`--prefix=\$HOME'.
1552 For better control, use the options below.
1554 Fine tuning of the installation directories:
1555 --bindir=DIR user executables [EPREFIX/bin]
1556 --sbindir=DIR system admin executables [EPREFIX/sbin]
1557 --libexecdir=DIR program executables [EPREFIX/libexec]
1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1561 --libdir=DIR object code libraries [EPREFIX/lib]
1562 --includedir=DIR C header files [PREFIX/include]
1563 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1564 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1565 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1566 --infodir=DIR info documentation [DATAROOTDIR/info]
1567 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1568 --mandir=DIR man documentation [DATAROOTDIR/man]
1569 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1570 --htmldir=DIR html documentation [DOCDIR]
1571 --dvidir=DIR dvi documentation [DOCDIR]
1572 --pdfdir=DIR pdf documentation [DOCDIR]
1573 --psdir=DIR ps documentation [DOCDIR]
1579 --program-prefix=PREFIX prepend PREFIX to installed program names
1580 --program-suffix=SUFFIX append SUFFIX to installed program names
1581 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1584 --build=BUILD configure
for building on BUILD
[guessed
]
1585 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1586 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1590 if test -n "$ac_init_help"; then
1595 --disable-option-checking ignore unrecognized
--enable/--with options
1596 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1597 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1598 --enable-maintainer-mode enable make rules and dependencies not useful
1599 (and sometimes confusing
) to the casual installer
1600 --disable-dependency-tracking speeds up one-time build
1601 --enable-dependency-tracking do not reject slow dependency extractors
1603 Some influential environment variables
:
1604 CC C compiler
command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1607 nonstandard directory
<lib dir
>
1608 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1609 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1610 you have headers
in a nonstandard directory
<include dir
>
1613 Use these variables to override the choices made by
`configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1616 Report bugs to the package provider.
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1680 generated by GNU Autoconf 2.64
1682 Copyright (C) 2009 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1703 *) ac_try_echo
=$ac_try;;
1705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1709 if test -s conftest.err
; then
1710 grep -v '^ *+' conftest.err
>conftest.er1
1711 cat conftest.er1
>&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.
$ac_objext; then :
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.
$ac_ext >&5
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1729 } # ac_fn_c_try_compile
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1737 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } >/dev/null && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771 # the include files in INCLUDES and setting the cache variable VAR
1773 ac_fn_c_check_header_mongrel ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1786 # Is the header compilable?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788 $as_echo_n "checking $2 usability... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1797 ac_header_compiler=no
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801 $as_echo "$ac_header_compiler" >&6; }
1803 # Is the header present?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805 $as_echo_n "checking $2 presence... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1810 if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1813 ac_header_preproc=no
1815 rm -f conftest.err conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817 $as_echo "$ac_header_preproc" >&6; }
1819 # So? What about this header?
1820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 $as_echo_n "(cached) " >&6
1845 eval "$3=\$ac_header_compiler"
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 } # ac_fn_c_check_header_mongrel
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1865 *) ac_try_echo
=$ac_try;;
1867 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=$ac_status
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1914 if ac_fn_c_try_compile "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 } # ac_fn_c_check_header_compile
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1938 *) ac_try_echo
=$ac_try;;
1940 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1944 if test -s conftest.err
; then
1945 grep -v '^ *+' conftest.err
>conftest.er1
1946 cat conftest.er1
>&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest
$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest
$ac_exeext
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.
$ac_ext >&5
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1972 } # ac_fn_c_try_link
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func
()
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989 #define $2 innocuous_$2
1991 /* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1997 # include <limits.h>
1999 # include <assert.h>
2004 /* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined __stub_$2 || defined __stub___$2
2026 if ac_fn_c_try_link
"$LINENO"; then :
2031 rm -f core conftest.err conftest.
$ac_objext \
2032 conftest
$ac_exeext conftest.
$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2039 } # ac_fn_c_check_func
2041 # ac_fn_c_check_decl LINENO SYMBOL VAR
2042 # ------------------------------------
2043 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2044 ac_fn_c_check_decl
()
2046 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2048 $as_echo_n "checking whether $2 is declared... " >&6; }
2049 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2066 if ac_fn_c_try_compile
"$LINENO"; then :
2071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2078 } # ac_fn_c_check_decl
2080 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081 # --------------------------------------------
2082 # Tries to find the compile-time value of EXPR in a program that includes
2083 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2085 ac_fn_c_compute_int
()
2087 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2096 static int test_array [1 - 2 * !(($2) >= 0)];
2103 if ac_fn_c_try_compile
"$LINENO"; then :
2106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 if ac_fn_c_try_compile
"$LINENO"; then :
2120 ac_hi
=$ac_mid; break
2122 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2123 if test $ac_lo -le $ac_mid; then
2127 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) < 0)];
2145 if ac_fn_c_try_compile
"$LINENO"; then :
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2162 ac_lo
=$ac_mid; break
2164 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2165 if test $ac_mid -le $ac_hi; then
2169 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 if ac_fn_c_try_compile
"$LINENO"; then :
2198 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2203 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2210 static long int longval () { return $2; }
2211 static unsigned long int ulongval () { return $2; }
2218 FILE *f = fopen ("conftest.val", "w");
2223 long int i = longval ();
2226 fprintf (f, "%ld", i);
2230 unsigned long int i = ulongval ();
2233 fprintf (f, "%lu", i);
2235 /* Do not output a trailing newline, as this causes \r\n confusion
2236 on some platforms. */
2237 return ferror (f) || fclose (f) != 0;
2243 if ac_fn_c_try_run
"$LINENO"; then :
2244 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2248 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2249 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2256 } # ac_fn_c_compute_int
2258 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2259 # -------------------------------------------
2260 # Tests whether TYPE exists after having included INCLUDES, setting cache
2261 # variable VAR accordingly.
2262 ac_fn_c_check_type
()
2264 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 $as_echo_n "(cached) " >&6
2271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2283 if ac_fn_c_try_compile
"$LINENO"; then :
2284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2296 if ac_fn_c_try_compile
"$LINENO"; then :
2301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2310 } # ac_fn_c_check_type
2311 cat >config.log
<<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2315 It was created by $as_me, which was
2316 generated by GNU Autoconf 2.64. Invocation command line was
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir
=.
2352 $as_echo "PATH: $as_dir"
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2376 ac_must_keep_next
=false
2382 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2383 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2384 |
-silent |
--silent |
--silen |
--sile |
--sil)
2387 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2392 as_fn_append ac_configure_args1
" '$ac_arg'"
2393 if test $ac_must_keep_next = true
; then
2394 ac_must_keep_next
=false
# Got value, back to normal.
2397 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2398 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2399 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2400 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405 -* ) ac_must_keep_next
=true
;;
2408 as_fn_append ac_configure_args
" '$ac_arg'"
2413 { ac_configure_args0
=; unset ac_configure_args0
;}
2414 { ac_configure_args1
=; unset ac_configure_args1
;}
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2427 ## ---------------- ##
2428 ## Cache variables. ##
2429 ## ---------------- ##
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2465 ## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##
2470 for ac_var in $ac_subst_vars
2472 eval ac_val=\$$ac_var
2474 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2476 $as_echo "$ac_var='\''$ac_val'\''"
2480 if test -n "$ac_subst_files"; then
2482 ## ------------------- ##
2483 ## File substitutions. ##
2484 ## ------------------- ##
2487 for ac_var
in $ac_subst_files
2489 eval ac_val
=\$
$ac_var
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 $as_echo "$ac_var='\''$ac_val'\''"
2498 if test -s confdefs.h; then
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2516 for ac_signal
in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2522 rm -f -r conftest
* confdefs.h
2524 $as_echo "/* confdefs.h */" > confdefs.h
2526 # Predefined preprocessor variables.
2528 cat >>confdefs.h
<<_ACEOF
2529 #define PACKAGE_NAME "$PACKAGE_NAME"
2532 cat >>confdefs.h
<<_ACEOF
2533 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2536 cat >>confdefs.h
<<_ACEOF
2537 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2540 cat >>confdefs.h
<<_ACEOF
2541 #define PACKAGE_STRING "$PACKAGE_STRING"
2544 cat >>confdefs.h
<<_ACEOF
2545 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2548 cat >>confdefs.h
<<_ACEOF
2549 #define PACKAGE_URL "$PACKAGE_URL"
2553 # Let the site file select an alternate cache file if it wants to.
2554 # Prefer an explicitly selected file to automatically selected ones.
2557 if test -n "$CONFIG_SITE"; then
2558 ac_site_file1
=$CONFIG_SITE
2559 elif test "x$prefix" != xNONE
; then
2560 ac_site_file1
=$prefix/share
/config.site
2561 ac_site_file2
=$prefix/etc
/config.site
2563 ac_site_file1
=$ac_default_prefix/share
/config.site
2564 ac_site_file2
=$ac_default_prefix/etc
/config.site
2566 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2568 test "x$ac_site_file" = xNONE
&& continue
2569 if test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2577 if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special
2579 # files actually), so we avoid doing that.
2580 if test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2585 *) .
"./$cache_file";;
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594 gl_func_list
="$gl_func_list btowc"
2595 gl_func_list
="$gl_func_list isblank"
2596 gl_func_list
="$gl_func_list iswctype"
2597 gl_func_list
="$gl_func_list mbsrtowcs"
2598 gl_func_list
="$gl_func_list mempcpy"
2599 gl_func_list
="$gl_func_list wmemchr"
2600 gl_func_list
="$gl_func_list wmemcpy"
2601 gl_func_list
="$gl_func_list wmempcpy"
2602 gl_header_list
="$gl_header_list wctype.h"
2603 gl_fnmatch_required
=GNU
2604 gl_header_list
="$gl_header_list wchar.h"
2605 gl_header_list
="$gl_header_list stdint.h"
2606 gl_header_list
="$gl_header_list inttypes.h"
2607 gl_header_list
="$gl_header_list unistd.h"
2608 gl_func_list
="$gl_func_list symlink"
2609 gl_func_list
="$gl_func_list mbsinit"
2610 gl_func_list
="$gl_func_list mbrtowc"
2611 gl_header_list
="$gl_header_list sys/mman.h"
2612 gl_func_list
="$gl_func_list mprotect"
2613 gl_header_list
="$gl_header_list features.h"
2614 gl_func_list
="$gl_func_list iswcntrl"
2615 # Check that the precious variables saved in the cache have kept the same
2617 ac_cache_corrupted
=false
2618 for ac_var
in $ac_precious_vars; do
2619 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2620 eval ac_new_set
=\
$ac_env_${ac_var}_set
2621 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2622 eval ac_new_val
=\
$ac_env_${ac_var}_value
2623 case $ac_old_set,$ac_new_set in
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2627 ac_cache_corrupted
=: ;;
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2631 ac_cache_corrupted
=: ;;
2634 if test "x$ac_old_val" != "x$ac_new_val"; then
2635 # differences in whitespace do not lead to failure.
2636 ac_old_val_w
=`echo x $ac_old_val`
2637 ac_new_val_w
=`echo x $ac_new_val`
2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2640 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2641 ac_cache_corrupted
=:
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2644 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2645 eval $ac_var=\
$ac_old_val
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2648 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2650 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2656 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg
=$ac_var=$ac_new_val ;;
2659 case " $ac_configure_args " in
2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2661 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2665 if $ac_cache_corrupted; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2669 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2670 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672 ## -------------------- ##
2673 ## Main body of script. ##
2674 ## -------------------- ##
2677 ac_cpp
='$CPP $CPPFLAGS'
2678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2683 ac_config_headers
="$ac_config_headers config.h:config.in"
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2687 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2688 # Check whether --enable-maintainer-mode was given.
2689 if test "${enable_maintainer_mode+set}" = set; then :
2690 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2692 USE_MAINTAINER_MODE
=no
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2696 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2697 if test $USE_MAINTAINER_MODE = yes; then
2698 MAINTAINER_MODE_TRUE
=
2699 MAINTAINER_MODE_FALSE
='#'
2701 MAINTAINER_MODE_TRUE
='#'
2702 MAINTAINER_MODE_FALSE
=
2705 MAINT
=$MAINTAINER_MODE_TRUE
2710 ac_cpp
='$CPP $CPPFLAGS'
2711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC
="$CC" # Let the user override the test.
2725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir
=.
2730 for ac_exec_ext
in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2753 if test -z "$ac_cv_prog_CC"; then
2755 # Extract the first word of "gcc", so it can be a program name with args.
2756 set dummy gcc
; ac_word
=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2769 test -z "$as_dir" && as_dir
=.
2770 for ac_exec_ext
in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_CC
="gcc"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2783 if test -n "$ac_ct_CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2785 $as_echo "$ac_ct_CC" >&6; }
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2791 if test "x$ac_ct_CC" = x
; then
2794 case $cross_compiling:$ac_tool_warned in
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798 ac_tool_warned
=yes ;;
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC
="$CC" # Let the user override the test.
2818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir
=.
2823 for ac_exec_ext
in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2847 if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849 set dummy cc
; ac_word
=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC
="$CC" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected
=yes
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy
$ac_cv_prog_CC
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2887 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog
in cl.exe
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC
="$CC" # Let the user override the test.
2917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir
=.
2922 for ac_exec_ext
in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2944 test -n "$CC" && break
2947 if test -z "$CC"; then
2949 for ac_prog
in cl.exe
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy
$ac_prog; ac_word
=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir
=.
2966 for ac_exec_ext
in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC
="$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$ac_ct_CC" && break
2991 if test "x$ac_ct_CC" = x
; then
2994 case $cross_compiling:$ac_tool_warned in
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned
=yes ;;
3007 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error
"no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." "$LINENO" 5; }
3012 # Provide some information about the compiler.
3013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3016 for ac_option
in --version -v -V -qversion; do
3017 { { ac_try
="$ac_compiler $ac_option >&5"
3019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3026 if test -s conftest.err; then
3028 ... rest of stderr output deleted ...
3029 10q' conftest.err >conftest.er1
3030 cat conftest.er1 >&5
3031 rm -f conftest.er1 conftest.err
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3050 ac_clean_files_save=$ac_clean_files
3051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3052 # Try to create an executable without -o first, disregard a.out.
3053 # It will help us diagnose broken compilers, and finding out an intuition
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3056 $as_echo_n "checking for C compiler default output file name... " >&6; }
3057 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3059 # The possible output files:
3060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3063 for ac_file in $ac_files
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072 if { { ac_try="$ac_link_default"
3074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3075 *) ac_try_echo
=$ac_try;;
3077 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_link_default") 2>&5
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3086 # so that the user can short-circuit this test for compilers unknown to
3088 for ac_file
in $ac_files ''
3090 test -f "$ac_file" ||
continue
3092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3095 # We found the default executable, but exeext='' is most
3099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3101 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 # We set ac_cv_exeext here because the later test for it is not
3104 # safe: cross compilers may not add the suffix if given an `-o'
3105 # argument, so we may need to know it at that point already.
3106 # Even if this section looks crufty: it has the advantage of
3113 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119 $as_echo "$ac_file" >&6; }
3120 if test -z "$ac_file"; then :
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.
$ac_ext >&5
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { as_fn_set_status
77
3127 as_fn_error
"C compiler cannot create executables
3128 See \`config.log' for more details." "$LINENO" 5; }; }
3130 ac_exeext
=$ac_cv_exeext
3132 # Check that the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135 $as_echo_n "checking whether the C compiler works... " >&6; }
3136 # If not cross compiling, check that we can run a simple program.
3137 if test "$cross_compiling" != yes; then
3138 if { ac_try
='./$ac_file'
3139 { { case "(($ac_try" in
3140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3151 if test "$cross_compiling" = maybe; then
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error "cannot run C compiled programs.
3157 If you meant to cross compile
, use \
`--host'.
3158 See \`config.log
' for more details." "$LINENO" 5; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3166 ac_clean_files=$ac_clean_files_save
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3170 $as_echo_n "checking whether we are cross compiling... " >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3172 $as_echo "$cross_compiling" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175 $as_echo_n "checking for suffix of executables... " >&6; }
3176 if { { ac_try="$ac_link"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3188 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3189 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3191 for ac_file
in conftest.exe conftest conftest.
*; do
3192 test -f "$ac_file" ||
continue
3194 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3195 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details." "$LINENO" 5; }
3206 rm -f conftest
$ac_cv_exeext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208 $as_echo "$ac_cv_exeext" >&6; }
3210 rm -f conftest.
$ac_ext
3211 EXEEXT
=$ac_cv_exeext
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3214 $as_echo_n "checking for suffix of object files... " >&6; }
3215 if test "${ac_cv_objext+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3229 rm -f conftest.o conftest.obj
3230 if { { ac_try
="$ac_compile"
3232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_compile") 2>&5
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 for ac_file in conftest.o conftest.obj conftest.*; do
3242 test -f "$ac_file" || continue;
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3245 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error "cannot compute suffix of object files
: cannot compile
3256 See \
`config.log' for more details." "$LINENO" 5; }
3258 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3261 $as_echo "$ac_cv_objext" >&6; }
3262 OBJEXT=$ac_cv_objext
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3265 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3266 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3283 if ac_fn_c_try_compile "$LINENO"; then :
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3293 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3294 if test $ac_compiler_gnu = yes; then
3299 ac_test_CFLAGS=${CFLAGS+set}
3300 ac_save_CFLAGS=$CFLAGS
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3302 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3303 if test "${ac_cv_prog_cc_g+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3306 ac_save_c_werror_flag=$ac_c_werror_flag
3307 ac_c_werror_flag=yes
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3321 if ac_fn_c_try_compile "$LINENO"; then :
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3336 if ac_fn_c_try_compile "$LINENO"; then :
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3352 if ac_fn_c_try_compile "$LINENO"; then :
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3363 $as_echo "$ac_cv_prog_cc_g" >&6; }
3364 if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3373 if test "$GCC" = yes; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3380 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3381 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 ac_cv_prog_cc_c89=no
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3406 s = g (p, va_arg (v,int));
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 CC="$ac_save_CC $ac_arg"
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_c89=$ac_arg
3446 rm -f core conftest.err conftest.$ac_objext
3447 test "x$ac_cv_prog_cc_c89" != "xno" && break
3449 rm -f conftest.$ac_ext
3454 case "x$ac_cv_prog_cc_c89" in
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3457 $as_echo "none needed" >&6; } ;;
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3460 $as_echo "unsupported" >&6; } ;;
3462 CC="$CC $ac_cv_prog_cc_c89"
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3464 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466 if test "x$ac_cv_prog_cc_c89" != xno; then :
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3478 for ac_t in install-sh install.sh shtool; do
3479 if test -f "$ac_dir/$ac_t"; then
3481 ac_install_sh="$ac_aux_dir/$ac_t -c"
3486 if test -z "$ac_aux_dir"; then
3487 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3490 # These three variables are undocumented and unsupported,
3491 # and are intended to be withdrawn in a future Autoconf release.
3492 # They can cause serious problems if a builder's source tree is in a directory
3493 # whose full name contains unusual characters.
3494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3504 $as_echo_n "checking build system type... " >&6; }
3505 if test "${ac_cv_build+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3508 ac_build_alias=$build_alias
3509 test "x$ac_build_alias" = x &&
3510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3511 test "x$ac_build_alias" = x &&
3512 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3518 $as_echo "$ac_cv_build" >&6; }
3519 case $ac_cv_build in
3521 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3524 ac_save_IFS=$IFS; IFS='-'
3530 # Remember, the first character of IFS is used to create $*,
3531 # except with old shells:
3534 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3538 $as_echo_n "checking host system type... " >&6; }
3539 if test "${ac_cv_host+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3551 $as_echo "$ac_cv_host" >&6; }
3554 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3557 ac_save_IFS=$IFS; IFS='-'
3563 # Remember, the first character of IFS is used to create $*,
3564 # except with old shells:
3567 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3577 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3578 # On Suns, sometimes $CPP names a directory.
3579 if test -n "$CPP" && test -d "$CPP"; then
3582 if test -z "$CPP"; then
3583 if test "${ac_cv_prog_CPP+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3586 # Double quotes because CPP needs to be expanded
3587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3590 for ac_c_preproc_warn_flag in '' yes
3592 # Use a header file that comes with gcc, so configuring glibc
3593 # with a fresh cross-compiler works.
3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 # <limits.h> exists even on freestanding compilers.
3596 # On the NeXT, cc -E runs the code through the compiler's parser,
3597 # not just through cpp. "Syntax error" is here to catch this case.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3601 # include <limits.h>
3603 # include <assert.h>
3607 if ac_fn_c_try_cpp "$LINENO"; then :
3610 # Broken: fails on valid input.
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3622 # Broken: success on invalid input.
3625 # Passes both tests.
3629 rm -f conftest.err conftest.$ac_ext
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.
$ac_ext
3634 if $ac_preproc_ok; then :
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3647 $as_echo "$CPP" >&6; }
3649 for ac_c_preproc_warn_flag
in '' yes
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3660 # include <limits.h>
3662 # include <assert.h>
3666 if ac_fn_c_try_cpp
"$LINENO"; then :
3669 # Broken: fails on valid input.
3672 rm -f conftest.err conftest.
$ac_ext
3674 # OK, works on sane cases. Now check whether nonexistent headers
3675 # can be detected and how.
3676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 #include <ac_nonexistent.h>
3680 if ac_fn_c_try_cpp
"$LINENO"; then :
3681 # Broken: success on invalid input.
3684 # Passes both tests.
3688 rm -f conftest.err conftest.
$ac_ext
3691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692 rm -f conftest.err conftest.
$ac_ext
3693 if $ac_preproc_ok; then :
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3699 See \`config.log' for more details." "$LINENO" 5; }
3703 ac_cpp
='$CPP $CPPFLAGS'
3704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3710 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3711 if test "${ac_cv_path_GREP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -z "$GREP"; then
3715 ac_path_GREP_found
=false
3716 # Loop through the user's path and test for each of PROGNAME-LIST
3717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3718 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3721 test -z "$as_dir" && as_dir
=.
3722 for ac_prog
in grep ggrep
; do
3723 for ac_exec_ext
in '' $ac_executable_extensions; do
3724 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3725 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3726 # Check for GNU ac_path_GREP and select it if it is found.
3727 # Check for GNU $ac_path_GREP
3728 case `"$ac_path_GREP" --version 2>&1` in
3730 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3733 $as_echo_n 0123456789 >"conftest.in"
3736 cat "conftest.in" "conftest.in" >"conftest.tmp"
3737 mv "conftest.tmp" "conftest.in"
3738 cp "conftest.in" "conftest.nl"
3739 $as_echo 'GREP' >> "conftest.nl"
3740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3741 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3742 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3743 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3744 # Best one so far, save it but keep looking for a better one
3745 ac_cv_path_GREP
="$ac_path_GREP"
3746 ac_path_GREP_max
=$ac_count
3748 # 10*(2^10) chars as input seems more than enough
3749 test $ac_count -gt 10 && break
3751 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3754 $ac_path_GREP_found && break 3
3759 if test -z "$ac_cv_path_GREP"; then
3760 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3763 ac_cv_path_GREP
=$GREP
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3768 $as_echo "$ac_cv_path_GREP" >&6; }
3769 GREP
="$ac_cv_path_GREP"
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3773 $as_echo_n "checking for egrep... " >&6; }
3774 if test "${ac_cv_path_EGREP+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3777 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3778 then ac_cv_path_EGREP
="$GREP -E"
3780 if test -z "$EGREP"; then
3781 ac_path_EGREP_found
=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3784 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3787 test -z "$as_dir" && as_dir
=.
3788 for ac_prog
in egrep; do
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3792 # Check for GNU ac_path_EGREP and select it if it is found.
3793 # Check for GNU $ac_path_EGREP
3794 case `"$ac_path_EGREP" --version 2>&1` in
3796 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3799 $as_echo_n 0123456789 >"conftest.in"
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'EGREP' >> "conftest.nl"
3806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3807 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3808 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_EGREP
="$ac_path_EGREP"
3812 ac_path_EGREP_max
=$ac_count
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3817 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3820 $ac_path_EGREP_found && break 3
3825 if test -z "$ac_cv_path_EGREP"; then
3826 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3829 ac_cv_path_EGREP
=$EGREP
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3835 $as_echo "$ac_cv_path_EGREP" >&6; }
3836 EGREP
="$ac_cv_path_EGREP"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3840 $as_echo_n "checking for ANSI C header files... " >&6; }
3841 if test "${ac_cv_header_stdc+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3859 if ac_fn_c_try_compile
"$LINENO"; then :
3860 ac_cv_header_stdc
=yes
3862 ac_cv_header_stdc
=no
3864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3866 if test $ac_cv_header_stdc = yes; then
3867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 $EGREP "memchr" >/dev
/null
2>&1; then :
3877 ac_cv_header_stdc
=no
3883 if test $ac_cv_header_stdc = yes; then
3884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "free" >/dev
/null
2>&1; then :
3894 ac_cv_header_stdc
=no
3900 if test $ac_cv_header_stdc = yes; then
3901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then :
3905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3909 #if ((' ' & 0x0FF) == 0x020)
3910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3913 # define ISLOWER(c) \
3914 (('a' <= (c) && (c) <= 'i') \
3915 || ('j' <= (c) && (c) <= 'r') \
3916 || ('s' <= (c) && (c) <= 'z'))
3917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3925 for (i = 0; i < 256; i++)
3926 if (XOR (islower (i), ISLOWER (i))
3927 || toupper (i) != TOUPPER (i))
3932 if ac_fn_c_try_run
"$LINENO"; then :
3935 ac_cv_header_stdc
=no
3937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3944 $as_echo "$ac_cv_header_stdc" >&6; }
3945 if test $ac_cv_header_stdc = yes; then
3947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3952 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3953 inttypes.h stdint.h unistd.h
3955 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3958 eval as_val
=\$
$as_ac_Header
3959 if test "x$as_val" = x
""yes; then :
3960 cat >>confdefs.h
<<_ACEOF
3961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3972 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3973 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3980 if test "$MINIX" = yes; then
3982 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3985 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3988 $as_echo "#define _MINIX 1" >>confdefs.h
3995 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4002 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4003 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4009 # define __EXTENSIONS__ 1
4010 $ac_includes_default
4019 if ac_fn_c_try_compile
"$LINENO"; then :
4020 ac_cv_safe_to_define___extensions__
=yes
4022 ac_cv_safe_to_define___extensions__
=no
4024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4028 test $ac_cv_safe_to_define___extensions__ = yes &&
4029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4033 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4035 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4037 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4039 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4045 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4046 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059 $EGREP "Amsterdam" >/dev
/null
2>&1; then :
4060 gl_cv_c_amsterdam_compiler
=yes
4062 gl_cv_c_amsterdam_compiler
=no
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4069 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4070 if test -z "$AR"; then
4071 if test $gl_cv_c_amsterdam_compiler = yes; then
4073 if test -z "$ARFLAGS"; then
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4079 set dummy
${ac_tool_prefix}ar; ac_word
=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if test "${ac_cv_prog_AR+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4085 if test -n "$AR"; then
4086 ac_cv_prog_AR
="$AR" # Let the user override the test.
4088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4092 test -z "$as_dir" && as_dir
=.
4093 for ac_exec_ext
in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_AR
="${ac_tool_prefix}ar"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 if test -n "$AR"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4108 $as_echo "$AR" >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4116 if test -z "$ac_cv_prog_AR"; then
4118 # Extract the first word of "ar", so it can be a program name with args.
4119 set dummy
ar; ac_word
=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 if test -n "$ac_ct_AR"; then
4126 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
4128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4132 test -z "$as_dir" && as_dir
=.
4133 for ac_exec_ext
in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_ac_ct_AR
="ar"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
4146 if test -n "$ac_ct_AR"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4148 $as_echo "$ac_ct_AR" >&6; }
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4154 if test "x$ac_ct_AR" = x
; then
4157 case $cross_compiling:$ac_tool_warned in
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned
=yes ;;
4169 if test -z "$ARFLAGS"; then
4174 if test -z "$ARFLAGS"; then
4180 if test -z "$RANLIB"; then
4181 if test $gl_cv_c_amsterdam_compiler = yes; then
4184 if test -n "$ac_tool_prefix"; then
4185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4186 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4192 if test -n "$RANLIB"; then
4193 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4199 test -z "$as_dir" && as_dir
=.
4200 for ac_exec_ext
in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 RANLIB
=$ac_cv_prog_RANLIB
4213 if test -n "$RANLIB"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4215 $as_echo "$RANLIB" >&6; }
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4223 if test -z "$ac_cv_prog_RANLIB"; then
4224 ac_ct_RANLIB
=$RANLIB
4225 # Extract the first word of "ranlib", so it can be a program name with args.
4226 set dummy ranlib
; ac_word
=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4232 if test -n "$ac_ct_RANLIB"; then
4233 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4239 test -z "$as_dir" && as_dir
=.
4240 for ac_exec_ext
in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4253 if test -n "$ac_ct_RANLIB"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4255 $as_echo "$ac_ct_RANLIB" >&6; }
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4261 if test "x$ac_ct_RANLIB" = x
; then
4264 case $cross_compiling:$ac_tool_warned in
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268 ac_tool_warned
=yes ;;
4270 RANLIB
=$ac_ct_RANLIB
4273 RANLIB
="$ac_cv_prog_RANLIB"
4288 # Code from module alloca:
4289 # Code from module alloca-opt:
4290 # Code from module configmake:
4291 # Code from module extensions:
4293 # Code from module fnmatch:
4294 # Code from module fnmatch-gnu:
4295 # Code from module include_next:
4296 # Code from module inttypes:
4297 # Code from module inttypes-incomplete:
4298 # Code from module localcharset:
4299 # Code from module mbrtowc:
4300 # Code from module mbsinit:
4301 # Code from module mbsrtowcs:
4302 # Code from module memchr:
4303 # Code from module memmem:
4304 # Code from module memmem-simple:
4305 # Code from module multiarch:
4306 # Code from module snippet/arg-nonnull:
4307 # Code from module snippet/c++defs:
4308 # Code from module snippet/warn-on-use:
4309 # Code from module stdbool:
4310 # Code from module stddef:
4311 # Code from module stdint:
4312 # Code from module streq:
4313 # Code from module string:
4314 # Code from module strnlen1:
4315 # Code from module update-copyright:
4316 # Code from module verify:
4317 # Code from module wchar:
4318 # Code from module wctype-h:
4321 ac_cpp
='$CPP $CPPFLAGS'
4322 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4325 if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4327 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if test "${ac_cv_prog_CC+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4333 if test -n "$CC"; then
4334 ac_cv_prog_CC
="$CC" # Let the user override the test.
4336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir
=.
4341 for ac_exec_ext
in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 if test -n "$CC"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4356 $as_echo "$CC" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4364 if test -z "$ac_cv_prog_CC"; then
4366 # Extract the first word of "gcc", so it can be a program name with args.
4367 set dummy gcc
; ac_word
=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4373 if test -n "$ac_ct_CC"; then
4374 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir
=.
4381 for ac_exec_ext
in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ac_ct_CC
="gcc"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4394 if test -n "$ac_ct_CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396 $as_echo "$ac_ct_CC" >&6; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4402 if test "x$ac_ct_CC" = x
; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned
=yes ;;
4417 if test -z "$CC"; then
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4420 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if test "${ac_cv_prog_CC+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4426 if test -n "$CC"; then
4427 ac_cv_prog_CC
="$CC" # Let the user override the test.
4429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir
=.
4434 for ac_exec_ext
in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 if test -n "$CC"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449 $as_echo "$CC" >&6; }
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4458 if test -z "$CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc
; ac_word
=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if test "${ac_cv_prog_CC+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4466 if test -n "$CC"; then
4467 ac_cv_prog_CC
="$CC" # Let the user override the test.
4470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir
=.
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected
=yes
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy
$ac_cv_prog_CC
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set CC to just the basename; use the full file name.
4498 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4504 if test -n "$CC"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4506 $as_echo "$CC" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4514 if test -z "$CC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog
in cl.exe
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CC+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4525 if test -n "$CC"; then
4526 ac_cv_prog_CC
="$CC" # Let the user override the test.
4528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir
=.
4533 for ac_exec_ext
in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 if test -n "$CC"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4548 $as_echo "$CC" >&6; }
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$CC" && break
4558 if test -z "$CC"; then
4560 for ac_prog
in cl.exe
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy
$ac_prog; ac_word
=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir
=.
4577 for ac_exec_ext
in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CC
="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592 $as_echo "$ac_ct_CC" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4599 test -n "$ac_ct_CC" && break
4602 if test "x$ac_ct_CC" = x
; then
4605 case $cross_compiling:$ac_tool_warned in
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned
=yes ;;
4618 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4620 as_fn_error
"no acceptable C compiler found in \$PATH
4621 See \`config.log' for more details." "$LINENO" 5; }
4623 # Provide some information about the compiler.
4624 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4627 for ac_option
in --version -v -V -qversion; do
4628 { { ac_try
="$ac_compiler $ac_option >&5"
4630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4634 $as_echo "$ac_try_echo"; } >&5
4635 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 if test -s conftest.err; then
4639 ... rest of stderr output deleted ...
4640 10q' conftest.err >conftest.er1
4641 cat conftest.er1 >&5
4642 rm -f conftest.er1 conftest.err
4644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4649 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4650 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4667 if ac_fn_c_try_compile "$LINENO"; then :
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4677 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4678 if test $ac_compiler_gnu = yes; then
4683 ac_test_CFLAGS=${CFLAGS+set}
4684 ac_save_CFLAGS=$CFLAGS
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4686 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4687 if test "${ac_cv_prog_cc_g+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 ac_save_c_werror_flag=$ac_c_werror_flag
4691 ac_c_werror_flag=yes
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4705 if ac_fn_c_try_compile "$LINENO"; then :
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4720 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_c_werror_flag=$ac_save_c_werror_flag
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4736 if ac_fn_c_try_compile "$LINENO"; then :
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_c_werror_flag=$ac_save_c_werror_flag
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4747 $as_echo "$ac_cv_prog_cc_g" >&6; }
4748 if test "$ac_test_CFLAGS" = set; then
4749 CFLAGS=$ac_save_CFLAGS
4750 elif test $ac_cv_prog_cc_g = yes; then
4751 if test "$GCC" = yes; then
4757 if test "$GCC" = yes; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4764 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4765 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4768 ac_cv_prog_cc_c89=no
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4774 #include <sys/types.h>
4775 #include <sys/stat.h>
4776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4777 struct buf { int x; };
4778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4779 static char *e (p, i)
4785 static char *f (char * (*g) (char **, int), char **p, ...)
4790 s = g (p, va_arg (v,int));
4795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4796 function prototypes and stuff, but not '\xHH' hex character constants.
4797 These don't provoke an error unfortunately, instead are silently treated
4798 as 'x'. The following induces an error, until -std is added to get
4799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4800 array size at least. It's necessary to write '\x00'==0 to get something
4801 that's true only with -std. */
4802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4805 inside strings and character constants. */
4807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4809 int test (int i, double x);
4810 struct s1 {int (*f) (int a);};
4811 struct s2 {int (*f) (double a);};
4812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4826 CC="$ac_save_CC $ac_arg"
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 ac_cv_prog_cc_c89=$ac_arg
4830 rm -f core conftest.err conftest.$ac_objext
4831 test "x$ac_cv_prog_cc_c89" != "xno" && break
4833 rm -f conftest.$ac_ext
4838 case "x$ac_cv_prog_cc_c89" in
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4841 $as_echo "none needed" >&6; } ;;
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4844 $as_echo "unsupported" >&6; } ;;
4846 CC="$CC $ac_cv_prog_cc_c89"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4850 if test "x$ac_cv_prog_cc_c89" != xno; then :
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4861 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4865 for ac_dir in ../.. "$srcdir"/../..; do
4866 for ac_t in install-sh install.sh shtool; do
4867 if test -f "$ac_dir/$ac_t"; then
4869 ac_install_sh="$ac_aux_dir/$ac_t -c"
4874 if test -z "$ac_aux_dir"; then
4875 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4878 # These three variables are undocumented and unsupported,
4879 # and are intended to be withdrawn in a future Autoconf release.
4880 # They can cause serious problems if a builder's source tree is in a directory
4881 # whose full name contains unusual characters.
4882 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4883 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4884 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4888 $as_echo_n "checking target system type... " >&6; }
4889 if test "${ac_cv_target+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4892 if test "x$target_alias" = x; then
4893 ac_cv_target=$ac_cv_host
4895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4896 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4901 $as_echo "$ac_cv_target" >&6; }
4902 case $ac_cv_target in
4904 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4906 target=$ac_cv_target
4907 ac_save_IFS=$IFS; IFS='-'
4913 # Remember, the first character of IFS is used to create $*,
4914 # except with old shells:
4917 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
4920 # The aliases save the names the user supplied, while $host etc.
4921 # will get canonicalized.
4922 test -n "$target_alias" &&
4923 test "$program_prefix$program_suffix$program_transform_name" = \
4925 program_prefix=${target_alias}-
4933 LIBC_FATAL_STDERR_=1
4934 export LIBC_FATAL_STDERR_
4936 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4937 # for constant arguments. Useless!
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4939 $as_echo_n "checking for working alloca.h... " >&6; }
4940 if test "${ac_cv_working_alloca_h+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4949 char *p = (char *) alloca (2 * sizeof (int));
4955 if ac_fn_c_try_link "$LINENO"; then :
4956 ac_cv_working_alloca_h=yes
4958 ac_cv_working_alloca_h=no
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4964 $as_echo "$ac_cv_working_alloca_h" >&6; }
4965 if test $ac_cv_working_alloca_h = yes; then
4967 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4972 $as_echo_n "checking for alloca... " >&6; }
4973 if test "${ac_cv_func_alloca_works+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4979 # define alloca __builtin_alloca
4982 # include <malloc.h>
4983 # define alloca _alloca
4985 # ifdef HAVE_ALLOCA_H
4986 # include <alloca.h>
4991 # ifndef alloca /* predefined by HP cc +Olibcalls */
5002 char *p = (char *) alloca (1);
5008 if ac_fn_c_try_link "$LINENO"; then :
5009 ac_cv_func_alloca_works=yes
5011 ac_cv_func_alloca_works=no
5013 rm -f core conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5017 $as_echo "$ac_cv_func_alloca_works" >&6; }
5019 if test $ac_cv_func_alloca_works = yes; then
5021 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5024 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5025 # that cause trouble. Some versions do not even contain alloca or
5026 # contain a buggy version. If you still want to use their alloca,
5027 # use ar to extract alloca.o from them instead of compiling alloca.c.
5033 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5035 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5039 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5040 if test "${ac_cv_os_cray+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #if defined CRAY && ! defined CRAY2
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053 $EGREP "webecray" >/dev/null 2>&1; then :
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5062 $as_echo "$ac_cv_os_cray" >&6; }
5063 if test $ac_cv_os_cray = yes; then
5064 for ac_func in _getb67 GETB67 getb67; do
5065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5067 eval as_val=\$$as_ac_var
5068 if test "x$as_val" = x""yes; then :
5070 cat >>confdefs.h <<_ACEOF
5071 #define CRAY_STACKSEG_END $ac_func
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5081 $as_echo_n "checking stack direction for C alloca... " >&6; }
5082 if test "${ac_cv_c_stack_direction+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5085 if test "$cross_compiling" = yes; then :
5086 ac_cv_c_stack_direction=0
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 $ac_includes_default
5092 find_stack_direction (int *addr, int depth)
5097 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5098 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5103 main (int argc, char **argv)
5105 return find_stack_direction (0, argc + !argv + 20) < 0;
5108 if ac_fn_c_try_run "$LINENO"; then :
5109 ac_cv_c_stack_direction=1
5111 ac_cv_c_stack_direction=-1
5113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5114 conftest.$ac_objext conftest.beam conftest.$ac_ext
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5119 $as_echo "$ac_cv_c_stack_direction" >&6; }
5120 cat >>confdefs.h <<_ACEOF
5121 #define STACK_DIRECTION $ac_cv_c_stack_direction
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5130 $as_echo_n "checking for mbstate_t... " >&6; }
5131 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 $ac_includes_default
5137 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5139 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5140 included before <wchar.h>. */
5148 mbstate_t x; return sizeof x;
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 ac_cv_type_mbstate_t=yes
5156 ac_cv_type_mbstate_t=no
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5161 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5162 if test $ac_cv_type_mbstate_t = yes; then
5164 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5168 $as_echo "#define mbstate_t int" >>confdefs.h
5176 for ac_func in $gl_func_list
5178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5179 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5180 eval as_val=\$$as_ac_var
5181 if test "x$as_val" = x""yes; then :
5182 cat >>confdefs.h <<_ACEOF
5183 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5232 for ac_header in $gl_header_list
5234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5235 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5236 eval as_val=\$$as_ac_Header
5237 if test "x$as_val" = x""yes; then :
5238 cat >>confdefs.h <<_ACEOF
5239 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5252 $as_echo_n "checking for unsigned long long int... " >&6; }
5253 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5256 ac_cv_type_unsigned_long_long_int=yes
5257 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5261 /* For now, do not test the preprocessor; as of 2007 there are too many
5262 implementations with broken preprocessors. Perhaps this can
5263 be revisited in 2012. In the meantime, code should not expect
5264 #if to work with literals wider than 32 bits. */
5265 /* Test literals. */
5266 long long int ll = 9223372036854775807ll;
5267 long long int nll = -9223372036854775807LL;
5268 unsigned long long int ull = 18446744073709551615ULL;
5269 /* Test constant expressions. */
5270 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5272 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5278 /* Test availability of runtime routines for shift and division. */
5279 long long int llmax = 9223372036854775807ll;
5280 unsigned long long int ullmax = 18446744073709551615ull;
5281 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5282 | (llmax / ll) | (llmax % ll)
5283 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5284 | (ullmax / ull) | (ullmax % ull));
5290 if ac_fn_c_try_link "$LINENO"; then :
5293 ac_cv_type_unsigned_long_long_int=no
5295 rm -f core conftest.err conftest.$ac_objext \
5296 conftest$ac_exeext conftest.$ac_ext
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5300 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5301 if test $ac_cv_type_unsigned_long_long_int = yes; then
5303 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5310 $as_echo_n "checking for long long int... " >&6; }
5311 if test "${ac_cv_type_long_long_int+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5314 ac_cv_type_long_long_int=yes
5315 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5316 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5317 if test $ac_cv_type_long_long_int = yes; then
5318 if test "$cross_compiling" = yes; then :
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5326 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5327 # define LLONG_MAX (HALF - 1 + HALF)
5332 long long int n = 1;
5336 long long int m = n << i;
5339 if (LLONG_MAX / 2 < m)
5347 if ac_fn_c_try_run "$LINENO"; then :
5350 ac_cv_type_long_long_int=no
5352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5353 conftest.$ac_objext conftest.beam conftest.$ac_ext
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5360 $as_echo "$ac_cv_type_long_long_int" >&6; }
5361 if test $ac_cv_type_long_long_int = yes; then
5363 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5375 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5376 if test "${gl_cv_have_include_next+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5379 rm -rf conftestd1a conftestd1b conftestd2
5380 mkdir conftestd1a conftestd1b conftestd2
5381 cat <<EOF > conftestd1a/conftest.h
5382 #define DEFINED_IN_CONFTESTD1
5383 #include_next <conftest.h>
5384 #ifdef DEFINED_IN_CONFTESTD2
5387 #error "include_next doesn't work"
5390 cat <<EOF > conftestd1b/conftest.h
5391 #define DEFINED_IN_CONFTESTD1
5393 #include_next <conftest.h>
5394 #ifdef DEFINED_IN_CONFTESTD2
5397 #error "include_next doesn't work"
5400 cat <<EOF > conftestd2/conftest.h
5401 #ifndef DEFINED_IN_CONFTESTD1
5402 #error "include_next test doesn't work"
5404 #define DEFINED_IN_CONFTESTD2
5406 gl_save_CPPFLAGS="$CPPFLAGS"
5407 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <conftest.h>
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 gl_cv_have_include_next=yes
5415 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <conftest.h>
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 gl_cv_have_include_next=buggy
5423 gl_cv_have_include_next=no
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 CPPFLAGS="$gl_save_CPPFLAGS"
5430 rm -rf conftestd1a conftestd1b conftestd2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5434 $as_echo "$gl_cv_have_include_next" >&6; }
5435 PRAGMA_SYSTEM_HEADER=
5436 if test $gl_cv_have_include_next = yes; then
5437 INCLUDE_NEXT=include_next
5438 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5439 if test -n "$GCC"; then
5440 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5443 if test $gl_cv_have_include_next = buggy; then
5444 INCLUDE_NEXT=include
5445 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5447 INCLUDE_NEXT=include
5448 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5455 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5456 if test "${gl_cv_pragma_columns+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5468 $EGREP "choke me" >/dev/null 2>&1; then :
5469 gl_cv_pragma_columns=yes
5471 gl_cv_pragma_columns=no
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5478 $as_echo "$gl_cv_pragma_columns" >&6; }
5479 if test $gl_cv_pragma_columns = yes; then
5480 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5492 gl_cv_c_multiarch=no
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #ifndef __APPLE_CC__
5496 not a universal capable compiler
5501 if ac_fn_c_try_compile "$LINENO"; then :
5505 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5506 if test -n "$prev"; then
5508 i?86 | x86_64 | ppc | ppc64)
5509 if test -z "$arch" || test "$arch" = "$word"; then
5512 gl_cv_c_multiarch=yes
5518 if test "x$word" = "x-arch"; then
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 if test $gl_cv_c_multiarch = yes; then
5527 APPLE_UNIVERSAL_BUILD=1
5529 APPLE_UNIVERSAL_BUILD=0
5536 if test $ac_cv_type_long_long_int = yes; then
5537 HAVE_LONG_LONG_INT=1
5539 HAVE_LONG_LONG_INT=0
5543 if test $ac_cv_type_unsigned_long_long_int = yes; then
5544 HAVE_UNSIGNED_LONG_LONG_INT=1
5546 HAVE_UNSIGNED_LONG_LONG_INT=0
5557 if test $ac_cv_header_wchar_h = yes; then
5564 if test $ac_cv_header_inttypes_h = yes; then
5571 if test $ac_cv_header_sys_types_h = yes; then
5593 if test $gl_cv_have_include_next = yes; then
5594 gl_cv_next_stdint_h='<'stdint.h'>'
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5597 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5598 if test "${gl_cv_next_stdint_h+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5602 if test $ac_cv_header_stdint_h = yes; then
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5611 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5612 *) gl_absname_cpp="$ac_cpp" ;;
5617 gl_dirsep_regex='[/\\]'
5620 gl_dirsep_regex='\/'
5623 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5625 gl_header_literal_regex=`echo 'stdint.h' \
5626 |
sed -e "$gl_make_literal_regex_sed"`
5627 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5633 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5634 sed -n "$gl_absolute_header_sed"`'"'
5636 gl_cv_next_stdint_h='<'stdint.h'>'
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5642 $as_echo "$gl_cv_next_stdint_h" >&6; }
5644 NEXT_STDINT_H=$gl_cv_next_stdint_h
5646 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5648 gl_next_as_first_directive='<'stdint.h'>'
5650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5651 gl_next_as_first_directive=$gl_cv_next_stdint_h
5653 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5658 if test $ac_cv_header_stdint_h = yes; then
5665 if test $ac_cv_header_stdint_h = yes; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5667 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5668 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5671 gl_cv_header_working_stdint_h=no
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5676 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5678 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5679 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5680 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5685 included before <wchar.h>. */
5696 int8_t a1 = INT8_MAX;
5697 int8_t a1min = INT8_MIN;
5700 int16_t a2 = INT16_MAX;
5701 int16_t a2min = INT16_MIN;
5704 int32_t a3 = INT32_MAX;
5705 int32_t a3min = INT32_MIN;
5708 int64_t a4 = INT64_MAX;
5709 int64_t a4min = INT64_MIN;
5712 uint8_t b1 = UINT8_MAX;
5714 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5717 uint16_t b2 = UINT16_MAX;
5720 uint32_t b3 = UINT32_MAX;
5723 uint64_t b4 = UINT64_MAX;
5725 int_least8_t c1 = INT8_C (0x7f);
5726 int_least8_t c1max = INT_LEAST8_MAX;
5727 int_least8_t c1min = INT_LEAST8_MIN;
5728 int_least16_t c2 = INT16_C (0x7fff);
5729 int_least16_t c2max = INT_LEAST16_MAX;
5730 int_least16_t c2min = INT_LEAST16_MIN;
5731 int_least32_t c3 = INT32_C (0x7fffffff);
5732 int_least32_t c3max = INT_LEAST32_MAX;
5733 int_least32_t c3min = INT_LEAST32_MIN;
5734 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5735 int_least64_t c4max = INT_LEAST64_MAX;
5736 int_least64_t c4min = INT_LEAST64_MIN;
5737 uint_least8_t d1 = UINT8_C (0xff);
5738 uint_least8_t d1max = UINT_LEAST8_MAX;
5739 uint_least16_t d2 = UINT16_C (0xffff);
5740 uint_least16_t d2max = UINT_LEAST16_MAX;
5741 uint_least32_t d3 = UINT32_C (0xffffffff);
5742 uint_least32_t d3max = UINT_LEAST32_MAX;
5743 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5744 uint_least64_t d4max = UINT_LEAST64_MAX;
5745 int_fast8_t e1 = INT_FAST8_MAX;
5746 int_fast8_t e1min = INT_FAST8_MIN;
5747 int_fast16_t e2 = INT_FAST16_MAX;
5748 int_fast16_t e2min = INT_FAST16_MIN;
5749 int_fast32_t e3 = INT_FAST32_MAX;
5750 int_fast32_t e3min = INT_FAST32_MIN;
5751 int_fast64_t e4 = INT_FAST64_MAX;
5752 int_fast64_t e4min = INT_FAST64_MIN;
5753 uint_fast8_t f1 = UINT_FAST8_MAX;
5754 uint_fast16_t f2 = UINT_FAST16_MAX;
5755 uint_fast32_t f3 = UINT_FAST32_MAX;
5756 uint_fast64_t f4 = UINT_FAST64_MAX;
5758 intptr_t g = INTPTR_MAX;
5759 intptr_t gmin = INTPTR_MIN;
5762 uintptr_t h = UINTPTR_MAX;
5764 intmax_t i = INTMAX_MAX;
5765 uintmax_t j = UINTMAX_MAX;
5767 #include <limits.h> /* for CHAR_BIT */
5768 #define TYPE_MINIMUM(t) \
5769 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5770 #define TYPE_MAXIMUM(t) \
5771 ((t) ((t) 0 < (t) -1 \
5773 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5776 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5777 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5779 /* Detect bug in FreeBSD 6.0 / ia64. */
5780 int check_SIG_ATOMIC:
5781 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5782 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5784 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5786 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5787 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5789 /* Detect bug in mingw. */
5791 WINT_MIN == TYPE_MINIMUM (wint_t)
5792 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5795 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5797 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5799 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5801 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5803 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5806 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5809 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5812 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5814 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5815 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5816 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5817 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5818 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5819 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5820 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5821 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5822 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5823 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5824 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5835 if ac_fn_c_try_compile "$LINENO"; then :
5836 if test "$cross_compiling" = yes; then :
5837 gl_cv_header_working_stdint_h=yes
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5844 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5848 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5849 included before <wchar.h>. */
5861 #define MVAL(macro) MVAL1(macro)
5862 #define MVAL1(expression) #expression
5863 static const char *macro_values[] =
5897 for (mv = macro_values; *mv != NULL; mv++)
5899 const char *value = *mv;
5900 /* Test whether it looks like a cast expression. */
5901 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5902 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5903 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5904 || strncmp (value, "((int)"/*)*/, 6) == 0
5905 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5906 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5907 return mv - macro_values + 1;
5915 if ac_fn_c_try_run "$LINENO"; then :
5916 gl_cv_header_working_stdint_h=yes
5918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5919 conftest.$ac_objext conftest.beam conftest.$ac_ext
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5928 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5930 if test "$gl_cv_header_working_stdint_h" = yes; then
5933 for ac_header in sys/inttypes.h sys/bitypes.h
5935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5937 eval as_val=\$$as_ac_Header
5938 if test "x$as_val" = x""yes; then :
5939 cat >>confdefs.h <<_ACEOF
5940 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5947 if test $ac_cv_header_sys_inttypes_h = yes; then
5948 HAVE_SYS_INTTYPES_H=1
5950 HAVE_SYS_INTTYPES_H=0
5953 if test $ac_cv_header_sys_bitypes_h = yes; then
5954 HAVE_SYS_BITYPES_H=1
5956 HAVE_SYS_BITYPES_H=0
5962 if test $APPLE_UNIVERSAL_BUILD = 0; then
5965 for gltype in ptrdiff_t size_t ; do
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5967 $as_echo_n "checking for bit size of $gltype... " >&6; }
5968 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5969 $as_echo_n "(cached) " >&6
5971 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5973 included before <wchar.h>. */
5982 #include <limits.h>"; then :
5988 eval gl_cv_bitsizeof_${gltype}=\$result
5991 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5993 $as_echo "$ac_res" >&6; }
5994 eval result=\$gl_cv_bitsizeof_${gltype}
5995 if test $result = unknown; then
5998 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5999 cat >>confdefs.h <<_ACEOF
6000 #define BITSIZEOF_${GLTYPE} $result
6003 eval BITSIZEOF_${GLTYPE}=\$result
6010 for gltype in sig_atomic_t wchar_t wint_t ; do
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6012 $as_echo_n "checking for bit size of $gltype... " >&6; }
6013 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6014 $as_echo_n "(cached) " >&6
6016 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6017 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6018 included before <wchar.h>. */
6027 #include <limits.h>"; then :
6033 eval gl_cv_bitsizeof_${gltype}=\$result
6036 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6038 $as_echo "$ac_res" >&6; }
6039 eval result=\$gl_cv_bitsizeof_${gltype}
6040 if test $result = unknown; then
6043 GLTYPE=`echo "$gltype" |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6044 cat >>confdefs.h <<_ACEOF
6045 #define BITSIZEOF_${GLTYPE} $result
6048 eval BITSIZEOF_${GLTYPE}=\$result
6054 for gltype in sig_atomic_t wchar_t wint_t ; do
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6056 $as_echo_n "checking whether $gltype is signed... " >&6; }
6057 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6058 $as_echo_n "(cached) " >&6
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6063 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6064 included before <wchar.h>. */
6073 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6082 if ac_fn_c_try_compile "$LINENO"; then :
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 eval gl_cv_type_${gltype}_signed=\$result
6091 eval ac_res=\$gl_cv_type_${gltype}_signed
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6093 $as_echo "$ac_res" >&6; }
6094 eval result=\$gl_cv_type_${gltype}_signed
6095 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6096 if test "$result" = yes; then
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_SIGNED_${GLTYPE} 1
6101 eval HAVE_SIGNED_${GLTYPE}=1
6103 eval HAVE_SIGNED_${GLTYPE}=0
6108 gl_cv_type_ptrdiff_t_signed=yes
6109 gl_cv_type_size_t_signed=no
6110 if test $APPLE_UNIVERSAL_BUILD = 0; then
6113 for gltype in ptrdiff_t size_t ; do
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6115 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6116 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6117 $as_echo_n "(cached) " >&6
6119 eval gl_cv_type_${gltype}_suffix=no
6120 eval result=\$gl_cv_type_${gltype}_signed
6121 if test "$result" = yes; then
6126 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6129 l) gltype1='long int';;
6130 ll) gltype1='long long int';;
6131 i64) gltype1='__int64';;
6132 u) gltype1='unsigned int';;
6133 ul) gltype1='unsigned long int';;
6134 ull) gltype1='unsigned long long int';;
6135 ui64)gltype1='unsigned __int64';;
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6140 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6141 included before <wchar.h>. */
6151 extern $gltype1 foo;
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 eval gl_cv_type_${gltype}_suffix=\$glsuf
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 eval result=\$gl_cv_type_${gltype}_suffix
6165 test "$result" != no && break
6168 eval ac_res=\$gl_cv_type_${gltype}_suffix
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6170 $as_echo "$ac_res" >&6; }
6171 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6172 eval result=\$gl_cv_type_${gltype}_suffix
6173 test "$result" = no && result=
6174 eval ${GLTYPE}_SUFFIX=\$result
6175 cat >>confdefs.h <<_ACEOF
6176 #define ${GLTYPE}_SUFFIX $result
6185 for gltype in sig_atomic_t wchar_t wint_t ; do
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6187 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6188 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6189 $as_echo_n "(cached) " >&6
6191 eval gl_cv_type_${gltype}_suffix=no
6192 eval result=\$gl_cv_type_${gltype}_signed
6193 if test "$result" = yes; then
6198 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6201 l) gltype1='long int';;
6202 ll) gltype1='long long int';;
6203 i64) gltype1='__int64';;
6204 u) gltype1='unsigned int';;
6205 ul) gltype1='unsigned long int';;
6206 ull) gltype1='unsigned long long int';;
6207 ui64)gltype1='unsigned __int64';;
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6212 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6213 included before <wchar.h>. */
6223 extern $gltype1 foo;
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 eval gl_cv_type_${gltype}_suffix=\$glsuf
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 eval result=\$gl_cv_type_${gltype}_suffix
6237 test "$result" != no && break
6240 eval ac_res=\$gl_cv_type_${gltype}_suffix
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6242 $as_echo "$ac_res" >&6; }
6243 GLTYPE=`echo $gltype |
tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6244 eval result=\$gl_cv_type_${gltype}_suffix
6245 test "$result" = no && result=
6246 eval ${GLTYPE}_SUFFIX=\$result
6247 cat >>confdefs.h <<_ACEOF
6248 #define ${GLTYPE}_SUFFIX $result
6255 if test $BITSIZEOF_WINT_T -lt 32; then
6262 if test -n "$STDINT_H"; then
6263 GL_GENERATE_STDINT_H_TRUE=
6264 GL_GENERATE_STDINT_H_FALSE='#'
6266 GL_GENERATE_STDINT_H_TRUE='#'
6267 GL_GENERATE_STDINT_H_FALSE=
6281 HAVE_DECL_IMAXABS=1;
6282 HAVE_DECL_IMAXDIV=1;
6283 HAVE_DECL_STRTOIMAX=1;
6284 HAVE_DECL_STRTOUMAX=1;
6285 REPLACE_STRTOIMAX=0;
6286 INT32_MAX_LT_INTMAX_MAX=1;
6287 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6288 PRI_MACROS_BROKEN=0;
6289 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6290 UINT32_MAX_LT_UINTMAX_MAX=1;
6291 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6319 if test $gl_cv_have_include_next = yes; then
6320 gl_cv_next_inttypes_h='<'inttypes.h'>'
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6323 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6324 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6328 if test $ac_cv_header_inttypes_h = yes; then
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333 #include <inttypes.h>
6337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6338 *) gl_absname_cpp="$ac_cpp" ;;
6343 gl_dirsep_regex='[/\\]'
6346 gl_dirsep_regex='\/'
6349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6351 gl_header_literal_regex=`echo 'inttypes.h' \
6352 |
sed -e "$gl_make_literal_regex_sed"`
6353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6359 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6360 sed -n "$gl_absolute_header_sed"`'"'
6362 gl_cv_next_inttypes_h='<'inttypes.h'>'
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6368 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6370 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6374 gl_next_as_first_directive='<'inttypes.h'>'
6376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6377 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6379 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6388 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6389 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6391 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6392 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6393 $as_echo_n "(cached) " >&6
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #include <inttypes.h>
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 eval "$as_gl_Symbol=yes"
6411 eval "$as_gl_Symbol=no"
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 eval ac_res=\$$as_gl_Symbol
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6417 $as_echo "$ac_res" >&6; }
6418 eval as_val=\$$as_gl_Symbol
6419 if test "x$as_val" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
6424 eval ac_cv_have_decl_$gl_func=yes
6430 for ac_header in inttypes.h
6432 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6433 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6434 cat >>confdefs.h <<_ACEOF
6435 #define HAVE_INTTYPES_H 1
6442 if test $ac_cv_header_inttypes_h = yes; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6444 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6445 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6452 #include <inttypes.h>
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 gt_cv_inttypes_pri_broken=no
6468 gt_cv_inttypes_pri_broken=yes
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6474 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6476 if test "$gt_cv_inttypes_pri_broken" = yes; then
6478 cat >>confdefs.h <<_ACEOF
6479 #define PRI_MACROS_BROKEN 1
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6490 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6491 if test "${am_cv_langinfo_codeset+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #include <langinfo.h>
6500 char* cs = nl_langinfo(CODESET); return !cs;
6505 if ac_fn_c_try_link "$LINENO"; then :
6506 am_cv_langinfo_codeset=yes
6508 am_cv_langinfo_codeset=no
6510 rm -f core conftest.err conftest.$ac_objext \
6511 conftest$ac_exeext conftest.$ac_ext
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6515 $as_echo "$am_cv_langinfo_codeset" >&6; }
6516 if test $am_cv_langinfo_codeset = yes; then
6518 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6550 $as_echo_n "checking for working fcntl.h... " >&6; }
6551 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6554 if test "$cross_compiling" = yes; then :
6555 gl_cv_header_working_fcntl_h=cross-compiling
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 #include <sys/types.h>
6560 #include <sys/stat.h>
6562 # include <unistd.h>
6563 #else /* on Windows with MSVC */
6565 # include <stdlib.h>
6566 # defined sleep(n) _sleep ((n) * 1000)
6573 #define O_NOFOLLOW 0
6575 static int const constants[] =
6577 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6578 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6585 int result = !constants;
6588 static char const sym[] = "conftest.sym";
6589 if (symlink (".", sym) != 0)
6593 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6604 static char const file[] = "confdefs.h";
6605 int fd = open (file, O_RDONLY | O_NOATIME);
6611 if (fstat (fd, &st0) != 0)
6617 if (read (fd, &c, 1) != 1)
6621 if (close (fd) != 0)
6626 if (stat (file, &st1) != 0)
6629 if (st0.st_atime != st1.st_atime)
6641 if ac_fn_c_try_run "$LINENO"; then :
6642 gl_cv_header_working_fcntl_h=yes
6645 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6646 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6647 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6648 *) gl_cv_header_working_fcntl_h='no';;
6651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652 conftest.$ac_objext conftest.beam conftest.$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6657 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6659 case $gl_cv_header_working_fcntl_h in #(
6660 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6664 cat >>confdefs.h <<_ACEOF
6665 #define HAVE_WORKING_O_NOATIME $ac_val
6669 case $gl_cv_header_working_fcntl_h in #(
6670 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6674 cat >>confdefs.h <<_ACEOF
6675 #define HAVE_WORKING_O_NOFOLLOW $ac_val
6680 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6681 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
6687 cat >>confdefs.h <<_ACEOF
6688 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6694 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6695 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6701 #include <features.h>
6702 #ifdef __GNU_LIBRARY__
6703 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 $EGREP "Lucky" >/dev/null 2>&1; then :
6714 ac_cv_gnu_library_2_1=yes
6716 ac_cv_gnu_library_2_1=no
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6724 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
6726 GLIBC21="$ac_cv_gnu_library_2_1"
6736 GNULIB_MBSNRTOWCS=0;
6739 GNULIB_WCSNRTOMBS=0;
6756 GNULIB_WCSCASECMP=0;
6757 GNULIB_WCSNCASECMP=0;
6807 HAVE_DECL_WCWIDTH=1;
6808 REPLACE_MBSTATE_T=0;
6814 REPLACE_MBSRTOWCS=0;
6815 REPLACE_MBSNRTOWCS=0;
6817 REPLACE_WCSRTOMBS=0;
6818 REPLACE_WCSNRTOMBS=0;
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
6836 $as_echo_n "checking for a traditional japanese locale... " >&6; }
6837 if test "${gt_cv_locale_ja+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6846 #if HAVE_LANGINFO_CODESET
6847 # include <langinfo.h>
6856 /* Check whether the given locale name is recognized by the system. */
6857 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6858 /* On native Windows, setlocale(category, "") looks at the system settings,
6859 not at the environment variables. Also, when an encoding suffix such
6860 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
6861 category of the locale to "C". */
6862 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
6863 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
6866 if (setlocale (LC_ALL, "") == NULL) return 1;
6868 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6869 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6870 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6871 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6872 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6873 some unit tests fail.
6874 On MirBSD 10, when an unsupported locale is specified, setlocale()
6875 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
6876 #if HAVE_LANGINFO_CODESET
6878 const char *cs = nl_langinfo (CODESET);
6879 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
6880 || strcmp (cs, "UTF-8") == 0)
6885 /* On Cygwin, avoid locale names without encoding suffix, because the
6886 locale_charset() function relies on the encoding suffix. Note that
6887 LC_ALL is set on the command line. */
6888 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
6890 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
6892 if (MB_CUR_MAX == 1)
6894 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
6895 This excludes the UTF-8 encoding (except on MirBSD). */
6896 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
6897 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
6898 for (p = buf; *p != '\0'; p++)
6899 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6906 (eval $ac_link) 2>&5
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6911 # Handle native Windows specially, because there setlocale() interprets
6912 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
6913 # "fr" or "fra" as "French" or "French_France.1252",
6914 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
6915 # "ja" as "Japanese" or "Japanese_Japan.932",
6918 # Note that on native Windows, the Japanese locale is
6919 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
6920 # cannot use it here.
6921 gt_cv_locale_ja=none
6924 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
6925 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
6926 # configure script would override the LC_ALL setting. Likewise for
6927 # LC_CTYPE, which is also set at the beginning of the configure script.
6928 # Test for the AIX locale name.
6929 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6930 gt_cv_locale_ja=ja_JP
6932 # Test for the locale name with explicit encoding suffix.
6933 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6934 gt_cv_locale_ja=ja_JP.EUC-JP
6936 # Test for the HP-UX, OSF/1, NetBSD locale name.
6937 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6938 gt_cv_locale_ja=ja_JP.eucJP
6940 # Test for the IRIX, FreeBSD locale name.
6941 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6942 gt_cv_locale_ja=ja_JP.EUC
6944 # Test for the Solaris 7 locale name.
6945 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6948 # Special test for NetBSD 1.6.
6949 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
6950 gt_cv_locale_ja=ja_JP.eucJP
6953 gt_cv_locale_ja=none
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
6967 $as_echo "$gt_cv_locale_ja" >&6; }
6968 LOCALE_JA=$gt_cv_locale_ja
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
6975 $as_echo_n "checking for a transitional chinese locale... " >&6; }
6976 if test "${gt_cv_locale_zh_CN+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6986 #if HAVE_LANGINFO_CODESET
6987 # include <langinfo.h>
6996 /* Check whether the given locale name is recognized by the system. */
6997 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6998 /* On native Windows, setlocale(category, "") looks at the system settings,
6999 not at the environment variables. Also, when an encoding suffix such
7000 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7001 category of the locale to "C". */
7002 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7003 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7006 if (setlocale (LC_ALL, "") == NULL) return 1;
7008 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7009 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7010 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7011 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7012 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7013 some unit tests fail.
7014 On MirBSD 10, when an unsupported locale is specified, setlocale()
7015 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7016 #if HAVE_LANGINFO_CODESET
7018 const char *cs = nl_langinfo (CODESET);
7019 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7020 || strcmp (cs, "UTF-8") == 0)
7025 /* On Cygwin, avoid locale names without encoding suffix, because the
7026 locale_charset() function relies on the encoding suffix. Note that
7027 LC_ALL is set on the command line. */
7028 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7030 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7031 This excludes the UTF-8 encoding (except on MirBSD). */
7032 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7033 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7034 for (p = buf; *p != '\0'; p++)
7035 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7037 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7038 single wide character. This excludes the GB2312 and GBK encodings. */
7039 if (mblen ("\203\062\332\066", 5) != 4)
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7046 (eval $ac_link) 2>&5
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7051 # Handle native Windows specially, because there setlocale() interprets
7052 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7053 # "fr" or "fra" as "French" or "French_France.1252",
7054 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7055 # "ja" as "Japanese" or "Japanese_Japan.932",
7058 # Test for the hypothetical native Windows locale name.
7059 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7060 gt_cv_locale_zh_CN=Chinese_China.54936
7063 gt_cv_locale_zh_CN=none
7067 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7068 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7069 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7070 gt_cv_locale_zh_CN=none
7073 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7074 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7075 # configure script would override the LC_ALL setting. Likewise for
7076 # LC_CTYPE, which is also set at the beginning of the configure script.
7077 # Test for the locale name without encoding suffix.
7078 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7079 gt_cv_locale_zh_CN=zh_CN
7081 # Test for the locale name with explicit encoding suffix.
7082 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7083 gt_cv_locale_zh_CN=zh_CN.GB18030
7086 gt_cv_locale_zh_CN=none
7092 # If there was a link error, due to mblen(), the system is so old that
7093 # it certainly doesn't have a chinese locale.
7094 gt_cv_locale_zh_CN=none
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7100 $as_echo "$gt_cv_locale_zh_CN" >&6; }
7101 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7107 $as_echo_n "checking for a french Unicode locale... " >&6; }
7108 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7117 #if HAVE_LANGINFO_CODESET
7118 # include <langinfo.h>
7125 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7126 imitates locale dependent behaviour by looking at the environment
7127 variables, and all locales use the UTF-8 encoding. */
7128 #if !(defined __BEOS__ || defined __HAIKU__)
7129 /* Check whether the given locale name is recognized by the system. */
7130 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7131 /* On native Windows, setlocale(category, "") looks at the system settings,
7132 not at the environment variables. Also, when an encoding suffix such
7133 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7134 category of the locale to "C". */
7135 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7136 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7139 if (setlocale (LC_ALL, "") == NULL) return 1;
7141 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7142 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7143 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7144 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7145 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7146 some unit tests fail. */
7147 # if HAVE_LANGINFO_CODESET
7149 const char *cs = nl_langinfo (CODESET);
7150 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7155 /* On Cygwin, avoid locale names without encoding suffix, because the
7156 locale_charset() function relies on the encoding suffix. Note that
7157 LC_ALL is set on the command line. */
7158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7160 /* Check whether in the abbreviation of the second month, the second
7161 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7162 two bytes long, with UTF-8 encoding. */
7163 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7164 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7165 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7168 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7169 /* Check whether the decimal separator is a comma.
7170 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7171 are nl_langinfo(RADIXCHAR) are both ".". */
7172 if (localeconv () ->decimal_point[0] != ',') return 1;
7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7179 (eval $ac_link) 2>&5
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7184 # Handle native Windows specially, because there setlocale() interprets
7185 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7186 # "fr" or "fra" as "French" or "French_France.1252",
7187 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7188 # "ja" as "Japanese" or "Japanese_Japan.932",
7191 # Test for the hypothetical native Windows locale name.
7192 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7193 gt_cv_locale_fr_utf8=French_France.65001
7196 gt_cv_locale_fr_utf8=none
7200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7201 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7202 # configure script would override the LC_ALL setting. Likewise for
7203 # LC_CTYPE, which is also set at the beginning of the configure script.
7204 # Test for the usual locale name.
7205 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7206 gt_cv_locale_fr_utf8=fr_FR
7208 # Test for the locale name with explicit encoding suffix.
7209 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7210 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7212 # Test for the Solaris 7 locale name.
7213 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7214 gt_cv_locale_fr_utf8=fr.UTF-8
7217 gt_cv_locale_fr_utf8=none
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7228 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
7229 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7236 $as_echo_n "checking for a traditional french locale... " >&6; }
7237 if test "${gt_cv_locale_fr+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7246 #if HAVE_LANGINFO_CODESET
7247 # include <langinfo.h>
7254 /* Check whether the given locale name is recognized by the system. */
7255 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7256 /* On native Windows, setlocale(category, "") looks at the system settings,
7257 not at the environment variables. Also, when an encoding suffix such
7258 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7259 category of the locale to "C". */
7260 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7261 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7264 if (setlocale (LC_ALL, "") == NULL) return 1;
7266 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7267 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7268 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7269 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7270 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7271 some unit tests fail.
7272 On MirBSD 10, when an unsupported locale is specified, setlocale()
7273 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7274 #if HAVE_LANGINFO_CODESET
7276 const char *cs = nl_langinfo (CODESET);
7277 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7278 || strcmp (cs, "UTF-8") == 0)
7283 /* On Cygwin, avoid locale names without encoding suffix, because the
7284 locale_charset() function relies on the encoding suffix. Note that
7285 LC_ALL is set on the command line. */
7286 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7288 /* Check whether in the abbreviation of the second month, the second
7289 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7290 one byte long. This excludes the UTF-8 encoding. */
7291 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7292 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7293 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7294 /* Check whether the decimal separator is a comma.
7295 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7296 are nl_langinfo(RADIXCHAR) are both ".". */
7297 if (localeconv () ->decimal_point[0] != ',') return 1;
7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7304 (eval $ac_link) 2>&5
7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7309 # Handle native Windows specially, because there setlocale() interprets
7310 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7311 # "fr" or "fra" as "French" or "French_France.1252",
7312 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7313 # "ja" as "Japanese" or "Japanese_Japan.932",
7316 # Test for the native Windows locale name.
7317 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7318 gt_cv_locale_fr=French_France.1252
7321 gt_cv_locale_fr=none
7325 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7326 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7327 # configure script would override the LC_ALL setting. Likewise for
7328 # LC_CTYPE, which is also set at the beginning of the configure script.
7329 # Test for the usual locale name.
7330 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7331 gt_cv_locale_fr=fr_FR
7333 # Test for the locale name with explicit encoding suffix.
7334 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7335 gt_cv_locale_fr=fr_FR.ISO-8859-1
7337 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7338 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7339 gt_cv_locale_fr=fr_FR.ISO8859-1
7341 # Test for the HP-UX locale name.
7342 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7343 gt_cv_locale_fr=fr_FR.iso88591
7345 # Test for the Solaris 7 locale name.
7346 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7350 gt_cv_locale_fr=none
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7363 $as_echo "$gt_cv_locale_fr" >&6; }
7364 LOCALE_FR=$gt_cv_locale_fr
7395 GNULIB_STRCASESTR=0;
7402 GNULIB_MBSCASECMP=0;
7403 GNULIB_MBSNCASECMP=0;
7404 GNULIB_MBSPCASECMP=0;
7405 GNULIB_MBSCASESTR=0;
7412 GNULIB_STRERROR_R=0;
7414 GNULIB_STRVERSCMP=0;
7421 HAVE_DECL_MEMRCHR=1;
7427 HAVE_DECL_STRNDUP=1;
7428 HAVE_DECL_STRNLEN=1;
7432 HAVE_DECL_STRTOK_R=1;
7433 HAVE_DECL_STRERROR_R=1;
7434 HAVE_DECL_STRSIGNAL=1;
7441 REPLACE_STRCASESTR=0;
7442 REPLACE_STRCHRNUL=0;
7444 REPLACE_STRERROR_R=0;
7448 REPLACE_STRSIGNAL=0;
7450 UNDEFINE_STRTOK_R=0;
7456 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7457 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7458 # irrelevant for anonymous mappings.
7459 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7460 if test "x$ac_cv_func_mmap" = x""yes; then :
7467 # Try to allow MAP_ANONYMOUS.
7468 gl_have_mmap_anonymous=no
7469 if test $gl_have_mmap = yes; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7471 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7475 #include <sys/mman.h>
7476 #ifdef MAP_ANONYMOUS
7477 I cannot identify this map
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7483 gl_have_mmap_anonymous=yes
7487 if test $gl_have_mmap_anonymous != yes; then
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7491 #include <sys/mman.h>
7493 I cannot identify this map
7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7500 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7502 gl_have_mmap_anonymous=yes
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7508 $as_echo "$gl_have_mmap_anonymous" >&6; }
7509 if test $gl_have_mmap_anonymous = yes; then
7511 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7533 if test $HAVE_MEMCHR = 1; then
7534 # Detect platform-specific bugs in some versions of glibc:
7535 # memchr should not dereference anything with length 0
7536 # http://bugzilla.redhat.com/499689
7537 # memchr should not dereference overestimated length after a match
7538 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7539 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7540 # Assume that memchr works on platforms that lack mprotect.
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7542 $as_echo_n "checking whether memchr works... " >&6; }
7543 if test "${gl_cv_func_memchr_works+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7546 if test "$cross_compiling" = yes; then :
7547 gl_cv_func_memchr_works="guessing no"
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7555 # include <unistd.h>
7556 # include <sys/types.h>
7557 # include <sys/mman.h>
7569 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7570 # if HAVE_MAP_ANONYMOUS
7571 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7573 # else /* !HAVE_MAP_ANONYMOUS */
7574 const int flags = MAP_FILE | MAP_PRIVATE;
7575 int fd = open ("/dev/zero", O_RDONLY, 0666);
7579 int pagesize = getpagesize ();
7581 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7583 if (two_pages != (char *)(-1)
7584 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7585 fence = two_pages + pagesize;
7590 if (memchr (fence, 0, 0))
7592 strcpy (fence - 9, "12345678");
7593 if (memchr (fence - 9, 0, 79) != fence - 1)
7595 if (memchr (fence - 1, 0, 3) != fence - 1)
7604 if ac_fn_c_try_run "$LINENO"; then :
7605 gl_cv_func_memchr_works=yes
7607 gl_cv_func_memchr_works=no
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610 conftest.$ac_objext conftest.beam conftest.$ac_ext
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
7615 $as_echo "$gl_cv_func_memchr_works" >&6; }
7616 if test "$gl_cv_func_memchr_works" != yes; then
7622 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7623 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7629 cat >>confdefs.h <<_ACEOF
7630 #define HAVE_DECL_MEMMEM $ac_have_decl
7638 for ac_func in memmem
7640 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7641 if test "x$ac_cv_func_memmem" = x""yes; then :
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_MEMMEM 1
7649 if test $ac_cv_func_memmem = yes; then
7661 if test $ac_cv_have_decl_memmem = no; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7665 $as_echo_n "checking whether memmem works... " >&6; }
7666 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7669 if test "$cross_compiling" = yes; then :
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7673 #ifdef __GNU_LIBRARY__
7674 #include <features.h>
7675 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7676 || __GLIBC_MINOR__ > 12)) \
7677 || (__GLIBC__ > 2)) \
7678 || defined __UCLIBC__
7681 #elif defined __CYGWIN__
7682 #include <cygwin/version.h>
7683 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "Lucky user" >/dev/null 2>&1; then :
7693 gl_cv_func_memmem_works_always="guessing yes"
7695 gl_cv_func_memmem_works_always="guessing no"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7704 #include <string.h> /* for memmem */
7705 #define P "_EF_BF_BD"
7706 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7707 #define NEEDLE P P P P P
7714 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7716 /* Check for empty needle behavior. */
7718 const char *haystack = "AAA";
7719 if (memmem (haystack, 3, NULL, 0) != haystack)
7728 if ac_fn_c_try_run "$LINENO"; then :
7729 gl_cv_func_memmem_works_always=yes
7731 gl_cv_func_memmem_works_always=no
7733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7734 conftest.$ac_objext conftest.beam conftest.$ac_ext
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7740 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
7741 case "$gl_cv_func_memmem_works_always" in
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7751 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7752 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7758 #include <stdbool.h>
7760 "error: bool is not defined"
7763 "error: false is not defined"
7766 "error: false is not 0"
7769 "error: true is not defined"
7772 "error: true is not 1"
7774 #ifndef __bool_true_false_are_defined
7775 "error: __bool_true_false_are_defined is not defined"
7778 struct s { _Bool s: 1; _Bool t; } s;
7780 char a[true == 1 ? 1 : -1];
7781 char b[false == 0 ? 1 : -1];
7782 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7783 char d[(bool) 0.5 == true ? 1 : -1];
7784 /* See body of main program for 'e'. */
7785 char f[(_Bool) 0.0 == false ? 1 : -1];
7787 char h[sizeof (_Bool)];
7789 enum { j = false, k = true, l = false * true, m = true * 256 };
7790 /* The following fails for
7791 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7793 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7794 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7795 /* Catch a bug in an HP-UX C compiler. See
7796 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7797 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7809 /* Refer to every declared value, to avoid compiler optimizations. */
7810 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7811 + !m + !n + !o + !p + !q + !pq);
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 ac_cv_header_stdbool_h=yes
7820 ac_cv_header_stdbool_h=no
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7825 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7826 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7827 if test "x$ac_cv_type__Bool" = x""yes; then :
7829 cat >>confdefs.h <<_ACEOF
7830 #define HAVE__BOOL 1
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7843 $as_echo_n "checking for wchar_t... " >&6; }
7844 if test "${gt_cv_c_wchar_t+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7850 wchar_t foo = (wchar_t)'\0';
7859 if ac_fn_c_try_compile "$LINENO"; then :
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7867 $as_echo "$gt_cv_c_wchar_t" >&6; }
7868 if test $gt_cv_c_wchar_t = yes; then
7870 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7875 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7876 if test "${ac_cv_c_restrict+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
7880 # The order here caters to the fact that C++ does not require restrict.
7881 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 typedef int * int_ptr;
7885 int foo (int_ptr $ac_kw ip) {
7899 if ac_fn_c_try_compile "$LINENO"; then :
7900 ac_cv_c_restrict=$ac_kw
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 test "$ac_cv_c_restrict" != no && break
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7908 $as_echo "$ac_cv_c_restrict" >&6; }
7910 case $ac_cv_c_restrict in
7912 no) $as_echo "#define restrict /**/" >>confdefs.h
7914 *) cat >>confdefs.h <<_ACEOF
7915 #define restrict $ac_cv_c_restrict
7931 if test $gl_cv_have_include_next = yes; then
7932 gl_cv_next_string_h='<'string.h'>'
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7935 $as_echo_n "checking absolute name of <string.h>... " >&6; }
7936 if test "${gl_cv_next_string_h+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7947 *) gl_absname_cpp="$ac_cpp" ;;
7952 gl_dirsep_regex='[/\\]'
7955 gl_dirsep_regex='\/'
7958 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7960 gl_header_literal_regex=`echo 'string.h' \
7961 |
sed -e "$gl_make_literal_regex_sed"`
7962 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7968 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7969 sed -n "$gl_absolute_header_sed"`'"'
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7974 $as_echo "$gl_cv_next_string_h" >&6; }
7976 NEXT_STRING_H=$gl_cv_next_string_h
7978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7980 gl_next_as_first_directive='<'string.h'>'
7982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7983 gl_next_as_first_directive=$gl_cv_next_string_h
7985 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
7992 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
7993 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7995 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7996 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7997 $as_echo_n "(cached) " >&6
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8012 if ac_fn_c_try_compile "$LINENO"; then :
8013 eval "$as_gl_Symbol=yes"
8015 eval "$as_gl_Symbol=no"
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 eval ac_res=\$$as_gl_Symbol
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8021 $as_echo "$ac_res" >&6; }
8022 eval as_val=\$$as_gl_Symbol
8023 if test "x$as_val" = x""yes; then :
8024 cat >>confdefs.h <<_ACEOF
8025 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
8028 eval ac_cv_have_decl_$gl_func=yes
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8035 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8036 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8039 gl_cv_header_wchar_h_correct_inline=yes
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8043 #define wcstod renamed_wcstod
8044 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8046 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8047 included before <wchar.h>. */
8052 extern int zero (void);
8053 int main () { return zero(); }
8056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8057 (eval $ac_compile) 2>&5
8059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8060 test $ac_status = 0; }; then
8061 mv conftest.$ac_objext conftest1.$ac_objext
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8065 #define wcstod renamed_wcstod
8066 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8068 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8069 included before <wchar.h>. */
8074 int zero (void) { return 0; }
8077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8078 (eval $ac_compile) 2>&5
8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8081 test $ac_status = 0; }; then
8082 mv conftest.$ac_objext conftest2.$ac_objext
8083 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8086 gl_cv_header_wchar_h_correct_inline=no
8090 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8094 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8095 if test $gl_cv_header_wchar_h_correct_inline = no; then
8096 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8097 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8098 C99 mode. You have four options:
8099 - Add the flag -fgnu89-inline to CC and reconfigure, or
8100 - Fix your include files, using parts of
8101 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8102 - Use a gcc version older than 4.3, or
8103 - Don't use the flags -std=c99 or -std=gnu99.
8104 Configuration aborted." "$LINENO" 5
8120 if test $ac_cv_header_features_h = yes; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8129 $as_echo_n "checking for wint_t... " >&6; }
8130 if test "${gt_cv_c_wint_t+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8139 before <wchar.h>. */
8144 wint_t foo = (wchar_t)'\0';
8153 if ac_fn_c_try_compile "$LINENO"; then :
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8161 $as_echo "$gt_cv_c_wint_t" >&6; }
8162 if test $gt_cv_c_wint_t = yes; then
8164 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8185 $as_echo_n "checking for inline... " >&6; }
8186 if test "${ac_cv_c_inline+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8190 for ac_kw in inline __inline__ __inline; do
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8195 static $ac_kw foo_t static_foo () {return 0; }
8196 $ac_kw foo_t foo () {return 0; }
8200 if ac_fn_c_try_compile "$LINENO"; then :
8201 ac_cv_c_inline=$ac_kw
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 test "$ac_cv_c_inline" != no && break
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8209 $as_echo "$ac_cv_c_inline" >&6; }
8211 case $ac_cv_c_inline in
8214 case $ac_cv_c_inline in
8216 *) ac_val=$ac_cv_c_inline;;
8218 cat >>confdefs.h <<_ACEOF
8220 #define inline $ac_val
8228 GL_COND_LIBTOOL_TRUE=
8229 GL_COND_LIBTOOL_FALSE='#'
8231 GL_COND_LIBTOOL_TRUE='#'
8232 GL_COND_LIBTOOL_FALSE=
8235 gl_cond_libtool=false
8238 gl_m4_base='import/m4'
8248 gl_source_base='import'
8251 if test $ac_cv_func_alloca_works = no; then
8255 # Define an additional variable used in the Makefile substitution.
8256 if test $ac_cv_working_alloca_h = yes; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8258 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
8259 if test "${gl_cv_rpl_alloca+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8266 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 $EGREP "Need own alloca" >/dev/null 2>&1; then :
8273 gl_cv_rpl_alloca=yes
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8282 $as_echo "$gl_cv_rpl_alloca" >&6; }
8283 if test $gl_cv_rpl_alloca = yes; then
8285 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8295 if test -n "$ALLOCA_H"; then
8296 GL_GENERATE_ALLOCA_H_TRUE=
8297 GL_GENERATE_ALLOCA_H_FALSE='#'
8299 GL_GENERATE_ALLOCA_H_TRUE='#'
8300 GL_GENERATE_ALLOCA_H_FALSE=
8305 if test "x$datarootdir" = x; then
8306 datarootdir='${datadir}'
8309 if test "x$docdir" = x; then
8310 docdir='${datarootdir}/doc/${PACKAGE}'
8313 if test "x$htmldir" = x; then
8317 if test "x$dvidir" = x; then
8321 if test "x$pdfdir" = x; then
8325 if test "x$psdir" = x; then
8329 if test "x$lispdir" = x; then
8330 lispdir='${datarootdir}/emacs/site-lisp'
8333 if test "x$localedir" = x; then
8334 localedir='${datarootdir}/locale'
8338 pkglibexecdir='${libexecdir}/${PACKAGE}'
8347 gl_fnmatch_required_lowercase=`
8348 echo $gl_fnmatch_required | LC_ALL
=C
tr '[A-Z]' '[a-z]'
8350 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
8352 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
8353 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
8354 $as_echo_n "(cached) " >&6
8356 if test $gl_fnmatch_required = GNU; then
8357 gl_fnmatch_gnu_start=
8360 gl_fnmatch_gnu_start='#if 0'
8361 gl_fnmatch_gnu_end='#endif'
8363 if test "$cross_compiling" = yes; then :
8364 eval "$gl_fnmatch_cache_var=\"guessing no\""
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 #include <fnmatch.h>
8370 y (char const *pattern, char const *string, int flags)
8372 return fnmatch (pattern, string, flags) == 0;
8375 n (char const *pattern, char const *string, int flags)
8377 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
8383 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
8384 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
8385 static char const A_1[] = { 'A' - 1, 0 };
8386 static char const A01[] = { 'A' + 1, 0 };
8387 static char const a_1[] = { 'a' - 1, 0 };
8388 static char const a01[] = { 'a' + 1, 0 };
8389 static char const bs_1[] = { '\\\\' - 1, 0 };
8390 static char const bs01[] = { '\\\\' + 1, 0 };
8392 if (!n ("a*", "", 0))
8394 if (!y ("a*", "abc", 0))
8396 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
8398 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
8400 if (!y ("a\\\\bc", "abc", 0))
8402 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
8404 if (!y ("*x", ".x", 0))
8406 if (!n ("*x", ".x", FNM_PERIOD))
8408 if (!y (Apat, "\\\\", 0))
8410 if (!y (Apat, "A", 0))
8412 if (!y (apat, "\\\\", 0))
8414 if (!y (apat, "a", 0))
8416 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
8418 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
8420 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
8422 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
8424 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
8426 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
8428 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
8430 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
8432 $gl_fnmatch_gnu_start
8433 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
8435 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
8437 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
8439 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
8441 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
8443 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
8452 if ac_fn_c_try_run "$LINENO"; then :
8453 eval "$gl_fnmatch_cache_var=yes"
8455 eval "$gl_fnmatch_cache_var=no"
8457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8458 conftest.$ac_objext conftest.beam conftest.$ac_ext
8463 eval ac_res=\$$gl_fnmatch_cache_var
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8465 $as_echo "$ac_res" >&6; }
8466 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
8467 if test "$gl_fnmatch_result" = yes; then
8468 rm -f "$gl_source_base/fnmatch.h"
8473 if test -n "$FNMATCH_H"; then
8474 GL_GENERATE_FNMATCH_H_TRUE=
8475 GL_GENERATE_FNMATCH_H_FALSE='#'
8477 GL_GENERATE_FNMATCH_H_TRUE='#'
8478 GL_GENERATE_FNMATCH_H_FALSE=
8482 if test -n "$FNMATCH_H"; then
8491 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8495 cat >>confdefs.h <<_ACEOF
8496 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8500 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8502 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8508 cat >>confdefs.h <<_ACEOF
8509 #define HAVE_DECL_ISBLANK $ac_have_decl
8554 if test -n "$FNMATCH_H"; then
8563 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8567 cat >>confdefs.h <<_ACEOF
8568 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8572 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8574 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_DECL_ISBLANK $ac_have_decl
8627 if test -n "$STDINT_H"; then
8630 for glpfx in '' l ll I64; do
8633 l) gltype1='long int';;
8634 ll) gltype1='long long int';;
8635 I64) gltype1='__int64';;
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8640 extern intptr_t foo;
8641 extern $gltype1 foo;
8650 if ac_fn_c_try_compile "$LINENO"; then :
8651 PRIPTR_PREFIX='"'$glpfx'"'
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 test -n "$PRIPTR_PREFIX" && break
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
8661 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
8662 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 /* Work also in C++ mode. */
8668 #define __STDC_LIMIT_MACROS 1
8670 /* Work if build is not clean. */
8671 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8678 #if defined INT32_MAX && defined INTMAX_MAX
8679 #define CONDITION (INT32_MAX < INTMAX_MAX)
8680 #elif HAVE_LONG_LONG_INT
8681 #define CONDITION (sizeof (int) < sizeof (long long int))
8685 int test[CONDITION ? 1 : -1];
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
8697 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
8702 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
8703 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
8704 INT32_MAX_LT_INTMAX_MAX=1;
8706 INT32_MAX_LT_INTMAX_MAX=0;
8710 if test $APPLE_UNIVERSAL_BUILD = 0; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
8713 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
8714 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 /* Work also in C++ mode. */
8720 #define __STDC_LIMIT_MACROS 1
8722 /* Work if build is not clean. */
8723 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8730 #if defined INT64_MAX
8731 #define CONDITION (INT64_MAX == LONG_MAX)
8732 #elif HAVE_LONG_LONG_INT
8733 #define CONDITION (sizeof (long long int) == sizeof (long int))
8737 int test[CONDITION ? 1 : -1];
8746 if ac_fn_c_try_compile "$LINENO"; then :
8747 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
8749 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
8754 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
8755 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
8756 INT64_MAX_EQ_LONG_MAX=1;
8758 INT64_MAX_EQ_LONG_MAX=0;
8763 INT64_MAX_EQ_LONG_MAX=-1
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
8767 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
8768 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 /* Work also in C++ mode. */
8774 #define __STDC_LIMIT_MACROS 1
8776 /* Work if build is not clean. */
8777 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8784 #if defined UINT32_MAX && defined UINTMAX_MAX
8785 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
8786 #elif HAVE_LONG_LONG_INT
8787 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
8791 int test[CONDITION ? 1 : -1];
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
8803 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
8808 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
8809 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
8810 UINT32_MAX_LT_UINTMAX_MAX=1;
8812 UINT32_MAX_LT_UINTMAX_MAX=0;
8816 if test $APPLE_UNIVERSAL_BUILD = 0; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
8819 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
8820 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 /* Work also in C++ mode. */
8826 #define __STDC_LIMIT_MACROS 1
8828 /* Work if build is not clean. */
8829 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8836 #if defined UINT64_MAX
8837 #define CONDITION (UINT64_MAX == ULONG_MAX)
8838 #elif HAVE_LONG_LONG_INT
8839 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
8843 int test[CONDITION ? 1 : -1];
8852 if ac_fn_c_try_compile "$LINENO"; then :
8853 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
8855 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
8860 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
8861 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
8862 UINT64_MAX_EQ_ULONG_MAX=1;
8864 UINT64_MAX_EQ_ULONG_MAX=0;
8869 UINT64_MAX_EQ_ULONG_MAX=-1
8888 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
8912 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8917 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8918 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
8919 $as_echo_n "(cached) " >&6
8923 # Guess no on AIX and OSF/1.
8924 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
8925 # Guess yes otherwise.
8926 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
8928 if test $LOCALE_JA != none; then
8929 if test "$cross_compiling" = yes; then :
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8937 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8940 included before <wchar.h>. */
8947 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8949 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8953 memset (&state, '\0', sizeof (mbstate_t));
8954 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8955 if (mbsinit (&state))
8961 if ac_fn_c_try_run "$LINENO"; then :
8962 gl_cv_func_mbrtowc_incomplete_state=yes
8964 gl_cv_func_mbrtowc_incomplete_state=no
8966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8967 conftest.$ac_objext conftest.beam conftest.$ac_ext
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
8974 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
8980 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
8981 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8986 # Guess no on Solaris 8.
8987 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
8988 # Guess yes otherwise.
8989 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
8991 if test $LOCALE_ZH_CN != none; then
8992 if test "$cross_compiling" = yes; then :
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
9001 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9003 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9004 included before <wchar.h>. */
9011 /* This fails on Solaris 8:
9012 mbrtowc returns 2, and sets wc to 0x00F0.
9013 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9014 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9016 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9020 memset (&state, '\0', sizeof (mbstate_t));
9021 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9022 && mbtowc (&wc, input + 3, 6) == 4)
9028 if ac_fn_c_try_run "$LINENO"; then :
9029 gl_cv_func_mbrtowc_sanitycheck=yes
9031 gl_cv_func_mbrtowc_sanitycheck=no
9033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9034 conftest.$ac_objext conftest.beam conftest.$ac_ext
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9041 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9044 case "$gl_cv_func_mbrtowc_incomplete_state" in
9046 *) REPLACE_MBSTATE_T=1 ;;
9048 case "$gl_cv_func_mbrtowc_sanitycheck" in
9050 *) REPLACE_MBSTATE_T=1 ;;
9064 if test $ac_cv_func_mbrtowc = no; then
9066 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
9067 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9069 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9070 included before <wchar.h>. */
9077 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
9083 cat >>confdefs.h <<_ACEOF
9084 #define HAVE_DECL_MBRTOWC $ac_have_decl
9087 if test $ac_cv_have_decl_mbrtowc = yes; then
9091 if test $REPLACE_MBSTATE_T = 1; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
9098 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
9099 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9104 # Guess no on Solaris.
9105 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
9106 # Guess yes otherwise.
9107 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
9109 if test $LOCALE_FR_UTF8 != none; then
9110 if test "$cross_compiling" = yes; then :
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9119 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9121 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9122 included before <wchar.h>. */
9131 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9133 char input[] = "\303\237er";
9138 memset (&state, '\0', sizeof (mbstate_t));
9139 wc = (wchar_t) 0xBADFACE;
9140 ret = mbrtowc (&wc, input, 5, &state);
9143 if (!mbsinit (&state))
9146 memset (&state, '\0', sizeof (mbstate_t));
9147 ret = mbrtowc (NULL, input, 5, &state);
9148 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
9150 if (!mbsinit (&state))
9156 if ac_fn_c_try_run "$LINENO"; then :
9157 gl_cv_func_mbrtowc_null_arg1=yes
9159 gl_cv_func_mbrtowc_null_arg1=no
9161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9162 conftest.$ac_objext conftest.beam conftest.$ac_ext
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
9169 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
9175 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
9176 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9181 # Guess no on OSF/1.
9182 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
9183 # Guess yes otherwise.
9184 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
9186 if test $LOCALE_FR_UTF8 != none; then
9187 if test "$cross_compiling" = yes; then :
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9195 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9197 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9198 included before <wchar.h>. */
9205 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9211 memset (&state, '\0', sizeof (mbstate_t));
9212 wc = (wchar_t) 0xBADFACE;
9213 mbrtowc (&wc, NULL, 5, &state);
9214 /* Check that wc was not modified. */
9215 if (wc != (wchar_t) 0xBADFACE)
9221 if ac_fn_c_try_run "$LINENO"; then :
9222 gl_cv_func_mbrtowc_null_arg2=yes
9224 gl_cv_func_mbrtowc_null_arg2=no
9226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9227 conftest.$ac_objext conftest.beam conftest.$ac_ext
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
9234 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
9242 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
9243 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9248 # Guess no on HP-UX, Solaris, native Windows.
9249 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
9250 # Guess yes otherwise.
9251 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
9253 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
9254 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
9255 if test "$cross_compiling" = yes; then :
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9263 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9265 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9266 included before <wchar.h>. */
9274 int found_some_locale = 0;
9275 /* This fails on Solaris. */
9276 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9278 char input[] = "B\303\274\303\237er"; /* "Büßer" */
9282 memset (&state, '\0', sizeof (mbstate_t));
9283 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9286 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
9289 found_some_locale = 1;
9291 /* This fails on HP-UX 11.11. */
9292 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9294 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9298 memset (&state, '\0', sizeof (mbstate_t));
9299 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9302 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
9305 found_some_locale = 1;
9307 /* This fails on native Windows. */
9308 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
9310 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
9314 memset (&state, '\0', sizeof (mbstate_t));
9315 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9318 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9321 found_some_locale = 1;
9323 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
9325 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
9329 memset (&state, '\0', sizeof (mbstate_t));
9330 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9333 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9336 found_some_locale = 1;
9338 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
9340 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
9344 memset (&state, '\0', sizeof (mbstate_t));
9345 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9348 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9351 found_some_locale = 1;
9353 return (found_some_locale ? result : 77);
9356 if ac_fn_c_try_run "$LINENO"; then :
9357 gl_cv_func_mbrtowc_retval=yes
9359 if test $? != 77; then
9360 gl_cv_func_mbrtowc_retval=no
9364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9365 conftest.$ac_objext conftest.beam conftest.$ac_ext
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
9372 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
9378 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
9379 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9384 # Guess no on Solaris 8 and 9.
9385 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
9386 # Guess yes otherwise.
9387 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
9389 if test $LOCALE_ZH_CN != none; then
9390 if test "$cross_compiling" = yes; then :
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9398 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9401 included before <wchar.h>. */
9408 /* This fails on Solaris 8 and 9. */
9409 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9414 memset (&state, '\0', sizeof (mbstate_t));
9415 if (mbrtowc (&wc, "", 1, &state) != 0)
9421 if ac_fn_c_try_run "$LINENO"; then :
9422 gl_cv_func_mbrtowc_nul_retval=yes
9424 gl_cv_func_mbrtowc_nul_retval=no
9426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9427 conftest.$ac_objext conftest.beam conftest.$ac_ext
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
9434 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
9436 case "$gl_cv_func_mbrtowc_null_arg1" in
9439 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
9444 case "$gl_cv_func_mbrtowc_null_arg2" in
9447 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
9452 case "$gl_cv_func_mbrtowc_retval" in
9455 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
9460 case "$gl_cv_func_mbrtowc_nul_retval" in
9463 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
9471 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
9480 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
9497 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
9524 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9529 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9530 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9535 # Guess no on AIX and OSF/1.
9536 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9537 # Guess yes otherwise.
9538 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9540 if test $LOCALE_JA != none; then
9541 if test "$cross_compiling" = yes; then :
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9552 included before <wchar.h>. */
9559 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9561 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9565 memset (&state, '\0', sizeof (mbstate_t));
9566 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9567 if (mbsinit (&state))
9573 if ac_fn_c_try_run "$LINENO"; then :
9574 gl_cv_func_mbrtowc_incomplete_state=yes
9576 gl_cv_func_mbrtowc_incomplete_state=no
9578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9579 conftest.$ac_objext conftest.beam conftest.$ac_ext
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9586 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9592 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9593 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9598 # Guess no on Solaris 8.
9599 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9600 # Guess yes otherwise.
9601 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9603 if test $LOCALE_ZH_CN != none; then
9604 if test "$cross_compiling" = yes; then :
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9613 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9615 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9616 included before <wchar.h>. */
9623 /* This fails on Solaris 8:
9624 mbrtowc returns 2, and sets wc to 0x00F0.
9625 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9626 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9628 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9632 memset (&state, '\0', sizeof (mbstate_t));
9633 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9634 && mbtowc (&wc, input + 3, 6) == 4)
9640 if ac_fn_c_try_run "$LINENO"; then :
9641 gl_cv_func_mbrtowc_sanitycheck=yes
9643 gl_cv_func_mbrtowc_sanitycheck=no
9645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9646 conftest.$ac_objext conftest.beam conftest.$ac_ext
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9653 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9656 case "$gl_cv_func_mbrtowc_incomplete_state" in
9658 *) REPLACE_MBSTATE_T=1 ;;
9660 case "$gl_cv_func_mbrtowc_sanitycheck" in
9662 *) REPLACE_MBSTATE_T=1 ;;
9676 if test $ac_cv_func_mbsinit = no; then
9678 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
9679 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9681 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9682 included before <wchar.h>. */
9689 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE_DECL_MBSINIT $ac_have_decl
9699 if test $ac_cv_have_decl_mbsinit = yes; then
9703 if test $REPLACE_MBSTATE_T = 1; then
9707 mingw*) REPLACE_MBSINIT=1 ;;
9712 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
9721 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
9738 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
9764 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9769 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9770 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9775 # Guess no on AIX and OSF/1.
9776 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9777 # Guess yes otherwise.
9778 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9780 if test $LOCALE_JA != none; then
9781 if test "$cross_compiling" = yes; then :
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9792 included before <wchar.h>. */
9799 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9801 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9805 memset (&state, '\0', sizeof (mbstate_t));
9806 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9807 if (mbsinit (&state))
9813 if ac_fn_c_try_run "$LINENO"; then :
9814 gl_cv_func_mbrtowc_incomplete_state=yes
9816 gl_cv_func_mbrtowc_incomplete_state=no
9818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9819 conftest.$ac_objext conftest.beam conftest.$ac_ext
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9826 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9832 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9833 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9838 # Guess no on Solaris 8.
9839 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9840 # Guess yes otherwise.
9841 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9843 if test $LOCALE_ZH_CN != none; then
9844 if test "$cross_compiling" = yes; then :
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9853 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9855 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9856 included before <wchar.h>. */
9863 /* This fails on Solaris 8:
9864 mbrtowc returns 2, and sets wc to 0x00F0.
9865 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9866 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9868 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9872 memset (&state, '\0', sizeof (mbstate_t));
9873 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9874 && mbtowc (&wc, input + 3, 6) == 4)
9880 if ac_fn_c_try_run "$LINENO"; then :
9881 gl_cv_func_mbrtowc_sanitycheck=yes
9883 gl_cv_func_mbrtowc_sanitycheck=no
9885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9886 conftest.$ac_objext conftest.beam conftest.$ac_ext
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9893 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9896 case "$gl_cv_func_mbrtowc_incomplete_state" in
9898 *) REPLACE_MBSTATE_T=1 ;;
9900 case "$gl_cv_func_mbrtowc_sanitycheck" in
9902 *) REPLACE_MBSTATE_T=1 ;;
9916 if test $ac_cv_func_mbsrtowcs = no; then
9918 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
9919 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9921 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9922 included before <wchar.h>. */
9929 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
9935 cat >>confdefs.h <<_ACEOF
9936 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
9939 if test $ac_cv_have_decl_mbsrtowcs = yes; then
9943 if test $REPLACE_MBSTATE_T = 1; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
9953 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
9954 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9959 # Guess no on HP-UX, Solaris, mingw.
9960 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
9961 # Guess yes otherwise.
9962 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
9964 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
9965 if test "$cross_compiling" = yes; then :
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9976 included before <wchar.h>. */
9984 /* Test whether the function supports a NULL destination argument.
9985 This fails on native Windows. */
9986 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
9988 const char input[] = "\337er";
9989 const char *src = input;
9992 memset (&state, '\0', sizeof (mbstate_t));
9993 if (mbsrtowcs (NULL, &src, 1, &state) != 3
9997 /* Test whether the function works when started with a conversion state
9998 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
9999 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
10001 const char input[] = "B\303\274\303\237er";
10004 memset (&state, '\0', sizeof (mbstate_t));
10005 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10006 if (!mbsinit (&state))
10008 const char *src = input + 2;
10009 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10013 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
10015 const char input[] = "<\306\374\313\334\270\354>";
10018 memset (&state, '\0', sizeof (mbstate_t));
10019 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
10020 if (!mbsinit (&state))
10022 const char *src = input + 4;
10023 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
10027 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10029 const char input[] = "B\250\271\201\060\211\070er";
10032 memset (&state, '\0', sizeof (mbstate_t));
10033 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10034 if (!mbsinit (&state))
10036 const char *src = input + 2;
10037 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10044 if ac_fn_c_try_run "$LINENO"; then :
10045 gl_cv_func_mbsrtowcs_works=yes
10047 gl_cv_func_mbsrtowcs_works=no
10049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10050 conftest.$ac_objext conftest.beam conftest.$ac_ext
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
10057 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
10059 case "$gl_cv_func_mbsrtowcs_works" in
10061 *) REPLACE_MBSRTOWCS=1 ;;
10066 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
10075 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
10085 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
10102 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
10107 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
10116 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10119 for ac_header in bp-sym.h
10121 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10122 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10123 cat >>confdefs.h <<_ACEOF
10124 #define HAVE_BP_SYM_H 1
10144 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10150 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
10152 $as_echo_n "checking whether memmem works in linear time... " >&6; }
10153 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10156 if test "$cross_compiling" = yes; then :
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10160 #include <features.h>
10161 #ifdef __GNU_LIBRARY__
10162 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
10163 && !defined __UCLIBC__
10168 #include <cygwin/version.h>
10169 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
10175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10176 $EGREP "Lucky user" >/dev/null 2>&1; then :
10177 gl_cv_func_memmem_works_fast="guessing yes"
10179 gl_cv_func_memmem_works_fast="guessing no"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10188 #include <signal.h> /* for signal */
10189 #include <string.h> /* for memmem */
10190 #include <stdlib.h> /* for malloc */
10191 #include <unistd.h> /* for alarm */
10192 static void quit (int sig) { exit (sig + 128); }
10199 size_t m = 1000000;
10200 char *haystack = (char *) malloc (2 * m + 1);
10201 char *needle = (char *) malloc (m + 1);
10202 /* Failure to compile this test due to missing alarm is okay,
10203 since all such platforms (mingw) also lack memmem. */
10204 signal (SIGALRM, quit);
10206 /* Check for quadratic performance. */
10207 if (haystack && needle)
10209 memset (haystack, 'A', 2 * m);
10210 haystack[2 * m] = 'B';
10211 memset (needle, 'A', m);
10213 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
10222 if ac_fn_c_try_run "$LINENO"; then :
10223 gl_cv_func_memmem_works_fast=yes
10225 gl_cv_func_memmem_works_fast=no
10227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10228 conftest.$ac_objext conftest.beam conftest.$ac_ext
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
10234 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
10235 case "$gl_cv_func_memmem_works_fast" in
10243 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10252 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10259 for ac_func in memmem
10261 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10262 if test "x$ac_cv_func_memmem" = x""yes; then :
10263 cat >>confdefs.h <<_ACEOF
10264 #define HAVE_MEMMEM 1
10270 if test $ac_cv_func_memmem = yes; then
10282 if test $ac_cv_have_decl_memmem = no; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10286 $as_echo_n "checking whether memmem works... " >&6; }
10287 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10290 if test "$cross_compiling" = yes; then :
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10294 #ifdef __GNU_LIBRARY__
10295 #include <features.h>
10296 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10297 || __GLIBC_MINOR__ > 12)) \
10298 || (__GLIBC__ > 2)) \
10299 || defined __UCLIBC__
10302 #elif defined __CYGWIN__
10303 #include <cygwin/version.h>
10304 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10313 $EGREP "Lucky user" >/dev/null 2>&1; then :
10314 gl_cv_func_memmem_works_always="guessing yes"
10316 gl_cv_func_memmem_works_always="guessing no"
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10325 #include <string.h> /* for memmem */
10326 #define P "_EF_BF_BD"
10327 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10328 #define NEEDLE P P P P P
10335 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10337 /* Check for empty needle behavior. */
10339 const char *haystack = "AAA";
10340 if (memmem (haystack, 3, NULL, 0) != haystack)
10349 if ac_fn_c_try_run "$LINENO"; then :
10350 gl_cv_func_memmem_works_always=yes
10352 gl_cv_func_memmem_works_always=no
10354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10355 conftest.$ac_objext conftest.beam conftest.$ac_ext
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10361 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10362 case "$gl_cv_func_memmem_works_always" in
10371 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10380 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10394 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
10402 # Define two additional variables used in the Makefile substitution.
10404 if test "$ac_cv_header_stdbool_h" = yes; then
10407 STDBOOL_H='stdbool.h'
10410 if test -n "$STDBOOL_H"; then
10411 GL_GENERATE_STDBOOL_H_TRUE=
10412 GL_GENERATE_STDBOOL_H_FALSE='#'
10414 GL_GENERATE_STDBOOL_H_TRUE='#'
10415 GL_GENERATE_STDBOOL_H_FALSE=
10419 if test "$ac_cv_type__Bool" = yes; then
10430 if test $gt_cv_c_wchar_t = no; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10435 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10436 if test "${gl_cv_decl_null_works+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 #include <stddef.h>
10442 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10452 if ac_fn_c_try_compile "$LINENO"; then :
10453 gl_cv_decl_null_works=yes
10455 gl_cv_decl_null_works=no
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10460 $as_echo "$gl_cv_decl_null_works" >&6; }
10461 if test $gl_cv_decl_null_works = no; then
10466 if test -n "$STDDEF_H"; then
10467 GL_GENERATE_STDDEF_H_TRUE=
10468 GL_GENERATE_STDDEF_H_FALSE='#'
10470 GL_GENERATE_STDDEF_H_TRUE='#'
10471 GL_GENERATE_STDDEF_H_FALSE=
10474 if test -n "$STDDEF_H"; then
10483 if test $gl_cv_have_include_next = yes; then
10484 gl_cv_next_stddef_h='<'stddef.h'>'
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10487 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10488 if test "${gl_cv_next_stddef_h+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 #include <stddef.h>
10498 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10499 *) gl_absname_cpp="$ac_cpp" ;;
10504 gl_dirsep_regex='[/\\]'
10507 gl_dirsep_regex='\/'
10510 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10512 gl_header_literal_regex=`echo 'stddef.h' \
10513 |
sed -e "$gl_make_literal_regex_sed"`
10514 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10520 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10521 sed -n "$gl_absolute_header_sed"`'"'
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10526 $as_echo "$gl_cv_next_stddef_h" >&6; }
10528 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10530 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10532 gl_next_as_first_directive='<'stddef.h'>'
10534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10535 gl_next_as_first_directive=$gl_cv_next_stddef_h
10537 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10566 if test $gl_cv_have_include_next = yes; then
10567 gl_cv_next_wchar_h='<'wchar.h'>'
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
10570 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
10571 if test "${gl_cv_next_wchar_h+set}" = set; then :
10572 $as_echo_n "(cached) " >&6
10575 if test $ac_cv_header_wchar_h = yes; then
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10584 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10585 *) gl_absname_cpp="$ac_cpp" ;;
10590 gl_dirsep_regex='[/\\]'
10593 gl_dirsep_regex='\/'
10596 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10598 gl_header_literal_regex=`echo 'wchar.h' \
10599 |
sed -e "$gl_make_literal_regex_sed"`
10600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10606 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10607 sed -n "$gl_absolute_header_sed"`'"'
10609 gl_cv_next_wchar_h='<'wchar.h'>'
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
10615 $as_echo "$gl_cv_next_wchar_h" >&6; }
10617 NEXT_WCHAR_H=$gl_cv_next_wchar_h
10619 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10621 gl_next_as_first_directive='<'wchar.h'>'
10623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10624 gl_next_as_first_directive=$gl_cv_next_wchar_h
10626 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
10631 if test $ac_cv_header_wchar_h = yes; then
10641 if test $gt_cv_c_wint_t = yes; then
10649 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
10650 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10652 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10653 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10654 $as_echo_n "(cached) " >&6
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10659 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10661 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10662 included before <wchar.h>. */
10663 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10664 # include <stddef.h>
10665 # include <stdio.h>
10679 if ac_fn_c_try_compile "$LINENO"; then :
10680 eval "$as_gl_Symbol=yes"
10682 eval "$as_gl_Symbol=no"
10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686 eval ac_res=\$$as_gl_Symbol
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10688 $as_echo "$ac_res" >&6; }
10689 eval as_val=\$$as_gl_Symbol
10690 if test "x$as_val" = x""yes; then :
10691 cat >>confdefs.h <<_ACEOF
10692 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
10695 eval ac_cv_have_decl_$gl_func=yes
10711 if test $ac_cv_func_iswcntrl = yes; then
10721 if test $gt_cv_c_wint_t = yes; then
10743 if test $gl_cv_have_include_next = yes; then
10744 gl_cv_next_wctype_h='<'wctype.h'>'
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
10747 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
10748 if test "${gl_cv_next_wctype_h+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10752 if test $ac_cv_header_wctype_h = yes; then
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include <wctype.h>
10761 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10762 *) gl_absname_cpp="$ac_cpp" ;;
10767 gl_dirsep_regex='[/\\]'
10770 gl_dirsep_regex='\/'
10773 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10775 gl_header_literal_regex=`echo 'wctype.h' \
10776 |
sed -e "$gl_make_literal_regex_sed"`
10777 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10778 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10783 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10784 sed -n "$gl_absolute_header_sed"`'"'
10786 gl_cv_next_wctype_h='<'wctype.h'>'
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
10792 $as_echo "$gl_cv_next_wctype_h" >&6; }
10794 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
10796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10798 gl_next_as_first_directive='<'wctype.h'>'
10800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10801 gl_next_as_first_directive=$gl_cv_next_wctype_h
10803 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
10808 if test $ac_cv_header_wctype_h = yes; then
10809 if test $ac_cv_func_iswcntrl = yes; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
10811 $as_echo_n "checking whether iswcntrl works... " >&6; }
10812 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10816 if test "$cross_compiling" = yes; then :
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819 #include <stdlib.h>
10820 #if __GNU_LIBRARY__ == 1
10821 Linux libc5 i18n is broken.
10831 if ac_fn_c_try_compile "$LINENO"; then :
10832 gl_cv_func_iswcntrl_works="guessing yes"
10834 gl_cv_func_iswcntrl_works="guessing no"
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10842 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10843 included before <wchar.h>.
10844 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10845 must be included before <wchar.h>. */
10846 #include <stddef.h>
10850 #include <wctype.h>
10851 int main () { return iswprint ('x') == 0; }
10854 if ac_fn_c_try_run "$LINENO"; then :
10855 gl_cv_func_iswcntrl_works=yes
10857 gl_cv_func_iswcntrl_works=no
10859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10860 conftest.$ac_objext conftest.beam conftest.$ac_ext
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
10866 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
10874 case "$gl_cv_func_iswcntrl_works" in
10875 *yes) REPLACE_ISWCNTRL=0 ;;
10876 *) REPLACE_ISWCNTRL=1 ;;
10880 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
10884 if test $REPLACE_ISWCNTRL = 1; then
10887 for ac_func in towlower
10889 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
10890 if test "x$ac_cv_func_towlower" = x""yes; then :
10891 cat >>confdefs.h <<_ACEOF
10892 #define HAVE_TOWLOWER 1
10898 if test $ac_cv_func_towlower = yes; then
10901 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10902 included before <wchar.h>.
10903 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10904 must be included before <wchar.h>. */
10905 #include <stddef.h>
10910 # include <wctype.h>
10914 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_DECL_TOWLOWER $ac_have_decl
10924 if test $ac_cv_have_decl_towlower = yes; then
10933 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
10938 $as_echo_n "checking for wctype_t... " >&6; }
10939 if test "${gl_cv_type_wctype_t+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10945 included before <wchar.h>.
10946 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10947 must be included before <wchar.h>. */
10948 #include <stddef.h>
10953 # include <wctype.h>
10965 if ac_fn_c_try_compile "$LINENO"; then :
10966 gl_cv_type_wctype_t=yes
10968 gl_cv_type_wctype_t=no
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
10974 $as_echo "$gl_cv_type_wctype_t" >&6; }
10975 if test $gl_cv_type_wctype_t = no; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
10980 $as_echo_n "checking for wctrans_t... " >&6; }
10981 if test "${gl_cv_type_wctrans_t+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10987 included before <wchar.h>.
10988 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10989 must be included before <wchar.h>. */
10990 #include <stddef.h>
10994 #include <wctype.h>
11005 if ac_fn_c_try_compile "$LINENO"; then :
11006 gl_cv_type_wctrans_t=yes
11008 gl_cv_type_wctrans_t=no
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
11014 $as_echo "$gl_cv_type_wctrans_t" >&6; }
11015 if test $gl_cv_type_wctrans_t = no; then
11020 for gl_func in wctype iswctype wctrans towctrans ; do
11021 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" |
$as_tr_sh`
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11023 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11024 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11025 $as_echo_n "(cached) " >&6
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11030 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11032 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11033 included before <wchar.h>. */
11034 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11035 # include <stddef.h>
11036 # include <stdio.h>
11038 # include <wchar.h>
11040 #include <wctype.h>
11051 if ac_fn_c_try_compile "$LINENO"; then :
11052 eval "$as_gl_Symbol=yes"
11054 eval "$as_gl_Symbol=no"
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058 eval ac_res=\$$as_gl_Symbol
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11060 $as_echo "$ac_res" >&6; }
11061 eval as_val=\$$as_gl_Symbol
11062 if test "x$as_val" = x""yes; then :
11063 cat >>confdefs.h <<_ACEOF
11064 #define `$as_echo "HAVE_RAW_DECL_$gl_func" |
$as_tr_cpp` 1
11067 eval ac_cv_have_decl_$gl_func=yes
11072 # End of code from modules
11093 gl_source_base='tests'
11094 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
11096 gl_module_indicator_condition=$gltests_WITNESS
11106 LIBGNU_LIBDEPS="$gl_libdeps"
11108 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11112 # We don't use automake, but gnulib does. This line lets us generate
11114 am__api_version='1.11'
11116 # Find a good install program. We prefer a C program (faster),
11117 # so one script is as good as another. But avoid the broken or
11118 # incompatible versions:
11119 # SysV /etc/install, /usr/sbin/install
11120 # SunOS /usr/etc/install
11121 # IRIX /sbin/install
11123 # AmigaOS /C/install, which installs bootblocks on floppy discs
11124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11127 # OS/2's system install, which has a completely different semantic
11128 # ./install, which can be erroneously created by make from ./install.sh.
11129 # Reject install programs that cannot install multiple files.
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11131 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11132 if test -z "$INSTALL"; then
11133 if test "${ac_cv_path_install+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11140 test -z "$as_dir" && as_dir=.
11141 # Account for people who put trailing slashes in PATH elements.
11142 case $as_dir/ in #((
11143 ./ | .// | /[cC]/* | \
11144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11148 # OSF1 and SCO ODT 3.0 have their own names for install.
11149 # Don't use installbsd from OSF since it installs stuff as root
11151 for ac_prog in ginstall scoinst install; do
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11154 if test $ac_prog = install &&
11155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11156 # AIX install. It has an incompatible calling convention.
11158 elif test $ac_prog = install &&
11159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11160 # program-specific install script used by HP pwplus--don't use.
11163 rm -rf conftest.one conftest.two conftest.dir
11164 echo one > conftest.one
11165 echo two > conftest.two
11167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11168 test -s conftest.one && test -s conftest.two &&
11169 test -s conftest.dir/conftest.one &&
11170 test -s conftest.dir/conftest.two
11172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11185 rm -rf conftest.one conftest.two conftest.dir
11188 if test "${ac_cv_path_install+set}" = set; then
11189 INSTALL=$ac_cv_path_install
11191 # As a last resort, use the slow shell script. Don't cache a
11192 # value for INSTALL within a source directory, because that will
11193 # break other packages using the cache if that directory is
11194 # removed, or if the value is a relative name.
11195 INSTALL=$ac_install_sh
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11199 $as_echo "$INSTALL" >&6; }
11201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11202 # It thinks the first close brace ends the variable substitution.
11203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11210 $as_echo_n "checking whether build environment is sane... " >&6; }
11213 echo timestamp > conftest.file
11214 # Reject unsafe characters in $srcdir or the absolute working directory
11215 # name. Accept space and tab only in the latter.
11219 *[\\\"\#\$\&\'\`$am_lf]*)
11220 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
11223 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
11224 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11227 # Do `set' in a subshell so we don't clobber the current shell's
11228 # arguments. Must try -L first in case configure is actually a
11229 # symlink; some systems play weird games with the mod time of symlinks
11230 # (eg FreeBSD returns the mod time of the symlink's containing
11233 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11234 if test "$*" = "X"; then
11236 set X
`ls -t "$srcdir/configure" conftest.file`
11238 rm -f conftest.
file
11239 if test "$*" != "X $srcdir/configure conftest.file" \
11240 && test "$*" != "X conftest.file $srcdir/configure"; then
11242 # If neither matched, then we have a broken ls. This can happen
11243 # if, for instance, CONFIG_SHELL is bash and it inherits a
11244 # broken ls alias from the environment. This has actually
11245 # happened. Such a system could not be considered "sane".
11246 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
11247 alias in your environment" "$LINENO" 5
11250 test "$2" = conftest.
file
11256 as_fn_error
"newly created file is older than distributed files!
11257 Check your system clock" "$LINENO" 5
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260 $as_echo "yes" >&6; }
11261 test "$program_prefix" != NONE
&&
11262 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
11263 # Use a double $ so make ignores it.
11264 test "$program_suffix" != NONE
&&
11265 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
11266 # Double any \ or $.
11267 # By default was `s,x,x', remove it if useless.
11268 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
11269 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
11271 # expand $ac_aux_dir to an absolute path
11272 am_aux_dir
=`cd $ac_aux_dir && pwd`
11274 if test x
"${MISSING+set}" != xset
; then
11275 case $am_aux_dir in
11277 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
11279 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
11282 # Use eval to expand $SHELL
11283 if eval "$MISSING --run true"; then
11284 am_missing_run
="$MISSING --run "
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11288 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11291 if test x
"${install_sh}" != xset
; then
11292 case $am_aux_dir in
11294 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
11296 install_sh
="\${SHELL} $am_aux_dir/install-sh"
11300 # Installed binaries are usually stripped using `strip' when the user
11301 # run `make install-strip'. However `strip' might not be the right
11302 # tool to use in cross-compilation environments, therefore Automake
11303 # will honor the `STRIP' environment variable to overrule this program.
11304 if test "$cross_compiling" != no
; then
11305 if test -n "$ac_tool_prefix"; then
11306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11307 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if test "${ac_cv_prog_STRIP+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11313 if test -n "$STRIP"; then
11314 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
11316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11317 for as_dir
in $PATH
11320 test -z "$as_dir" && as_dir
=.
11321 for ac_exec_ext
in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11323 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 STRIP
=$ac_cv_prog_STRIP
11334 if test -n "$STRIP"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11336 $as_echo "$STRIP" >&6; }
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11344 if test -z "$ac_cv_prog_STRIP"; then
11346 # Extract the first word of "strip", so it can be a program name with args.
11347 set dummy strip
; ac_word
=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11353 if test -n "$ac_ct_STRIP"; then
11354 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
11356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11357 for as_dir
in $PATH
11360 test -z "$as_dir" && as_dir
=.
11361 for ac_exec_ext
in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363 ac_cv_prog_ac_ct_STRIP
="strip"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11373 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
11374 if test -n "$ac_ct_STRIP"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11376 $as_echo "$ac_ct_STRIP" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11382 if test "x$ac_ct_STRIP" = x
; then
11385 case $cross_compiling:$ac_tool_warned in
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11389 ac_tool_warned
=yes ;;
11394 STRIP
="$ac_cv_prog_STRIP"
11398 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11401 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11402 if test -z "$MKDIR_P"; then
11403 if test "${ac_cv_path_mkdir+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11407 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
11410 test -z "$as_dir" && as_dir
=.
11411 for ac_prog
in mkdir gmkdir
; do
11412 for ac_exec_ext
in '' $ac_executable_extensions; do
11413 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
11414 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11415 'mkdir (GNU coreutils) '* | \
11416 'mkdir (coreutils) '* | \
11417 'mkdir (fileutils) '4.1*)
11418 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
11428 if test "${ac_cv_path_mkdir+set}" = set; then
11429 MKDIR_P
="$ac_cv_path_mkdir -p"
11431 # As a last resort, use the slow shell script. Don't cache a
11432 # value for MKDIR_P within a source directory, because that will
11433 # break other packages using the cache if that directory is
11434 # removed, or if the value is a relative name.
11435 test -d .
/--version && rmdir .
/--version
11436 MKDIR_P
="$ac_install_sh -d"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11440 $as_echo "$MKDIR_P" >&6; }
11445 [\\/$
]* | ?
:[\\/]*) ;;
11446 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
11449 for ac_prog
in gawk mawk nawk
awk
11451 # Extract the first word of "$ac_prog", so it can be a program name with args.
11452 set dummy
$ac_prog; ac_word
=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_prog_AWK+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11458 if test -n "$AWK"; then
11459 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
11461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11462 for as_dir
in $PATH
11465 test -z "$as_dir" && as_dir
=.
11466 for ac_exec_ext
in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_AWK
="$ac_prog"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 AWK
=$ac_cv_prog_AWK
11479 if test -n "$AWK"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11481 $as_echo "$AWK" >&6; }
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11488 test -n "$AWK" && break
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11492 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11494 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11495 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11496 $as_echo_n "(cached) " >&6
11498 cat >conftest.
make <<\_ACEOF
11501 @
echo '@@@%%%=$(MAKE)=@@@%%%'
11503 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11504 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11505 *@@@
%%%=?
*=@@@
%%%*)
11506 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
11508 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
11510 rm -f conftest.
make
11512 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514 $as_echo "yes" >&6; }
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11519 SET_MAKE
="MAKE=${MAKE-make}"
11522 rm -rf .tst
2>/dev
/null
11523 mkdir .tst
2>/dev
/null
11524 if test -d .tst
; then
11529 rmdir .tst
2>/dev
/null
11531 DEPDIR
="${am__leading_dot}deps"
11533 ac_config_commands
="$ac_config_commands depfiles"
11536 am_make
=${MAKE-make}
11537 cat > confinc
<< 'END'
11539 @
echo this is the am__doit target
11542 # If we don't find an include directive, just comment out the code.
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11544 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11548 # First try GNU make style include.
11549 echo "include confinc" > confmf
11550 # Ignore all kinds of additional output from `make'.
11551 case `$am_make -s -f confmf 2> /dev/null` in #(
11552 *the\ am__doit\ target
*)
11553 am__include
=include
11558 # Now try BSD make style include.
11559 if test "$am__include" = "#"; then
11560 echo '.include "confinc"' > confmf
11561 case `$am_make -s -f confmf 2> /dev/null` in #(
11562 *the\ am__doit\ target
*)
11563 am__include
=.include
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11572 $as_echo "$_am_result" >&6; }
11573 rm -f confinc confmf
11575 # Check whether --enable-dependency-tracking was given.
11576 if test "${enable_dependency_tracking+set}" = set; then :
11577 enableval
=$enable_dependency_tracking;
11580 if test "x$enable_dependency_tracking" != xno
; then
11581 am_depcomp
="$ac_aux_dir/depcomp"
11584 if test "x$enable_dependency_tracking" != xno; then
11593 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11594 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11595 # is not polluted with repeated "-I."
11596 am__isrc
=' -I$(srcdir)'
11597 # test to see if srcdir already configured
11598 if test -f $srcdir/config.status
; then
11599 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11603 # test whether we have cygpath
11604 if test -z "$CYGPATH_W"; then
11605 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
11606 CYGPATH_W
='cygpath -w'
11613 # Define the identity of the package.
11615 VERSION
=UNUSED-VERSION
11618 # Some tools Automake needs.
11620 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11623 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
11626 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11629 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
11632 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
11634 # We need awk for the "check" target. The system "awk" is bad on
11636 # Always define AMTAR for backward compatibility.
11638 AMTAR
=${AMTAR-"${am_missing_run}tar"}
11640 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
11645 depcc
="$CC" am_compiler_list
=
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11648 $as_echo_n "checking dependency style of $depcc... " >&6; }
11649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11653 # We make a subdir and do the tests there. Otherwise we can end up
11654 # making bogus files that we don't know about and never remove. For
11655 # instance it was reported that on HP-UX the gcc test will end up
11656 # making a dummy file named `D' -- because `-MD' means `put the output
11659 # Copy depcomp to subdir because otherwise we won't find it if we're
11660 # using a relative directory.
11661 cp "$am_depcomp" conftest.dir
11663 # We will build objects and dependencies in a subdirectory because
11664 # it helps to detect inapplicable dependency modes. For instance
11665 # both Tru64's cc and ICC support -MD to output dependencies as a
11666 # side effect of compilation, but ICC will put the dependencies in
11667 # the current directory while Tru64 will put them in the object
11671 am_cv_CC_dependencies_compiler_type
=none
11672 if test "$am_compiler_list" = ""; then
11673 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11675 am__universal
=false
11676 case " $depcc " in #(
11677 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
11680 for depmode
in $am_compiler_list; do
11681 # Setup a source with many dependencies, because some compilers
11682 # like to wrap large dependency lists on column 80 (with \), and
11683 # we should not choose a depcomp mode which is confused by this.
11685 # We need to recreate these files for each test, as the compiler may
11686 # overwrite some of them when testing with obscure command lines.
11687 # This happens at least with the AIX C compiler.
11689 for i
in 1 2 3 4 5 6; do
11690 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11692 # Solaris 8's {/usr,}/bin/sh.
11693 touch sub
/conftst
$i.h
11695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11698 # mode. It turns out that the SunPro C++ compiler does not properly
11699 # handle `-M -o', and we need to detect this. Also, some Intel
11700 # versions had trouble with output in subdirs
11701 am__obj
=sub
/conftest.
${OBJEXT-o}
11702 am__minus_obj
="-o $am__obj"
11705 # This depmode causes a compiler race in universal mode.
11706 test "$am__universal" = false ||
continue
11709 # after this tag, mechanisms are not by side-effect, so they'll
11710 # only be used when explicitly requested
11711 if test "x$enable_dependency_tracking" = xyes
; then
11717 msvisualcpp | msvcmsys
)
11718 # This compiler won't grok `-c -o', but also, the minuso test has
11719 # not run yet. These depmodes are late enough in the game, and
11720 # so weak that their functioning should not be impacted.
11721 am__obj
=conftest.
${OBJEXT-o}
11726 if depmode
=$depmode \
11727 source=sub
/conftest.c object
=$am__obj \
11728 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11729 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11730 >/dev
/null
2>conftest.err
&&
11731 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11732 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11733 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11734 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11735 # icc doesn't choke on unknown options, it will just issue warnings
11736 # or remarks (even with -Werror). So we grep stderr for any message
11737 # that says an option was ignored or not supported.
11738 # When given -MP, icc 7.0 and 7.1 complain thusly:
11739 # icc: Command line warning: ignoring option '-M'; no argument required
11740 # The diagnosis changed in icc 8.0:
11741 # icc: Command line remark: option '-MP' not supported
11742 if (grep 'ignoring option' conftest.err ||
11743 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11744 am_cv_CC_dependencies_compiler_type
=$depmode
11751 rm -rf conftest.dir
11753 am_cv_CC_dependencies_compiler_type
=none
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11759 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
11762 test "x$enable_dependency_tracking" != xno \
11763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
11764 am__fastdepCC_TRUE
=
11765 am__fastdepCC_FALSE
='#'
11767 am__fastdepCC_TRUE
='#'
11768 am__fastdepCC_FALSE
=
11774 # --------------------- #
11775 # Checks for programs. #
11776 # --------------------- #
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11780 $as_echo_n "checking whether ln -s works... " >&6; }
11782 if test "$LN_S" = "ln -s"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784 $as_echo "yes" >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11787 $as_echo "no, using $LN_S" >&6; }
11790 if test -n "$ac_tool_prefix"; then
11791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11792 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if test "${ac_cv_prog_RANLIB+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11798 if test -n "$RANLIB"; then
11799 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
11801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11802 for as_dir
in $PATH
11805 test -z "$as_dir" && as_dir
=.
11806 for ac_exec_ext
in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 RANLIB
=$ac_cv_prog_RANLIB
11819 if test -n "$RANLIB"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11821 $as_echo "$RANLIB" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11829 if test -z "$ac_cv_prog_RANLIB"; then
11830 ac_ct_RANLIB
=$RANLIB
11831 # Extract the first word of "ranlib", so it can be a program name with args.
11832 set dummy ranlib
; ac_word
=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11838 if test -n "$ac_ct_RANLIB"; then
11839 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
11841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11842 for as_dir
in $PATH
11845 test -z "$as_dir" && as_dir
=.
11846 for ac_exec_ext
in '' $ac_executable_extensions; do
11847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11848 ac_cv_prog_ac_ct_RANLIB
="ranlib"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
11859 if test -n "$ac_ct_RANLIB"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11861 $as_echo "$ac_ct_RANLIB" >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11867 if test "x$ac_ct_RANLIB" = x
; then
11870 case $cross_compiling:$ac_tool_warned in
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11874 ac_tool_warned
=yes ;;
11876 RANLIB
=$ac_ct_RANLIB
11879 RANLIB
="$ac_cv_prog_RANLIB"
11883 if test -n "$ac_tool_prefix"; then
11884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11885 set dummy
${ac_tool_prefix}ar; ac_word
=$2
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 $as_echo_n "checking for $ac_word... " >&6; }
11888 if test "${ac_cv_prog_AR+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11891 if test -n "$AR"; then
11892 ac_cv_prog_AR
="$AR" # Let the user override the test.
11894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11895 for as_dir
in $PATH
11898 test -z "$as_dir" && as_dir
=.
11899 for ac_exec_ext
in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_prog_AR
="${ac_tool_prefix}ar"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 if test -n "$AR"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11914 $as_echo "$AR" >&6; }
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11922 if test -z "$ac_cv_prog_AR"; then
11924 # Extract the first word of "ar", so it can be a program name with args.
11925 set dummy
ar; ac_word
=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11931 if test -n "$ac_ct_AR"; then
11932 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
11934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11935 for as_dir
in $PATH
11938 test -z "$as_dir" && as_dir
=.
11939 for ac_exec_ext
in '' $ac_executable_extensions; do
11940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941 ac_cv_prog_ac_ct_AR
="ar"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
11952 if test -n "$ac_ct_AR"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11954 $as_echo "$ac_ct_AR" >&6; }
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11960 if test "x$ac_ct_AR" = x
; then
11963 case $cross_compiling:$ac_tool_warned in
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11967 ac_tool_warned
=yes ;;
11972 AR
="$ac_cv_prog_AR"
11976 # ---------------------- #
11977 # Checks for libraries. #
11978 # ---------------------- #
11980 ac_config_files
="$ac_config_files Makefile import/Makefile"
11982 ac_config_commands
="$ac_config_commands default"
11984 cat >confcache
<<\_ACEOF
11985 # This file is a shell script that caches the results of configure
11986 # tests run on this system so they can be shared between configure
11987 # scripts and configure runs, see configure's option --config-cache.
11988 # It is not useful on other systems. If it contains results you don't
11989 # want to keep, you may remove or edit it.
11991 # config.status only pays attention to the cache file if you give it
11992 # the --recheck option to rerun configure.
11994 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11995 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11996 # following values.
12000 # The following way of writing the cache mishandles newlines in values,
12001 # but we know of no workaround that is simple, portable, and efficient.
12002 # So, we kill variables containing newlines.
12003 # Ultrix sh set writes to stderr and can't be redirected directly,
12004 # and sets the high bit in the cache file unless we assign to the vars.
12006 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12007 eval ac_val
=\$
$ac_var
12011 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12015 _ | IFS | as_nl
) ;; #(
12016 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12017 *) { eval $ac_var=; unset $ac_var;} ;;
12023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12024 *${as_nl}ac_space
=\
*)
12025 # `set' does not quote correctly, so add quotes: double-quote
12026 # substitution turns \\\\ into \\, and sed turns \\ into \.
12029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12032 # `set' quotes correctly as required by POSIX, so do not add quotes.
12033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12046 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12047 if test -w "$cache_file"; then
12048 test "x$cache_file" != "x/dev/null" &&
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12050 $as_echo "$as_me: updating cache $cache_file" >&6;}
12051 cat confcache
>$cache_file
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12054 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12059 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12060 # Let make expand exec_prefix.
12061 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12063 DEFS
=-DHAVE_CONFIG_H
12067 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12068 # 1. Remove the extension, and $U if already installed.
12069 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12070 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12072 # will be set to the directory where LIBOBJS objects are built.
12073 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12074 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12076 LIBOBJS
=$ac_libobjs
12078 LTLIBOBJS
=$ac_ltlibobjs
12081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12082 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
12083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12085 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12086 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
12087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12089 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
12090 as_fn_error
"conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
12091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12093 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
12094 as_fn_error
"conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
12095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12097 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
12098 as_fn_error
"conditional \"GL_GENERATE_STDINT_H\" was never defined.
12099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12101 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12102 as_fn_error
"conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12105 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12106 as_fn_error
"conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12112 if test -n "$gl_LIBOBJS"; then
12113 # Remove the extension.
12114 sed_drop_objext
='s/\.o$//;s/\.obj$//'
12115 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12116 gl_libobjs
="$gl_libobjs $i.$ac_objext"
12117 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
12120 gl_LIBOBJS
=$gl_libobjs
12122 gl_LTLIBOBJS
=$gl_ltlibobjs
12128 if test -n "$gltests_LIBOBJS"; then
12129 # Remove the extension.
12130 sed_drop_objext
='s/\.o$//;s/\.obj$//'
12131 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12132 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
12133 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
12136 gltests_LIBOBJS
=$gltests_libobjs
12138 gltests_LTLIBOBJS
=$gltests_ltlibobjs
12141 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12142 as_fn_error
"conditional \"AMDEP\" was never defined.
12143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12145 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12146 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
12147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12149 if test -n "$EXEEXT"; then
12151 am__EXEEXT_FALSE
='#'
12153 am__EXEEXT_TRUE
='#'
12158 : ${CONFIG_STATUS=./config.status}
12160 ac_clean_files_save
=$ac_clean_files
12161 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12163 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12165 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12167 # Generated by $as_me.
12168 # Run this file to recreate the current configuration.
12169 # Compiler output produced by configure, useful for debugging
12170 # configure, is in config.log if it exists.
12173 ac_cs_recheck=false
12176 SHELL=\${CONFIG_SHELL-$SHELL}
12179 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12180 ## -------------------- ##
12181 ## M4sh Initialization. ##
12182 ## -------------------- ##
12184 # Be more Bourne compatible
12185 DUALCASE
=1; export DUALCASE
# for MKS sh
12186 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12189 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12190 # is contrary to our usage. Disable this feature.
12191 alias -g '${1+"$@"}'='"$@"'
12192 setopt NO_GLOB_SUBST
12194 case `(set -o) 2>/dev/null` in #(
12206 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12207 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12209 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12210 # Prefer a ksh shell builtin over an external printf program on Solaris,
12211 # but without wasting forks for bash or zsh.
12212 if test -z "$BASH_VERSION$ZSH_VERSION" \
12213 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12214 as_echo='print
-r --'
12215 as_echo_n='print
-rn --'
12216 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12217 as_echo='printf %s
\n'
12218 as_echo_n='printf %s
'
12220 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12221 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12222 as_echo_n='/usr
/ucb
/echo -n'
12224 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12225 as_echo_n_body='eval
12229 expr "X$arg" : "X\\(.*\\)$as_nl";
12230 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12232 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12234 export as_echo_n_body
12235 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12237 export as_echo_body
12238 as_echo='sh
-c $as_echo_body as_echo
'
12241 # The user is always right.
12242 if test "${PATH_SEPARATOR+set}" != set; then
12244 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12245 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12252 # We need space, tab and new line, in precisely that order. Quoting is
12253 # there to prevent editors from complaining about space-tab.
12254 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12255 # splitting by setting IFS to empty value.)
12258 # Find who we are. Look in the path if we contain no directory separator.
12260 *[\\/]* ) as_myself=$0 ;;
12261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12265 test -z "$as_dir" && as_dir=.
12266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12272 # We did not find ourselves, most probably we were run as `sh COMMAND'
12273 # in which case we are not to be found in the path.
12274 if test "x$as_myself" = x
; then
12277 if test ! -f "$as_myself"; then
12278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12282 # Unset variables that we do not need and which cause bugs (e.g. in
12283 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12284 # suppresses any "Segmentation fault" message there. '((' could
12285 # trigger a bug in pdksh 5.2.14.
12286 for as_var
in BASH_ENV ENV MAIL MAILPATH
12287 do eval test x\
${$as_var+set} = xset \
12288 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12301 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12304 # as_fn_error ERROR [LINENO LOG_FD]
12305 # ---------------------------------
12306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12308 # script with status $?, using 1 if that was 0.
12311 as_status
=$?
; test $as_status -eq 0 && as_status
=1
12313 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12316 $as_echo "$as_me: error: $1" >&2
12317 as_fn_exit
$as_status
12321 # as_fn_set_status STATUS
12322 # -----------------------
12323 # Set $? to STATUS, without forking.
12324 as_fn_set_status
()
12327 } # as_fn_set_status
12329 # as_fn_exit STATUS
12330 # -----------------
12331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12335 as_fn_set_status
$1
12341 # Portably unset VAR.
12344 { eval $1=; unset $1;}
12346 as_unset
=as_fn_unset
12347 # as_fn_append VAR VALUE
12348 # ----------------------
12349 # Append the text in VALUE to the end of the definition contained in VAR. Take
12350 # advantage of any shell optimizations that allow amortized linear growth over
12351 # repeated appends, instead of the typical quadratic growth present in naive
12353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12354 eval 'as_fn_append ()
12365 # as_fn_arith ARG...
12366 # ------------------
12367 # Perform arithmetic evaluation on the ARGs, and store the result in the
12368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12369 # must be portable across $(()) and expr.
12370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12371 eval 'as_fn_arith ()
12378 as_val
=`expr "$@" || test $? -eq 1`
12383 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12384 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12390 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12391 as_basename
=basename
12396 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12402 as_me
=`$as_basename -- "$0" ||
12403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12404 X"$0" : 'X\(//\)$' \| \
12405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12407 sed '/^.*\/\([^/][^/]*\)\/*$/{
12421 # Avoid depending upon Character Ranges.
12422 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12423 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12424 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12425 as_cr_digits
='0123456789'
12426 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12428 ECHO_C
= ECHO_N
= ECHO_T
=
12429 case `echo -n x` in #(((((
12431 case `echo 'xy\c'` in
12432 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12434 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12441 rm -f conf$$ conf$$.exe conf$$.
file
12442 if test -d conf$$.dir
; then
12443 rm -f conf$$.dir
/conf$$.
file
12446 mkdir conf$$.dir
2>/dev
/null
12448 if (echo >conf$$.
file) 2>/dev
/null
; then
12449 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12451 # ... but there are two gotchas:
12452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12454 # In both cases, we have to default to `cp -p'.
12455 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12457 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12465 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12466 rmdir conf$$.dir
2>/dev
/null
12471 # Create "$as_dir" as a directory, including parents if necessary.
12476 -*) as_dir
=.
/$as_dir;;
12478 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12482 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12483 *) as_qdir
=$as_dir;;
12485 as_dirs
="'$as_qdir' $as_dirs"
12486 as_dir
=`$as_dirname -- "$as_dir" ||
12487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488 X"$as_dir" : 'X\(//\)[^/]' \| \
12489 X"$as_dir" : 'X\(//\)$' \| \
12490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12491 $as_echo X"$as_dir" |
12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12496 /^X\(\/\/\)[^/].*/{
12509 test -d "$as_dir" && break
12511 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12512 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
12516 if mkdir
-p .
2>/dev
/null
; then
12517 as_mkdir_p
='mkdir -p "$as_dir"'
12519 test -d .
/-p && rmdir .
/-p
12523 if test -x / >/dev
/null
2>&1; then
12524 as_test_x
='test -x'
12526 if ls -dL / >/dev
/null
2>&1; then
12533 if test -d "$1"; then
12539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12540 ???[sx]*):;;*)false;;esac;fi
12544 as_executable_p
=$as_test_x
12546 # Sed expression to map a string onto a valid CPP name.
12547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12549 # Sed expression to map a string onto a valid variable name.
12550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12554 ## ----------------------------------- ##
12555 ## Main body of $CONFIG_STATUS script. ##
12556 ## ----------------------------------- ##
12558 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12561 # Save the log message, to keep $0 and so on meaningful, and to
12562 # report actual input values of CONFIG_FILES etc. instead of their
12563 # values after options handling.
12565 This file was extended by $as_me, which was
12566 generated by GNU Autoconf 2.64. Invocation command line was
12568 CONFIG_FILES = $CONFIG_FILES
12569 CONFIG_HEADERS = $CONFIG_HEADERS
12570 CONFIG_LINKS = $CONFIG_LINKS
12571 CONFIG_COMMANDS = $CONFIG_COMMANDS
12574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12579 case $ac_config_files in *"
12580 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12583 case $ac_config_headers in *"
12584 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589 # Files that config.status was made for.
12590 config_files="$ac_config_files"
12591 config_headers="$ac_config_headers"
12592 config_commands="$ac_config_commands"
12596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12598 \`$as_me' instantiates files and other configuration actions
12599 from templates according to the current configuration. Unless the files
12600 and actions are specified as TAGs, all are instantiated by default.
12602 Usage: $0 [OPTION]... [TAG]...
12604 -h, --help print this help, then exit
12605 -V, --version print version number and configuration settings, then exit
12606 -q, --quiet, --silent
12607 do not print progress messages
12608 -d, --debug don't remove temporary files
12609 --recheck update $as_me by reconfiguring in the same conditions
12610 --file=FILE[:TEMPLATE]
12611 instantiate the configuration file FILE
12612 --header=FILE[:TEMPLATE]
12613 instantiate the configuration header FILE
12615 Configuration files:
12618 Configuration headers:
12621 Configuration commands:
12624 Report bugs to the package provider."
12627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12630 configured by $0, generated by GNU Autoconf 2.64,
12631 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12633 Copyright (C) 2009 Free Software Foundation, Inc.
12634 This config.status script is free software; the Free Software Foundation
12635 gives unlimited permission to copy, distribute and modify it."
12642 test -n "\$AWK" || AWK=awk
12645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12646 # The default lists apply if the user does not specify any file.
12652 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12653 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12664 # Handling of the options.
12665 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12667 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12668 $as_echo "$ac_cs_version"; exit ;;
12669 --debug |
--debu |
--deb |
--de |
--d |
-d )
12671 --file |
--fil |
--fi |
--f )
12674 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12676 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12677 ac_need_defaults
=false
;;
12678 --header |
--heade |
--head |
--hea )
12681 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12683 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12684 ac_need_defaults
=false
;;
12686 # Conflict between --help and --header
12687 as_fn_error
"ambiguous option: \`$1'
12688 Try \`$0 --help' for more information.";;
12689 --help |
--hel |
-h )
12690 $as_echo "$ac_cs_usage"; exit ;;
12691 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12692 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12695 # This is an error.
12696 -*) as_fn_error
"unrecognized option: \`$1'
12697 Try \`$0 --help' for more information." ;;
12699 *) as_fn_append ac_config_targets
" $1"
12700 ac_need_defaults
=false
;;
12706 ac_configure_extra_args
=
12708 if $ac_cs_silent; then
12710 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715 if \$ac_cs_recheck; then
12716 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12719 CONFIG_SHELL='$SHELL'
12720 export CONFIG_SHELL
12725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12730 ## Running $as_me. ##
12736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12740 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12746 # Handling of arguments.
12747 for ac_config_target
in $ac_config_targets
12749 case $ac_config_target in
12750 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
12751 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
12752 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
12753 "import/Makefile") CONFIG_FILES
="$CONFIG_FILES import/Makefile" ;;
12754 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12756 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12761 # If the user did not use the arguments to specify the items to instantiate,
12762 # then the envvar interface is used. Set only those that are not.
12763 # We use the long form for the default assignment because of an extremely
12764 # bizarre bug on SunOS 4.1.3.
12765 if $ac_need_defaults; then
12766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12771 # Have a temporary directory for convenience. Make it in the build tree
12772 # simply because there is no reason against having it here, and in addition,
12773 # creating and moving files from /tmp can sometimes cause problems.
12774 # Hook for its removal unless debugging.
12775 # Note that there is a small window in which the directory will not be cleaned:
12776 # after its creation but before its name has been assigned to `$tmp'.
12780 trap 'exit_status=$?
12781 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12783 trap 'as_fn_exit 1' 1 2 13 15
12785 # Create a (secure) tmp directory for tmp files.
12788 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12789 test -n "$tmp" && test -d "$tmp"
12792 tmp
=.
/conf$$
-$RANDOM
12793 (umask 077 && mkdir
"$tmp")
12794 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
12796 # Set up the scripts for CONFIG_FILES section.
12797 # No need to generate them if there are no CONFIG_FILES.
12798 # This happens for instance with `./config.status config.h'.
12799 if test -n "$CONFIG_FILES"; then
12802 ac_cr
=`echo X | tr X '\015'`
12803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12804 # But we know of no other shell where ac_cr would be empty at this
12805 # point, so we can use a bashism as a fallback.
12806 if test "x$ac_cr" = x
; then
12807 eval ac_cr
=\$
\'\\r
\'
12809 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12813 ac_cs_awk_cr
=$ac_cr
12816 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12821 echo "cat >conf$$subs.awk <<_ACEOF" &&
12822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12824 } >conf$$subs.sh ||
12825 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12828 for ac_last_try in false false false false false :; do
12829 . ./conf$$subs.sh ||
12830 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12832 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12833 if test $ac_delim_n = $ac_delim_num; then
12835 elif $ac_last_try; then
12836 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
12838 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12841 rm -f conf$$subs.sh
12843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12844 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
12848 s/^/S["/; s
/!.
*/"]=/
12858 s/\(.\{148\}\).*/\1/
12860 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12865 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12872 s/\(.\{148\}\).*/\1/
12874 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12878 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12883 ' <conf$$subs.awk | sed '
12888 ' >>$CONFIG_STATUS || ac_write_fail=1
12889 rm -f conf$$subs.awk
12890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12892 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
12893 for (key in S) S_is_set[key] = 1
12899 nfields = split(line, field, "@
")
12901 len = length(field[1])
12902 for (i = 2; i < nfields; i++) {
12904 keylen = length(key)
12905 if (S_is_set[key]) {
12907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12908 len += length(value) + length(field[++i])
12919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12920 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12921 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12924 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
12925 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
12928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
12930 # trailing colons and then remove the whole line if VPATH becomes empty
12931 # (actually we leave an empty line to preserve line numbers).
12932 if test "x
$srcdir" = x.; then
12933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12934 s/:*\$(srcdir):*/:/
12935 s/:*\${srcdir}:*/:/
12937 s/^\([^=]*=[ ]*\):*/\1/
12943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12944 fi # test -n "$CONFIG_FILES"
12946 # Set up the scripts for CONFIG_HEADERS section.
12947 # No need to generate them if there are no CONFIG_HEADERS.
12948 # This happens for instance with `./config.status Makefile'.
12949 if test -n "$CONFIG_HEADERS"; then
12950 cat >"$tmp/defines.
awk" <<\_ACAWK ||
12954 # Transform confdefs.h into an awk script `defines.awk', embedded as
12955 # here-document in config.status, that substitutes the proper values into
12956 # config.h.in to produce config.h.
12958 # Create a delimiter string that does not exist in confdefs.h, to ease
12959 # handling of long lines.
12961 for ac_last_try in false false :; do
12962 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
12963 if test -z "$ac_t"; then
12965 elif $ac_last_try; then
12966 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
12968 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12972 # For the awk script, D is an array of macro values keyed by name,
12973 # likewise P contains macro parameters if any. Preserve backslash
12974 # newline sequences.
12976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12978 s/.\{148\}/&'"$ac_delim"'/g
12981 s/^[ ]*#[ ]*define[ ][ ]*/ /
12988 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12990 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12995 D["\
1"]=" \
3\\\\\\n
"\\/p
12997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13002 s/.\{148\}/&'"$ac_delim"'/g
13007 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13010 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13012 ' <confdefs.h | sed '
13013 s/'"$ac_delim"'/"\\\
13014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13017 for (key in D) D_is_set[key] = 1
13020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13022 split(line, arg, " ")
13023 if (arg[1] == "#") {
13027 defundef
= substr
(arg
[1], 2)
13030 split(mac1
, mac2
, "(") #)
13032 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13033 if (D_is_set
[macro
]) {
13034 # Preserve the white space surrounding the "#".
13035 print prefix
"define", macro P
[macro
] D
[macro
]
13038 # Replace #undef with comments. This is necessary, for example,
13039 # in the case of _POSIX_SOURCE, which is predefined and required
13040 # on some systems where configure will not decide to define it.
13041 if (defundef
== "undef") {
13042 print
"/*", prefix defundef
, macro
, "*/"
13050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13051 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
13052 fi # test -n "$CONFIG_HEADERS"
13055 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13060 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13062 case $ac_mode$ac_tag in
13064 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13065 :[FH
]-) ac_tag
=-:-;;
13066 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13083 -) ac_f
="$tmp/stdin";;
13084 *) # Look for the file first in the build tree, then in the source tree
13085 # (if the path is not absolute). The absolute path cannot be DOS-style,
13086 # because $ac_f cannot contain `:'.
13090 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13092 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
13094 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13095 as_fn_append ac_file_inputs
" '$ac_f'"
13098 # Let's still pretend it is `configure' which instantiates (i.e., don't
13099 # use $as_me), people would be surprised to read:
13100 # /* config.h. Generated by config.status. */
13101 configure_input
='Generated from '`
13102 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13104 if test x
"$ac_file" != x-
; then
13105 configure_input
="$ac_file. $configure_input"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13107 $as_echo "$as_me: creating $ac_file" >&6;}
13109 # Neutralize special characters interpreted by sed in replacement strings.
13110 case $configure_input in #(
13111 *\
&* |
*\|
* |
*\\* )
13112 ac_sed_conf_input
=`$as_echo "$configure_input" |
13113 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13114 *) ac_sed_conf_input
=$configure_input;;
13118 *:-:* |
*:-) cat >"$tmp/stdin" \
13119 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
13124 ac_dir
=`$as_dirname -- "$ac_file" ||
13125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13126 X"$ac_file" : 'X\(//\)[^/]' \| \
13127 X"$ac_file" : 'X\(//\)$' \| \
13128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13129 $as_echo X"$ac_file" |
13130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13134 /^X\(\/\/\)[^/].*/{
13147 as_dir
="$ac_dir"; as_fn_mkdir_p
13151 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13153 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13154 # A ".." for each directory in $ac_dir_suffix.
13155 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13156 case $ac_top_builddir_sub in
13157 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13158 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13161 ac_abs_top_builddir
=$ac_pwd
13162 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13163 # for backward compatibility:
13164 ac_top_builddir
=$ac_top_build_prefix
13167 .
) # We are building in place.
13169 ac_top_srcdir
=$ac_top_builddir_sub
13170 ac_abs_top_srcdir
=$ac_pwd ;;
13171 [\\/]* | ?
:[\\/]* ) # Absolute name.
13172 ac_srcdir
=$srcdir$ac_dir_suffix;
13173 ac_top_srcdir
=$srcdir
13174 ac_abs_top_srcdir
=$srcdir ;;
13175 *) # Relative name.
13176 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13177 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13178 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13180 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13190 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13191 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13193 ac_MKDIR_P
=$MKDIR_P
13195 [\\/$
]* | ?
:[\\/]* ) ;;
13196 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13201 # If the template does not know about datarootdir, expand it.
13202 # FIXME: This hack should be removed a few years after 2.60.
13203 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13214 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13215 *datarootdir
*) ac_datarootdir_seen
=yes;;
13216 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13218 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 ac_datarootdir_hack='
13222 s&@datadir@&$datadir&g
13223 s&@docdir@&$docdir&g
13224 s&@infodir@&$infodir&g
13225 s&@localedir@&$localedir&g
13226 s&@mandir@&$mandir&g
13227 s&\\\${datarootdir}&$datarootdir&g' ;;
13231 # Neutralize VPATH when `$srcdir' = `.'.
13232 # Shell code in configure.ac might set extrasub.
13233 # FIXME: do we really want to maintain this feature?
13234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235 ac_sed_extra="$ac_vpsub
13238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13240 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13241 s|@configure_input@|
$ac_sed_conf_input|
;t t
13242 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13243 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13244 s
&@srcdir@
&$ac_srcdir&;t t
13245 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13246 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13247 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13248 s
&@builddir@
&$ac_builddir&;t t
13249 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13250 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13251 s
&@INSTALL@
&$ac_INSTALL&;t t
13252 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13253 $ac_datarootdir_hack
13255 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13256 || as_fn_error "could not create
$ac_file" "$LINENO" 5
13258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13262 which seems to be undefined. Please make sure it is defined." >&5
13263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13264 which seems to be undefined. Please make sure it is defined." >&2;}
13268 -) cat "$tmp/out" && rm -f "$tmp/out";;
13269 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13271 || as_fn_error "could not create $ac_file" "$LINENO" 5
13277 if test x"$ac_file" != x-; then
13279 $as_echo "/* $configure_input */" \
13280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13281 } >"$tmp/config.h" \
13282 || as_fn_error "could not create $ac_file" "$LINENO" 5
13283 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13285 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13288 mv "$tmp/config.h" "$ac_file" \
13289 || as_fn_error "could not create $ac_file" "$LINENO" 5
13292 $as_echo "/* $configure_input */" \
13293 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13294 || as_fn_error "could not create -" "$LINENO" 5
13296 # Compute "$ac_file"'s index
in $config_headers.
13299 for _am_header
in $config_headers :; do
13300 case $_am_header in
13301 $_am_arg |
$_am_arg:* )
13304 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13307 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13308 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13309 X"$_am_arg" : 'X\(//\)[^/]' \| \
13310 X"$_am_arg" : 'X\(//\)$' \| \
13311 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13312 $as_echo X"$_am_arg" |
13313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13317 /^X\(\/\/\)[^/].*/{
13329 s/.*/./; q'`/stamp-h
$_am_stamp_count
13332 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13333 $as_echo "$as_me: executing $ac_file commands" >&6;}
13338 case $ac_file$ac_mode in
13339 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
13340 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13341 # are listed without --file. Let's play safe and only enable the eval
13342 # if we detect the quoting.
13343 case $CONFIG_FILES in
13344 *\'*) eval set x
"$CONFIG_FILES" ;;
13345 *) set x
$CONFIG_FILES ;;
13350 # Strip MF so we end up with the name of the file.
13351 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13352 # Check whether this is an Automake generated Makefile or not.
13353 # We used to match only the files named `Makefile.in', but
13354 # some people rename them; so instead we look at the file content.
13355 # Grep'ing the first line is not enough: some people post-process
13356 # each Makefile.in and add a new line on top of each file to say so.
13357 # Grep'ing the whole file is not good either: AIX grep has a line
13358 # limit of 2048, but all sed's we know have understand at least 4000.
13359 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13360 dirpart
=`$as_dirname -- "$mf" ||
13361 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13362 X"$mf" : 'X\(//\)[^/]' \| \
13363 X"$mf" : 'X\(//\)$' \| \
13364 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13370 /^X\(\/\/\)[^/].*/{
13386 # Extract the definition of DEPDIR, am__include, and am__quote
13387 # from the Makefile without running `make'.
13388 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13389 test -z "$DEPDIR" && continue
13390 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13391 test -z "am__include" && continue
13392 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13393 # When using ansi2knr, U may be empty or an underscore; expand it
13394 U
=`sed -n 's/^U = //p' < "$mf"`
13395 # Find all dependency output files, they are included files with
13396 # $(DEPDIR) in their names. We invoke sed twice because it is the
13397 # simplest approach to changing $(DEPDIR) to its actual value in the
13399 for file in `sed -n "
13400 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13401 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13402 # Make sure the directory exists.
13403 test -f "$dirpart/$file" && continue
13404 fdir
=`$as_dirname -- "$file" ||
13405 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13406 X"$file" : 'X\(//\)[^/]' \| \
13407 X"$file" : 'X\(//\)$' \| \
13408 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13409 $as_echo X"$file" |
13410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13414 /^X\(\/\/\)[^/].*/{
13427 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
13428 # echo "creating $dirpart/$file"
13429 echo '# dummy' > "$dirpart/$file"
13435 case x
$CONFIG_HEADERS in
13436 xconfig.h
:config.
in)
13447 ac_clean_files
=$ac_clean_files_save
13449 test $ac_write_fail = 0 ||
13450 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
13453 # configure is writing to config.log, and then calls config.status.
13454 # config.status does its own redirection, appending to config.log.
13455 # Unfortunately, on DOS this fails, as config.log is still kept open
13456 # by configure, so config.status won't be able to write to it; its
13457 # output is simply discarded. So we exec the FD to /dev/null,
13458 # effectively closing config.log, so it can be properly (re)opened and
13459 # appended to by config.status. When coming back to configure, we
13460 # need to make the FD available again.
13461 if test "$no_create" != yes; then
13463 ac_config_status_args
=
13464 test "$silent" = yes &&
13465 ac_config_status_args
="$ac_config_status_args --quiet"
13467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13470 # would make configure fail if this is the last instruction.
13471 $ac_cs_success || as_fn_exit $?
13473 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13475 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}