2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="version.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
684 INTL_LIBTOOL_SUFFIX_PREFIX
691 BUILD_INCLUDED_LIBINTL
804 program_transform_name
814 ac_subst_files='MCONFIG
821 PUBLIC_CONFIG_HEADER'
823 enable_option_checking
830 enable_maintainer_mode
831 enable_verbose_makecmds
847 enable_e2initrd_helper
854 with_included_gettext
857 ac_precious_vars='build_alias
869 # Initialize some variables set by options.
871 ac_init_version=false
872 ac_unrecognized_opts=
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
883 program_transform_name=s,x,x,
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE}'
908 infodir='${datarootdir}/info'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
986 eval enable_$ac_useropt=no ;;
988 -docdir | --docdir | --docdi | --doc | --do)
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1177 -site=* | --site=* | --sit=*)
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1218 eval with_$ac_useropt=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1235 eval with_$ac_useropt=no ;;
1238 # Obsolete; use --with-x.
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1289 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1290 { (exit 1); exit 1; }; } ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1314 { (exit 1); exit 1; }; }
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329 If a cross compiler is detected then cross compile mode will be used." >&2
1330 elif test "x$build_alias" != "x$host_alias"; then
1336 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338 test "$silent" = yes && exec 6>/dev/null
1341 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342 ac_ls_di=`ls -di .` &&
1343 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1345 { (exit 1); exit 1; }; }
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1348 { (exit 1); exit 1; }; }
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1388 { (exit 1); exit 1; }; }
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1393 { (exit 1); exit 1; }; }
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1419 \`configure' configures this package to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 if test -n "$ac_init_help"; then
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-maintainer-mode enable makefile rules useful for maintainers
1491 --enable-verbose-makecmds enable verbose make command output
1492 --enable-compression enable EXPERIMENTAL compression support
1493 --enable-htree enable EXPERIMENTAL htree directory support
1494 --enable-elf-shlibs select ELF shared libraries
1495 --enable-bsd-shlibs select BSD shared libraries
1496 --enable-profile build profiling libraries
1497 --enable-checker build checker libraries
1498 --enable-jbd-debug enable journal debugging
1499 --enable-blkid-debug enable blkid debugging
1500 --disable-testio-debug disable the use of the test I/O manager for debugging
1501 --disable-libuuid do not build private uuid library
1502 --disable-libblkid do not build private blkid library
1503 --disable-debugfs disable support of debugfs program
1504 --disable-imager disable support of e2image program
1505 --disable-resizer disable support of e2resize program
1506 --enable-fsck build fsck wrapper program
1507 --enable-e2initrd-helper build e2initrd-helper program
1508 --disable-tls disable use of thread local support
1509 --disable-uuidd disable building the uuid daemon
1510 --disable-nls do not use Native Language Support
1511 --disable-rpath do not hardcode runtime library paths
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-diet-libc use diet libc
1517 --with-cc=COMPILER select compiler to use
1518 --with-linker=LINKER select linker to use
1519 --with-ccopts=CCOPTS select compiler command line options
1520 --with-ldopts=LDOPTS select linker command line options
1521 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1522 --with-gnu-ld assume the C compiler uses GNU ld default=no
1523 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1524 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1525 --with-included-gettext use the GNU gettext library included here
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search for libintl in includedir and libdir
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1538 PKG_CONFIG path to pkg-config utility
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1572 .) # We are building in place.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1606 generated by GNU Autoconf 2.63
1608 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1609 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1615 cat >config.log <<_ACEOF
1616 This file contains any messages produced by compilers while
1617 running configure, to aid debugging if configure makes a mistake.
1619 It was created by $as_me, which was
1620 generated by GNU Autoconf 2.63. Invocation command line was
1632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir=.
1656 $as_echo "PATH: $as_dir"
1672 # Keep a trace of the command line.
1673 # Strip out --no-create and --no-recursion so they do not pile up.
1674 # Strip out --silent because we don't want to record it for future runs.
1675 # Also quote any args containing shell meta-characters.
1676 # Make two passes to allow for proper duplicate-argument suppression.
1680 ac_must_keep_next=false
1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1691 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697 if test $ac_must_keep_next = true; then
1698 ac_must_keep_next=false # Got value, back to normal.
1701 *=* | --config-cache | -C | -disable-* | --disable-* \
1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704 | -with-* | --with-* | -without-* | --without-* | --x)
1705 case "$ac_configure_args0 " in
1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709 -* ) ac_must_keep_next=true ;;
1712 ac_configure_args="$ac_configure_args '$ac_arg'"
1717 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720 # When interrupted or exit'd, cleanup temporary files, and complete
1721 # config.log. We remove comments because anyway the quotes in there
1722 # would cause problems or look ugly.
1723 # WARNING: Use '\'' to represent an apostrophe within the trap.
1724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1725 trap 'exit_status=$?
1726 # Save into config.log some information that might help in debugging.
1731 ## ---------------- ##
1732 ## Cache variables. ##
1733 ## ---------------- ##
1736 # The following way of writing the cache mishandles newlines in values,
1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739 eval ac_val=\$$ac_var
1743 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1747 _ | IFS | as_nl) ;; #(
1748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1749 *) $as_unset $ac_var ;;
1754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1755 *${as_nl}ac_space=\ *)
1757 "s/'\''/'\''\\\\'\'''\''/g;
1758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1769 ## ----------------- ##
1770 ## Output variables. ##
1771 ## ----------------- ##
1774 for ac_var in $ac_subst_vars
1776 eval ac_val=\$$ac_var
1778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 $as_echo "$ac_var='\''$ac_val'\''"
1784 if test -n "$ac_subst_files"; then
1786 ## ------------------- ##
1787 ## File substitutions. ##
1788 ## ------------------- ##
1791 for ac_var in $ac_subst_files
1793 eval ac_val=\$$ac_var
1795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797 $as_echo "$ac_var='\''$ac_val'\''"
1802 if test -s confdefs.h; then
1812 test "$ac_signal" != 0 &&
1813 $as_echo "$as_me: caught signal $ac_signal"
1814 $as_echo "$as_me: exit $exit_status"
1816 rm -f core *.core core.conftest.* &&
1817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1820 for ac_signal in 1 2 13 15; do
1821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1826 rm -f -r conftest* confdefs.h
1828 # Predefined preprocessor variables.
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_NAME "$PACKAGE_NAME"
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_STRING "$PACKAGE_STRING"
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1855 # Let the site file select an alternate cache file if it wants to.
1856 # Prefer an explicitly selected file to automatically selected ones.
1859 if test -n "$CONFIG_SITE"; then
1860 ac_site_file1=$CONFIG_SITE
1861 elif test "x$prefix" != xNONE; then
1862 ac_site_file1=$prefix/share/config.site
1863 ac_site_file2=$prefix/etc/config.site
1865 ac_site_file1=$ac_default_prefix/share/config.site
1866 ac_site_file2=$ac_default_prefix/etc/config.site
1868 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1870 test "x$ac_site_file" = xNONE && continue
1871 if test -r "$ac_site_file"; then
1872 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1874 sed 's/^/| /' "$ac_site_file" >&5
1879 if test -r "$cache_file"; then
1880 # Some versions of bash will fail to source /dev/null (special
1881 # files actually), so we avoid doing that.
1882 if test -f "$cache_file"; then
1883 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884 $as_echo "$as_me: loading cache $cache_file" >&6;}
1886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
1891 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892 $as_echo "$as_me: creating cache $cache_file" >&6;}
1896 # Check that the precious variables saved in the cache have kept the same
1898 ac_cache_corrupted=false
1899 for ac_var in $ac_precious_vars; do
1900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1901 eval ac_new_set=\$ac_env_${ac_var}_set
1902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1903 eval ac_new_val=\$ac_env_${ac_var}_value
1904 case $ac_old_set,$ac_new_set in
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1907 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1910 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1911 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1915 if test "x$ac_old_val" != "x$ac_new_val"; then
1916 # differences in whitespace do not lead to failure.
1917 ac_old_val_w=`echo x $ac_old_val`
1918 ac_new_val_w=`echo x $ac_new_val`
1919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 ac_cache_corrupted=:
1924 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1926 eval $ac_var=\$ac_old_val
1928 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1929 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1930 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1931 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1934 # Pass precious variables to config.status.
1935 if test "$ac_new_set" = set; then
1937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 *) ac_arg=$ac_var=$ac_new_val ;;
1940 case " $ac_configure_args " in
1941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1942 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1946 if $ac_cache_corrupted; then
1947 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1949 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 for ac_dir in config "$srcdir"/config; do
1982 if test -f "$ac_dir/install-sh"; then
1984 ac_install_sh="$ac_aux_dir/install-sh -c"
1986 elif test -f "$ac_dir/install.sh"; then
1988 ac_install_sh="$ac_aux_dir/install.sh -c"
1990 elif test -f "$ac_dir/shtool"; then
1992 ac_install_sh="$ac_aux_dir/shtool install -c"
1996 if test -z "$ac_aux_dir"; then
1997 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1998 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1999 { (exit 1); exit 1; }; }
2002 # These three variables are undocumented and unsupported,
2003 # and are intended to be withdrawn in a future Autoconf release.
2004 # They can cause serious problems if a builder's source tree is in a directory
2005 # whose full name contains unusual characters.
2006 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2014 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2015 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2016 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2018 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2019 MONTH=`echo $DATE | awk -F- '{print $2}'`
2020 YEAR=`echo $DATE | awk -F- '{print $3}'`
2022 if expr $YEAR ">" 1900 > /dev/null ; then
2023 E2FSPROGS_YEAR=$YEAR
2024 elif expr $YEAR ">" 90 >/dev/null ; then
2025 E2FSPROGS_YEAR=19$YEAR
2027 E2FSPROGS_YEAR=20$YEAR
2031 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2032 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2033 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2034 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2035 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2036 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2037 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2038 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2039 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2040 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2041 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2042 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2043 *) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2044 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2047 base_ver=`echo $E2FSPROGS_VERSION | \
2048 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2050 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2052 case $E2FSPROGS_VERSION in
2054 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2057 E2FSPROGS_PKGVER="$base_ver"
2061 unset DATE MONTH YEAR base_ver pre_vers date_spec
2062 { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2063 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2064 { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2065 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2071 # Make sure we can run config.sub.
2072 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2073 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2074 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2075 { (exit 1); exit 1; }; }
2077 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2078 $as_echo_n "checking build system type... " >&6; }
2079 if test "${ac_cv_build+set}" = set; then
2080 $as_echo_n "(cached) " >&6
2082 ac_build_alias=$build_alias
2083 test "x$ac_build_alias" = x &&
2084 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2085 test "x$ac_build_alias" = x &&
2086 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2087 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2088 { (exit 1); exit 1; }; }
2089 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2090 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2091 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2095 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2096 $as_echo "$ac_cv_build" >&6; }
2097 case $ac_cv_build in
2099 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2100 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2101 { (exit 1); exit 1; }; };;
2104 ac_save_IFS=$IFS; IFS='-'
2110 # Remember, the first character of IFS is used to create $*,
2111 # except with old shells:
2114 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2117 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2118 $as_echo_n "checking host system type... " >&6; }
2119 if test "${ac_cv_host+set}" = set; then
2120 $as_echo_n "(cached) " >&6
2122 if test "x$host_alias" = x; then
2123 ac_cv_host=$ac_cv_build
2125 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2126 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2127 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2128 { (exit 1); exit 1; }; }
2132 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2133 $as_echo "$ac_cv_host" >&6; }
2136 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2137 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2138 { (exit 1); exit 1; }; };;
2141 ac_save_IFS=$IFS; IFS='-'
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2156 # Check whether --with-diet-libc was given.
2157 if test "${with_diet_libc+set}" = set; then
2158 withval=$with_diet_libc; CC="diet cc -nostdinc"
2160 { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2161 $as_echo "CC=$CC" >&6; }
2164 # Check whether --with-cc was given.
2165 if test "${with_cc+set}" = set; then
2166 withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5
2167 $as_echo "CC=$withval" >&6; }
2170 if test -z "$CC" ; then CC=cc; fi
2171 { $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2172 $as_echo "CC defaults to $CC" >&6; }
2177 ac_cpp='$CPP $CPPFLAGS'
2178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 $as_echo_n "checking for $ac_word... " >&6; }
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 $as_echo_n "(cached) " >&6
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 if test -n "$CC"; then
2211 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2212 $as_echo "$CC" >&6; }
2214 { $as_echo "$as_me:$LINENO: result: no" >&5
2215 $as_echo "no" >&6; }
2220 if test -z "$ac_cv_prog_CC"; then
2222 # Extract the first word of "gcc", so it can be a program name with args.
2223 set dummy gcc; ac_word=$2
2224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 $as_echo_n "checking for $ac_word... " >&6; }
2226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2227 $as_echo_n "(cached) " >&6
2229 if test -n "$ac_ct_CC"; then
2230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
2238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2239 ac_cv_prog_ac_ct_CC="gcc"
2240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2250 if test -n "$ac_ct_CC"; then
2251 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2252 $as_echo "$ac_ct_CC" >&6; }
2254 { $as_echo "$as_me:$LINENO: result: no" >&5
2255 $as_echo "no" >&6; }
2258 if test "x$ac_ct_CC" = x; then
2261 case $cross_compiling:$ac_tool_warned in
2263 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2265 ac_tool_warned=yes ;;
2273 if test -z "$CC"; then
2274 if test -n "$ac_tool_prefix"; then
2275 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2276 set dummy ${ac_tool_prefix}cc; ac_word=$2
2277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280 $as_echo_n "(cached) " >&6
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_CC="${ac_tool_prefix}cc"
2293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 if test -n "$CC"; then
2304 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2305 $as_echo "$CC" >&6; }
2307 { $as_echo "$as_me:$LINENO: result: no" >&5
2308 $as_echo "no" >&6; }
2314 if test -z "$CC"; then
2315 # Extract the first word of "cc", so it can be a program name with args.
2316 set dummy cc; ac_word=$2
2317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 $as_echo_n "(cached) " >&6
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2334 ac_prog_rejected=yes
2338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 if test $ac_prog_rejected = yes; then
2346 # We found a bogon in the path, so make sure we never use it.
2347 set dummy $ac_cv_prog_CC
2349 if test $# != 0; then
2350 # We chose a different compiler from the bogus one.
2351 # However, it has the same basename, so the bogon will be chosen
2352 # first if we set CC to just the basename; use the full file name.
2354 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2360 if test -n "$CC"; then
2361 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2362 $as_echo "$CC" >&6; }
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 for ac_prog in cl.exe
2374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2376 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 $as_echo_n "checking for $ac_word... " >&6; }
2378 if test "${ac_cv_prog_CC+set}" = set; then
2379 $as_echo_n "(cached) " >&6
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 if test -n "$CC"; then
2403 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2404 $as_echo "$CC" >&6; }
2406 { $as_echo "$as_me:$LINENO: result: no" >&5
2407 $as_echo "no" >&6; }
2411 test -n "$CC" && break
2414 if test -z "$CC"; then
2416 for ac_prog in cl.exe
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419 set dummy $ac_prog; ac_word=$2
2420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2423 $as_echo_n "(cached) " >&6
2425 if test -n "$ac_ct_CC"; then
2426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 ac_cv_prog_ac_ct_CC="$ac_prog"
2436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2446 if test -n "$ac_ct_CC"; then
2447 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2448 $as_echo "$ac_ct_CC" >&6; }
2450 { $as_echo "$as_me:$LINENO: result: no" >&5
2451 $as_echo "no" >&6; }
2455 test -n "$ac_ct_CC" && break
2458 if test "x$ac_ct_CC" = x; then
2461 case $cross_compiling:$ac_tool_warned in
2463 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2465 ac_tool_warned=yes ;;
2474 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2477 See \`config.log' for more details." >&5
2478 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2479 See \`config.log' for more details." >&2;}
2480 { (exit 1); exit 1; }; }; }
2482 # Provide some information about the compiler.
2483 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2486 { (ac_try="$ac_compiler --version >&5"
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2492 $as_echo "$ac_try_echo") >&5
2493 (eval "$ac_compiler --version >&5") 2>&5
2495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (ac_try="$ac_compiler -v >&5"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2503 $as_echo "$ac_try_echo") >&5
2504 (eval "$ac_compiler -v >&5") 2>&5
2506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }
2508 { (ac_try="$ac_compiler -V >&5"
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2514 $as_echo "$ac_try_echo") >&5
2515 (eval "$ac_compiler -V >&5") 2>&5
2517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 ac_clean_files_save=$ac_clean_files
2536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2537 # Try to create an executable without -o first, disregard a.out.
2538 # It will help us diagnose broken compilers, and finding out an intuition
2540 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541 $as_echo_n "checking for C compiler default output file name... " >&6; }
2542 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 # The possible output files:
2545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2548 for ac_file in $ac_files
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2552 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2557 if { (ac_try="$ac_link_default"
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2563 $as_echo "$ac_try_echo") >&5
2564 (eval "$ac_link_default") 2>&5
2566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; then
2568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2570 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2571 # so that the user can short-circuit this test for compilers unknown to
2573 for ac_file in $ac_files ''
2575 test -f "$ac_file" || continue
2577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2580 # We found the default executable, but exeext='' is most
2584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2588 # We set ac_cv_exeext here because the later test for it is not
2589 # safe: cross compilers may not add the suffix if given an `-o'
2590 # argument, so we may need to know it at that point already.
2591 # Even if this section looks crufty: it has the advantage of
2598 test "$ac_cv_exeext" = no && ac_cv_exeext=
2604 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2605 $as_echo "$ac_file" >&6; }
2606 if test -z "$ac_file"; then
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2613 See \`config.log' for more details." >&5
2614 $as_echo "$as_me: error: C compiler cannot create executables
2615 See \`config.log' for more details." >&2;}
2616 { (exit 77); exit 77; }; }; }
2619 ac_exeext=$ac_cv_exeext
2621 # Check that the compiler produces executables we can run. If not, either
2622 # the compiler is broken, or we cross compile.
2623 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2624 $as_echo_n "checking whether the C compiler works... " >&6; }
2625 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2626 # If not cross compiling, check that we can run a simple program.
2627 if test "$cross_compiling" != yes; then
2628 if { ac_try='./$ac_file'
2629 { (case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634 $as_echo "$ac_try_echo") >&5
2635 (eval "$ac_try") 2>&5
2637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 if test "$cross_compiling" = maybe; then
2644 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2647 If you meant to cross compile, use \`--host'.
2648 See \`config.log' for more details." >&5
2649 $as_echo "$as_me: error: cannot run C compiled programs.
2650 If you meant to cross compile, use \`--host'.
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }; }
2656 { $as_echo "$as_me:$LINENO: result: yes" >&5
2657 $as_echo "yes" >&6; }
2659 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2660 ac_clean_files=$ac_clean_files_save
2661 # Check that the compiler produces executables we can run. If not, either
2662 # the compiler is broken, or we cross compile.
2663 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664 $as_echo_n "checking whether we are cross compiling... " >&6; }
2665 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666 $as_echo "$cross_compiling" >&6; }
2668 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669 $as_echo_n "checking for suffix of executables... " >&6; }
2670 if { (ac_try="$ac_link"
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2676 $as_echo "$ac_try_echo") >&5
2677 (eval "$ac_link") 2>&5
2679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; then
2681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2683 # work properly (i.e., refer to `conftest.exe'), while it won't with
2685 for ac_file in conftest.exe conftest conftest.*; do
2686 test -f "$ac_file" || continue
2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2695 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2698 See \`config.log' for more details." >&5
2699 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2700 See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }; }
2704 rm -f conftest$ac_cv_exeext
2705 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2706 $as_echo "$ac_cv_exeext" >&6; }
2708 rm -f conftest.$ac_ext
2709 EXEEXT=$ac_cv_exeext
2711 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2712 $as_echo_n "checking for suffix of object files... " >&6; }
2713 if test "${ac_cv_objext+set}" = set; then
2714 $as_echo_n "(cached) " >&6
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2731 rm -f conftest.o conftest.obj
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2738 $as_echo "$ac_try_echo") >&5
2739 (eval "$ac_compile") 2>&5
2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; then
2743 for ac_file in conftest.o conftest.obj conftest.*; do
2744 test -f "$ac_file" || continue;
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2752 $as_echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2755 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2758 See \`config.log' for more details." >&5
2759 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2760 See \`config.log' for more details." >&2;}
2761 { (exit 1); exit 1; }; }; }
2764 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2766 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2767 $as_echo "$ac_cv_objext" >&6; }
2768 OBJEXT=$ac_cv_objext
2770 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2771 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2772 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2773 $as_echo_n "(cached) " >&6
2775 cat >conftest.$ac_ext <<_ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2800 $as_echo "$ac_try_echo") >&5
2801 (eval "$ac_compile") 2>conftest.er1
2803 grep -v '^ *+' conftest.er1 >conftest.err
2805 cat conftest.err >&5
2806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); } && {
2808 test -z "$ac_c_werror_flag" ||
2809 test ! -s conftest.err
2810 } && test -s conftest.$ac_objext; then
2813 $as_echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2823 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2825 if test $ac_compiler_gnu = yes; then
2830 ac_test_CFLAGS=${CFLAGS+set}
2831 ac_save_CFLAGS=$CFLAGS
2832 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2834 if test "${ac_cv_prog_cc_g+set}" = set; then
2835 $as_echo_n "(cached) " >&6
2837 ac_save_c_werror_flag=$ac_c_werror_flag
2838 ac_c_werror_flag=yes
2841 cat >conftest.$ac_ext <<_ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2856 rm -f conftest.$ac_objext
2857 if { (ac_try="$ac_compile"
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2863 $as_echo "$ac_try_echo") >&5
2864 (eval "$ac_compile") 2>conftest.er1
2866 grep -v '^ *+' conftest.er1 >conftest.err
2868 cat conftest.err >&5
2869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } && {
2871 test -z "$ac_c_werror_flag" ||
2872 test ! -s conftest.err
2873 } && test -s conftest.$ac_objext; then
2876 $as_echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2880 cat >conftest.$ac_ext <<_ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2895 rm -f conftest.$ac_objext
2896 if { (ac_try="$ac_compile"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902 $as_echo "$ac_try_echo") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
2915 $as_echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 ac_c_werror_flag=$ac_save_c_werror_flag
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942 $as_echo "$ac_try_echo") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2955 $as_echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_c_werror_flag=$ac_save_c_werror_flag
2970 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2971 $as_echo "$ac_cv_prog_cc_g" >&6; }
2972 if test "$ac_test_CFLAGS" = set; then
2973 CFLAGS=$ac_save_CFLAGS
2974 elif test $ac_cv_prog_cc_g = yes; then
2975 if test "$GCC" = yes; then
2981 if test "$GCC" = yes; then
2987 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2988 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2989 if test "${ac_cv_prog_cc_c89+set}" = set; then
2990 $as_echo_n "(cached) " >&6
2992 ac_cv_prog_cc_c89=no
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3002 #include <sys/types.h>
3003 #include <sys/stat.h>
3004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3005 struct buf { int x; };
3006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3007 static char *e (p, i)
3013 static char *f (char * (*g) (char **, int), char **p, ...)
3018 s = g (p, va_arg (v,int));
3023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3024 function prototypes and stuff, but not '\xHH' hex character constants.
3025 These don't provoke an error unfortunately, instead are silently treated
3026 as 'x'. The following induces an error, until -std is added to get
3027 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3028 array size at least. It's necessary to write '\x00'==0 to get something
3029 that's true only with -std. */
3030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3033 inside strings and character constants. */
3035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3037 int test (int i, double x);
3038 struct s1 {int (*f) (int a);};
3039 struct s2 {int (*f) (double a);};
3040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3046 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3052 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3054 CC="$ac_save_CC $ac_arg"
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3062 $as_echo "$ac_try_echo") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_c_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3073 ac_cv_prog_cc_c89=$ac_arg
3075 $as_echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext
3082 test "x$ac_cv_prog_cc_c89" != "xno" && break
3084 rm -f conftest.$ac_ext
3089 case "x$ac_cv_prog_cc_c89" in
3091 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3092 $as_echo "none needed" >&6; } ;;
3094 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3095 $as_echo "unsupported" >&6; } ;;
3097 CC="$CC $ac_cv_prog_cc_c89"
3098 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3099 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3116 # On Suns, sometimes $CPP names a directory.
3117 if test -n "$CPP" && test -d "$CPP"; then
3120 if test -z "$CPP"; then
3121 if test "${ac_cv_prog_CPP+set}" = set; then
3122 $as_echo_n "(cached) " >&6
3124 # Double quotes because CPP needs to be expanded
3125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3128 for ac_c_preproc_warn_flag in '' yes
3130 # Use a header file that comes with gcc, so configuring glibc
3131 # with a fresh cross-compiler works.
3132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133 # <limits.h> exists even on freestanding compilers.
3134 # On the NeXT, cc -E runs the code through the compiler's parser,
3135 # not just through cpp. "Syntax error" is here to catch this case.
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3143 # include <limits.h>
3145 # include <assert.h>
3149 if { (ac_try="$ac_cpp conftest.$ac_ext"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155 $as_echo "$ac_try_echo") >&5
3156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null && {
3163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3164 test ! -s conftest.err
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 # Broken: fails on valid input.
3175 rm -f conftest.err conftest.$ac_ext
3177 # OK, works on sane cases. Now check whether nonexistent headers
3178 # can be detected and how.
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185 #include <ac_nonexistent.h>
3187 if { (ac_try="$ac_cpp conftest.$ac_ext"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null && {
3201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3204 # Broken: success on invalid input.
3207 $as_echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 # Passes both tests.
3215 rm -f conftest.err conftest.$ac_ext
3218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3219 rm -f conftest.err conftest.$ac_ext
3220 if $ac_preproc_ok; then
3232 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3233 $as_echo "$CPP" >&6; }
3235 for ac_c_preproc_warn_flag in '' yes
3237 # Use a header file that comes with gcc, so configuring glibc
3238 # with a fresh cross-compiler works.
3239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3240 # <limits.h> exists even on freestanding compilers.
3241 # On the NeXT, cc -E runs the code through the compiler's parser,
3242 # not just through cpp. "Syntax error" is here to catch this case.
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3250 # include <limits.h>
3252 # include <assert.h>
3256 if { (ac_try="$ac_cpp conftest.$ac_ext"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262 $as_echo "$ac_try_echo") >&5
3263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3265 grep -v '^ *+' conftest.er1 >conftest.err
3267 cat conftest.err >&5
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } >/dev/null && {
3270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3275 $as_echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 # Broken: fails on valid input.
3282 rm -f conftest.err conftest.$ac_ext
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <ac_nonexistent.h>
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3300 $as_echo "$ac_try_echo") >&5
3301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null && {
3308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3311 # Broken: success on invalid input.
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 # Passes both tests.
3322 rm -f conftest.err conftest.$ac_ext
3325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3326 rm -f conftest.err conftest.$ac_ext
3327 if $ac_preproc_ok; then
3330 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3333 See \`config.log' for more details." >&5
3334 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3335 See \`config.log' for more details." >&2;}
3336 { (exit 1); exit 1; }; }; }
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3346 # Check whether --with-linker was given.
3347 if test "${with_linker+set}" = set; then
3348 withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5
3349 $as_echo "LD=$withval" >&6; }
3352 if test -z "$LD" ; then LD=$CC; fi
3353 { $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3354 $as_echo "LD defaults to $LD" >&6; }
3359 # Check whether --with-ccopts was given.
3360 if test "${with_ccopts+set}" = set; then
3361 withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3362 $as_echo "CCOPTS is $withval" >&6; }
3367 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3368 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3369 if test "${ac_cv_path_GREP+set}" = set; then
3370 $as_echo_n "(cached) " >&6
3372 if test -z "$GREP"; then
3373 ac_path_GREP_found=false
3374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3379 test -z "$as_dir" && as_dir=.
3380 for ac_prog in grep ggrep; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3383 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3384 # Check for GNU ac_path_GREP and select it if it is found.
3385 # Check for GNU $ac_path_GREP
3386 case `"$ac_path_GREP" --version 2>&1` in
3388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3391 $as_echo_n 0123456789 >"conftest.in"
3394 cat "conftest.in" "conftest.in" >"conftest.tmp"
3395 mv "conftest.tmp" "conftest.in"
3396 cp "conftest.in" "conftest.nl"
3397 $as_echo 'GREP' >> "conftest.nl"
3398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400 ac_count=`expr $ac_count + 1`
3401 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3402 # Best one so far, save it but keep looking for a better one
3403 ac_cv_path_GREP="$ac_path_GREP"
3404 ac_path_GREP_max=$ac_count
3406 # 10*(2^10) chars as input seems more than enough
3407 test $ac_count -gt 10 && break
3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3412 $ac_path_GREP_found && break 3
3417 if test -z "$ac_cv_path_GREP"; then
3418 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3419 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3420 { (exit 1); exit 1; }; }
3423 ac_cv_path_GREP=$GREP
3427 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3428 $as_echo "$ac_cv_path_GREP" >&6; }
3429 GREP="$ac_cv_path_GREP"
3432 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3433 $as_echo_n "checking for egrep... " >&6; }
3434 if test "${ac_cv_path_EGREP+set}" = set; then
3435 $as_echo_n "(cached) " >&6
3437 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3438 then ac_cv_path_EGREP="$GREP -E"
3440 if test -z "$EGREP"; then
3441 ac_path_EGREP_found=false
3442 # Loop through the user's path and test for each of PROGNAME-LIST
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3447 test -z "$as_dir" && as_dir=.
3448 for ac_prog in egrep; do
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3451 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3452 # Check for GNU ac_path_EGREP and select it if it is found.
3453 # Check for GNU $ac_path_EGREP
3454 case `"$ac_path_EGREP" --version 2>&1` in
3456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3459 $as_echo_n 0123456789 >"conftest.in"
3462 cat "conftest.in" "conftest.in" >"conftest.tmp"
3463 mv "conftest.tmp" "conftest.in"
3464 cp "conftest.in" "conftest.nl"
3465 $as_echo 'EGREP' >> "conftest.nl"
3466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3468 ac_count=`expr $ac_count + 1`
3469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3470 # Best one so far, save it but keep looking for a better one
3471 ac_cv_path_EGREP="$ac_path_EGREP"
3472 ac_path_EGREP_max=$ac_count
3474 # 10*(2^10) chars as input seems more than enough
3475 test $ac_count -gt 10 && break
3477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3480 $ac_path_EGREP_found && break 3
3485 if test -z "$ac_cv_path_EGREP"; then
3486 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3487 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3488 { (exit 1); exit 1; }; }
3491 ac_cv_path_EGREP=$EGREP
3496 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3497 $as_echo "$ac_cv_path_EGREP" >&6; }
3498 EGREP="$ac_cv_path_EGREP"
3501 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3502 $as_echo_n "checking for ANSI C header files... " >&6; }
3503 if test "${ac_cv_header_stdc+set}" = set; then
3504 $as_echo_n "(cached) " >&6
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532 $as_echo "$ac_try_echo") >&5
3533 (eval "$ac_compile") 2>conftest.er1
3535 grep -v '^ *+' conftest.er1 >conftest.err
3537 cat conftest.err >&5
3538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } && {
3540 test -z "$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 } && test -s conftest.$ac_objext; then
3543 ac_cv_header_stdc=yes
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 ac_cv_header_stdc=no
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 if test $ac_cv_header_stdc = yes; then
3554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 $EGREP "memchr" >/dev/null 2>&1; then
3568 ac_cv_header_stdc=no
3574 if test $ac_cv_header_stdc = yes; then
3575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3576 cat >conftest.$ac_ext <<_ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 $EGREP "free" >/dev/null 2>&1; then
3589 ac_cv_header_stdc=no
3595 if test $ac_cv_header_stdc = yes; then
3596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3597 if test "$cross_compiling" = yes; then
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3608 #if ((' ' & 0x0FF) == 0x020)
3609 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3610 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3612 # define ISLOWER(c) \
3613 (('a' <= (c) && (c) <= 'i') \
3614 || ('j' <= (c) && (c) <= 'r') \
3615 || ('s' <= (c) && (c) <= 'z'))
3616 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3619 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3624 for (i = 0; i < 256; i++)
3625 if (XOR (islower (i), ISLOWER (i))
3626 || toupper (i) != TOUPPER (i))
3631 rm -f conftest$ac_exeext
3632 if { (ac_try="$ac_link"
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639 (eval "$ac_link") 2>&5
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3643 { (case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648 $as_echo "$ac_try_echo") >&5
3649 (eval "$ac_try") 2>&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3655 $as_echo "$as_me: program exited with status $ac_status" >&5
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3660 ac_cv_header_stdc=no
3662 rm -rf conftest.dSYM
3663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3670 $as_echo "$ac_cv_header_stdc" >&6; }
3671 if test $ac_cv_header_stdc = yes; then
3673 cat >>confdefs.h <<\_ACEOF
3674 #define STDC_HEADERS 1
3679 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3690 inttypes.h stdint.h unistd.h
3692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3694 $as_echo_n "checking for $ac_header... " >&6; }
3695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3696 $as_echo_n "(cached) " >&6
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704 $ac_includes_default
3706 #include <$ac_header>
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 eval "$as_ac_Header=yes"
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 eval "$as_ac_Header=no"
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_res=`eval 'as_val=${'$as_ac_Header'}
3737 $as_echo "$as_val"'`
3738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3739 $as_echo "$ac_res" >&6; }
3740 as_val=`eval 'as_val=${'$as_ac_Header'}
3741 $as_echo "$as_val"'`
3742 if test "x$as_val" = x""yes; then
3743 cat >>confdefs.h <<_ACEOF
3744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3752 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3753 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3754 $as_echo_n "checking for linux/fs.h... " >&6; }
3755 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3756 $as_echo_n "(cached) " >&6
3758 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3759 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3761 # Is the header compilable?
3762 { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3763 $as_echo_n "checking linux/fs.h usability... " >&6; }
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3770 $ac_includes_default
3771 #include <linux/fs.h>
3773 rm -f conftest.$ac_objext
3774 if { (ac_try="$ac_compile"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3780 $as_echo "$ac_try_echo") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3783 grep -v '^ *+' conftest.er1 >conftest.err
3785 cat conftest.err >&5
3786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 ac_header_compiler=yes
3793 $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3796 ac_header_compiler=no
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801 $as_echo "$ac_header_compiler" >&6; }
3803 # Is the header present?
3804 { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3805 $as_echo_n "checking linux/fs.h presence... " >&6; }
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <linux/fs.h>
3814 if { (ac_try="$ac_cpp conftest.$ac_ext"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820 $as_echo "$ac_try_echo") >&5
3821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3823 grep -v '^ *+' conftest.er1 >conftest.err
3825 cat conftest.err >&5
3826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } >/dev/null && {
3828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3831 ac_header_preproc=yes
3833 $as_echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 ac_header_preproc=no
3839 rm -f conftest.err conftest.$ac_ext
3840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3841 $as_echo "$ac_header_preproc" >&6; }
3843 # So? What about this header?
3844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3846 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3847 $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3848 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3849 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3850 ac_header_preproc=yes
3853 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3854 $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3855 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3856 $as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3857 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3858 $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3859 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3860 $as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3861 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3862 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3863 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3864 $as_echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3868 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3869 $as_echo_n "checking for linux/fs.h... " >&6; }
3870 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3871 $as_echo_n "(cached) " >&6
3873 ac_cv_header_linux_fs_h=$ac_header_preproc
3875 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3876 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3879 if test "x$ac_cv_header_linux_fs_h" = x""yes; then
3886 if test "$linux_headers" != yes; then
3887 LINUX_INCLUDE='-I$(top_builddir)/include'
3890 { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3891 $as_echo_n "checking for additional special compiler flags... " >&6; }
3892 if test "$GCC" = yes
3895 alpha) addcflags="-mieee" ;;
3898 if test "x$addcflags" != x
3900 { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3901 $as_echo "$addcflags" >&6; }
3902 CFLAGS="$addcflags $CFLAGS"
3904 { $as_echo "$as_me:$LINENO: result: (none)" >&5
3905 $as_echo "(none)" >&6; }
3911 # Check whether --with-ldopts was given.
3912 if test "${with_ldopts+set}" = set; then
3913 withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3914 $as_echo "LDFLAGS is $withval" >&6; }
3919 # Check whether --with-root-prefix was given.
3920 if test "${with_root_prefix+set}" = set; then
3921 withval=$with_root_prefix; root_prefix=$withval
3925 # Check whether --enable-maintainer-mode was given.
3926 if test "${enable_maintainer_mode+set}" = set; then
3927 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3930 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3931 $as_echo "Disabling maintainer mode" >&6; }
3934 { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3935 $as_echo "Enabling maintainer mode" >&6; }
3940 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3941 $as_echo "Disabling maintainer mode by default" >&6; }
3946 # Check whether --enable-verbose-makecmds was given.
3947 if test "${enable_verbose_makecmds+set}" = set; then
3948 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
3950 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3951 $as_echo "Disabling verbose make commands" >&6; }
3955 { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5
3956 $as_echo "Enabling verbose make commands" >&6; }
3962 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3963 $as_echo "Disabling verbose make commands" >&6; }
3971 # Check whether --enable-compression was given.
3972 if test "${enable_compression+set}" = set; then
3973 enableval=$enable_compression; if test "$enableval" = "no"
3975 { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3976 $as_echo "Disabling compression support" >&6; }
3978 cat >>confdefs.h <<\_ACEOF
3979 #define ENABLE_COMPRESSION 1
3982 { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3983 $as_echo "Enabling compression support" >&6; }
3984 { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3985 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
3989 { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3990 $as_echo "Disabling compression support by default" >&6; }
3994 # Check whether --enable-htree was given.
3995 if test "${enable_htree+set}" = set; then
3996 enableval=$enable_htree; if test "$enableval" = "no"
3999 { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
4000 $as_echo "Disabling htree directory support" >&6; }
4003 cat >>confdefs.h <<\_ACEOF
4004 #define ENABLE_HTREE 1
4007 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
4008 $as_echo "Enabling htree directory support" >&6; }
4013 cat >>confdefs.h <<\_ACEOF
4014 #define ENABLE_HTREE 1
4017 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
4018 $as_echo "Enabling htree directory support by default" >&6; }
4023 E2_PKG_CONFIG_STATIC=--static
4026 # Check whether --enable-elf-shlibs was given.
4027 if test "${enable_elf_shlibs+set}" = set; then
4028 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4031 MAKEFILE_ELF=/dev/null
4032 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4033 $as_echo "Disabling ELF shared libraries" >&6; }
4035 E2_PKG_CONFIG_STATIC=
4037 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4040 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4046 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4047 { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4048 $as_echo "Enabling ELF shared libraries" >&6; }
4052 MAKEFILE_ELF=/dev/null
4054 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4055 $as_echo "Disabling ELF shared libraries by default" >&6; }
4061 # Check whether --enable-bsd-shlibs was given.
4062 if test "${enable_bsd_shlibs+set}" = set; then
4063 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4066 MAKEFILE_BSDLIB=/dev/null
4067 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4068 $as_echo "Disabling BSD shared libraries" >&6; }
4070 E2_PKG_CONFIG_STATIC=
4072 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4076 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4080 { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4081 $as_echo "Enabling BSD shared libraries" >&6; }
4085 MAKEFILE_BSDLIB=/dev/null
4087 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4088 $as_echo "Disabling BSD shared libraries by default" >&6; }
4094 # Check whether --enable-profile was given.
4095 if test "${enable_profile+set}" = set; then
4096 enableval=$enable_profile; if test "$enableval" = "no"
4099 MAKEFILE_PROFILE=/dev/null
4100 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4101 $as_echo "Disabling profiling libraries" >&6; }
4104 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4105 PROFILED_LIB_EXT=_p.a
4106 { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4107 $as_echo "Building profiling libraries" >&6; }
4112 MAKEFILE_PROFILE=/dev/null
4113 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4114 $as_echo "Disabling profiling libraries by default" >&6; }
4120 # Check whether --enable-checker was given.
4121 if test "${enable_checker+set}" = set; then
4122 enableval=$enable_checker; if test "$enableval" = "no"
4125 MAKEFILE_CHECKER=/dev/null
4126 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4127 $as_echo "Disabling checker libraries" >&6; }
4130 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4131 { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4132 $as_echo "Building checker libraries" >&6; }
4137 MAKEFILE_CHECKER=/dev/null
4138 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4139 $as_echo "Disabling checker libraries by default" >&6; }
4150 # Check whether --enable-jbd-debug was given.
4151 if test "${enable_jbd_debug+set}" = set; then
4152 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4154 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4155 $as_echo "Disabling journal debugging" >&6; }
4157 cat >>confdefs.h <<\_ACEOF
4158 #define CONFIG_JBD_DEBUG 1
4161 { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4162 $as_echo "Enabling journal debugging" >&6; }
4166 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4167 $as_echo "Disabling journal debugging by default" >&6; }
4171 # Check whether --enable-blkid-debug was given.
4172 if test "${enable_blkid_debug+set}" = set; then
4173 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4175 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4176 $as_echo "Disabling blkid debugging" >&6; }
4178 cat >>confdefs.h <<\_ACEOF
4179 #define CONFIG_BLKID_DEBUG 1
4182 { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4183 $as_echo "Enabling blkid debugging" >&6; }
4187 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4188 $as_echo "Disabling blkid debugging by default" >&6; }
4192 # Check whether --enable-testio-debug was given.
4193 if test "${enable_testio_debug+set}" = set; then
4194 enableval=$enable_testio_debug; if test "$enableval" = "no"
4196 { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4197 $as_echo "Disabling testio debugging" >&6; }
4201 cat >>confdefs.h <<\_ACEOF
4202 #define CONFIG_TESTIO_DEBUG 1
4205 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4206 $as_echo "Enabling testio debugging" >&6; }
4210 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4211 $as_echo "Enabling testio debugging by default" >&6; }
4212 cat >>confdefs.h <<\_ACEOF
4213 #define CONFIG_TESTIO_DEBUG 1
4223 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4230 $as_echo_n "(cached) " >&6
4234 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4256 if test -n "$PKG_CONFIG"; then
4257 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4258 $as_echo "$PKG_CONFIG" >&6; }
4260 { $as_echo "$as_me:$LINENO: result: no" >&5
4261 $as_echo "no" >&6; }
4266 if test -z "$ac_cv_path_PKG_CONFIG"; then
4267 ac_pt_PKG_CONFIG=$PKG_CONFIG
4268 # Extract the first word of "pkg-config", so it can be a program name with args.
4269 set dummy pkg-config; ac_word=$2
4270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 $as_echo_n "checking for $ac_word... " >&6; }
4272 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4275 case $ac_pt_PKG_CONFIG in
4277 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4299 if test -n "$ac_pt_PKG_CONFIG"; then
4300 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4301 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4303 { $as_echo "$as_me:$LINENO: result: no" >&5
4304 $as_echo "no" >&6; }
4307 if test "x$ac_pt_PKG_CONFIG" = x; then
4310 case $cross_compiling:$ac_tool_warned in
4312 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314 ac_tool_warned=yes ;;
4316 PKG_CONFIG=$ac_pt_PKG_CONFIG
4319 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4323 if test -n "$PKG_CONFIG"; then
4324 _pkg_min_version=0.9.0
4325 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4326 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4327 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4328 { $as_echo "$as_me:$LINENO: result: yes" >&5
4329 $as_echo "yes" >&6; }
4331 { $as_echo "$as_me:$LINENO: result: no" >&5
4332 $as_echo "no" >&6; }
4342 DEPPROFILED_LIBUUID=
4344 # Check whether --enable-libuuid was given.
4345 if test "${enable_libuuid+set}" = set; then
4346 enableval=$enable_libuuid; if test "$enableval" = "no"
4348 if test -z "$PKG_CONFIG"; then
4349 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4350 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4351 { (exit 1); exit 1; }; }
4354 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4355 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4356 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4357 $as_echo_n "(cached) " >&6
4359 ac_check_lib_save_LIBS=$LIBS
4360 LIBS="-luuid $LIBUUID $LIBS"
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4368 /* Override any GCC internal prototype to avoid an error.
4369 Use char because int might match the return type of a GCC
4370 builtin and then its argument prototype would still apply. */
4374 char uuid_generate ();
4378 return uuid_generate ();
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (ac_try="$ac_link"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4390 $as_echo "$ac_try_echo") >&5
4391 (eval "$ac_link") 2>conftest.er1
4393 grep -v '^ *+' conftest.er1 >conftest.err
4395 cat conftest.err >&5
4396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest$ac_exeext && {
4401 test "$cross_compiling" = yes ||
4402 $as_test_x conftest$ac_exeext
4404 ac_cv_lib_uuid_uuid_generate=yes
4406 $as_echo "$as_me: failed program was:" >&5
4407 sed 's/^/| /' conftest.$ac_ext >&5
4409 ac_cv_lib_uuid_uuid_generate=no
4412 rm -rf conftest.dSYM
4413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4414 conftest$ac_exeext conftest.$ac_ext
4415 LIBS=$ac_check_lib_save_LIBS
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4418 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4419 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4420 LIBUUID=`$PKG_CONFIG --libs uuid`;
4421 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4423 { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4424 $as_echo "$as_me: error: external uuid library not found" >&2;}
4425 { (exit 1); exit 1; }; }
4429 { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4430 $as_echo "Disabling private uuid library" >&6; }
4432 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4434 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4435 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4436 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4437 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4438 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4439 $as_echo "Enabling private uuid library" >&6; }
4443 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4445 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4446 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4447 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4448 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4449 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4450 $as_echo "Enabling private uuid library by default" >&6; }
4463 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4470 $as_echo_n "(cached) " >&6
4474 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4496 if test -n "$PKG_CONFIG"; then
4497 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4498 $as_echo "$PKG_CONFIG" >&6; }
4500 { $as_echo "$as_me:$LINENO: result: no" >&5
4501 $as_echo "no" >&6; }
4506 if test -z "$ac_cv_path_PKG_CONFIG"; then
4507 ac_pt_PKG_CONFIG=$PKG_CONFIG
4508 # Extract the first word of "pkg-config", so it can be a program name with args.
4509 set dummy pkg-config; ac_word=$2
4510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4513 $as_echo_n "(cached) " >&6
4515 case $ac_pt_PKG_CONFIG in
4517 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4539 if test -n "$ac_pt_PKG_CONFIG"; then
4540 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4541 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4543 { $as_echo "$as_me:$LINENO: result: no" >&5
4544 $as_echo "no" >&6; }
4547 if test "x$ac_pt_PKG_CONFIG" = x; then
4550 case $cross_compiling:$ac_tool_warned in
4552 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4554 ac_tool_warned=yes ;;
4556 PKG_CONFIG=$ac_pt_PKG_CONFIG
4559 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4563 if test -n "$PKG_CONFIG"; then
4564 _pkg_min_version=0.9.0
4565 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4566 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4567 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4568 { $as_echo "$as_me:$LINENO: result: yes" >&5
4569 $as_echo "yes" >&6; }
4571 { $as_echo "$as_me:$LINENO: result: no" >&5
4572 $as_echo "no" >&6; }
4582 DEPPROFILED_LIBBLKID=
4584 # Check whether --enable-libblkid was given.
4585 if test "${enable_libblkid+set}" = set; then
4586 enableval=$enable_libblkid; if test "$enableval" = "no"
4588 if test -z "$PKG_CONFIG"; then
4589 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4590 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4591 { (exit 1); exit 1; }; }
4594 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4595 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
4596 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
4597 $as_echo_n "(cached) " >&6
4599 ac_check_lib_save_LIBS=$LIBS
4600 LIBS="-lblkid $LIBBLKID $LIBS"
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4608 /* Override any GCC internal prototype to avoid an error.
4609 Use char because int might match the return type of a GCC
4610 builtin and then its argument prototype would still apply. */
4614 char blkid_get_cache ();
4618 return blkid_get_cache ();
4623 rm -f conftest.$ac_objext conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4630 $as_echo "$ac_try_echo") >&5
4631 (eval "$ac_link") 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && {
4638 test -z "$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4640 } && test -s conftest$ac_exeext && {
4641 test "$cross_compiling" = yes ||
4642 $as_test_x conftest$ac_exeext
4644 ac_cv_lib_blkid_blkid_get_cache=yes
4646 $as_echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4649 ac_cv_lib_blkid_blkid_get_cache=no
4652 rm -rf conftest.dSYM
4653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4654 conftest$ac_exeext conftest.$ac_ext
4655 LIBS=$ac_check_lib_save_LIBS
4657 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4658 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4659 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
4660 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4661 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4663 { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4664 $as_echo "$as_me: error: external blkid library not found" >&2;}
4665 { (exit 1); exit 1; }; }
4669 { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4670 $as_echo "Disabling private blkid library" >&6; }
4672 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4673 DEPLIBBLKID=$LIBBLKID
4674 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4675 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4676 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4677 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4678 cat >>confdefs.h <<\_ACEOF
4679 #define CONFIG_BUILD_FINDFS 1
4682 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4683 $as_echo "Enabling private blkid library" >&6; }
4687 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4688 DEPLIBBLKID=$LIBBLKID
4689 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4690 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4691 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4692 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4693 cat >>confdefs.h <<\_ACEOF
4694 #define CONFIG_BUILD_FINDFS 1
4697 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4698 $as_echo "Enabling private blkid library by default" >&6; }
4709 # Check whether --enable-debugfs was given.
4710 if test "${enable_debugfs+set}" = set; then
4711 enableval=$enable_debugfs; if test "$enableval" = "no"
4713 { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4714 $as_echo "Disabling debugfs support" >&6; }
4718 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4719 $as_echo "Enabling debugfs support" >&6; }
4723 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4724 $as_echo "Enabling debugfs support by default" >&6; }
4730 # Check whether --enable-imager was given.
4731 if test "${enable_imager+set}" = set; then
4732 enableval=$enable_imager; if test "$enableval" = "no"
4734 { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4735 $as_echo "Disabling e2image support" >&6; }
4739 { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4740 $as_echo "Enabling e2image support" >&6; }
4744 { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4745 $as_echo "Enabling e2image support by default" >&6; }
4751 # Check whether --enable-resizer was given.
4752 if test "${enable_resizer+set}" = set; then
4753 enableval=$enable_resizer; if test "$enableval" = "no"
4755 { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4756 $as_echo "Disabling e2resize support" >&6; }
4760 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4761 $as_echo "Enabling e2resize support" >&6; }
4765 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4766 $as_echo "Enabling e2resize support by default" >&6; }
4772 # Check whether --enable-fsck was given.
4773 if test "${enable_fsck+set}" = set; then
4774 enableval=$enable_fsck; if test "$enableval" = "no"
4776 FSCK_PROG='' FSCK_MAN=''
4777 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4778 $as_echo "Not building fsck wrapper" >&6; }
4780 FSCK_PROG=fsck FSCK_MAN=fsck.8
4781 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4782 $as_echo "Building fsck wrapper" >&6; }
4788 FSCK_PROG='' FSCK_MAN=''
4789 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4790 $as_echo "Not building fsck wrapper by default" >&6; }
4793 FSCK_PROG=fsck FSCK_MAN=fsck.8
4794 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4795 $as_echo "Building fsck wrapper by default" >&6; }
4802 # Check whether --enable-e2initrd-helper was given.
4803 if test "${enable_e2initrd_helper+set}" = set; then
4804 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4806 E2INITRD_PROG='' E2INITRD_MAN=''
4807 { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4808 $as_echo "Not building e2initrd helper" >&6; }
4810 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4811 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4812 $as_echo "Building e2initrd helper" >&6; }
4816 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4817 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4818 $as_echo "Building e2initrd helper by default" >&6; }
4824 # Check whether --enable-tls was given.
4825 if test "${enable_tls+set}" = set; then
4826 enableval=$enable_tls; if test "$enableval" = "no"
4829 { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4830 $as_echo "Disabling thread local support" >&6; }
4833 { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4834 $as_echo "Enabling thread local support" >&6; }
4838 if test -n "$WITH_DIET_LIBC"
4841 { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4842 $as_echo "Diet libc does not support thread local support" >&6; }
4845 { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4846 $as_echo "Try using thread local support by default" >&6; }
4851 if test "$try_tls" = "yes"
4854 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4855 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
4856 if test "${ac_cv_tls+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4860 ax_tls_keywords="__thread __declspec(thread) none"
4861 for ax_tls_keyword in $ax_tls_keywords; do
4862 case $ax_tls_keyword in
4863 none) ac_cv_tls=none ; break ;;
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4874 static $ax_tls_keyword int bar;
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892 $as_echo "$ac_try_echo") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4903 ac_cv_tls=$ax_tls_keyword ; break
4905 $as_echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 if test "$ac_cv_tls" != "none"; then
4921 cat >>confdefs.h <<_ACEOF
4922 #define TLS $ac_cv_tls
4926 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4927 $as_echo "$ac_cv_tls" >&6; }
4930 # Check whether --enable-uuidd was given.
4931 if test "${enable_uuidd+set}" = set; then
4932 enableval=$enable_uuidd; if test "$enableval" = "no"
4934 { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4935 $as_echo "Not building uuidd" >&6; }
4938 cat >>confdefs.h <<\_ACEOF
4943 { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4944 $as_echo "Building uuidd" >&6; }
4948 cat >>confdefs.h <<\_ACEOF
4953 { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4954 $as_echo "Building uuidd by default" >&6; }
4959 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4961 GETTEXT_PACKAGE=e2fsprogs
4963 VERSION="$E2FSPROGS_VERSION"
4965 cat >>confdefs.h <<_ACEOF
4966 #define PACKAGE "$PACKAGE"
4969 cat >>confdefs.h <<_ACEOF
4970 #define VERSION "$VERSION"
4977 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4981 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4982 $as_echo_n "(cached) " >&6
4984 cat >conftest.make <<\_ACEOF
4987 @echo '@@@%%%=$(MAKE)=@@@%%%'
4989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4992 eval ac_cv_prog_make_${ac_make}_set=yes;;
4994 eval ac_cv_prog_make_${ac_make}_set=no;;
4998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4999 { $as_echo "$as_me:$LINENO: result: yes" >&5
5000 $as_echo "yes" >&6; }
5003 { $as_echo "$as_me:$LINENO: result: no" >&5
5004 $as_echo "no" >&6; }
5005 SET_MAKE="MAKE=${MAKE-make}"
5008 # Find a good install program. We prefer a C program (faster),
5009 # so one script is as good as another. But avoid the broken or
5010 # incompatible versions:
5011 # SysV /etc/install, /usr/sbin/install
5012 # SunOS /usr/etc/install
5013 # IRIX /sbin/install
5015 # AmigaOS /C/install, which installs bootblocks on floppy discs
5016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5019 # OS/2's system install, which has a completely different semantic
5020 # ./install, which can be erroneously created by make from ./install.sh.
5021 # Reject install programs that cannot install multiple files.
5022 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5023 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5024 if test -z "$INSTALL"; then
5025 if test "${ac_cv_path_install+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 # Account for people who put trailing slashes in PATH elements.
5035 ./ | .// | /cC/* | \
5036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5040 # OSF1 and SCO ODT 3.0 have their own names for install.
5041 # Don't use installbsd from OSF since it installs stuff as root
5043 for ac_prog in ginstall scoinst install; do
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5046 if test $ac_prog = install &&
5047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5048 # AIX install. It has an incompatible calling convention.
5050 elif test $ac_prog = install &&
5051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5052 # program-specific install script used by HP pwplus--don't use.
5055 rm -rf conftest.one conftest.two conftest.dir
5056 echo one > conftest.one
5057 echo two > conftest.two
5059 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5060 test -s conftest.one && test -s conftest.two &&
5061 test -s conftest.dir/conftest.one &&
5062 test -s conftest.dir/conftest.two
5064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5077 rm -rf conftest.one conftest.two conftest.dir
5080 if test "${ac_cv_path_install+set}" = set; then
5081 INSTALL=$ac_cv_path_install
5083 # As a last resort, use the slow shell script. Don't cache a
5084 # value for INSTALL within a source directory, because that will
5085 # break other packages using the cache if that directory is
5086 # removed, or if the value is a relative name.
5087 INSTALL=$ac_install_sh
5090 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5091 $as_echo "$INSTALL" >&6; }
5093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5094 # It thinks the first close brace ends the variable substitution.
5095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5103 if test -n "$ac_aux_dir"; then
5104 case "$ac_aux_dir" in
5105 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5106 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5109 if test -z "$MKINSTALLDIRS"; then
5110 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5115 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5116 $as_echo_n "checking whether NLS is requested... " >&6; }
5117 # Check whether --enable-nls was given.
5118 if test "${enable_nls+set}" = set; then
5119 enableval=$enable_nls; USE_NLS=$enableval
5124 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5125 $as_echo "$USE_NLS" >&6; }
5132 # Prepare PATH_SEPARATOR.
5133 # The user is always right.
5134 if test "${PATH_SEPARATOR+set}" != set; then
5135 echo "#! /bin/sh" >conf$$.sh
5136 echo "exit 0" >>conf$$.sh
5138 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5146 # Find out how to test for executable files. Don't use a zero-byte file,
5147 # as systems may use methods other than mode bits to determine executability.
5148 cat >conf$$.file <<_ASEOF
5152 chmod +x conf$$.file
5153 if test -x conf$$.file >/dev/null 2>&1; then
5154 ac_executable_p="test -x"
5156 ac_executable_p="test -f"
5160 # Extract the first word of "msgfmt", so it can be a program name with args.
5161 set dummy msgfmt; ac_word=$2
5162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if test "${ac_cv_path_MSGFMT+set}" = set; then
5165 $as_echo_n "(cached) " >&6
5169 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5172 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5173 for ac_dir in $PATH; do
5175 test -z "$ac_dir" && ac_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5178 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5179 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5180 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5187 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5191 MSGFMT="$ac_cv_path_MSGFMT"
5192 if test "$MSGFMT" != ":"; then
5193 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5194 $as_echo "$MSGFMT" >&6; }
5196 { $as_echo "$as_me:$LINENO: result: no" >&5
5197 $as_echo "no" >&6; }
5200 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5201 set dummy gmsgfmt; ac_word=$2
5202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5205 $as_echo_n "(cached) " >&6
5209 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5231 GMSGFMT=$ac_cv_path_GMSGFMT
5232 if test -n "$GMSGFMT"; then
5233 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5234 $as_echo "$GMSGFMT" >&6; }
5236 { $as_echo "$as_me:$LINENO: result: no" >&5
5237 $as_echo "no" >&6; }
5243 # Prepare PATH_SEPARATOR.
5244 # The user is always right.
5245 if test "${PATH_SEPARATOR+set}" != set; then
5246 echo "#! /bin/sh" >conf$$.sh
5247 echo "exit 0" >>conf$$.sh
5249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5257 # Find out how to test for executable files. Don't use a zero-byte file,
5258 # as systems may use methods other than mode bits to determine executability.
5259 cat >conf$$.file <<_ASEOF
5263 chmod +x conf$$.file
5264 if test -x conf$$.file >/dev/null 2>&1; then
5265 ac_executable_p="test -x"
5267 ac_executable_p="test -f"
5271 # Extract the first word of "xgettext", so it can be a program name with args.
5272 set dummy xgettext; ac_word=$2
5273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5276 $as_echo_n "(cached) " >&6
5280 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5283 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5284 for ac_dir in $PATH; do
5286 test -z "$ac_dir" && ac_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5289 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5290 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5291 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5298 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5302 XGETTEXT="$ac_cv_path_XGETTEXT"
5303 if test "$XGETTEXT" != ":"; then
5304 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5305 $as_echo "$XGETTEXT" >&6; }
5307 { $as_echo "$as_me:$LINENO: result: no" >&5
5308 $as_echo "no" >&6; }
5314 # Prepare PATH_SEPARATOR.
5315 # The user is always right.
5316 if test "${PATH_SEPARATOR+set}" != set; then
5317 echo "#! /bin/sh" >conf$$.sh
5318 echo "exit 0" >>conf$$.sh
5320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5328 # Find out how to test for executable files. Don't use a zero-byte file,
5329 # as systems may use methods other than mode bits to determine executability.
5330 cat >conf$$.file <<_ASEOF
5334 chmod +x conf$$.file
5335 if test -x conf$$.file >/dev/null 2>&1; then
5336 ac_executable_p="test -x"
5338 ac_executable_p="test -f"
5342 # Extract the first word of "msgmerge", so it can be a program name with args.
5343 set dummy msgmerge; ac_word=$2
5344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5347 $as_echo_n "(cached) " >&6
5351 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5354 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5355 for ac_dir in $PATH; do
5357 test -z "$ac_dir" && ac_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5360 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5361 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5368 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5372 MSGMERGE="$ac_cv_path_MSGMERGE"
5373 if test "$MSGMERGE" != ":"; then
5374 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5375 $as_echo "$MSGMERGE" >&6; }
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5382 if test "$GMSGFMT" != ":"; then
5383 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5384 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5387 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5388 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5389 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5394 if test "$XGETTEXT" != ":"; then
5395 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5396 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5399 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5400 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5406 ac_config_commands="$ac_config_commands default-1"
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if test "${ac_cv_prog_RANLIB+set}" = set; then
5415 $as_echo_n "(cached) " >&6
5417 if test -n "$RANLIB"; then
5418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 RANLIB=$ac_cv_prog_RANLIB
5438 if test -n "$RANLIB"; then
5439 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5440 $as_echo "$RANLIB" >&6; }
5442 { $as_echo "$as_me:$LINENO: result: no" >&5
5443 $as_echo "no" >&6; }
5448 if test -z "$ac_cv_prog_RANLIB"; then
5449 ac_ct_RANLIB=$RANLIB
5450 # Extract the first word of "ranlib", so it can be a program name with args.
5451 set dummy ranlib; ac_word=$2
5452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$ac_ct_RANLIB"; then
5458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_ac_ct_RANLIB="ranlib"
5468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5478 if test -n "$ac_ct_RANLIB"; then
5479 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5480 $as_echo "$ac_ct_RANLIB" >&6; }
5482 { $as_echo "$as_me:$LINENO: result: no" >&5
5483 $as_echo "no" >&6; }
5486 if test "x$ac_ct_RANLIB" = x; then
5489 case $cross_compiling:$ac_tool_warned in
5491 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5495 RANLIB=$ac_ct_RANLIB
5498 RANLIB="$ac_cv_prog_RANLIB"
5502 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5503 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5504 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5505 $as_echo_n "(cached) " >&6
5507 ac_check_lib_save_LIBS=$LIBS
5508 LIBS="-lcposix $LIBS"
5509 cat >conftest.$ac_ext <<_ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5516 /* Override any GCC internal prototype to avoid an error.
5517 Use char because int might match the return type of a GCC
5518 builtin and then its argument prototype would still apply. */
5531 rm -f conftest.$ac_objext conftest$ac_exeext
5532 if { (ac_try="$ac_link"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5538 $as_echo "$ac_try_echo") >&5
5539 (eval "$ac_link") 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest$ac_exeext && {
5549 test "$cross_compiling" = yes ||
5550 $as_test_x conftest$ac_exeext
5552 ac_cv_lib_cposix_strerror=yes
5554 $as_echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_cv_lib_cposix_strerror=no
5560 rm -rf conftest.dSYM
5561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5562 conftest$ac_exeext conftest.$ac_ext
5563 LIBS=$ac_check_lib_save_LIBS
5565 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5566 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5567 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
5568 LIBS="$LIBS -lcposix"
5573 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5574 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5575 if test "${ac_cv_c_const+set}" = set; then
5576 $as_echo_n "(cached) " >&6
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5588 /* FIXME: Include the comments suggested by Paul. */
5590 /* Ultrix mips cc rejects this. */
5591 typedef int charset[2];
5593 /* SunOS 4.1.1 cc rejects this. */
5594 char const *const *pcpcc;
5596 /* NEC SVR4.0.2 mips cc rejects this. */
5597 struct point {int x, y;};
5598 static struct point const zero = {0,0};
5599 /* AIX XL C 1.02.0.0 rejects this.
5600 It does not let you subtract one const X* pointer from another in
5601 an arm of an if-expression whose if-part is not a constant
5603 const char *g = "string";
5604 pcpcc = &g + (g ? g-g : 0);
5605 /* HPUX 7.0 cc rejects these. */
5607 ppc = (char**) pcpcc;
5608 pcpcc = (char const *const *) ppc;
5609 { /* SCO 3.2v4 cc rejects this. */
5611 char const *s = 0 ? (char *) 0 : (char const *) 0;
5616 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5618 const int *foo = &x[0];
5621 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5622 typedef const int *iptr;
5626 { /* AIX XL C 1.02.0.0 rejects this saying
5627 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5628 struct s { int j; const int *ap[3]; };
5629 struct s *b; b->j = 5;
5631 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5635 return !cs[0] && !zero.x;
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649 $as_echo "$ac_try_echo") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5652 grep -v '^ *+' conftest.er1 >conftest.err
5654 cat conftest.err >&5
5655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
5662 $as_echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5671 $as_echo "$ac_cv_c_const" >&6; }
5672 if test $ac_cv_c_const = no; then
5674 cat >>confdefs.h <<\_ACEOF
5681 { $as_echo "$as_me:$LINENO: checking for signed" >&5
5682 $as_echo_n "checking for signed... " >&6; }
5683 if test "${bh_cv_c_signed+set}" = set; then
5684 $as_echo_n "(cached) " >&6
5686 cat >conftest.$ac_ext <<_ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5701 rm -f conftest.$ac_objext
5702 if { (ac_try="$ac_compile"
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5708 $as_echo "$ac_try_echo") >&5
5709 (eval "$ac_compile") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
5721 $as_echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5730 $as_echo "$bh_cv_c_signed" >&6; }
5731 if test $bh_cv_c_signed = no; then
5733 cat >>confdefs.h <<\_ACEOF
5739 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5740 $as_echo_n "checking for inline... " >&6; }
5741 if test "${ac_cv_c_inline+set}" = set; then
5742 $as_echo_n "(cached) " >&6
5745 for ac_kw in inline __inline__ __inline; do
5746 cat >conftest.$ac_ext <<_ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5754 static $ac_kw foo_t static_foo () {return 0; }
5755 $ac_kw foo_t foo () {return 0; }
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5766 $as_echo "$ac_try_echo") >&5
5767 (eval "$ac_compile") 2>conftest.er1
5769 grep -v '^ *+' conftest.er1 >conftest.err
5771 cat conftest.err >&5
5772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } && {
5774 test -z "$ac_c_werror_flag" ||
5775 test ! -s conftest.err
5776 } && test -s conftest.$ac_objext; then
5777 ac_cv_c_inline=$ac_kw
5779 $as_echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 test "$ac_cv_c_inline" != no && break
5790 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5791 $as_echo "$ac_cv_c_inline" >&6; }
5794 case $ac_cv_c_inline in
5797 case $ac_cv_c_inline in
5799 *) ac_val=$ac_cv_c_inline;;
5801 cat >>confdefs.h <<_ACEOF
5803 #define inline $ac_val
5809 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5810 $as_echo_n "checking for off_t... " >&6; }
5811 if test "${ac_cv_type_off_t+set}" = set; then
5812 $as_echo_n "(cached) " >&6
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5831 rm -f conftest.$ac_objext
5832 if { (ac_try="$ac_compile"
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838 $as_echo "$ac_try_echo") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5859 if (sizeof ((off_t)))
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872 $as_echo "$ac_try_echo") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5885 $as_echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5888 ac_cv_type_off_t=yes
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5902 $as_echo "$ac_cv_type_off_t" >&6; }
5903 if test "x$ac_cv_type_off_t" = x""yes; then
5907 cat >>confdefs.h <<_ACEOF
5908 #define off_t long int
5913 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5914 $as_echo_n "checking for size_t... " >&6; }
5915 if test "${ac_cv_type_size_t+set}" = set; then
5916 $as_echo_n "(cached) " >&6
5918 ac_cv_type_size_t=no
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 $ac_includes_default
5929 if (sizeof (size_t))
5935 rm -f conftest.$ac_objext
5936 if { (ac_try="$ac_compile"
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942 $as_echo "$ac_try_echo") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5945 grep -v '^ *+' conftest.er1 >conftest.err
5947 cat conftest.err >&5
5948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && {
5950 test -z "$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 } && test -s conftest.$ac_objext; then
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5963 if (sizeof ((size_t)))
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976 $as_echo "$ac_try_echo") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1 >conftest.err
5981 cat conftest.err >&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
5989 $as_echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_type_size_t=yes
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 $as_echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6006 $as_echo "$ac_cv_type_size_t" >&6; }
6007 if test "x$ac_cv_type_size_t" = x""yes; then
6011 cat >>confdefs.h <<_ACEOF
6012 #define size_t unsigned int
6018 { $as_echo "$as_me:$LINENO: checking for long long" >&5
6019 $as_echo_n "checking for long long... " >&6; }
6020 if test "${ac_cv_type_long_long+set}" = set; then
6021 $as_echo_n "(cached) " >&6
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 long long ll = 1LL; int i = 63;
6033 long long llmax = (long long) -1;
6034 return ll << i | ll >> i | llmax / ll | llmax % ll;
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (ac_try="$ac_link"
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6046 $as_echo "$ac_try_echo") >&5
6047 (eval "$ac_link") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest$ac_exeext && {
6057 test "$cross_compiling" = yes ||
6058 $as_test_x conftest$ac_exeext
6060 ac_cv_type_long_long=yes
6062 $as_echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_type_long_long=no
6068 rm -rf conftest.dSYM
6069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6070 conftest$ac_exeext conftest.$ac_ext
6072 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6073 $as_echo "$ac_cv_type_long_long" >&6; }
6074 if test $ac_cv_type_long_long = yes; then
6076 cat >>confdefs.h <<\_ACEOF
6077 #define HAVE_LONG_LONG 1
6083 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6084 $as_echo_n "checking for long double... " >&6; }
6085 if test "${gt_cv_c_long_double+set}" = set; then
6086 $as_echo_n "(cached) " >&6
6088 if test "$GCC" = yes; then
6089 gt_cv_c_long_double=yes
6091 cat >conftest.$ac_ext <<_ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6098 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6099 long double foo = 0.0;
6100 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6101 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6118 $as_echo "$ac_try_echo") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6121 grep -v '^ *+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
6129 gt_cv_c_long_double=yes
6131 $as_echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 gt_cv_c_long_double=no
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6141 $as_echo "$gt_cv_c_long_double" >&6; }
6142 if test $gt_cv_c_long_double = yes; then
6144 cat >>confdefs.h <<\_ACEOF
6145 #define HAVE_LONG_DOUBLE 1
6151 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6152 $as_echo_n "checking for wchar_t... " >&6; }
6153 if test "${gt_cv_c_wchar_t+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6156 cat >conftest.$ac_ext <<_ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6163 wchar_t foo = (wchar_t)'\0';
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179 $as_echo "$ac_try_echo") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
6192 $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6201 $as_echo "$gt_cv_c_wchar_t" >&6; }
6202 if test $gt_cv_c_wchar_t = yes; then
6204 cat >>confdefs.h <<\_ACEOF
6205 #define HAVE_WCHAR_T 1
6211 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6212 $as_echo_n "checking for wint_t... " >&6; }
6213 if test "${gt_cv_c_wint_t+set}" = set; then
6214 $as_echo_n "(cached) " >&6
6216 cat >conftest.$ac_ext <<_ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h. */
6223 wint_t foo = (wchar_t)'\0';
6232 rm -f conftest.$ac_objext
6233 if { (ac_try="$ac_compile"
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239 $as_echo "$ac_try_echo") >&5
6240 (eval "$ac_compile") 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && {
6247 test -z "$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
6252 $as_echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6261 $as_echo "$gt_cv_c_wint_t" >&6; }
6262 if test $gt_cv_c_wint_t = yes; then
6264 cat >>confdefs.h <<\_ACEOF
6265 #define HAVE_WINT_T 1
6271 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6272 $as_echo_n "checking for inttypes.h... " >&6; }
6273 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6274 $as_echo_n "(cached) " >&6
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 #include <sys/types.h>
6283 #include <inttypes.h>
6287 uintmax_t i = (uintmax_t) -1;
6292 rm -f conftest.$ac_objext
6293 if { (ac_try="$ac_compile"
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299 $as_echo "$ac_try_echo") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1 >conftest.err
6304 cat conftest.err >&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 jm_ac_cv_header_inttypes_h=yes
6312 $as_echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6315 jm_ac_cv_header_inttypes_h=no
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6321 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6322 if test $jm_ac_cv_header_inttypes_h = yes; then
6324 cat >>confdefs.h <<_ACEOF
6325 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6331 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6332 $as_echo_n "checking for stdint.h... " >&6; }
6333 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6334 $as_echo_n "(cached) " >&6
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <sys/types.h>
6347 uintmax_t i = (uintmax_t) -1;
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359 $as_echo "$ac_try_echo") >&5
6360 (eval "$ac_compile") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
6370 jm_ac_cv_header_stdint_h=yes
6372 $as_echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 jm_ac_cv_header_stdint_h=no
6378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6381 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6382 if test $jm_ac_cv_header_stdint_h = yes; then
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_STDINT_H_WITH_UINTMAX 1
6393 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6394 $as_echo_n "checking for intmax_t... " >&6; }
6395 if test "${gt_cv_c_intmax_t+set}" = set; then
6396 $as_echo_n "(cached) " >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6407 #if HAVE_STDINT_H_WITH_UINTMAX
6410 #if HAVE_INTTYPES_H_WITH_UINTMAX
6411 #include <inttypes.h>
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6429 $as_echo "$ac_try_echo") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 gt_cv_c_intmax_t=yes
6442 $as_echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6451 $as_echo "$gt_cv_c_intmax_t" >&6; }
6452 if test $gt_cv_c_intmax_t = yes; then
6454 cat >>confdefs.h <<\_ACEOF
6455 #define HAVE_INTMAX_T 1
6462 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6463 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6464 if test "${gt_cv_func_printf_posix+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6468 if test "$cross_compiling" = yes; then
6470 cat >conftest.$ac_ext <<_ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6477 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "notposix" >/dev/null 2>&1; then
6484 gt_cv_func_printf_posix="guessing no"
6486 gt_cv_func_printf_posix="guessing yes"
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6501 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6502 dollar expansion (possibly an autoconf bug). */
6503 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6504 static char buf[100];
6507 sprintf (buf, format, 33, 55);
6508 return (strcmp (buf, "55 33") != 0);
6511 rm -f conftest$ac_exeext
6512 if { (ac_try="$ac_link"
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518 $as_echo "$ac_try_echo") >&5
6519 (eval "$ac_link") 2>&5
6521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6528 $as_echo "$ac_try_echo") >&5
6529 (eval "$ac_try") 2>&5
6531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 gt_cv_func_printf_posix=yes
6535 $as_echo "$as_me: program exited with status $ac_status" >&5
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6540 gt_cv_func_printf_posix=no
6542 rm -rf conftest.dSYM
6543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6549 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6550 $as_echo "$gt_cv_func_printf_posix" >&6; }
6551 case $gt_cv_func_printf_posix in
6554 cat >>confdefs.h <<\_ACEOF
6555 #define HAVE_POSIX_PRINTF 1
6561 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6562 # for constant arguments. Useless!
6563 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6564 $as_echo_n "checking for working alloca.h... " >&6; }
6565 if test "${ac_cv_working_alloca_h+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6578 char *p = (char *) alloca (2 * sizeof (int));
6584 rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (ac_try="$ac_link"
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591 $as_echo "$ac_try_echo") >&5
6592 (eval "$ac_link") 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest$ac_exeext && {
6602 test "$cross_compiling" = yes ||
6603 $as_test_x conftest$ac_exeext
6605 ac_cv_working_alloca_h=yes
6607 $as_echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 ac_cv_working_alloca_h=no
6613 rm -rf conftest.dSYM
6614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6615 conftest$ac_exeext conftest.$ac_ext
6617 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6618 $as_echo "$ac_cv_working_alloca_h" >&6; }
6619 if test $ac_cv_working_alloca_h = yes; then
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_ALLOCA_H 1
6627 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6628 $as_echo_n "checking for alloca... " >&6; }
6629 if test "${ac_cv_func_alloca_works+set}" = set; then
6630 $as_echo_n "(cached) " >&6
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6639 # define alloca __builtin_alloca
6642 # include <malloc.h>
6643 # define alloca _alloca
6645 # ifdef HAVE_ALLOCA_H
6646 # include <alloca.h>
6651 # ifndef alloca /* predefined by HP cc +Olibcalls */
6662 char *p = (char *) alloca (1);
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (ac_try="$ac_link"
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6675 $as_echo "$ac_try_echo") >&5
6676 (eval "$ac_link") 2>conftest.er1
6678 grep -v '^ *+' conftest.er1 >conftest.err
6680 cat conftest.err >&5
6681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 } && test -s conftest$ac_exeext && {
6686 test "$cross_compiling" = yes ||
6687 $as_test_x conftest$ac_exeext
6689 ac_cv_func_alloca_works=yes
6691 $as_echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cv_func_alloca_works=no
6697 rm -rf conftest.dSYM
6698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6699 conftest$ac_exeext conftest.$ac_ext
6701 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6702 $as_echo "$ac_cv_func_alloca_works" >&6; }
6704 if test $ac_cv_func_alloca_works = yes; then
6706 cat >>confdefs.h <<\_ACEOF
6707 #define HAVE_ALLOCA 1
6711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6712 # that cause trouble. Some versions do not even contain alloca or
6713 # contain a buggy version. If you still want to use their alloca,
6714 # use ar to extract alloca.o from them instead of compiling alloca.c.
6716 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6718 cat >>confdefs.h <<\_ACEOF
6723 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6724 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6725 if test "${ac_cv_os_cray+set}" = set; then
6726 $as_echo_n "(cached) " >&6
6728 cat >conftest.$ac_ext <<_ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 #if defined CRAY && ! defined CRAY2
6741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6742 $EGREP "webecray" >/dev/null 2>&1; then
6750 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6751 $as_echo "$ac_cv_os_cray" >&6; }
6752 if test $ac_cv_os_cray = yes; then
6753 for ac_func in _getb67 GETB67 getb67; do
6754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6755 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6756 $as_echo_n "checking for $ac_func... " >&6; }
6757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6758 $as_echo_n "(cached) " >&6
6760 cat >conftest.$ac_ext <<_ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6768 #define $ac_func innocuous_$ac_func
6770 /* System header to define __stub macros and hopefully few prototypes,
6771 which can conflict with char $ac_func (); below.
6772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773 <limits.h> exists even on freestanding compilers. */
6776 # include <limits.h>
6778 # include <assert.h>
6783 /* Override any GCC internal prototype to avoid an error.
6784 Use char because int might match the return type of a GCC
6785 builtin and then its argument prototype would still apply. */
6790 /* The GNU C library defines this for functions which it implements
6791 to always fail with ENOSYS. Some functions are actually named
6792 something starting with __ and the normal name is an alias. */
6793 #if defined __stub_$ac_func || defined __stub___$ac_func
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6812 $as_echo "$ac_try_echo") >&5
6813 (eval "$ac_link") 2>conftest.er1
6815 grep -v '^ *+' conftest.er1 >conftest.err
6817 cat conftest.err >&5
6818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
6822 } && test -s conftest$ac_exeext && {
6823 test "$cross_compiling" = yes ||
6824 $as_test_x conftest$ac_exeext
6826 eval "$as_ac_var=yes"
6828 $as_echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 eval "$as_ac_var=no"
6834 rm -rf conftest.dSYM
6835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6836 conftest$ac_exeext conftest.$ac_ext
6838 ac_res=`eval 'as_val=${'$as_ac_var'}
6839 $as_echo "$as_val"'`
6840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6841 $as_echo "$ac_res" >&6; }
6842 as_val=`eval 'as_val=${'$as_ac_var'}
6843 $as_echo "$as_val"'`
6844 if test "x$as_val" = x""yes; then
6846 cat >>confdefs.h <<_ACEOF
6847 #define CRAY_STACKSEG_END $ac_func
6856 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6857 $as_echo_n "checking stack direction for C alloca... " >&6; }
6858 if test "${ac_cv_c_stack_direction+set}" = set; then
6859 $as_echo_n "(cached) " >&6
6861 if test "$cross_compiling" = yes; then
6862 ac_cv_c_stack_direction=0
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6872 find_stack_direction ()
6874 static char *addr = 0;
6879 return find_stack_direction ();
6882 return (&dummy > addr) ? 1 : -1;
6888 return find_stack_direction () < 0;
6891 rm -f conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_link") 2>&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6903 { (case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6908 $as_echo "$ac_try_echo") >&5
6909 (eval "$ac_try") 2>&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; }; then
6913 ac_cv_c_stack_direction=1
6915 $as_echo "$as_me: program exited with status $ac_status" >&5
6916 $as_echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6920 ac_cv_c_stack_direction=-1
6922 rm -rf conftest.dSYM
6923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6928 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6929 $as_echo "$ac_cv_c_stack_direction" >&6; }
6931 cat >>confdefs.h <<_ACEOF
6932 #define STACK_DIRECTION $ac_cv_c_stack_direction
6940 for ac_header in stdlib.h unistd.h
6942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6945 $as_echo_n "checking for $ac_header... " >&6; }
6946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6947 $as_echo_n "(cached) " >&6
6949 ac_res=`eval 'as_val=${'$as_ac_Header'}
6950 $as_echo "$as_val"'`
6951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6952 $as_echo "$ac_res" >&6; }
6954 # Is the header compilable?
6955 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6956 $as_echo_n "checking $ac_header usability... " >&6; }
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 #include <$ac_header>
6966 rm -f conftest.$ac_objext
6967 if { (ac_try="$ac_compile"
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6973 $as_echo "$ac_try_echo") >&5
6974 (eval "$ac_compile") 2>conftest.er1
6976 grep -v '^ *+' conftest.er1 >conftest.err
6978 cat conftest.err >&5
6979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } && {
6981 test -z "$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest.$ac_objext; then
6984 ac_header_compiler=yes
6986 $as_echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 ac_header_compiler=no
6992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6993 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6994 $as_echo "$ac_header_compiler" >&6; }
6996 # Is the header present?
6997 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6998 $as_echo_n "checking $ac_header presence... " >&6; }
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 #include <$ac_header>
7007 if { (ac_try="$ac_cpp conftest.$ac_ext"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013 $as_echo "$ac_try_echo") >&5
7014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7016 grep -v '^ *+' conftest.er1 >conftest.err
7018 cat conftest.err >&5
7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } >/dev/null && {
7021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7024 ac_header_preproc=yes
7026 $as_echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_header_preproc=no
7032 rm -f conftest.err conftest.$ac_ext
7033 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7034 $as_echo "$ac_header_preproc" >&6; }
7036 # So? What about this header?
7037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7040 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7043 ac_header_preproc=yes
7046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7047 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7049 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7051 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7053 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7057 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7062 $as_echo_n "checking for $ac_header... " >&6; }
7063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7064 $as_echo_n "(cached) " >&6
7066 eval "$as_ac_Header=\$ac_header_preproc"
7068 ac_res=`eval 'as_val=${'$as_ac_Header'}
7069 $as_echo "$as_val"'`
7070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7071 $as_echo "$ac_res" >&6; }
7074 as_val=`eval 'as_val=${'$as_ac_Header'}
7075 $as_echo "$as_val"'`
7076 if test "x$as_val" = x""yes; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7086 for ac_func in getpagesize
7088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7089 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7090 $as_echo_n "checking for $ac_func... " >&6; }
7091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7092 $as_echo_n "(cached) " >&6
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7102 #define $ac_func innocuous_$ac_func
7104 /* System header to define __stub macros and hopefully few prototypes,
7105 which can conflict with char $ac_func (); below.
7106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 <limits.h> exists even on freestanding compilers. */
7110 # include <limits.h>
7112 # include <assert.h>
7117 /* Override any GCC internal prototype to avoid an error.
7118 Use char because int might match the return type of a GCC
7119 builtin and then its argument prototype would still apply. */
7124 /* The GNU C library defines this for functions which it implements
7125 to always fail with ENOSYS. Some functions are actually named
7126 something starting with __ and the normal name is an alias. */
7127 #if defined __stub_$ac_func || defined __stub___$ac_func
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (ac_try="$ac_link"
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7146 $as_echo "$ac_try_echo") >&5
7147 (eval "$ac_link") 2>conftest.er1
7149 grep -v '^ *+' conftest.er1 >conftest.err
7151 cat conftest.err >&5
7152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
7156 } && test -s conftest$ac_exeext && {
7157 test "$cross_compiling" = yes ||
7158 $as_test_x conftest$ac_exeext
7160 eval "$as_ac_var=yes"
7162 $as_echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 eval "$as_ac_var=no"
7168 rm -rf conftest.dSYM
7169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7170 conftest$ac_exeext conftest.$ac_ext
7172 ac_res=`eval 'as_val=${'$as_ac_var'}
7173 $as_echo "$as_val"'`
7174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7175 $as_echo "$ac_res" >&6; }
7176 as_val=`eval 'as_val=${'$as_ac_var'}
7177 $as_echo "$as_val"'`
7178 if test "x$as_val" = x""yes; then
7179 cat >>confdefs.h <<_ACEOF
7180 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7186 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7187 $as_echo_n "checking for working mmap... " >&6; }
7188 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7189 $as_echo_n "(cached) " >&6
7191 if test "$cross_compiling" = yes; then
7192 ac_cv_func_mmap_fixed_mapped=no
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7201 /* malloc might have been renamed as rpl_malloc. */
7204 /* Thanks to Mike Haertel and Jim Avera for this test.
7205 Here is a matrix of mmap possibilities:
7206 mmap private not fixed
7207 mmap private fixed at somewhere currently unmapped
7208 mmap private fixed at somewhere already mapped
7209 mmap shared not fixed
7210 mmap shared fixed at somewhere currently unmapped
7211 mmap shared fixed at somewhere already mapped
7212 For private mappings, we should verify that changes cannot be read()
7213 back from the file, nor mmap's back from the file at a different
7214 address. (There have been systems where private was not correctly
7215 implemented like the infamous i386 svr4.0, and systems where the
7216 VM page cache was not coherent with the file system buffer cache
7217 like early versions of FreeBSD and possibly contemporary NetBSD.)
7218 For shared mappings, we should conversely verify that changes get
7219 propagated back to all the places they're supposed to be.
7221 Grep wants private fixed already mapped.
7222 The main things grep needs to know about mmap are:
7223 * does it exist and is it safe to write into the mmap'd area
7224 * how to use it (BSD variants) */
7227 #include <sys/mman.h>
7229 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7233 /* This mess was copied from the GNU getpagesize.h. */
7234 #ifndef HAVE_GETPAGESIZE
7235 /* Assume that all systems that can run configure have sys/param.h. */
7236 # ifndef HAVE_SYS_PARAM_H
7237 # define HAVE_SYS_PARAM_H 1
7240 # ifdef _SC_PAGESIZE
7241 # define getpagesize() sysconf(_SC_PAGESIZE)
7242 # else /* no _SC_PAGESIZE */
7243 # ifdef HAVE_SYS_PARAM_H
7244 # include <sys/param.h>
7245 # ifdef EXEC_PAGESIZE
7246 # define getpagesize() EXEC_PAGESIZE
7247 # else /* no EXEC_PAGESIZE */
7249 # define getpagesize() NBPG * CLSIZE
7252 # endif /* no CLSIZE */
7253 # else /* no NBPG */
7255 # define getpagesize() NBPC
7256 # else /* no NBPC */
7258 # define getpagesize() PAGESIZE
7259 # endif /* PAGESIZE */
7260 # endif /* no NBPC */
7261 # endif /* no NBPG */
7262 # endif /* no EXEC_PAGESIZE */
7263 # else /* no HAVE_SYS_PARAM_H */
7264 # define getpagesize() 8192 /* punt totally */
7265 # endif /* no HAVE_SYS_PARAM_H */
7266 # endif /* no _SC_PAGESIZE */
7268 #endif /* no HAVE_GETPAGESIZE */
7273 char *data, *data2, *data3;
7277 pagesize = getpagesize ();
7279 /* First, make a file with some known garbage in it. */
7280 data = (char *) malloc (pagesize);
7283 for (i = 0; i < pagesize; ++i)
7284 *(data + i) = rand ();
7286 fd = creat ("conftest.mmap", 0600);
7289 if (write (fd, data, pagesize) != pagesize)
7293 /* Next, try to mmap the file at a fixed address which already has
7294 something else allocated at it. If we can, also make sure that
7295 we see the same garbage. */
7296 fd = open ("conftest.mmap", O_RDWR);
7299 data2 = (char *) malloc (2 * pagesize);
7302 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7303 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7306 for (i = 0; i < pagesize; ++i)
7307 if (*(data + i) != *(data2 + i))
7310 /* Finally, make sure that changes to the mapped area do not
7311 percolate back to the file as seen by read(). (This is a bug on
7312 some variants of i386 svr4.0.) */
7313 for (i = 0; i < pagesize; ++i)
7314 *(data2 + i) = *(data2 + i) + 1;
7315 data3 = (char *) malloc (pagesize);
7318 if (read (fd, data3, pagesize) != pagesize)
7320 for (i = 0; i < pagesize; ++i)
7321 if (*(data + i) != *(data3 + i))
7327 rm -f conftest$ac_exeext
7328 if { (ac_try="$ac_link"
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7334 $as_echo "$ac_try_echo") >&5
7335 (eval "$ac_link") 2>&5
7337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7339 { (case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7344 $as_echo "$ac_try_echo") >&5
7345 (eval "$ac_try") 2>&5
7347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_func_mmap_fixed_mapped=yes
7351 $as_echo "$as_me: program exited with status $ac_status" >&5
7352 $as_echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7356 ac_cv_func_mmap_fixed_mapped=no
7358 rm -rf conftest.dSYM
7359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7364 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7365 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7366 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7368 cat >>confdefs.h <<\_ACEOF
7376 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7377 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7378 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7379 $as_echo_n "(cached) " >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 #include <features.h>
7389 #ifdef __GNU_LIBRARY__
7390 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7397 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7398 ac_cv_gnu_library_2_1=yes
7400 ac_cv_gnu_library_2_1=no
7407 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7408 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7410 GLIBC21="$ac_cv_gnu_library_2_1"
7415 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7416 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7417 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7418 $as_echo_n "(cached) " >&6
7421 if test "$cross_compiling" = yes; then
7423 # Guess based on the CPU.
7425 alpha* | i3456786 | m68k | s390*)
7426 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7428 gt_cv_int_divbyzero_sigfpe="guessing no";;
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7444 sigfpe_handler (int sig)
7446 sigfpe_handler (sig) int sig;
7449 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7450 exit (sig != SIGFPE);
7460 signal (SIGFPE, sigfpe_handler);
7461 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7462 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7463 signal (SIGTRAP, sigfpe_handler);
7465 /* Linux/SPARC yields signal SIGILL. */
7466 #if defined (__sparc__) && defined (__linux__)
7467 signal (SIGILL, sigfpe_handler);
7476 rm -f conftest$ac_exeext
7477 if { (ac_try="$ac_link"
7479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7483 $as_echo "$ac_try_echo") >&5
7484 (eval "$ac_link") 2>&5
7486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7488 { (case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7493 $as_echo "$ac_try_echo") >&5
7494 (eval "$ac_try") 2>&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498 gt_cv_int_divbyzero_sigfpe=yes
7500 $as_echo "$as_me: program exited with status $ac_status" >&5
7501 $as_echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7505 gt_cv_int_divbyzero_sigfpe=no
7507 rm -rf conftest.dSYM
7508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7514 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7515 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7516 case "$gt_cv_int_divbyzero_sigfpe" in
7521 cat >>confdefs.h <<_ACEOF
7522 #define INTDIV0_RAISES_SIGFPE $value
7527 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7528 $as_echo_n "checking for unsigned long long... " >&6; }
7529 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7530 $as_echo_n "(cached) " >&6
7532 cat >conftest.$ac_ext <<_ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 unsigned long long ull = 1ULL; int i = 63;
7542 unsigned long long ullmax = (unsigned long long) -1;
7543 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7555 $as_echo "$ac_try_echo") >&5
7556 (eval "$ac_link") 2>conftest.er1
7558 grep -v '^ *+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } && {
7563 test -z "$ac_c_werror_flag" ||
7564 test ! -s conftest.err
7565 } && test -s conftest$ac_exeext && {
7566 test "$cross_compiling" = yes ||
7567 $as_test_x conftest$ac_exeext
7569 ac_cv_type_unsigned_long_long=yes
7571 $as_echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 ac_cv_type_unsigned_long_long=no
7577 rm -rf conftest.dSYM
7578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7579 conftest$ac_exeext conftest.$ac_ext
7581 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7582 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7583 if test $ac_cv_type_unsigned_long_long = yes; then
7585 cat >>confdefs.h <<\_ACEOF
7586 #define HAVE_UNSIGNED_LONG_LONG 1
7594 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7596 test $ac_cv_type_unsigned_long_long = yes \
7597 && ac_type='unsigned long long' \
7598 || ac_type='unsigned long'
7600 cat >>confdefs.h <<_ACEOF
7601 #define uintmax_t $ac_type
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_UINTMAX_T 1
7613 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7614 $as_echo_n "checking for inttypes.h... " >&6; }
7615 if test "${gt_cv_header_inttypes_h+set}" = set; then
7616 $as_echo_n "(cached) " >&6
7619 cat >conftest.$ac_ext <<_ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 #include <sys/types.h>
7626 #include <inttypes.h>
7635 rm -f conftest.$ac_objext
7636 if { (ac_try="$ac_compile"
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 gt_cv_header_inttypes_h=yes
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 gt_cv_header_inttypes_h=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7665 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7666 if test $gt_cv_header_inttypes_h = yes; then
7668 cat >>confdefs.h <<_ACEOF
7669 #define HAVE_INTTYPES_H 1
7676 if test $gt_cv_header_inttypes_h = yes; then
7677 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7678 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7679 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7680 $as_echo_n "(cached) " >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 #include <inttypes.h>
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7709 $as_echo "$ac_try_echo") >&5
7710 (eval "$ac_compile") 2>conftest.er1
7712 grep -v '^ *+' conftest.er1 >conftest.err
7714 cat conftest.err >&5
7715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest.$ac_objext; then
7720 gt_cv_inttypes_pri_broken=no
7722 $as_echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 gt_cv_inttypes_pri_broken=yes
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7732 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7734 if test "$gt_cv_inttypes_pri_broken" = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define PRI_MACROS_BROKEN 1
7744 for ac_header in stdint.h
7746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7749 $as_echo_n "checking for $ac_header... " >&6; }
7750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7751 $as_echo_n "(cached) " >&6
7753 ac_res=`eval 'as_val=${'$as_ac_Header'}
7754 $as_echo "$as_val"'`
7755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7756 $as_echo "$ac_res" >&6; }
7758 # Is the header compilable?
7759 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760 $as_echo_n "checking $ac_header usability... " >&6; }
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 $ac_includes_default
7768 #include <$ac_header>
7770 rm -f conftest.$ac_objext
7771 if { (ac_try="$ac_compile"
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7777 $as_echo "$ac_try_echo") >&5
7778 (eval "$ac_compile") 2>conftest.er1
7780 grep -v '^ *+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } && {
7785 test -z "$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7787 } && test -s conftest.$ac_objext; then
7788 ac_header_compiler=yes
7790 $as_echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_header_compiler=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7798 $as_echo "$ac_header_compiler" >&6; }
7800 # Is the header present?
7801 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7802 $as_echo_n "checking $ac_header presence... " >&6; }
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 #include <$ac_header>
7811 if { (ac_try="$ac_cpp conftest.$ac_ext"
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7817 $as_echo "$ac_try_echo") >&5
7818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7820 grep -v '^ *+' conftest.er1 >conftest.err
7822 cat conftest.err >&5
7823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } >/dev/null && {
7825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7828 ac_header_preproc=yes
7830 $as_echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7833 ac_header_preproc=no
7836 rm -f conftest.err conftest.$ac_ext
7837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7838 $as_echo "$ac_header_preproc" >&6; }
7840 # So? What about this header?
7841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7844 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7847 ac_header_preproc=yes
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7851 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7853 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7855 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7857 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7861 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7865 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7866 $as_echo_n "checking for $ac_header... " >&6; }
7867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7868 $as_echo_n "(cached) " >&6
7870 eval "$as_ac_Header=\$ac_header_preproc"
7872 ac_res=`eval 'as_val=${'$as_ac_Header'}
7873 $as_echo "$as_val"'`
7874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7875 $as_echo "$ac_res" >&6; }
7878 as_val=`eval 'as_val=${'$as_ac_Header'}
7879 $as_echo "$as_val"'`
7880 if test "x$as_val" = x""yes; then
7881 cat >>confdefs.h <<_ACEOF
7882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7890 $as_echo_n "checking for SIZE_MAX... " >&6; }
7892 cat >conftest.$ac_ext <<_ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "Found it" >/dev/null 2>&1; then
7914 if test -z "$result"; then
7915 if test "$cross_compiling" = yes; then
7916 # Depending upon the size, compute the lo and hi bounds.
7917 cat >conftest.$ac_ext <<_ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7927 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941 $as_echo "$ac_try_echo") >&5
7942 (eval "$ac_compile") 2>conftest.er1
7944 grep -v '^ *+' conftest.er1 >conftest.err
7946 cat conftest.err >&5
7947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
7954 cat >conftest.$ac_ext <<_ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7964 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7971 rm -f conftest.$ac_objext
7972 if { (ac_try="$ac_compile"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979 (eval "$ac_compile") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest.$ac_objext; then
7989 ac_hi=$ac_mid; break
7991 $as_echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_lo=`expr $ac_mid + 1`
7995 if test $ac_lo -le $ac_mid; then
7999 ac_mid=`expr 2 '*' $ac_mid + 1`
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 cat >conftest.$ac_ext <<_ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8018 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
8025 rm -f conftest.$ac_objext
8026 if { (ac_try="$ac_compile"
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8032 $as_echo "$ac_try_echo") >&5
8033 (eval "$ac_compile") 2>conftest.er1
8035 grep -v '^ *+' conftest.er1 >conftest.err
8037 cat conftest.err >&5
8038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest.$ac_objext; then
8045 cat >conftest.$ac_ext <<_ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8055 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_lo=$ac_mid; break
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 ac_hi=`expr '(' $ac_mid ')' - 1`
8086 if test $ac_mid -le $ac_hi; then
8090 ac_mid=`expr 2 '*' $ac_mid`
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 $as_echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 # Binary search between lo and hi bounds.
8107 while test "x$ac_lo" != "x$ac_hi"; do
8108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8119 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8126 rm -f conftest.$ac_objext
8127 if { (ac_try="$ac_compile"
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8133 $as_echo "$ac_try_echo") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8146 $as_echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_lo=`expr '(' $ac_mid ')' + 1`
8152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8166 static long int longval () { return ~(size_t)0 / 10; }
8167 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
8174 FILE *f = fopen ("conftest.val", "w");
8177 if ((~(size_t)0 / 10) < 0)
8179 long int i = longval ();
8180 if (i != (~(size_t)0 / 10))
8182 fprintf (f, "%ld", i);
8186 unsigned long int i = ulongval ();
8187 if (i != (~(size_t)0 / 10))
8189 fprintf (f, "%lu", i);
8191 /* Do not output a trailing newline, as this causes \r\n confusion
8192 on some platforms. */
8193 return ferror (f) || fclose (f) != 0;
8199 rm -f conftest$ac_exeext
8200 if { (ac_try="$ac_link"
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8206 $as_echo "$ac_try_echo") >&5
8207 (eval "$ac_link") 2>&5
8209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217 (eval "$ac_try") 2>&5
8219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 res_hi=`cat conftest.val`
8223 $as_echo "$as_me: program exited with status $ac_status" >&5
8224 $as_echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8230 rm -rf conftest.dSYM
8231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8235 if test "$cross_compiling" = yes; then
8236 # Depending upon the size, compute the lo and hi bounds.
8237 cat >conftest.$ac_ext <<_ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8247 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8261 $as_echo "$ac_try_echo") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1 >conftest.err
8266 cat conftest.err >&5
8267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8284 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8291 rm -f conftest.$ac_objext
8292 if { (ac_try="$ac_compile"
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298 $as_echo "$ac_try_echo") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_hi=$ac_mid; break
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_lo=`expr $ac_mid + 1`
8315 if test $ac_lo -le $ac_mid; then
8319 ac_mid=`expr 2 '*' $ac_mid + 1`
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 $as_echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8338 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8352 $as_echo "$ac_try_echo") >&5
8353 (eval "$ac_compile") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest.$ac_objext; then
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8375 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8382 rm -f conftest.$ac_objext
8383 if { (ac_try="$ac_compile"
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8389 $as_echo "$ac_try_echo") >&5
8390 (eval "$ac_compile") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.$ac_objext; then
8400 ac_lo=$ac_mid; break
8402 $as_echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 ac_hi=`expr '(' $ac_mid ')' - 1`
8406 if test $ac_mid -le $ac_hi; then
8410 ac_mid=`expr 2 '*' $ac_mid`
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 $as_echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 # Binary search between lo and hi bounds.
8427 while test "x$ac_lo" != "x$ac_hi"; do
8428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8439 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8446 rm -f conftest.$ac_objext
8447 if { (ac_try="$ac_compile"
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453 $as_echo "$ac_try_echo") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
8466 $as_echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_lo=`expr '(' $ac_mid ')' + 1`
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8486 static long int longval () { return ~(size_t)0 % 10; }
8487 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8494 FILE *f = fopen ("conftest.val", "w");
8497 if ((~(size_t)0 % 10) < 0)
8499 long int i = longval ();
8500 if (i != (~(size_t)0 % 10))
8502 fprintf (f, "%ld", i);
8506 unsigned long int i = ulongval ();
8507 if (i != (~(size_t)0 % 10))
8509 fprintf (f, "%lu", i);
8511 /* Do not output a trailing newline, as this causes \r\n confusion
8512 on some platforms. */
8513 return ferror (f) || fclose (f) != 0;
8519 rm -f conftest$ac_exeext
8520 if { (ac_try="$ac_link"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8526 $as_echo "$ac_try_echo") >&5
8527 (eval "$ac_link") 2>&5
8529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8531 { (case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536 $as_echo "$ac_try_echo") >&5
8537 (eval "$ac_try") 2>&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 res_lo=`cat conftest.val`
8543 $as_echo "$as_me: program exited with status $ac_status" >&5
8544 $as_echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.$ac_ext >&5
8550 rm -rf conftest.dSYM
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8555 if test "$cross_compiling" = yes; then
8556 # Depending upon the size, compute the lo and hi bounds.
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8567 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8604 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8611 rm -f conftest.$ac_objext
8612 if { (ac_try="$ac_compile"
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618 $as_echo "$ac_try_echo") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
8629 ac_hi=$ac_mid; break
8631 $as_echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_lo=`expr $ac_mid + 1`
8635 if test $ac_lo -le $ac_mid; then
8639 ac_mid=`expr 2 '*' $ac_mid + 1`
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 $as_echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8658 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8665 rm -f conftest.$ac_objext
8666 if { (ac_try="$ac_compile"
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8672 $as_echo "$ac_try_echo") >&5
8673 (eval "$ac_compile") 2>conftest.er1
8675 grep -v '^ *+' conftest.er1 >conftest.err
8677 cat conftest.err >&5
8678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } && {
8680 test -z "$ac_c_werror_flag" ||
8681 test ! -s conftest.err
8682 } && test -s conftest.$ac_objext; then
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8695 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_lo=$ac_mid; break
8722 $as_echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 ac_hi=`expr '(' $ac_mid ')' - 1`
8726 if test $ac_mid -le $ac_hi; then
8730 ac_mid=`expr 2 '*' $ac_mid`
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 $as_echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 # Binary search between lo and hi bounds.
8747 while test "x$ac_lo" != "x$ac_hi"; do
8748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8759 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8766 rm -f conftest.$ac_objext
8767 if { (ac_try="$ac_compile"
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8786 $as_echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_lo=`expr '(' $ac_mid ')' + 1`
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 ?*) fits_in_uint=$ac_lo;;
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8807 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8814 FILE *f = fopen ("conftest.val", "w");
8817 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8819 long int i = longval ();
8820 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8822 fprintf (f, "%ld", i);
8826 unsigned long int i = ulongval ();
8827 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8829 fprintf (f, "%lu", i);
8831 /* Do not output a trailing newline, as this causes \r\n confusion
8832 on some platforms. */
8833 return ferror (f) || fclose (f) != 0;
8839 rm -f conftest$ac_exeext
8840 if { (ac_try="$ac_link"
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8846 $as_echo "$ac_try_echo") >&5
8847 (eval "$ac_link") 2>&5
8849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8851 { (case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856 $as_echo "$ac_try_echo") >&5
8857 (eval "$ac_try") 2>&5
8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 fits_in_uint=`cat conftest.val`
8863 $as_echo "$as_me: program exited with status $ac_status" >&5
8864 $as_echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8870 rm -rf conftest.dSYM
8871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8875 if test "$fits_in_uint" = 1; then
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8884 extern unsigned long foo;
8894 rm -f conftest.$ac_objext
8895 if { (ac_try="$ac_compile"
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8914 $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922 if test -z "$result"; then
8923 if test "$fits_in_uint" = 1; then
8924 result="$res_hi$res_lo"U
8926 result="$res_hi$res_lo"UL
8932 { $as_echo "$as_me:$LINENO: result: $result" >&5
8933 $as_echo "$result" >&6; }
8934 if test "$result" != yes; then
8936 cat >>confdefs.h <<_ACEOF
8937 #define SIZE_MAX $result
8945 for ac_header in stdint.h
8947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8950 $as_echo_n "checking for $ac_header... " >&6; }
8951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8952 $as_echo_n "(cached) " >&6
8954 ac_res=`eval 'as_val=${'$as_ac_Header'}
8955 $as_echo "$as_val"'`
8956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8957 $as_echo "$ac_res" >&6; }
8959 # Is the header compilable?
8960 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8961 $as_echo_n "checking $ac_header usability... " >&6; }
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 $ac_includes_default
8969 #include <$ac_header>
8971 rm -f conftest.$ac_objext
8972 if { (ac_try="$ac_compile"
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8978 $as_echo "$ac_try_echo") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_header_compiler=yes
8991 $as_echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_header_compiler=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8999 $as_echo "$ac_header_compiler" >&6; }
9001 # Is the header present?
9002 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9003 $as_echo_n "checking $ac_header presence... " >&6; }
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 #include <$ac_header>
9012 if { (ac_try="$ac_cpp conftest.$ac_ext"
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } >/dev/null && {
9026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9029 ac_header_preproc=yes
9031 $as_echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9034 ac_header_preproc=no
9037 rm -f conftest.err conftest.$ac_ext
9038 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9039 $as_echo "$ac_header_preproc" >&6; }
9041 # So? What about this header?
9042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9045 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9047 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9048 ac_header_preproc=yes
9051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9052 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9054 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9056 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9058 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9060 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9062 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9066 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 $as_echo_n "checking for $ac_header... " >&6; }
9068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9069 $as_echo_n "(cached) " >&6
9071 eval "$as_ac_Header=\$ac_header_preproc"
9073 ac_res=`eval 'as_val=${'$as_ac_Header'}
9074 $as_echo "$as_val"'`
9075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9076 $as_echo "$ac_res" >&6; }
9079 as_val=`eval 'as_val=${'$as_ac_Header'}
9080 $as_echo "$as_val"'`
9081 if test "x$as_val" = x""yes; then
9082 cat >>confdefs.h <<_ACEOF
9083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9092 if test "X$prefix" = "XNONE"; then
9093 acl_final_prefix="$ac_default_prefix"
9095 acl_final_prefix="$prefix"
9097 if test "X$exec_prefix" = "XNONE"; then
9098 acl_final_exec_prefix='${prefix}'
9100 acl_final_exec_prefix="$exec_prefix"
9102 acl_save_prefix="$prefix"
9103 prefix="$acl_final_prefix"
9104 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9105 prefix="$acl_save_prefix"
9108 # Check whether --with-gnu-ld was given.
9109 if test "${with_gnu_ld+set}" = set; then
9110 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9115 # Prepare PATH_SEPARATOR.
9116 # The user is always right.
9117 if test "${PATH_SEPARATOR+set}" != set; then
9118 echo "#! /bin/sh" >conf$$.sh
9119 echo "exit 0" >>conf$$.sh
9121 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9129 if test "$GCC" = yes; then
9130 # Check if gcc -print-prog-name=ld gives a path.
9131 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9132 $as_echo_n "checking for ld used by GCC... " >&6; }
9135 # gcc leaves a trailing carriage return which upsets mingw
9136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9141 # Accept absolute paths.
9142 [\\/]* | [A-Za-z]:[\\/]*)
9143 re_direlt='/[^/][^/]*/\.\./'
9144 # Canonicalize the path of ld
9145 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9147 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9149 test -z "$LD" && LD="$ac_prog"
9152 # If it fails, then pretend we aren't using GCC.
9156 # If it is relative, then search for the first ld in PATH.
9160 elif test "$with_gnu_ld" = yes; then
9161 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9162 $as_echo_n "checking for GNU ld... " >&6; }
9164 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9165 $as_echo_n "checking for non-GNU ld... " >&6; }
9167 if test "${acl_cv_path_LD+set}" = set; then
9168 $as_echo_n "(cached) " >&6
9170 if test -z "$LD"; then
9171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9172 for ac_dir in $PATH; do
9173 test -z "$ac_dir" && ac_dir=.
9174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9175 acl_cv_path_LD="$ac_dir/$ac_prog"
9176 # Check to see if the program is GNU ld. I'd rather use --version,
9177 # but apparently some GNU ld's only accept -v.
9178 # Break only if it was the GNU/non-GNU ld that we prefer.
9179 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9180 *GNU* | *'with BFD'*)
9181 test "$with_gnu_ld" != no && break ;;
9183 test "$with_gnu_ld" != yes && break ;;
9189 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9193 LD="$acl_cv_path_LD"
9194 if test -n "$LD"; then
9195 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9196 $as_echo "$LD" >&6; }
9198 { $as_echo "$as_me:$LINENO: result: no" >&5
9199 $as_echo "no" >&6; }
9201 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9202 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9203 { (exit 1); exit 1; }; }
9204 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9205 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9206 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9207 $as_echo_n "(cached) " >&6
9209 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9210 case `$LD -v 2>&1 </dev/null` in
9211 *GNU* | *'with BFD'*)
9212 acl_cv_prog_gnu_ld=yes ;;
9214 acl_cv_prog_gnu_ld=no ;;
9217 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9218 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9219 with_gnu_ld=$acl_cv_prog_gnu_ld
9223 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9224 $as_echo_n "checking for shared library run path origin... " >&6; }
9225 if test "${acl_cv_rpath+set}" = set; then
9226 $as_echo_n "(cached) " >&6
9229 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9230 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9236 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9237 $as_echo "$acl_cv_rpath" >&6; }
9239 libext="$acl_cv_libext"
9240 shlibext="$acl_cv_shlibext"
9241 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9242 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9243 hardcode_direct="$acl_cv_hardcode_direct"
9244 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9245 # Check whether --enable-rpath was given.
9246 if test "${enable_rpath+set}" = set; then
9247 enableval=$enable_rpath; :
9261 acl_save_prefix="$prefix"
9262 prefix="$acl_final_prefix"
9263 acl_save_exec_prefix="$exec_prefix"
9264 exec_prefix="$acl_final_exec_prefix"
9266 eval additional_includedir=\"$includedir\"
9267 eval additional_libdir=\"$libdir\"
9269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9273 # Check whether --with-libiconv-prefix was given.
9274 if test "${with_libiconv_prefix+set}" = set; then
9275 withval=$with_libiconv_prefix;
9276 if test "X$withval" = "Xno"; then
9279 if test "X$withval" = "X"; then
9281 acl_save_prefix="$prefix"
9282 prefix="$acl_final_prefix"
9283 acl_save_exec_prefix="$exec_prefix"
9284 exec_prefix="$acl_final_exec_prefix"
9286 eval additional_includedir=\"$includedir\"
9287 eval additional_libdir=\"$libdir\"
9289 exec_prefix="$acl_save_exec_prefix"
9290 prefix="$acl_save_prefix"
9293 additional_includedir="$withval/include"
9294 additional_libdir="$withval/lib"
9305 names_already_handled=
9306 names_next_round='iconv '
9307 while test -n "$names_next_round"; do
9308 names_this_round="$names_next_round"
9310 for name in $names_this_round; do
9312 for n in $names_already_handled; do
9313 if test "$n" = "$name"; then
9318 if test -z "$already_handled"; then
9319 names_already_handled="$names_already_handled $name"
9320 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9321 eval value=\"\$HAVE_LIB$uppername\"
9322 if test -n "$value"; then
9323 if test "$value" = yes; then
9324 eval value=\"\$LIB$uppername\"
9325 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9326 eval value=\"\$LTLIB$uppername\"
9327 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9336 if test $use_additional = yes; then
9337 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9338 found_dir="$additional_libdir"
9339 found_so="$additional_libdir/lib$name.$shlibext"
9340 if test -f "$additional_libdir/lib$name.la"; then
9341 found_la="$additional_libdir/lib$name.la"
9344 if test -f "$additional_libdir/lib$name.$libext"; then
9345 found_dir="$additional_libdir"
9346 found_a="$additional_libdir/lib$name.$libext"
9347 if test -f "$additional_libdir/lib$name.la"; then
9348 found_la="$additional_libdir/lib$name.la"
9353 if test "X$found_dir" = "X"; then
9354 for x in $LDFLAGS $LTLIBICONV; do
9356 acl_save_prefix="$prefix"
9357 prefix="$acl_final_prefix"
9358 acl_save_exec_prefix="$exec_prefix"
9359 exec_prefix="$acl_final_exec_prefix"
9361 exec_prefix="$acl_save_exec_prefix"
9362 prefix="$acl_save_prefix"
9366 dir=`echo "X$x" | sed -e 's/^X-L//'`
9367 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9369 found_so="$dir/lib$name.$shlibext"
9370 if test -f "$dir/lib$name.la"; then
9371 found_la="$dir/lib$name.la"
9374 if test -f "$dir/lib$name.$libext"; then
9376 found_a="$dir/lib$name.$libext"
9377 if test -f "$dir/lib$name.la"; then
9378 found_la="$dir/lib$name.la"
9384 if test "X$found_dir" != "X"; then
9389 if test "X$found_dir" != "X"; then
9390 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9391 if test "X$found_so" != "X"; then
9392 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9396 for x in $ltrpathdirs; do
9397 if test "X$x" = "X$found_dir"; then
9402 if test -z "$haveit"; then
9403 ltrpathdirs="$ltrpathdirs $found_dir"
9405 if test "$hardcode_direct" = yes; then
9406 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9408 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9409 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9411 for x in $rpathdirs; do
9412 if test "X$x" = "X$found_dir"; then
9417 if test -z "$haveit"; then
9418 rpathdirs="$rpathdirs $found_dir"
9422 for x in $LDFLAGS $LIBICONV; do
9424 acl_save_prefix="$prefix"
9425 prefix="$acl_final_prefix"
9426 acl_save_exec_prefix="$exec_prefix"
9427 exec_prefix="$acl_final_exec_prefix"
9429 exec_prefix="$acl_save_exec_prefix"
9430 prefix="$acl_save_prefix"
9432 if test "X$x" = "X-L$found_dir"; then
9437 if test -z "$haveit"; then
9438 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9440 if test "$hardcode_minus_L" != no; then
9441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9443 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9449 if test "X$found_a" != "X"; then
9450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9452 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9455 additional_includedir=
9456 case "$found_dir" in
9458 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9459 additional_includedir="$basedir/include"
9462 if test "X$additional_includedir" != "X"; then
9463 if test "X$additional_includedir" != "X/usr/include"; then
9465 if test "X$additional_includedir" = "X/usr/local/include"; then
9466 if test -n "$GCC"; then
9468 linux*) haveit=yes;;
9472 if test -z "$haveit"; then
9473 for x in $CPPFLAGS $INCICONV; do
9475 acl_save_prefix="$prefix"
9476 prefix="$acl_final_prefix"
9477 acl_save_exec_prefix="$exec_prefix"
9478 exec_prefix="$acl_final_exec_prefix"
9480 exec_prefix="$acl_save_exec_prefix"
9481 prefix="$acl_save_prefix"
9483 if test "X$x" = "X-I$additional_includedir"; then
9488 if test -z "$haveit"; then
9489 if test -d "$additional_includedir"; then
9490 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9496 if test -n "$found_la"; then
9497 save_libdir="$libdir"
9499 */* | *\\*) . "$found_la" ;;
9500 *) . "./$found_la" ;;
9502 libdir="$save_libdir"
9503 for dep in $dependency_libs; do
9506 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9507 if test "X$additional_libdir" != "X/usr/lib"; then
9509 if test "X$additional_libdir" = "X/usr/local/lib"; then
9510 if test -n "$GCC"; then
9512 linux*) haveit=yes;;
9516 if test -z "$haveit"; then
9518 for x in $LDFLAGS $LIBICONV; do
9520 acl_save_prefix="$prefix"
9521 prefix="$acl_final_prefix"
9522 acl_save_exec_prefix="$exec_prefix"
9523 exec_prefix="$acl_final_exec_prefix"
9525 exec_prefix="$acl_save_exec_prefix"
9526 prefix="$acl_save_prefix"
9528 if test "X$x" = "X-L$additional_libdir"; then
9533 if test -z "$haveit"; then
9534 if test -d "$additional_libdir"; then
9535 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9539 for x in $LDFLAGS $LTLIBICONV; do
9541 acl_save_prefix="$prefix"
9542 prefix="$acl_final_prefix"
9543 acl_save_exec_prefix="$exec_prefix"
9544 exec_prefix="$acl_final_exec_prefix"
9546 exec_prefix="$acl_save_exec_prefix"
9547 prefix="$acl_save_prefix"
9549 if test "X$x" = "X-L$additional_libdir"; then
9554 if test -z "$haveit"; then
9555 if test -d "$additional_libdir"; then
9556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9563 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9564 if test "$enable_rpath" != no; then
9566 for x in $rpathdirs; do
9567 if test "X$x" = "X$dir"; then
9572 if test -z "$haveit"; then
9573 rpathdirs="$rpathdirs $dir"
9576 for x in $ltrpathdirs; do
9577 if test "X$x" = "X$dir"; then
9582 if test -z "$haveit"; then
9583 ltrpathdirs="$ltrpathdirs $dir"
9588 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9591 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9594 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9601 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9608 if test "X$rpathdirs" != "X"; then
9609 if test -n "$hardcode_libdir_separator"; then
9611 for found_dir in $rpathdirs; do
9612 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9614 acl_save_libdir="$libdir"
9616 eval flag=\"$hardcode_libdir_flag_spec\"
9617 libdir="$acl_save_libdir"
9618 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9620 for found_dir in $rpathdirs; do
9621 acl_save_libdir="$libdir"
9623 eval flag=\"$hardcode_libdir_flag_spec\"
9624 libdir="$acl_save_libdir"
9625 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9629 if test "X$ltrpathdirs" != "X"; then
9630 for found_dir in $ltrpathdirs; do
9631 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9642 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9643 $as_echo_n "checking for ptrdiff_t... " >&6; }
9644 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9645 $as_echo_n "(cached) " >&6
9647 ac_cv_type_ptrdiff_t=no
9648 cat >conftest.$ac_ext <<_ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9658 if (sizeof (ptrdiff_t))
9664 rm -f conftest.$ac_objext
9665 if { (ac_try="$ac_compile"
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9671 $as_echo "$ac_try_echo") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9674 grep -v '^ *+' conftest.er1 >conftest.err
9676 cat conftest.err >&5
9677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest.$ac_objext; then
9682 cat >conftest.$ac_ext <<_ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 $ac_includes_default
9692 if (sizeof ((ptrdiff_t)))
9698 rm -f conftest.$ac_objext
9699 if { (ac_try="$ac_compile"
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9705 $as_echo "$ac_try_echo") >&5
9706 (eval "$ac_compile") 2>conftest.er1
9708 grep -v '^ *+' conftest.er1 >conftest.err
9710 cat conftest.err >&5
9711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest.$ac_objext; then
9718 $as_echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_cv_type_ptrdiff_t=yes
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 $as_echo "$as_me: failed program was:" >&5
9727 sed 's/^/| /' conftest.$ac_ext >&5
9732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9735 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9736 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
9740 cat >>confdefs.h <<\_ACEOF
9741 #define ptrdiff_t long
9757 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9758 stdlib.h string.h unistd.h sys/param.h
9760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9763 $as_echo_n "checking for $ac_header... " >&6; }
9764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765 $as_echo_n "(cached) " >&6
9767 ac_res=`eval 'as_val=${'$as_ac_Header'}
9768 $as_echo "$as_val"'`
9769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9770 $as_echo "$ac_res" >&6; }
9772 # Is the header compilable?
9773 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9774 $as_echo_n "checking $ac_header usability... " >&6; }
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9781 $ac_includes_default
9782 #include <$ac_header>
9784 rm -f conftest.$ac_objext
9785 if { (ac_try="$ac_compile"
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_compile") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest.$ac_objext; then
9802 ac_header_compiler=yes
9804 $as_echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 ac_header_compiler=no
9810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9812 $as_echo "$ac_header_compiler" >&6; }
9814 # Is the header present?
9815 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9816 $as_echo_n "checking $ac_header presence... " >&6; }
9817 cat >conftest.$ac_ext <<_ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823 #include <$ac_header>
9825 if { (ac_try="$ac_cpp conftest.$ac_ext"
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831 $as_echo "$ac_try_echo") >&5
9832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } >/dev/null && {
9839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9842 ac_header_preproc=yes
9844 $as_echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_header_preproc=no
9850 rm -f conftest.err conftest.$ac_ext
9851 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9852 $as_echo "$ac_header_preproc" >&6; }
9854 # So? What about this header?
9855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9858 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9861 ac_header_preproc=yes
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9865 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9867 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9869 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9871 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9875 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 $as_echo_n "checking for $ac_header... " >&6; }
9881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 $as_echo_n "(cached) " >&6
9884 eval "$as_ac_Header=\$ac_header_preproc"
9886 ac_res=`eval 'as_val=${'$as_ac_Header'}
9887 $as_echo "$as_val"'`
9888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9889 $as_echo "$ac_res" >&6; }
9892 as_val=`eval 'as_val=${'$as_ac_Header'}
9893 $as_echo "$as_val"'`
9894 if test "x$as_val" = x""yes; then
9895 cat >>confdefs.h <<_ACEOF
9896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9926 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9927 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9928 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9932 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9933 $as_echo_n "checking for $ac_func... " >&6; }
9934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9935 $as_echo_n "(cached) " >&6
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9945 #define $ac_func innocuous_$ac_func
9947 /* System header to define __stub macros and hopefully few prototypes,
9948 which can conflict with char $ac_func (); below.
9949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9950 <limits.h> exists even on freestanding compilers. */
9953 # include <limits.h>
9955 # include <assert.h>
9960 /* Override any GCC internal prototype to avoid an error.
9961 Use char because int might match the return type of a GCC
9962 builtin and then its argument prototype would still apply. */
9967 /* The GNU C library defines this for functions which it implements
9968 to always fail with ENOSYS. Some functions are actually named
9969 something starting with __ and the normal name is an alias. */
9970 #if defined __stub_$ac_func || defined __stub___$ac_func
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (ac_try="$ac_link"
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9989 $as_echo "$ac_try_echo") >&5
9990 (eval "$ac_link") 2>conftest.er1
9992 grep -v '^ *+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest$ac_exeext && {
10000 test "$cross_compiling" = yes ||
10001 $as_test_x conftest$ac_exeext
10003 eval "$as_ac_var=yes"
10005 $as_echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 eval "$as_ac_var=no"
10011 rm -rf conftest.dSYM
10012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10013 conftest$ac_exeext conftest.$ac_ext
10015 ac_res=`eval 'as_val=${'$as_ac_var'}
10016 $as_echo "$as_val"'`
10017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10018 $as_echo "$ac_res" >&6; }
10019 as_val=`eval 'as_val=${'$as_ac_var'}
10020 $as_echo "$as_val"'`
10021 if test "x$as_val" = x""yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10031 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10032 $as_echo_n "checking whether _snprintf is declared... " >&6; }
10033 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10034 $as_echo_n "(cached) " >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10048 char *p = (char *) _snprintf;
10055 rm -f conftest.$ac_objext
10056 if { (ac_try="$ac_compile"
10057 case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10062 $as_echo "$ac_try_echo") >&5
10063 (eval "$ac_compile") 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } && {
10070 test -z "$ac_c_werror_flag" ||
10071 test ! -s conftest.err
10072 } && test -s conftest.$ac_objext; then
10073 ac_cv_have_decl__snprintf=yes
10075 $as_echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10078 ac_cv_have_decl__snprintf=no
10081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10084 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
10085 if test $ac_cv_have_decl__snprintf = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define HAVE_DECL__SNPRINTF $gt_value
10097 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10098 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
10099 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10100 $as_echo_n "(cached) " >&6
10102 cat >conftest.$ac_ext <<_ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10114 char *p = (char *) _snwprintf;
10121 rm -f conftest.$ac_objext
10122 if { (ac_try="$ac_compile"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10128 $as_echo "$ac_try_echo") >&5
10129 (eval "$ac_compile") 2>conftest.er1
10131 grep -v '^ *+' conftest.er1 >conftest.err
10133 cat conftest.err >&5
10134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_c_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest.$ac_objext; then
10139 ac_cv_have_decl__snwprintf=yes
10141 $as_echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10144 ac_cv_have_decl__snwprintf=no
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10150 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
10151 if test $ac_cv_have_decl__snwprintf = yes; then
10157 cat >>confdefs.h <<_ACEOF
10158 #define HAVE_DECL__SNWPRINTF $gt_value
10164 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10165 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10166 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10167 $as_echo_n "(cached) " >&6
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10180 #ifndef feof_unlocked
10181 char *p = (char *) feof_unlocked;
10188 rm -f conftest.$ac_objext
10189 if { (ac_try="$ac_compile"
10190 case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10195 $as_echo "$ac_try_echo") >&5
10196 (eval "$ac_compile") 2>conftest.er1
10198 grep -v '^ *+' conftest.er1 >conftest.err
10200 cat conftest.err >&5
10201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } && {
10203 test -z "$ac_c_werror_flag" ||
10204 test ! -s conftest.err
10205 } && test -s conftest.$ac_objext; then
10206 ac_cv_have_decl_feof_unlocked=yes
10208 $as_echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 ac_cv_have_decl_feof_unlocked=no
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10216 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10217 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10218 if test $ac_cv_have_decl_feof_unlocked = yes; then
10224 cat >>confdefs.h <<_ACEOF
10225 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10230 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10231 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10232 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10233 $as_echo_n "(cached) " >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10246 #ifndef fgets_unlocked
10247 char *p = (char *) fgets_unlocked;
10254 rm -f conftest.$ac_objext
10255 if { (ac_try="$ac_compile"
10256 case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10261 $as_echo "$ac_try_echo") >&5
10262 (eval "$ac_compile") 2>conftest.er1
10264 grep -v '^ *+' conftest.er1 >conftest.err
10266 cat conftest.err >&5
10267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest.$ac_objext; then
10272 ac_cv_have_decl_fgets_unlocked=yes
10274 $as_echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_have_decl_fgets_unlocked=no
10280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10282 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10283 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10284 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10290 cat >>confdefs.h <<_ACEOF
10291 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10296 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10297 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10298 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10299 $as_echo_n "(cached) " >&6
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10312 #ifndef getc_unlocked
10313 char *p = (char *) getc_unlocked;
10320 rm -f conftest.$ac_objext
10321 if { (ac_try="$ac_compile"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327 $as_echo "$ac_try_echo") >&5
10328 (eval "$ac_compile") 2>conftest.er1
10330 grep -v '^ *+' conftest.er1 >conftest.err
10332 cat conftest.err >&5
10333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
10338 ac_cv_have_decl_getc_unlocked=yes
10340 $as_echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_cv_have_decl_getc_unlocked=no
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10348 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10349 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10350 if test $ac_cv_have_decl_getc_unlocked = yes; then
10356 cat >>confdefs.h <<_ACEOF
10357 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10362 case $gt_cv_func_printf_posix in
10363 *yes) HAVE_POSIX_PRINTF=1 ;;
10364 *) HAVE_POSIX_PRINTF=0 ;;
10367 if test "$ac_cv_func_asprintf" = yes; then
10373 if test "$ac_cv_func_snprintf" = yes; then
10379 if test "$ac_cv_func_wprintf" = yes; then
10391 am_save_CPPFLAGS="$CPPFLAGS"
10393 for element in $INCICONV; do
10395 for x in $CPPFLAGS; do
10397 acl_save_prefix="$prefix"
10398 prefix="$acl_final_prefix"
10399 acl_save_exec_prefix="$exec_prefix"
10400 exec_prefix="$acl_final_exec_prefix"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10405 if test "X$x" = "X$element"; then
10410 if test -z "$haveit"; then
10411 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10416 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10417 $as_echo_n "checking for iconv... " >&6; }
10418 if test "${am_cv_func_iconv+set}" = set; then
10419 $as_echo_n "(cached) " >&6
10422 am_cv_func_iconv="no, consider installing GNU libiconv"
10424 cat >conftest.$ac_ext <<_ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 #include <stdlib.h>
10435 iconv_t cd = iconv_open("","");
10436 iconv(cd,NULL,NULL,NULL,NULL);
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10449 $as_echo "$ac_try_echo") >&5
10450 (eval "$ac_link") 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest$ac_exeext && {
10460 test "$cross_compiling" = yes ||
10461 $as_test_x conftest$ac_exeext
10463 am_cv_func_iconv=yes
10465 $as_echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -rf conftest.dSYM
10472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10473 conftest$ac_exeext conftest.$ac_ext
10474 if test "$am_cv_func_iconv" != yes; then
10475 am_save_LIBS="$LIBS"
10476 LIBS="$LIBS $LIBICONV"
10477 cat >conftest.$ac_ext <<_ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 #include <stdlib.h>
10488 iconv_t cd = iconv_open("","");
10489 iconv(cd,NULL,NULL,NULL,NULL);
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10502 $as_echo "$ac_try_echo") >&5
10503 (eval "$ac_link") 2>conftest.er1
10505 grep -v '^ *+' conftest.er1 >conftest.err
10507 cat conftest.err >&5
10508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } && {
10510 test -z "$ac_c_werror_flag" ||
10511 test ! -s conftest.err
10512 } && test -s conftest$ac_exeext && {
10513 test "$cross_compiling" = yes ||
10514 $as_test_x conftest$ac_exeext
10516 am_cv_lib_iconv=yes
10517 am_cv_func_iconv=yes
10519 $as_echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10525 rm -rf conftest.dSYM
10526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10527 conftest$ac_exeext conftest.$ac_ext
10528 LIBS="$am_save_LIBS"
10532 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10533 $as_echo "$am_cv_func_iconv" >&6; }
10534 if test "$am_cv_func_iconv" = yes; then
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_ICONV 1
10541 if test "$am_cv_lib_iconv" = yes; then
10542 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10543 $as_echo_n "checking how to link with libiconv... " >&6; }
10544 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10545 $as_echo "$LIBICONV" >&6; }
10547 CPPFLAGS="$am_save_CPPFLAGS"
10554 if test "$am_cv_func_iconv" = yes; then
10555 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10556 $as_echo_n "checking for iconv declaration... " >&6; }
10557 if test "${am_cv_proto_iconv+set}" = set; then
10558 $as_echo_n "(cached) " >&6
10561 cat >conftest.$ac_ext <<_ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10568 #include <stdlib.h>
10574 #if defined(__STDC__) || defined(__cplusplus)
10575 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595 $as_echo "$ac_try_echo") >&5
10596 (eval "$ac_compile") 2>conftest.er1
10598 grep -v '^ *+' conftest.er1 >conftest.err
10600 cat conftest.err >&5
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest.$ac_objext; then
10606 am_cv_proto_iconv_arg1=""
10608 $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 am_cv_proto_iconv_arg1="const"
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10618 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10619 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10620 }$am_cv_proto_iconv" >&5
10622 }$am_cv_proto_iconv" >&6; }
10624 cat >>confdefs.h <<_ACEOF
10625 #define ICONV_CONST $am_cv_proto_iconv_arg1
10631 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10632 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10633 if test "${am_cv_langinfo_codeset+set}" = set; then
10634 $as_echo_n "(cached) " >&6
10636 cat >conftest.$ac_ext <<_ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 #include <langinfo.h>
10646 char* cs = nl_langinfo(CODESET);
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (ac_try="$ac_link"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659 (eval "$ac_link") 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && {
10666 test -z "$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10668 } && test -s conftest$ac_exeext && {
10669 test "$cross_compiling" = yes ||
10670 $as_test_x conftest$ac_exeext
10672 am_cv_langinfo_codeset=yes
10674 $as_echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10677 am_cv_langinfo_codeset=no
10680 rm -rf conftest.dSYM
10681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10682 conftest$ac_exeext conftest.$ac_ext
10685 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10686 $as_echo "$am_cv_langinfo_codeset" >&6; }
10687 if test $am_cv_langinfo_codeset = yes; then
10689 cat >>confdefs.h <<\_ACEOF
10690 #define HAVE_LANGINFO_CODESET 1
10695 if test $ac_cv_header_locale_h = yes; then
10697 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10698 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10699 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10700 $as_echo_n "(cached) " >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 #include <locale.h>
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725 (eval "$ac_link") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1 >conftest.err
10729 cat conftest.err >&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest$ac_exeext && {
10735 test "$cross_compiling" = yes ||
10736 $as_test_x conftest$ac_exeext
10738 am_cv_val_LC_MESSAGES=yes
10740 $as_echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 am_cv_val_LC_MESSAGES=no
10746 rm -rf conftest.dSYM
10747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10748 conftest$ac_exeext conftest.$ac_ext
10750 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10751 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10752 if test $am_cv_val_LC_MESSAGES = yes; then
10754 cat >>confdefs.h <<\_ACEOF
10755 #define HAVE_LC_MESSAGES 1
10762 for ac_prog in bison
10764 # Extract the first word of "$ac_prog", so it can be a program name with args.
10765 set dummy $ac_prog; ac_word=$2
10766 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10767 $as_echo_n "checking for $ac_word... " >&6; }
10768 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10769 $as_echo_n "(cached) " >&6
10771 if test -n "$INTLBISON"; then
10772 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10781 ac_cv_prog_INTLBISON="$ac_prog"
10782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 INTLBISON=$ac_cv_prog_INTLBISON
10792 if test -n "$INTLBISON"; then
10793 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10794 $as_echo "$INTLBISON" >&6; }
10796 { $as_echo "$as_me:$LINENO: result: no" >&5
10797 $as_echo "no" >&6; }
10801 test -n "$INTLBISON" && break
10804 if test -z "$INTLBISON"; then
10807 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10808 $as_echo_n "checking version of bison... " >&6; }
10809 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10810 case $ac_prog_version in
10811 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10812 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10813 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10814 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10816 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10817 $as_echo "$ac_prog_version" >&6; }
10819 if test $ac_verc_fail = yes; then
10838 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10839 $as_echo_n "checking whether NLS is requested... " >&6; }
10840 # Check whether --enable-nls was given.
10841 if test "${enable_nls+set}" = set; then
10842 enableval=$enable_nls; USE_NLS=$enableval
10847 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10848 $as_echo "$USE_NLS" >&6; }
10853 BUILD_INCLUDED_LIBINTL=no
10854 USE_INCLUDED_LIBINTL=no
10860 if test "$USE_NLS" = "yes"; then
10861 gt_use_preinstalled_gnugettext=no
10863 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10864 $as_echo_n "checking whether included gettext is requested... " >&6; }
10866 # Check whether --with-included-gettext was given.
10867 if test "${with_included_gettext+set}" = set; then
10868 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10870 nls_cv_force_use_gnu_gettext=no
10873 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10874 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10876 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10877 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10884 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10885 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10886 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10887 $as_echo_n "(cached) " >&6
10889 cat >conftest.$ac_ext <<_ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10895 #include <libintl.h>
10896 extern int _nl_msg_cat_cntr;
10897 extern int *_nl_domain_bindings;
10901 bindtextdomain ("", "");
10902 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10914 $as_echo "$ac_try_echo") >&5
10915 (eval "$ac_link") 2>conftest.er1
10917 grep -v '^ *+' conftest.er1 >conftest.err
10919 cat conftest.err >&5
10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && {
10922 test -z "$ac_c_werror_flag" ||
10923 test ! -s conftest.err
10924 } && test -s conftest$ac_exeext && {
10925 test "$cross_compiling" = yes ||
10926 $as_test_x conftest$ac_exeext
10928 gt_cv_func_gnugettext1_libc=yes
10930 $as_echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 gt_cv_func_gnugettext1_libc=no
10936 rm -rf conftest.dSYM
10937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10938 conftest$ac_exeext conftest.$ac_ext
10940 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10941 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
10943 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
10954 eval additional_includedir=\"$includedir\"
10955 eval additional_libdir=\"$libdir\"
10957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10961 # Check whether --with-libintl-prefix was given.
10962 if test "${with_libintl_prefix+set}" = set; then
10963 withval=$with_libintl_prefix;
10964 if test "X$withval" = "Xno"; then
10967 if test "X$withval" = "X"; then
10969 acl_save_prefix="$prefix"
10970 prefix="$acl_final_prefix"
10971 acl_save_exec_prefix="$exec_prefix"
10972 exec_prefix="$acl_final_exec_prefix"
10974 eval additional_includedir=\"$includedir\"
10975 eval additional_libdir=\"$libdir\"
10977 exec_prefix="$acl_save_exec_prefix"
10978 prefix="$acl_save_prefix"
10981 additional_includedir="$withval/include"
10982 additional_libdir="$withval/lib"
10993 names_already_handled=
10994 names_next_round='intl '
10995 while test -n "$names_next_round"; do
10996 names_this_round="$names_next_round"
10998 for name in $names_this_round; do
11000 for n in $names_already_handled; do
11001 if test "$n" = "$name"; then
11002 already_handled=yes
11006 if test -z "$already_handled"; then
11007 names_already_handled="$names_already_handled $name"
11008 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11009 eval value=\"\$HAVE_LIB$uppername\"
11010 if test -n "$value"; then
11011 if test "$value" = yes; then
11012 eval value=\"\$LIB$uppername\"
11013 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11014 eval value=\"\$LTLIB$uppername\"
11015 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11024 if test $use_additional = yes; then
11025 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11026 found_dir="$additional_libdir"
11027 found_so="$additional_libdir/lib$name.$shlibext"
11028 if test -f "$additional_libdir/lib$name.la"; then
11029 found_la="$additional_libdir/lib$name.la"
11032 if test -f "$additional_libdir/lib$name.$libext"; then
11033 found_dir="$additional_libdir"
11034 found_a="$additional_libdir/lib$name.$libext"
11035 if test -f "$additional_libdir/lib$name.la"; then
11036 found_la="$additional_libdir/lib$name.la"
11041 if test "X$found_dir" = "X"; then
11042 for x in $LDFLAGS $LTLIBINTL; do
11044 acl_save_prefix="$prefix"
11045 prefix="$acl_final_prefix"
11046 acl_save_exec_prefix="$exec_prefix"
11047 exec_prefix="$acl_final_exec_prefix"
11049 exec_prefix="$acl_save_exec_prefix"
11050 prefix="$acl_save_prefix"
11054 dir=`echo "X$x" | sed -e 's/^X-L//'`
11055 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11057 found_so="$dir/lib$name.$shlibext"
11058 if test -f "$dir/lib$name.la"; then
11059 found_la="$dir/lib$name.la"
11062 if test -f "$dir/lib$name.$libext"; then
11064 found_a="$dir/lib$name.$libext"
11065 if test -f "$dir/lib$name.la"; then
11066 found_la="$dir/lib$name.la"
11072 if test "X$found_dir" != "X"; then
11077 if test "X$found_dir" != "X"; then
11078 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11079 if test "X$found_so" != "X"; then
11080 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11081 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11084 for x in $ltrpathdirs; do
11085 if test "X$x" = "X$found_dir"; then
11090 if test -z "$haveit"; then
11091 ltrpathdirs="$ltrpathdirs $found_dir"
11093 if test "$hardcode_direct" = yes; then
11094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11096 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11097 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11099 for x in $rpathdirs; do
11100 if test "X$x" = "X$found_dir"; then
11105 if test -z "$haveit"; then
11106 rpathdirs="$rpathdirs $found_dir"
11110 for x in $LDFLAGS $LIBINTL; do
11112 acl_save_prefix="$prefix"
11113 prefix="$acl_final_prefix"
11114 acl_save_exec_prefix="$exec_prefix"
11115 exec_prefix="$acl_final_exec_prefix"
11117 exec_prefix="$acl_save_exec_prefix"
11118 prefix="$acl_save_prefix"
11120 if test "X$x" = "X-L$found_dir"; then
11125 if test -z "$haveit"; then
11126 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11128 if test "$hardcode_minus_L" != no; then
11129 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11131 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11137 if test "X$found_a" != "X"; then
11138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11140 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11143 additional_includedir=
11144 case "$found_dir" in
11146 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11147 additional_includedir="$basedir/include"
11150 if test "X$additional_includedir" != "X"; then
11151 if test "X$additional_includedir" != "X/usr/include"; then
11153 if test "X$additional_includedir" = "X/usr/local/include"; then
11154 if test -n "$GCC"; then
11156 linux*) haveit=yes;;
11160 if test -z "$haveit"; then
11161 for x in $CPPFLAGS $INCINTL; do
11163 acl_save_prefix="$prefix"
11164 prefix="$acl_final_prefix"
11165 acl_save_exec_prefix="$exec_prefix"
11166 exec_prefix="$acl_final_exec_prefix"
11168 exec_prefix="$acl_save_exec_prefix"
11169 prefix="$acl_save_prefix"
11171 if test "X$x" = "X-I$additional_includedir"; then
11176 if test -z "$haveit"; then
11177 if test -d "$additional_includedir"; then
11178 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11184 if test -n "$found_la"; then
11185 save_libdir="$libdir"
11186 case "$found_la" in
11187 */* | *\\*) . "$found_la" ;;
11188 *) . "./$found_la" ;;
11190 libdir="$save_libdir"
11191 for dep in $dependency_libs; do
11194 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11195 if test "X$additional_libdir" != "X/usr/lib"; then
11197 if test "X$additional_libdir" = "X/usr/local/lib"; then
11198 if test -n "$GCC"; then
11200 linux*) haveit=yes;;
11204 if test -z "$haveit"; then
11206 for x in $LDFLAGS $LIBINTL; do
11208 acl_save_prefix="$prefix"
11209 prefix="$acl_final_prefix"
11210 acl_save_exec_prefix="$exec_prefix"
11211 exec_prefix="$acl_final_exec_prefix"
11213 exec_prefix="$acl_save_exec_prefix"
11214 prefix="$acl_save_prefix"
11216 if test "X$x" = "X-L$additional_libdir"; then
11221 if test -z "$haveit"; then
11222 if test -d "$additional_libdir"; then
11223 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11227 for x in $LDFLAGS $LTLIBINTL; do
11229 acl_save_prefix="$prefix"
11230 prefix="$acl_final_prefix"
11231 acl_save_exec_prefix="$exec_prefix"
11232 exec_prefix="$acl_final_exec_prefix"
11234 exec_prefix="$acl_save_exec_prefix"
11235 prefix="$acl_save_prefix"
11237 if test "X$x" = "X-L$additional_libdir"; then
11242 if test -z "$haveit"; then
11243 if test -d "$additional_libdir"; then
11244 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11251 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11252 if test "$enable_rpath" != no; then
11254 for x in $rpathdirs; do
11255 if test "X$x" = "X$dir"; then
11260 if test -z "$haveit"; then
11261 rpathdirs="$rpathdirs $dir"
11264 for x in $ltrpathdirs; do
11265 if test "X$x" = "X$dir"; then
11270 if test -z "$haveit"; then
11271 ltrpathdirs="$ltrpathdirs $dir"
11276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11282 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11283 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11289 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11296 if test "X$rpathdirs" != "X"; then
11297 if test -n "$hardcode_libdir_separator"; then
11299 for found_dir in $rpathdirs; do
11300 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11302 acl_save_libdir="$libdir"
11304 eval flag=\"$hardcode_libdir_flag_spec\"
11305 libdir="$acl_save_libdir"
11306 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11308 for found_dir in $rpathdirs; do
11309 acl_save_libdir="$libdir"
11310 libdir="$found_dir"
11311 eval flag=\"$hardcode_libdir_flag_spec\"
11312 libdir="$acl_save_libdir"
11313 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11317 if test "X$ltrpathdirs" != "X"; then
11318 for found_dir in $ltrpathdirs; do
11319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11323 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11324 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11325 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11326 $as_echo_n "(cached) " >&6
11328 gt_save_CPPFLAGS="$CPPFLAGS"
11329 CPPFLAGS="$CPPFLAGS $INCINTL"
11330 gt_save_LIBS="$LIBS"
11331 LIBS="$LIBS $LIBINTL"
11332 cat >conftest.$ac_ext <<_ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 #include <libintl.h>
11339 extern int _nl_msg_cat_cntr;
11344 const char *_nl_expand_alias ();
11348 bindtextdomain ("", "");
11349 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11354 rm -f conftest.$ac_objext conftest$ac_exeext
11355 if { (ac_try="$ac_link"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11361 $as_echo "$ac_try_echo") >&5
11362 (eval "$ac_link") 2>conftest.er1
11364 grep -v '^ *+' conftest.er1 >conftest.err
11366 cat conftest.err >&5
11367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && {
11369 test -z "$ac_c_werror_flag" ||
11370 test ! -s conftest.err
11371 } && test -s conftest$ac_exeext && {
11372 test "$cross_compiling" = yes ||
11373 $as_test_x conftest$ac_exeext
11375 gt_cv_func_gnugettext1_libintl=yes
11377 $as_echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 gt_cv_func_gnugettext1_libintl=no
11383 rm -rf conftest.dSYM
11384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11385 conftest$ac_exeext conftest.$ac_ext
11386 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11387 LIBS="$LIBS $LIBICONV"
11388 cat >conftest.$ac_ext <<_ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 #include <libintl.h>
11395 extern int _nl_msg_cat_cntr;
11400 const char *_nl_expand_alias ();
11404 bindtextdomain ("", "");
11405 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11410 rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_link") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1 >conftest.err
11422 cat conftest.err >&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest$ac_exeext && {
11428 test "$cross_compiling" = yes ||
11429 $as_test_x conftest$ac_exeext
11431 LIBINTL="$LIBINTL $LIBICONV"
11432 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11433 gt_cv_func_gnugettext1_libintl=yes
11436 $as_echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11442 rm -rf conftest.dSYM
11443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11444 conftest$ac_exeext conftest.$ac_ext
11446 CPPFLAGS="$gt_save_CPPFLAGS"
11447 LIBS="$gt_save_LIBS"
11449 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11450 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
11453 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11454 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11455 && test "$PACKAGE" != gettext-runtime \
11456 && test "$PACKAGE" != gettext-tools; }; then
11457 gt_use_preinstalled_gnugettext=yes
11465 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11466 nls_cv_use_gnu_gettext=yes
11470 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11471 BUILD_INCLUDED_LIBINTL=yes
11472 USE_INCLUDED_LIBINTL=yes
11473 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11474 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11475 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11478 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11479 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11484 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11485 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11487 cat >>confdefs.h <<\_ACEOF
11488 #define ENABLE_NLS 1
11496 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11497 $as_echo_n "checking whether to use NLS... " >&6; }
11498 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11499 $as_echo "$USE_NLS" >&6; }
11500 if test "$USE_NLS" = "yes"; then
11501 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11502 $as_echo_n "checking where the gettext function comes from... " >&6; }
11503 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11504 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11505 gt_source="external libintl"
11510 gt_source="included intl directory"
11512 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11513 $as_echo "$gt_source" >&6; }
11516 if test "$USE_NLS" = "yes"; then
11518 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11519 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11520 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11521 $as_echo_n "checking how to link with libintl... " >&6; }
11522 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11523 $as_echo "$LIBINTL" >&6; }
11525 for element in $INCINTL; do
11527 for x in $CPPFLAGS; do
11529 acl_save_prefix="$prefix"
11530 prefix="$acl_final_prefix"
11531 acl_save_exec_prefix="$exec_prefix"
11532 exec_prefix="$acl_final_exec_prefix"
11534 exec_prefix="$acl_save_exec_prefix"
11535 prefix="$acl_save_prefix"
11537 if test "X$x" = "X$element"; then
11542 if test -z "$haveit"; then
11543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11550 cat >>confdefs.h <<\_ACEOF
11551 #define HAVE_GETTEXT 1
11555 cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_DCGETTEXT 1
11565 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11566 BUILD_INCLUDED_LIBINTL=yes
11573 nls_cv_header_intl=
11574 nls_cv_header_libgt=
11585 if test "$USE_INCLUDED_LIBINTL" = yes; then
11586 INTLOBJS="\$(GETTOBJS)"
11590 INTL_LIBTOOL_SUFFIX_PREFIX=
11594 INTLLIBS="$LIBINTL"
11602 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11603 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11605 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11606 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11607 $as_echo_n "(cached) " >&6
11609 cat >conftest.make <<\_ACEOF
11612 @echo '@@@%%%=$(MAKE)=@@@%%%'
11614 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11615 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11616 *@@@%%%=?*=@@@%%%*)
11617 eval ac_cv_prog_make_${ac_make}_set=yes;;
11619 eval ac_cv_prog_make_${ac_make}_set=no;;
11621 rm -f conftest.make
11623 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11624 { $as_echo "$as_me:$LINENO: result: yes" >&5
11625 $as_echo "yes" >&6; }
11628 { $as_echo "$as_me:$LINENO: result: no" >&5
11629 $as_echo "no" >&6; }
11630 SET_MAKE="MAKE=${MAKE-make}"
11633 { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
11634 $as_echo_n "checking for GNU make... " >&6; }
11635 if test "${_cv_gnu_make_command+set}" = set; then
11636 $as_echo_n "(cached) " >&6
11638 _cv_gnu_make_command='' ;
11639 for a in "$MAKE" make gmake gnumake ; do
11640 if test -z "$a" ; then continue ; fi ;
11641 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11642 _cv_gnu_make_command=$a ;
11648 { $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
11649 $as_echo "$_cv_gnu_make_command" >&6; } ;
11650 if test "x$_cv_gnu_make_command" != "x" ; then
11656 { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5
11657 $as_echo "\"Not found\"" >&6; };
11662 # Extract the first word of "ln", so it can be a program name with args.
11663 set dummy ln; ac_word=$2
11664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if test "${ac_cv_path_LN+set}" = set; then
11667 $as_echo_n "(cached) " >&6
11671 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11694 if test -n "$LN"; then
11695 { $as_echo "$as_me:$LINENO: result: $LN" >&5
11696 $as_echo "$LN" >&6; }
11698 { $as_echo "$as_me:$LINENO: result: no" >&5
11699 $as_echo "no" >&6; }
11703 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11704 $as_echo_n "checking whether ln -s works... " >&6; }
11706 if test "$LN_S" = "ln -s"; then
11707 { $as_echo "$as_me:$LINENO: result: yes" >&5
11708 $as_echo "yes" >&6; }
11710 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11711 $as_echo "no, using $LN_S" >&6; }
11714 # Extract the first word of "mv", so it can be a program name with args.
11715 set dummy mv; ac_word=$2
11716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11717 $as_echo_n "checking for $ac_word... " >&6; }
11718 if test "${ac_cv_path_MV+set}" = set; then
11719 $as_echo_n "(cached) " >&6
11723 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11746 if test -n "$MV"; then
11747 { $as_echo "$as_me:$LINENO: result: $MV" >&5
11748 $as_echo "$MV" >&6; }
11750 { $as_echo "$as_me:$LINENO: result: no" >&5
11751 $as_echo "no" >&6; }
11755 # Extract the first word of "cp", so it can be a program name with args.
11756 set dummy cp; ac_word=$2
11757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if test "${ac_cv_path_CP+set}" = set; then
11760 $as_echo_n "(cached) " >&6
11764 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768 for as_dir in $PATH
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
11773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11774 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11787 if test -n "$CP"; then
11788 { $as_echo "$as_me:$LINENO: result: $CP" >&5
11789 $as_echo "$CP" >&6; }
11791 { $as_echo "$as_me:$LINENO: result: no" >&5
11792 $as_echo "no" >&6; }
11796 # Extract the first word of "rm", so it can be a program name with args.
11797 set dummy rm; ac_word=$2
11798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if test "${ac_cv_path_RM+set}" = set; then
11801 $as_echo_n "(cached) " >&6
11805 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809 for as_dir in $PATH
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
11814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11815 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11828 if test -n "$RM"; then
11829 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11830 $as_echo "$RM" >&6; }
11832 { $as_echo "$as_me:$LINENO: result: no" >&5
11833 $as_echo "no" >&6; }
11837 # Extract the first word of "chmod", so it can be a program name with args.
11838 set dummy chmod; ac_word=$2
11839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if test "${ac_cv_path_CHMOD+set}" = set; then
11842 $as_echo_n "(cached) " >&6
11846 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11856 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11864 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11868 CHMOD=$ac_cv_path_CHMOD
11869 if test -n "$CHMOD"; then
11870 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11871 $as_echo "$CHMOD" >&6; }
11873 { $as_echo "$as_me:$LINENO: result: no" >&5
11874 $as_echo "no" >&6; }
11878 for ac_prog in gawk mawk nawk awk
11880 # Extract the first word of "$ac_prog", so it can be a program name with args.
11881 set dummy $ac_prog; ac_word=$2
11882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if test "${ac_cv_prog_AWK+set}" = set; then
11885 $as_echo_n "(cached) " >&6
11887 if test -n "$AWK"; then
11888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11897 ac_cv_prog_AWK="$ac_prog"
11898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 AWK=$ac_cv_prog_AWK
11908 if test -n "$AWK"; then
11909 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11910 $as_echo "$AWK" >&6; }
11912 { $as_echo "$as_me:$LINENO: result: no" >&5
11913 $as_echo "no" >&6; }
11917 test -n "$AWK" && break
11920 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
11921 $as_echo_n "checking for egrep... " >&6; }
11922 if test "${ac_cv_path_EGREP+set}" = set; then
11923 $as_echo_n "(cached) " >&6
11925 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11926 then ac_cv_path_EGREP="$GREP -E"
11928 if test -z "$EGREP"; then
11929 ac_path_EGREP_found=false
11930 # Loop through the user's path and test for each of PROGNAME-LIST
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11935 test -z "$as_dir" && as_dir=.
11936 for ac_prog in egrep; do
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11939 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11940 # Check for GNU ac_path_EGREP and select it if it is found.
11941 # Check for GNU $ac_path_EGREP
11942 case `"$ac_path_EGREP" --version 2>&1` in
11944 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11947 $as_echo_n 0123456789 >"conftest.in"
11950 cat "conftest.in" "conftest.in" >"conftest.tmp"
11951 mv "conftest.tmp" "conftest.in"
11952 cp "conftest.in" "conftest.nl"
11953 $as_echo 'EGREP' >> "conftest.nl"
11954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11956 ac_count=`expr $ac_count + 1`
11957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11958 # Best one so far, save it but keep looking for a better one
11959 ac_cv_path_EGREP="$ac_path_EGREP"
11960 ac_path_EGREP_max=$ac_count
11962 # 10*(2^10) chars as input seems more than enough
11963 test $ac_count -gt 10 && break
11965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11968 $ac_path_EGREP_found && break 3
11973 if test -z "$ac_cv_path_EGREP"; then
11974 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11975 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11976 { (exit 1); exit 1; }; }
11979 ac_cv_path_EGREP=$EGREP
11984 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11985 $as_echo "$ac_cv_path_EGREP" >&6; }
11986 EGREP="$ac_cv_path_EGREP"
11989 # Extract the first word of "sed", so it can be a program name with args.
11990 set dummy sed; ac_word=$2
11991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_path_SED+set}" = set; then
11994 $as_echo_n "(cached) " >&6
11998 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12020 SED=$ac_cv_path_SED
12021 if test -n "$SED"; then
12022 { $as_echo "$as_me:$LINENO: result: $SED" >&5
12023 $as_echo "$SED" >&6; }
12025 { $as_echo "$as_me:$LINENO: result: no" >&5
12026 $as_echo "no" >&6; }
12030 # Extract the first word of "perl", so it can be a program name with args.
12031 set dummy perl; ac_word=$2
12032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12033 $as_echo_n "checking for $ac_word... " >&6; }
12034 if test "${ac_cv_path_PERL+set}" = set; then
12035 $as_echo_n "(cached) " >&6
12039 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12061 PERL=$ac_cv_path_PERL
12062 if test -n "$PERL"; then
12063 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12064 $as_echo "$PERL" >&6; }
12066 { $as_echo "$as_me:$LINENO: result: no" >&5
12067 $as_echo "no" >&6; }
12071 # Extract the first word of "ldconfig", so it can be a program name with args.
12072 set dummy ldconfig; ac_word=$2
12073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if test "${ac_cv_path_LDCONFIG+set}" = set; then
12076 $as_echo_n "(cached) " >&6
12080 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $PATH
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12090 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12102 LDCONFIG=$ac_cv_path_LDCONFIG
12103 if test -n "$LDCONFIG"; then
12104 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12105 $as_echo "$LDCONFIG" >&6; }
12107 { $as_echo "$as_me:$LINENO: result: no" >&5
12108 $as_echo "no" >&6; }
12112 if test -n "$ac_tool_prefix"; then
12113 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12114 set dummy ${ac_tool_prefix}ar; ac_word=$2
12115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if test "${ac_cv_prog_AR+set}" = set; then
12118 $as_echo_n "(cached) " >&6
12120 if test -n "$AR"; then
12121 ac_cv_prog_AR="$AR" # Let the user override the test.
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
12129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12130 ac_cv_prog_AR="${ac_tool_prefix}ar"
12131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 if test -n "$AR"; then
12142 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12143 $as_echo "$AR" >&6; }
12145 { $as_echo "$as_me:$LINENO: result: no" >&5
12146 $as_echo "no" >&6; }
12151 if test -z "$ac_cv_prog_AR"; then
12153 # Extract the first word of "ar", so it can be a program name with args.
12154 set dummy ar; ac_word=$2
12155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12158 $as_echo_n "(cached) " >&6
12160 if test -n "$ac_ct_AR"; then
12161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12170 ac_cv_prog_ac_ct_AR="ar"
12171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12181 if test -n "$ac_ct_AR"; then
12182 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12183 $as_echo "$ac_ct_AR" >&6; }
12185 { $as_echo "$as_me:$LINENO: result: no" >&5
12186 $as_echo "no" >&6; }
12189 if test "x$ac_ct_AR" = x; then
12192 case $cross_compiling:$ac_tool_warned in
12194 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12196 ac_tool_warned=yes ;;
12201 AR="$ac_cv_prog_AR"
12204 if test -n "$ac_tool_prefix"; then
12205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if test "${ac_cv_prog_RANLIB+set}" = set; then
12210 $as_echo_n "(cached) " >&6
12212 if test -n "$RANLIB"; then
12213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12232 RANLIB=$ac_cv_prog_RANLIB
12233 if test -n "$RANLIB"; then
12234 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12235 $as_echo "$RANLIB" >&6; }
12237 { $as_echo "$as_me:$LINENO: result: no" >&5
12238 $as_echo "no" >&6; }
12243 if test -z "$ac_cv_prog_RANLIB"; then
12244 ac_ct_RANLIB=$RANLIB
12245 # Extract the first word of "ranlib", so it can be a program name with args.
12246 set dummy ranlib; ac_word=$2
12247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12250 $as_echo_n "(cached) " >&6
12252 if test -n "$ac_ct_RANLIB"; then
12253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12262 ac_cv_prog_ac_ct_RANLIB="ranlib"
12263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12273 if test -n "$ac_ct_RANLIB"; then
12274 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12275 $as_echo "$ac_ct_RANLIB" >&6; }
12277 { $as_echo "$as_me:$LINENO: result: no" >&5
12278 $as_echo "no" >&6; }
12281 if test "x$ac_ct_RANLIB" = x; then
12284 case $cross_compiling:$ac_tool_warned in
12286 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12288 ac_tool_warned=yes ;;
12290 RANLIB=$ac_ct_RANLIB
12293 RANLIB="$ac_cv_prog_RANLIB"
12296 if test -n "$ac_tool_prefix"; then
12297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12298 set dummy ${ac_tool_prefix}strip; ac_word=$2
12299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12300 $as_echo_n "checking for $ac_word... " >&6; }
12301 if test "${ac_cv_prog_STRIP+set}" = set; then
12302 $as_echo_n "(cached) " >&6
12304 if test -n "$STRIP"; then
12305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12324 STRIP=$ac_cv_prog_STRIP
12325 if test -n "$STRIP"; then
12326 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12327 $as_echo "$STRIP" >&6; }
12329 { $as_echo "$as_me:$LINENO: result: no" >&5
12330 $as_echo "no" >&6; }
12335 if test -z "$ac_cv_prog_STRIP"; then
12337 # Extract the first word of "strip", so it can be a program name with args.
12338 set dummy strip; ac_word=$2
12339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12342 $as_echo_n "(cached) " >&6
12344 if test -n "$ac_ct_STRIP"; then
12345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_ac_ct_STRIP="strip"
12355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12365 if test -n "$ac_ct_STRIP"; then
12366 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12367 $as_echo "$ac_ct_STRIP" >&6; }
12369 { $as_echo "$as_me:$LINENO: result: no" >&5
12370 $as_echo "no" >&6; }
12373 if test "x$ac_ct_STRIP" = x; then
12376 case $cross_compiling:$ac_tool_warned in
12378 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12380 ac_tool_warned=yes ;;
12385 STRIP="$ac_cv_prog_STRIP"
12388 # Extract the first word of "makeinfo", so it can be a program name with args.
12389 set dummy makeinfo; ac_word=$2
12390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12393 $as_echo_n "(cached) " >&6
12395 if test -n "$MAKEINFO"; then
12396 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_MAKEINFO="makeinfo"
12406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 MAKEINFO=$ac_cv_prog_MAKEINFO
12416 if test -n "$MAKEINFO"; then
12417 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12418 $as_echo "$MAKEINFO" >&6; }
12420 { $as_echo "$as_me:$LINENO: result: no" >&5
12421 $as_echo "no" >&6; }
12425 if test "_$MAKEINFO" = "_"; then
12426 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12428 case "$MAKEINFO" in
12430 { $as_echo "$as_me:$LINENO: WARNING:
12431 *** Makeinfo is missing. Info documentation will not be built." >&5
12432 $as_echo "$as_me: WARNING:
12433 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12440 # Find a good install program. We prefer a C program (faster),
12441 # so one script is as good as another. But avoid the broken or
12442 # incompatible versions:
12443 # SysV /etc/install, /usr/sbin/install
12444 # SunOS /usr/etc/install
12445 # IRIX /sbin/install
12447 # AmigaOS /C/install, which installs bootblocks on floppy discs
12448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12451 # OS/2's system install, which has a completely different semantic
12452 # ./install, which can be erroneously created by make from ./install.sh.
12453 # Reject install programs that cannot install multiple files.
12454 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12455 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12456 if test -z "$INSTALL"; then
12457 if test "${ac_cv_path_install+set}" = set; then
12458 $as_echo_n "(cached) " >&6
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12464 test -z "$as_dir" && as_dir=.
12465 # Account for people who put trailing slashes in PATH elements.
12467 ./ | .// | /cC/* | \
12468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12469 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12472 # OSF1 and SCO ODT 3.0 have their own names for install.
12473 # Don't use installbsd from OSF since it installs stuff as root
12475 for ac_prog in ginstall scoinst install; do
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12478 if test $ac_prog = install &&
12479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12480 # AIX install. It has an incompatible calling convention.
12482 elif test $ac_prog = install &&
12483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12484 # program-specific install script used by HP pwplus--don't use.
12487 rm -rf conftest.one conftest.two conftest.dir
12488 echo one > conftest.one
12489 echo two > conftest.two
12491 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12492 test -s conftest.one && test -s conftest.two &&
12493 test -s conftest.dir/conftest.one &&
12494 test -s conftest.dir/conftest.two
12496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12509 rm -rf conftest.one conftest.two conftest.dir
12512 if test "${ac_cv_path_install+set}" = set; then
12513 INSTALL=$ac_cv_path_install
12515 # As a last resort, use the slow shell script. Don't cache a
12516 # value for INSTALL within a source directory, because that will
12517 # break other packages using the cache if that directory is
12518 # removed, or if the value is a relative name.
12519 INSTALL=$ac_install_sh
12522 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12523 $as_echo "$INSTALL" >&6; }
12525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12526 # It thinks the first close brace ends the variable substitution.
12527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12533 # See if we need a separate native compiler.
12534 if test $cross_compiling = no; then
12538 for ac_prog in gcc cc
12540 # Extract the first word of "$ac_prog", so it can be a program name with args.
12541 set dummy $ac_prog; ac_word=$2
12542 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12545 $as_echo_n "(cached) " >&6
12547 if test -n "$BUILD_CC"; then
12548 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
12556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12557 ac_cv_prog_BUILD_CC="$ac_prog"
12558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 BUILD_CC=$ac_cv_prog_BUILD_CC
12568 if test -n "$BUILD_CC"; then
12569 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12570 $as_echo "$BUILD_CC" >&6; }
12572 { $as_echo "$as_me:$LINENO: result: no" >&5
12573 $as_echo "no" >&6; }
12577 test -n "$BUILD_CC" && break
12619 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12624 $as_echo_n "checking for $ac_header... " >&6; }
12625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12626 $as_echo_n "(cached) " >&6
12628 ac_res=`eval 'as_val=${'$as_ac_Header'}
12629 $as_echo "$as_val"'`
12630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12631 $as_echo "$ac_res" >&6; }
12633 # Is the header compilable?
12634 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12635 $as_echo_n "checking $ac_header usability... " >&6; }
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 $ac_includes_default
12643 #include <$ac_header>
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652 $as_echo "$ac_try_echo") >&5
12653 (eval "$ac_compile") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
12663 ac_header_compiler=yes
12665 $as_echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_header_compiler=no
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12673 $as_echo "$ac_header_compiler" >&6; }
12675 # Is the header present?
12676 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12677 $as_echo_n "checking $ac_header presence... " >&6; }
12678 cat >conftest.$ac_ext <<_ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 #include <$ac_header>
12686 if { (ac_try="$ac_cpp conftest.$ac_ext"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12692 $as_echo "$ac_try_echo") >&5
12693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } >/dev/null && {
12700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12701 test ! -s conftest.err
12703 ac_header_preproc=yes
12705 $as_echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ac_header_preproc=no
12711 rm -f conftest.err conftest.$ac_ext
12712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12713 $as_echo "$ac_header_preproc" >&6; }
12715 # So? What about this header?
12716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12719 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12721 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12722 ac_header_preproc=yes
12725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12726 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12728 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12730 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12732 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12736 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12741 $as_echo_n "checking for $ac_header... " >&6; }
12742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12743 $as_echo_n "(cached) " >&6
12745 eval "$as_ac_Header=\$ac_header_preproc"
12747 ac_res=`eval 'as_val=${'$as_ac_Header'}
12748 $as_echo "$as_val"'`
12749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12750 $as_echo "$ac_res" >&6; }
12753 as_val=`eval 'as_val=${'$as_ac_Header'}
12754 $as_echo "$as_val"'`
12755 if test "x$as_val" = x""yes; then
12756 cat >>confdefs.h <<_ACEOF
12757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12766 for ac_header in sys/disk.h sys/mount.h
12768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12770 $as_echo_n "checking for $ac_header... " >&6; }
12771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12772 $as_echo_n "(cached) " >&6
12774 cat >conftest.$ac_ext <<_ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12781 #if HAVE_SYS_QUEUE_H
12782 #include <sys/queue.h>
12786 #include <$ac_header>
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12795 $as_echo "$ac_try_echo") >&5
12796 (eval "$ac_compile") 2>conftest.er1
12798 grep -v '^ *+' conftest.er1 >conftest.err
12800 cat conftest.err >&5
12801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } && {
12803 test -z "$ac_c_werror_flag" ||
12804 test ! -s conftest.err
12805 } && test -s conftest.$ac_objext; then
12806 eval "$as_ac_Header=yes"
12808 $as_echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12811 eval "$as_ac_Header=no"
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 ac_res=`eval 'as_val=${'$as_ac_Header'}
12817 $as_echo "$as_val"'`
12818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12819 $as_echo "$ac_res" >&6; }
12820 as_val=`eval 'as_val=${'$as_ac_Header'}
12821 $as_echo "$as_val"'`
12822 if test "x$as_val" = x""yes; then
12823 cat >>confdefs.h <<_ACEOF
12824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12832 for ac_header in net/if.h
12834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12836 $as_echo_n "checking for $ac_header... " >&6; }
12837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12838 $as_echo_n "(cached) " >&6
12840 cat >conftest.$ac_ext <<_ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12847 #if HAVE_SYS_TYPES_H
12848 #include <sys/types.h>
12850 #if HAVE_SYS_SOCKET
12851 #include <sys/socket.h>
12855 #include <$ac_header>
12857 rm -f conftest.$ac_objext
12858 if { (ac_try="$ac_compile"
12859 case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12864 $as_echo "$ac_try_echo") >&5
12865 (eval "$ac_compile") 2>conftest.er1
12867 grep -v '^ *+' conftest.er1 >conftest.err
12869 cat conftest.err >&5
12870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && {
12872 test -z "$ac_c_werror_flag" ||
12873 test ! -s conftest.err
12874 } && test -s conftest.$ac_objext; then
12875 eval "$as_ac_Header=yes"
12877 $as_echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12880 eval "$as_ac_Header=no"
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 ac_res=`eval 'as_val=${'$as_ac_Header'}
12886 $as_echo "$as_val"'`
12887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12888 $as_echo "$ac_res" >&6; }
12889 as_val=`eval 'as_val=${'$as_ac_Header'}
12890 $as_echo "$as_val"'`
12891 if test "x$as_val" = x""yes; then
12892 cat >>confdefs.h <<_ACEOF
12893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12901 for ac_func in vprintf
12903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12904 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12905 $as_echo_n "checking for $ac_func... " >&6; }
12906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12907 $as_echo_n "(cached) " >&6
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12917 #define $ac_func innocuous_$ac_func
12919 /* System header to define __stub macros and hopefully few prototypes,
12920 which can conflict with char $ac_func (); below.
12921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12922 <limits.h> exists even on freestanding compilers. */
12925 # include <limits.h>
12927 # include <assert.h>
12932 /* Override any GCC internal prototype to avoid an error.
12933 Use char because int might match the return type of a GCC
12934 builtin and then its argument prototype would still apply. */
12939 /* The GNU C library defines this for functions which it implements
12940 to always fail with ENOSYS. Some functions are actually named
12941 something starting with __ and the normal name is an alias. */
12942 #if defined __stub_$ac_func || defined __stub___$ac_func
12949 return $ac_func ();
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (ac_try="$ac_link"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962 (eval "$ac_link") 2>conftest.er1
12964 grep -v '^ *+' conftest.er1 >conftest.err
12966 cat conftest.err >&5
12967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
12971 } && test -s conftest$ac_exeext && {
12972 test "$cross_compiling" = yes ||
12973 $as_test_x conftest$ac_exeext
12975 eval "$as_ac_var=yes"
12977 $as_echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12980 eval "$as_ac_var=no"
12983 rm -rf conftest.dSYM
12984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12985 conftest$ac_exeext conftest.$ac_ext
12987 ac_res=`eval 'as_val=${'$as_ac_var'}
12988 $as_echo "$as_val"'`
12989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12990 $as_echo "$ac_res" >&6; }
12991 as_val=`eval 'as_val=${'$as_ac_var'}
12992 $as_echo "$as_val"'`
12993 if test "x$as_val" = x""yes; then
12994 cat >>confdefs.h <<_ACEOF
12995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12998 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12999 $as_echo_n "checking for _doprnt... " >&6; }
13000 if test "${ac_cv_func__doprnt+set}" = set; then
13001 $as_echo_n "(cached) " >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011 #define _doprnt innocuous__doprnt
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char _doprnt (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13019 # include <limits.h>
13021 # include <assert.h>
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13033 /* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
13036 #if defined __stub__doprnt || defined __stub____doprnt
13048 rm -f conftest.$ac_objext conftest$ac_exeext
13049 if { (ac_try="$ac_link"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055 $as_echo "$ac_try_echo") >&5
13056 (eval "$ac_link") 2>conftest.er1
13058 grep -v '^ *+' conftest.er1 >conftest.err
13060 cat conftest.err >&5
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } && {
13063 test -z "$ac_c_werror_flag" ||
13064 test ! -s conftest.err
13065 } && test -s conftest$ac_exeext && {
13066 test "$cross_compiling" = yes ||
13067 $as_test_x conftest$ac_exeext
13069 ac_cv_func__doprnt=yes
13071 $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_cv_func__doprnt=no
13077 rm -rf conftest.dSYM
13078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13079 conftest$ac_exeext conftest.$ac_ext
13081 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13082 $as_echo "$ac_cv_func__doprnt" >&6; }
13083 if test "x$ac_cv_func__doprnt" = x""yes; then
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_DOPRNT 1
13095 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13096 $as_echo_n "checking for struct dirent.d_reclen... " >&6; }
13097 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
13098 $as_echo_n "(cached) " >&6
13100 cat >conftest.$ac_ext <<_ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 #include <dirent.h>
13111 static struct dirent ac_aggr;
13112 if (ac_aggr.d_reclen)
13118 rm -f conftest.$ac_objext
13119 if { (ac_try="$ac_compile"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13125 $as_echo "$ac_try_echo") >&5
13126 (eval "$ac_compile") 2>conftest.er1
13128 grep -v '^ *+' conftest.er1 >conftest.err
13130 cat conftest.err >&5
13131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } && {
13133 test -z "$ac_c_werror_flag" ||
13134 test ! -s conftest.err
13135 } && test -s conftest.$ac_objext; then
13136 ac_cv_member_struct_dirent_d_reclen=yes
13138 $as_echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <dirent.h>
13152 static struct dirent ac_aggr;
13153 if (sizeof ac_aggr.d_reclen)
13159 rm -f conftest.$ac_objext
13160 if { (ac_try="$ac_compile"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13166 $as_echo "$ac_try_echo") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest.$ac_objext; then
13177 ac_cv_member_struct_dirent_d_reclen=yes
13179 $as_echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 ac_cv_member_struct_dirent_d_reclen=no
13185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13191 $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13192 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
13193 cat >>confdefs.h <<\_ACEOF
13194 #define HAVE_RECLEN_DIRENT 1
13199 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13200 $as_echo_n "checking for ssize_t... " >&6; }
13201 if test "${ac_cv_type_ssize_t+set}" = set; then
13202 $as_echo_n "(cached) " >&6
13204 ac_cv_type_ssize_t=no
13205 cat >conftest.$ac_ext <<_ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 #include <sys/types.h>
13216 if (sizeof (ssize_t))
13222 rm -f conftest.$ac_objext
13223 if { (ac_try="$ac_compile"
13224 case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13229 $as_echo "$ac_try_echo") >&5
13230 (eval "$ac_compile") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } && {
13237 test -z "$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest.$ac_objext; then
13240 cat >conftest.$ac_ext <<_ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <sys/types.h>
13251 if (sizeof ((ssize_t)))
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13264 $as_echo "$ac_try_echo") >&5
13265 (eval "$ac_compile") 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } && {
13272 test -z "$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 } && test -s conftest.$ac_objext; then
13277 $as_echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_cv_type_ssize_t=yes
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 $as_echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13294 $as_echo "$ac_cv_type_ssize_t" >&6; }
13295 if test "x$ac_cv_type_ssize_t" = x""yes; then
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_TYPE_SSIZE_T 1
13302 { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13303 $as_echo_n "checking whether llseek is declared... " >&6; }
13304 if test "${ac_cv_have_decl_llseek+set}" = set; then
13305 $as_echo_n "(cached) " >&6
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <unistd.h>
13326 rm -f conftest.$ac_objext
13327 if { (ac_try="$ac_compile"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13333 $as_echo "$ac_try_echo") >&5
13334 (eval "$ac_compile") 2>conftest.er1
13336 grep -v '^ *+' conftest.er1 >conftest.err
13338 cat conftest.err >&5
13339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } && {
13341 test -z "$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 } && test -s conftest.$ac_objext; then
13344 ac_cv_have_decl_llseek=yes
13346 $as_echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_cv_have_decl_llseek=no
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13355 $as_echo "$ac_cv_have_decl_llseek" >&6; }
13356 if test "x$ac_cv_have_decl_llseek" = x""yes; then
13357 cat >>confdefs.h <<\_ACEOF
13358 #define HAVE_LLSEEK_PROTOTYPE 1
13363 { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13364 $as_echo_n "checking whether lseek64 is declared... " >&6; }
13365 if test "${ac_cv_have_decl_lseek64+set}" = set; then
13366 $as_echo_n "(cached) " >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 #define _LARGEFILE_SOURCE
13375 #define _LARGEFILE64_SOURCE
13376 #include <unistd.h>
13389 rm -f conftest.$ac_objext
13390 if { (ac_try="$ac_compile"
13391 case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13396 $as_echo "$ac_try_echo") >&5
13397 (eval "$ac_compile") 2>conftest.er1
13399 grep -v '^ *+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); } && {
13404 test -z "$ac_c_werror_flag" ||
13405 test ! -s conftest.err
13406 } && test -s conftest.$ac_objext; then
13407 ac_cv_have_decl_lseek64=yes
13409 $as_echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13412 ac_cv_have_decl_lseek64=no
13415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13418 $as_echo "$ac_cv_have_decl_lseek64" >&6; }
13419 if test "x$ac_cv_have_decl_lseek64" = x""yes; then
13420 cat >>confdefs.h <<\_ACEOF
13421 #define HAVE_LSEEK64_PROTOTYPE 1
13426 # The cast to long int works around a bug in the HP C Compiler
13427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13429 # This bug is HP SR number 8606223364.
13430 { $as_echo "$as_me:$LINENO: checking size of short" >&5
13431 $as_echo_n "checking size of short... " >&6; }
13432 if test "${ac_cv_sizeof_short+set}" = set; then
13433 $as_echo_n "(cached) " >&6
13435 if test "$cross_compiling" = yes; then
13436 # Depending upon the size, compute the lo and hi bounds.
13437 cat >conftest.$ac_ext <<_ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443 $ac_includes_default
13447 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
13454 rm -f conftest.$ac_objext
13455 if { (ac_try="$ac_compile"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13461 $as_echo "$ac_try_echo") >&5
13462 (eval "$ac_compile") 2>conftest.er1
13464 grep -v '^ *+' conftest.er1 >conftest.err
13466 cat conftest.err >&5
13467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && {
13469 test -z "$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 } && test -s conftest.$ac_objext; then
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 $ac_includes_default
13484 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13491 rm -f conftest.$ac_objext
13492 if { (ac_try="$ac_compile"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13498 $as_echo "$ac_try_echo") >&5
13499 (eval "$ac_compile") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13503 cat conftest.err >&5
13504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest.$ac_objext; then
13509 ac_hi=$ac_mid; break
13511 $as_echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_lo=`expr $ac_mid + 1`
13515 if test $ac_lo -le $ac_mid; then
13519 ac_mid=`expr 2 '*' $ac_mid + 1`
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13534 $ac_includes_default
13538 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552 $as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 $ac_includes_default
13575 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
13582 rm -f conftest.$ac_objext
13583 if { (ac_try="$ac_compile"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589 $as_echo "$ac_try_echo") >&5
13590 (eval "$ac_compile") 2>conftest.er1
13592 grep -v '^ *+' conftest.er1 >conftest.err
13594 cat conftest.err >&5
13595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest.$ac_objext; then
13600 ac_lo=$ac_mid; break
13602 $as_echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_hi=`expr '(' $ac_mid ')' - 1`
13606 if test $ac_mid -le $ac_hi; then
13610 ac_mid=`expr 2 '*' $ac_mid`
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 $as_echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626 # Binary search between lo and hi bounds.
13627 while test "x$ac_lo" != "x$ac_hi"; do
13628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13639 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13646 rm -f conftest.$ac_objext
13647 if { (ac_try="$ac_compile"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653 $as_echo "$ac_try_echo") >&5
13654 (eval "$ac_compile") 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest.$ac_objext; then
13666 $as_echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_lo=`expr '(' $ac_mid ')' + 1`
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 ?*) ac_cv_sizeof_short=$ac_lo;;
13676 '') if test "$ac_cv_type_short" = yes; then
13677 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13679 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13680 See \`config.log' for more details." >&5
13681 $as_echo "$as_me: error: cannot compute sizeof (short)
13682 See \`config.log' for more details." >&2;}
13683 { (exit 77); exit 77; }; }; }
13685 ac_cv_sizeof_short=0
13689 cat >conftest.$ac_ext <<_ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13696 static long int longval () { return (long int) (sizeof (short)); }
13697 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
13699 #include <stdlib.h>
13704 FILE *f = fopen ("conftest.val", "w");
13707 if (((long int) (sizeof (short))) < 0)
13709 long int i = longval ();
13710 if (i != ((long int) (sizeof (short))))
13712 fprintf (f, "%ld", i);
13716 unsigned long int i = ulongval ();
13717 if (i != ((long int) (sizeof (short))))
13719 fprintf (f, "%lu", i);
13721 /* Do not output a trailing newline, as this causes \r\n confusion
13722 on some platforms. */
13723 return ferror (f) || fclose (f) != 0;
13729 rm -f conftest$ac_exeext
13730 if { (ac_try="$ac_link"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13736 $as_echo "$ac_try_echo") >&5
13737 (eval "$ac_link") 2>&5
13739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13741 { (case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13746 $as_echo "$ac_try_echo") >&5
13747 (eval "$ac_try") 2>&5
13749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_sizeof_short=`cat conftest.val`
13753 $as_echo "$as_me: program exited with status $ac_status" >&5
13754 $as_echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13757 ( exit $ac_status )
13758 if test "$ac_cv_type_short" = yes; then
13759 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13761 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13762 See \`config.log' for more details." >&5
13763 $as_echo "$as_me: error: cannot compute sizeof (short)
13764 See \`config.log' for more details." >&2;}
13765 { (exit 77); exit 77; }; }; }
13767 ac_cv_sizeof_short=0
13770 rm -rf conftest.dSYM
13771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13775 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13776 $as_echo "$ac_cv_sizeof_short" >&6; }
13780 cat >>confdefs.h <<_ACEOF
13781 #define SIZEOF_SHORT $ac_cv_sizeof_short
13785 # The cast to long int works around a bug in the HP C Compiler
13786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13788 # This bug is HP SR number 8606223364.
13789 { $as_echo "$as_me:$LINENO: checking size of int" >&5
13790 $as_echo_n "checking size of int... " >&6; }
13791 if test "${ac_cv_sizeof_int+set}" = set; then
13792 $as_echo_n "(cached) " >&6
13794 if test "$cross_compiling" = yes; then
13795 # Depending upon the size, compute the lo and hi bounds.
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13806 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
13813 rm -f conftest.$ac_objext
13814 if { (ac_try="$ac_compile"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13820 $as_echo "$ac_try_echo") >&5
13821 (eval "$ac_compile") 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } && {
13828 test -z "$ac_c_werror_flag" ||
13829 test ! -s conftest.err
13830 } && test -s conftest.$ac_objext; then
13833 cat >conftest.$ac_ext <<_ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 $ac_includes_default
13843 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13850 rm -f conftest.$ac_objext
13851 if { (ac_try="$ac_compile"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13857 $as_echo "$ac_try_echo") >&5
13858 (eval "$ac_compile") 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } && {
13865 test -z "$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 } && test -s conftest.$ac_objext; then
13868 ac_hi=$ac_mid; break
13870 $as_echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13873 ac_lo=`expr $ac_mid + 1`
13874 if test $ac_lo -le $ac_mid; then
13878 ac_mid=`expr 2 '*' $ac_mid + 1`
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13884 $as_echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 $ac_includes_default
13897 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
13904 rm -f conftest.$ac_objext
13905 if { (ac_try="$ac_compile"
13906 case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13911 $as_echo "$ac_try_echo") >&5
13912 (eval "$ac_compile") 2>conftest.er1
13914 grep -v '^ *+' conftest.er1 >conftest.err
13916 cat conftest.err >&5
13917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest.$ac_objext; then
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13934 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
13941 rm -f conftest.$ac_objext
13942 if { (ac_try="$ac_compile"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13948 $as_echo "$ac_try_echo") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13951 grep -v '^ *+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
13959 ac_lo=$ac_mid; break
13961 $as_echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_hi=`expr '(' $ac_mid ')' - 1`
13965 if test $ac_mid -le $ac_hi; then
13969 ac_mid=`expr 2 '*' $ac_mid`
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 $as_echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 # Binary search between lo and hi bounds.
13986 while test "x$ac_lo" != "x$ac_hi"; do
13987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13988 cat >conftest.$ac_ext <<_ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 $ac_includes_default
13998 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
14005 rm -f conftest.$ac_objext
14006 if { (ac_try="$ac_compile"
14007 case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14012 $as_echo "$ac_try_echo") >&5
14013 (eval "$ac_compile") 2>conftest.er1
14015 grep -v '^ *+' conftest.er1 >conftest.err
14017 cat conftest.err >&5
14018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } && {
14020 test -z "$ac_c_werror_flag" ||
14021 test ! -s conftest.err
14022 } && test -s conftest.$ac_objext; then
14025 $as_echo "$as_me: failed program was:" >&5
14026 sed 's/^/| /' conftest.$ac_ext >&5
14028 ac_lo=`expr '(' $ac_mid ')' + 1`
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034 ?*) ac_cv_sizeof_int=$ac_lo;;
14035 '') if test "$ac_cv_type_int" = yes; then
14036 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14038 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14039 See \`config.log' for more details." >&5
14040 $as_echo "$as_me: error: cannot compute sizeof (int)
14041 See \`config.log' for more details." >&2;}
14042 { (exit 77); exit 77; }; }; }
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 $ac_includes_default
14055 static long int longval () { return (long int) (sizeof (int)); }
14056 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
14058 #include <stdlib.h>
14063 FILE *f = fopen ("conftest.val", "w");
14066 if (((long int) (sizeof (int))) < 0)
14068 long int i = longval ();
14069 if (i != ((long int) (sizeof (int))))
14071 fprintf (f, "%ld", i);
14075 unsigned long int i = ulongval ();
14076 if (i != ((long int) (sizeof (int))))
14078 fprintf (f, "%lu", i);
14080 /* Do not output a trailing newline, as this causes \r\n confusion
14081 on some platforms. */
14082 return ferror (f) || fclose (f) != 0;
14088 rm -f conftest$ac_exeext
14089 if { (ac_try="$ac_link"
14090 case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14095 $as_echo "$ac_try_echo") >&5
14096 (eval "$ac_link") 2>&5
14098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14100 { (case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14105 $as_echo "$ac_try_echo") >&5
14106 (eval "$ac_try") 2>&5
14108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_sizeof_int=`cat conftest.val`
14112 $as_echo "$as_me: program exited with status $ac_status" >&5
14113 $as_echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ( exit $ac_status )
14117 if test "$ac_cv_type_int" = yes; then
14118 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14120 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14121 See \`config.log' for more details." >&5
14122 $as_echo "$as_me: error: cannot compute sizeof (int)
14123 See \`config.log' for more details." >&2;}
14124 { (exit 77); exit 77; }; }; }
14129 rm -rf conftest.dSYM
14130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14134 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14135 $as_echo "$ac_cv_sizeof_int" >&6; }
14139 cat >>confdefs.h <<_ACEOF
14140 #define SIZEOF_INT $ac_cv_sizeof_int
14144 # The cast to long int works around a bug in the HP C Compiler
14145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14147 # This bug is HP SR number 8606223364.
14148 { $as_echo "$as_me:$LINENO: checking size of long" >&5
14149 $as_echo_n "checking size of long... " >&6; }
14150 if test "${ac_cv_sizeof_long+set}" = set; then
14151 $as_echo_n "(cached) " >&6
14153 if test "$cross_compiling" = yes; then
14154 # Depending upon the size, compute the lo and hi bounds.
14155 cat >conftest.$ac_ext <<_ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 $ac_includes_default
14165 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14172 rm -f conftest.$ac_objext
14173 if { (ac_try="$ac_compile"
14174 case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14179 $as_echo "$ac_try_echo") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest.$ac_objext; then
14192 cat >conftest.$ac_ext <<_ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 $ac_includes_default
14202 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14216 $as_echo "$ac_try_echo") >&5
14217 (eval "$ac_compile") 2>conftest.er1
14219 grep -v '^ *+' conftest.er1 >conftest.err
14221 cat conftest.err >&5
14222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } && {
14224 test -z "$ac_c_werror_flag" ||
14225 test ! -s conftest.err
14226 } && test -s conftest.$ac_objext; then
14227 ac_hi=$ac_mid; break
14229 $as_echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_lo=`expr $ac_mid + 1`
14233 if test $ac_lo -le $ac_mid; then
14237 ac_mid=`expr 2 '*' $ac_mid + 1`
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14252 $ac_includes_default
14256 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
14263 rm -f conftest.$ac_objext
14264 if { (ac_try="$ac_compile"
14265 case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270 $as_echo "$ac_try_echo") >&5
14271 (eval "$ac_compile") 2>conftest.er1
14273 grep -v '^ *+' conftest.er1 >conftest.err
14275 cat conftest.err >&5
14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } && {
14278 test -z "$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest.$ac_objext; then
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 $ac_includes_default
14293 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14307 $as_echo "$ac_try_echo") >&5
14308 (eval "$ac_compile") 2>conftest.er1
14310 grep -v '^ *+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest.$ac_objext; then
14318 ac_lo=$ac_mid; break
14320 $as_echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14323 ac_hi=`expr '(' $ac_mid ')' - 1`
14324 if test $ac_mid -le $ac_hi; then
14328 ac_mid=`expr 2 '*' $ac_mid`
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 $as_echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 # Binary search between lo and hi bounds.
14345 while test "x$ac_lo" != "x$ac_hi"; do
14346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 $ac_includes_default
14357 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14371 $as_echo "$ac_try_echo") >&5
14372 (eval "$ac_compile") 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest.$ac_objext; then
14384 $as_echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_lo=`expr '(' $ac_mid ')' + 1`
14390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 ?*) ac_cv_sizeof_long=$ac_lo;;
14394 '') if test "$ac_cv_type_long" = yes; then
14395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14397 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14398 See \`config.log' for more details." >&5
14399 $as_echo "$as_me: error: cannot compute sizeof (long)
14400 See \`config.log' for more details." >&2;}
14401 { (exit 77); exit 77; }; }; }
14403 ac_cv_sizeof_long=0
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 $ac_includes_default
14414 static long int longval () { return (long int) (sizeof (long)); }
14415 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
14417 #include <stdlib.h>
14422 FILE *f = fopen ("conftest.val", "w");
14425 if (((long int) (sizeof (long))) < 0)
14427 long int i = longval ();
14428 if (i != ((long int) (sizeof (long))))
14430 fprintf (f, "%ld", i);
14434 unsigned long int i = ulongval ();
14435 if (i != ((long int) (sizeof (long))))
14437 fprintf (f, "%lu", i);
14439 /* Do not output a trailing newline, as this causes \r\n confusion
14440 on some platforms. */
14441 return ferror (f) || fclose (f) != 0;
14447 rm -f conftest$ac_exeext
14448 if { (ac_try="$ac_link"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14454 $as_echo "$ac_try_echo") >&5
14455 (eval "$ac_link") 2>&5
14457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14459 { (case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14464 $as_echo "$ac_try_echo") >&5
14465 (eval "$ac_try") 2>&5
14467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 ac_cv_sizeof_long=`cat conftest.val`
14471 $as_echo "$as_me: program exited with status $ac_status" >&5
14472 $as_echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ( exit $ac_status )
14476 if test "$ac_cv_type_long" = yes; then
14477 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14479 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14480 See \`config.log' for more details." >&5
14481 $as_echo "$as_me: error: cannot compute sizeof (long)
14482 See \`config.log' for more details." >&2;}
14483 { (exit 77); exit 77; }; }; }
14485 ac_cv_sizeof_long=0
14488 rm -rf conftest.dSYM
14489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14493 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14494 $as_echo "$ac_cv_sizeof_long" >&6; }
14498 cat >>confdefs.h <<_ACEOF
14499 #define SIZEOF_LONG $ac_cv_sizeof_long
14503 # The cast to long int works around a bug in the HP C Compiler
14504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14506 # This bug is HP SR number 8606223364.
14507 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
14508 $as_echo_n "checking size of long long... " >&6; }
14509 if test "${ac_cv_sizeof_long_long+set}" = set; then
14510 $as_echo_n "(cached) " >&6
14512 if test "$cross_compiling" = yes; then
14513 # Depending upon the size, compute the lo and hi bounds.
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 $ac_includes_default
14524 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
14531 rm -f conftest.$ac_objext
14532 if { (ac_try="$ac_compile"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14538 $as_echo "$ac_try_echo") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest.$ac_objext; then
14551 cat >conftest.$ac_ext <<_ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 $ac_includes_default
14561 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14568 rm -f conftest.$ac_objext
14569 if { (ac_try="$ac_compile"
14570 case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14575 $as_echo "$ac_try_echo") >&5
14576 (eval "$ac_compile") 2>conftest.er1
14578 grep -v '^ *+' conftest.er1 >conftest.err
14580 cat conftest.err >&5
14581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && {
14583 test -z "$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest.$ac_objext; then
14586 ac_hi=$ac_mid; break
14588 $as_echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_lo=`expr $ac_mid + 1`
14592 if test $ac_lo -le $ac_mid; then
14596 ac_mid=`expr 2 '*' $ac_mid + 1`
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 $as_echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14605 cat >conftest.$ac_ext <<_ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14615 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
14622 rm -f conftest.$ac_objext
14623 if { (ac_try="$ac_compile"
14624 case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14629 $as_echo "$ac_try_echo") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } && {
14637 test -z "$ac_c_werror_flag" ||
14638 test ! -s conftest.err
14639 } && test -s conftest.$ac_objext; then
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14648 $ac_includes_default
14652 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
14659 rm -f conftest.$ac_objext
14660 if { (ac_try="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14666 $as_echo "$ac_try_echo") >&5
14667 (eval "$ac_compile") 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } && {
14674 test -z "$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 } && test -s conftest.$ac_objext; then
14677 ac_lo=$ac_mid; break
14679 $as_echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_hi=`expr '(' $ac_mid ')' - 1`
14683 if test $ac_mid -le $ac_hi; then
14687 ac_mid=`expr 2 '*' $ac_mid`
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 $as_echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 # Binary search between lo and hi bounds.
14704 while test "x$ac_lo" != "x$ac_hi"; do
14705 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14716 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14723 rm -f conftest.$ac_objext
14724 if { (ac_try="$ac_compile"
14725 case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730 $as_echo "$ac_try_echo") >&5
14731 (eval "$ac_compile") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest.$ac_objext; then
14743 $as_echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_lo=`expr '(' $ac_mid ')' + 1`
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14753 '') if test "$ac_cv_type_long_long" = yes; then
14754 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14756 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14757 See \`config.log' for more details." >&5
14758 $as_echo "$as_me: error: cannot compute sizeof (long long)
14759 See \`config.log' for more details." >&2;}
14760 { (exit 77); exit 77; }; }; }
14762 ac_cv_sizeof_long_long=0
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14773 static long int longval () { return (long int) (sizeof (long long)); }
14774 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
14776 #include <stdlib.h>
14781 FILE *f = fopen ("conftest.val", "w");
14784 if (((long int) (sizeof (long long))) < 0)
14786 long int i = longval ();
14787 if (i != ((long int) (sizeof (long long))))
14789 fprintf (f, "%ld", i);
14793 unsigned long int i = ulongval ();
14794 if (i != ((long int) (sizeof (long long))))
14796 fprintf (f, "%lu", i);
14798 /* Do not output a trailing newline, as this causes \r\n confusion
14799 on some platforms. */
14800 return ferror (f) || fclose (f) != 0;
14806 rm -f conftest$ac_exeext
14807 if { (ac_try="$ac_link"
14808 case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14813 $as_echo "$ac_try_echo") >&5
14814 (eval "$ac_link") 2>&5
14816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14818 { (case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14823 $as_echo "$ac_try_echo") >&5
14824 (eval "$ac_try") 2>&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 ac_cv_sizeof_long_long=`cat conftest.val`
14830 $as_echo "$as_me: program exited with status $ac_status" >&5
14831 $as_echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14834 ( exit $ac_status )
14835 if test "$ac_cv_type_long_long" = yes; then
14836 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14838 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14839 See \`config.log' for more details." >&5
14840 $as_echo "$as_me: error: cannot compute sizeof (long long)
14841 See \`config.log' for more details." >&2;}
14842 { (exit 77); exit 77; }; }; }
14844 ac_cv_sizeof_long_long=0
14847 rm -rf conftest.dSYM
14848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14852 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14853 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14857 cat >>confdefs.h <<_ACEOF
14858 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14862 SIZEOF_SHORT=$ac_cv_sizeof_short
14863 SIZEOF_INT=$ac_cv_sizeof_int
14864 SIZEOF_LONG=$ac_cv_sizeof_long
14865 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14871 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14872 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14873 if test "${ac_cv_c_bigendian+set}" = set; then
14874 $as_echo_n "(cached) " >&6
14876 ac_cv_c_bigendian=unknown
14877 # See if we're dealing with a universal compiler.
14878 cat >conftest.$ac_ext <<_ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14884 #ifndef __APPLE_CC__
14885 not a universal capable compiler
14890 rm -f conftest.$ac_objext
14891 if { (ac_try="$ac_compile"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14897 $as_echo "$ac_try_echo") >&5
14898 (eval "$ac_compile") 2>conftest.er1
14900 grep -v '^ *+' conftest.er1 >conftest.err
14902 cat conftest.err >&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && {
14905 test -z "$ac_c_werror_flag" ||
14906 test ! -s conftest.err
14907 } && test -s conftest.$ac_objext; then
14909 # Check for potential -arch flags. It is not universal unless
14910 # there are some -arch flags. Note that *ppc* also matches
14911 # ppc64. This check is also rather less than ideal.
14912 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14913 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14916 $as_echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 if test $ac_cv_c_bigendian = unknown; then
14924 # See if sys/param.h defines the BYTE_ORDER macro.
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <sys/types.h>
14932 #include <sys/param.h>
14937 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14938 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14940 bogus endian macros
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14954 $as_echo "$ac_try_echo") >&5
14955 (eval "$ac_compile") 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } && {
14962 test -z "$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14964 } && test -s conftest.$ac_objext; then
14965 # It does; now see whether it defined to BIG_ENDIAN or not.
14966 cat >conftest.$ac_ext <<_ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 #include <sys/types.h>
14973 #include <sys/param.h>
14978 #if BYTE_ORDER != BIG_ENDIAN
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14993 $as_echo "$ac_try_echo") >&5
14994 (eval "$ac_compile") 2>conftest.er1
14996 grep -v '^ *+' conftest.er1 >conftest.err
14998 cat conftest.err >&5
14999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest.$ac_objext; then
15004 ac_cv_c_bigendian=yes
15006 $as_echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 ac_cv_c_bigendian=no
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 $as_echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022 if test $ac_cv_c_bigendian = unknown; then
15023 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 #include <limits.h>
15035 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15036 bogus endian macros
15043 rm -f conftest.$ac_objext
15044 if { (ac_try="$ac_compile"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15050 $as_echo "$ac_try_echo") >&5
15051 (eval "$ac_compile") 2>conftest.er1
15053 grep -v '^ *+' conftest.er1 >conftest.err
15055 cat conftest.err >&5
15056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest.$ac_objext; then
15061 # It does; now see whether it defined to _BIG_ENDIAN or not.
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15068 #include <limits.h>
15073 #ifndef _BIG_ENDIAN
15081 rm -f conftest.$ac_objext
15082 if { (ac_try="$ac_compile"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15088 $as_echo "$ac_try_echo") >&5
15089 (eval "$ac_compile") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1 >conftest.err
15093 cat conftest.err >&5
15094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest.$ac_objext; then
15099 ac_cv_c_bigendian=yes
15101 $as_echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15104 ac_cv_c_bigendian=no
15107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 $as_echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 if test $ac_cv_c_bigendian = unknown; then
15118 # Compile a test program.
15119 if test "$cross_compiling" = yes; then
15120 # Try to guess by grepping values from an object file.
15121 cat >conftest.$ac_ext <<_ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 short int ascii_mm[] =
15128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15129 short int ascii_ii[] =
15130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15131 int use_ascii (int i) {
15132 return ascii_mm[i] + ascii_ii[i];
15134 short int ebcdic_ii[] =
15135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15136 short int ebcdic_mm[] =
15137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15138 int use_ebcdic (int i) {
15139 return ebcdic_mm[i] + ebcdic_ii[i];
15146 return use_ascii (foo) == use_ebcdic (foo);
15151 rm -f conftest.$ac_objext
15152 if { (ac_try="$ac_compile"
15153 case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15158 $as_echo "$ac_try_echo") >&5
15159 (eval "$ac_compile") 2>conftest.er1
15161 grep -v '^ *+' conftest.er1 >conftest.err
15163 cat conftest.err >&5
15164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest.$ac_objext; then
15169 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15170 ac_cv_c_bigendian=yes
15172 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15173 if test "$ac_cv_c_bigendian" = unknown; then
15174 ac_cv_c_bigendian=no
15176 # finding both strings is unlikely to happen, but who knows?
15177 ac_cv_c_bigendian=unknown
15181 $as_echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 $ac_includes_default
15200 /* Are we little or big endian? From Harbison&Steele. */
15204 char c[sizeof (long int)];
15207 return u.c[sizeof (long int) - 1] == 1;
15213 rm -f conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221 (eval "$ac_link") 2>&5
15223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15230 $as_echo "$ac_try_echo") >&5
15231 (eval "$ac_try") 2>&5
15233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_cv_c_bigendian=no
15237 $as_echo "$as_me: program exited with status $ac_status" >&5
15238 $as_echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 ( exit $ac_status )
15242 ac_cv_c_bigendian=yes
15244 rm -rf conftest.dSYM
15245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15251 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15252 $as_echo "$ac_cv_c_bigendian" >&6; }
15253 case $ac_cv_c_bigendian in #(
15255 cat >>confdefs.h <<\_ACEOF
15256 #define WORDS_BIGENDIAN 1
15263 cat >>confdefs.h <<\_ACEOF
15264 #define AC_APPLE_UNIVERSAL_BUILD 1
15269 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15270 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15271 $as_echo "$as_me: error: unknown endianness
15272 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15273 { (exit 1); exit 1; }; } ;;
15276 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
15277 ASM_TYPES_HEADER=./asm_types.h
15279 echo "/* These defines are needed for the public ext2fs.h header file */" \
15281 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15282 uniq tmp_config.$$ >> public_config.h
15284 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15286 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15287 uniq tmp_config.$$ >> public_config.h
15289 echo "#undef WORDS_BIGENDIAN" >> public_config.h
15291 rm -f tmp_config.$$
15292 PUBLIC_CONFIG_HEADER=./public_config.h
15295 for ac_header in inttypes.h
15297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15300 $as_echo_n "checking for $ac_header... " >&6; }
15301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15302 $as_echo_n "(cached) " >&6
15304 ac_res=`eval 'as_val=${'$as_ac_Header'}
15305 $as_echo "$as_val"'`
15306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15307 $as_echo "$ac_res" >&6; }
15309 # Is the header compilable?
15310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15311 $as_echo_n "checking $ac_header usability... " >&6; }
15312 cat >conftest.$ac_ext <<_ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15318 $ac_includes_default
15319 #include <$ac_header>
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15328 $as_echo "$ac_try_echo") >&5
15329 (eval "$ac_compile") 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest.$ac_objext; then
15339 ac_header_compiler=yes
15341 $as_echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_header_compiler=no
15347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 $as_echo "$ac_header_compiler" >&6; }
15351 # Is the header present?
15352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 $as_echo_n "checking $ac_header presence... " >&6; }
15354 cat >conftest.$ac_ext <<_ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <$ac_header>
15362 if { (ac_try="$ac_cpp conftest.$ac_ext"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368 $as_echo "$ac_try_echo") >&5
15369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } >/dev/null && {
15376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15379 ac_header_preproc=yes
15381 $as_echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15384 ac_header_preproc=no
15387 rm -f conftest.err conftest.$ac_ext
15388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389 $as_echo "$ac_header_preproc" >&6; }
15391 # So? What about this header?
15392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398 ac_header_preproc=yes
15401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15416 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 $as_echo_n "checking for $ac_header... " >&6; }
15418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419 $as_echo_n "(cached) " >&6
15421 eval "$as_ac_Header=\$ac_header_preproc"
15423 ac_res=`eval 'as_val=${'$as_ac_Header'}
15424 $as_echo "$as_val"'`
15425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15426 $as_echo "$ac_res" >&6; }
15429 as_val=`eval 'as_val=${'$as_ac_Header'}
15430 $as_echo "$as_val"'`
15431 if test "x$as_val" = x""yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15440 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15441 $as_echo_n "checking for intptr_t... " >&6; }
15442 if test "${ac_cv_type_intptr_t+set}" = set; then
15443 $as_echo_n "(cached) " >&6
15445 ac_cv_type_intptr_t=no
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15452 $ac_includes_default
15456 if (sizeof (intptr_t))
15462 rm -f conftest.$ac_objext
15463 if { (ac_try="$ac_compile"
15464 case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15469 $as_echo "$ac_try_echo") >&5
15470 (eval "$ac_compile") 2>conftest.er1
15472 grep -v '^ *+' conftest.er1 >conftest.err
15474 cat conftest.err >&5
15475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest.$ac_objext; then
15480 cat >conftest.$ac_ext <<_ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 $ac_includes_default
15490 if (sizeof ((intptr_t)))
15496 rm -f conftest.$ac_objext
15497 if { (ac_try="$ac_compile"
15498 case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15503 $as_echo "$ac_try_echo") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } && {
15511 test -z "$ac_c_werror_flag" ||
15512 test ! -s conftest.err
15513 } && test -s conftest.$ac_objext; then
15516 $as_echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 ac_cv_type_intptr_t=yes
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524 $as_echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15533 $as_echo "$ac_cv_type_intptr_t" >&6; }
15534 if test "x$ac_cv_type_intptr_t" = x""yes; then
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_INTPTR_T 1
15543 { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15544 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
15545 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
15546 $as_echo_n "(cached) " >&6
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554 #include <sys/stat.h>
15558 struct stat stat; stat.st_flags = 0;
15563 rm -f conftest.$ac_objext
15564 if { (ac_try="$ac_compile"
15565 case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15570 $as_echo "$ac_try_echo") >&5
15571 (eval "$ac_compile") 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && {
15578 test -z "$ac_c_werror_flag" ||
15579 test ! -s conftest.err
15580 } && test -s conftest.$ac_objext; then
15581 e2fsprogs_cv_struct_st_flags=yes
15583 $as_echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 e2fsprogs_cv_struct_st_flags=no
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15592 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15593 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
15594 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
15595 { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15596 $as_echo_n "checking whether st_flags field is useful... " >&6; }
15597 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
15598 $as_echo_n "(cached) " >&6
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 #include <sys/stat.h>
15610 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
15615 rm -f conftest.$ac_objext
15616 if { (ac_try="$ac_compile"
15617 case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15622 $as_echo "$ac_try_echo") >&5
15623 (eval "$ac_compile") 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } && {
15630 test -z "$ac_c_werror_flag" ||
15631 test ! -s conftest.err
15632 } && test -s conftest.$ac_objext; then
15633 e2fsprogs_cv_struct_st_flags_immut=yes
15635 $as_echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15638 e2fsprogs_cv_struct_st_flags_immut=no
15641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15644 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15645 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
15646 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
15647 cat >>confdefs.h <<\_ACEOF
15648 #define HAVE_STAT_FLAGS 1
15653 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15654 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15655 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15656 $as_echo_n "(cached) " >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 #include <sys/types.h>
15665 #include <sys/socket.h>
15670 static struct sockaddr ac_aggr;
15671 if (ac_aggr.sa_len)
15677 rm -f conftest.$ac_objext
15678 if { (ac_try="$ac_compile"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15684 $as_echo "$ac_try_echo") >&5
15685 (eval "$ac_compile") 2>conftest.er1
15687 grep -v '^ *+' conftest.er1 >conftest.err
15689 cat conftest.err >&5
15690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } && {
15692 test -z "$ac_c_werror_flag" ||
15693 test ! -s conftest.err
15694 } && test -s conftest.$ac_objext; then
15695 ac_cv_member_struct_sockaddr_sa_len=yes
15697 $as_echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 cat >conftest.$ac_ext <<_ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 #include <sys/types.h>
15707 #include <sys/socket.h>
15712 static struct sockaddr ac_aggr;
15713 if (sizeof ac_aggr.sa_len)
15719 rm -f conftest.$ac_objext
15720 if { (ac_try="$ac_compile"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15726 $as_echo "$ac_try_echo") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } && {
15734 test -z "$ac_c_werror_flag" ||
15735 test ! -s conftest.err
15736 } && test -s conftest.$ac_objext; then
15737 ac_cv_member_struct_sockaddr_sa_len=yes
15739 $as_echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_cv_member_struct_sockaddr_sa_len=no
15745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15751 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15752 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15754 cat >>confdefs.h <<_ACEOF
15755 #define HAVE_SA_LEN 1
15796 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit sync_file_range posix_fadvise fallocate
15798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15800 $as_echo_n "checking for $ac_func... " >&6; }
15801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15802 $as_echo_n "(cached) " >&6
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15812 #define $ac_func innocuous_$ac_func
15814 /* System header to define __stub macros and hopefully few prototypes,
15815 which can conflict with char $ac_func (); below.
15816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817 <limits.h> exists even on freestanding compilers. */
15820 # include <limits.h>
15822 # include <assert.h>
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15834 /* The GNU C library defines this for functions which it implements
15835 to always fail with ENOSYS. Some functions are actually named
15836 something starting with __ and the normal name is an alias. */
15837 #if defined __stub_$ac_func || defined __stub___$ac_func
15844 return $ac_func ();
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (ac_try="$ac_link"
15851 case "(($ac_try" in
15852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853 *) ac_try_echo=$ac_try;;
15855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15856 $as_echo "$ac_try_echo") >&5
15857 (eval "$ac_link") 2>conftest.er1
15859 grep -v '^ *+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } && {
15864 test -z "$ac_c_werror_flag" ||
15865 test ! -s conftest.err
15866 } && test -s conftest$ac_exeext && {
15867 test "$cross_compiling" = yes ||
15868 $as_test_x conftest$ac_exeext
15870 eval "$as_ac_var=yes"
15872 $as_echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 eval "$as_ac_var=no"
15878 rm -rf conftest.dSYM
15879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15880 conftest$ac_exeext conftest.$ac_ext
15882 ac_res=`eval 'as_val=${'$as_ac_var'}
15883 $as_echo "$as_val"'`
15884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15885 $as_echo "$ac_res" >&6; }
15886 as_val=`eval 'as_val=${'$as_ac_var'}
15887 $as_echo "$as_val"'`
15888 if test "x$as_val" = x""yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15897 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15898 $as_echo_n "checking for socket in -lsocket... " >&6; }
15899 if test "${ac_cv_lib_socket_socket+set}" = set; then
15900 $as_echo_n "(cached) " >&6
15902 ac_check_lib_save_LIBS=$LIBS
15903 LIBS="-lsocket $LIBS"
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15911 /* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15933 $as_echo "$ac_try_echo") >&5
15934 (eval "$ac_link") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest$ac_exeext && {
15944 test "$cross_compiling" = yes ||
15945 $as_test_x conftest$ac_exeext
15947 ac_cv_lib_socket_socket=yes
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_lib_socket_socket=no
15955 rm -rf conftest.dSYM
15956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15957 conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15960 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15961 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15962 if test "x$ac_cv_lib_socket_socket" = x""yes; then
15963 SOCKET_LIB=-lsocket
15968 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15969 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15971 $as_echo_n "(cached) " >&6
15973 ac_check_lib_save_LIBS=$LIBS
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15982 /* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (ac_try="$ac_link"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16004 $as_echo "$ac_try_echo") >&5
16005 (eval "$ac_link") 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest$ac_exeext && {
16015 test "$cross_compiling" = yes ||
16016 $as_test_x conftest$ac_exeext
16018 ac_cv_lib_dl_dlopen=yes
16020 $as_echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 ac_cv_lib_dl_dlopen=no
16026 rm -rf conftest.dSYM
16027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16028 conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16033 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_DLOPEN 1
16042 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
16043 $as_echo_n "checking for optreset... " >&6; }
16044 if test "${ac_cv_have_optreset+set}" = set; then
16045 $as_echo_n "(cached) " >&6
16047 cat >conftest.$ac_ext <<_ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h. */
16053 #include <unistd.h>
16056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16057 $EGREP "optreset" >/dev/null 2>&1; then
16058 ac_cv_have_optreset=yes
16060 ac_cv_have_optreset=no
16065 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16066 $as_echo "$ac_cv_have_optreset" >&6; }
16067 if test $ac_cv_have_optreset = yes; then
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_OPTRESET 1
16074 { $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16075 $as_echo_n "checking for sem_init... " >&6; }
16076 if test "${ac_cv_func_sem_init+set}" = set; then
16077 $as_echo_n "(cached) " >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16085 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16087 #define sem_init innocuous_sem_init
16089 /* System header to define __stub macros and hopefully few prototypes,
16090 which can conflict with char sem_init (); below.
16091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16092 <limits.h> exists even on freestanding compilers. */
16095 # include <limits.h>
16097 # include <assert.h>
16102 /* Override any GCC internal prototype to avoid an error.
16103 Use char because int might match the return type of a GCC
16104 builtin and then its argument prototype would still apply. */
16109 /* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112 #if defined __stub_sem_init || defined __stub___sem_init
16119 return sem_init ();
16124 rm -f conftest.$ac_objext conftest$ac_exeext
16125 if { (ac_try="$ac_link"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16131 $as_echo "$ac_try_echo") >&5
16132 (eval "$ac_link") 2>conftest.er1
16134 grep -v '^ *+' conftest.er1 >conftest.err
16136 cat conftest.err >&5
16137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } && {
16139 test -z "$ac_c_werror_flag" ||
16140 test ! -s conftest.err
16141 } && test -s conftest$ac_exeext && {
16142 test "$cross_compiling" = yes ||
16143 $as_test_x conftest$ac_exeext
16145 ac_cv_func_sem_init=yes
16147 $as_echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ac_cv_func_sem_init=no
16153 rm -rf conftest.dSYM
16154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16155 conftest$ac_exeext conftest.$ac_ext
16157 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16158 $as_echo "$ac_cv_func_sem_init" >&6; }
16159 if test "x$ac_cv_func_sem_init" = x""yes; then
16162 { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16163 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
16164 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
16165 $as_echo_n "(cached) " >&6
16167 ac_check_lib_save_LIBS=$LIBS
16168 LIBS="-lpthread $LIBS"
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16176 /* Override any GCC internal prototype to avoid an error.
16177 Use char because int might match the return type of a GCC
16178 builtin and then its argument prototype would still apply. */
16186 return sem_init ();
16191 rm -f conftest.$ac_objext conftest$ac_exeext
16192 if { (ac_try="$ac_link"
16193 case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16198 $as_echo "$ac_try_echo") >&5
16199 (eval "$ac_link") 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } && {
16206 test -z "$ac_c_werror_flag" ||
16207 test ! -s conftest.err
16208 } && test -s conftest$ac_exeext && {
16209 test "$cross_compiling" = yes ||
16210 $as_test_x conftest$ac_exeext
16212 ac_cv_lib_pthread_sem_init=yes
16214 $as_echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16217 ac_cv_lib_pthread_sem_init=no
16220 rm -rf conftest.dSYM
16221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16222 conftest$ac_exeext conftest.$ac_ext
16223 LIBS=$ac_check_lib_save_LIBS
16225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16226 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16227 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
16228 cat >>confdefs.h <<\_ACEOF
16229 #define HAVE_SEM_INIT 1
16232 SEM_INIT_LIB=-lpthread
16234 { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16235 $as_echo_n "checking for sem_init in -lrt... " >&6; }
16236 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
16237 $as_echo_n "(cached) " >&6
16239 ac_check_lib_save_LIBS=$LIBS
16241 cat >conftest.$ac_ext <<_ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16248 /* Override any GCC internal prototype to avoid an error.
16249 Use char because int might match the return type of a GCC
16250 builtin and then its argument prototype would still apply. */
16258 return sem_init ();
16263 rm -f conftest.$ac_objext conftest$ac_exeext
16264 if { (ac_try="$ac_link"
16265 case "(($ac_try" in
16266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267 *) ac_try_echo=$ac_try;;
16269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16270 $as_echo "$ac_try_echo") >&5
16271 (eval "$ac_link") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest$ac_exeext && {
16281 test "$cross_compiling" = yes ||
16282 $as_test_x conftest$ac_exeext
16284 ac_cv_lib_rt_sem_init=yes
16286 $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16289 ac_cv_lib_rt_sem_init=no
16292 rm -rf conftest.dSYM
16293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16294 conftest$ac_exeext conftest.$ac_ext
16295 LIBS=$ac_check_lib_save_LIBS
16297 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16298 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16299 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE_SEM_INIT 1
16306 { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16307 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
16308 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
16309 $as_echo_n "(cached) " >&6
16311 ac_check_lib_save_LIBS=$LIBS
16312 LIBS="-lposix4 $LIBS"
16313 cat >conftest.$ac_ext <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16320 /* Override any GCC internal prototype to avoid an error.
16321 Use char because int might match the return type of a GCC
16322 builtin and then its argument prototype would still apply. */
16330 return sem_init ();
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16342 $as_echo "$ac_try_echo") >&5
16343 (eval "$ac_link") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext && {
16353 test "$cross_compiling" = yes ||
16354 $as_test_x conftest$ac_exeext
16356 ac_cv_lib_posix4_sem_init=yes
16358 $as_echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 ac_cv_lib_posix4_sem_init=no
16364 rm -rf conftest.dSYM
16365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16366 conftest$ac_exeext conftest.$ac_ext
16367 LIBS=$ac_check_lib_save_LIBS
16369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16370 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16371 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_SEM_INIT 1
16376 SEM_INIT_LIB=-lposix4
16385 { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16386 $as_echo_n "checking for unified diff option... " >&6; }
16387 if diff -u $0 $0 > /dev/null 2>&1 ; then
16392 { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16393 $as_echo "$UNI_DIFF_OPTS" >&6; }
16397 cat >>confdefs.h <<\_ACEOF
16398 #define HAVE_EXT2_IOCTLS 1
16419 linux* | gnu* | k*bsd*-gnu)
16420 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16422 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16423 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
16428 linux* | gnu* | k*bsd*-gnu)
16429 if test "$prefix" = NONE ; then
16431 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16432 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
16433 if test "$mandir" = '${prefix}/man' ; then
16434 { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16435 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
16436 mandir=/usr/share/man
16441 if test "$root_prefix" = NONE ; then
16442 if test "$prefix" = NONE ; then
16443 root_prefix="$ac_default_prefix"
16445 root_prefix="$prefix"
16447 root_bindir=$bindir
16448 root_sbindir=$sbindir
16449 root_libdir=$libdir
16450 root_sysconfdir=$sysconfdir
16452 root_bindir='${root_prefix}/bin'
16453 root_sbindir='${root_prefix}/sbin'
16454 root_libdir='${root_prefix}/lib'
16455 root_sysconfdir='${root_prefix}/etc'
16457 if test "$bindir" != '${exec_prefix}/bin'; then
16458 root_bindir=$bindir
16459 { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16460 $as_echo "Setting root_bindir to $root_bindir" >&6; }
16462 if test "$sbindir" != '${exec_prefix}/sbin'; then
16463 root_sbindir=$sbindir
16464 { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16465 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
16467 if test "$libdir" != '${exec_prefix}/lib'; then
16468 root_libdir=$libdir
16469 { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16470 $as_echo "Setting root_libdir to $root_libdir" >&6; }
16472 if test "$sysconfdir" != '${prefix}/etc'; then
16473 root_sysconfdir=$sysconfdir
16474 { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16475 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
16482 { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16483 $as_echo_n "checking whether linker accepts -static... " >&6; }
16484 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16485 $as_echo_n "(cached) " >&6
16487 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16503 rm -f conftest.$ac_objext conftest$ac_exeext
16504 if { (ac_try="$ac_link"
16505 case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16510 $as_echo "$ac_try_echo") >&5
16511 (eval "$ac_link") 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } && {
16518 test -z "$ac_c_werror_flag" ||
16519 test ! -s conftest.err
16520 } && test -s conftest$ac_exeext && {
16521 test "$cross_compiling" = yes ||
16522 $as_test_x conftest$ac_exeext
16524 ac_cv_e2fsprogs_use_static=yes
16526 $as_echo "$as_me: failed program was:" >&5
16527 sed 's/^/| /' conftest.$ac_ext >&5
16529 ac_cv_e2fsprogs_use_static=no
16532 rm -rf conftest.dSYM
16533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16534 conftest$ac_exeext conftest.$ac_ext
16535 LDFLAGS=$SAVE_LDFLAGS
16540 ac_cv_e2fsprogs_use_static=no
16543 { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16544 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
16546 if test $ac_cv_e2fsprogs_use_static = yes; then
16547 LDFLAG_STATIC=-static
16552 { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16553 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
16554 cat >>confdefs.h <<\_ACEOF
16555 #define _INTL_REDIRECT_MACROS 1
16560 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16561 ET_DIR=`cd ${srcdir}/lib/et; pwd`
16564 if test "$cross_compiling" = yes ; then
16567 DO_TEST_SUITE=check
16571 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16572 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16575 if test $cross_compiling = no; then
16576 BUILD_CFLAGS="$CFLAGS"
16577 BUILD_LDFLAGS="$LDFLAGS"
16584 test -d lib || mkdir lib
16585 test -d include || mkdir include
16586 test -d include/linux || mkdir include/linux
16587 test -d include/asm || mkdir include/asm
16588 for i in MCONFIG Makefile e2fsprogs.spec \
16589 util/Makefile util/subst.conf util/gen-tarball \
16590 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16591 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16592 lib/uuid/Makefile lib/uuid/uuid_types.h \
16593 lib/blkid/Makefile lib/blkid/blkid_types.h \
16594 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16595 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
16596 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16597 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16598 resize/Makefile doc/Makefile intl/Makefile \
16599 intl/libgnuintl.h po/Makefile.in ; do
16600 if test -d `dirname ${srcdir}/$i` ; then
16601 outlist="$outlist $i"
16604 ac_config_files="$ac_config_files $outlist"
16606 cat >confcache <<\_ACEOF
16607 # This file is a shell script that caches the results of configure
16608 # tests run on this system so they can be shared between configure
16609 # scripts and configure runs, see configure's option --config-cache.
16610 # It is not useful on other systems. If it contains results you don't
16611 # want to keep, you may remove or edit it.
16613 # config.status only pays attention to the cache file if you give it
16614 # the --recheck option to rerun configure.
16616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16618 # following values.
16622 # The following way of writing the cache mishandles newlines in values,
16623 # but we know of no workaround that is simple, portable, and efficient.
16624 # So, we kill variables containing newlines.
16625 # Ultrix sh set writes to stderr and can't be redirected directly,
16626 # and sets the high bit in the cache file unless we assign to the vars.
16628 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16629 eval ac_val=\$$ac_var
16633 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16634 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16637 _ | IFS | as_nl) ;; #(
16638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16639 *) $as_unset $ac_var ;;
16645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16646 *${as_nl}ac_space=\ *)
16647 # `set' does not quote correctly, so add quotes (double-quote
16648 # substitution turns \\\\ into \\, and sed turns \\ into \).
16651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16654 # `set' quotes correctly as required by POSIX, so do not add quotes.
16655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16668 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16669 if test -w "$cache_file"; then
16670 test "x$cache_file" != "x/dev/null" &&
16671 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16672 $as_echo "$as_me: updating cache $cache_file" >&6;}
16673 cat confcache >$cache_file
16675 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16676 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16681 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16682 # Let make expand exec_prefix.
16683 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16685 # Transform confdefs.h into DEFS.
16686 # Protect against shell expansion while executing Makefile rules.
16687 # Protect against Makefile macro expansion.
16689 # If the first sed substitution is executed (which looks for macros that
16690 # take arguments), then branch to the quote section. Otherwise,
16691 # look for a macro that doesn't take arguments.
16701 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16703 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16707 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16720 DEFS=`sed -n "$ac_script" confdefs.h`
16725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16726 # 1. Remove the extension, and $U if already installed.
16727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16728 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16730 # will be set to the directory where LIBOBJS objects are built.
16731 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16732 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16734 LIBOBJS=$ac_libobjs
16736 LTLIBOBJS=$ac_ltlibobjs
16741 : ${CONFIG_STATUS=./config.status}
16743 ac_clean_files_save=$ac_clean_files
16744 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16745 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16746 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16747 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 # Generated by $as_me.
16750 # Run this file to recreate the current configuration.
16751 # Compiler output produced by configure, useful for debugging
16752 # configure, is in config.log if it exists.
16755 ac_cs_recheck=false
16757 SHELL=\${CONFIG_SHELL-$SHELL}
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16761 ## --------------------- ##
16762 ## M4sh Initialization. ##
16763 ## --------------------- ##
16765 # Be more Bourne compatible
16766 DUALCASE=1; export DUALCASE # for MKS sh
16767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16770 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16771 # is contrary to our usage. Disable this feature.
16772 alias -g '${1+"$@"}'='"$@"'
16773 setopt NO_GLOB_SUBST
16775 case `(set -o) 2>/dev/null` in
16776 *posix*) set -o posix ;;
16785 # Avoid depending upon Character Ranges.
16786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16789 as_cr_digits='0123456789'
16790 as_cr_alnum=$as_cr_Letters$as_cr_digits
16795 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16796 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16798 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16799 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16800 as_echo='printf %s\n'
16801 as_echo_n='printf %s'
16803 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16804 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16805 as_echo_n='/usr/ucb/echo -n'
16807 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16808 as_echo_n_body='eval
16812 expr "X$arg" : "X\\(.*\\)$as_nl";
16813 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16815 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16817 export as_echo_n_body
16818 as_echo_n='sh -c $as_echo_n_body as_echo'
16820 export as_echo_body
16821 as_echo='sh -c $as_echo_body as_echo'
16824 # The user is always right.
16825 if test "${PATH_SEPARATOR+set}" != set; then
16827 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16828 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16833 # Support unset when possible.
16834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16842 # We need space, tab and new line, in precisely that order. Quoting is
16843 # there to prevent editors from complaining about space-tab.
16844 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16845 # splitting by setting IFS to empty value.)
16848 # Find who we are. Look in the path if we contain no directory separator.
16850 *[\\/]* ) as_myself=$0 ;;
16851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16852 for as_dir in $PATH
16855 test -z "$as_dir" && as_dir=.
16856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16862 # We did not find ourselves, most probably we were run as `sh COMMAND'
16863 # in which case we are not to be found in the path.
16864 if test "x$as_myself" = x; then
16867 if test ! -f "$as_myself"; then
16868 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16869 { (exit 1); exit 1; }
16872 # Work around bugs in pre-3.0 UWIN ksh.
16873 for as_var in ENV MAIL MAILPATH
16874 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16886 # Required to use basename.
16887 if expr a : '\(a\)' >/dev/null 2>&1 &&
16888 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16894 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16895 as_basename=basename
16901 # Name of the executable.
16902 as_me=`$as_basename -- "$0" ||
16903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16904 X"$0" : 'X\(//\)$' \| \
16905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16907 sed '/^.*\/\([^/][^/]*\)\/*$/{
16926 as_lineno_1=$LINENO
16927 as_lineno_2=$LINENO
16928 test "x$as_lineno_1" != "x$as_lineno_2" &&
16929 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16931 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16932 # uniformly replaced by the line number. The first 'sed' inserts a
16933 # line-number line after each line using $LINENO; the second 'sed'
16934 # does the real work. The second script uses 'N' to pair each
16935 # line-number line with the line containing $LINENO, and appends
16936 # trailing '-' during substitution so that $LINENO is not a special
16937 # case at line end.
16938 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16939 # scripts with optimization help from Paolo Bonzini. Blame Lee
16940 # E. McMahon (1931-1989) for sed's syntax. :-)
16952 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16955 ' >$as_me.lineno &&
16956 chmod +x "$as_me.lineno" ||
16957 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16958 { (exit 1); exit 1; }; }
16960 # Don't try to exec as it changes $[0], causing all sort of problems
16961 # (the dirname of $[0] is not the place where we might find the
16962 # original and so on. Autoconf is especially sensitive to this).
16963 . "./$as_me.lineno"
16964 # Exit status is that of the last command.
16969 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16975 ECHO_C= ECHO_N= ECHO_T=
16976 case `echo -n x` in
16978 case `echo 'x\c'` in
16979 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16985 if expr a : '\(a\)' >/dev/null 2>&1 &&
16986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16992 rm -f conf$$ conf$$.exe conf$$.file
16993 if test -d conf$$.dir; then
16994 rm -f conf$$.dir/conf$$.file
16997 mkdir conf$$.dir 2>/dev/null
16999 if (echo >conf$$.file) 2>/dev/null; then
17000 if ln -s conf$$.file conf$$ 2>/dev/null; then
17002 # ... but there are two gotchas:
17003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17005 # In both cases, we have to default to `cp -p'.
17006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17008 elif ln conf$$.file conf$$ 2>/dev/null; then
17016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17017 rmdir conf$$.dir 2>/dev/null
17019 if mkdir -p . 2>/dev/null; then
17022 test -d ./-p && rmdir ./-p
17026 if test -x / >/dev/null 2>&1; then
17027 as_test_x='test -x'
17029 if ls -dL / >/dev/null 2>&1; then
17036 if test -d "$1"; then
17042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17043 ???[sx]*):;;*)false;;esac;fi
17047 as_executable_p=$as_test_x
17049 # Sed expression to map a string onto a valid CPP name.
17050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17052 # Sed expression to map a string onto a valid variable name.
17053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17058 # Save the log message, to keep $[0] and so on meaningful, and to
17059 # report actual input values of CONFIG_FILES etc. instead of their
17060 # values after options handling.
17062 This file was extended by $as_me, which was
17063 generated by GNU Autoconf 2.63. Invocation command line was
17065 CONFIG_FILES = $CONFIG_FILES
17066 CONFIG_HEADERS = $CONFIG_HEADERS
17067 CONFIG_LINKS = $CONFIG_LINKS
17068 CONFIG_COMMANDS = $CONFIG_COMMANDS
17071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17076 case $ac_config_files in *"
17077 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17083 # Files that config.status was made for.
17084 config_files="$ac_config_files"
17085 config_commands="$ac_config_commands"
17089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17091 \`$as_me' instantiates files from templates according to the
17092 current configuration.
17094 Usage: $0 [OPTION]... [FILE]...
17096 -h, --help print this help, then exit
17097 -V, --version print version number and configuration settings, then exit
17098 -q, --quiet, --silent
17099 do not print progress messages
17100 -d, --debug don't remove temporary files
17101 --recheck update $as_me by reconfiguring in the same conditions
17102 --file=FILE[:TEMPLATE]
17103 instantiate the configuration file FILE
17105 Configuration files:
17108 Configuration commands:
17111 Report bugs to <bug-autoconf@gnu.org>."
17114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17117 configured by $0, generated by GNU Autoconf 2.63,
17118 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17120 Copyright (C) 2008 Free Software Foundation, Inc.
17121 This config.status script is free software; the Free Software Foundation
17122 gives unlimited permission to copy, distribute and modify it."
17128 test -n "\$AWK" || AWK=awk
17131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17132 # The default lists apply if the user does not specify any file.
17138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17139 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17150 # Handling of the options.
17151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17153 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17154 $as_echo "$ac_cs_version"; exit ;;
17155 --debug | --debu | --deb | --de | --d | -d )
17157 --file | --fil | --fi | --f )
17160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17162 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17163 ac_need_defaults=false;;
17164 --he | --h | --help | --hel | -h )
17165 $as_echo "$ac_cs_usage"; exit ;;
17166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17167 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17170 # This is an error.
17171 -*) { $as_echo "$as_me: error: unrecognized option: $1
17172 Try \`$0 --help' for more information." >&2
17173 { (exit 1); exit 1; }; } ;;
17175 *) ac_config_targets="$ac_config_targets $1"
17176 ac_need_defaults=false ;;
17182 ac_configure_extra_args=
17184 if $ac_cs_silent; then
17186 ac_configure_extra_args="$ac_configure_extra_args --silent"
17190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17191 if \$ac_cs_recheck; then
17192 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17194 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17195 CONFIG_SHELL='$SHELL'
17196 export CONFIG_SHELL
17201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17206 ## Running $as_me. ##
17212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17217 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17219 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17220 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17221 LINGUAS="${LINGUAS-%UNSET%}"
17226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17228 # Handling of arguments.
17229 for ac_config_target in $ac_config_targets
17231 case $ac_config_target in
17232 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17233 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17235 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17236 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17237 { (exit 1); exit 1; }; };;
17242 # If the user did not use the arguments to specify the items to instantiate,
17243 # then the envvar interface is used. Set only those that are not.
17244 # We use the long form for the default assignment because of an extremely
17245 # bizarre bug on SunOS 4.1.3.
17246 if $ac_need_defaults; then
17247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17251 # Have a temporary directory for convenience. Make it in the build tree
17252 # simply because there is no reason against having it here, and in addition,
17253 # creating and moving files from /tmp can sometimes cause problems.
17254 # Hook for its removal unless debugging.
17255 # Note that there is a small window in which the directory will not be cleaned:
17256 # after its creation but before its name has been assigned to `$tmp'.
17260 trap 'exit_status=$?
17261 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17263 trap '{ (exit 1); exit 1; }' 1 2 13 15
17265 # Create a (secure) tmp directory for tmp files.
17268 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17269 test -n "$tmp" && test -d "$tmp"
17272 tmp=./conf$$-$RANDOM
17273 (umask 077 && mkdir "$tmp")
17276 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17277 { (exit 1); exit 1; }
17280 # Set up the scripts for CONFIG_FILES section.
17281 # No need to generate them if there are no CONFIG_FILES.
17282 # This happens for instance with `./config.status config.h'.
17283 if test -n "$CONFIG_FILES"; then
17285 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17286 ac_cs_awk_getline=:
17287 ac_cs_awk_pipe_init=
17288 ac_cs_awk_read_file='
17289 while ((getline aline < (F[key])) > 0)
17292 ac_cs_awk_pipe_fini=
17294 ac_cs_awk_getline=false
17295 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17296 ac_cs_awk_read_file='
17298 print "cat " F[key] " &&"
17299 '$ac_cs_awk_pipe_init
17300 # The final `:' finishes the AND list.
17301 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17304 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17305 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17308 ac_cs_awk_cr=$ac_cr
17311 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17314 # Create commands to substitute file output variables.
17316 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17317 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17318 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17321 } >conf$$files.sh &&
17322 . ./conf$$files.sh ||
17323 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17324 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17325 { (exit 1); exit 1; }; }
17326 rm -f conf$$files.sh
17329 echo "cat >conf$$subs.awk <<_ACEOF" &&
17330 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17332 } >conf$$subs.sh ||
17333 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17334 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17335 { (exit 1); exit 1; }; }
17336 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17338 for ac_last_try in false false false false false :; do
17339 . ./conf$$subs.sh ||
17340 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17341 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17342 { (exit 1); exit 1; }; }
17344 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17345 if test $ac_delim_n = $ac_delim_num; then
17347 elif $ac_last_try; then
17348 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17349 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17350 { (exit 1); exit 1; }; }
17352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17355 rm -f conf$$subs.sh
17357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17358 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17362 s/^/S["/; s/!.*/"]=/
17372 s/\(.\{148\}\).*/\1/
17374 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17386 s/\(.\{148\}\).*/\1/
17388 s/["\\]/\\&/g; s/^/"/; s/$/"/
17392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17397 ' <conf$$subs.awk | sed '
17402 ' >>$CONFIG_STATUS || ac_write_fail=1
17403 rm -f conf$$subs.awk
17404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17406 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17407 for (key in S) S_is_set[key] = 1
17409 \$ac_cs_awk_pipe_init
17413 nfields = split(line, field, "@")
17415 len = length(field[1])
17416 for (i = 2; i < nfields; i++) {
17418 keylen = length(key)
17419 if (S_is_set[key]) {
17421 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17422 len += length(value) + length(field[++i])
17427 if (nfields == 3 && !substed) {
17429 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17430 \$ac_cs_awk_read_file
17436 \$ac_cs_awk_pipe_fini
17439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17440 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17441 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17444 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17445 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17446 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17447 { (exit 1); exit 1; }; }
17450 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17451 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17452 # trailing colons and then remove the whole line if VPATH becomes empty
17453 # (actually we leave an empty line to preserve line numbers).
17454 if test "x$srcdir" = x.; then
17455 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17456 s/:*\$(srcdir):*/:/
17457 s/:*\${srcdir}:*/:/
17459 s/^\([^=]*=[ ]*\):*/\1/
17465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17466 fi # test -n "$CONFIG_FILES"
17469 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17474 :[FHLC]) ac_mode=$ac_tag; continue;;
17476 case $ac_mode$ac_tag in
17478 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17479 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17480 { (exit 1); exit 1; }; };;
17481 :[FH]-) ac_tag=-:-;;
17482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17499 -) ac_f="$tmp/stdin";;
17500 *) # Look for the file first in the build tree, then in the source tree
17501 # (if the path is not absolute). The absolute path cannot be DOS-style,
17502 # because $ac_f cannot contain `:'.
17506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17508 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17509 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17510 { (exit 1); exit 1; }; };;
17512 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17513 ac_file_inputs="$ac_file_inputs '$ac_f'"
17516 # Let's still pretend it is `configure' which instantiates (i.e., don't
17517 # use $as_me), people would be surprised to read:
17518 # /* config.h. Generated by config.status. */
17519 configure_input='Generated from '`
17520 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17522 if test x"$ac_file" != x-; then
17523 configure_input="$ac_file. $configure_input"
17524 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17525 $as_echo "$as_me: creating $ac_file" >&6;}
17527 # Neutralize special characters interpreted by sed in replacement strings.
17528 case $configure_input in #(
17529 *\&* | *\|* | *\\* )
17530 ac_sed_conf_input=`$as_echo "$configure_input" |
17531 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17532 *) ac_sed_conf_input=$configure_input;;
17536 *:-:* | *:-) cat >"$tmp/stdin" \
17537 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17538 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17539 { (exit 1); exit 1; }; } ;;
17544 ac_dir=`$as_dirname -- "$ac_file" ||
17545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17546 X"$ac_file" : 'X\(//\)[^/]' \| \
17547 X"$ac_file" : 'X\(//\)$' \| \
17548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17549 $as_echo X"$ac_file" |
17550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17554 /^X\(\/\/\)[^/].*/{
17569 -*) as_dir=./$as_dir;;
17571 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17576 *) as_qdir=$as_dir;;
17578 as_dirs="'$as_qdir' $as_dirs"
17579 as_dir=`$as_dirname -- "$as_dir" ||
17580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17581 X"$as_dir" : 'X\(//\)[^/]' \| \
17582 X"$as_dir" : 'X\(//\)$' \| \
17583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17584 $as_echo X"$as_dir" |
17585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17589 /^X\(\/\/\)[^/].*/{
17602 test -d "$as_dir" && break
17604 test -z "$as_dirs" || eval "mkdir $as_dirs"
17605 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17606 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17607 { (exit 1); exit 1; }; }; }
17611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17614 # A ".." for each directory in $ac_dir_suffix.
17615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17616 case $ac_top_builddir_sub in
17617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17621 ac_abs_top_builddir=$ac_pwd
17622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17623 # for backward compatibility:
17624 ac_top_builddir=$ac_top_build_prefix
17627 .) # We are building in place.
17629 ac_top_srcdir=$ac_top_builddir_sub
17630 ac_abs_top_srcdir=$ac_pwd ;;
17631 [\\/]* | ?:[\\/]* ) # Absolute name.
17632 ac_srcdir=$srcdir$ac_dir_suffix;
17633 ac_top_srcdir=$srcdir
17634 ac_abs_top_srcdir=$srcdir ;;
17635 *) # Relative name.
17636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17637 ac_top_srcdir=$ac_top_build_prefix$srcdir
17638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17650 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17651 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17656 # If the template does not know about datarootdir, expand it.
17657 # FIXME: This hack should be removed a few years after 2.60.
17658 ac_datarootdir_hack=; ac_datarootdir_seen=
17671 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17672 *datarootdir*) ac_datarootdir_seen=yes;;
17673 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17674 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17675 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17678 ac_datarootdir_hack='
17679 s&@datadir@&$datadir&g
17680 s&@docdir@&$docdir&g
17681 s&@infodir@&$infodir&g
17682 s&@localedir@&$localedir&g
17683 s&@mandir@&$mandir&g
17684 s&\\\${datarootdir}&$datarootdir&g' ;;
17688 # Neutralize VPATH when `$srcdir' = `.'.
17689 # Shell code in configure.ac might set extrasub.
17690 # FIXME: do we really want to maintain this feature?
17691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17692 ac_sed_extra="$ac_vpsub
17695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17698 s|@configure_input@|$ac_sed_conf_input|;t t
17699 s&@top_builddir@&$ac_top_builddir_sub&;t t
17700 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17701 s&@srcdir@&$ac_srcdir&;t t
17702 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17703 s&@top_srcdir@&$ac_top_srcdir&;t t
17704 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17705 s&@builddir@&$ac_builddir&;t t
17706 s&@abs_builddir@&$ac_abs_builddir&;t t
17707 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17708 s&@INSTALL@&$ac_INSTALL&;t t
17709 $ac_datarootdir_hack
17711 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17712 if $ac_cs_awk_getline; then
17713 $AWK -f "$tmp/subs.awk"
17715 $AWK -f "$tmp/subs.awk" | $SHELL
17717 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17718 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17719 { (exit 1); exit 1; }; }
17721 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17722 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17723 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17724 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17725 which seems to be undefined. Please make sure it is defined." >&5
17726 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17727 which seems to be undefined. Please make sure it is defined." >&2;}
17731 -) cat "$tmp/out" && rm -f "$tmp/out";;
17732 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17734 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17735 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17736 { (exit 1); exit 1; }; }
17740 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17741 $as_echo "$as_me: executing $ac_file commands" >&6;}
17746 case $ac_file$ac_mode in
17748 for ac_file in $CONFIG_FILES; do
17749 # Support "outfile[:infile[:infile...]]"
17751 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17753 # PO directories have a Makefile.in generated from Makefile.in.in.
17754 case "$ac_file" in */Makefile.in)
17755 # Adjust a relative srcdir.
17756 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17757 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17758 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17759 # In autoconf-2.13 it is called $ac_given_srcdir.
17760 # In autoconf-2.50 it is called $srcdir.
17761 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17762 case "$ac_given_srcdir" in
17763 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17764 /*) top_srcdir="$ac_given_srcdir" ;;
17765 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17767 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17768 rm -f "$ac_dir/POTFILES"
17769 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17770 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17771 POMAKEFILEDEPS="POTFILES.in"
17772 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17773 # on $ac_dir but don't depend on user-specified configuration
17775 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17776 # The LINGUAS file contains the set of available languages.
17777 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17778 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17780 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17781 # Hide the ALL_LINGUAS assigment from automake.
17782 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17783 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17785 # The set of available languages was given in configure.in.
17786 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17789 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17790 # Compute UPDATEPOFILES
17791 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17792 # Compute DUMMYPOFILES
17793 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17795 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17796 case "$ac_given_srcdir" in
17798 *) srcdirpre='$(srcdir)/' ;;
17804 for lang in $ALL_LINGUAS; do
17805 POFILES="$POFILES $srcdirpre$lang.po"
17806 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17807 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17808 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17810 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17811 # environment variable.
17813 if test -n "$ALL_LINGUAS"; then
17814 for presentlang in $ALL_LINGUAS; do
17816 if test "%UNSET%" != "$LINGUAS"; then
17817 desiredlanguages="$LINGUAS"
17819 desiredlanguages="$ALL_LINGUAS"
17821 for desiredlang in $desiredlanguages; do
17822 # Use the presentlang catalog if desiredlang is
17823 # a. equal to presentlang, or
17824 # b. a variant of presentlang (because in this case,
17825 # presentlang can be used as a fallback for messages
17826 # which are not translated in the desiredlang catalog).
17827 case "$desiredlang" in
17828 "$presentlang"*) useit=yes;;
17831 if test $useit = yes; then
17832 INST_LINGUAS="$INST_LINGUAS $presentlang"
17837 if test -n "$INST_LINGUAS"; then
17838 for lang in $INST_LINGUAS; do
17839 CATALOGS="$CATALOGS $lang.gmo"
17842 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17843 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17844 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17845 if test -f "$f"; then
17847 *.orig | *.bak | *~) ;;
17848 *) cat "$f" >> "$ac_dir/Makefile" ;;
17861 { (exit 0); exit 0; }
17863 chmod +x $CONFIG_STATUS
17864 ac_clean_files=$ac_clean_files_save
17866 test $ac_write_fail = 0 ||
17867 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17868 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17869 { (exit 1); exit 1; }; }
17872 # configure is writing to config.log, and then calls config.status.
17873 # config.status does its own redirection, appending to config.log.
17874 # Unfortunately, on DOS this fails, as config.log is still kept open
17875 # by configure, so config.status won't be able to write to it; its
17876 # output is simply discarded. So we exec the FD to /dev/null,
17877 # effectively closing config.log, so it can be properly (re)opened and
17878 # appended to by config.status. When coming back to configure, we
17879 # need to make the FD available again.
17880 if test "$no_create" != yes; then
17882 ac_config_status_args=
17883 test "$silent" = yes &&
17884 ac_config_status_args="$ac_config_status_args --quiet"
17886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17889 # would make configure fail if this is the last instruction.
17890 $ac_cs_success || { (exit 1); exit 1; }
17892 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17893 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17894 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17897 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi