2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for dummy 0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
579 PACKAGE_TARNAME='dummy'
581 PACKAGE_STRING='dummy 0'
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
623 ac_subst_vars='gl_LTLIBOBJS
634 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
648 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
741 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
742 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
743 LIBUNISTRING_UNIWIDTH_H
744 LIBUNISTRING_UNITYPES_H
745 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
747 GL_GENERATE_STDDEF_H_FALSE
748 GL_GENERATE_STDDEF_H_TRUE
753 GL_GENERATE_STDBOOL_H_FALSE
754 GL_GENERATE_STDBOOL_H_TRUE
756 LOCALCHARSET_TESTS_ENVIRONMENT
758 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
760 UINT64_MAX_EQ_ULONG_MAX
761 UINT32_MAX_LT_UINTMAX_MAX
764 INT64_MAX_EQ_LONG_MAX
765 INT32_MAX_LT_INTMAX_MAX
775 GL_GENERATE_STDINT_H_FALSE
776 GL_GENERATE_STDINT_H_TRUE
785 HAVE_SIGNED_SIG_ATOMIC_T
788 BITSIZEOF_SIG_ATOMIC_T
791 APPLE_UNIVERSAL_BUILD
795 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
799 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
804 HAVE_UNSIGNED_LONG_LONG_INT
809 GL_COND_LIBTOOL_FALSE
854 INSTALL_STRIP_PROGRAM
896 program_transform_name
909 enable_option_checking
911 enable_dependency_tracking
913 ac_precious_vars='build_alias
924 # Initialize some variables set by options.
926 ac_init_version=false
927 ac_unrecognized_opts=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name=s,x,x,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1015 -datadir | --datadir | --datadi | --datad)
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1231 -site=* | --site=* | --sit=*)
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval with_$ac_useropt=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1287 eval with_$ac_useropt=no ;;
1290 # Obsolete; use --with-x.
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' | [0-9]* | *[!_$as_cr_alnum]* )
1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $? "missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 # Check all directory arguments for consistency.
1346 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val=\$$ac_var
1352 # Remove trailing slashes.
1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\$ac_val;;
1358 # Be sure to have absolute directory names.
1360 [\\/$]* | ?:[\\/]* ) continue;;
1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1371 target=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $? "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $? "pwd does not report name of working directory"
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1428 ac_srcdir_defaulted=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures dummy 0 to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/dummy]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --program-prefix=PREFIX prepend PREFIX to installed program names
1521 --program-suffix=SUFFIX append SUFFIX to installed program names
1522 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530 if test -n "$ac_init_help"; then
1531 case $ac_init_help in
1532 short | recursive ) echo "Configuration of dummy 0:";;
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-silent-rules less verbose build output (undo: "make V=1")
1541 --disable-silent-rules verbose build output (undo: "make V=0")
1542 --enable-dependency-tracking
1543 do not reject slow dependency extractors
1544 --disable-dependency-tracking
1545 speeds up one-time build
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1560 Report bugs to the package provider.
1565 if test "$ac_init_help" = "recursive"; then
1566 # If there are subdirs, report their specific --help.
1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568 test -d "$ac_dir" ||
1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1590 .) # We are building in place.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1624 generated by GNU Autoconf 2.69
1626 Copyright (C) 2012 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1673 } # ac_fn_c_try_compile
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } > conftest.i && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1712 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1715 # the include files in INCLUDES and setting the cache variable VAR
1717 ac_fn_c_check_header_mongrel ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if eval \${$3+:} false; then :
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1730 # Is the header compilable?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1732 $as_echo_n "checking $2 usability... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739 ac_header_compiler=yes
1741 ac_header_compiler=no
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1745 $as_echo "$ac_header_compiler" >&6; }
1747 # Is the header present?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1749 $as_echo_n "checking $2 presence... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1754 if ac_fn_c_try_cpp "$LINENO"; then :
1755 ac_header_preproc=yes
1757 ac_header_preproc=no
1759 rm -f conftest.err conftest.i conftest.$ac_ext
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1761 $as_echo "$ac_header_preproc" >&6; }
1763 # So? What about this header?
1764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1767 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1773 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1775 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1777 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1779 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1789 eval "$3=\$ac_header_compiler"
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_mongrel
1799 # ac_fn_c_try_run LINENO
1800 # ----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1802 # that executables *can* be run.
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_link"
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>&5
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1817 { { case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_try") 2>&5
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; }; }; then :
1829 $as_echo "$as_me: program exited with status $ac_status" >&5
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=$ac_status
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1841 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists and can be compiled using the include files in
1844 # INCLUDES, setting the cache variable VAR accordingly.
1845 ac_fn_c_check_header_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_header_compile
1872 # ac_fn_c_try_link LINENO
1873 # -----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_c_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 test -x conftest$ac_exeext
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1916 } # ac_fn_c_try_link
1918 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1919 # --------------------------------------------
1920 # Tries to find the compile-time value of EXPR in a program that includes
1921 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1923 ac_fn_c_compute_int ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if test "$cross_compiling" = yes; then
1927 # Depending upon the size, compute the lo and hi bounds.
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) >= 0)];
1936 return test_array [0];
1942 if ac_fn_c_try_compile "$LINENO"; then :
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1951 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953 return test_array [0];
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=$ac_mid; break
1962 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1963 if test $ac_lo -le $ac_mid; then
1967 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1978 static int test_array [1 - 2 * !(($2) < 0)];
1980 return test_array [0];
1986 if ac_fn_c_try_compile "$LINENO"; then :
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1995 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1997 return test_array [0];
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_lo=$ac_mid; break
2006 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2007 if test $ac_mid -le $ac_hi; then
2011 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 # Binary search between lo and hi bounds.
2022 while test "x$ac_lo" != "x$ac_hi"; do
2023 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2032 return test_array [0];
2038 if ac_fn_c_try_compile "$LINENO"; then :
2041 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2053 static long int longval () { return $2; }
2054 static unsigned long int ulongval () { return $2; }
2061 FILE *f = fopen ("conftest.val", "w");
2066 long int i = longval ();
2069 fprintf (f, "%ld", i);
2073 unsigned long int i = ulongval ();
2076 fprintf (f, "%lu", i);
2078 /* Do not output a trailing newline, as this causes \r\n confusion
2079 on some platforms. */
2080 return ferror (f) || fclose (f) != 0;
2086 if ac_fn_c_try_run "$LINENO"; then :
2087 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2092 conftest.$ac_objext conftest.beam conftest.$ac_ext
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_c_compute_int
2101 # ac_fn_c_check_func LINENO FUNC VAR
2102 # ----------------------------------
2103 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2104 ac_fn_c_check_func ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2116 #define $2 innocuous_$2
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $2 (); below.
2120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121 <limits.h> exists even on freestanding compilers. */
2124 # include <limits.h>
2126 # include <assert.h>
2131 /* Override any GCC internal prototype to avoid an error.
2132 Use char because int might match the return type of a GCC
2133 builtin and then its argument prototype would still apply. */
2138 /* The GNU C library defines this for functions which it implements
2139 to always fail with ENOSYS. Some functions are actually named
2140 something starting with __ and the normal name is an alias. */
2141 #if defined __stub_$2 || defined __stub___$2
2153 if ac_fn_c_try_link "$LINENO"; then :
2158 rm -f core conftest.err conftest.$ac_objext \
2159 conftest$ac_exeext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_func
2168 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2169 # ---------------------------------------------
2170 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2172 ac_fn_c_check_decl ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 as_decl_name=`echo $2|sed 's/ *(.*//'`
2176 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2178 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 #ifndef $as_decl_name
2190 (void) $as_decl_use;
2192 (void) $as_decl_name;
2200 if ac_fn_c_try_compile "$LINENO"; then :
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 } # ac_fn_c_check_decl
2214 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2215 # -------------------------------------------
2216 # Tests whether TYPE exists after having included INCLUDES, setting cache
2217 # variable VAR accordingly.
2218 ac_fn_c_check_type ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2222 $as_echo_n "checking for $2... " >&6; }
2223 if eval \${$3+:} false; then :
2224 $as_echo_n "(cached) " >&6
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2252 if ac_fn_c_try_compile "$LINENO"; then :
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266 } # ac_fn_c_check_type
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2271 It was created by dummy $as_me 0, which was
2272 generated by GNU Autoconf 2.69. Invocation command line was
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2293 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2294 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2297 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2298 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2299 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 $as_echo "PATH: $as_dir"
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2332 ac_must_keep_next=false
2338 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340 | -silent | --silent | --silen | --sile | --sil)
2343 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2346 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2348 as_fn_append ac_configure_args1 " '$ac_arg'"
2349 if test $ac_must_keep_next = true; then
2350 ac_must_keep_next=false # Got value, back to normal.
2353 *=* | --config-cache | -C | -disable-* | --disable-* \
2354 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356 | -with-* | --with-* | -without-* | --without-* | --x)
2357 case "$ac_configure_args0 " in
2358 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2361 -* ) ac_must_keep_next=true ;;
2364 as_fn_append ac_configure_args " '$ac_arg'"
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log. We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378 # Save into config.log some information that might help in debugging.
2382 $as_echo "## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##"
2386 # The following way of writing the cache mishandles newlines in values,
2388 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2389 eval ac_val=\$$ac_var
2393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2397 _ | IFS | as_nl) ;; #(
2398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2399 *) { eval $ac_var=; unset $ac_var;} ;;
2404 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2405 *${as_nl}ac_space=\ *)
2407 "s/'\''/'\''\\\\'\'''\''/g;
2408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2418 $as_echo "## ----------------- ##
2419 ## Output variables. ##
2420 ## ----------------- ##"
2422 for ac_var in $ac_subst_vars
2424 eval ac_val=\$$ac_var
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428 $as_echo "$ac_var='\''$ac_val'\''"
2432 if test -n "$ac_subst_files"; then
2433 $as_echo "## ------------------- ##
2434 ## File substitutions. ##
2435 ## ------------------- ##"
2437 for ac_var in $ac_subst_files
2439 eval ac_val=\$$ac_var
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443 $as_echo "$ac_var='\''$ac_val'\''"
2448 if test -s confdefs.h; then
2449 $as_echo "## ----------- ##
2456 test "$ac_signal" != 0 &&
2457 $as_echo "$as_me: caught signal $ac_signal"
2458 $as_echo "$as_me: exit $exit_status"
2460 rm -f core *.core core.conftest.* &&
2461 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2464 for ac_signal in 1 2 13 15; do
2465 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2470 rm -f -r conftest* confdefs.h
2472 $as_echo "/* confdefs.h */" > confdefs.h
2474 # Predefined preprocessor variables.
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_NAME "$PACKAGE_NAME"
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_STRING "$PACKAGE_STRING"
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_URL "$PACKAGE_URL"
2501 # Let the site file select an alternate cache file if it wants to.
2502 # Prefer an explicitly selected file to automatically selected ones.
2505 if test -n "$CONFIG_SITE"; then
2506 # We do not want a PATH search for config.site.
2507 case $CONFIG_SITE in #((
2508 -*) ac_site_file1=./$CONFIG_SITE;;
2509 */*) ac_site_file1=$CONFIG_SITE;;
2510 *) ac_site_file1=./$CONFIG_SITE;;
2512 elif test "x$prefix" != xNONE; then
2513 ac_site_file1=$prefix/share/config.site
2514 ac_site_file2=$prefix/etc/config.site
2516 ac_site_file1=$ac_default_prefix/share/config.site
2517 ac_site_file2=$ac_default_prefix/etc/config.site
2519 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2521 test "x$ac_site_file" = xNONE && continue
2522 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2524 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2525 sed 's/^/| /' "$ac_site_file" >&5
2527 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 as_fn_error $? "failed to load site script $ac_site_file
2530 See \`config.log' for more details" "$LINENO" 5; }
2534 if test -r "$cache_file"; then
2535 # Some versions of bash will fail to source /dev/null (special files
2536 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2537 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2539 $as_echo "$as_me: loading cache $cache_file" >&6;}
2541 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2542 *) . "./$cache_file";;
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2547 $as_echo "$as_me: creating cache $cache_file" >&6;}
2551 gl_header_list="$gl_header_list wchar.h"
2552 gl_header_list="$gl_header_list stdint.h"
2553 gl_header_list="$gl_header_list inttypes.h"
2554 gl_header_list="$gl_header_list unistd.h"
2555 gl_func_list="$gl_func_list symlink"
2556 gl_header_list="$gl_header_list features.h"
2557 gl_func_list="$gl_func_list iswcntrl"
2558 gl_header_list="$gl_header_list wctype.h"
2559 gl_func_list="$gl_func_list wcwidth"
2560 # Check that the precious variables saved in the cache have kept the same
2562 ac_cache_corrupted=false
2563 for ac_var in $ac_precious_vars; do
2564 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565 eval ac_new_set=\$ac_env_${ac_var}_set
2566 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567 eval ac_new_val=\$ac_env_${ac_var}_value
2568 case $ac_old_set,$ac_new_set in
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576 ac_cache_corrupted=: ;;
2579 if test "x$ac_old_val" != "x$ac_new_val"; then
2580 # differences in whitespace do not lead to failure.
2581 ac_old_val_w=`echo x $ac_old_val`
2582 ac_new_val_w=`echo x $ac_new_val`
2583 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2585 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586 ac_cache_corrupted=:
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590 eval $ac_var=\$ac_old_val
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2593 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2595 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2598 # Pass precious variables to config.status.
2599 if test "$ac_new_set" = set; then
2601 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602 *) ac_arg=$ac_var=$ac_new_val ;;
2604 case " $ac_configure_args " in
2605 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2606 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2610 if $ac_cache_corrupted; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2615 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2617 ## -------------------- ##
2618 ## Main body of script. ##
2619 ## -------------------- ##
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 for ac_dir in build-aux "$srcdir"/build-aux; do
2630 if test -f "$ac_dir/install-sh"; then
2632 ac_install_sh="$ac_aux_dir/install-sh -c"
2634 elif test -f "$ac_dir/install.sh"; then
2636 ac_install_sh="$ac_aux_dir/install.sh -c"
2638 elif test -f "$ac_dir/shtool"; then
2640 ac_install_sh="$ac_aux_dir/shtool install -c"
2644 if test -z "$ac_aux_dir"; then
2645 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2648 # These three variables are undocumented and unsupported,
2649 # and are intended to be withdrawn in a future Autoconf release.
2650 # They can cause serious problems if a builder's source tree is in a directory
2651 # whose full name contains unusual characters.
2652 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2653 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2654 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2657 am__api_version='1.14'
2659 # Find a good install program. We prefer a C program (faster),
2660 # so one script is as good as another. But avoid the broken or
2661 # incompatible versions:
2662 # SysV /etc/install, /usr/sbin/install
2663 # SunOS /usr/etc/install
2664 # IRIX /sbin/install
2666 # AmigaOS /C/install, which installs bootblocks on floppy discs
2667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2670 # OS/2's system install, which has a completely different semantic
2671 # ./install, which can be erroneously created by make from ./install.sh.
2672 # Reject install programs that cannot install multiple files.
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2674 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2675 if test -z "$INSTALL"; then
2676 if ${ac_cv_path_install+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 # Account for people who put trailing slashes in PATH elements.
2685 case $as_dir/ in #((
2686 ./ | .// | /[cC]/* | \
2687 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2688 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2691 # OSF1 and SCO ODT 3.0 have their own names for install.
2692 # Don't use installbsd from OSF since it installs stuff as root
2694 for ac_prog in ginstall scoinst install; do
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2697 if test $ac_prog = install &&
2698 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2699 # AIX install. It has an incompatible calling convention.
2701 elif test $ac_prog = install &&
2702 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2703 # program-specific install script used by HP pwplus--don't use.
2706 rm -rf conftest.one conftest.two conftest.dir
2707 echo one > conftest.one
2708 echo two > conftest.two
2710 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2711 test -s conftest.one && test -s conftest.two &&
2712 test -s conftest.dir/conftest.one &&
2713 test -s conftest.dir/conftest.two
2715 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2728 rm -rf conftest.one conftest.two conftest.dir
2731 if test "${ac_cv_path_install+set}" = set; then
2732 INSTALL=$ac_cv_path_install
2734 # As a last resort, use the slow shell script. Don't cache a
2735 # value for INSTALL within a source directory, because that will
2736 # break other packages using the cache if that directory is
2737 # removed, or if the value is a relative name.
2738 INSTALL=$ac_install_sh
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2742 $as_echo "$INSTALL" >&6; }
2744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2745 # It thinks the first close brace ends the variable substitution.
2746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2748 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2750 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2753 $as_echo_n "checking whether build environment is sane... " >&6; }
2754 # Reject unsafe characters in $srcdir or the absolute working directory
2755 # name. Accept space and tab only in the latter.
2759 *[\\\"\#\$\&\'\`$am_lf]*)
2760 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2763 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2764 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2767 # Do 'set' in a subshell so we don't clobber the current shell's
2768 # arguments. Must try -L first in case configure is actually a
2769 # symlink; some systems play weird games with the mod time of symlinks
2770 # (eg FreeBSD returns the mod time of the symlink's containing
2774 for am_try in 1 2; do
2775 echo "timestamp, slept: $am_has_slept" > conftest.file
2776 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2777 if test "$*" = "X"; then
2779 set X `ls -t "$srcdir/configure" conftest.file`
2781 if test "$*" != "X $srcdir/configure conftest.file" \
2782 && test "$*" != "X conftest.file $srcdir/configure"; then
2784 # If neither matched, then we have a broken ls. This can happen
2785 # if, for instance, CONFIG_SHELL is bash and it inherits a
2786 # broken ls alias from the environment. This has actually
2787 # happened. Such a system could not be considered "sane".
2788 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2789 alias in your environment" "$LINENO" 5
2791 if test "$2" = conftest.file || test $am_try -eq 2; then
2798 test "$2" = conftest.file
2804 as_fn_error $? "newly created file is older than distributed files!
2805 Check your system clock" "$LINENO" 5
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2808 $as_echo "yes" >&6; }
2809 # If we didn't sleep, we still need to ensure time stamps of config.status and
2810 # generated files are strictly newer.
2812 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2819 test "$program_prefix" != NONE &&
2820 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2821 # Use a double $ so make ignores it.
2822 test "$program_suffix" != NONE &&
2823 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2824 # Double any \ or $.
2825 # By default was `s,x,x', remove it if useless.
2826 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2827 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2829 # expand $ac_aux_dir to an absolute path
2830 am_aux_dir=`cd $ac_aux_dir && pwd`
2832 if test x"${MISSING+set}" != xset; then
2835 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2837 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2840 # Use eval to expand $SHELL
2841 if eval "$MISSING --is-lightweight"; then
2842 am_missing_run="$MISSING "
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2846 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2849 if test x"${install_sh}" != xset; then
2852 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2854 install_sh="\${SHELL} $am_aux_dir/install-sh"
2858 # Installed binaries are usually stripped using 'strip' when the user
2859 # run "make install-strip". However 'strip' might not be the right
2860 # tool to use in cross-compilation environments, therefore Automake
2861 # will honor the 'STRIP' environment variable to overrule this program.
2862 if test "$cross_compiling" != no; then
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}strip; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_STRIP+:} false; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$STRIP"; then
2872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 STRIP=$ac_cv_prog_STRIP
2892 if test -n "$STRIP"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2894 $as_echo "$STRIP" >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2902 if test -z "$ac_cv_prog_STRIP"; then
2904 # Extract the first word of "strip", so it can be a program name with args.
2905 set dummy strip; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 if test -n "$ac_ct_STRIP"; then
2912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_ac_ct_STRIP="strip"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2932 if test -n "$ac_ct_STRIP"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2934 $as_echo "$ac_ct_STRIP" >&6; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2940 if test "x$ac_ct_STRIP" = x; then
2943 case $cross_compiling:$ac_tool_warned in
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned=yes ;;
2952 STRIP="$ac_cv_prog_STRIP"
2956 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2959 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2960 if test -z "$MKDIR_P"; then
2961 if ${ac_cv_path_mkdir+:} false; then :
2962 $as_echo_n "(cached) " >&6
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2968 test -z "$as_dir" && as_dir=.
2969 for ac_prog in mkdir gmkdir; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2972 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2973 'mkdir (GNU coreutils) '* | \
2974 'mkdir (coreutils) '* | \
2975 'mkdir (fileutils) '4.1*)
2976 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2986 test -d ./--version && rmdir ./--version
2987 if test "${ac_cv_path_mkdir+set}" = set; then
2988 MKDIR_P="$ac_cv_path_mkdir -p"
2990 # As a last resort, use the slow shell script. Don't cache a
2991 # value for MKDIR_P within a source directory, because that will
2992 # break other packages using the cache if that directory is
2993 # removed, or if the value is a relative name.
2994 MKDIR_P="$ac_install_sh -d"
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2998 $as_echo "$MKDIR_P" >&6; }
3000 for ac_prog in gawk mawk nawk awk
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_AWK+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$AWK"; then
3010 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_AWK="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$AWK"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3032 $as_echo "$AWK" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3039 test -n "$AWK" && break
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3043 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3045 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3046 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 cat >conftest.make <<\_ACEOF
3052 @echo '@@@%%%=$(MAKE)=@@@%%%'
3054 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3055 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3057 eval ac_cv_prog_make_${ac_make}_set=yes;;
3059 eval ac_cv_prog_make_${ac_make}_set=no;;
3063 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3065 $as_echo "yes" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 SET_MAKE="MAKE=${MAKE-make}"
3073 rm -rf .tst 2>/dev/null
3074 mkdir .tst 2>/dev/null
3075 if test -d .tst; then
3080 rmdir .tst 2>/dev/null
3082 # Check whether --enable-silent-rules was given.
3083 if test "${enable_silent_rules+set}" = set; then :
3084 enableval=$enable_silent_rules;
3087 case $enable_silent_rules in # (((
3088 yes) AM_DEFAULT_VERBOSITY=0;;
3089 no) AM_DEFAULT_VERBOSITY=1;;
3090 *) AM_DEFAULT_VERBOSITY=1;;
3092 am_make=${MAKE-make}
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3094 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3095 if ${am_cv_make_support_nested_variables+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 if $as_echo 'TRUE=$(BAR$(V))
3104 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3105 am_cv_make_support_nested_variables=yes
3107 am_cv_make_support_nested_variables=no
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3111 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3112 if test $am_cv_make_support_nested_variables = yes; then
3114 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3116 AM_V=$AM_DEFAULT_VERBOSITY
3117 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3123 # is not polluted with repeated "-I."
3124 am__isrc=' -I$(srcdir)'
3125 # test to see if srcdir already configured
3126 if test -f $srcdir/config.status; then
3127 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131 # test whether we have cygpath
3132 if test -z "$CYGPATH_W"; then
3133 if (cygpath --version) >/dev/null 2>/dev/null; then
3134 CYGPATH_W='cygpath -w'
3141 # Define the identity of the package.
3146 cat >>confdefs.h <<_ACEOF
3147 #define PACKAGE "$PACKAGE"
3151 cat >>confdefs.h <<_ACEOF
3152 #define VERSION "$VERSION"
3155 # Some tools Automake needs.
3157 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3160 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3163 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3166 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3169 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3171 # For better backward compatibility. To be removed once Automake 1.9.x
3172 # dies out for good. For more background, see:
3173 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3174 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3175 mkdir_p='$(MKDIR_P)'
3177 # We need awk for the "check" target. The system "awk" is bad on
3179 # Always define AMTAR for backward compatibility. Yes, it's still used
3180 # in the wild :-( We should find a proper way to deprecate it ...
3184 # We'll loop over all known methods to create a tar archive until one works.
3185 _am_tools='gnutar pax cpio none'
3187 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3194 # POSIX will say in a future version that running "rm -f" with no argument
3195 # is OK; and we want to be able to make that assumption in our Makefile
3196 # recipes. So use an aggressive probe to check that the usage we want is
3197 # actually supported "in the wild" to an acceptable degree.
3198 # See automake bug#10828.
3199 # To make any issue more visible, cause the running configure to be aborted
3200 # by default if the 'rm' program in use doesn't match our expectations; the
3201 # user can still override this though.
3202 if rm -f && rm -fr && rm -rf; then : OK; else
3206 Your 'rm' program seems unable to run without file operands specified
3207 on the command line, even when the '-f' option is present. This is contrary
3208 to the behaviour of most rm programs out there, and not conforming with
3209 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3211 Please tell bug-automake@gnu.org about your system, including the value
3212 of your $PATH and any error possibly output before this message. This
3213 can help us improve future automake versions.
3216 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3217 echo 'Configuration will proceed anyway, since you have set the' >&2
3218 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3222 Aborting the configuration process, to ensure you take notice of the issue.
3224 You can download and install GNU coreutils to get an 'rm' implementation
3225 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3227 If you want to complete the configuration process using your problematic
3228 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3229 to "yes", and re-run configure.
3232 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3236 ac_config_headers="$ac_config_headers config.h"
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3283 if test -z "$ac_cv_prog_CC"; then
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286 set dummy gcc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313 if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315 $as_echo "$ac_ct_CC" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3321 if test "x$ac_ct_CC" = x; then
3324 case $cross_compiling:$ac_tool_warned in
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}cc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3377 if test -z "$CC"; then
3378 # Extract the first word of "cc", so it can be a program name with args.
3379 set dummy cc; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_CC+:} false; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397 ac_prog_rejected=yes
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test $ac_prog_rejected = yes; then
3409 # We found a bogon in the path, so make sure we never use it.
3410 set dummy $ac_cv_prog_CC
3412 if test $# != 0; then
3413 # We chose a different compiler from the bogus one.
3414 # However, it has the same basename, so the bogon will be chosen
3415 # first if we set CC to just the basename; use the full file name.
3417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3433 if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3474 test -n "$CC" && break
3477 if test -z "$CC"; then
3479 for ac_prog in cl.exe
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482 set dummy $ac_prog; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_ac_ct_CC="$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509 if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511 $as_echo "$ac_ct_CC" >&6; }
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3518 test -n "$ac_ct_CC" && break
3521 if test "x$ac_ct_CC" = x; then
3524 case $cross_compiling:$ac_tool_warned in
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528 ac_tool_warned=yes ;;
3537 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "no acceptable C compiler found in \$PATH
3540 See \`config.log' for more details" "$LINENO" 5; }
3542 # Provide some information about the compiler.
3543 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3546 for ac_option in --version -v -V -qversion; do
3547 { { ac_try="$ac_compiler $ac_option >&5"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3556 if test -s conftest.err; then
3558 ... rest of stderr output deleted ...
3559 10q' conftest.err >conftest.er1
3560 cat conftest.er1 >&5
3562 rm -f conftest.er1 conftest.err
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3578 ac_clean_files_save=$ac_clean_files
3579 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3580 # Try to create an executable without -o first, disregard a.out.
3581 # It will help us diagnose broken compilers, and finding out an intuition
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3584 $as_echo_n "checking whether the C compiler works... " >&6; }
3585 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3587 # The possible output files:
3588 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3591 for ac_file in $ac_files
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3600 if { { ac_try="$ac_link_default"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link_default") 2>&5
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3612 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3613 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3614 # so that the user can short-circuit this test for compilers unknown to
3616 for ac_file in $ac_files ''
3618 test -f "$ac_file" || continue
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3623 # We found the default executable, but exeext='' is most
3627 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3629 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 # We set ac_cv_exeext here because the later test for it is not
3632 # safe: cross compilers may not add the suffix if given an `-o'
3633 # argument, so we may need to know it at that point already.
3634 # Even if this section looks crufty: it has the advantage of
3641 test "$ac_cv_exeext" = no && ac_cv_exeext=
3646 if test -z "$ac_file"; then :
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 $as_echo "$as_me: failed program was:" >&5
3650 sed 's/^/| /' conftest.$ac_ext >&5
3652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error 77 "C compiler cannot create executables
3655 See \`config.log' for more details" "$LINENO" 5; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658 $as_echo "yes" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3661 $as_echo_n "checking for C compiler default output file name... " >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3663 $as_echo "$ac_file" >&6; }
3664 ac_exeext=$ac_cv_exeext
3666 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3667 ac_clean_files=$ac_clean_files_save
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669 $as_echo_n "checking for suffix of executables... " >&6; }
3670 if { { ac_try="$ac_link"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe'), while it won't with
3685 for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details" "$LINENO" 5; }
3700 rm -f conftest conftest$ac_cv_exeext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702 $as_echo "$ac_cv_exeext" >&6; }
3704 rm -f conftest.$ac_ext
3705 EXEEXT=$ac_cv_exeext
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3713 FILE *f = fopen ("conftest.out", "w");
3714 return ferror (f) || fclose (f) != 0;
3720 ac_clean_files="$ac_clean_files conftest.out"
3721 # Check that the compiler produces executables we can run. If not, either
3722 # the compiler is broken, or we cross compile.
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3724 $as_echo_n "checking whether we are cross compiling... " >&6; }
3725 if test "$cross_compiling" != yes; then
3726 { { ac_try="$ac_link"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }
3737 if { ac_try='./conftest$ac_cv_exeext'
3738 { { case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_try") 2>&5
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }; }; then
3750 if test "$cross_compiling" = maybe; then
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error $? "cannot run C compiled programs.
3756 If you meant to cross compile, use \`--host'.
3757 See \`config.log' for more details" "$LINENO" 5; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3762 $as_echo "$cross_compiling" >&6; }
3764 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3765 ac_clean_files=$ac_clean_files_save
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3767 $as_echo_n "checking for suffix of object files... " >&6; }
3768 if ${ac_cv_objext+:} false; then :
3769 $as_echo_n "(cached) " >&6
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 rm -f conftest.o conftest.obj
3783 if { { ac_try="$ac_compile"
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compile") 2>&5
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 for ac_file in conftest.o conftest.obj conftest.*; do
3795 test -f "$ac_file" || continue;
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3803 $as_echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "cannot compute suffix of object files: cannot compile
3809 See \`config.log' for more details" "$LINENO" 5; }
3811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3814 $as_echo "$ac_cv_objext" >&6; }
3815 OBJEXT=$ac_cv_objext
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3818 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3819 if ${ac_cv_c_compiler_gnu+:} false; then :
3820 $as_echo_n "(cached) " >&6
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3836 if ac_fn_c_try_compile "$LINENO"; then :
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3846 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3847 if test $ac_compiler_gnu = yes; then
3852 ac_test_CFLAGS=${CFLAGS+set}
3853 ac_save_CFLAGS=$CFLAGS
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3855 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3856 if ${ac_cv_prog_cc_g+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 ac_save_c_werror_flag=$ac_c_werror_flag
3860 ac_c_werror_flag=yes
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3874 if ac_fn_c_try_compile "$LINENO"; then :
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3889 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 if ac_fn_c_try_compile "$LINENO"; then :
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3916 $as_echo "$ac_cv_prog_cc_g" >&6; }
3917 if test "$ac_test_CFLAGS" = set; then
3918 CFLAGS=$ac_save_CFLAGS
3919 elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3926 if test "$GCC" = yes; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3933 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3934 if ${ac_cv_prog_cc_c89+:} false; then :
3935 $as_echo_n "(cached) " >&6
3937 ac_cv_prog_cc_c89=no
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3945 struct buf { int x; };
3946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3947 static char *e (p, i)
3953 static char *f (char * (*g) (char **, int), char **p, ...)
3958 s = g (p, va_arg (v,int));
3963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3964 function prototypes and stuff, but not '\xHH' hex character constants.
3965 These don't provoke an error unfortunately, instead are silently treated
3966 as 'x'. The following induces an error, until -std is added to get
3967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3968 array size at least. It's necessary to write '\x00'==0 to get something
3969 that's true only with -std. */
3970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3973 inside strings and character constants. */
3975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3977 int test (int i, double x);
3978 struct s1 {int (*f) (int a);};
3979 struct s2 {int (*f) (double a);};
3980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3986 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3994 CC="$ac_save_CC $ac_arg"
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_prog_cc_c89=$ac_arg
3998 rm -f core conftest.err conftest.$ac_objext
3999 test "x$ac_cv_prog_cc_c89" != "xno" && break
4001 rm -f conftest.$ac_ext
4006 case "x$ac_cv_prog_cc_c89" in
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4009 $as_echo "none needed" >&6; } ;;
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4012 $as_echo "unsupported" >&6; } ;;
4014 CC="$CC $ac_cv_prog_cc_c89"
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4016 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4018 if test "x$ac_cv_prog_cc_c89" != xno; then :
4023 ac_cpp='$CPP $CPPFLAGS'
4024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4034 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4035 if ${am_cv_prog_cc_c_o+:} false; then :
4036 $as_echo_n "(cached) " >&6
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 # Make sure it works both with $CC and with simple cc.
4050 # Following AC_PROG_CC_C_O, we do the test twice because some
4051 # compilers refuse to overwrite an existing .o file with -o,
4052 # though they will create one.
4053 am_cv_prog_cc_c_o=yes
4055 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4056 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } \
4060 && test -f conftest2.$ac_objext; then
4063 am_cv_prog_cc_c_o=no
4067 rm -f core conftest*
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4071 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4072 if test "$am_cv_prog_cc_c_o" != yes; then
4073 # Losing compiler, so override with the script.
4074 # FIXME: It is wrong to rewrite CC.
4075 # But if we don't then we get into trouble of one sort or another.
4076 # A longer-term fix would be to have automake use am__CC in this case,
4077 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4078 CC="$am_aux_dir/compile $CC"
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 DEPDIR="${am__leading_dot}deps"
4088 ac_config_commands="$ac_config_commands depfiles"
4091 am_make=${MAKE-make}
4092 cat > confinc << 'END'
4094 @echo this is the am__doit target
4097 # If we don't find an include directive, just comment out the code.
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4099 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4103 # First try GNU make style include.
4104 echo "include confinc" > confmf
4105 # Ignore all kinds of additional output from 'make'.
4106 case `$am_make -s -f confmf 2> /dev/null` in #(
4107 *the\ am__doit\ target*)
4113 # Now try BSD make style include.
4114 if test "$am__include" = "#"; then
4115 echo '.include "confinc"' > confmf
4116 case `$am_make -s -f confmf 2> /dev/null` in #(
4117 *the\ am__doit\ target*)
4118 am__include=.include
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4127 $as_echo "$_am_result" >&6; }
4128 rm -f confinc confmf
4130 # Check whether --enable-dependency-tracking was given.
4131 if test "${enable_dependency_tracking+set}" = set; then :
4132 enableval=$enable_dependency_tracking;
4135 if test "x$enable_dependency_tracking" != xno; then
4136 am_depcomp="$ac_aux_dir/depcomp"
4140 if test "x$enable_dependency_tracking" != xno; then
4150 depcc="$CC" am_compiler_list=
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4153 $as_echo_n "checking dependency style of $depcc... " >&6; }
4154 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4155 $as_echo_n "(cached) " >&6
4157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4158 # We make a subdir and do the tests there. Otherwise we can end up
4159 # making bogus files that we don't know about and never remove. For
4160 # instance it was reported that on HP-UX the gcc test will end up
4161 # making a dummy file named 'D' -- because '-MD' means "put the output
4165 # Copy depcomp to subdir because otherwise we won't find it if we're
4166 # using a relative directory.
4167 cp "$am_depcomp" conftest.dir
4169 # We will build objects and dependencies in a subdirectory because
4170 # it helps to detect inapplicable dependency modes. For instance
4171 # both Tru64's cc and ICC support -MD to output dependencies as a
4172 # side effect of compilation, but ICC will put the dependencies in
4173 # the current directory while Tru64 will put them in the object
4177 am_cv_CC_dependencies_compiler_type=none
4178 if test "$am_compiler_list" = ""; then
4179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4182 case " $depcc " in #(
4183 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4186 for depmode in $am_compiler_list; do
4187 # Setup a source with many dependencies, because some compilers
4188 # like to wrap large dependency lists on column 80 (with \), and
4189 # we should not choose a depcomp mode which is confused by this.
4191 # We need to recreate these files for each test, as the compiler may
4192 # overwrite some of them when testing with obscure command lines.
4193 # This happens at least with the AIX C compiler.
4195 for i in 1 2 3 4 5 6; do
4196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4197 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4198 # Solaris 10 /bin/sh.
4199 echo '/* dummy */' > sub/conftst$i.h
4201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4203 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4204 # mode. It turns out that the SunPro C++ compiler does not properly
4205 # handle '-M -o', and we need to detect this. Also, some Intel
4206 # versions had trouble with output in subdirs.
4207 am__obj=sub/conftest.${OBJEXT-o}
4208 am__minus_obj="-o $am__obj"
4211 # This depmode causes a compiler race in universal mode.
4212 test "$am__universal" = false || continue
4215 # After this tag, mechanisms are not by side-effect, so they'll
4216 # only be used when explicitly requested.
4217 if test "x$enable_dependency_tracking" = xyes; then
4223 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4224 # This compiler won't grok '-c -o', but also, the minuso test has
4225 # not run yet. These depmodes are late enough in the game, and
4226 # so weak that their functioning should not be impacted.
4227 am__obj=conftest.${OBJEXT-o}
4232 if depmode=$depmode \
4233 source=sub/conftest.c object=$am__obj \
4234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4236 >/dev/null 2>conftest.err &&
4237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4241 # icc doesn't choke on unknown options, it will just issue warnings
4242 # or remarks (even with -Werror). So we grep stderr for any message
4243 # that says an option was ignored or not supported.
4244 # When given -MP, icc 7.0 and 7.1 complain thusly:
4245 # icc: Command line warning: ignoring option '-M'; no argument required
4246 # The diagnosis changed in icc 8.0:
4247 # icc: Command line remark: option '-MP' not supported
4248 if (grep 'ignoring option' conftest.err ||
4249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4250 am_cv_CC_dependencies_compiler_type=$depmode
4259 am_cv_CC_dependencies_compiler_type=none
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4264 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4265 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4268 test "x$enable_dependency_tracking" != xno \
4269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4271 am__fastdepCC_FALSE='#'
4273 am__fastdepCC_TRUE='#'
4274 am__fastdepCC_FALSE=
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4280 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4282 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4283 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4284 $as_echo_n "(cached) " >&6
4286 cat >conftest.make <<\_ACEOF
4289 @echo '@@@%%%=$(MAKE)=@@@%%%'
4291 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4292 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4294 eval ac_cv_prog_make_${ac_make}_set=yes;;
4296 eval ac_cv_prog_make_${ac_make}_set=no;;
4300 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4302 $as_echo "yes" >&6; }
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 SET_MAKE="MAKE=${MAKE-make}"
4312 # Make sure we can run config.sub.
4313 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4314 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4317 $as_echo_n "checking build system type... " >&6; }
4318 if ${ac_cv_build+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 ac_build_alias=$build_alias
4322 test "x$ac_build_alias" = x &&
4323 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4324 test "x$ac_build_alias" = x &&
4325 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4326 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4327 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4331 $as_echo "$ac_cv_build" >&6; }
4332 case $ac_cv_build in
4334 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4337 ac_save_IFS=$IFS; IFS='-'
4343 # Remember, the first character of IFS is used to create $*,
4344 # except with old shells:
4347 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4351 $as_echo_n "checking host system type... " >&6; }
4352 if ${ac_cv_host+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 if test "x$host_alias" = x; then
4356 ac_cv_host=$ac_cv_build
4358 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4359 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4364 $as_echo "$ac_cv_host" >&6; }
4367 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4370 ac_save_IFS=$IFS; IFS='-'
4376 # Remember, the first character of IFS is used to create $*,
4377 # except with old shells:
4380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4387 ac_cpp='$CPP $CPPFLAGS'
4388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4392 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4393 # On Suns, sometimes $CPP names a directory.
4394 if test -n "$CPP" && test -d "$CPP"; then
4397 if test -z "$CPP"; then
4398 if ${ac_cv_prog_CPP+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 # Double quotes because CPP needs to be expanded
4402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4405 for ac_c_preproc_warn_flag in '' yes
4407 # Use a header file that comes with gcc, so configuring glibc
4408 # with a fresh cross-compiler works.
4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410 # <limits.h> exists even on freestanding compilers.
4411 # On the NeXT, cc -E runs the code through the compiler's parser,
4412 # not just through cpp. "Syntax error" is here to catch this case.
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4416 # include <limits.h>
4418 # include <assert.h>
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4425 # Broken: fails on valid input.
4428 rm -f conftest.err conftest.i conftest.$ac_ext
4430 # OK, works on sane cases. Now check whether nonexistent headers
4431 # can be detected and how.
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <ac_nonexistent.h>
4436 if ac_fn_c_try_cpp "$LINENO"; then :
4437 # Broken: success on invalid input.
4440 # Passes both tests.
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4448 rm -f conftest.i conftest.err conftest.$ac_ext
4449 if $ac_preproc_ok; then :
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4462 $as_echo "$CPP" >&6; }
4464 for ac_c_preproc_warn_flag in '' yes
4466 # Use a header file that comes with gcc, so configuring glibc
4467 # with a fresh cross-compiler works.
4468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469 # <limits.h> exists even on freestanding compilers.
4470 # On the NeXT, cc -E runs the code through the compiler's parser,
4471 # not just through cpp. "Syntax error" is here to catch this case.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4475 # include <limits.h>
4477 # include <assert.h>
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4484 # Broken: fails on valid input.
4487 rm -f conftest.err conftest.i conftest.$ac_ext
4489 # OK, works on sane cases. Now check whether nonexistent headers
4490 # can be detected and how.
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 #include <ac_nonexistent.h>
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496 # Broken: success on invalid input.
4499 # Passes both tests.
4503 rm -f conftest.err conftest.i conftest.$ac_ext
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.i conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then :
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4525 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4526 if ${ac_cv_path_GREP+:} false; then :
4527 $as_echo_n "(cached) " >&6
4529 if test -z "$GREP"; then
4530 ac_path_GREP_found=false
4531 # Loop through the user's path and test for each of PROGNAME-LIST
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4536 test -z "$as_dir" && as_dir=.
4537 for ac_prog in grep ggrep; do
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4540 as_fn_executable_p "$ac_path_GREP" || continue
4541 # Check for GNU ac_path_GREP and select it if it is found.
4542 # Check for GNU $ac_path_GREP
4543 case `"$ac_path_GREP" --version 2>&1` in
4545 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4548 $as_echo_n 0123456789 >"conftest.in"
4551 cat "conftest.in" "conftest.in" >"conftest.tmp"
4552 mv "conftest.tmp" "conftest.in"
4553 cp "conftest.in" "conftest.nl"
4554 $as_echo 'GREP' >> "conftest.nl"
4555 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4557 as_fn_arith $ac_count + 1 && ac_count=$as_val
4558 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4559 # Best one so far, save it but keep looking for a better one
4560 ac_cv_path_GREP="$ac_path_GREP"
4561 ac_path_GREP_max=$ac_count
4563 # 10*(2^10) chars as input seems more than enough
4564 test $ac_count -gt 10 && break
4566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4569 $ac_path_GREP_found && break 3
4574 if test -z "$ac_cv_path_GREP"; then
4575 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4578 ac_cv_path_GREP=$GREP
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4583 $as_echo "$ac_cv_path_GREP" >&6; }
4584 GREP="$ac_cv_path_GREP"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4588 $as_echo_n "checking for egrep... " >&6; }
4589 if ${ac_cv_path_EGREP+:} false; then :
4590 $as_echo_n "(cached) " >&6
4592 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4593 then ac_cv_path_EGREP="$GREP -E"
4595 if test -z "$EGREP"; then
4596 ac_path_EGREP_found=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 test -z "$as_dir" && as_dir=.
4603 for ac_prog in egrep; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4606 as_fn_executable_p "$ac_path_EGREP" || continue
4607 # Check for GNU ac_path_EGREP and select it if it is found.
4608 # Check for GNU $ac_path_EGREP
4609 case `"$ac_path_EGREP" --version 2>&1` in
4611 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4614 $as_echo_n 0123456789 >"conftest.in"
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'EGREP' >> "conftest.nl"
4621 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623 as_fn_arith $ac_count + 1 && ac_count=$as_val
4624 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_EGREP="$ac_path_EGREP"
4627 ac_path_EGREP_max=$ac_count
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 $ac_path_EGREP_found && break 3
4640 if test -z "$ac_cv_path_EGREP"; then
4641 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 ac_cv_path_EGREP=$EGREP
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4650 $as_echo "$ac_cv_path_EGREP" >&6; }
4651 EGREP="$ac_cv_path_EGREP"
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4657 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4658 if ${gl_cv_c_amsterdam_compiler+:} false; then :
4659 $as_echo_n "(cached) " >&6
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4672 gl_cv_c_amsterdam_compiler=yes
4674 gl_cv_c_amsterdam_compiler=no
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4681 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4682 if test -z "$AR"; then
4683 if test $gl_cv_c_amsterdam_compiler = yes; then
4685 if test -z "$ARFLAGS"; then
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}ar; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_AR+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$AR"; then
4698 ac_cv_prog_AR="$AR" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_AR="${ac_tool_prefix}ar"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test -n "$AR"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4720 $as_echo "$AR" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4728 if test -z "$ac_cv_prog_AR"; then
4730 # Extract the first word of "ar", so it can be a program name with args.
4731 set dummy ar; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 if test -n "$ac_ct_AR"; then
4738 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_ac_ct_AR="ar"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4758 if test -n "$ac_ct_AR"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4760 $as_echo "$ac_ct_AR" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4766 if test "x$ac_ct_AR" = x; then
4769 case $cross_compiling:$ac_tool_warned in
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773 ac_tool_warned=yes ;;
4781 if test -z "$ARFLAGS"; then
4786 if test -z "$ARFLAGS"; then
4792 if test -z "$RANLIB"; then
4793 if test $gl_cv_c_amsterdam_compiler = yes; then
4796 if test -n "$ac_tool_prefix"; then
4797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_RANLIB+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -n "$RANLIB"; then
4805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 RANLIB=$ac_cv_prog_RANLIB
4825 if test -n "$RANLIB"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4827 $as_echo "$RANLIB" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test -z "$ac_cv_prog_RANLIB"; then
4836 ac_ct_RANLIB=$RANLIB
4837 # Extract the first word of "ranlib", so it can be a program name with args.
4838 set dummy ranlib; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 if test -n "$ac_ct_RANLIB"; then
4845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854 ac_cv_prog_ac_ct_RANLIB="ranlib"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4865 if test -n "$ac_ct_RANLIB"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4867 $as_echo "$ac_ct_RANLIB" >&6; }
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4873 if test "x$ac_ct_RANLIB" = x; then
4876 case $cross_compiling:$ac_tool_warned in
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4880 ac_tool_warned=yes ;;
4882 RANLIB=$ac_ct_RANLIB
4885 RANLIB="$ac_cv_prog_RANLIB"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4896 $as_echo_n "checking for ANSI C header files... " >&6; }
4897 if ${ac_cv_header_stdc+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4915 if ac_fn_c_try_compile "$LINENO"; then :
4916 ac_cv_header_stdc=yes
4918 ac_cv_header_stdc=no
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 if test $ac_cv_header_stdc = yes; then
4923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4930 $EGREP "memchr" >/dev/null 2>&1; then :
4933 ac_cv_header_stdc=no
4939 if test $ac_cv_header_stdc = yes; then
4940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4947 $EGREP "free" >/dev/null 2>&1; then :
4950 ac_cv_header_stdc=no
4956 if test $ac_cv_header_stdc = yes; then
4957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4958 if test "$cross_compiling" = yes; then :
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4965 #if ((' ' & 0x0FF) == 0x020)
4966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4969 # define ISLOWER(c) \
4970 (('a' <= (c) && (c) <= 'i') \
4971 || ('j' <= (c) && (c) <= 'r') \
4972 || ('s' <= (c) && (c) <= 'z'))
4973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4981 for (i = 0; i < 256; i++)
4982 if (XOR (islower (i), ISLOWER (i))
4983 || toupper (i) != TOUPPER (i))
4988 if ac_fn_c_try_run "$LINENO"; then :
4991 ac_cv_header_stdc=no
4993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4994 conftest.$ac_objext conftest.beam conftest.$ac_ext
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5000 $as_echo "$ac_cv_header_stdc" >&6; }
5001 if test $ac_cv_header_stdc = yes; then
5003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5009 inttypes.h stdint.h unistd.h
5011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5015 cat >>confdefs.h <<_ACEOF
5016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5025 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5026 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5033 if test "$MINIX" = yes; then
5035 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5038 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5041 $as_echo "#define _MINIX 1" >>confdefs.h
5044 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5050 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5051 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5057 # define __EXTENSIONS__ 1
5058 $ac_includes_default
5067 if ac_fn_c_try_compile "$LINENO"; then :
5068 ac_cv_safe_to_define___extensions__=yes
5070 ac_cv_safe_to_define___extensions__=no
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5075 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5076 test $ac_cv_safe_to_define___extensions__ = yes &&
5077 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5079 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5081 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5083 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5085 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5087 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5090 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5091 if ${ac_cv_should_define__xopen_source+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 ac_cv_should_define__xopen_source=no
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5108 if ac_fn_c_try_compile "$LINENO"; then :
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5114 #define _XOPEN_SOURCE 500
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_should_define__xopen_source=yes
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5133 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5134 test $ac_cv_should_define__xopen_source = yes &&
5135 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5145 GL_COND_LIBTOOL_TRUE=
5146 GL_COND_LIBTOOL_FALSE='#'
5148 GL_COND_LIBTOOL_TRUE='#'
5149 GL_COND_LIBTOOL_FALSE=
5152 gl_cond_libtool=false
5157 # Like AC_LIBOBJ, except that the module name goes
5158 # into gl_LIBOBJS instead of into LIBOBJS.
5161 # Like AC_REPLACE_FUNCS, except that the module name goes
5162 # into gl_LIBOBJS instead of into LIBOBJS.
5165 # Like AC_LIBSOURCES, except the directory where the source file is
5166 # expected is derived from the gnulib-tool parameterization,
5167 # and alloca is special cased (for the alloca-opt module).
5168 # We could also entirely rely on EXTRA_lib..._SOURCES.
5176 LIBC_FATAL_STDERR_=1
5177 export LIBC_FATAL_STDERR_
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5184 $as_echo_n "checking for unsigned long long int... " >&6; }
5185 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 ac_cv_type_unsigned_long_long_int=yes
5189 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5193 /* For now, do not test the preprocessor; as of 2007 there are too many
5194 implementations with broken preprocessors. Perhaps this can
5195 be revisited in 2012. In the meantime, code should not expect
5196 #if to work with literals wider than 32 bits. */
5197 /* Test literals. */
5198 long long int ll = 9223372036854775807ll;
5199 long long int nll = -9223372036854775807LL;
5200 unsigned long long int ull = 18446744073709551615ULL;
5201 /* Test constant expressions. */
5202 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5204 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5210 /* Test availability of runtime routines for shift and division. */
5211 long long int llmax = 9223372036854775807ll;
5212 unsigned long long int ullmax = 18446744073709551615ull;
5213 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5214 | (llmax / ll) | (llmax % ll)
5215 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5216 | (ullmax / ull) | (ullmax % ull));
5222 if ac_fn_c_try_link "$LINENO"; then :
5225 ac_cv_type_unsigned_long_long_int=no
5227 rm -f core conftest.err conftest.$ac_objext \
5228 conftest$ac_exeext conftest.$ac_ext
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5232 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5233 if test $ac_cv_type_unsigned_long_long_int = yes; then
5235 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5242 $as_echo_n "checking for long long int... " >&6; }
5243 if ${ac_cv_type_long_long_int+:} false; then :
5244 $as_echo_n "(cached) " >&6
5246 ac_cv_type_long_long_int=yes
5247 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5248 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5249 if test $ac_cv_type_long_long_int = yes; then
5250 if test "$cross_compiling" = yes; then :
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5258 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5259 # define LLONG_MAX (HALF - 1 + HALF)
5264 long long int n = 1;
5268 long long int m = n << i;
5271 if (LLONG_MAX / 2 < m)
5279 if ac_fn_c_try_run "$LINENO"; then :
5282 ac_cv_type_long_long_int=no
5284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5285 conftest.$ac_objext conftest.beam conftest.$ac_ext
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5292 $as_echo "$ac_cv_type_long_long_int" >&6; }
5293 if test $ac_cv_type_long_long_int = yes; then
5295 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5303 for ac_header in $gl_header_list
5305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5306 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5308 cat >>confdefs.h <<_ACEOF
5309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5323 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5324 if ${gl_cv_have_include_next+:} false; then :
5325 $as_echo_n "(cached) " >&6
5327 rm -rf conftestd1a conftestd1b conftestd2
5328 mkdir conftestd1a conftestd1b conftestd2
5329 cat <<EOF > conftestd1a/conftest.h
5330 #define DEFINED_IN_CONFTESTD1
5331 #include_next <conftest.h>
5332 #ifdef DEFINED_IN_CONFTESTD2
5335 #error "include_next doesn't work"
5338 cat <<EOF > conftestd1b/conftest.h
5339 #define DEFINED_IN_CONFTESTD1
5341 #include_next <conftest.h>
5342 #ifdef DEFINED_IN_CONFTESTD2
5345 #error "include_next doesn't work"
5348 cat <<EOF > conftestd2/conftest.h
5349 #ifndef DEFINED_IN_CONFTESTD1
5350 #error "include_next test doesn't work"
5352 #define DEFINED_IN_CONFTESTD2
5354 gl_save_CPPFLAGS="$CPPFLAGS"
5355 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5358 #include <conftest.h>
5360 if ac_fn_c_try_compile "$LINENO"; then :
5361 gl_cv_have_include_next=yes
5363 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <conftest.h>
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 gl_cv_have_include_next=buggy
5371 gl_cv_have_include_next=no
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 CPPFLAGS="$gl_save_CPPFLAGS"
5378 rm -rf conftestd1a conftestd1b conftestd2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5382 $as_echo "$gl_cv_have_include_next" >&6; }
5383 PRAGMA_SYSTEM_HEADER=
5384 if test $gl_cv_have_include_next = yes; then
5385 INCLUDE_NEXT=include_next
5386 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5387 if test -n "$GCC"; then
5388 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5391 if test $gl_cv_have_include_next = buggy; then
5392 INCLUDE_NEXT=include
5393 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5395 INCLUDE_NEXT=include
5396 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5403 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5404 if ${gl_cv_pragma_columns+:} false; then :
5405 $as_echo_n "(cached) " >&6
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "choke me" >/dev/null 2>&1; then :
5417 gl_cv_pragma_columns=yes
5419 gl_cv_pragma_columns=no
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5426 $as_echo "$gl_cv_pragma_columns" >&6; }
5427 if test $gl_cv_pragma_columns = yes; then
5428 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5440 gl_cv_c_multiarch=no
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 #ifndef __APPLE_CC__
5444 not a universal capable compiler
5449 if ac_fn_c_try_compile "$LINENO"; then :
5453 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5454 if test -n "$prev"; then
5456 i?86 | x86_64 | ppc | ppc64)
5457 if test -z "$arch" || test "$arch" = "$word"; then
5460 gl_cv_c_multiarch=yes
5466 if test "x$word" = "x-arch"; then
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 if test $gl_cv_c_multiarch = yes; then
5475 APPLE_UNIVERSAL_BUILD=1
5477 APPLE_UNIVERSAL_BUILD=0
5484 if test $ac_cv_type_long_long_int = yes; then
5485 HAVE_LONG_LONG_INT=1
5487 HAVE_LONG_LONG_INT=0
5491 if test $ac_cv_type_unsigned_long_long_int = yes; then
5492 HAVE_UNSIGNED_LONG_LONG_INT=1
5494 HAVE_UNSIGNED_LONG_LONG_INT=0
5505 if test $ac_cv_header_wchar_h = yes; then
5512 if test $ac_cv_header_inttypes_h = yes; then
5519 if test $ac_cv_header_sys_types_h = yes; then
5541 if test $gl_cv_have_include_next = yes; then
5542 gl_cv_next_stdint_h='<'stdint.h'>'
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5545 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5546 if ${gl_cv_next_stdint_h+:} false; then :
5547 $as_echo_n "(cached) " >&6
5550 if test $ac_cv_header_stdint_h = yes; then
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5559 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5560 *) gl_absname_cpp="$ac_cpp" ;;
5565 gl_dirsep_regex='[/\\]'
5568 gl_dirsep_regex='\/'
5571 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5573 gl_header_literal_regex=`echo 'stdint.h' \
5574 | sed -e "$gl_make_literal_regex_sed"`
5575 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5576 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5581 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5582 sed -n "$gl_absolute_header_sed"`'"'
5584 gl_cv_next_stdint_h='<'stdint.h'>'
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5590 $as_echo "$gl_cv_next_stdint_h" >&6; }
5592 NEXT_STDINT_H=$gl_cv_next_stdint_h
5594 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5596 gl_next_as_first_directive='<'stdint.h'>'
5598 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5599 gl_next_as_first_directive=$gl_cv_next_stdint_h
5601 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5606 if test $ac_cv_header_stdint_h = yes; then
5613 if test $ac_cv_header_stdint_h = yes; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5615 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5616 if ${gl_cv_header_working_stdint_h+:} false; then :
5617 $as_echo_n "(cached) " >&6
5619 gl_cv_header_working_stdint_h=no
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5624 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5626 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5627 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5628 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5632 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5633 included before <wchar.h>. */
5644 int8_t a1 = INT8_MAX;
5645 int8_t a1min = INT8_MIN;
5648 int16_t a2 = INT16_MAX;
5649 int16_t a2min = INT16_MIN;
5652 int32_t a3 = INT32_MAX;
5653 int32_t a3min = INT32_MIN;
5656 int64_t a4 = INT64_MAX;
5657 int64_t a4min = INT64_MIN;
5660 uint8_t b1 = UINT8_MAX;
5662 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5665 uint16_t b2 = UINT16_MAX;
5668 uint32_t b3 = UINT32_MAX;
5671 uint64_t b4 = UINT64_MAX;
5673 int_least8_t c1 = INT8_C (0x7f);
5674 int_least8_t c1max = INT_LEAST8_MAX;
5675 int_least8_t c1min = INT_LEAST8_MIN;
5676 int_least16_t c2 = INT16_C (0x7fff);
5677 int_least16_t c2max = INT_LEAST16_MAX;
5678 int_least16_t c2min = INT_LEAST16_MIN;
5679 int_least32_t c3 = INT32_C (0x7fffffff);
5680 int_least32_t c3max = INT_LEAST32_MAX;
5681 int_least32_t c3min = INT_LEAST32_MIN;
5682 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5683 int_least64_t c4max = INT_LEAST64_MAX;
5684 int_least64_t c4min = INT_LEAST64_MIN;
5685 uint_least8_t d1 = UINT8_C (0xff);
5686 uint_least8_t d1max = UINT_LEAST8_MAX;
5687 uint_least16_t d2 = UINT16_C (0xffff);
5688 uint_least16_t d2max = UINT_LEAST16_MAX;
5689 uint_least32_t d3 = UINT32_C (0xffffffff);
5690 uint_least32_t d3max = UINT_LEAST32_MAX;
5691 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5692 uint_least64_t d4max = UINT_LEAST64_MAX;
5693 int_fast8_t e1 = INT_FAST8_MAX;
5694 int_fast8_t e1min = INT_FAST8_MIN;
5695 int_fast16_t e2 = INT_FAST16_MAX;
5696 int_fast16_t e2min = INT_FAST16_MIN;
5697 int_fast32_t e3 = INT_FAST32_MAX;
5698 int_fast32_t e3min = INT_FAST32_MIN;
5699 int_fast64_t e4 = INT_FAST64_MAX;
5700 int_fast64_t e4min = INT_FAST64_MIN;
5701 uint_fast8_t f1 = UINT_FAST8_MAX;
5702 uint_fast16_t f2 = UINT_FAST16_MAX;
5703 uint_fast32_t f3 = UINT_FAST32_MAX;
5704 uint_fast64_t f4 = UINT_FAST64_MAX;
5706 intptr_t g = INTPTR_MAX;
5707 intptr_t gmin = INTPTR_MIN;
5710 uintptr_t h = UINTPTR_MAX;
5712 intmax_t i = INTMAX_MAX;
5713 uintmax_t j = UINTMAX_MAX;
5715 #include <limits.h> /* for CHAR_BIT */
5716 #define TYPE_MINIMUM(t) \
5717 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5718 #define TYPE_MAXIMUM(t) \
5719 ((t) ((t) 0 < (t) -1 \
5721 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5724 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5725 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5727 /* Detect bug in FreeBSD 6.0 / ia64. */
5728 int check_SIG_ATOMIC:
5729 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5730 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5732 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5734 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5735 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5737 /* Detect bug in mingw. */
5739 WINT_MIN == TYPE_MINIMUM (wint_t)
5740 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5743 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5745 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5747 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5749 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5751 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5754 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5757 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5760 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5762 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5763 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5764 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5765 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5766 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5767 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5768 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5769 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5770 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5771 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5772 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5783 if ac_fn_c_try_compile "$LINENO"; then :
5784 if test "$cross_compiling" = yes; then :
5785 gl_cv_header_working_stdint_h=yes
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5792 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5796 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5797 included before <wchar.h>. */
5809 #define MVAL(macro) MVAL1(macro)
5810 #define MVAL1(expression) #expression
5811 static const char *macro_values[] =
5845 for (mv = macro_values; *mv != NULL; mv++)
5847 const char *value = *mv;
5848 /* Test whether it looks like a cast expression. */
5849 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5850 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5851 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5852 || strncmp (value, "((int)"/*)*/, 6) == 0
5853 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5854 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5855 return mv - macro_values + 1;
5863 if ac_fn_c_try_run "$LINENO"; then :
5864 gl_cv_header_working_stdint_h=yes
5866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5867 conftest.$ac_objext conftest.beam conftest.$ac_ext
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5876 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5878 if test "$gl_cv_header_working_stdint_h" = yes; then
5881 for ac_header in sys/inttypes.h sys/bitypes.h
5883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5884 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5886 cat >>confdefs.h <<_ACEOF
5887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 if test $ac_cv_header_sys_inttypes_h = yes; then
5895 HAVE_SYS_INTTYPES_H=1
5897 HAVE_SYS_INTTYPES_H=0
5900 if test $ac_cv_header_sys_bitypes_h = yes; then
5901 HAVE_SYS_BITYPES_H=1
5903 HAVE_SYS_BITYPES_H=0
5909 if test $APPLE_UNIVERSAL_BUILD = 0; then
5912 for gltype in ptrdiff_t size_t ; do
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5914 $as_echo_n "checking for bit size of $gltype... " >&6; }
5915 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
5916 $as_echo_n "(cached) " >&6
5918 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5919 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5920 included before <wchar.h>. */
5929 #include <limits.h>"; then :
5935 eval gl_cv_bitsizeof_${gltype}=\$result
5938 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5940 $as_echo "$ac_res" >&6; }
5941 eval result=\$gl_cv_bitsizeof_${gltype}
5942 if test $result = unknown; then
5945 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5946 cat >>confdefs.h <<_ACEOF
5947 #define BITSIZEOF_${GLTYPE} $result
5950 eval BITSIZEOF_${GLTYPE}=\$result
5957 for gltype in sig_atomic_t wchar_t wint_t ; do
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5959 $as_echo_n "checking for bit size of $gltype... " >&6; }
5960 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
5961 $as_echo_n "(cached) " >&6
5963 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5964 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5965 included before <wchar.h>. */
5974 #include <limits.h>"; then :
5980 eval gl_cv_bitsizeof_${gltype}=\$result
5983 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5985 $as_echo "$ac_res" >&6; }
5986 eval result=\$gl_cv_bitsizeof_${gltype}
5987 if test $result = unknown; then
5990 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5991 cat >>confdefs.h <<_ACEOF
5992 #define BITSIZEOF_${GLTYPE} $result
5995 eval BITSIZEOF_${GLTYPE}=\$result
6001 for gltype in sig_atomic_t wchar_t wint_t ; do
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6003 $as_echo_n "checking whether $gltype is signed... " >&6; }
6004 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
6005 $as_echo_n "(cached) " >&6
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6010 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6011 included before <wchar.h>. */
6020 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6029 if ac_fn_c_try_compile "$LINENO"; then :
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 eval gl_cv_type_${gltype}_signed=\$result
6038 eval ac_res=\$gl_cv_type_${gltype}_signed
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6040 $as_echo "$ac_res" >&6; }
6041 eval result=\$gl_cv_type_${gltype}_signed
6042 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6043 if test "$result" = yes; then
6044 cat >>confdefs.h <<_ACEOF
6045 #define HAVE_SIGNED_${GLTYPE} 1
6048 eval HAVE_SIGNED_${GLTYPE}=1
6050 eval HAVE_SIGNED_${GLTYPE}=0
6055 gl_cv_type_ptrdiff_t_signed=yes
6056 gl_cv_type_size_t_signed=no
6057 if test $APPLE_UNIVERSAL_BUILD = 0; then
6060 for gltype in ptrdiff_t size_t ; do
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6062 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6063 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
6064 $as_echo_n "(cached) " >&6
6066 eval gl_cv_type_${gltype}_suffix=no
6067 eval result=\$gl_cv_type_${gltype}_signed
6068 if test "$result" = yes; then
6073 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6076 l) gltype1='long int';;
6077 ll) gltype1='long long int';;
6078 i64) gltype1='__int64';;
6079 u) gltype1='unsigned int';;
6080 ul) gltype1='unsigned long int';;
6081 ull) gltype1='unsigned long long int';;
6082 ui64)gltype1='unsigned __int64';;
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6087 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6088 included before <wchar.h>. */
6098 extern $gltype1 foo;
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 eval gl_cv_type_${gltype}_suffix=\$glsuf
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 eval result=\$gl_cv_type_${gltype}_suffix
6112 test "$result" != no && break
6115 eval ac_res=\$gl_cv_type_${gltype}_suffix
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6117 $as_echo "$ac_res" >&6; }
6118 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6119 eval result=\$gl_cv_type_${gltype}_suffix
6120 test "$result" = no && result=
6121 eval ${GLTYPE}_SUFFIX=\$result
6122 cat >>confdefs.h <<_ACEOF
6123 #define ${GLTYPE}_SUFFIX $result
6132 for gltype in sig_atomic_t wchar_t wint_t ; do
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6134 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6135 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
6136 $as_echo_n "(cached) " >&6
6138 eval gl_cv_type_${gltype}_suffix=no
6139 eval result=\$gl_cv_type_${gltype}_signed
6140 if test "$result" = yes; then
6145 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6148 l) gltype1='long int';;
6149 ll) gltype1='long long int';;
6150 i64) gltype1='__int64';;
6151 u) gltype1='unsigned int';;
6152 ul) gltype1='unsigned long int';;
6153 ull) gltype1='unsigned long long int';;
6154 ui64)gltype1='unsigned __int64';;
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6159 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6160 included before <wchar.h>. */
6170 extern $gltype1 foo;
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 eval gl_cv_type_${gltype}_suffix=\$glsuf
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 eval result=\$gl_cv_type_${gltype}_suffix
6184 test "$result" != no && break
6187 eval ac_res=\$gl_cv_type_${gltype}_suffix
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6189 $as_echo "$ac_res" >&6; }
6190 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6191 eval result=\$gl_cv_type_${gltype}_suffix
6192 test "$result" = no && result=
6193 eval ${GLTYPE}_SUFFIX=\$result
6194 cat >>confdefs.h <<_ACEOF
6195 #define ${GLTYPE}_SUFFIX $result
6202 if test $BITSIZEOF_WINT_T -lt 32; then
6209 if test -n "$STDINT_H"; then
6210 GL_GENERATE_STDINT_H_TRUE=
6211 GL_GENERATE_STDINT_H_FALSE='#'
6213 GL_GENERATE_STDINT_H_TRUE='#'
6214 GL_GENERATE_STDINT_H_FALSE=
6228 HAVE_DECL_IMAXABS=1;
6229 HAVE_DECL_IMAXDIV=1;
6230 HAVE_DECL_STRTOIMAX=1;
6231 HAVE_DECL_STRTOUMAX=1;
6232 REPLACE_STRTOIMAX=0;
6233 INT32_MAX_LT_INTMAX_MAX=1;
6234 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6235 PRI_MACROS_BROKEN=0;
6236 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6237 UINT32_MAX_LT_UINTMAX_MAX=1;
6238 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6266 if test $gl_cv_have_include_next = yes; then
6267 gl_cv_next_inttypes_h='<'inttypes.h'>'
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6270 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6271 if ${gl_cv_next_inttypes_h+:} false; then :
6272 $as_echo_n "(cached) " >&6
6275 if test $ac_cv_header_inttypes_h = yes; then
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <inttypes.h>
6284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6285 *) gl_absname_cpp="$ac_cpp" ;;
6290 gl_dirsep_regex='[/\\]'
6293 gl_dirsep_regex='\/'
6296 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6298 gl_header_literal_regex=`echo 'inttypes.h' \
6299 | sed -e "$gl_make_literal_regex_sed"`
6300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6306 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6307 sed -n "$gl_absolute_header_sed"`'"'
6309 gl_cv_next_inttypes_h='<'inttypes.h'>'
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6315 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6317 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6321 gl_next_as_first_directive='<'inttypes.h'>'
6323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6324 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6326 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6335 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6336 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6338 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6339 if eval \${$as_gl_Symbol+:} false; then :
6340 $as_echo_n "(cached) " >&6
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344 #include <inttypes.h>
6355 if ac_fn_c_try_compile "$LINENO"; then :
6356 eval "$as_gl_Symbol=yes"
6358 eval "$as_gl_Symbol=no"
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 eval ac_res=\$$as_gl_Symbol
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6364 $as_echo "$ac_res" >&6; }
6365 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
6366 cat >>confdefs.h <<_ACEOF
6367 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6370 eval ac_cv_have_decl_$gl_func=yes
6376 for ac_header in inttypes.h
6378 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6379 if test "x$ac_cv_header_inttypes_h" = xyes; then :
6380 cat >>confdefs.h <<_ACEOF
6381 #define HAVE_INTTYPES_H 1
6388 if test $ac_cv_header_inttypes_h = yes; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6390 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6391 if ${gt_cv_inttypes_pri_broken+:} false; then :
6392 $as_echo_n "(cached) " >&6
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6398 #include <inttypes.h>
6411 if ac_fn_c_try_compile "$LINENO"; then :
6412 gt_cv_inttypes_pri_broken=no
6414 gt_cv_inttypes_pri_broken=yes
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6420 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6422 if test "$gt_cv_inttypes_pri_broken" = yes; then
6424 cat >>confdefs.h <<_ACEOF
6425 #define PRI_MACROS_BROKEN 1
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6436 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6437 if ${am_cv_langinfo_codeset+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6442 #include <langinfo.h>
6446 char* cs = nl_langinfo(CODESET); return !cs;
6451 if ac_fn_c_try_link "$LINENO"; then :
6452 am_cv_langinfo_codeset=yes
6454 am_cv_langinfo_codeset=no
6456 rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6461 $as_echo "$am_cv_langinfo_codeset" >&6; }
6462 if test $am_cv_langinfo_codeset = yes; then
6464 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6477 for ac_func in $gl_func_list
6479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6482 cat >>confdefs.h <<_ACEOF
6483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6511 $as_echo_n "checking for working fcntl.h... " >&6; }
6512 if ${gl_cv_header_working_fcntl_h+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 if test "$cross_compiling" = yes; then :
6516 gl_cv_header_working_fcntl_h=cross-compiling
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <sys/types.h>
6521 #include <sys/stat.h>
6523 # include <unistd.h>
6524 #else /* on Windows with MSVC */
6526 # include <stdlib.h>
6527 # defined sleep(n) _sleep ((n) * 1000)
6534 #define O_NOFOLLOW 0
6536 static int const constants[] =
6538 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6539 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6546 int result = !constants;
6549 static char const sym[] = "conftest.sym";
6550 if (symlink ("/dev/null", sym) != 0)
6554 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
6561 if (unlink (sym) != 0 || symlink (".", sym) != 0)
6565 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6576 static char const file[] = "confdefs.h";
6577 int fd = open (file, O_RDONLY | O_NOATIME);
6583 if (fstat (fd, &st0) != 0)
6589 if (read (fd, &c, 1) != 1)
6593 if (close (fd) != 0)
6598 if (stat (file, &st1) != 0)
6601 if (st0.st_atime != st1.st_atime)
6613 if ac_fn_c_try_run "$LINENO"; then :
6614 gl_cv_header_working_fcntl_h=yes
6617 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6618 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6619 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6620 *) gl_cv_header_working_fcntl_h='no';;
6623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6624 conftest.$ac_objext conftest.beam conftest.$ac_ext
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6629 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6631 case $gl_cv_header_working_fcntl_h in #(
6632 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6636 cat >>confdefs.h <<_ACEOF
6637 #define HAVE_WORKING_O_NOATIME $ac_val
6641 case $gl_cv_header_working_fcntl_h in #(
6642 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_WORKING_O_NOFOLLOW $ac_val
6652 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6653 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6659 cat >>confdefs.h <<_ACEOF
6660 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6666 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6667 if ${ac_cv_gnu_library_2_1+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6673 #include <features.h>
6674 #ifdef __GNU_LIBRARY__
6675 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6685 $EGREP "Lucky" >/dev/null 2>&1; then :
6686 ac_cv_gnu_library_2_1=yes
6688 ac_cv_gnu_library_2_1=no
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6696 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
6698 GLIBC21="$ac_cv_gnu_library_2_1"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6702 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6703 if ${ac_cv_header_stdbool_h+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6709 #include <stdbool.h>
6711 "error: bool is not defined"
6714 "error: false is not defined"
6717 "error: false is not 0"
6720 "error: true is not defined"
6723 "error: true is not 1"
6725 #ifndef __bool_true_false_are_defined
6726 "error: __bool_true_false_are_defined is not defined"
6729 struct s { _Bool s: 1; _Bool t; } s;
6731 char a[true == 1 ? 1 : -1];
6732 char b[false == 0 ? 1 : -1];
6733 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6734 char d[(bool) 0.5 == true ? 1 : -1];
6735 /* See body of main program for 'e'. */
6736 char f[(_Bool) 0.0 == false ? 1 : -1];
6738 char h[sizeof (_Bool)];
6740 enum { j = false, k = true, l = false * true, m = true * 256 };
6741 /* The following fails for
6742 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6744 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6745 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6746 /* Catch a bug in an HP-UX C compiler. See
6747 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6748 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6760 /* Refer to every declared value, to avoid compiler optimizations. */
6761 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6762 + !m + !n + !o + !p + !q + !pq);
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 ac_cv_header_stdbool_h=yes
6771 ac_cv_header_stdbool_h=no
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6776 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6777 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6778 if test "x$ac_cv_type__Bool" = xyes; then :
6780 cat >>confdefs.h <<_ACEOF
6781 #define HAVE__BOOL 1
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6794 $as_echo_n "checking for wchar_t... " >&6; }
6795 if ${gt_cv_c_wchar_t+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6801 wchar_t foo = (wchar_t)'\0';
6810 if ac_fn_c_try_compile "$LINENO"; then :
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6818 $as_echo "$gt_cv_c_wchar_t" >&6; }
6819 if test $gt_cv_c_wchar_t = yes; then
6821 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6831 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
6836 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
6841 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
6848 if test "$HAVE_LIBUNISTRING" = yes; then
6849 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
6850 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
6851 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
6861 GNULIB_MBSNRTOWCS=0;
6864 GNULIB_WCSNRTOMBS=0;
6881 GNULIB_WCSCASECMP=0;
6882 GNULIB_WCSNCASECMP=0;
6932 HAVE_DECL_WCWIDTH=1;
6933 REPLACE_MBSTATE_T=0;
6939 REPLACE_MBSRTOWCS=0;
6940 REPLACE_MBSNRTOWCS=0;
6942 REPLACE_WCSRTOMBS=0;
6943 REPLACE_WCSNRTOMBS=0;
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6949 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6950 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
6951 $as_echo_n "(cached) " >&6
6953 gl_cv_header_wchar_h_correct_inline=yes
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6957 #define wcstod renamed_wcstod
6958 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6960 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6961 included before <wchar.h>. */
6966 extern int zero (void);
6967 int main () { return zero(); }
6970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6971 (eval $ac_compile) 2>&5
6973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; }; then
6975 mv conftest.$ac_objext conftest1.$ac_objext
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6979 #define wcstod renamed_wcstod
6980 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6982 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6983 included before <wchar.h>. */
6988 int zero (void) { return 0; }
6991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992 (eval $ac_compile) 2>&5
6994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995 test $ac_status = 0; }; then
6996 mv conftest.$ac_objext conftest2.$ac_objext
6997 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7000 gl_cv_header_wchar_h_correct_inline=no
7004 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
7008 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7009 if test $gl_cv_header_wchar_h_correct_inline = no; then
7010 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7011 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7012 C99 mode. You have four options:
7013 - Add the flag -fgnu89-inline to CC and reconfigure, or
7014 - Fix your include files, using parts of
7015 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7016 - Use a gcc version older than 4.3, or
7017 - Don't use the flags -std=c99 or -std=gnu99.
7018 Configuration aborted." "$LINENO" 5
7034 if test $ac_cv_header_features_h = yes; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
7043 $as_echo_n "checking for wint_t... " >&6; }
7044 if ${gt_cv_c_wint_t+:} false; then :
7045 $as_echo_n "(cached) " >&6
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7050 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7052 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
7053 before <wchar.h>. */
7058 wint_t foo = (wchar_t)'\0';
7067 if ac_fn_c_try_compile "$LINENO"; then :
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
7075 $as_echo "$gt_cv_c_wint_t" >&6; }
7076 if test $gt_cv_c_wint_t = yes; then
7078 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
7119 gl_source_base='lib'
7121 if test "x$datarootdir" = x; then
7122 datarootdir='${datadir}'
7125 if test "x$docdir" = x; then
7126 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7129 if test "x$htmldir" = x; then
7133 if test "x$dvidir" = x; then
7137 if test "x$pdfdir" = x; then
7141 if test "x$psdir" = x; then
7145 if test "x$lispdir" = x; then
7146 lispdir='${datarootdir}/emacs/site-lisp'
7149 if test "x$localedir" = x; then
7150 localedir='${datarootdir}/locale'
7153 if test "x$runstatedir" = x; then
7154 runstatedir='${localstatedir}/run'
7158 pkglibexecdir='${libexecdir}/${PACKAGE}'
7168 if test -n "$STDINT_H"; then
7171 for glpfx in '' l ll I64; do
7174 l) gltype1='long int';;
7175 ll) gltype1='long long int';;
7176 I64) gltype1='__int64';;
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7181 extern intptr_t foo;
7182 extern $gltype1 foo;
7191 if ac_fn_c_try_compile "$LINENO"; then :
7192 PRIPTR_PREFIX='"'$glpfx'"'
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 test -n "$PRIPTR_PREFIX" && break
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
7202 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
7203 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
7204 $as_echo_n "(cached) " >&6
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 /* Work also in C++ mode. */
7209 #define __STDC_LIMIT_MACROS 1
7211 /* Work if build is not clean. */
7212 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7219 #if defined INT32_MAX && defined INTMAX_MAX
7220 #define CONDITION (INT32_MAX < INTMAX_MAX)
7221 #elif HAVE_LONG_LONG_INT
7222 #define CONDITION (sizeof (int) < sizeof (long long int))
7226 int test[CONDITION ? 1 : -1];
7235 if ac_fn_c_try_compile "$LINENO"; then :
7236 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
7238 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
7243 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
7244 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
7245 INT32_MAX_LT_INTMAX_MAX=1;
7247 INT32_MAX_LT_INTMAX_MAX=0;
7251 if test $APPLE_UNIVERSAL_BUILD = 0; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
7254 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
7255 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
7256 $as_echo_n "(cached) " >&6
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 /* Work also in C++ mode. */
7261 #define __STDC_LIMIT_MACROS 1
7263 /* Work if build is not clean. */
7264 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7271 #if defined INT64_MAX
7272 #define CONDITION (INT64_MAX == LONG_MAX)
7273 #elif HAVE_LONG_LONG_INT
7274 #define CONDITION (sizeof (long long int) == sizeof (long int))
7278 int test[CONDITION ? 1 : -1];
7287 if ac_fn_c_try_compile "$LINENO"; then :
7288 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
7290 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
7295 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
7296 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
7297 INT64_MAX_EQ_LONG_MAX=1;
7299 INT64_MAX_EQ_LONG_MAX=0;
7304 INT64_MAX_EQ_LONG_MAX=-1
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
7308 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
7309 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
7310 $as_echo_n "(cached) " >&6
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 /* Work also in C++ mode. */
7315 #define __STDC_LIMIT_MACROS 1
7317 /* Work if build is not clean. */
7318 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7325 #if defined UINT32_MAX && defined UINTMAX_MAX
7326 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
7327 #elif HAVE_LONG_LONG_INT
7328 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
7332 int test[CONDITION ? 1 : -1];
7341 if ac_fn_c_try_compile "$LINENO"; then :
7342 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
7344 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
7349 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
7350 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
7351 UINT32_MAX_LT_UINTMAX_MAX=1;
7353 UINT32_MAX_LT_UINTMAX_MAX=0;
7357 if test $APPLE_UNIVERSAL_BUILD = 0; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
7360 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
7361 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
7362 $as_echo_n "(cached) " >&6
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 /* Work also in C++ mode. */
7367 #define __STDC_LIMIT_MACROS 1
7369 /* Work if build is not clean. */
7370 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7377 #if defined UINT64_MAX
7378 #define CONDITION (UINT64_MAX == ULONG_MAX)
7379 #elif HAVE_LONG_LONG_INT
7380 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
7384 int test[CONDITION ? 1 : -1];
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
7396 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
7401 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
7402 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
7403 UINT64_MAX_EQ_ULONG_MAX=1;
7405 UINT64_MAX_EQ_ULONG_MAX=0;
7410 UINT64_MAX_EQ_ULONG_MAX=-1
7429 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
7435 # Define two additional variables used in the Makefile substitution.
7437 if test "$ac_cv_header_stdbool_h" = yes; then
7440 STDBOOL_H='stdbool.h'
7443 if test -n "$STDBOOL_H"; then
7444 GL_GENERATE_STDBOOL_H_TRUE=
7445 GL_GENERATE_STDBOOL_H_FALSE='#'
7447 GL_GENERATE_STDBOOL_H_TRUE='#'
7448 GL_GENERATE_STDBOOL_H_FALSE=
7452 if test "$ac_cv_type__Bool" = yes; then
7463 if test $gt_cv_c_wchar_t = no; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7468 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7469 if ${gl_cv_decl_null_works+:} false; then :
7470 $as_echo_n "(cached) " >&6
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7475 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 gl_cv_decl_null_works=yes
7488 gl_cv_decl_null_works=no
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7493 $as_echo "$gl_cv_decl_null_works" >&6; }
7494 if test $gl_cv_decl_null_works = no; then
7499 if test -n "$STDDEF_H"; then
7500 GL_GENERATE_STDDEF_H_TRUE=
7501 GL_GENERATE_STDDEF_H_FALSE='#'
7503 GL_GENERATE_STDDEF_H_TRUE='#'
7504 GL_GENERATE_STDDEF_H_FALSE=
7507 if test -n "$STDDEF_H"; then
7516 if test $gl_cv_have_include_next = yes; then
7517 gl_cv_next_stddef_h='<'stddef.h'>'
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7520 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7521 if ${gl_cv_next_stddef_h+:} false; then :
7522 $as_echo_n "(cached) " >&6
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7531 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7532 *) gl_absname_cpp="$ac_cpp" ;;
7537 gl_dirsep_regex='[/\\]'
7540 gl_dirsep_regex='\/'
7543 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7545 gl_header_literal_regex=`echo 'stddef.h' \
7546 | sed -e "$gl_make_literal_regex_sed"`
7547 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7548 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7553 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7554 sed -n "$gl_absolute_header_sed"`'"'
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7559 $as_echo "$gl_cv_next_stddef_h" >&6; }
7561 NEXT_STDDEF_H=$gl_cv_next_stddef_h
7563 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7564 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7565 gl_next_as_first_directive='<'stddef.h'>'
7567 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7568 gl_next_as_first_directive=$gl_cv_next_stddef_h
7570 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
7580 if { test "$HAVE_LIBUNISTRING" != yes \
7585 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
7586 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
7587 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
7588 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
7589 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
7599 LIBUNISTRING_UNITYPES_H='unitypes.h'
7601 LIBUNISTRING_UNITYPES_H=
7607 if { test "$HAVE_LIBUNISTRING" != yes \
7612 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
7613 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
7614 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
7615 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
7616 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
7626 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
7628 LIBUNISTRING_UNIWIDTH_H=
7634 if { test "$HAVE_LIBUNISTRING" != yes \
7639 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
7640 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
7641 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
7642 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
7643 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
7653 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
7654 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
7656 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
7657 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
7679 if test $gl_cv_have_include_next = yes; then
7680 gl_cv_next_wchar_h='<'wchar.h'>'
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
7683 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
7684 if ${gl_cv_next_wchar_h+:} false; then :
7685 $as_echo_n "(cached) " >&6
7688 if test $ac_cv_header_wchar_h = yes; then
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7697 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7698 *) gl_absname_cpp="$ac_cpp" ;;
7703 gl_dirsep_regex='[/\\]'
7706 gl_dirsep_regex='\/'
7709 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7711 gl_header_literal_regex=`echo 'wchar.h' \
7712 | sed -e "$gl_make_literal_regex_sed"`
7713 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7714 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7719 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7720 sed -n "$gl_absolute_header_sed"`'"'
7722 gl_cv_next_wchar_h='<'wchar.h'>'
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7728 $as_echo "$gl_cv_next_wchar_h" >&6; }
7730 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7732 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7733 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7734 gl_next_as_first_directive='<'wchar.h'>'
7736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7737 gl_next_as_first_directive=$gl_cv_next_wchar_h
7739 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7744 if test $ac_cv_header_wchar_h = yes; then
7754 if test $gt_cv_c_wint_t = yes; then
7762 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
7763 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7765 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7766 if eval \${$as_gl_Symbol+:} false; then :
7767 $as_echo_n "(cached) " >&6
7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7772 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7774 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7775 included before <wchar.h>. */
7776 #if !(defined __GLIBC__ && !defined __UCLIBC__)
7777 # include <stddef.h>
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 eval "$as_gl_Symbol=yes"
7795 eval "$as_gl_Symbol=no"
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 eval ac_res=\$$as_gl_Symbol
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7801 $as_echo "$ac_res" >&6; }
7802 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
7803 cat >>confdefs.h <<_ACEOF
7804 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7807 eval ac_cv_have_decl_$gl_func=yes
7823 if test $ac_cv_func_iswcntrl = yes; then
7831 if test $gt_cv_c_wint_t = yes; then
7853 if test $gl_cv_have_include_next = yes; then
7854 gl_cv_next_wctype_h='<'wctype.h'>'
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
7857 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
7858 if ${gl_cv_next_wctype_h+:} false; then :
7859 $as_echo_n "(cached) " >&6
7862 if test $ac_cv_header_wctype_h = yes; then
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7871 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7872 *) gl_absname_cpp="$ac_cpp" ;;
7877 gl_dirsep_regex='[/\\]'
7880 gl_dirsep_regex='\/'
7883 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7885 gl_header_literal_regex=`echo 'wctype.h' \
7886 | sed -e "$gl_make_literal_regex_sed"`
7887 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7888 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7893 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7894 sed -n "$gl_absolute_header_sed"`'"'
7896 gl_cv_next_wctype_h='<'wctype.h'>'
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
7902 $as_echo "$gl_cv_next_wctype_h" >&6; }
7904 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
7906 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7907 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7908 gl_next_as_first_directive='<'wctype.h'>'
7910 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7911 gl_next_as_first_directive=$gl_cv_next_wctype_h
7913 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
7918 if test $ac_cv_header_wctype_h = yes; then
7919 if test $ac_cv_func_iswcntrl = yes; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
7921 $as_echo_n "checking whether iswcntrl works... " >&6; }
7922 if ${gl_cv_func_iswcntrl_works+:} false; then :
7923 $as_echo_n "(cached) " >&6
7926 if test "$cross_compiling" = yes; then :
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7930 #if __GNU_LIBRARY__ == 1
7931 Linux libc5 i18n is broken.
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 gl_cv_func_iswcntrl_works="guessing yes"
7944 gl_cv_func_iswcntrl_works="guessing no"
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7952 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
7953 included before <wchar.h>.
7954 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
7955 must be included before <wchar.h>. */
7961 int main () { return iswprint ('x') == 0; }
7964 if ac_fn_c_try_run "$LINENO"; then :
7965 gl_cv_func_iswcntrl_works=yes
7967 gl_cv_func_iswcntrl_works=no
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7970 conftest.$ac_objext conftest.beam conftest.$ac_ext
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
7976 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
7984 case "$gl_cv_func_iswcntrl_works" in
7985 *yes) REPLACE_ISWCNTRL=0 ;;
7986 *) REPLACE_ISWCNTRL=1 ;;
7990 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
7994 if test $REPLACE_ISWCNTRL = 1; then
7997 for ac_func in towlower
7999 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
8000 if test "x$ac_cv_func_towlower" = xyes; then :
8001 cat >>confdefs.h <<_ACEOF
8002 #define HAVE_TOWLOWER 1
8008 if test $ac_cv_func_towlower = yes; then
8011 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
8012 included before <wchar.h>.
8013 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
8014 must be included before <wchar.h>. */
8020 # include <wctype.h>
8024 if test "x$ac_cv_have_decl_towlower" = xyes; then :
8030 cat >>confdefs.h <<_ACEOF
8031 #define HAVE_DECL_TOWLOWER $ac_have_decl
8034 if test $ac_cv_have_decl_towlower = yes; then
8043 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
8048 $as_echo_n "checking for wctype_t... " >&6; }
8049 if ${gl_cv_type_wctype_t+:} false; then :
8050 $as_echo_n "(cached) " >&6
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
8055 included before <wchar.h>.
8056 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
8057 must be included before <wchar.h>. */
8063 # include <wctype.h>
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 gl_cv_type_wctype_t=yes
8078 gl_cv_type_wctype_t=no
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
8084 $as_echo "$gl_cv_type_wctype_t" >&6; }
8085 if test $gl_cv_type_wctype_t = no; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
8090 $as_echo_n "checking for wctrans_t... " >&6; }
8091 if ${gl_cv_type_wctrans_t+:} false; then :
8092 $as_echo_n "(cached) " >&6
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8096 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
8097 included before <wchar.h>.
8098 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
8099 must be included before <wchar.h>. */
8115 if ac_fn_c_try_compile "$LINENO"; then :
8116 gl_cv_type_wctrans_t=yes
8118 gl_cv_type_wctrans_t=no
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
8124 $as_echo "$gl_cv_type_wctrans_t" >&6; }
8125 if test $gl_cv_type_wctrans_t = no; then
8130 for gl_func in wctype iswctype wctrans towctrans ; do
8131 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8133 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8134 if eval \${$as_gl_Symbol+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8140 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8142 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8143 included before <wchar.h>. */
8144 #if !(defined __GLIBC__ && !defined __UCLIBC__)
8145 # include <stddef.h>
8161 if ac_fn_c_try_compile "$LINENO"; then :
8162 eval "$as_gl_Symbol=yes"
8164 eval "$as_gl_Symbol=no"
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168 eval ac_res=\$$as_gl_Symbol
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8170 $as_echo "$ac_res" >&6; }
8171 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8172 cat >>confdefs.h <<_ACEOF
8173 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8176 eval ac_cv_have_decl_$gl_func=yes
8204 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
8205 /* AIX 3.2.5 declares wcwidth in <string.h>. */
8207 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8209 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8210 before <wchar.h>. */
8217 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
8223 cat >>confdefs.h <<_ACEOF
8224 #define HAVE_DECL_WCWIDTH $ac_have_decl
8227 if test $ac_cv_have_decl_wcwidth != yes; then
8231 if test $ac_cv_func_wcwidth = yes; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
8234 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
8235 if ${gl_cv_func_wcwidth_works+:} false; then :
8236 $as_echo_n "(cached) " >&6
8239 if test "$cross_compiling" = yes; then :
8242 # Guess yes on glibc and AIX 7 systems.
8243 *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
8244 *) gl_cv_func_wcwidth_works="guessing no";;
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8252 /* AIX 3.2.5 declares wcwidth in <string.h>. */
8254 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8256 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8257 before <wchar.h>. */
8262 #if !HAVE_DECL_WCWIDTH
8272 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
8274 if (wcwidth (0x0301) > 0)
8276 if (wcwidth (0x05B0) > 0)
8278 if (wcwidth (0x200B) > 0)
8284 if ac_fn_c_try_run "$LINENO"; then :
8285 gl_cv_func_wcwidth_works=yes
8287 gl_cv_func_wcwidth_works=no
8289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8290 conftest.$ac_objext conftest.beam conftest.$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
8296 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
8297 case "$gl_cv_func_wcwidth_works" in
8299 *no) REPLACE_WCWIDTH=1 ;;
8305 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
8314 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
8328 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
8341 LIBGNU_LIBDEPS="$gl_libdeps"
8343 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
8347 ac_config_files="$ac_config_files Makefile lib/Makefile m4/Makefile"
8349 cat >confcache <<\_ACEOF
8350 # This file is a shell script that caches the results of configure
8351 # tests run on this system so they can be shared between configure
8352 # scripts and configure runs, see configure's option --config-cache.
8353 # It is not useful on other systems. If it contains results you don't
8354 # want to keep, you may remove or edit it.
8356 # config.status only pays attention to the cache file if you give it
8357 # the --recheck option to rerun configure.
8359 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8360 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8365 # The following way of writing the cache mishandles newlines in values,
8366 # but we know of no workaround that is simple, portable, and efficient.
8367 # So, we kill variables containing newlines.
8368 # Ultrix sh set writes to stderr and can't be redirected directly,
8369 # and sets the high bit in the cache file unless we assign to the vars.
8371 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8372 eval ac_val=\$$ac_var
8376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8380 _ | IFS | as_nl) ;; #(
8381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8382 *) { eval $ac_var=; unset $ac_var;} ;;
8388 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8389 *${as_nl}ac_space=\ *)
8390 # `set' does not quote correctly, so add quotes: double-quote
8391 # substitution turns \\\\ into \\, and sed turns \\ into \.
8394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8397 # `set' quotes correctly as required by POSIX, so do not add quotes.
8398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8407 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8409 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8411 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8412 if test -w "$cache_file"; then
8413 if test "x$cache_file" != "x/dev/null"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8415 $as_echo "$as_me: updating cache $cache_file" >&6;}
8416 if test ! -f "$cache_file" || test -h "$cache_file"; then
8417 cat confcache >"$cache_file"
8419 case $cache_file in #(
8421 mv -f confcache "$cache_file"$$ &&
8422 mv -f "$cache_file"$$ "$cache_file" ;; #(
8424 mv -f confcache "$cache_file" ;;
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8430 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8435 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8436 # Let make expand exec_prefix.
8437 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8439 DEFS=-DHAVE_CONFIG_H
8444 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8445 # 1. Remove the extension, and $U if already installed.
8446 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8447 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8448 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8449 # will be set to the directory where LIBOBJS objects are built.
8450 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8451 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8455 LTLIBOBJS=$ac_ltlibobjs
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8459 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8460 if test -n "$am_sleep_pid"; then
8461 # Hide warnings about reused PIDs.
8462 wait $am_sleep_pid 2>/dev/null
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8465 $as_echo "done" >&6; }
8466 if test -n "$EXEEXT"; then
8468 am__EXEEXT_FALSE='#'
8474 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8475 as_fn_error $? "conditional \"AMDEP\" was never defined.
8476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8478 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8479 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8482 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
8483 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
8484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8486 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
8487 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
8488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8490 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
8491 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
8492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8494 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
8495 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
8496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8498 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
8499 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
8500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8505 if test -n "$gl_LIBOBJS"; then
8506 # Remove the extension.
8507 sed_drop_objext='s/\.o$//;s/\.obj$//'
8508 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
8509 gl_libobjs="$gl_libobjs $i.$ac_objext"
8510 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
8513 gl_LIBOBJS=$gl_libobjs
8515 gl_LTLIBOBJS=$gl_ltlibobjs
8519 : "${CONFIG_STATUS=./config.status}"
8521 ac_clean_files_save=$ac_clean_files
8522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8528 # Generated by $as_me.
8529 # Run this file to recreate the current configuration.
8530 # Compiler output produced by configure, useful for debugging
8531 # configure, is in config.log if it exists.
8537 SHELL=\${CONFIG_SHELL-$SHELL}
8540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8541 ## -------------------- ##
8542 ## M4sh Initialization. ##
8543 ## -------------------- ##
8545 # Be more Bourne compatible
8546 DUALCASE=1; export DUALCASE # for MKS sh
8547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8550 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8551 # is contrary to our usage. Disable this feature.
8552 alias -g '${1+"$@"}'='"$@"'
8553 setopt NO_GLOB_SUBST
8555 case `(set -o) 2>/dev/null` in #(
8567 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8568 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8571 # Prefer a ksh shell builtin over an external printf program on Solaris,
8572 # but without wasting forks for bash or zsh.
8573 if test -z "$BASH_VERSION$ZSH_VERSION" \
8574 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8575 as_echo='print -r --'
8576 as_echo_n='print -rn --'
8577 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8578 as_echo='printf %s\n'
8579 as_echo_n='printf %s'
8581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8582 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8583 as_echo_n='/usr/ucb/echo -n'
8585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8586 as_echo_n_body='eval
8590 expr "X$arg" : "X\\(.*\\)$as_nl";
8591 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8593 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8595 export as_echo_n_body
8596 as_echo_n='sh -c $as_echo_n_body as_echo'
8599 as_echo='sh -c $as_echo_body as_echo'
8602 # The user is always right.
8603 if test "${PATH_SEPARATOR+set}" != set; then
8605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8606 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8613 # We need space, tab and new line, in precisely that order. Quoting is
8614 # there to prevent editors from complaining about space-tab.
8615 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8616 # splitting by setting IFS to empty value.)
8619 # Find who we are. Look in the path if we contain no directory separator.
8622 *[\\/]* ) as_myself=$0 ;;
8623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 test -z "$as_dir" && as_dir=.
8628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8634 # We did not find ourselves, most probably we were run as `sh COMMAND'
8635 # in which case we are not to be found in the path.
8636 if test "x$as_myself" = x; then
8639 if test ! -f "$as_myself"; then
8640 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8644 # Unset variables that we do not need and which cause bugs (e.g. in
8645 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8646 # suppresses any "Segmentation fault" message there. '((' could
8647 # trigger a bug in pdksh 5.2.14.
8648 for as_var in BASH_ENV ENV MAIL MAILPATH
8649 do eval test x\${$as_var+set} = xset \
8650 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8666 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8667 # ----------------------------------------
8668 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8669 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8670 # script with STATUS, using 1 if that was 0.
8673 as_status=$1; test $as_status -eq 0 && as_status=1
8675 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8676 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8678 $as_echo "$as_me: error: $2" >&2
8679 as_fn_exit $as_status
8683 # as_fn_set_status STATUS
8684 # -----------------------
8685 # Set $? to STATUS, without forking.
8689 } # as_fn_set_status
8693 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8703 # Portably unset VAR.
8706 { eval $1=; unset $1;}
8708 as_unset=as_fn_unset
8709 # as_fn_append VAR VALUE
8710 # ----------------------
8711 # Append the text in VALUE to the end of the definition contained in VAR. Take
8712 # advantage of any shell optimizations that allow amortized linear growth over
8713 # repeated appends, instead of the typical quadratic growth present in naive
8715 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8716 eval 'as_fn_append ()
8727 # as_fn_arith ARG...
8728 # ------------------
8729 # Perform arithmetic evaluation on the ARGs, and store the result in the
8730 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8731 # must be portable across $(()) and expr.
8732 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8733 eval 'as_fn_arith ()
8740 as_val=`expr "$@" || test $? -eq 1`
8745 if expr a : '\(a\)' >/dev/null 2>&1 &&
8746 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8752 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8753 as_basename=basename
8758 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8764 as_me=`$as_basename -- "$0" ||
8765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8766 X"$0" : 'X\(//\)$' \| \
8767 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8769 sed '/^.*\/\([^/][^/]*\)\/*$/{
8783 # Avoid depending upon Character Ranges.
8784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8787 as_cr_digits='0123456789'
8788 as_cr_alnum=$as_cr_Letters$as_cr_digits
8790 ECHO_C= ECHO_N= ECHO_T=
8791 case `echo -n x` in #(((((
8793 case `echo 'xy\c'` in
8794 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8796 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8803 rm -f conf$$ conf$$.exe conf$$.file
8804 if test -d conf$$.dir; then
8805 rm -f conf$$.dir/conf$$.file
8808 mkdir conf$$.dir 2>/dev/null
8810 if (echo >conf$$.file) 2>/dev/null; then
8811 if ln -s conf$$.file conf$$ 2>/dev/null; then
8813 # ... but there are two gotchas:
8814 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8815 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8816 # In both cases, we have to default to `cp -pR'.
8817 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8819 elif ln conf$$.file conf$$ 2>/dev/null; then
8827 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8828 rmdir conf$$.dir 2>/dev/null
8833 # Create "$as_dir" as a directory, including parents if necessary.
8838 -*) as_dir=./$as_dir;;
8840 test -d "$as_dir" || eval $as_mkdir_p || {
8844 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8845 *) as_qdir=$as_dir;;
8847 as_dirs="'$as_qdir' $as_dirs"
8848 as_dir=`$as_dirname -- "$as_dir" ||
8849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8850 X"$as_dir" : 'X\(//\)[^/]' \| \
8851 X"$as_dir" : 'X\(//\)$' \| \
8852 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8853 $as_echo X"$as_dir" |
8854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8871 test -d "$as_dir" && break
8873 test -z "$as_dirs" || eval "mkdir $as_dirs"
8874 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8878 if mkdir -p . 2>/dev/null; then
8879 as_mkdir_p='mkdir -p "$as_dir"'
8881 test -d ./-p && rmdir ./-p
8886 # as_fn_executable_p FILE
8887 # -----------------------
8888 # Test if FILE is an executable regular file.
8889 as_fn_executable_p ()
8891 test -f "$1" && test -x "$1"
8892 } # as_fn_executable_p
8894 as_executable_p=as_fn_executable_p
8896 # Sed expression to map a string onto a valid CPP name.
8897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8899 # Sed expression to map a string onto a valid variable name.
8900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8904 ## ----------------------------------- ##
8905 ## Main body of $CONFIG_STATUS script. ##
8906 ## ----------------------------------- ##
8908 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8911 # Save the log message, to keep $0 and so on meaningful, and to
8912 # report actual input values of CONFIG_FILES etc. instead of their
8913 # values after options handling.
8915 This file was extended by dummy $as_me 0, which was
8916 generated by GNU Autoconf 2.69. Invocation command line was
8918 CONFIG_FILES = $CONFIG_FILES
8919 CONFIG_HEADERS = $CONFIG_HEADERS
8920 CONFIG_LINKS = $CONFIG_LINKS
8921 CONFIG_COMMANDS = $CONFIG_COMMANDS
8924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8929 case $ac_config_files in *"
8930 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8933 case $ac_config_headers in *"
8934 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8939 # Files that config.status was made for.
8940 config_files="$ac_config_files"
8941 config_headers="$ac_config_headers"
8942 config_commands="$ac_config_commands"
8946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8948 \`$as_me' instantiates files and other configuration actions
8949 from templates according to the current configuration. Unless the files
8950 and actions are specified as TAGs, all are instantiated by default.
8952 Usage: $0 [OPTION]... [TAG]...
8954 -h, --help print this help, then exit
8955 -V, --version print version number and configuration settings, then exit
8956 --config print configuration, then exit
8957 -q, --quiet, --silent
8958 do not print progress messages
8959 -d, --debug don't remove temporary files
8960 --recheck update $as_me by reconfiguring in the same conditions
8961 --file=FILE[:TEMPLATE]
8962 instantiate the configuration file FILE
8963 --header=FILE[:TEMPLATE]
8964 instantiate the configuration header FILE
8966 Configuration files:
8969 Configuration headers:
8972 Configuration commands:
8975 Report bugs to the package provider."
8978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8979 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8981 dummy config.status 0
8982 configured by $0, generated by GNU Autoconf 2.69,
8983 with options \\"\$ac_cs_config\\"
8985 Copyright (C) 2012 Free Software Foundation, Inc.
8986 This config.status script is free software; the Free Software Foundation
8987 gives unlimited permission to copy, distribute and modify it."
8994 test -n "\$AWK" || AWK=awk
8997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8998 # The default lists apply if the user does not specify any file.
9004 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9005 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9009 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9021 # Handling of the options.
9022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9024 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9025 $as_echo "$ac_cs_version"; exit ;;
9026 --config | --confi | --conf | --con | --co | --c )
9027 $as_echo "$ac_cs_config"; exit ;;
9028 --debug | --debu | --deb | --de | --d | -d )
9030 --file | --fil | --fi | --f )
9033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9034 '') as_fn_error $? "missing file argument" ;;
9036 as_fn_append CONFIG_FILES " '$ac_optarg'"
9037 ac_need_defaults=false;;
9038 --header | --heade | --head | --hea )
9041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9043 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9044 ac_need_defaults=false;;
9046 # Conflict between --help and --header
9047 as_fn_error $? "ambiguous option: \`$1'
9048 Try \`$0 --help' for more information.";;
9049 --help | --hel | -h )
9050 $as_echo "$ac_cs_usage"; exit ;;
9051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9056 -*) as_fn_error $? "unrecognized option: \`$1'
9057 Try \`$0 --help' for more information." ;;
9059 *) as_fn_append ac_config_targets " $1"
9060 ac_need_defaults=false ;;
9066 ac_configure_extra_args=
9068 if $ac_cs_silent; then
9070 ac_configure_extra_args="$ac_configure_extra_args --silent"
9074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9075 if \$ac_cs_recheck; then
9076 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9078 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9079 CONFIG_SHELL='$SHELL'
9085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9090 ## Running $as_me. ##
9096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9100 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9106 # Handling of arguments.
9107 for ac_config_target in $ac_config_targets
9109 case $ac_config_target in
9110 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9111 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9112 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9113 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9114 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9116 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9121 # If the user did not use the arguments to specify the items to instantiate,
9122 # then the envvar interface is used. Set only those that are not.
9123 # We use the long form for the default assignment because of an extremely
9124 # bizarre bug on SunOS 4.1.3.
9125 if $ac_need_defaults; then
9126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9131 # Have a temporary directory for convenience. Make it in the build tree
9132 # simply because there is no reason against having it here, and in addition,
9133 # creating and moving files from /tmp can sometimes cause problems.
9134 # Hook for its removal unless debugging.
9135 # Note that there is a small window in which the directory will not be cleaned:
9136 # after its creation but before its name has been assigned to `$tmp'.
9140 trap 'exit_status=$?
9142 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9144 trap 'as_fn_exit 1' 1 2 13 15
9146 # Create a (secure) tmp directory for tmp files.
9149 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9153 tmp=./conf$$-$RANDOM
9154 (umask 077 && mkdir "$tmp")
9155 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9158 # Set up the scripts for CONFIG_FILES section.
9159 # No need to generate them if there are no CONFIG_FILES.
9160 # This happens for instance with `./config.status config.h'.
9161 if test -n "$CONFIG_FILES"; then
9164 ac_cr=`echo X | tr X '\015'`
9165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9166 # But we know of no other shell where ac_cr would be empty at this
9167 # point, so we can use a bashism as a fallback.
9168 if test "x$ac_cr" = x; then
9169 eval ac_cr=\$\'\\r\'
9171 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9178 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9183 echo "cat >conf$$subs.awk <<_ACEOF" &&
9184 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9188 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9190 for ac_last_try in false false false false false :; do
9191 . ./conf$$subs.sh ||
9192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9194 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9195 if test $ac_delim_n = $ac_delim_num; then
9197 elif $ac_last_try; then
9198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9206 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9210 s/^/S["/; s/!.*/"]=/
9220 s/\(.\{148\}\)..*/\1/
9222 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9234 s/\(.\{148\}\)..*/\1/
9236 s/["\\]/\\&/g; s/^/"/; s/$/"/
9240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9245 ' <conf$$subs.awk | sed '
9250 ' >>$CONFIG_STATUS || ac_write_fail=1
9251 rm -f conf$$subs.awk
9252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9254 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9255 for (key in S) S_is_set[key] = 1
9261 nfields = split(line, field, "@")
9263 len = length(field[1])
9264 for (i = 2; i < nfields; i++) {
9266 keylen = length(key)
9267 if (S_is_set[key]) {
9269 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9270 len += length(value) + length(field[++i])
9281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9282 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9286 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9287 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9290 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9291 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9292 # trailing colons and then remove the whole line if VPATH becomes empty
9293 # (actually we leave an empty line to preserve line numbers).
9294 if test "x$srcdir" = x.; then
9295 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9314 fi # test -n "$CONFIG_FILES"
9316 # Set up the scripts for CONFIG_HEADERS section.
9317 # No need to generate them if there are no CONFIG_HEADERS.
9318 # This happens for instance with `./config.status Makefile'.
9319 if test -n "$CONFIG_HEADERS"; then
9320 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9324 # Transform confdefs.h into an awk script `defines.awk', embedded as
9325 # here-document in config.status, that substitutes the proper values into
9326 # config.h.in to produce config.h.
9328 # Create a delimiter string that does not exist in confdefs.h, to ease
9329 # handling of long lines.
9331 for ac_last_try in false false :; do
9332 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9333 if test -z "$ac_tt"; then
9335 elif $ac_last_try; then
9336 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9342 # For the awk script, D is an array of macro values keyed by name,
9343 # likewise P contains macro parameters if any. Preserve backslash
9344 # newline sequences.
9346 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9348 s/.\{148\}/&'"$ac_delim"'/g
9351 s/^[ ]*#[ ]*define[ ][ ]*/ /
9358 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9360 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9364 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9365 D["\1"]=" \3\\\\\\n"\\/p
9367 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9372 s/.\{148\}/&'"$ac_delim"'/g
9377 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9380 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9382 ' <confdefs.h | sed '
9383 s/'"$ac_delim"'/"\\\
9384 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9387 for (key in D) D_is_set[key] = 1
9390 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9392 split(line, arg, " ")
9393 if (arg[1] == "#") {
9397 defundef = substr(arg[1], 2)
9400 split(mac1, mac2, "(") #)
9402 prefix = substr(line, 1, index(line, defundef) - 1)
9403 if (D_is_set[macro]) {
9404 # Preserve the white space surrounding the "#".
9405 print prefix "define", macro P[macro] D[macro]
9408 # Replace #undef with comments. This is necessary, for example,
9409 # in the case of _POSIX_SOURCE, which is predefined and required
9410 # on some systems where configure will not decide to define it.
9411 if (defundef == "undef") {
9412 print "/*", prefix defundef, macro, "*/"
9420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9421 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9422 fi # test -n "$CONFIG_HEADERS"
9425 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9430 :[FHLC]) ac_mode=$ac_tag; continue;;
9432 case $ac_mode$ac_tag in
9434 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9435 :[FH]-) ac_tag=-:-;;
9436 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9453 -) ac_f="$ac_tmp/stdin";;
9454 *) # Look for the file first in the build tree, then in the source tree
9455 # (if the path is not absolute). The absolute path cannot be DOS-style,
9456 # because $ac_f cannot contain `:'.
9460 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9462 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9464 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9465 as_fn_append ac_file_inputs " '$ac_f'"
9468 # Let's still pretend it is `configure' which instantiates (i.e., don't
9469 # use $as_me), people would be surprised to read:
9470 # /* config.h. Generated by config.status. */
9471 configure_input='Generated from '`
9472 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9474 if test x"$ac_file" != x-; then
9475 configure_input="$ac_file. $configure_input"
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9477 $as_echo "$as_me: creating $ac_file" >&6;}
9479 # Neutralize special characters interpreted by sed in replacement strings.
9480 case $configure_input in #(
9481 *\&* | *\|* | *\\* )
9482 ac_sed_conf_input=`$as_echo "$configure_input" |
9483 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9484 *) ac_sed_conf_input=$configure_input;;
9488 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9494 ac_dir=`$as_dirname -- "$ac_file" ||
9495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9496 X"$ac_file" : 'X\(//\)[^/]' \| \
9497 X"$ac_file" : 'X\(//\)$' \| \
9498 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9499 $as_echo X"$ac_file" |
9500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9517 as_dir="$ac_dir"; as_fn_mkdir_p
9521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9524 # A ".." for each directory in $ac_dir_suffix.
9525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9526 case $ac_top_builddir_sub in
9527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9531 ac_abs_top_builddir=$ac_pwd
9532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9533 # for backward compatibility:
9534 ac_top_builddir=$ac_top_build_prefix
9537 .) # We are building in place.
9539 ac_top_srcdir=$ac_top_builddir_sub
9540 ac_abs_top_srcdir=$ac_pwd ;;
9541 [\\/]* | ?:[\\/]* ) # Absolute name.
9542 ac_srcdir=$srcdir$ac_dir_suffix;
9543 ac_top_srcdir=$srcdir
9544 ac_abs_top_srcdir=$srcdir ;;
9546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9547 ac_top_srcdir=$ac_top_build_prefix$srcdir
9548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9560 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9561 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9565 [\\/$]* | ?:[\\/]* ) ;;
9566 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9571 # If the template does not know about datarootdir, expand it.
9572 # FIXME: This hack should be removed a few years after 2.60.
9573 ac_datarootdir_hack=; ac_datarootdir_seen=
9584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9585 *datarootdir*) ac_datarootdir_seen=yes;;
9586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9591 ac_datarootdir_hack='
9592 s&@datadir@&$datadir&g
9593 s&@docdir@&$docdir&g
9594 s&@infodir@&$infodir&g
9595 s&@localedir@&$localedir&g
9596 s&@mandir@&$mandir&g
9597 s&\\\${datarootdir}&$datarootdir&g' ;;
9601 # Neutralize VPATH when `$srcdir' = `.'.
9602 # Shell code in configure.ac might set extrasub.
9603 # FIXME: do we really want to maintain this feature?
9604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9605 ac_sed_extra="$ac_vpsub
9608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9611 s|@configure_input@|$ac_sed_conf_input|;t t
9612 s&@top_builddir@&$ac_top_builddir_sub&;t t
9613 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9614 s&@srcdir@&$ac_srcdir&;t t
9615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9616 s&@top_srcdir@&$ac_top_srcdir&;t t
9617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9618 s&@builddir@&$ac_builddir&;t t
9619 s&@abs_builddir@&$ac_abs_builddir&;t t
9620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9621 s&@INSTALL@&$ac_INSTALL&;t t
9622 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9623 $ac_datarootdir_hack
9625 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9626 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9629 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9631 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9633 which seems to be undefined. Please make sure it is defined" >&5
9634 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9635 which seems to be undefined. Please make sure it is defined" >&2;}
9637 rm -f "$ac_tmp/stdin"
9639 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9640 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9648 if test x"$ac_file" != x-; then
9650 $as_echo "/* $configure_input */" \
9651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9652 } >"$ac_tmp/config.h" \
9653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9654 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9656 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9659 mv "$ac_tmp/config.h" "$ac_file" \
9660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9663 $as_echo "/* $configure_input */" \
9664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9665 || as_fn_error $? "could not create -" "$LINENO" 5
9667 # Compute "$ac_file"'s index in $config_headers.
9670 for _am_header in $config_headers :; do
9672 $_am_arg | $_am_arg:* )
9675 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9678 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9679 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9680 X"$_am_arg" : 'X\(//\)[^/]' \| \
9681 X"$_am_arg" : 'X\(//\)$' \| \
9682 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9683 $as_echo X"$_am_arg" |
9684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9700 s/.*/./; q'`/stamp-h$_am_stamp_count
9703 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9704 $as_echo "$as_me: executing $ac_file commands" >&6;}
9709 case $ac_file$ac_mode in
9710 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9711 # Older Autoconf quotes --file arguments for eval, but not when files
9712 # are listed without --file. Let's play safe and only enable the eval
9713 # if we detect the quoting.
9714 case $CONFIG_FILES in
9715 *\'*) eval set x "$CONFIG_FILES" ;;
9716 *) set x $CONFIG_FILES ;;
9721 # Strip MF so we end up with the name of the file.
9722 mf=`echo "$mf" | sed -e 's/:.*$//'`
9723 # Check whether this is an Automake generated Makefile or not.
9724 # We used to match only the files named 'Makefile.in', but
9725 # some people rename them; so instead we look at the file content.
9726 # Grep'ing the first line is not enough: some people post-process
9727 # each Makefile.in and add a new line on top of each file to say so.
9728 # Grep'ing the whole file is not good either: AIX grep has a line
9729 # limit of 2048, but all sed's we know have understand at least 4000.
9730 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9731 dirpart=`$as_dirname -- "$mf" ||
9732 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9733 X"$mf" : 'X\(//\)[^/]' \| \
9734 X"$mf" : 'X\(//\)$' \| \
9735 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9757 # Extract the definition of DEPDIR, am__include, and am__quote
9758 # from the Makefile without running 'make'.
9759 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9760 test -z "$DEPDIR" && continue
9761 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9762 test -z "$am__include" && continue
9763 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9764 # Find all dependency output files, they are included files with
9765 # $(DEPDIR) in their names. We invoke sed twice because it is the
9766 # simplest approach to changing $(DEPDIR) to its actual value in the
9768 for file in `sed -n "
9769 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9770 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9771 # Make sure the directory exists.
9772 test -f "$dirpart/$file" && continue
9773 fdir=`$as_dirname -- "$file" ||
9774 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9775 X"$file" : 'X\(//\)[^/]' \| \
9776 X"$file" : 'X\(//\)$' \| \
9777 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9796 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9797 # echo "creating $dirpart/$file"
9798 echo '# dummy' > "$dirpart/$file"
9810 ac_clean_files=$ac_clean_files_save
9812 test $ac_write_fail = 0 ||
9813 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9816 # configure is writing to config.log, and then calls config.status.
9817 # config.status does its own redirection, appending to config.log.
9818 # Unfortunately, on DOS this fails, as config.log is still kept open
9819 # by configure, so config.status won't be able to write to it; its
9820 # output is simply discarded. So we exec the FD to /dev/null,
9821 # effectively closing config.log, so it can be properly (re)opened and
9822 # appended to by config.status. When coming back to configure, we
9823 # need to make the FD available again.
9824 if test "$no_create" != yes; then
9826 ac_config_status_args=
9827 test "$silent" = yes &&
9828 ac_config_status_args="$ac_config_status_args --quiet"
9830 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9832 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9833 # would make configure fail if this is the last instruction.
9834 $ac_cs_success || as_fn_exit 1
9836 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9838 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}