2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
698 STATIC_DEVMAPPER_LIBS
699 STATIC_BLKID_DEVMAPPER_LIBS
724 BUILD_INCLUDED_LIBINTL
731 INTL_LIBTOOL_SUFFIX_PREFIX
775 ac_subst_files='MCONFIG
782 ac_precious_vars='build_alias
794 # Initialize some variables set by options.
796 ac_init_version=false
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name=s,x,x,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE}'
831 infodir='${datarootdir}/info'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 # Accept the important Cygnus configure options, so we can diagnose typos.
858 case $ac_dashdash$ac_option in
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
880 cache_file=config.cache ;;
882 -datadir | --datadir | --datadi | --datad)
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
894 -disable-* | --disable-*)
895 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
900 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
901 eval enable_$ac_feature=no ;;
903 -docdir | --docdir | --docdi | --doc | --do)
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
913 -enable-* | --enable-*)
914 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
917 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 { (exit 1); exit 1; }; }
919 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
920 eval enable_$ac_feature=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
935 -help | --help | --hel | --he | -h)
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 # Obsolete; use --without-fp.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1084 -site=* | --site=* | --sit=*)
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1111 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_$ac_package=\$ac_optarg ;;
1119 -without-* | --without-*)
1120 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1126 eval with_$ac_package=no ;;
1129 # Obsolete; use --with-x.
1132 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1133 | --x-incl | --x-inc | --x-in | --x-i)
1134 ac_prev=x_includes ;;
1135 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1136 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1137 x_includes=$ac_optarg ;;
1139 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1140 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1141 ac_prev=x_libraries ;;
1142 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1143 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1144 x_libraries=$ac_optarg ;;
1146 -*) { echo "$as_me: error: unrecognized option: $ac_option
1147 Try \`$0 --help' for more information." >&2
1148 { (exit 1); exit 1; }; }
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156 { (exit 1); exit 1; }; }
1157 eval $ac_envvar=\$ac_optarg
1158 export $ac_envvar ;;
1161 # FIXME: should be removed in autoconf 3.0.
1162 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1164 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 if test -n "$ac_prev"; then
1172 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1173 { echo "$as_me: error: missing argument to $ac_option" >&2
1174 { (exit 1); exit 1; }; }
1177 # Be sure to have absolute directory names.
1178 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1183 eval ac_val=\$$ac_var
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1189 { (exit 1); exit 1; }; }
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1197 target=$target_alias
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used." >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213 test "$silent" = yes && exec 6>/dev/null
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 { echo "$as_me: error: Working directory cannot be determined" >&2
1220 { (exit 1); exit 1; }; }
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 { echo "$as_me: error: pwd does not report name of working directory" >&2
1223 { (exit 1); exit 1; }; }
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir=`$as_dirname -- "$0" ||
1231 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$0" : 'X\(//\)[^/]' \| \
1233 X"$0" : 'X\(//\)$' \| \
1234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1258 ac_srcdir_defaulted=no
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1263 { (exit 1); exit 1; }; }
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1268 { (exit 1); exit 1; }; }
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures this package to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --build=BUILD configure for building on BUILD [guessed]
1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1357 if test -n "$ac_init_help"; then
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --enable-maintainer-mode enable makefile rules useful for maintainers
1365 --enable-compression enable EXPERIMENTAL compression support
1366 --enable-htree enable EXPERIMENTAL htree directory support
1367 --enable-elf-shlibs select ELF shared libraries
1368 --enable-bsd-shlibs select BSD shared libraries
1369 --enable-profile build profiling libraries
1370 --enable-checker build checker libraries
1371 --enable-jbd-debug enable journal debugging
1372 --enable-blkid-debug enable blkid debugging
1373 --enable-testio-debug enable the use of the test I/O manager for debugging
1374 --disable-debugfs disable support of debugfs program
1375 --disable-imager disable support of e2image program
1376 --disable-resizer disable support of e2resize program
1377 --enable-fsck build fsck wrapper program
1378 --enable-e2initrd-helper build e2initrd-helper program
1379 --enable-blkid-devmapper build with device-mapper support
1380 --disable-tls disable use of thread local support
1381 --disable-uuidd disable building the uuid daemon
1382 --disable-nls do not use Native Language Support
1383 --disable-rpath do not hardcode runtime library paths
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-diet-libc use diet libc
1389 --with-cc=COMPILER select compiler to use
1390 --with-linker=LINKER select linker to use
1391 --with-ccopts=CCOPTS select compiler command line options
1392 --with-ldopts=LDOPTS select linker command line options
1393 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1394 --with-gnu-ld assume the C compiler uses GNU ld default=no
1395 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1396 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1397 --with-included-gettext use the GNU gettext library included here
1398 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1399 --without-libintl-prefix don't search for libintl in includedir and libdir
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1410 PKG_CONFIG path to pkg-config utility
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422 test -d "$ac_dir" || continue
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1476 generated by GNU Autoconf 2.61
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1489 It was created by $as_me, which was
1490 generated by GNU Autoconf 2.61. Invocation command line was
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1512 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1515 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1516 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1517 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 echo "PATH: $as_dir"
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_must_keep_next=false
1556 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558 | -silent | --silent | --silen | --sile | --sil)
1561 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567 if test $ac_must_keep_next = true; then
1568 ac_must_keep_next=false # Got value, back to normal.
1571 *=* | --config-cache | -C | -disable-* | --disable-* \
1572 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574 | -with-* | --with-* | -without-* | --without-* | --x)
1575 case "$ac_configure_args0 " in
1576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 -* ) ac_must_keep_next=true ;;
1582 ac_configure_args="$ac_configure_args '$ac_arg'"
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log. We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596 # Save into config.log some information that might help in debugging.
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1606 # The following way of writing the cache mishandles newlines in values,
1608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609 eval ac_val=\$$ac_var
1613 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1614 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617 _ | IFS | as_nl) ;; #(
1618 *) $as_unset $ac_var ;;
1623 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624 *${as_nl}ac_space=\ *)
1626 "s/'\''/'\''\\\\'\'''\''/g;
1627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1643 for ac_var in $ac_subst_vars
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 echo "$ac_var='\''$ac_val'\''"
1653 if test -n "$ac_subst_files"; then
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1660 for ac_var in $ac_subst_files
1662 eval ac_val=\$$ac_var
1664 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 echo "$ac_var='\''$ac_val'\''"
1671 if test -s confdefs.h; then
1681 test "$ac_signal" != 0 &&
1682 echo "$as_me: caught signal $ac_signal"
1683 echo "$as_me: exit $exit_status"
1685 rm -f core *.core core.conftest.* &&
1686 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1689 for ac_signal in 1 2 13 15; do
1690 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1697 # Predefined preprocessor variables.
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer explicitly selected file to automatically selected ones.
1726 if test -n "$CONFIG_SITE"; then
1727 set x "$CONFIG_SITE"
1728 elif test "x$prefix" != xNONE; then
1729 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 set x "$ac_default_prefix/share/config.site" \
1732 "$ac_default_prefix/etc/config.site"
1737 if test -r "$ac_site_file"; then
1738 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1739 echo "$as_me: loading site script $ac_site_file" >&6;}
1740 sed 's/^/| /' "$ac_site_file" >&5
1745 if test -r "$cache_file"; then
1746 # Some versions of bash will fail to source /dev/null (special
1747 # files actually), so we avoid doing that.
1748 if test -f "$cache_file"; then
1749 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1750 echo "$as_me: loading cache $cache_file" >&6;}
1752 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1753 *) . "./$cache_file";;
1757 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1758 echo "$as_me: creating cache $cache_file" >&6;}
1762 # Check that the precious variables saved in the cache have kept the same
1764 ac_cache_corrupted=false
1765 for ac_var in $ac_precious_vars; do
1766 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1767 eval ac_new_set=\$ac_env_${ac_var}_set
1768 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1769 eval ac_new_val=\$ac_env_${ac_var}_value
1770 case $ac_old_set,$ac_new_set in
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1776 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1777 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1781 if test "x$ac_old_val" != "x$ac_new_val"; then
1782 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1783 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1784 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1785 echo "$as_me: former value: $ac_old_val" >&2;}
1786 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1787 echo "$as_me: current value: $ac_new_val" >&2;}
1788 ac_cache_corrupted=:
1791 # Pass precious variables to config.status.
1792 if test "$ac_new_set" = set; then
1794 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 *) ac_arg=$ac_var=$ac_new_val ;;
1797 case " $ac_configure_args " in
1798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1799 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1803 if $ac_cache_corrupted; then
1804 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1805 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1806 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1807 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1808 { (exit 1); exit 1; }; }
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836 for ac_dir in config "$srcdir"/config; do
1837 if test -f "$ac_dir/install-sh"; then
1839 ac_install_sh="$ac_aux_dir/install-sh -c"
1841 elif test -f "$ac_dir/install.sh"; then
1843 ac_install_sh="$ac_aux_dir/install.sh -c"
1845 elif test -f "$ac_dir/shtool"; then
1847 ac_install_sh="$ac_aux_dir/shtool install -c"
1851 if test -z "$ac_aux_dir"; then
1852 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1853 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1854 { (exit 1); exit 1; }; }
1857 # These three variables are undocumented and unsupported,
1858 # and are intended to be withdrawn in a future Autoconf release.
1859 # They can cause serious problems if a builder's source tree is in a directory
1860 # whose full name contains unusual characters.
1861 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1862 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1863 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1869 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1870 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1871 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1873 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1874 MONTH=`echo $DATE | awk -F- '{print $2}'`
1875 YEAR=`echo $DATE | awk -F- '{print $3}'`
1877 if expr $YEAR ">" 1900 > /dev/null ; then
1878 E2FSPROGS_YEAR=$YEAR
1879 elif expr $YEAR ">" 90 >/dev/null ; then
1880 E2FSPROGS_YEAR=19$YEAR
1882 E2FSPROGS_YEAR=20$YEAR
1886 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1887 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1888 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1889 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1890 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1891 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1892 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1893 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1894 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1895 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1896 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1897 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1898 *) echo "Unknown month $MONTH??" ;;
1901 base_ver=`echo $E2FSPROGS_VERSION | \
1902 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1904 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1906 case $E2FSPROGS_VERSION in
1908 pre_vers=`echo $base_ver 0.01 - p | dc`
1909 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1912 E2FSPROGS_PKGVER="$base_ver"
1916 unset DATE MONTH YEAR base_ver pre_vers date_spec
1917 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1918 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1924 # Make sure we can run config.sub.
1925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1926 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1927 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1928 { (exit 1); exit 1; }; }
1930 { echo "$as_me:$LINENO: checking build system type" >&5
1931 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1932 if test "${ac_cv_build+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 ac_build_alias=$build_alias
1936 test "x$ac_build_alias" = x &&
1937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1938 test "x$ac_build_alias" = x &&
1939 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941 { (exit 1); exit 1; }; }
1942 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1949 echo "${ECHO_T}$ac_cv_build" >&6; }
1950 case $ac_cv_build in
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1953 echo "$as_me: error: invalid value of canonical build" >&2;}
1954 { (exit 1); exit 1; }; };;
1957 ac_save_IFS=$IFS; IFS='-'
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1970 { echo "$as_me:$LINENO: checking host system type" >&5
1971 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_host+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test "x$host_alias" = x; then
1976 ac_cv_host=$ac_cv_build
1978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1981 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1986 echo "${ECHO_T}$ac_cv_host" >&6; }
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1990 echo "$as_me: error: invalid value of canonical host" >&2;}
1991 { (exit 1); exit 1; }; };;
1994 ac_save_IFS=$IFS; IFS='-'
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2008 # Check whether --with-diet-libc was given.
2009 if test "${with_diet_libc+set}" = set; then
2010 withval=$with_diet_libc; CC="diet cc -nostdinc"
2011 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2012 echo "${ECHO_T}CC=$CC" >&6; }
2015 # Check whether --with-cc was given.
2016 if test "${with_cc+set}" = set; then
2017 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018 echo "${ECHO_T}CC=$withval" >&6; }
2021 if test -z "$CC" ; then CC=cc; fi
2022 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023 echo "${ECHO_T}CC defaults to $CC" >&6; }
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$CC"; then
2062 { echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6; }
2065 { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2071 if test -z "$ac_cv_prog_CC"; then
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 ac_cv_prog_ac_ct_CC="gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2105 { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2109 if test "x$ac_ct_CC" = x; then
2112 case $cross_compiling:$ac_tool_warned in
2114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet. If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&5
2117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120 ac_tool_warned=yes ;;
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 if test -n "$CC"; then
2159 { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2169 if test -z "$CC"; then
2170 # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189 ac_prog_rejected=yes
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test $ac_prog_rejected = yes; then
2201 # We found a bogon in the path, so make sure we never use it.
2202 set dummy $ac_cv_prog_CC
2204 if test $# != 0; then
2205 # We chose a different compiler from the bogus one.
2206 # However, it has the same basename, so the bogon will be chosen
2207 # first if we set CC to just the basename; use the full file name.
2209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2215 if test -n "$CC"; then
2216 { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 for ac_prog in cl.exe
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 if test -n "$CC"; then
2258 { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2266 test -n "$CC" && break
2269 if test -z "$CC"; then
2271 for ac_prog in cl.exe
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_ac_ct_CC="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6; }
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2310 test -n "$ac_ct_CC" && break
2313 if test "x$ac_ct_CC" = x; then
2316 case $cross_compiling:$ac_tool_warned in
2318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet. If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&5
2321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324 ac_tool_warned=yes ;;
2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO: checking for C compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (ac_try="$ac_compiler --version >&5"
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348 (eval "$ac_compiler --version >&5") 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352 { (ac_try="$ac_compiler -v >&5"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compiler -v >&5") 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362 { (ac_try="$ac_compiler -V >&5"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compiler -V >&5") 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2373 cat >conftest.$ac_ext <<_ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2388 ac_clean_files_save=$ac_clean_files
2389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390 # Try to create an executable without -o first, disregard a.out.
2391 # It will help us diagnose broken compilers, and finding out an intuition
2393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2395 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2397 # List of possible output files, starting from the most likely.
2398 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399 # only as a last resort. b.out is created by i960 compilers.
2400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2402 # The IRIX 6 linker writes into existing files which may not be
2403 # executable, retaining their permissions. Remove them first so a
2404 # subsequent execution test works.
2406 for ac_file in $ac_files
2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2415 if { (ac_try="$ac_link_default"
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_link_default") 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
2425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2428 # so that the user can short-circuit this test for compilers unknown to
2430 for ac_file in $ac_files ''
2432 test -f "$ac_file" || continue
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2437 # We found the default executable, but exeext='' is most
2441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 # We set ac_cv_exeext here because the later test for it is not
2446 # safe: cross compilers may not add the suffix if given an `-o'
2447 # argument, so we may need to know it at that point already.
2448 # Even if this section looks crufty: it has the advantage of
2455 test "$ac_cv_exeext" = no && ac_cv_exeext=
2461 { echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6; }
2463 if test -z "$ac_file"; then
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&2;}
2471 { (exit 77); exit 77; }; }
2474 ac_exeext=$ac_cv_exeext
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481 # If not cross compiling, check that we can run a simple program.
2482 if test "$cross_compiling" != yes; then
2483 if { ac_try='./$ac_file'
2484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2495 if test "$cross_compiling" = maybe; then
2498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2508 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6; }
2520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522 if { (ac_try="$ac_link"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2536 for ac_file in conftest.exe conftest conftest.*; do
2537 test -f "$ac_file" || continue
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&2;}
2550 { (exit 1); exit 1; }; }
2553 rm -f conftest$ac_cv_exeext
2554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2557 rm -f conftest.$ac_ext
2558 EXEEXT=$ac_cv_exeext
2560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2562 if test "${ac_cv_objext+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2580 rm -f conftest.o conftest.obj
2581 if { (ac_try="$ac_compile"
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_compile") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
2591 for ac_file in conftest.o conftest.obj conftest.*; do
2592 test -f "$ac_file" || continue;
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2612 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6; }
2614 OBJEXT=$ac_cv_objext
2616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2670 GCC=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CFLAGS=${CFLAGS+set}
2672 ac_save_CFLAGS=$CFLAGS
2673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_cc_g+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 ac_save_c_werror_flag=$ac_c_werror_flag
2679 ac_c_werror_flag=yes
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 ac_c_werror_flag=$ac_save_c_werror_flag
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 ac_c_werror_flag=$ac_save_c_werror_flag
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2810 if test "$ac_test_CFLAGS" = set; then
2811 CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813 if test "$GCC" = yes; then
2819 if test "$GCC" = yes; then
2825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_cc_c89+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 ac_cv_prog_cc_c89=no
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2856 s = g (p, va_arg (v,int));
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2862 function prototypes and stuff, but not '\xHH' hex character constants.
2863 These don't provoke an error unfortunately, instead are silently treated
2864 as 'x'. The following induces an error, until -std is added to get
2865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2866 array size at least. It's necessary to write '\x00'==0 to get something
2867 that's true only with -std. */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871 inside strings and character constants. */
2873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && {
2907 test -z "$ac_c_werror_flag" ||
2908 test ! -s conftest.err
2909 } && test -s conftest.$ac_objext; then
2910 ac_cv_prog_cc_c89=$ac_arg
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2918 rm -f core conftest.err conftest.$ac_objext
2919 test "x$ac_cv_prog_cc_c89" != "xno" && break
2921 rm -f conftest.$ac_ext
2926 case "x$ac_cv_prog_cc_c89" in
2928 { echo "$as_me:$LINENO: result: none needed" >&5
2929 echo "${ECHO_T}none needed" >&6; } ;;
2931 { echo "$as_me:$LINENO: result: unsupported" >&5
2932 echo "${ECHO_T}unsupported" >&6; } ;;
2934 CC="$CC $ac_cv_prog_cc_c89"
2935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2953 # On Suns, sometimes $CPP names a directory.
2954 if test -n "$CPP" && test -d "$CPP"; then
2957 if test -z "$CPP"; then
2958 if test "${ac_cv_prog_CPP+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 # Double quotes because CPP needs to be expanded
2962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965 for ac_c_preproc_warn_flag in '' yes
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970 # <limits.h> exists even on freestanding compilers.
2971 # On the NeXT, cc -E runs the code through the compiler's parser,
2972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2980 # include <limits.h>
2982 # include <assert.h>
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null && {
2999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Broken: fails on valid input.
3011 rm -f conftest.err conftest.$ac_ext
3013 # OK, works on sane cases. Now check whether nonexistent headers
3014 # can be detected and how.
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #include <ac_nonexistent.h>
3023 if { (ac_try="$ac_cpp conftest.$ac_ext"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null && {
3036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3039 # Broken: success on invalid input.
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Passes both tests.
3050 rm -f conftest.err conftest.$ac_ext
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3067 { echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6; }
3070 for ac_c_preproc_warn_flag in '' yes
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 # include <limits.h>
3087 # include <assert.h>
3091 if { (ac_try="$ac_cpp conftest.$ac_ext"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3144 # Broken: success on invalid input.
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Passes both tests.
3155 rm -f conftest.err conftest.$ac_ext
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&2;}
3167 { (exit 1); exit 1; }; }
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 # Check whether --with-linker was given.
3178 if test "${with_linker+set}" = set; then
3179 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180 echo "${ECHO_T}LD=$withval" >&6; }
3183 if test -z "$LD" ; then LD=$CC; fi
3184 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185 echo "${ECHO_T}LD defaults to $LD" >&6; }
3190 # Check whether --with-ccopts was given.
3191 if test "${with_ccopts+set}" = set; then
3192 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 # Extract the first word of "grep ggrep" to use in msg output
3204 if test -z "$GREP"; then
3205 set dummy grep ggrep; ac_prog_name=$2
3206 if test "${ac_cv_path_GREP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_path_GREP_found=false
3210 # Loop through the user's path and test for each of PROGNAME-LIST
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in grep ggrep; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3220 # Check for GNU ac_path_GREP and select it if it is found.
3221 # Check for GNU $ac_path_GREP
3222 case `"$ac_path_GREP" --version 2>&1` in
3224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230 cat "conftest.in" "conftest.in" >"conftest.tmp"
3231 mv "conftest.tmp" "conftest.in"
3232 cp "conftest.in" "conftest.nl"
3233 echo 'GREP' >> "conftest.nl"
3234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236 ac_count=`expr $ac_count + 1`
3237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238 # Best one so far, save it but keep looking for a better one
3239 ac_cv_path_GREP="$ac_path_GREP"
3240 ac_path_GREP_max=$ac_count
3242 # 10*(2^10) chars as input seems more than enough
3243 test $ac_count -gt 10 && break
3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3249 $ac_path_GREP_found && break 3
3259 GREP="$ac_cv_path_GREP"
3260 if test -z "$GREP"; then
3261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263 { (exit 1); exit 1; }; }
3267 ac_cv_path_GREP=$GREP
3272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274 GREP="$ac_cv_path_GREP"
3277 { echo "$as_me:$LINENO: checking for egrep" >&5
3278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279 if test "${ac_cv_path_EGREP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283 then ac_cv_path_EGREP="$GREP -E"
3285 # Extract the first word of "egrep" to use in msg output
3286 if test -z "$EGREP"; then
3287 set dummy egrep; ac_prog_name=$2
3288 if test "${ac_cv_path_EGREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 ac_path_EGREP_found=false
3292 # Loop through the user's path and test for each of PROGNAME-LIST
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297 test -z "$as_dir" && as_dir=.
3298 for ac_prog in egrep; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3302 # Check for GNU ac_path_EGREP and select it if it is found.
3303 # Check for GNU $ac_path_EGREP
3304 case `"$ac_path_EGREP" --version 2>&1` in
3306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 cat "conftest.in" "conftest.in" >"conftest.tmp"
3313 mv "conftest.tmp" "conftest.in"
3314 cp "conftest.in" "conftest.nl"
3315 echo 'EGREP' >> "conftest.nl"
3316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318 ac_count=`expr $ac_count + 1`
3319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320 # Best one so far, save it but keep looking for a better one
3321 ac_cv_path_EGREP="$ac_path_EGREP"
3322 ac_path_EGREP_max=$ac_count
3324 # 10*(2^10) chars as input seems more than enough
3325 test $ac_count -gt 10 && break
3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331 $ac_path_EGREP_found && break 3
3341 EGREP="$ac_cv_path_EGREP"
3342 if test -z "$EGREP"; then
3343 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345 { (exit 1); exit 1; }; }
3349 ac_cv_path_EGREP=$EGREP
3355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357 EGREP="$ac_cv_path_EGREP"
3360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3393 grep -v '^ *+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3401 ac_cv_header_stdc=yes
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 ac_cv_header_stdc=no
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 if test $ac_cv_header_stdc = yes; then
3412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 $EGREP "memchr" >/dev/null 2>&1; then
3426 ac_cv_header_stdc=no
3432 if test $ac_cv_header_stdc = yes; then
3433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444 $EGREP "free" >/dev/null 2>&1; then
3447 ac_cv_header_stdc=no
3453 if test $ac_cv_header_stdc = yes; then
3454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455 if test "$cross_compiling" = yes; then
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3466 #if ((' ' & 0x0FF) == 0x020)
3467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470 # define ISLOWER(c) \
3471 (('a' <= (c) && (c) <= 'i') \
3472 || ('j' <= (c) && (c) <= 'r') \
3473 || ('s' <= (c) && (c) <= 'z'))
3474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3482 for (i = 0; i < 256; i++)
3483 if (XOR (islower (i), ISLOWER (i))
3484 || toupper (i) != TOUPPER (i))
3489 rm -f conftest$ac_exeext
3490 if { (ac_try="$ac_link"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_link") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_try") 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3511 echo "$as_me: program exited with status $ac_status" >&5
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_cv_header_stdc=no
3518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3526 if test $ac_cv_header_stdc = yes; then
3528 cat >>confdefs.h <<\_ACEOF
3529 #define STDC_HEADERS 1
3534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545 inttypes.h stdint.h unistd.h
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 $ac_includes_default
3561 #include <$ac_header>
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3580 eval "$as_ac_Header=yes"
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 eval "$as_ac_Header=no"
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_res=`eval echo '${'$as_ac_Header'}'`
3591 { echo "$as_me:$LINENO: result: $ac_res" >&5
3592 echo "${ECHO_T}$ac_res" >&6; }
3593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594 cat >>confdefs.h <<_ACEOF
3595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3603 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3612 # Is the header compilable?
3613 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 $ac_includes_default
3622 #include <linux/fs.h>
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1 >conftest.err
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3641 ac_header_compiler=yes
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 ac_header_compiler=no
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651 echo "${ECHO_T}$ac_header_compiler" >&6; }
3653 # Is the header present?
3654 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #include <linux/fs.h>
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null && {
3677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3680 ac_header_preproc=yes
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 ac_header_preproc=no
3688 rm -f conftest.err conftest.$ac_ext
3689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6; }
3692 # So? What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699 ac_header_preproc=yes
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3717 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3719 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_cv_header_linux_fs_h=$ac_header_preproc
3724 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3728 if test $ac_cv_header_linux_fs_h = yes; then
3735 if test "$linux_headers" != yes; then
3736 LINUX_INCLUDE='-I$(top_builddir)/include'
3739 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3741 if test "$GCC" = yes
3744 alpha) addcflags="-mieee" ;;
3747 if test "x$addcflags" != x
3749 { echo "$as_me:$LINENO: result: $addcflags" >&5
3750 echo "${ECHO_T}$addcflags" >&6; }
3751 CFLAGS="$addcflags $CFLAGS"
3753 { echo "$as_me:$LINENO: result: (none)" >&5
3754 echo "${ECHO_T}(none)" >&6; }
3760 # Check whether --with-ldopts was given.
3761 if test "${with_ldopts+set}" = set; then
3762 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3770 # Check whether --with-root-prefix was given.
3771 if test "${with_root_prefix+set}" = set; then
3772 withval=$with_root_prefix; root_prefix=$withval
3776 # Check whether --enable-maintainer-mode was given.
3777 if test "${enable_maintainer_mode+set}" = set; then
3778 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3781 echo "Disabling maintainer mode"
3784 echo "Enabling maintainer mode"
3789 echo "Disabling maintainer mode by default"
3794 # Check whether --enable-compression was given.
3795 if test "${enable_compression+set}" = set; then
3796 enableval=$enable_compression; if test "$enableval" = "no"
3798 echo "Disabling compression support"
3800 cat >>confdefs.h <<\_ACEOF
3801 #define ENABLE_COMPRESSION 1
3804 echo "Enabling compression support"
3805 echo "WARNING: Compression support is experimental"
3809 echo "Disabling compression support by default"
3813 # Check whether --enable-htree was given.
3814 if test "${enable_htree+set}" = set; then
3815 enableval=$enable_htree; if test "$enableval" = "no"
3818 echo "Disabling htree directory support"
3821 cat >>confdefs.h <<\_ACEOF
3822 #define ENABLE_HTREE 1
3825 echo "Enabling htree directory support"
3830 cat >>confdefs.h <<\_ACEOF
3831 #define ENABLE_HTREE 1
3834 echo "Enabling htree directory support by default"
3839 E2_PKG_CONFIG_STATIC=--static
3840 # Check whether --enable-elf-shlibs was given.
3841 if test "${enable_elf_shlibs+set}" = set; then
3842 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3845 MAKEFILE_ELF=/dev/null
3846 echo "Disabling ELF shared libraries"
3848 E2_PKG_CONFIG_STATIC=
3850 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3853 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3858 echo "Enabling ELF shared libraries"
3862 MAKEFILE_ELF=/dev/null
3864 echo "Disabling ELF shared libraries by default"
3870 # Check whether --enable-bsd-shlibs was given.
3871 if test "${enable_bsd_shlibs+set}" = set; then
3872 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3875 MAKEFILE_BSDLIB=/dev/null
3876 echo "Disabling BSD shared libraries"
3878 E2_PKG_CONFIG_STATIC=
3880 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3884 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3888 echo "Enabling BSD shared libraries"
3892 MAKEFILE_BSDLIB=/dev/null
3894 echo "Disabling BSD shared libraries by default"
3900 # Check whether --enable-profile was given.
3901 if test "${enable_profile+set}" = set; then
3902 enableval=$enable_profile; if test "$enableval" = "no"
3905 MAKEFILE_PROFILE=/dev/null
3906 echo "Disabling profiling libraries"
3909 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3910 PROFILED_LIB_EXT=_p.a
3911 echo "Building profiling libraries"
3916 MAKEFILE_PROFILE=/dev/null
3917 echo "Disabling profiling libraries by default"
3923 # Check whether --enable-checker was given.
3924 if test "${enable_checker+set}" = set; then
3925 enableval=$enable_checker; if test "$enableval" = "no"
3928 MAKEFILE_CHECKER=/dev/null
3929 echo "Disabling checker libraries"
3932 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3933 echo "Building checker libraries"
3938 MAKEFILE_CHECKER=/dev/null
3939 echo "Disabling checker libraries by default"
3948 # Check whether --enable-jbd-debug was given.
3949 if test "${enable_jbd_debug+set}" = set; then
3950 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3952 echo "Disabling journal debugging"
3954 cat >>confdefs.h <<\_ACEOF
3955 #define CONFIG_JBD_DEBUG 1
3958 echo "Enabling journal debugging"
3962 echo "Disabling journal debugging by default"
3966 # Check whether --enable-blkid-debug was given.
3967 if test "${enable_blkid_debug+set}" = set; then
3968 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3970 echo "Disabling blkid debugging"
3972 cat >>confdefs.h <<\_ACEOF
3973 #define CONFIG_BLKID_DEBUG 1
3976 echo "Enabling blkid debugging"
3980 echo "Disabling blkid debugging by default"
3984 # Check whether --enable-testio-debug was given.
3985 if test "${enable_testio_debug+set}" = set; then
3986 enableval=$enable_testio_debug; if test "$enableval" = "no"
3988 echo "Disabling testio debugging"
3990 cat >>confdefs.h <<\_ACEOF
3991 #define CONFIG_TESTIO_DEBUG 1
3994 echo "Enabling testio debugging"
3998 echo "Disabling testio debugging by default"
4002 # Check whether --enable-debugfs was given.
4003 if test "${enable_debugfs+set}" = set; then
4004 enableval=$enable_debugfs; if test "$enableval" = "no"
4006 echo "Disabling debugfs support"
4010 echo "Enabling debugfs support"
4014 echo "Enabling debugfs support by default"
4020 # Check whether --enable-imager was given.
4021 if test "${enable_imager+set}" = set; then
4022 enableval=$enable_imager; if test "$enableval" = "no"
4024 echo "Disabling e2image support"
4028 echo "Enabling e2image support"
4032 echo "Enabling e2image support by default"
4038 # Check whether --enable-resizer was given.
4039 if test "${enable_resizer+set}" = set; then
4040 enableval=$enable_resizer; if test "$enableval" = "no"
4042 echo "Disabling e2resize support"
4046 echo "Enabling e2resize support"
4050 echo "Enabling e2resize support by default"
4056 # Check whether --enable-fsck was given.
4057 if test "${enable_fsck+set}" = set; then
4058 enableval=$enable_fsck; if test "$enableval" = "no"
4060 FSCK_PROG='' FSCK_MAN=''
4061 echo "Not building fsck wrapper"
4063 FSCK_PROG=fsck FSCK_MAN=fsck.8
4064 echo "Building fsck wrapper"
4070 FSCK_PROG='' FSCK_MAN=''
4071 echo "Not building fsck wrapper by default"
4074 FSCK_PROG=fsck FSCK_MAN=fsck.8
4075 echo "Building fsck wrapper by default"
4082 # Check whether --enable-e2initrd-helper was given.
4083 if test "${enable_e2initrd_helper+set}" = set; then
4084 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4086 E2INITRD_PROG='' E2INITRD_MAN=''
4087 echo "Not building e2initrd helper"
4089 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4090 echo "Building e2initrd helper"
4094 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4095 echo "Building e2initrd helper by default"
4101 STATIC_BLKID_DEVMAPPER_LIBS=''
4102 # Check whether --enable-blkid-devmapper was given.
4103 if test "${enable_blkid_devmapper+set}" = set; then
4104 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4106 echo "Disabling device-mapper support"
4109 STATIC_DEVMAPPER_LIBS=''
4111 cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_DEVMAPPER 1
4115 echo "Enabling device-mapper support"
4119 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4120 if test -n "$ac_tool_prefix"; then
4121 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4152 if test -n "$PKG_CONFIG"; then
4153 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4154 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4156 { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4162 if test -z "$ac_cv_path_PKG_CONFIG"; then
4163 ac_pt_PKG_CONFIG=$PKG_CONFIG
4164 # Extract the first word of "pkg-config", so it can be a program name with args.
4165 set dummy pkg-config; ac_word=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 case $ac_pt_PKG_CONFIG in
4173 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4195 if test -n "$ac_pt_PKG_CONFIG"; then
4196 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4197 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4199 { echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6; }
4203 if test "x$ac_pt_PKG_CONFIG" = x; then
4206 case $cross_compiling:$ac_tool_warned in
4208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4209 whose name does not start with the host triplet. If you think this
4210 configuration is useful to you, please write to autoconf@gnu.org." >&5
4211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4212 whose name does not start with the host triplet. If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4214 ac_tool_warned=yes ;;
4216 PKG_CONFIG=$ac_pt_PKG_CONFIG
4219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4223 if test -n "$PKG_CONFIG"; then
4224 _pkg_min_version=0.9.0
4225 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4226 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4227 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4228 { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4238 if test -z "$PKG_CONFIG"; then
4239 echo "pkg-config not installed; please install it."
4243 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4244 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4245 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 ac_check_lib_save_LIBS=$LIBS
4249 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 /* Override any GCC internal prototype to avoid an error.
4258 Use char because int might match the return type of a GCC
4259 builtin and then its argument prototype would still apply. */
4263 char dm_tree_create ();
4267 return dm_tree_create ();
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest$ac_exeext &&
4289 $as_test_x conftest$ac_exeext; then
4290 ac_cv_lib_devmapper_dm_tree_create=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_lib_devmapper_dm_tree_create=no
4298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext conftest.$ac_ext
4300 LIBS=$ac_check_lib_save_LIBS
4302 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4303 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4304 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4305 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4306 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4307 DEVMAPPER_REQ="devmapper";
4308 DEVMAPPER_PC_LIBS="-ldevmapper"
4310 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4311 echo "$as_me: error: device-mapper library not found" >&2;}
4312 { (exit 1); exit 1; }; }
4315 # work around stupid devmapper.pc bug in Debian
4316 case "$STATIC_DEVMAPPER_LIBS" in
4320 echo "Working around Debian bug #390243..."
4321 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4324 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4325 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4326 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4331 echo "Disabling device-mapper support by default"
4340 # Check whether --enable-tls was given.
4341 if test "${enable_tls+set}" = set; then
4342 enableval=$enable_tls; if test "$enableval" = "no"
4345 echo "Disabling thread local support"
4348 echo "Enabling thread local support"
4353 echo "Try using thread local support by default"
4357 if test "$try_tls" = "yes"
4360 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4361 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4362 if test "${ac_cv_tls+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ax_tls_keywords="__thread __declspec(thread) none"
4367 for ax_tls_keyword in $ax_tls_keywords; do
4368 case $ax_tls_keyword in
4369 none) ac_cv_tls=none ; break ;;
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4380 static $ax_tls_keyword int bar;
4391 rm -f conftest.$ac_objext
4392 if { (ac_try="$ac_compile"
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_compile") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
4408 ac_cv_tls=$ax_tls_keyword ; break
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 if test "$ac_cv_tls" != "none"; then
4426 cat >>confdefs.h <<_ACEOF
4427 #define TLS $ac_cv_tls
4431 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4432 echo "${ECHO_T}$ac_cv_tls" >&6; }
4435 # Check whether --enable-uuidd was given.
4436 if test "${enable_uuidd+set}" = set; then
4437 enableval=$enable_uuidd; if test "$enableval" = "no"
4439 echo "Not building uuidd"
4442 cat >>confdefs.h <<\_ACEOF
4447 echo "Building uuidd"
4451 cat >>confdefs.h <<\_ACEOF
4456 echo "Building uuidd by default"
4461 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4463 GETTEXT_PACKAGE=e2fsprogs
4465 VERSION="$E2FSPROGS_VERSION"
4467 cat >>confdefs.h <<_ACEOF
4468 #define PACKAGE "$PACKAGE"
4471 cat >>confdefs.h <<_ACEOF
4472 #define VERSION "$VERSION"
4479 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4481 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 cat >conftest.make <<\_ACEOF
4488 @echo '@@@%%%=$(MAKE)=@@@%%%'
4490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4493 eval ac_cv_prog_make_${ac_make}_set=yes;;
4495 eval ac_cv_prog_make_${ac_make}_set=no;;
4499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4500 { echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 SET_MAKE="MAKE=${MAKE-make}"
4509 # Find a good install program. We prefer a C program (faster),
4510 # so one script is as good as another. But avoid the broken or
4511 # incompatible versions:
4512 # SysV /etc/install, /usr/sbin/install
4513 # SunOS /usr/etc/install
4514 # IRIX /sbin/install
4516 # AmigaOS /C/install, which installs bootblocks on floppy discs
4517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4520 # OS/2's system install, which has a completely different semantic
4521 # ./install, which can be erroneously created by make from ./install.sh.
4522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4524 if test -z "$INSTALL"; then
4525 if test "${ac_cv_path_install+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 # Account for people who put trailing slashes in PATH elements.
4535 ./ | .// | /cC/* | \
4536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4537 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4540 # OSF1 and SCO ODT 3.0 have their own names for install.
4541 # Don't use installbsd from OSF since it installs stuff as root
4543 for ac_prog in ginstall scoinst install; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4546 if test $ac_prog = install &&
4547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4548 # AIX install. It has an incompatible calling convention.
4550 elif test $ac_prog = install &&
4551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4552 # program-specific install script used by HP pwplus--don't use.
4555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4568 if test "${ac_cv_path_install+set}" = set; then
4569 INSTALL=$ac_cv_path_install
4571 # As a last resort, use the slow shell script. Don't cache a
4572 # value for INSTALL within a source directory, because that will
4573 # break other packages using the cache if that directory is
4574 # removed, or if the value is a relative name.
4575 INSTALL=$ac_install_sh
4578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4579 echo "${ECHO_T}$INSTALL" >&6; }
4581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4582 # It thinks the first close brace ends the variable substitution.
4583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4591 if test -n "$ac_aux_dir"; then
4592 case "$ac_aux_dir" in
4593 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4594 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4597 if test -z "$MKINSTALLDIRS"; then
4598 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4603 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4604 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4605 # Check whether --enable-nls was given.
4606 if test "${enable_nls+set}" = set; then
4607 enableval=$enable_nls; USE_NLS=$enableval
4612 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4613 echo "${ECHO_T}$USE_NLS" >&6; }
4620 # Prepare PATH_SEPARATOR.
4621 # The user is always right.
4622 if test "${PATH_SEPARATOR+set}" != set; then
4623 echo "#! /bin/sh" >conf$$.sh
4624 echo "exit 0" >>conf$$.sh
4626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4634 # Find out how to test for executable files. Don't use a zero-byte file,
4635 # as systems may use methods other than mode bits to determine executability.
4636 cat >conf$$.file <<_ASEOF
4640 chmod +x conf$$.file
4641 if test -x conf$$.file >/dev/null 2>&1; then
4642 ac_executable_p="test -x"
4644 ac_executable_p="test -f"
4648 # Extract the first word of "msgfmt", so it can be a program name with args.
4649 set dummy msgfmt; ac_word=$2
4650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652 if test "${ac_cv_path_MSGFMT+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4660 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4661 for ac_dir in $PATH; do
4663 test -z "$ac_dir" && ac_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4666 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4667 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4668 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4679 MSGFMT="$ac_cv_path_MSGFMT"
4680 if test "$MSGFMT" != ":"; then
4681 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4682 echo "${ECHO_T}$MSGFMT" >&6; }
4684 { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4688 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4689 set dummy gmsgfmt; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4719 GMSGFMT=$ac_cv_path_GMSGFMT
4720 if test -n "$GMSGFMT"; then
4721 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4722 echo "${ECHO_T}$GMSGFMT" >&6; }
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4731 # Prepare PATH_SEPARATOR.
4732 # The user is always right.
4733 if test "${PATH_SEPARATOR+set}" != set; then
4734 echo "#! /bin/sh" >conf$$.sh
4735 echo "exit 0" >>conf$$.sh
4737 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4745 # Find out how to test for executable files. Don't use a zero-byte file,
4746 # as systems may use methods other than mode bits to determine executability.
4747 cat >conf$$.file <<_ASEOF
4751 chmod +x conf$$.file
4752 if test -x conf$$.file >/dev/null 2>&1; then
4753 ac_executable_p="test -x"
4755 ac_executable_p="test -f"
4759 # Extract the first word of "xgettext", so it can be a program name with args.
4760 set dummy xgettext; ac_word=$2
4761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4763 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4768 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4771 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4772 for ac_dir in $PATH; do
4774 test -z "$ac_dir" && ac_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4777 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4778 (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
4779 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4790 XGETTEXT="$ac_cv_path_XGETTEXT"
4791 if test "$XGETTEXT" != ":"; then
4792 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4793 echo "${ECHO_T}$XGETTEXT" >&6; }
4795 { echo "$as_me:$LINENO: result: no" >&5
4796 echo "${ECHO_T}no" >&6; }
4802 # Prepare PATH_SEPARATOR.
4803 # The user is always right.
4804 if test "${PATH_SEPARATOR+set}" != set; then
4805 echo "#! /bin/sh" >conf$$.sh
4806 echo "exit 0" >>conf$$.sh
4808 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4816 # Find out how to test for executable files. Don't use a zero-byte file,
4817 # as systems may use methods other than mode bits to determine executability.
4818 cat >conf$$.file <<_ASEOF
4822 chmod +x conf$$.file
4823 if test -x conf$$.file >/dev/null 2>&1; then
4824 ac_executable_p="test -x"
4826 ac_executable_p="test -f"
4830 # Extract the first word of "msgmerge", so it can be a program name with args.
4831 set dummy msgmerge; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4842 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4843 for ac_dir in $PATH; do
4845 test -z "$ac_dir" && ac_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4848 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4849 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4856 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4860 MSGMERGE="$ac_cv_path_MSGMERGE"
4861 if test "$MSGMERGE" != ":"; then
4862 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4863 echo "${ECHO_T}$MSGMERGE" >&6; }
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4870 if test "$GMSGFMT" != ":"; then
4871 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4872 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4875 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4876 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4877 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4882 if test "$XGETTEXT" != ":"; then
4883 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4884 (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
4887 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4888 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4894 ac_config_commands="$ac_config_commands default-1"
4897 if test -n "$ac_tool_prefix"; then
4898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_prog_RANLIB+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 if test -n "$RANLIB"; then
4906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 RANLIB=$ac_cv_prog_RANLIB
4926 if test -n "$RANLIB"; then
4927 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4928 echo "${ECHO_T}$RANLIB" >&6; }
4930 { echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6; }
4936 if test -z "$ac_cv_prog_RANLIB"; then
4937 ac_ct_RANLIB=$RANLIB
4938 # Extract the first word of "ranlib", so it can be a program name with args.
4939 set dummy ranlib; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test -n "$ac_ct_RANLIB"; then
4946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_prog_ac_ct_RANLIB="ranlib"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4966 if test -n "$ac_ct_RANLIB"; then
4967 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4968 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4974 if test "x$ac_ct_RANLIB" = x; then
4977 case $cross_compiling:$ac_tool_warned in
4979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4980 whose name does not start with the host triplet. If you think this
4981 configuration is useful to you, please write to autoconf@gnu.org." >&5
4982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4983 whose name does not start with the host triplet. If you think this
4984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4985 ac_tool_warned=yes ;;
4987 RANLIB=$ac_ct_RANLIB
4990 RANLIB="$ac_cv_prog_RANLIB"
4994 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4995 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4996 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_check_lib_save_LIBS=$LIBS
5000 LIBS="-lcposix $LIBS"
5001 cat >conftest.$ac_ext <<_ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5008 /* Override any GCC internal prototype to avoid an error.
5009 Use char because int might match the return type of a GCC
5010 builtin and then its argument prototype would still apply. */
5023 rm -f conftest.$ac_objext conftest$ac_exeext
5024 if { (ac_try="$ac_link"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_link") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest$ac_exeext &&
5040 $as_test_x conftest$ac_exeext; then
5041 ac_cv_lib_cposix_strerror=yes
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 ac_cv_lib_cposix_strerror=no
5049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5050 conftest$ac_exeext conftest.$ac_ext
5051 LIBS=$ac_check_lib_save_LIBS
5053 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5054 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5055 if test $ac_cv_lib_cposix_strerror = yes; then
5056 LIBS="$LIBS -lcposix"
5061 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5062 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5063 if test "${ac_cv_c_const+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5076 /* FIXME: Include the comments suggested by Paul. */
5078 /* Ultrix mips cc rejects this. */
5079 typedef int charset[2];
5081 /* SunOS 4.1.1 cc rejects this. */
5082 char const *const *pcpcc;
5084 /* NEC SVR4.0.2 mips cc rejects this. */
5085 struct point {int x, y;};
5086 static struct point const zero = {0,0};
5087 /* AIX XL C 1.02.0.0 rejects this.
5088 It does not let you subtract one const X* pointer from another in
5089 an arm of an if-expression whose if-part is not a constant
5091 const char *g = "string";
5092 pcpcc = &g + (g ? g-g : 0);
5093 /* HPUX 7.0 cc rejects these. */
5095 ppc = (char**) pcpcc;
5096 pcpcc = (char const *const *) ppc;
5097 { /* SCO 3.2v4 cc rejects this. */
5099 char const *s = 0 ? (char *) 0 : (char const *) 0;
5104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5106 const int *foo = &x[0];
5109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5110 typedef const int *iptr;
5114 { /* AIX XL C 1.02.0.0 rejects this saying
5115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5116 struct s { int j; const int *ap[3]; };
5117 struct s *b; b->j = 5;
5119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5123 return !cs[0] && !zero.x;
5130 rm -f conftest.$ac_objext
5131 if { (ac_try="$ac_compile"
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_compile") 2>conftest.er1
5139 grep -v '^ *+' conftest.er1 >conftest.err
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } && {
5144 test -z "$ac_c_werror_flag" ||
5145 test ! -s conftest.err
5146 } && test -s conftest.$ac_objext; then
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5158 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5159 if test $ac_cv_c_const = no; then
5161 cat >>confdefs.h <<\_ACEOF
5168 { echo "$as_me:$LINENO: checking for signed" >&5
5169 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5170 if test "${bh_cv_c_signed+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5216 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5217 if test $bh_cv_c_signed = no; then
5219 cat >>confdefs.h <<\_ACEOF
5225 { echo "$as_me:$LINENO: checking for inline" >&5
5226 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5227 if test "${ac_cv_c_inline+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 for ac_kw in inline __inline__ __inline; do
5232 cat >conftest.$ac_ext <<_ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5240 static $ac_kw foo_t static_foo () {return 0; }
5241 $ac_kw foo_t foo () {return 0; }
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5254 grep -v '^ *+' conftest.er1 >conftest.err
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_c_inline=$ac_kw
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 test "$ac_cv_c_inline" != no && break
5275 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5276 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5279 case $ac_cv_c_inline in
5282 case $ac_cv_c_inline in
5284 *) ac_val=$ac_cv_c_inline;;
5286 cat >>confdefs.h <<_ACEOF
5288 #define inline $ac_val
5294 { echo "$as_me:$LINENO: checking for off_t" >&5
5295 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5296 if test "${ac_cv_type_off_t+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 cat >conftest.$ac_ext <<_ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305 $ac_includes_default
5306 typedef off_t ac__type_new_;
5310 if ((ac__type_new_ *) 0)
5312 if (sizeof (ac__type_new_))
5318 rm -f conftest.$ac_objext
5319 if { (ac_try="$ac_compile"
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5335 ac_cv_type_off_t=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5345 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5346 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5347 if test $ac_cv_type_off_t = yes; then
5351 cat >>confdefs.h <<_ACEOF
5352 #define off_t long int
5357 { echo "$as_me:$LINENO: checking for size_t" >&5
5358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5359 if test "${ac_cv_type_size_t+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 $ac_includes_default
5369 typedef size_t ac__type_new_;
5373 if ((ac__type_new_ *) 0)
5375 if (sizeof (ac__type_new_))
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.$ac_objext; then
5398 ac_cv_type_size_t=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_cv_type_size_t=no
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5410 if test $ac_cv_type_size_t = yes; then
5414 cat >>confdefs.h <<_ACEOF
5415 #define size_t unsigned int
5421 { echo "$as_me:$LINENO: checking for long long" >&5
5422 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5423 if test "${ac_cv_type_long_long+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 long long ll = 1LL; int i = 63;
5436 long long llmax = (long long) -1;
5437 return ll << i | ll >> i | llmax / ll | llmax % ll;
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (ac_try="$ac_link"
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_link") 2>conftest.er1
5451 grep -v '^ *+' conftest.er1 >conftest.err
5453 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && {
5456 test -z "$ac_c_werror_flag" ||
5457 test ! -s conftest.err
5458 } && test -s conftest$ac_exeext &&
5459 $as_test_x conftest$ac_exeext; then
5460 ac_cv_type_long_long=yes
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 ac_cv_type_long_long=no
5468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5469 conftest$ac_exeext conftest.$ac_ext
5471 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5472 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5473 if test $ac_cv_type_long_long = yes; then
5475 cat >>confdefs.h <<\_ACEOF
5476 #define HAVE_LONG_LONG 1
5482 { echo "$as_me:$LINENO: checking for long double" >&5
5483 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5484 if test "${gt_cv_c_long_double+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 if test "$GCC" = yes; then
5488 gt_cv_c_long_double=yes
5490 cat >conftest.$ac_ext <<_ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5497 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5498 long double foo = 0.0;
5499 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5500 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
5519 grep -v '^ *+' conftest.er1 >conftest.err
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
5527 gt_cv_c_long_double=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 gt_cv_c_long_double=no
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5538 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5539 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5540 if test $gt_cv_c_long_double = yes; then
5542 cat >>confdefs.h <<\_ACEOF
5543 #define HAVE_LONG_DOUBLE 1
5549 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5550 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5551 if test "${gt_cv_c_wchar_t+set}" = set; then
5552 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 cat >conftest.$ac_ext <<_ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5561 wchar_t foo = (wchar_t)'\0';
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5598 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5599 if test $gt_cv_c_wchar_t = yes; then
5601 cat >>confdefs.h <<\_ACEOF
5602 #define HAVE_WCHAR_T 1
5608 { echo "$as_me:$LINENO: checking for wint_t" >&5
5609 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5610 if test "${gt_cv_c_wint_t+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5620 wint_t foo = (wchar_t)'\0';
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5657 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5658 if test $gt_cv_c_wint_t = yes; then
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_WINT_T 1
5667 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5668 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5669 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <sys/types.h>
5679 #include <inttypes.h>
5683 uintmax_t i = (uintmax_t) -1;
5688 rm -f conftest.$ac_objext
5689 if { (ac_try="$ac_compile"
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_compile") 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest.$ac_objext; then
5705 jm_ac_cv_header_inttypes_h=yes
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5710 jm_ac_cv_header_inttypes_h=no
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5716 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5717 if test $jm_ac_cv_header_inttypes_h = yes; then
5719 cat >>confdefs.h <<_ACEOF
5720 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5726 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5727 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5728 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 cat >conftest.$ac_ext <<_ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 #include <sys/types.h>
5742 uintmax_t i = (uintmax_t) -1;
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5756 grep -v '^ *+' conftest.er1 >conftest.err
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && {
5761 test -z "$ac_c_werror_flag" ||
5762 test ! -s conftest.err
5763 } && test -s conftest.$ac_objext; then
5764 jm_ac_cv_header_stdint_h=yes
5766 echo "$as_me: failed program was:" >&5
5767 sed 's/^/| /' conftest.$ac_ext >&5
5769 jm_ac_cv_header_stdint_h=no
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5775 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5776 if test $jm_ac_cv_header_stdint_h = yes; then
5778 cat >>confdefs.h <<_ACEOF
5779 #define HAVE_STDINT_H_WITH_UINTMAX 1
5787 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5788 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5789 if test "${gt_cv_c_intmax_t+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5801 #if HAVE_STDINT_H_WITH_UINTMAX
5804 #if HAVE_INTTYPES_H_WITH_UINTMAX
5805 #include <inttypes.h>
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1 >conftest.err
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.$ac_objext; then
5833 gt_cv_c_intmax_t=yes
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5844 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5845 if test $gt_cv_c_intmax_t = yes; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define HAVE_INTMAX_T 1
5855 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5856 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5857 if test "${gt_cv_func_printf_posix+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test "$cross_compiling" = yes; then
5863 cat >conftest.$ac_ext <<_ACEOF
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5870 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5876 $EGREP "notposix" >/dev/null 2>&1; then
5877 gt_cv_func_printf_posix="guessing no"
5879 gt_cv_func_printf_posix="guessing yes"
5885 cat >conftest.$ac_ext <<_ACEOF
5888 cat confdefs.h >>conftest.$ac_ext
5889 cat >>conftest.$ac_ext <<_ACEOF
5890 /* end confdefs.h. */
5894 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5895 dollar expansion (possibly an autoconf bug). */
5896 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5897 static char buf[100];
5900 sprintf (buf, format, 33, 55);
5901 return (strcmp (buf, "55 33") != 0);
5904 rm -f conftest$ac_exeext
5905 if { (ac_try="$ac_link"
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_link") 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5915 { (case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_try") 2>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 gt_cv_func_printf_posix=yes
5926 echo "$as_me: program exited with status $ac_status" >&5
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5931 gt_cv_func_printf_posix=no
5933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5939 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5940 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5941 case $gt_cv_func_printf_posix in
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_POSIX_PRINTF 1
5951 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5952 # for constant arguments. Useless!
5953 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5954 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5955 if test "${ac_cv_working_alloca_h+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 cat >conftest.$ac_ext <<_ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5968 char *p = (char *) alloca (2 * sizeof (int));
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest$ac_exeext &&
5991 $as_test_x conftest$ac_exeext; then
5992 ac_cv_working_alloca_h=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_working_alloca_h=no
6000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6001 conftest$ac_exeext conftest.$ac_ext
6003 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6004 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6005 if test $ac_cv_working_alloca_h = yes; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define HAVE_ALLOCA_H 1
6013 { echo "$as_me:$LINENO: checking for alloca" >&5
6014 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6015 if test "${ac_cv_func_alloca_works+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 # define alloca __builtin_alloca
6028 # include <malloc.h>
6029 # define alloca _alloca
6031 # ifdef HAVE_ALLOCA_H
6032 # include <alloca.h>
6037 # ifndef alloca /* predefined by HP cc +Olibcalls */
6048 char *p = (char *) alloca (1);
6054 rm -f conftest.$ac_objext conftest$ac_exeext
6055 if { (ac_try="$ac_link"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_link") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest$ac_exeext &&
6071 $as_test_x conftest$ac_exeext; then
6072 ac_cv_func_alloca_works=yes
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6077 ac_cv_func_alloca_works=no
6080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6081 conftest$ac_exeext conftest.$ac_ext
6083 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6084 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6086 if test $ac_cv_func_alloca_works = yes; then
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_ALLOCA 1
6093 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6094 # that cause trouble. Some versions do not even contain alloca or
6095 # contain a buggy version. If you still want to use their alloca,
6096 # use ar to extract alloca.o from them instead of compiling alloca.c.
6098 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6100 cat >>confdefs.h <<\_ACEOF
6105 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6106 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6107 if test "${ac_cv_os_cray+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #if defined CRAY && ! defined CRAY2
6123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124 $EGREP "webecray" >/dev/null 2>&1; then
6132 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6133 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6134 if test $ac_cv_os_cray = yes; then
6135 for ac_func in _getb67 GETB67 getb67; do
6136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 cat >conftest.$ac_ext <<_ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6150 #define $ac_func innocuous_$ac_func
6152 /* System header to define __stub macros and hopefully few prototypes,
6153 which can conflict with char $ac_func (); below.
6154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6155 <limits.h> exists even on freestanding compilers. */
6158 # include <limits.h>
6160 # include <assert.h>
6165 /* Override any GCC internal prototype to avoid an error.
6166 Use char because int might match the return type of a GCC
6167 builtin and then its argument prototype would still apply. */
6172 /* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
6175 #if defined __stub_$ac_func || defined __stub___$ac_func
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (ac_try="$ac_link"
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_link") 2>conftest.er1
6196 grep -v '^ *+' conftest.er1 >conftest.err
6198 cat conftest.err >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest$ac_exeext &&
6204 $as_test_x conftest$ac_exeext; then
6205 eval "$as_ac_var=yes"
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6210 eval "$as_ac_var=no"
6213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6214 conftest$ac_exeext conftest.$ac_ext
6216 ac_res=`eval echo '${'$as_ac_var'}'`
6217 { echo "$as_me:$LINENO: result: $ac_res" >&5
6218 echo "${ECHO_T}$ac_res" >&6; }
6219 if test `eval echo '${'$as_ac_var'}'` = yes; then
6221 cat >>confdefs.h <<_ACEOF
6222 #define CRAY_STACKSEG_END $ac_func
6231 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6232 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6233 if test "${ac_cv_c_stack_direction+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 if test "$cross_compiling" = yes; then
6237 ac_cv_c_stack_direction=0
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6247 find_stack_direction ()
6249 static char *addr = 0;
6254 return find_stack_direction ();
6257 return (&dummy > addr) ? 1 : -1;
6263 return find_stack_direction () < 0;
6266 rm -f conftest$ac_exeext
6267 if { (ac_try="$ac_link"
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_link") 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6277 { (case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_try") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_c_stack_direction=1
6288 echo "$as_me: program exited with status $ac_status" >&5
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6293 ac_cv_c_stack_direction=-1
6295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6300 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6301 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6303 cat >>confdefs.h <<_ACEOF
6304 #define STACK_DIRECTION $ac_cv_c_stack_direction
6312 for ac_header in stdlib.h unistd.h
6314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_res=`eval echo '${'$as_ac_Header'}'`
6322 { echo "$as_me:$LINENO: result: $ac_res" >&5
6323 echo "${ECHO_T}$ac_res" >&6; }
6325 # Is the header compilable?
6326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6328 cat >conftest.$ac_ext <<_ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h. */
6334 $ac_includes_default
6335 #include <$ac_header>
6337 rm -f conftest.$ac_objext
6338 if { (ac_try="$ac_compile"
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compile") 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest.$ac_objext; then
6354 ac_header_compiler=yes
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 ac_header_compiler=no
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6364 echo "${ECHO_T}$ac_header_compiler" >&6; }
6366 # Is the header present?
6367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6369 cat >conftest.$ac_ext <<_ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #include <$ac_header>
6377 if { (ac_try="$ac_cpp conftest.$ac_ext"
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } >/dev/null && {
6390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6393 ac_header_preproc=yes
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6398 ac_header_preproc=no
6401 rm -f conftest.err conftest.$ac_ext
6402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6403 echo "${ECHO_T}$ac_header_preproc" >&6; }
6405 # So? What about this header?
6406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6412 ac_header_preproc=yes
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 eval "$as_ac_Header=\$ac_header_preproc"
6437 ac_res=`eval echo '${'$as_ac_Header'}'`
6438 { echo "$as_me:$LINENO: result: $ac_res" >&5
6439 echo "${ECHO_T}$ac_res" >&6; }
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 for ac_func in getpagesize
6454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468 #define $ac_func innocuous_$ac_func
6470 /* System header to define __stub macros and hopefully few prototypes,
6471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6476 # include <limits.h>
6478 # include <assert.h>
6483 /* Override any GCC internal prototype to avoid an error.
6484 Use char because int might match the return type of a GCC
6485 builtin and then its argument prototype would still apply. */
6490 /* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
6493 #if defined __stub_$ac_func || defined __stub___$ac_func
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_link") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest$ac_exeext &&
6522 $as_test_x conftest$ac_exeext; then
6523 eval "$as_ac_var=yes"
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 eval "$as_ac_var=no"
6531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6532 conftest$ac_exeext conftest.$ac_ext
6534 ac_res=`eval echo '${'$as_ac_var'}'`
6535 { echo "$as_me:$LINENO: result: $ac_res" >&5
6536 echo "${ECHO_T}$ac_res" >&6; }
6537 if test `eval echo '${'$as_ac_var'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6545 { echo "$as_me:$LINENO: checking for working mmap" >&5
6546 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6547 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 if test "$cross_compiling" = yes; then
6551 ac_cv_func_mmap_fixed_mapped=no
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 $ac_includes_default
6560 /* malloc might have been renamed as rpl_malloc. */
6563 /* Thanks to Mike Haertel and Jim Avera for this test.
6564 Here is a matrix of mmap possibilities:
6565 mmap private not fixed
6566 mmap private fixed at somewhere currently unmapped
6567 mmap private fixed at somewhere already mapped
6568 mmap shared not fixed
6569 mmap shared fixed at somewhere currently unmapped
6570 mmap shared fixed at somewhere already mapped
6571 For private mappings, we should verify that changes cannot be read()
6572 back from the file, nor mmap's back from the file at a different
6573 address. (There have been systems where private was not correctly
6574 implemented like the infamous i386 svr4.0, and systems where the
6575 VM page cache was not coherent with the file system buffer cache
6576 like early versions of FreeBSD and possibly contemporary NetBSD.)
6577 For shared mappings, we should conversely verify that changes get
6578 propagated back to all the places they're supposed to be.
6580 Grep wants private fixed already mapped.
6581 The main things grep needs to know about mmap are:
6582 * does it exist and is it safe to write into the mmap'd area
6583 * how to use it (BSD variants) */
6586 #include <sys/mman.h>
6588 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6592 /* This mess was copied from the GNU getpagesize.h. */
6593 #ifndef HAVE_GETPAGESIZE
6594 /* Assume that all systems that can run configure have sys/param.h. */
6595 # ifndef HAVE_SYS_PARAM_H
6596 # define HAVE_SYS_PARAM_H 1
6599 # ifdef _SC_PAGESIZE
6600 # define getpagesize() sysconf(_SC_PAGESIZE)
6601 # else /* no _SC_PAGESIZE */
6602 # ifdef HAVE_SYS_PARAM_H
6603 # include <sys/param.h>
6604 # ifdef EXEC_PAGESIZE
6605 # define getpagesize() EXEC_PAGESIZE
6606 # else /* no EXEC_PAGESIZE */
6608 # define getpagesize() NBPG * CLSIZE
6611 # endif /* no CLSIZE */
6612 # else /* no NBPG */
6614 # define getpagesize() NBPC
6615 # else /* no NBPC */
6617 # define getpagesize() PAGESIZE
6618 # endif /* PAGESIZE */
6619 # endif /* no NBPC */
6620 # endif /* no NBPG */
6621 # endif /* no EXEC_PAGESIZE */
6622 # else /* no HAVE_SYS_PARAM_H */
6623 # define getpagesize() 8192 /* punt totally */
6624 # endif /* no HAVE_SYS_PARAM_H */
6625 # endif /* no _SC_PAGESIZE */
6627 #endif /* no HAVE_GETPAGESIZE */
6632 char *data, *data2, *data3;
6636 pagesize = getpagesize ();
6638 /* First, make a file with some known garbage in it. */
6639 data = (char *) malloc (pagesize);
6642 for (i = 0; i < pagesize; ++i)
6643 *(data + i) = rand ();
6645 fd = creat ("conftest.mmap", 0600);
6648 if (write (fd, data, pagesize) != pagesize)
6652 /* Next, try to mmap the file at a fixed address which already has
6653 something else allocated at it. If we can, also make sure that
6654 we see the same garbage. */
6655 fd = open ("conftest.mmap", O_RDWR);
6658 data2 = (char *) malloc (2 * pagesize);
6661 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6662 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6663 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6665 for (i = 0; i < pagesize; ++i)
6666 if (*(data + i) != *(data2 + i))
6669 /* Finally, make sure that changes to the mapped area do not
6670 percolate back to the file as seen by read(). (This is a bug on
6671 some variants of i386 svr4.0.) */
6672 for (i = 0; i < pagesize; ++i)
6673 *(data2 + i) = *(data2 + i) + 1;
6674 data3 = (char *) malloc (pagesize);
6677 if (read (fd, data3, pagesize) != pagesize)
6679 for (i = 0; i < pagesize; ++i)
6680 if (*(data + i) != *(data3 + i))
6686 rm -f conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_link") 2>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6697 { (case "(($ac_try" in
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702 (eval "$ac_try") 2>&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 ac_cv_func_mmap_fixed_mapped=yes
6708 echo "$as_me: program exited with status $ac_status" >&5
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6713 ac_cv_func_mmap_fixed_mapped=no
6715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6720 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6721 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6722 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6724 cat >>confdefs.h <<\_ACEOF
6732 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6733 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6734 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6744 #include <features.h>
6745 #ifdef __GNU_LIBRARY__
6746 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6754 ac_cv_gnu_library_2_1=yes
6756 ac_cv_gnu_library_2_1=no
6763 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6764 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6766 GLIBC21="$ac_cv_gnu_library_2_1"
6771 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6772 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6773 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 if test "$cross_compiling" = yes; then
6779 # Guess based on the CPU.
6781 alpha* | i3456786 | m68k | s390*)
6782 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6784 gt_cv_int_divbyzero_sigfpe="guessing no";;
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6800 sigfpe_handler (int sig)
6802 sigfpe_handler (sig) int sig;
6805 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6806 exit (sig != SIGFPE);
6816 signal (SIGFPE, sigfpe_handler);
6817 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6818 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6819 signal (SIGTRAP, sigfpe_handler);
6821 /* Linux/SPARC yields signal SIGILL. */
6822 #if defined (__sparc__) && defined (__linux__)
6823 signal (SIGILL, sigfpe_handler);
6832 rm -f conftest$ac_exeext
6833 if { (ac_try="$ac_link"
6835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_link") 2>&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6843 { (case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_try") 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 gt_cv_int_divbyzero_sigfpe=yes
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6859 gt_cv_int_divbyzero_sigfpe=no
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6868 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6869 case "$gt_cv_int_divbyzero_sigfpe" in
6874 cat >>confdefs.h <<_ACEOF
6875 #define INTDIV0_RAISES_SIGFPE $value
6880 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6881 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6882 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 cat >conftest.$ac_ext <<_ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6891 unsigned long long ull = 1ULL; int i = 63;
6895 unsigned long long ullmax = (unsigned long long) -1;
6896 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_link") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1 >conftest.err
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext &&
6918 $as_test_x conftest$ac_exeext; then
6919 ac_cv_type_unsigned_long_long=yes
6921 echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6924 ac_cv_type_unsigned_long_long=no
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928 conftest$ac_exeext conftest.$ac_ext
6930 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6931 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6932 if test $ac_cv_type_unsigned_long_long = yes; then
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_UNSIGNED_LONG_LONG 1
6943 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6945 test $ac_cv_type_unsigned_long_long = yes \
6946 && ac_type='unsigned long long' \
6947 || ac_type='unsigned long'
6949 cat >>confdefs.h <<_ACEOF
6950 #define uintmax_t $ac_type
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_UINTMAX_T 1
6962 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6963 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6964 if test "${gt_cv_header_inttypes_h+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 #include <inttypes.h>
6984 rm -f conftest.$ac_objext
6985 if { (ac_try="$ac_compile"
6987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6988 *) ac_try_echo=$ac_try;;
6990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6991 (eval "$ac_compile") 2>conftest.er1
6993 grep -v '^ *+' conftest.er1 >conftest.err
6995 cat conftest.err >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); } && {
6998 test -z "$ac_c_werror_flag" ||
6999 test ! -s conftest.err
7000 } && test -s conftest.$ac_objext; then
7001 gt_cv_header_inttypes_h=yes
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7006 gt_cv_header_inttypes_h=no
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7013 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7014 if test $gt_cv_header_inttypes_h = yes; then
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_INTTYPES_H 1
7024 if test $gt_cv_header_inttypes_h = yes; then
7025 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7026 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7027 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <inttypes.h>
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
7059 grep -v '^ *+' conftest.er1 >conftest.err
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.$ac_objext; then
7067 gt_cv_inttypes_pri_broken=no
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 gt_cv_inttypes_pri_broken=yes
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7079 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7081 if test "$gt_cv_inttypes_pri_broken" = yes; then
7083 cat >>confdefs.h <<_ACEOF
7084 #define PRI_MACROS_BROKEN 1
7091 for ac_header in stdint.h
7093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 ac_res=`eval echo '${'$as_ac_Header'}'`
7101 { echo "$as_me:$LINENO: result: $ac_res" >&5
7102 echo "${ECHO_T}$ac_res" >&6; }
7104 # Is the header compilable?
7105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 $ac_includes_default
7114 #include <$ac_header>
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7123 (eval "$ac_compile") 2>conftest.er1
7125 grep -v '^ *+' conftest.er1 >conftest.err
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } && {
7130 test -z "$ac_c_werror_flag" ||
7131 test ! -s conftest.err
7132 } && test -s conftest.$ac_objext; then
7133 ac_header_compiler=yes
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_header_compiler=no
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6; }
7145 # Is the header present?
7146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 #include <$ac_header>
7156 if { (ac_try="$ac_cpp conftest.$ac_ext"
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7164 grep -v '^ *+' conftest.er1 >conftest.err
7166 cat conftest.err >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev/null && {
7169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7172 ac_header_preproc=yes
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ac_header_preproc=no
7180 rm -f conftest.err conftest.$ac_ext
7181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182 echo "${ECHO_T}$ac_header_preproc" >&6; }
7184 # So? What about this header?
7185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191 ac_header_preproc=yes
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 eval "$as_ac_Header=\$ac_header_preproc"
7216 ac_res=`eval echo '${'$as_ac_Header'}'`
7217 { echo "$as_me:$LINENO: result: $ac_res" >&5
7218 echo "${ECHO_T}$ac_res" >&6; }
7221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7231 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7233 cat >conftest.$ac_ext <<_ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 $EGREP "Found it" >/dev/null 2>&1; then
7255 if test -z "$result"; then
7256 if test "$cross_compiling" = yes; then
7257 # Depending upon the size, compute the lo and hi bounds.
7258 cat >conftest.$ac_ext <<_ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7268 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7279 *) ac_try_echo=$ac_try;;
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
7284 grep -v '^ *+' conftest.er1 >conftest.err
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && {
7289 test -z "$ac_c_werror_flag" ||
7290 test ! -s conftest.err
7291 } && test -s conftest.$ac_objext; then
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7304 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7311 rm -f conftest.$ac_objext
7312 if { (ac_try="$ac_compile"
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_hi=$ac_mid; break
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_lo=`expr $ac_mid + 1`
7334 if test $ac_lo -le $ac_mid; then
7338 ac_mid=`expr 2 '*' $ac_mid + 1`
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 cat >conftest.$ac_ext <<_ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7357 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7364 rm -f conftest.$ac_objext
7365 if { (ac_try="$ac_compile"
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7393 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ac_lo=$ac_mid; break
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_hi=`expr '(' $ac_mid ')' - 1`
7423 if test $ac_mid -le $ac_hi; then
7427 ac_mid=`expr 2 '*' $ac_mid`
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 # Binary search between lo and hi bounds.
7444 while test "x$ac_lo" != "x$ac_hi"; do
7445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7446 cat >conftest.$ac_ext <<_ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7456 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7463 rm -f conftest.$ac_objext
7464 if { (ac_try="$ac_compile"
7466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7467 *) ac_try_echo=$ac_try;;
7469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7470 (eval "$ac_compile") 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_lo=`expr '(' $ac_mid ')' + 1`
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7502 static long int longval () { return ~(size_t)0 / 10; }
7503 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7510 FILE *f = fopen ("conftest.val", "w");
7513 if ((~(size_t)0 / 10) < 0)
7515 long int i = longval ();
7516 if (i != (~(size_t)0 / 10))
7518 fprintf (f, "%ld\n", i);
7522 unsigned long int i = ulongval ();
7523 if (i != (~(size_t)0 / 10))
7525 fprintf (f, "%lu\n", i);
7527 return ferror (f) || fclose (f) != 0;
7533 rm -f conftest$ac_exeext
7534 if { (ac_try="$ac_link"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_link") 2>&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7544 { (case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_try") 2>&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 res_hi=`cat conftest.val`
7555 echo "$as_me: program exited with status $ac_status" >&5
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7566 if test "$cross_compiling" = yes; then
7567 # Depending upon the size, compute the lo and hi bounds.
7568 cat >conftest.$ac_ext <<_ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7578 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589 *) ac_try_echo=$ac_try;;
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
7594 grep -v '^ *+' conftest.er1 >conftest.err
7596 cat conftest.err >&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.$ac_objext; then
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7614 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7628 (eval "$ac_compile") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
7638 ac_hi=$ac_mid; break
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_lo=`expr $ac_mid + 1`
7644 if test $ac_lo -le $ac_mid; then
7648 ac_mid=`expr 2 '*' $ac_mid + 1`
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7667 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7674 rm -f conftest.$ac_objext
7675 if { (ac_try="$ac_compile"
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7683 grep -v '^ *+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7703 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 ac_lo=$ac_mid; break
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_hi=`expr '(' $ac_mid ')' - 1`
7733 if test $ac_mid -le $ac_hi; then
7737 ac_mid=`expr 2 '*' $ac_mid`
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 # Binary search between lo and hi bounds.
7754 while test "x$ac_lo" != "x$ac_hi"; do
7755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7756 cat >conftest.$ac_ext <<_ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7766 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7773 rm -f conftest.$ac_objext
7774 if { (ac_try="$ac_compile"
7776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777 *) ac_try_echo=$ac_try;;
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7782 grep -v '^ *+' conftest.er1 >conftest.err
7784 cat conftest.err >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_lo=`expr '(' $ac_mid ')' + 1`
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7812 static long int longval () { return ~(size_t)0 % 10; }
7813 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7820 FILE *f = fopen ("conftest.val", "w");
7823 if ((~(size_t)0 % 10) < 0)
7825 long int i = longval ();
7826 if (i != (~(size_t)0 % 10))
7828 fprintf (f, "%ld\n", i);
7832 unsigned long int i = ulongval ();
7833 if (i != (~(size_t)0 % 10))
7835 fprintf (f, "%lu\n", i);
7837 return ferror (f) || fclose (f) != 0;
7843 rm -f conftest$ac_exeext
7844 if { (ac_try="$ac_link"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_link") 2>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 res_lo=`cat conftest.val`
7865 echo "$as_me: program exited with status $ac_status" >&5
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7876 if test "$cross_compiling" = yes; then
7877 # Depending upon the size, compute the lo and hi bounds.
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7888 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7904 grep -v '^ *+' conftest.er1 >conftest.err
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7924 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.$ac_objext; then
7948 ac_hi=$ac_mid; break
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_lo=`expr $ac_mid + 1`
7954 if test $ac_lo -le $ac_mid; then
7958 ac_mid=`expr 2 '*' $ac_mid + 1`
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7967 cat >conftest.$ac_ext <<_ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7977 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_compile") 2>conftest.er1
7993 grep -v '^ *+' conftest.er1 >conftest.err
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest.$ac_objext; then
8003 cat >conftest.$ac_ext <<_ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8013 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 ac_lo=$ac_mid; break
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_hi=`expr '(' $ac_mid ')' - 1`
8043 if test $ac_mid -le $ac_hi; then
8047 ac_mid=`expr 2 '*' $ac_mid`
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 # Binary search between lo and hi bounds.
8064 while test "x$ac_lo" != "x$ac_hi"; do
8065 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8076 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8083 rm -f conftest.$ac_objext
8084 if { (ac_try="$ac_compile"
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8092 grep -v '^ *+' conftest.er1 >conftest.err
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_lo=`expr '(' $ac_mid ')' + 1`
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 ?*) fits_in_uint=$ac_lo;;
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8122 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8123 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8130 FILE *f = fopen ("conftest.val", "w");
8133 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8135 long int i = longval ();
8136 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8138 fprintf (f, "%ld\n", i);
8142 unsigned long int i = ulongval ();
8143 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8145 fprintf (f, "%lu\n", i);
8147 return ferror (f) || fclose (f) != 0;
8153 rm -f conftest$ac_exeext
8154 if { (ac_try="$ac_link"
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_link") 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8164 { (case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_try") 2>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 fits_in_uint=`cat conftest.val`
8175 echo "$as_me: program exited with status $ac_status" >&5
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8186 if test "$fits_in_uint" = 1; then
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8195 extern unsigned long foo;
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1 >conftest.err
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.$ac_objext; then
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.$ac_ext >&5
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 if test -z "$result"; then
8233 if test "$fits_in_uint" = 1; then
8234 result="$res_hi$res_lo"U
8236 result="$res_hi$res_lo"UL
8242 { echo "$as_me:$LINENO: result: $result" >&5
8243 echo "${ECHO_T}$result" >&6; }
8244 if test "$result" != yes; then
8246 cat >>confdefs.h <<_ACEOF
8247 #define SIZE_MAX $result
8255 for ac_header in stdint.h
8257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_res=`eval echo '${'$as_ac_Header'}'`
8265 { echo "$as_me:$LINENO: result: $ac_res" >&5
8266 echo "${ECHO_T}$ac_res" >&6; }
8268 # Is the header compilable?
8269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8271 cat >conftest.$ac_ext <<_ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 $ac_includes_default
8278 #include <$ac_header>
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_header_compiler=yes
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8302 ac_header_compiler=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6; }
8309 # Is the header present?
8310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 #include <$ac_header>
8320 if { (ac_try="$ac_cpp conftest.$ac_ext"
8322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } >/dev/null && {
8333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8336 ac_header_preproc=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_header_preproc=no
8344 rm -f conftest.err conftest.$ac_ext
8345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8346 echo "${ECHO_T}$ac_header_preproc" >&6; }
8348 # So? What about this header?
8349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8355 ac_header_preproc=yes
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 eval "$as_ac_Header=\$ac_header_preproc"
8380 ac_res=`eval echo '${'$as_ac_Header'}'`
8381 { echo "$as_me:$LINENO: result: $ac_res" >&5
8382 echo "${ECHO_T}$ac_res" >&6; }
8385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8386 cat >>confdefs.h <<_ACEOF
8387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396 if test "X$prefix" = "XNONE"; then
8397 acl_final_prefix="$ac_default_prefix"
8399 acl_final_prefix="$prefix"
8401 if test "X$exec_prefix" = "XNONE"; then
8402 acl_final_exec_prefix='${prefix}'
8404 acl_final_exec_prefix="$exec_prefix"
8406 acl_save_prefix="$prefix"
8407 prefix="$acl_final_prefix"
8408 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8409 prefix="$acl_save_prefix"
8412 # Check whether --with-gnu-ld was given.
8413 if test "${with_gnu_ld+set}" = set; then
8414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8419 # Prepare PATH_SEPARATOR.
8420 # The user is always right.
8421 if test "${PATH_SEPARATOR+set}" != set; then
8422 echo "#! /bin/sh" >conf$$.sh
8423 echo "exit 0" >>conf$$.sh
8425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8433 if test "$GCC" = yes; then
8434 # Check if gcc -print-prog-name=ld gives a path.
8435 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8436 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8439 # gcc leaves a trailing carriage return which upsets mingw
8440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8445 # Accept absolute paths.
8446 [\\/]* | [A-Za-z]:[\\/]*)
8447 re_direlt='/[^/][^/]*/\.\./'
8448 # Canonicalize the path of ld
8449 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8451 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8453 test -z "$LD" && LD="$ac_prog"
8456 # If it fails, then pretend we aren't using GCC.
8460 # If it is relative, then search for the first ld in PATH.
8464 elif test "$with_gnu_ld" = yes; then
8465 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8466 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8468 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8469 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8471 if test "${acl_cv_path_LD+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 if test -z "$LD"; then
8475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8476 for ac_dir in $PATH; do
8477 test -z "$ac_dir" && ac_dir=.
8478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8479 acl_cv_path_LD="$ac_dir/$ac_prog"
8480 # Check to see if the program is GNU ld. I'd rather use --version,
8481 # but apparently some GNU ld's only accept -v.
8482 # Break only if it was the GNU/non-GNU ld that we prefer.
8483 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8484 *GNU* | *'with BFD'*)
8485 test "$with_gnu_ld" != no && break ;;
8487 test "$with_gnu_ld" != yes && break ;;
8493 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8497 LD="$acl_cv_path_LD"
8498 if test -n "$LD"; then
8499 { echo "$as_me:$LINENO: result: $LD" >&5
8500 echo "${ECHO_T}$LD" >&6; }
8502 { echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6; }
8505 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8506 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8507 { (exit 1); exit 1; }; }
8508 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8509 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8510 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8513 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8514 case `$LD -v 2>&1 </dev/null` in
8515 *GNU* | *'with BFD'*)
8516 acl_cv_prog_gnu_ld=yes ;;
8518 acl_cv_prog_gnu_ld=no ;;
8521 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8523 with_gnu_ld=$acl_cv_prog_gnu_ld
8527 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8529 if test "${acl_cv_rpath+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8540 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8541 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8543 libext="$acl_cv_libext"
8544 shlibext="$acl_cv_shlibext"
8545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8547 hardcode_direct="$acl_cv_hardcode_direct"
8548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8549 # Check whether --enable-rpath was given.
8550 if test "${enable_rpath+set}" = set; then
8551 enableval=$enable_rpath; :
8565 acl_save_prefix="$prefix"
8566 prefix="$acl_final_prefix"
8567 acl_save_exec_prefix="$exec_prefix"
8568 exec_prefix="$acl_final_exec_prefix"
8570 eval additional_includedir=\"$includedir\"
8571 eval additional_libdir=\"$libdir\"
8573 exec_prefix="$acl_save_exec_prefix"
8574 prefix="$acl_save_prefix"
8577 # Check whether --with-libiconv-prefix was given.
8578 if test "${with_libiconv_prefix+set}" = set; then
8579 withval=$with_libiconv_prefix;
8580 if test "X$withval" = "Xno"; then
8583 if test "X$withval" = "X"; then
8585 acl_save_prefix="$prefix"
8586 prefix="$acl_final_prefix"
8587 acl_save_exec_prefix="$exec_prefix"
8588 exec_prefix="$acl_final_exec_prefix"
8590 eval additional_includedir=\"$includedir\"
8591 eval additional_libdir=\"$libdir\"
8593 exec_prefix="$acl_save_exec_prefix"
8594 prefix="$acl_save_prefix"
8597 additional_includedir="$withval/include"
8598 additional_libdir="$withval/lib"
8609 names_already_handled=
8610 names_next_round='iconv '
8611 while test -n "$names_next_round"; do
8612 names_this_round="$names_next_round"
8614 for name in $names_this_round; do
8616 for n in $names_already_handled; do
8617 if test "$n" = "$name"; then
8622 if test -z "$already_handled"; then
8623 names_already_handled="$names_already_handled $name"
8624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8625 eval value=\"\$HAVE_LIB$uppername\"
8626 if test -n "$value"; then
8627 if test "$value" = yes; then
8628 eval value=\"\$LIB$uppername\"
8629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8630 eval value=\"\$LTLIB$uppername\"
8631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8640 if test $use_additional = yes; then
8641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8642 found_dir="$additional_libdir"
8643 found_so="$additional_libdir/lib$name.$shlibext"
8644 if test -f "$additional_libdir/lib$name.la"; then
8645 found_la="$additional_libdir/lib$name.la"
8648 if test -f "$additional_libdir/lib$name.$libext"; then
8649 found_dir="$additional_libdir"
8650 found_a="$additional_libdir/lib$name.$libext"
8651 if test -f "$additional_libdir/lib$name.la"; then
8652 found_la="$additional_libdir/lib$name.la"
8657 if test "X$found_dir" = "X"; then
8658 for x in $LDFLAGS $LTLIBICONV; do
8660 acl_save_prefix="$prefix"
8661 prefix="$acl_final_prefix"
8662 acl_save_exec_prefix="$exec_prefix"
8663 exec_prefix="$acl_final_exec_prefix"
8665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8670 dir=`echo "X$x" | sed -e 's/^X-L//'`
8671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8673 found_so="$dir/lib$name.$shlibext"
8674 if test -f "$dir/lib$name.la"; then
8675 found_la="$dir/lib$name.la"
8678 if test -f "$dir/lib$name.$libext"; then
8680 found_a="$dir/lib$name.$libext"
8681 if test -f "$dir/lib$name.la"; then
8682 found_la="$dir/lib$name.la"
8688 if test "X$found_dir" != "X"; then
8693 if test "X$found_dir" != "X"; then
8694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8695 if test "X$found_so" != "X"; then
8696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8700 for x in $ltrpathdirs; do
8701 if test "X$x" = "X$found_dir"; then
8706 if test -z "$haveit"; then
8707 ltrpathdirs="$ltrpathdirs $found_dir"
8709 if test "$hardcode_direct" = yes; then
8710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8715 for x in $rpathdirs; do
8716 if test "X$x" = "X$found_dir"; then
8721 if test -z "$haveit"; then
8722 rpathdirs="$rpathdirs $found_dir"
8726 for x in $LDFLAGS $LIBICONV; do
8728 acl_save_prefix="$prefix"
8729 prefix="$acl_final_prefix"
8730 acl_save_exec_prefix="$exec_prefix"
8731 exec_prefix="$acl_final_exec_prefix"
8733 exec_prefix="$acl_save_exec_prefix"
8734 prefix="$acl_save_prefix"
8736 if test "X$x" = "X-L$found_dir"; then
8741 if test -z "$haveit"; then
8742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8744 if test "$hardcode_minus_L" != no; then
8745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8753 if test "X$found_a" != "X"; then
8754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8759 additional_includedir=
8760 case "$found_dir" in
8762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8763 additional_includedir="$basedir/include"
8766 if test "X$additional_includedir" != "X"; then
8767 if test "X$additional_includedir" != "X/usr/include"; then
8769 if test "X$additional_includedir" = "X/usr/local/include"; then
8770 if test -n "$GCC"; then
8772 linux*) haveit=yes;;
8776 if test -z "$haveit"; then
8777 for x in $CPPFLAGS $INCICONV; do
8779 acl_save_prefix="$prefix"
8780 prefix="$acl_final_prefix"
8781 acl_save_exec_prefix="$exec_prefix"
8782 exec_prefix="$acl_final_exec_prefix"
8784 exec_prefix="$acl_save_exec_prefix"
8785 prefix="$acl_save_prefix"
8787 if test "X$x" = "X-I$additional_includedir"; then
8792 if test -z "$haveit"; then
8793 if test -d "$additional_includedir"; then
8794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8800 if test -n "$found_la"; then
8801 save_libdir="$libdir"
8803 */* | *\\*) . "$found_la" ;;
8804 *) . "./$found_la" ;;
8806 libdir="$save_libdir"
8807 for dep in $dependency_libs; do
8810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8811 if test "X$additional_libdir" != "X/usr/lib"; then
8813 if test "X$additional_libdir" = "X/usr/local/lib"; then
8814 if test -n "$GCC"; then
8816 linux*) haveit=yes;;
8820 if test -z "$haveit"; then
8822 for x in $LDFLAGS $LIBICONV; do
8824 acl_save_prefix="$prefix"
8825 prefix="$acl_final_prefix"
8826 acl_save_exec_prefix="$exec_prefix"
8827 exec_prefix="$acl_final_exec_prefix"
8829 exec_prefix="$acl_save_exec_prefix"
8830 prefix="$acl_save_prefix"
8832 if test "X$x" = "X-L$additional_libdir"; then
8837 if test -z "$haveit"; then
8838 if test -d "$additional_libdir"; then
8839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8843 for x in $LDFLAGS $LTLIBICONV; do
8845 acl_save_prefix="$prefix"
8846 prefix="$acl_final_prefix"
8847 acl_save_exec_prefix="$exec_prefix"
8848 exec_prefix="$acl_final_exec_prefix"
8850 exec_prefix="$acl_save_exec_prefix"
8851 prefix="$acl_save_prefix"
8853 if test "X$x" = "X-L$additional_libdir"; then
8858 if test -z "$haveit"; then
8859 if test -d "$additional_libdir"; then
8860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8868 if test "$enable_rpath" != no; then
8870 for x in $rpathdirs; do
8871 if test "X$x" = "X$dir"; then
8876 if test -z "$haveit"; then
8877 rpathdirs="$rpathdirs $dir"
8880 for x in $ltrpathdirs; do
8881 if test "X$x" = "X$dir"; then
8886 if test -z "$haveit"; then
8887 ltrpathdirs="$ltrpathdirs $dir"
8892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8912 if test "X$rpathdirs" != "X"; then
8913 if test -n "$hardcode_libdir_separator"; then
8915 for found_dir in $rpathdirs; do
8916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8918 acl_save_libdir="$libdir"
8920 eval flag=\"$hardcode_libdir_flag_spec\"
8921 libdir="$acl_save_libdir"
8922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8924 for found_dir in $rpathdirs; do
8925 acl_save_libdir="$libdir"
8927 eval flag=\"$hardcode_libdir_flag_spec\"
8928 libdir="$acl_save_libdir"
8929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8933 if test "X$ltrpathdirs" != "X"; then
8934 for found_dir in $ltrpathdirs; do
8935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8946 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8947 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8948 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 typedef ptrdiff_t ac__type_new_;
8962 if ((ac__type_new_ *) 0)
8964 if (sizeof (ac__type_new_))
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
8987 ac_cv_type_ptrdiff_t=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 ac_cv_type_ptrdiff_t=no
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8998 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8999 if test $ac_cv_type_ptrdiff_t = yes; then
9003 cat >>confdefs.h <<\_ACEOF
9004 #define ptrdiff_t long
9020 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9021 stdlib.h string.h unistd.h sys/param.h
9023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 ac_res=`eval echo '${'$as_ac_Header'}'`
9031 { echo "$as_me:$LINENO: result: $ac_res" >&5
9032 echo "${ECHO_T}$ac_res" >&6; }
9034 # Is the header compilable?
9035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 $ac_includes_default
9044 #include <$ac_header>
9046 rm -f conftest.$ac_objext
9047 if { (ac_try="$ac_compile"
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && {
9060 test -z "$ac_c_werror_flag" ||
9061 test ! -s conftest.err
9062 } && test -s conftest.$ac_objext; then
9063 ac_header_compiler=yes
9065 echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9068 ac_header_compiler=no
9071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9073 echo "${ECHO_T}$ac_header_compiler" >&6; }
9075 # Is the header present?
9076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9078 cat >conftest.$ac_ext <<_ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 #include <$ac_header>
9086 if { (ac_try="$ac_cpp conftest.$ac_ext"
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9094 grep -v '^ *+' conftest.er1 >conftest.err
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } >/dev/null && {
9099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9102 ac_header_preproc=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_header_preproc=no
9110 rm -f conftest.err conftest.$ac_ext
9111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9112 echo "${ECHO_T}$ac_header_preproc" >&6; }
9114 # So? What about this header?
9115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9121 ac_header_preproc=yes
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 eval "$as_ac_Header=\$ac_header_preproc"
9146 ac_res=`eval echo '${'$as_ac_Header'}'`
9147 { echo "$as_me:$LINENO: result: $ac_res" >&5
9148 echo "${ECHO_T}$ac_res" >&6; }
9151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9152 cat >>confdefs.h <<_ACEOF
9153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9184 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9185 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 cat >conftest.$ac_ext <<_ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9202 #define $ac_func innocuous_$ac_func
9204 /* System header to define __stub macros and hopefully few prototypes,
9205 which can conflict with char $ac_func (); below.
9206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9207 <limits.h> exists even on freestanding compilers. */
9210 # include <limits.h>
9212 # include <assert.h>
9217 /* Override any GCC internal prototype to avoid an error.
9218 Use char because int might match the return type of a GCC
9219 builtin and then its argument prototype would still apply. */
9224 /* The GNU C library defines this for functions which it implements
9225 to always fail with ENOSYS. Some functions are actually named
9226 something starting with __ and the normal name is an alias. */
9227 #if defined __stub_$ac_func || defined __stub___$ac_func
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (ac_try="$ac_link"
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_link") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest$ac_exeext &&
9256 $as_test_x conftest$ac_exeext; then
9257 eval "$as_ac_var=yes"
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 eval "$as_ac_var=no"
9265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266 conftest$ac_exeext conftest.$ac_ext
9268 ac_res=`eval echo '${'$as_ac_var'}'`
9269 { echo "$as_me:$LINENO: result: $ac_res" >&5
9270 echo "${ECHO_T}$ac_res" >&6; }
9271 if test `eval echo '${'$as_ac_var'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9281 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9282 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9283 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9298 char *p = (char *) _snprintf;
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_cv_have_decl__snprintf=yes
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_cv_have_decl__snprintf=no
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9334 if test $ac_cv_have_decl__snprintf = yes; then
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_DECL__SNPRINTF $gt_value
9346 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9347 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9348 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 cat >conftest.$ac_ext <<_ACEOF
9354 cat confdefs.h >>conftest.$ac_ext
9355 cat >>conftest.$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9363 char *p = (char *) _snwprintf;
9370 rm -f conftest.$ac_objext
9371 if { (ac_try="$ac_compile"
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_compile") 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest.$ac_objext; then
9387 ac_cv_have_decl__snwprintf=yes
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_cv_have_decl__snwprintf=no
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9398 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9399 if test $ac_cv_have_decl__snwprintf = yes; then
9405 cat >>confdefs.h <<_ACEOF
9406 #define HAVE_DECL__SNWPRINTF $gt_value
9412 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9413 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9414 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9428 #ifndef feof_unlocked
9429 char *p = (char *) feof_unlocked;
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 ac_cv_have_decl_feof_unlocked=yes
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_have_decl_feof_unlocked=no
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9464 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9465 if test $ac_cv_have_decl_feof_unlocked = yes; then
9471 cat >>confdefs.h <<_ACEOF
9472 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9477 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9478 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9479 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9493 #ifndef fgets_unlocked
9494 char *p = (char *) fgets_unlocked;
9501 rm -f conftest.$ac_objext
9502 if { (ac_try="$ac_compile"
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_compile") 2>conftest.er1
9510 grep -v '^ *+' conftest.er1 >conftest.err
9512 cat conftest.err >&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest.$ac_objext; then
9518 ac_cv_have_decl_fgets_unlocked=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_cv_have_decl_fgets_unlocked=no
9526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9529 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9530 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9536 cat >>confdefs.h <<_ACEOF
9537 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9542 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9543 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9544 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >conftest.$ac_ext <<_ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9558 #ifndef getc_unlocked
9559 char *p = (char *) getc_unlocked;
9566 rm -f conftest.$ac_objext
9567 if { (ac_try="$ac_compile"
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9583 ac_cv_have_decl_getc_unlocked=yes
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_cv_have_decl_getc_unlocked=no
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9594 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9595 if test $ac_cv_have_decl_getc_unlocked = yes; then
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9607 case $gt_cv_func_printf_posix in
9608 *yes) HAVE_POSIX_PRINTF=1 ;;
9609 *) HAVE_POSIX_PRINTF=0 ;;
9612 if test "$ac_cv_func_asprintf" = yes; then
9618 if test "$ac_cv_func_snprintf" = yes; then
9624 if test "$ac_cv_func_wprintf" = yes; then
9636 am_save_CPPFLAGS="$CPPFLAGS"
9638 for element in $INCICONV; do
9640 for x in $CPPFLAGS; do
9642 acl_save_prefix="$prefix"
9643 prefix="$acl_final_prefix"
9644 acl_save_exec_prefix="$exec_prefix"
9645 exec_prefix="$acl_final_exec_prefix"
9647 exec_prefix="$acl_save_exec_prefix"
9648 prefix="$acl_save_prefix"
9650 if test "X$x" = "X$element"; then
9655 if test -z "$haveit"; then
9656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9661 { echo "$as_me:$LINENO: checking for iconv" >&5
9662 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9663 if test "${am_cv_func_iconv+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 am_cv_func_iconv="no, consider installing GNU libiconv"
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9680 iconv_t cd = iconv_open("","");
9681 iconv(cd,NULL,NULL,NULL,NULL);
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9696 grep -v '^ *+' conftest.er1 >conftest.err
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
9705 am_cv_func_iconv=yes
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714 conftest$ac_exeext conftest.$ac_ext
9715 if test "$am_cv_func_iconv" != yes; then
9716 am_save_LIBS="$LIBS"
9717 LIBS="$LIBS $LIBICONV"
9718 cat >conftest.$ac_ext <<_ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9729 iconv_t cd = iconv_open("","");
9730 iconv(cd,NULL,NULL,NULL,NULL);
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (ac_try="$ac_link"
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_link") 2>conftest.er1
9745 grep -v '^ *+' conftest.er1 >conftest.err
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } && {
9750 test -z "$ac_c_werror_flag" ||
9751 test ! -s conftest.err
9752 } && test -s conftest$ac_exeext &&
9753 $as_test_x conftest$ac_exeext; then
9755 am_cv_func_iconv=yes
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS="$am_save_LIBS"
9769 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9770 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9771 if test "$am_cv_func_iconv" = yes; then
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_ICONV 1
9778 if test "$am_cv_lib_iconv" = yes; then
9779 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9780 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9781 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9782 echo "${ECHO_T}$LIBICONV" >&6; }
9784 CPPFLAGS="$am_save_CPPFLAGS"
9791 if test "$am_cv_func_iconv" = yes; then
9792 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9793 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9794 if test "${am_cv_proto_iconv+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9811 #if defined(__STDC__) || defined(__cplusplus)
9812 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9825 rm -f conftest.$ac_objext
9826 if { (ac_try="$ac_compile"
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 am_cv_proto_iconv_arg1=""
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 am_cv_proto_iconv_arg1="const"
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 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);"
9854 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9855 { echo "$as_me:$LINENO: result: ${ac_t:-
9856 }$am_cv_proto_iconv" >&5
9857 echo "${ECHO_T}${ac_t:-
9858 }$am_cv_proto_iconv" >&6; }
9860 cat >>confdefs.h <<_ACEOF
9861 #define ICONV_CONST $am_cv_proto_iconv_arg1
9867 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9868 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9869 if test "${am_cv_langinfo_codeset+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <langinfo.h>
9882 char* cs = nl_langinfo(CODESET);
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 am_cv_langinfo_codeset=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 am_cv_langinfo_codeset=no
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9918 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9919 if test $am_cv_langinfo_codeset = yes; then
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_LANGINFO_CODESET 1
9927 if test $ac_cv_header_locale_h = yes; then
9929 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9930 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9931 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953 *) ac_try_echo=$ac_try;;
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956 (eval "$ac_link") 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } && {
9963 test -z "$ac_c_werror_flag" ||
9964 test ! -s conftest.err
9965 } && test -s conftest$ac_exeext &&
9966 $as_test_x conftest$ac_exeext; then
9967 am_cv_val_LC_MESSAGES=yes
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 am_cv_val_LC_MESSAGES=no
9975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9976 conftest$ac_exeext conftest.$ac_ext
9978 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9979 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9980 if test $am_cv_val_LC_MESSAGES = yes; then
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LC_MESSAGES 1
9990 for ac_prog in bison
9992 # Extract the first word of "$ac_prog", so it can be a program name with args.
9993 set dummy $ac_prog; ac_word=$2
9994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9996 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 if test -n "$INTLBISON"; then
10000 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_INTLBISON="$ac_prog"
10010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 INTLBISON=$ac_cv_prog_INTLBISON
10020 if test -n "$INTLBISON"; then
10021 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10022 echo "${ECHO_T}$INTLBISON" >&6; }
10024 { echo "$as_me:$LINENO: result: no" >&5
10025 echo "${ECHO_T}no" >&6; }
10029 test -n "$INTLBISON" && break
10032 if test -z "$INTLBISON"; then
10035 { echo "$as_me:$LINENO: checking version of bison" >&5
10036 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10037 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10038 case $ac_prog_version in
10039 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10040 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10041 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10042 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10044 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10045 echo "${ECHO_T}$ac_prog_version" >&6; }
10047 if test $ac_verc_fail = yes; then
10066 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10067 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10068 # Check whether --enable-nls was given.
10069 if test "${enable_nls+set}" = set; then
10070 enableval=$enable_nls; USE_NLS=$enableval
10075 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10076 echo "${ECHO_T}$USE_NLS" >&6; }
10081 BUILD_INCLUDED_LIBINTL=no
10082 USE_INCLUDED_LIBINTL=no
10088 if test "$USE_NLS" = "yes"; then
10089 gt_use_preinstalled_gnugettext=no
10091 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10092 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10094 # Check whether --with-included-gettext was given.
10095 if test "${with_included_gettext+set}" = set; then
10096 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10098 nls_cv_force_use_gnu_gettext=no
10101 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10102 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10104 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10105 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10112 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10113 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10114 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <libintl.h>
10124 extern int _nl_msg_cat_cntr;
10125 extern int *_nl_domain_bindings;
10129 bindtextdomain ("", "");
10130 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (ac_try="$ac_link"
10137 case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_link") 2>conftest.er1
10144 grep -v '^ *+' conftest.er1 >conftest.err
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest$ac_exeext &&
10152 $as_test_x conftest$ac_exeext; then
10153 gt_cv_func_gnugettext1_libc=yes
10155 echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10158 gt_cv_func_gnugettext1_libc=no
10161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10162 conftest$ac_exeext conftest.$ac_ext
10164 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10165 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10167 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10173 acl_save_prefix="$prefix"
10174 prefix="$acl_final_prefix"
10175 acl_save_exec_prefix="$exec_prefix"
10176 exec_prefix="$acl_final_exec_prefix"
10178 eval additional_includedir=\"$includedir\"
10179 eval additional_libdir=\"$libdir\"
10181 exec_prefix="$acl_save_exec_prefix"
10182 prefix="$acl_save_prefix"
10185 # Check whether --with-libintl-prefix was given.
10186 if test "${with_libintl_prefix+set}" = set; then
10187 withval=$with_libintl_prefix;
10188 if test "X$withval" = "Xno"; then
10191 if test "X$withval" = "X"; then
10193 acl_save_prefix="$prefix"
10194 prefix="$acl_final_prefix"
10195 acl_save_exec_prefix="$exec_prefix"
10196 exec_prefix="$acl_final_exec_prefix"
10198 eval additional_includedir=\"$includedir\"
10199 eval additional_libdir=\"$libdir\"
10201 exec_prefix="$acl_save_exec_prefix"
10202 prefix="$acl_save_prefix"
10205 additional_includedir="$withval/include"
10206 additional_libdir="$withval/lib"
10217 names_already_handled=
10218 names_next_round='intl '
10219 while test -n "$names_next_round"; do
10220 names_this_round="$names_next_round"
10222 for name in $names_this_round; do
10224 for n in $names_already_handled; do
10225 if test "$n" = "$name"; then
10226 already_handled=yes
10230 if test -z "$already_handled"; then
10231 names_already_handled="$names_already_handled $name"
10232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10233 eval value=\"\$HAVE_LIB$uppername\"
10234 if test -n "$value"; then
10235 if test "$value" = yes; then
10236 eval value=\"\$LIB$uppername\"
10237 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10238 eval value=\"\$LTLIB$uppername\"
10239 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10248 if test $use_additional = yes; then
10249 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10250 found_dir="$additional_libdir"
10251 found_so="$additional_libdir/lib$name.$shlibext"
10252 if test -f "$additional_libdir/lib$name.la"; then
10253 found_la="$additional_libdir/lib$name.la"
10256 if test -f "$additional_libdir/lib$name.$libext"; then
10257 found_dir="$additional_libdir"
10258 found_a="$additional_libdir/lib$name.$libext"
10259 if test -f "$additional_libdir/lib$name.la"; then
10260 found_la="$additional_libdir/lib$name.la"
10265 if test "X$found_dir" = "X"; then
10266 for x in $LDFLAGS $LTLIBINTL; do
10268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10278 dir=`echo "X$x" | sed -e 's/^X-L//'`
10279 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10281 found_so="$dir/lib$name.$shlibext"
10282 if test -f "$dir/lib$name.la"; then
10283 found_la="$dir/lib$name.la"
10286 if test -f "$dir/lib$name.$libext"; then
10288 found_a="$dir/lib$name.$libext"
10289 if test -f "$dir/lib$name.la"; then
10290 found_la="$dir/lib$name.la"
10296 if test "X$found_dir" != "X"; then
10301 if test "X$found_dir" != "X"; then
10302 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10303 if test "X$found_so" != "X"; then
10304 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10305 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10308 for x in $ltrpathdirs; do
10309 if test "X$x" = "X$found_dir"; then
10314 if test -z "$haveit"; then
10315 ltrpathdirs="$ltrpathdirs $found_dir"
10317 if test "$hardcode_direct" = yes; then
10318 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10320 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10321 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10323 for x in $rpathdirs; do
10324 if test "X$x" = "X$found_dir"; then
10329 if test -z "$haveit"; then
10330 rpathdirs="$rpathdirs $found_dir"
10334 for x in $LDFLAGS $LIBINTL; do
10336 acl_save_prefix="$prefix"
10337 prefix="$acl_final_prefix"
10338 acl_save_exec_prefix="$exec_prefix"
10339 exec_prefix="$acl_final_exec_prefix"
10341 exec_prefix="$acl_save_exec_prefix"
10342 prefix="$acl_save_prefix"
10344 if test "X$x" = "X-L$found_dir"; then
10349 if test -z "$haveit"; then
10350 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10352 if test "$hardcode_minus_L" != no; then
10353 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10355 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10361 if test "X$found_a" != "X"; then
10362 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10364 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10367 additional_includedir=
10368 case "$found_dir" in
10370 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10371 additional_includedir="$basedir/include"
10374 if test "X$additional_includedir" != "X"; then
10375 if test "X$additional_includedir" != "X/usr/include"; then
10377 if test "X$additional_includedir" = "X/usr/local/include"; then
10378 if test -n "$GCC"; then
10380 linux*) haveit=yes;;
10384 if test -z "$haveit"; then
10385 for x in $CPPFLAGS $INCINTL; do
10387 acl_save_prefix="$prefix"
10388 prefix="$acl_final_prefix"
10389 acl_save_exec_prefix="$exec_prefix"
10390 exec_prefix="$acl_final_exec_prefix"
10392 exec_prefix="$acl_save_exec_prefix"
10393 prefix="$acl_save_prefix"
10395 if test "X$x" = "X-I$additional_includedir"; then
10400 if test -z "$haveit"; then
10401 if test -d "$additional_includedir"; then
10402 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10408 if test -n "$found_la"; then
10409 save_libdir="$libdir"
10410 case "$found_la" in
10411 */* | *\\*) . "$found_la" ;;
10412 *) . "./$found_la" ;;
10414 libdir="$save_libdir"
10415 for dep in $dependency_libs; do
10418 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10419 if test "X$additional_libdir" != "X/usr/lib"; then
10421 if test "X$additional_libdir" = "X/usr/local/lib"; then
10422 if test -n "$GCC"; then
10424 linux*) haveit=yes;;
10428 if test -z "$haveit"; then
10430 for x in $LDFLAGS $LIBINTL; do
10432 acl_save_prefix="$prefix"
10433 prefix="$acl_final_prefix"
10434 acl_save_exec_prefix="$exec_prefix"
10435 exec_prefix="$acl_final_exec_prefix"
10437 exec_prefix="$acl_save_exec_prefix"
10438 prefix="$acl_save_prefix"
10440 if test "X$x" = "X-L$additional_libdir"; then
10445 if test -z "$haveit"; then
10446 if test -d "$additional_libdir"; then
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10451 for x in $LDFLAGS $LTLIBINTL; do
10453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
10461 if test "X$x" = "X-L$additional_libdir"; then
10466 if test -z "$haveit"; then
10467 if test -d "$additional_libdir"; then
10468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10475 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10476 if test "$enable_rpath" != no; then
10478 for x in $rpathdirs; do
10479 if test "X$x" = "X$dir"; then
10484 if test -z "$haveit"; then
10485 rpathdirs="$rpathdirs $dir"
10488 for x in $ltrpathdirs; do
10489 if test "X$x" = "X$dir"; then
10494 if test -z "$haveit"; then
10495 ltrpathdirs="$ltrpathdirs $dir"
10500 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10506 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10513 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10514 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10520 if test "X$rpathdirs" != "X"; then
10521 if test -n "$hardcode_libdir_separator"; then
10523 for found_dir in $rpathdirs; do
10524 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10526 acl_save_libdir="$libdir"
10528 eval flag=\"$hardcode_libdir_flag_spec\"
10529 libdir="$acl_save_libdir"
10530 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10532 for found_dir in $rpathdirs; do
10533 acl_save_libdir="$libdir"
10534 libdir="$found_dir"
10535 eval flag=\"$hardcode_libdir_flag_spec\"
10536 libdir="$acl_save_libdir"
10537 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10541 if test "X$ltrpathdirs" != "X"; then
10542 for found_dir in $ltrpathdirs; do
10543 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10547 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10548 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10549 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 gt_save_CPPFLAGS="$CPPFLAGS"
10553 CPPFLAGS="$CPPFLAGS $INCINTL"
10554 gt_save_LIBS="$LIBS"
10555 LIBS="$LIBS $LIBINTL"
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <libintl.h>
10563 extern int _nl_msg_cat_cntr;
10568 const char *_nl_expand_alias ();
10572 bindtextdomain ("", "");
10573 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10578 rm -f conftest.$ac_objext conftest$ac_exeext
10579 if { (ac_try="$ac_link"
10580 case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
10587 grep -v '^ *+' conftest.er1 >conftest.err
10589 cat conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && {
10592 test -z "$ac_c_werror_flag" ||
10593 test ! -s conftest.err
10594 } && test -s conftest$ac_exeext &&
10595 $as_test_x conftest$ac_exeext; then
10596 gt_cv_func_gnugettext1_libintl=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 gt_cv_func_gnugettext1_libintl=no
10604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10605 conftest$ac_exeext conftest.$ac_ext
10606 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10607 LIBS="$LIBS $LIBICONV"
10608 cat >conftest.$ac_ext <<_ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <libintl.h>
10615 extern int _nl_msg_cat_cntr;
10620 const char *_nl_expand_alias ();
10624 bindtextdomain ("", "");
10625 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
10648 LIBINTL="$LIBINTL $LIBICONV"
10649 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10650 gt_cv_func_gnugettext1_libintl=yes
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10660 conftest$ac_exeext conftest.$ac_ext
10662 CPPFLAGS="$gt_save_CPPFLAGS"
10663 LIBS="$gt_save_LIBS"
10665 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10666 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10669 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10670 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10671 && test "$PACKAGE" != gettext-runtime \
10672 && test "$PACKAGE" != gettext-tools; }; then
10673 gt_use_preinstalled_gnugettext=yes
10681 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10682 nls_cv_use_gnu_gettext=yes
10686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10687 BUILD_INCLUDED_LIBINTL=yes
10688 USE_INCLUDED_LIBINTL=yes
10689 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10690 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10691 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10694 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10695 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10700 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10701 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10703 cat >>confdefs.h <<\_ACEOF
10704 #define ENABLE_NLS 1
10712 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10713 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10714 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10715 echo "${ECHO_T}$USE_NLS" >&6; }
10716 if test "$USE_NLS" = "yes"; then
10717 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10718 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10719 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10720 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10721 gt_source="external libintl"
10726 gt_source="included intl directory"
10728 { echo "$as_me:$LINENO: result: $gt_source" >&5
10729 echo "${ECHO_T}$gt_source" >&6; }
10732 if test "$USE_NLS" = "yes"; then
10734 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10735 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10736 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10737 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10738 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10739 echo "${ECHO_T}$LIBINTL" >&6; }
10741 for element in $INCINTL; do
10743 for x in $CPPFLAGS; do
10745 acl_save_prefix="$prefix"
10746 prefix="$acl_final_prefix"
10747 acl_save_exec_prefix="$exec_prefix"
10748 exec_prefix="$acl_final_exec_prefix"
10750 exec_prefix="$acl_save_exec_prefix"
10751 prefix="$acl_save_prefix"
10753 if test "X$x" = "X$element"; then
10758 if test -z "$haveit"; then
10759 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10766 cat >>confdefs.h <<\_ACEOF
10767 #define HAVE_GETTEXT 1
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_DCGETTEXT 1
10781 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10782 BUILD_INCLUDED_LIBINTL=yes
10789 nls_cv_header_intl=
10790 nls_cv_header_libgt=
10801 if test "$USE_INCLUDED_LIBINTL" = yes; then
10802 INTLOBJS="\$(GETTOBJS)"
10806 INTL_LIBTOOL_SUFFIX_PREFIX=
10810 INTLLIBS="$LIBINTL"
10818 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10820 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10821 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 cat >conftest.make <<\_ACEOF
10827 @echo '@@@%%%=$(MAKE)=@@@%%%'
10829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10830 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10831 *@@@%%%=?*=@@@%%%*)
10832 eval ac_cv_prog_make_${ac_make}_set=yes;;
10834 eval ac_cv_prog_make_${ac_make}_set=no;;
10836 rm -f conftest.make
10838 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10839 { echo "$as_me:$LINENO: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6; }
10843 { echo "$as_me:$LINENO: result: no" >&5
10844 echo "${ECHO_T}no" >&6; }
10845 SET_MAKE="MAKE=${MAKE-make}"
10848 # Extract the first word of "ln", so it can be a program name with args.
10849 set dummy ln; ac_word=$2
10850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10852 if test "${ac_cv_path_LN+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10880 if test -n "$LN"; then
10881 { echo "$as_me:$LINENO: result: $LN" >&5
10882 echo "${ECHO_T}$LN" >&6; }
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10889 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10890 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10892 if test "$LN_S" = "ln -s"; then
10893 { echo "$as_me:$LINENO: result: yes" >&5
10894 echo "${ECHO_T}yes" >&6; }
10896 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10897 echo "${ECHO_T}no, using $LN_S" >&6; }
10900 # Extract the first word of "mv", so it can be a program name with args.
10901 set dummy mv; ac_word=$2
10902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10904 if test "${ac_cv_path_MV+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10932 if test -n "$MV"; then
10933 { echo "$as_me:$LINENO: result: $MV" >&5
10934 echo "${ECHO_T}$MV" >&6; }
10936 { echo "$as_me:$LINENO: result: no" >&5
10937 echo "${ECHO_T}no" >&6; }
10941 # Extract the first word of "cp", so it can be a program name with args.
10942 set dummy cp; ac_word=$2
10943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10945 if test "${ac_cv_path_CP+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10954 for as_dir in $PATH
10957 test -z "$as_dir" && as_dir=.
10958 for ac_exec_ext in '' $ac_executable_extensions; do
10959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10960 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10973 if test -n "$CP"; then
10974 { echo "$as_me:$LINENO: result: $CP" >&5
10975 echo "${ECHO_T}$CP" >&6; }
10977 { echo "$as_me:$LINENO: result: no" >&5
10978 echo "${ECHO_T}no" >&6; }
10982 # Extract the first word of "rm", so it can be a program name with args.
10983 set dummy rm; ac_word=$2
10984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10986 if test "${ac_cv_path_RM+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11014 if test -n "$RM"; then
11015 { echo "$as_me:$LINENO: result: $RM" >&5
11016 echo "${ECHO_T}$RM" >&6; }
11018 { echo "$as_me:$LINENO: result: no" >&5
11019 echo "${ECHO_T}no" >&6; }
11023 # Extract the first word of "chmod", so it can be a program name with args.
11024 set dummy chmod; ac_word=$2
11025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11027 if test "${ac_cv_path_CHMOD+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11054 CHMOD=$ac_cv_path_CHMOD
11055 if test -n "$CHMOD"; then
11056 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11057 echo "${ECHO_T}$CHMOD" >&6; }
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11064 for ac_prog in gawk mawk nawk awk
11066 # Extract the first word of "$ac_prog", so it can be a program name with args.
11067 set dummy $ac_prog; ac_word=$2
11068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11070 if test "${ac_cv_prog_AWK+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 if test -n "$AWK"; then
11074 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_AWK="$ac_prog"
11084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 AWK=$ac_cv_prog_AWK
11094 if test -n "$AWK"; then
11095 { echo "$as_me:$LINENO: result: $AWK" >&5
11096 echo "${ECHO_T}$AWK" >&6; }
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11103 test -n "$AWK" && break
11106 { echo "$as_me:$LINENO: checking for egrep" >&5
11107 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11108 if test "${ac_cv_path_EGREP+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11112 then ac_cv_path_EGREP="$GREP -E"
11114 # Extract the first word of "egrep" to use in msg output
11115 if test -z "$EGREP"; then
11116 set dummy egrep; ac_prog_name=$2
11117 if test "${ac_cv_path_EGREP+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 ac_path_EGREP_found=false
11121 # Loop through the user's path and test for each of PROGNAME-LIST
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11126 test -z "$as_dir" && as_dir=.
11127 for ac_prog in egrep; do
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11130 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11131 # Check for GNU ac_path_EGREP and select it if it is found.
11132 # Check for GNU $ac_path_EGREP
11133 case `"$ac_path_EGREP" --version 2>&1` in
11135 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11141 cat "conftest.in" "conftest.in" >"conftest.tmp"
11142 mv "conftest.tmp" "conftest.in"
11143 cp "conftest.in" "conftest.nl"
11144 echo 'EGREP' >> "conftest.nl"
11145 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11147 ac_count=`expr $ac_count + 1`
11148 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11149 # Best one so far, save it but keep looking for a better one
11150 ac_cv_path_EGREP="$ac_path_EGREP"
11151 ac_path_EGREP_max=$ac_count
11153 # 10*(2^10) chars as input seems more than enough
11154 test $ac_count -gt 10 && break
11156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11160 $ac_path_EGREP_found && break 3
11170 EGREP="$ac_cv_path_EGREP"
11171 if test -z "$EGREP"; then
11172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11174 { (exit 1); exit 1; }; }
11178 ac_cv_path_EGREP=$EGREP
11184 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11185 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11186 EGREP="$ac_cv_path_EGREP"
11189 # Extract the first word of "sed", so it can be a program name with args.
11190 set dummy sed; ac_word=$2
11191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11193 if test "${ac_cv_path_SED+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11220 SED=$ac_cv_path_SED
11221 if test -n "$SED"; then
11222 { echo "$as_me:$LINENO: result: $SED" >&5
11223 echo "${ECHO_T}$SED" >&6; }
11225 { echo "$as_me:$LINENO: result: no" >&5
11226 echo "${ECHO_T}no" >&6; }
11230 # Extract the first word of "perl", so it can be a program name with args.
11231 set dummy perl; ac_word=$2
11232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11234 if test "${ac_cv_path_PERL+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11243 for as_dir in $PATH
11246 test -z "$as_dir" && as_dir=.
11247 for ac_exec_ext in '' $ac_executable_extensions; do
11248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11249 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11257 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11261 PERL=$ac_cv_path_PERL
11262 if test -n "$PERL"; then
11263 { echo "$as_me:$LINENO: result: $PERL" >&5
11264 echo "${ECHO_T}$PERL" >&6; }
11266 { echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6; }
11271 # Extract the first word of "ldconfig", so it can be a program name with args.
11272 set dummy ldconfig; ac_word=$2
11273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11275 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11302 LDCONFIG=$ac_cv_path_LDCONFIG
11303 if test -n "$LDCONFIG"; then
11304 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11305 echo "${ECHO_T}$LDCONFIG" >&6; }
11307 { echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6; }
11312 if test -n "$ac_tool_prefix"; then
11313 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11314 set dummy ${ac_tool_prefix}ar; ac_word=$2
11315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11317 if test "${ac_cv_prog_AR+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 if test -n "$AR"; then
11321 ac_cv_prog_AR="$AR" # Let the user override the test.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_prog_AR="${ac_tool_prefix}ar"
11331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 if test -n "$AR"; then
11342 { echo "$as_me:$LINENO: result: $AR" >&5
11343 echo "${ECHO_T}$AR" >&6; }
11345 { echo "$as_me:$LINENO: result: no" >&5
11346 echo "${ECHO_T}no" >&6; }
11351 if test -z "$ac_cv_prog_AR"; then
11353 # Extract the first word of "ar", so it can be a program name with args.
11354 set dummy ar; ac_word=$2
11355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11357 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 if test -n "$ac_ct_AR"; then
11361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370 ac_cv_prog_ac_ct_AR="ar"
11371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11381 if test -n "$ac_ct_AR"; then
11382 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11383 echo "${ECHO_T}$ac_ct_AR" >&6; }
11385 { echo "$as_me:$LINENO: result: no" >&5
11386 echo "${ECHO_T}no" >&6; }
11389 if test "x$ac_ct_AR" = x; then
11392 case $cross_compiling:$ac_tool_warned in
11394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11395 whose name does not start with the host triplet. If you think this
11396 configuration is useful to you, please write to autoconf@gnu.org." >&5
11397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11398 whose name does not start with the host triplet. If you think this
11399 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11400 ac_tool_warned=yes ;;
11405 AR="$ac_cv_prog_AR"
11408 if test -n "$ac_tool_prefix"; then
11409 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11410 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11413 if test "${ac_cv_prog_RANLIB+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 if test -n "$RANLIB"; then
11417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 RANLIB=$ac_cv_prog_RANLIB
11437 if test -n "$RANLIB"; then
11438 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11439 echo "${ECHO_T}$RANLIB" >&6; }
11441 { echo "$as_me:$LINENO: result: no" >&5
11442 echo "${ECHO_T}no" >&6; }
11447 if test -z "$ac_cv_prog_RANLIB"; then
11448 ac_ct_RANLIB=$RANLIB
11449 # Extract the first word of "ranlib", so it can be a program name with args.
11450 set dummy ranlib; ac_word=$2
11451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11453 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 if test -n "$ac_ct_RANLIB"; then
11457 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466 ac_cv_prog_ac_ct_RANLIB="ranlib"
11467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11477 if test -n "$ac_ct_RANLIB"; then
11478 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11479 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11481 { echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6; }
11485 if test "x$ac_ct_RANLIB" = x; then
11488 case $cross_compiling:$ac_tool_warned in
11490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11491 whose name does not start with the host triplet. If you think this
11492 configuration is useful to you, please write to autoconf@gnu.org." >&5
11493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11494 whose name does not start with the host triplet. If you think this
11495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11496 ac_tool_warned=yes ;;
11498 RANLIB=$ac_ct_RANLIB
11501 RANLIB="$ac_cv_prog_RANLIB"
11504 if test -n "$ac_tool_prefix"; then
11505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11506 set dummy ${ac_tool_prefix}strip; ac_word=$2
11507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11509 if test "${ac_cv_prog_STRIP+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 if test -n "$STRIP"; then
11513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516 for as_dir in $PATH
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 STRIP=$ac_cv_prog_STRIP
11533 if test -n "$STRIP"; then
11534 { echo "$as_me:$LINENO: result: $STRIP" >&5
11535 echo "${ECHO_T}$STRIP" >&6; }
11537 { echo "$as_me:$LINENO: result: no" >&5
11538 echo "${ECHO_T}no" >&6; }
11543 if test -z "$ac_cv_prog_STRIP"; then
11545 # Extract the first word of "strip", so it can be a program name with args.
11546 set dummy strip; ac_word=$2
11547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 if test -n "$ac_ct_STRIP"; then
11553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_ac_ct_STRIP="strip"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11573 if test -n "$ac_ct_STRIP"; then
11574 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11575 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11577 { echo "$as_me:$LINENO: result: no" >&5
11578 echo "${ECHO_T}no" >&6; }
11581 if test "x$ac_ct_STRIP" = x; then
11584 case $cross_compiling:$ac_tool_warned in
11586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11587 whose name does not start with the host triplet. If you think this
11588 configuration is useful to you, please write to autoconf@gnu.org." >&5
11589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11590 whose name does not start with the host triplet. If you think this
11591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11592 ac_tool_warned=yes ;;
11597 STRIP="$ac_cv_prog_STRIP"
11600 # Extract the first word of "makeinfo", so it can be a program name with args.
11601 set dummy makeinfo; ac_word=$2
11602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11604 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 if test -n "$MAKEINFO"; then
11608 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611 for as_dir in $PATH
11614 test -z "$as_dir" && as_dir=.
11615 for ac_exec_ext in '' $ac_executable_extensions; do
11616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617 ac_cv_prog_MAKEINFO="makeinfo"
11618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 MAKEINFO=$ac_cv_prog_MAKEINFO
11628 if test -n "$MAKEINFO"; then
11629 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11630 echo "${ECHO_T}$MAKEINFO" >&6; }
11632 { echo "$as_me:$LINENO: result: no" >&5
11633 echo "${ECHO_T}no" >&6; }
11637 if test "_$MAKEINFO" = "_"; then
11638 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11640 case "$MAKEINFO" in
11642 { echo "$as_me:$LINENO: WARNING:
11643 *** Makeinfo is missing. Info documentation will not be built." >&5
11644 echo "$as_me: WARNING:
11645 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11652 # Find a good install program. We prefer a C program (faster),
11653 # so one script is as good as another. But avoid the broken or
11654 # incompatible versions:
11655 # SysV /etc/install, /usr/sbin/install
11656 # SunOS /usr/etc/install
11657 # IRIX /sbin/install
11659 # AmigaOS /C/install, which installs bootblocks on floppy discs
11660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11663 # OS/2's system install, which has a completely different semantic
11664 # ./install, which can be erroneously created by make from ./install.sh.
11665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11667 if test -z "$INSTALL"; then
11668 if test "${ac_cv_path_install+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11675 test -z "$as_dir" && as_dir=.
11676 # Account for people who put trailing slashes in PATH elements.
11678 ./ | .// | /cC/* | \
11679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11683 # OSF1 and SCO ODT 3.0 have their own names for install.
11684 # Don't use installbsd from OSF since it installs stuff as root
11686 for ac_prog in ginstall scoinst install; do
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11689 if test $ac_prog = install &&
11690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11691 # AIX install. It has an incompatible calling convention.
11693 elif test $ac_prog = install &&
11694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11695 # program-specific install script used by HP pwplus--don't use.
11698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11711 if test "${ac_cv_path_install+set}" = set; then
11712 INSTALL=$ac_cv_path_install
11714 # As a last resort, use the slow shell script. Don't cache a
11715 # value for INSTALL within a source directory, because that will
11716 # break other packages using the cache if that directory is
11717 # removed, or if the value is a relative name.
11718 INSTALL=$ac_install_sh
11721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11722 echo "${ECHO_T}$INSTALL" >&6; }
11724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11725 # It thinks the first close brace ends the variable substitution.
11726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11732 # See if we need a separate native compiler.
11733 if test $cross_compiling = no; then
11737 for ac_prog in gcc cc
11739 # Extract the first word of "$ac_prog", so it can be a program name with args.
11740 set dummy $ac_prog; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 if test -n "$BUILD_CC"; then
11747 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_prog_BUILD_CC="$ac_prog"
11757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 BUILD_CC=$ac_cv_prog_BUILD_CC
11767 if test -n "$BUILD_CC"; then
11768 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11769 echo "${ECHO_T}$BUILD_CC" >&6; }
11771 { echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6; }
11776 test -n "$BUILD_CC" && break
11815 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.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
11817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 ac_res=`eval echo '${'$as_ac_Header'}'`
11825 { echo "$as_me:$LINENO: result: $ac_res" >&5
11826 echo "${ECHO_T}$ac_res" >&6; }
11828 # Is the header compilable?
11829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11831 cat >conftest.$ac_ext <<_ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 $ac_includes_default
11838 #include <$ac_header>
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1 >conftest.err
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
11857 ac_header_compiler=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_header_compiler=no
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867 echo "${ECHO_T}$ac_header_compiler" >&6; }
11869 # Is the header present?
11870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <$ac_header>
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null && {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11896 ac_header_preproc=yes
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 ac_header_preproc=no
11904 rm -f conftest.err conftest.$ac_ext
11905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11906 echo "${ECHO_T}$ac_header_preproc" >&6; }
11908 # So? What about this header?
11909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11915 ac_header_preproc=yes
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 eval "$as_ac_Header=\$ac_header_preproc"
11940 ac_res=`eval echo '${'$as_ac_Header'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942 echo "${ECHO_T}$ac_res" >&6; }
11945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 for ac_header in sys/disk.h sys/mount.h
11958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11971 #if HAVE_SYS_QUEUE_H
11972 #include <sys/queue.h>
11976 #include <$ac_header>
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_compile") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest.$ac_objext; then
11995 eval "$as_ac_Header=yes"
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 eval "$as_ac_Header=no"
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12005 ac_res=`eval echo '${'$as_ac_Header'}'`
12006 { echo "$as_me:$LINENO: result: $ac_res" >&5
12007 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12018 for ac_header in net/if.h
12020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12033 #if HAVE_SYS_TYPES_H
12034 #include <sys/types.h>
12036 #if HAVE_SYS_SOCKET
12037 #include <sys/socket.h>
12041 #include <$ac_header>
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1 >conftest.err
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 eval "$as_ac_Header=yes"
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 eval "$as_ac_Header=no"
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 ac_res=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12083 for ac_func in vprintf
12085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12099 #define $ac_func innocuous_$ac_func
12101 /* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char $ac_func (); below.
12103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 <limits.h> exists even on freestanding compilers. */
12107 # include <limits.h>
12109 # include <assert.h>
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12121 /* The GNU C library defines this for functions which it implements
12122 to always fail with ENOSYS. Some functions are actually named
12123 something starting with __ and the normal name is an alias. */
12124 #if defined __stub_$ac_func || defined __stub___$ac_func
12131 return $ac_func ();
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext &&
12153 $as_test_x conftest$ac_exeext; then
12154 eval "$as_ac_var=yes"
12156 echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 eval "$as_ac_var=no"
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163 conftest$ac_exeext conftest.$ac_ext
12165 ac_res=`eval echo '${'$as_ac_var'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12174 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12175 if test "${ac_cv_func__doprnt+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12186 #define _doprnt innocuous__doprnt
12188 /* System header to define __stub macros and hopefully few prototypes,
12189 which can conflict with char _doprnt (); below.
12190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191 <limits.h> exists even on freestanding compilers. */
12194 # include <limits.h>
12196 # include <assert.h>
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined __stub__doprnt || defined __stub____doprnt
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
12232 grep -v '^ *+' conftest.er1 >conftest.err
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } && {
12237 test -z "$ac_c_werror_flag" ||
12238 test ! -s conftest.err
12239 } && test -s conftest$ac_exeext &&
12240 $as_test_x conftest$ac_exeext; then
12241 ac_cv_func__doprnt=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_func__doprnt=no
12249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12250 conftest$ac_exeext conftest.$ac_ext
12252 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12253 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12254 if test $ac_cv_func__doprnt = yes; then
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_DOPRNT 1
12266 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12267 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12268 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 #include <dirent.h>
12282 static struct dirent ac_aggr;
12283 if (ac_aggr.d_reclen)
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 ac_cv_member_struct_dirent_d_reclen=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <dirent.h>
12322 static struct dirent ac_aggr;
12323 if (sizeof ac_aggr.d_reclen)
12329 rm -f conftest.$ac_objext
12330 if { (ac_try="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.$ac_objext; then
12346 ac_cv_member_struct_dirent_d_reclen=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_cv_member_struct_dirent_d_reclen=no
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12360 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12361 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12362 cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_RECLEN_DIRENT 1
12368 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12369 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12370 if test "${ac_cv_type_ssize_t+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 #include <sys/types.h>
12381 typedef ssize_t ac__type_new_;
12385 if ((ac__type_new_ *) 0)
12387 if (sizeof (ac__type_new_))
12393 rm -f conftest.$ac_objext
12394 if { (ac_try="$ac_compile"
12395 case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_compile") 2>conftest.er1
12402 grep -v '^ *+' conftest.er1 >conftest.err
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest.$ac_objext; then
12410 ac_cv_type_ssize_t=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ac_cv_type_ssize_t=no
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12420 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12421 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12422 if test $ac_cv_type_ssize_t = yes; then
12423 cat >>confdefs.h <<\_ACEOF
12424 #define HAVE_TYPE_SSIZE_T 1
12429 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12430 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12431 if test "${ac_cv_have_decl_llseek+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 #include <unistd.h>
12453 rm -f conftest.$ac_objext
12454 if { (ac_try="$ac_compile"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_compile") 2>conftest.er1
12462 grep -v '^ *+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest.$ac_objext; then
12470 ac_cv_have_decl_llseek=yes
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12475 ac_cv_have_decl_llseek=no
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12481 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12482 if test $ac_cv_have_decl_llseek = yes; then
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_LLSEEK_PROTOTYPE 1
12489 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12490 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12491 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 cat >conftest.$ac_ext <<_ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 #define _LARGEFILE_SOURCE
12501 #define _LARGEFILE64_SOURCE
12502 #include <unistd.h>
12515 rm -f conftest.$ac_objext
12516 if { (ac_try="$ac_compile"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_compile") 2>conftest.er1
12524 grep -v '^ *+' conftest.er1 >conftest.err
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } && {
12529 test -z "$ac_c_werror_flag" ||
12530 test ! -s conftest.err
12531 } && test -s conftest.$ac_objext; then
12532 ac_cv_have_decl_lseek64=yes
12534 echo "$as_me: failed program was:" >&5
12535 sed 's/^/| /' conftest.$ac_ext >&5
12537 ac_cv_have_decl_lseek64=no
12540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12542 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12543 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12544 if test $ac_cv_have_decl_lseek64 = yes; then
12545 cat >>confdefs.h <<\_ACEOF
12546 #define HAVE_LSEEK64_PROTOTYPE 1
12551 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12552 # if cross-compiling, with no cached values, just assume something common.
12553 ac_cv_sizeof_short=2
12555 ac_cv_sizeof_long=4
12556 ac_cv_sizeof_long_long=8
12557 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12558 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12560 { echo "$as_me:$LINENO: checking for short" >&5
12561 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12562 if test "${ac_cv_type_short+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 $ac_includes_default
12572 typedef short ac__type_new_;
12576 if ((ac__type_new_ *) 0)
12578 if (sizeof (ac__type_new_))
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
12601 ac_cv_type_short=yes
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_cv_type_short=no
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12612 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12614 # The cast to long int works around a bug in the HP C Compiler
12615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617 # This bug is HP SR number 8606223364.
12618 { echo "$as_me:$LINENO: checking size of short" >&5
12619 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12620 if test "${ac_cv_sizeof_short+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 if test "$cross_compiling" = yes; then
12624 # Depending upon the size, compute the lo and hi bounds.
12625 cat >conftest.$ac_ext <<_ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 typedef short ac__type_sizeof_;
12636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12652 grep -v '^ *+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12669 typedef short ac__type_sizeof_;
12673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12697 ac_hi=$ac_mid; break
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_lo=`expr $ac_mid + 1`
12703 if test $ac_lo -le $ac_mid; then
12707 ac_mid=`expr 2 '*' $ac_mid + 1`
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 typedef short ac__type_sizeof_;
12727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12734 rm -f conftest.$ac_objext
12735 if { (ac_try="$ac_compile"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_compile") 2>conftest.er1
12743 grep -v '^ *+' conftest.er1 >conftest.err
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest.$ac_objext; then
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 $ac_includes_default
12760 typedef short ac__type_sizeof_;
12764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_compile") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest.$ac_objext; then
12788 ac_lo=$ac_mid; break
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 ac_hi=`expr '(' $ac_mid ')' - 1`
12794 if test $ac_mid -le $ac_hi; then
12798 ac_mid=`expr 2 '*' $ac_mid`
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 # Binary search between lo and hi bounds.
12815 while test "x$ac_lo" != "x$ac_hi"; do
12816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12817 cat >conftest.$ac_ext <<_ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 typedef short ac__type_sizeof_;
12828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12835 rm -f conftest.$ac_objext
12836 if { (ac_try="$ac_compile"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_lo=`expr '(' $ac_mid ')' + 1`
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 ?*) ac_cv_sizeof_short=$ac_lo;;
12864 '') if test "$ac_cv_type_short" = yes; then
12865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12866 See \`config.log' for more details." >&5
12867 echo "$as_me: error: cannot compute sizeof (short)
12868 See \`config.log' for more details." >&2;}
12869 { (exit 77); exit 77; }; }
12871 ac_cv_sizeof_short=0
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12882 typedef short ac__type_sizeof_;
12883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12886 #include <stdlib.h>
12891 FILE *f = fopen ("conftest.val", "w");
12894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12896 long int i = longval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12899 fprintf (f, "%ld\n", i);
12903 unsigned long int i = ulongval ();
12904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12906 fprintf (f, "%lu\n", i);
12908 return ferror (f) || fclose (f) != 0;
12914 rm -f conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_link") 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_sizeof_short=`cat conftest.val`
12936 echo "$as_me: program exited with status $ac_status" >&5
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ( exit $ac_status )
12941 if test "$ac_cv_type_short" = yes; then
12942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12943 See \`config.log' for more details." >&5
12944 echo "$as_me: error: cannot compute sizeof (short)
12945 See \`config.log' for more details." >&2;}
12946 { (exit 77); exit 77; }; }
12948 ac_cv_sizeof_short=0
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12956 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12960 cat >>confdefs.h <<_ACEOF
12961 #define SIZEOF_SHORT $ac_cv_sizeof_short
12965 { echo "$as_me:$LINENO: checking for int" >&5
12966 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12967 if test "${ac_cv_type_int+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 typedef int ac__type_new_;
12981 if ((ac__type_new_ *) 0)
12983 if (sizeof (ac__type_new_))
12989 rm -f conftest.$ac_objext
12990 if { (ac_try="$ac_compile"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_compile") 2>conftest.er1
12998 grep -v '^ *+' conftest.er1 >conftest.err
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13017 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13019 # The cast to long int works around a bug in the HP C Compiler
13020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13022 # This bug is HP SR number 8606223364.
13023 { echo "$as_me:$LINENO: checking size of int" >&5
13024 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13025 if test "${ac_cv_sizeof_int+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 if test "$cross_compiling" = yes; then
13029 # Depending upon the size, compute the lo and hi bounds.
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 $ac_includes_default
13037 typedef int ac__type_sizeof_;
13041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13048 rm -f conftest.$ac_objext
13049 if { (ac_try="$ac_compile"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_compile") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest.$ac_objext; then
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 $ac_includes_default
13074 typedef int ac__type_sizeof_;
13078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
13102 ac_hi=$ac_mid; break
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ac_lo=`expr $ac_mid + 1`
13108 if test $ac_lo -le $ac_mid; then
13112 ac_mid=`expr 2 '*' $ac_mid + 1`
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13128 typedef int ac__type_sizeof_;
13132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 $ac_includes_default
13165 typedef int ac__type_sizeof_;
13169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13176 rm -f conftest.$ac_objext
13177 if { (ac_try="$ac_compile"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_compile") 2>conftest.er1
13185 grep -v '^ *+' conftest.er1 >conftest.err
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest.$ac_objext; then
13193 ac_lo=$ac_mid; break
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 ac_hi=`expr '(' $ac_mid ')' - 1`
13199 if test $ac_mid -le $ac_hi; then
13203 ac_mid=`expr 2 '*' $ac_mid`
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 # Binary search between lo and hi bounds.
13220 while test "x$ac_lo" != "x$ac_hi"; do
13221 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 $ac_includes_default
13229 typedef int ac__type_sizeof_;
13233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_compile") 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } && {
13254 test -z "$ac_c_werror_flag" ||
13255 test ! -s conftest.err
13256 } && test -s conftest.$ac_objext; then
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ac_lo=`expr '(' $ac_mid ')' + 1`
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 ?*) ac_cv_sizeof_int=$ac_lo;;
13269 '') if test "$ac_cv_type_int" = yes; then
13270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13271 See \`config.log' for more details." >&5
13272 echo "$as_me: error: cannot compute sizeof (int)
13273 See \`config.log' for more details." >&2;}
13274 { (exit 77); exit 77; }; }
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13287 typedef int ac__type_sizeof_;
13288 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13289 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13291 #include <stdlib.h>
13296 FILE *f = fopen ("conftest.val", "w");
13299 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13301 long int i = longval ();
13302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13304 fprintf (f, "%ld\n", i);
13308 unsigned long int i = ulongval ();
13309 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13311 fprintf (f, "%lu\n", i);
13313 return ferror (f) || fclose (f) != 0;
13319 rm -f conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_link") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_sizeof_int=`cat conftest.val`
13341 echo "$as_me: program exited with status $ac_status" >&5
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ( exit $ac_status )
13346 if test "$ac_cv_type_int" = yes; then
13347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13348 See \`config.log' for more details." >&5
13349 echo "$as_me: error: cannot compute sizeof (int)
13350 See \`config.log' for more details." >&2;}
13351 { (exit 77); exit 77; }; }
13356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13360 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13361 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13365 cat >>confdefs.h <<_ACEOF
13366 #define SIZEOF_INT $ac_cv_sizeof_int
13370 { echo "$as_me:$LINENO: checking for long" >&5
13371 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13372 if test "${ac_cv_type_long+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 typedef long ac__type_new_;
13386 if ((ac__type_new_ *) 0)
13388 if (sizeof (ac__type_new_))
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest.$ac_objext; then
13411 ac_cv_type_long=yes
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13422 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13424 # The cast to long int works around a bug in the HP C Compiler
13425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13427 # This bug is HP SR number 8606223364.
13428 { echo "$as_me:$LINENO: checking size of long" >&5
13429 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13430 if test "${ac_cv_sizeof_long+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 if test "$cross_compiling" = yes; then
13434 # Depending upon the size, compute the lo and hi bounds.
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441 $ac_includes_default
13442 typedef long ac__type_sizeof_;
13446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && {
13467 test -z "$ac_c_werror_flag" ||
13468 test ! -s conftest.err
13469 } && test -s conftest.$ac_objext; then
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13479 typedef long ac__type_sizeof_;
13483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_hi=$ac_mid; break
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 ac_lo=`expr $ac_mid + 1`
13513 if test $ac_lo -le $ac_mid; then
13517 ac_mid=`expr 2 '*' $ac_mid + 1`
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 cat >conftest.$ac_ext <<_ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 $ac_includes_default
13533 typedef long ac__type_sizeof_;
13537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13553 grep -v '^ *+' conftest.er1 >conftest.err
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 $ac_includes_default
13570 typedef long ac__type_sizeof_;
13574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13590 grep -v '^ *+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } && {
13595 test -z "$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13597 } && test -s conftest.$ac_objext; then
13598 ac_lo=$ac_mid; break
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 ac_hi=`expr '(' $ac_mid ')' - 1`
13604 if test $ac_mid -le $ac_hi; then
13608 ac_mid=`expr 2 '*' $ac_mid`
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 # Binary search between lo and hi bounds.
13625 while test "x$ac_lo" != "x$ac_hi"; do
13626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627 cat >conftest.$ac_ext <<_ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633 $ac_includes_default
13634 typedef long ac__type_sizeof_;
13638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13645 rm -f conftest.$ac_objext
13646 if { (ac_try="$ac_compile"
13647 case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_compile") 2>conftest.er1
13654 grep -v '^ *+' conftest.er1 >conftest.err
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } && {
13659 test -z "$ac_c_werror_flag" ||
13660 test ! -s conftest.err
13661 } && test -s conftest.$ac_objext; then
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_lo=`expr '(' $ac_mid ')' + 1`
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 ?*) ac_cv_sizeof_long=$ac_lo;;
13674 '') if test "$ac_cv_type_long" = yes; then
13675 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13676 See \`config.log' for more details." >&5
13677 echo "$as_me: error: cannot compute sizeof (long)
13678 See \`config.log' for more details." >&2;}
13679 { (exit 77); exit 77; }; }
13681 ac_cv_sizeof_long=0
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13692 typedef long ac__type_sizeof_;
13693 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13694 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13696 #include <stdlib.h>
13701 FILE *f = fopen ("conftest.val", "w");
13704 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13706 long int i = longval ();
13707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13709 fprintf (f, "%ld\n", i);
13713 unsigned long int i = ulongval ();
13714 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13716 fprintf (f, "%lu\n", i);
13718 return ferror (f) || fclose (f) != 0;
13724 rm -f conftest$ac_exeext
13725 if { (ac_try="$ac_link"
13726 case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_link") 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_cv_sizeof_long=`cat conftest.val`
13746 echo "$as_me: program exited with status $ac_status" >&5
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ( exit $ac_status )
13751 if test "$ac_cv_type_long" = yes; then
13752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13753 See \`config.log' for more details." >&5
13754 echo "$as_me: error: cannot compute sizeof (long)
13755 See \`config.log' for more details." >&2;}
13756 { (exit 77); exit 77; }; }
13758 ac_cv_sizeof_long=0
13761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13765 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13766 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13770 cat >>confdefs.h <<_ACEOF
13771 #define SIZEOF_LONG $ac_cv_sizeof_long
13775 { echo "$as_me:$LINENO: checking for long long" >&5
13776 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13777 if test "${ac_cv_type_long_long+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13787 typedef long long ac__type_new_;
13791 if ((ac__type_new_ *) 0)
13793 if (sizeof (ac__type_new_))
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
13816 ac_cv_type_long_long=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_cv_type_long_long=no
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13827 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13829 # The cast to long int works around a bug in the HP C Compiler
13830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13832 # This bug is HP SR number 8606223364.
13833 { echo "$as_me:$LINENO: checking size of long long" >&5
13834 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13835 if test "${ac_cv_sizeof_long_long+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 if test "$cross_compiling" = yes; then
13839 # Depending upon the size, compute the lo and hi bounds.
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13847 typedef long long ac__type_sizeof_;
13851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13877 cat >conftest.$ac_ext <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 $ac_includes_default
13884 typedef long long ac__type_sizeof_;
13888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13895 rm -f conftest.$ac_objext
13896 if { (ac_try="$ac_compile"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_compile") 2>conftest.er1
13904 grep -v '^ *+' conftest.er1 >conftest.err
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest.$ac_objext; then
13912 ac_hi=$ac_mid; break
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 ac_lo=`expr $ac_mid + 1`
13918 if test $ac_lo -le $ac_mid; then
13922 ac_mid=`expr 2 '*' $ac_mid + 1`
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 $ac_includes_default
13938 typedef long long ac__type_sizeof_;
13942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_compile") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest.$ac_objext; then
13968 cat >conftest.$ac_ext <<_ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 $ac_includes_default
13975 typedef long long ac__type_sizeof_;
13979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13986 rm -f conftest.$ac_objext
13987 if { (ac_try="$ac_compile"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_compile") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest.$ac_objext; then
14003 ac_lo=$ac_mid; break
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_hi=`expr '(' $ac_mid ')' - 1`
14009 if test $ac_mid -le $ac_hi; then
14013 ac_mid=`expr 2 '*' $ac_mid`
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 # Binary search between lo and hi bounds.
14030 while test "x$ac_lo" != "x$ac_hi"; do
14031 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14032 cat >conftest.$ac_ext <<_ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 $ac_includes_default
14039 typedef long long ac__type_sizeof_;
14043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14050 rm -f conftest.$ac_objext
14051 if { (ac_try="$ac_compile"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_compile") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest.$ac_objext; then
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_lo=`expr '(' $ac_mid ')' + 1`
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14079 '') if test "$ac_cv_type_long_long" = yes; then
14080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14081 See \`config.log' for more details." >&5
14082 echo "$as_me: error: cannot compute sizeof (long long)
14083 See \`config.log' for more details." >&2;}
14084 { (exit 77); exit 77; }; }
14086 ac_cv_sizeof_long_long=0
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 $ac_includes_default
14097 typedef long long ac__type_sizeof_;
14098 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14099 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14101 #include <stdlib.h>
14106 FILE *f = fopen ("conftest.val", "w");
14109 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14111 long int i = longval ();
14112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14114 fprintf (f, "%ld\n", i);
14118 unsigned long int i = ulongval ();
14119 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14121 fprintf (f, "%lu\n", i);
14123 return ferror (f) || fclose (f) != 0;
14129 rm -f conftest$ac_exeext
14130 if { (ac_try="$ac_link"
14131 case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_link") 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14140 { (case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_cv_sizeof_long_long=`cat conftest.val`
14151 echo "$as_me: program exited with status $ac_status" >&5
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ( exit $ac_status )
14156 if test "$ac_cv_type_long_long" = yes; then
14157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14158 See \`config.log' for more details." >&5
14159 echo "$as_me: error: cannot compute sizeof (long long)
14160 See \`config.log' for more details." >&2;}
14161 { (exit 77); exit 77; }; }
14163 ac_cv_sizeof_long_long=0
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14170 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14171 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14175 cat >>confdefs.h <<_ACEOF
14176 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14180 SIZEOF_SHORT=$ac_cv_sizeof_short
14181 SIZEOF_INT=$ac_cv_sizeof_int
14182 SIZEOF_LONG=$ac_cv_sizeof_long
14183 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14188 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14189 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14190 if test "${ac_cv_c_bigendian+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 # See if sys/param.h defines the BYTE_ORDER macro.
14194 cat >conftest.$ac_ext <<_ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 #include <sys/types.h>
14201 #include <sys/param.h>
14206 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14207 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14208 bogus endian macros
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_compile") 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } && {
14229 test -z "$ac_c_werror_flag" ||
14230 test ! -s conftest.err
14231 } && test -s conftest.$ac_objext; then
14232 # It does; now see whether it defined to BIG_ENDIAN or not.
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #include <sys/types.h>
14240 #include <sys/param.h>
14245 #if BYTE_ORDER != BIG_ENDIAN
14253 rm -f conftest.$ac_objext
14254 if { (ac_try="$ac_compile"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_compile") 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest.$ac_objext; then
14270 ac_cv_c_bigendian=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_c_bigendian=no
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 # It does not; compile a test program.
14284 if test "$cross_compiling" = yes; then
14285 # try to guess the endianness by grepping values into an object file
14286 ac_cv_c_bigendian=unknown
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14294 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14295 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14296 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14297 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14298 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14302 _ascii (); _ebcdic ();
14307 rm -f conftest.$ac_objext
14308 if { (ac_try="$ac_compile"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_compile") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest.$ac_objext; then
14324 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14325 ac_cv_c_bigendian=yes
14327 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14328 if test "$ac_cv_c_bigendian" = unknown; then
14329 ac_cv_c_bigendian=no
14331 # finding both strings is unlikely to happen, but who knows?
14332 ac_cv_c_bigendian=unknown
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 $ac_includes_default
14355 /* Are we little or big endian? From Harbison&Steele. */
14359 char c[sizeof (long int)];
14362 return u.c[sizeof (long int) - 1] == 1;
14368 rm -f conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_c_bigendian=no
14390 echo "$as_me: program exited with status $ac_status" >&5
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ( exit $ac_status )
14395 ac_cv_c_bigendian=yes
14397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14406 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14407 case $ac_cv_c_bigendian in
14410 cat >>confdefs.h <<\_ACEOF
14411 #define WORDS_BIGENDIAN 1
14417 { { echo "$as_me:$LINENO: error: unknown endianness
14418 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14419 echo "$as_me: error: unknown endianness
14420 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14421 { (exit 1); exit 1; }; } ;;
14424 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14425 ASM_TYPES_HEADER=./asm_types.h
14428 for ac_header in inttypes.h
14430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 ac_res=`eval echo '${'$as_ac_Header'}'`
14438 { echo "$as_me:$LINENO: result: $ac_res" >&5
14439 echo "${ECHO_T}$ac_res" >&6; }
14441 # Is the header compilable?
14442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 #include <$ac_header>
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1 >conftest.err
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.$ac_objext; then
14470 ac_header_compiler=yes
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_header_compiler=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6; }
14482 # Is the header present?
14483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <$ac_header>
14493 if { (ac_try="$ac_cpp conftest.$ac_ext"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } >/dev/null && {
14506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14509 ac_header_preproc=yes
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_header_preproc=no
14517 rm -f conftest.err conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519 echo "${ECHO_T}$ac_header_preproc" >&6; }
14521 # So? What about this header?
14522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14528 ac_header_preproc=yes
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 eval "$as_ac_Header=\$ac_header_preproc"
14553 ac_res=`eval echo '${'$as_ac_Header'}'`
14554 { echo "$as_me:$LINENO: result: $ac_res" >&5
14555 echo "${ECHO_T}$ac_res" >&6; }
14558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14567 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14568 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14569 if test "${ac_cv_type_intptr_t+set}" = set; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14579 typedef intptr_t ac__type_new_;
14583 if ((ac__type_new_ *) 0)
14585 if (sizeof (ac__type_new_))
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_compile") 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } && {
14605 test -z "$ac_c_werror_flag" ||
14606 test ! -s conftest.err
14607 } && test -s conftest.$ac_objext; then
14608 ac_cv_type_intptr_t=yes
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14613 ac_cv_type_intptr_t=no
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14619 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14620 if test $ac_cv_type_intptr_t = yes; then
14622 cat >>confdefs.h <<_ACEOF
14623 #define HAVE_INTPTR_T 1
14629 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14630 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14631 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 cat >conftest.$ac_ext <<_ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 #include <sys/stat.h>
14644 struct stat stat; stat.st_flags = 0;
14649 rm -f conftest.$ac_objext
14650 if { (ac_try="$ac_compile"
14651 case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_compile") 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest.$ac_objext; then
14666 e2fsprogs_cv_struct_st_flags=yes
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 e2fsprogs_cv_struct_st_flags=no
14674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14678 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14679 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14680 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14681 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14682 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 cat >conftest.$ac_ext <<_ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h. */
14691 #include <sys/stat.h>
14695 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest.$ac_objext; then
14717 e2fsprogs_cv_struct_st_flags_immut=yes
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 e2fsprogs_cv_struct_st_flags_immut=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14729 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14730 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14731 cat >>confdefs.h <<\_ACEOF
14732 #define HAVE_STAT_FLAGS 1
14737 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14738 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14739 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 cat >conftest.$ac_ext <<_ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <sys/types.h>
14749 #include <sys/socket.h>
14754 static struct sockaddr ac_aggr;
14755 if (ac_aggr.sa_len)
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_compile") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest.$ac_objext; then
14778 ac_cv_member_struct_sockaddr_sa_len=yes
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 cat >conftest.$ac_ext <<_ACEOF
14786 cat confdefs.h >>conftest.$ac_ext
14787 cat >>conftest.$ac_ext <<_ACEOF
14788 /* end confdefs.h. */
14789 #include <sys/types.h>
14790 #include <sys/socket.h>
14795 static struct sockaddr ac_aggr;
14796 if (sizeof ac_aggr.sa_len)
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
14811 grep -v '^ *+' conftest.er1 >conftest.err
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest.$ac_objext; then
14819 ac_cv_member_struct_sockaddr_sa_len=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_member_struct_sockaddr_sa_len=no
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14832 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14833 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14834 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837 #define HAVE_SA_LEN 1
14871 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
14873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14887 #define $ac_func innocuous_$ac_func
14889 /* System header to define __stub macros and hopefully few prototypes,
14890 which can conflict with char $ac_func (); below.
14891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892 <limits.h> exists even on freestanding compilers. */
14895 # include <limits.h>
14897 # include <assert.h>
14902 /* Override any GCC internal prototype to avoid an error.
14903 Use char because int might match the return type of a GCC
14904 builtin and then its argument prototype would still apply. */
14909 /* The GNU C library defines this for functions which it implements
14910 to always fail with ENOSYS. Some functions are actually named
14911 something starting with __ and the normal name is an alias. */
14912 #if defined __stub_$ac_func || defined __stub___$ac_func
14919 return $ac_func ();
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (ac_try="$ac_link"
14926 case "(($ac_try" in
14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14928 *) ac_try_echo=$ac_try;;
14930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14931 (eval "$ac_link") 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } && {
14938 test -z "$ac_c_werror_flag" ||
14939 test ! -s conftest.err
14940 } && test -s conftest$ac_exeext &&
14941 $as_test_x conftest$ac_exeext; then
14942 eval "$as_ac_var=yes"
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14947 eval "$as_ac_var=no"
14950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14951 conftest$ac_exeext conftest.$ac_ext
14953 ac_res=`eval echo '${'$as_ac_var'}'`
14954 { echo "$as_me:$LINENO: result: $ac_res" >&5
14955 echo "${ECHO_T}$ac_res" >&6; }
14956 if test `eval echo '${'$as_ac_var'}'` = yes; then
14957 cat >>confdefs.h <<_ACEOF
14958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14965 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14966 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14967 if test "${ac_cv_lib_socket_socket+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 ac_check_lib_save_LIBS=$LIBS
14971 LIBS="-lsocket $LIBS"
14972 cat >conftest.$ac_ext <<_ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14979 /* Override any GCC internal prototype to avoid an error.
14980 Use char because int might match the return type of a GCC
14981 builtin and then its argument prototype would still apply. */
14994 rm -f conftest.$ac_objext conftest$ac_exeext
14995 if { (ac_try="$ac_link"
14996 case "(($ac_try" in
14997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_link") 2>conftest.er1
15003 grep -v '^ *+' conftest.er1 >conftest.err
15005 cat conftest.err >&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } && {
15008 test -z "$ac_c_werror_flag" ||
15009 test ! -s conftest.err
15010 } && test -s conftest$ac_exeext &&
15011 $as_test_x conftest$ac_exeext; then
15012 ac_cv_lib_socket_socket=yes
15014 echo "$as_me: failed program was:" >&5
15015 sed 's/^/| /' conftest.$ac_ext >&5
15017 ac_cv_lib_socket_socket=no
15020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15021 conftest$ac_exeext conftest.$ac_ext
15022 LIBS=$ac_check_lib_save_LIBS
15024 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15025 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15026 if test $ac_cv_lib_socket_socket = yes; then
15027 SOCKET_LIB=-lsocket
15032 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15033 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 ac_check_lib_save_LIBS=$LIBS
15039 cat >conftest.$ac_ext <<_ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15046 /* Override any GCC internal prototype to avoid an error.
15047 Use char because int might match the return type of a GCC
15048 builtin and then its argument prototype would still apply. */
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (ac_try="$ac_link"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
15079 ac_cv_lib_dl_dlopen=yes
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 ac_cv_lib_dl_dlopen=no
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15089 LIBS=$ac_check_lib_save_LIBS
15091 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15092 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15093 if test $ac_cv_lib_dl_dlopen = yes; then
15095 cat >>confdefs.h <<\_ACEOF
15096 #define HAVE_DLOPEN 1
15102 { echo "$as_me:$LINENO: checking for optreset" >&5
15103 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15104 if test "${ac_cv_have_optreset+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <unistd.h>
15116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15117 $EGREP "optreset" >/dev/null 2>&1; then
15118 ac_cv_have_optreset=yes
15120 ac_cv_have_optreset=no
15125 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15126 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15127 if test $ac_cv_have_optreset = yes; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define HAVE_OPTRESET 1
15133 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15134 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15135 if diff -u $0 $0 > /dev/null 2>&1 ; then
15140 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15141 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15145 cat >>confdefs.h <<\_ACEOF
15146 #define HAVE_EXT2_IOCTLS 1
15167 linux* | gnu* | k*bsd*-gnu)
15168 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15170 echo "On $host_os systems, root_prefix defaults to ''"
15175 linux* | gnu* | k*bsd*-gnu)
15176 if test "$prefix" = NONE ; then
15178 echo "On $host_os systems, prefix defaults to /usr"
15179 if test "$mandir" = '${prefix}/man' ; then
15180 echo "...and mandir defaults to /usr/share/man"
15181 mandir=/usr/share/man
15186 if test "$root_prefix" = NONE ; then
15187 if test "$prefix" = NONE ; then
15188 root_prefix="$ac_default_prefix"
15190 root_prefix="$prefix"
15192 root_bindir=$bindir
15193 root_sbindir=$sbindir
15194 root_libdir=$libdir
15195 root_sysconfdir=$sysconfdir
15197 root_bindir='${root_prefix}/bin'
15198 root_sbindir='${root_prefix}/sbin'
15199 root_libdir='${root_prefix}/lib'
15200 root_sysconfdir='${root_prefix}/etc'
15202 if test "$bindir" != '${exec_prefix}/bin'; then
15203 root_bindir=$bindir
15204 echo "Setting root_bindir to $root_bindir"
15206 if test "$sbindir" != '${exec_prefix}/sbin'; then
15207 root_sbindir=$sbindir
15208 echo "Setting root_sbindir to $root_sbindir"
15210 if test "$libdir" != '${exec_prefix}/lib'; then
15211 root_libdir=$libdir
15212 echo "Setting root_libdir to $root_libdir"
15214 if test "$sysconfdir" != '${prefix}/etc'; then
15215 root_sysconfdir=$sysconfdir
15216 echo "Setting root_sysconfdir to $root_sysconfdir"
15223 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15224 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15225 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15229 cat >conftest.$ac_ext <<_ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15244 rm -f conftest.$ac_objext conftest$ac_exeext
15245 if { (ac_try="$ac_link"
15246 case "(($ac_try" in
15247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15248 *) ac_try_echo=$ac_try;;
15250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15251 (eval "$ac_link") 2>conftest.er1
15253 grep -v '^ *+' conftest.er1 >conftest.err
15255 cat conftest.err >&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && {
15258 test -z "$ac_c_werror_flag" ||
15259 test ! -s conftest.err
15260 } && test -s conftest$ac_exeext &&
15261 $as_test_x conftest$ac_exeext; then
15262 ac_cv_e2fsprogs_use_static=yes
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15267 ac_cv_e2fsprogs_use_static=no
15270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15271 conftest$ac_exeext conftest.$ac_ext
15272 LDFLAGS=$SAVE_LDFLAGS
15277 ac_cv_e2fsprogs_use_static=no
15280 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15281 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15283 if test $ac_cv_e2fsprogs_use_static = yes; then
15284 LDFLAG_STATIC=-static
15289 echo "Using Apple Darwin / GNU libintl workaround"
15290 cat >>confdefs.h <<\_ACEOF
15291 #define _INTL_REDIRECT_MACROS 1
15296 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15297 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15300 if test "$cross_compiling" = yes ; then
15303 DO_TEST_SUITE=check
15307 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15308 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15311 if test $cross_compiling = no; then
15312 BUILD_CFLAGS="$CFLAGS"
15313 BUILD_LDFLAGS="$LDFLAGS"
15320 test -d lib || mkdir lib
15321 test -d include || mkdir include
15322 test -d include/linux || mkdir include/linux
15323 test -d include/asm || mkdir include/asm
15324 for i in MCONFIG Makefile e2fsprogs.spec \
15325 util/Makefile util/subst.conf util/gen-tarball \
15326 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15327 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15328 lib/uuid/Makefile lib/uuid/uuid_types.h \
15329 lib/blkid/Makefile lib/blkid/blkid_types.h \
15330 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15331 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15332 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15333 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15334 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15335 if test -d `dirname ${srcdir}/$i` ; then
15336 outlist="$outlist $i"
15339 ac_config_files="$ac_config_files $outlist"
15341 cat >confcache <<\_ACEOF
15342 # This file is a shell script that caches the results of configure
15343 # tests run on this system so they can be shared between configure
15344 # scripts and configure runs, see configure's option --config-cache.
15345 # It is not useful on other systems. If it contains results you don't
15346 # want to keep, you may remove or edit it.
15348 # config.status only pays attention to the cache file if you give it
15349 # the --recheck option to rerun configure.
15351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15353 # following values.
15357 # The following way of writing the cache mishandles newlines in values,
15358 # but we know of no workaround that is simple, portable, and efficient.
15359 # So, we kill variables containing newlines.
15360 # Ultrix sh set writes to stderr and can't be redirected directly,
15361 # and sets the high bit in the cache file unless we assign to the vars.
15363 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15364 eval ac_val=\$$ac_var
15368 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15369 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15372 _ | IFS | as_nl) ;; #(
15373 *) $as_unset $ac_var ;;
15379 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15380 *${as_nl}ac_space=\ *)
15381 # `set' does not quote correctly, so add quotes (double-quote
15382 # substitution turns \\\\ into \\, and sed turns \\ into \).
15385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15388 # `set' quotes correctly as required by POSIX, so do not add quotes.
15389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15402 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15403 if test -w "$cache_file"; then
15404 test "x$cache_file" != "x/dev/null" &&
15405 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15406 echo "$as_me: updating cache $cache_file" >&6;}
15407 cat confcache >$cache_file
15409 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15410 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15415 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15416 # Let make expand exec_prefix.
15417 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15419 # Transform confdefs.h into DEFS.
15420 # Protect against shell expansion while executing Makefile rules.
15421 # Protect against Makefile macro expansion.
15423 # If the first sed substitution is executed (which looks for macros that
15424 # take arguments), then branch to the quote section. Otherwise,
15425 # look for a macro that doesn't take arguments.
15429 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15431 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15435 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15448 DEFS=`sed -n "$ac_script" confdefs.h`
15453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15454 # 1. Remove the extension, and $U if already installed.
15455 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15456 ac_i=`echo "$ac_i" | sed "$ac_script"`
15457 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15458 # will be set to the directory where LIBOBJS objects are built.
15459 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15460 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15462 LIBOBJS=$ac_libobjs
15464 LTLIBOBJS=$ac_ltlibobjs
15468 : ${CONFIG_STATUS=./config.status}
15469 ac_clean_files_save=$ac_clean_files
15470 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15471 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15472 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15473 cat >$CONFIG_STATUS <<_ACEOF
15475 # Generated by $as_me.
15476 # Run this file to recreate the current configuration.
15477 # Compiler output produced by configure, useful for debugging
15478 # configure, is in config.log if it exists.
15481 ac_cs_recheck=false
15483 SHELL=\${CONFIG_SHELL-$SHELL}
15486 cat >>$CONFIG_STATUS <<\_ACEOF
15487 ## --------------------- ##
15488 ## M4sh Initialization. ##
15489 ## --------------------- ##
15491 # Be more Bourne compatible
15492 DUALCASE=1; export DUALCASE # for MKS sh
15493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15496 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15497 # is contrary to our usage. Disable this feature.
15498 alias -g '${1+"$@"}'='"$@"'
15499 setopt NO_GLOB_SUBST
15501 case `(set -o) 2>/dev/null` in
15502 *posix*) set -o posix ;;
15511 # Avoid depending upon Character Ranges.
15512 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15513 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15514 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15515 as_cr_digits='0123456789'
15516 as_cr_alnum=$as_cr_Letters$as_cr_digits
15518 # The user is always right.
15519 if test "${PATH_SEPARATOR+set}" != set; then
15520 echo "#! /bin/sh" >conf$$.sh
15521 echo "exit 0" >>conf$$.sh
15523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15531 # Support unset when possible.
15532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15540 # We need space, tab and new line, in precisely that order. Quoting is
15541 # there to prevent editors from complaining about space-tab.
15542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15543 # splitting by setting IFS to empty value.)
15548 # Find who we are. Look in the path if we contain no directory separator.
15550 *[\\/]* ) as_myself=$0 ;;
15551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552 for as_dir in $PATH
15555 test -z "$as_dir" && as_dir=.
15556 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15562 # We did not find ourselves, most probably we were run as `sh COMMAND'
15563 # in which case we are not to be found in the path.
15564 if test "x$as_myself" = x; then
15567 if test ! -f "$as_myself"; then
15568 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15569 { (exit 1); exit 1; }
15572 # Work around bugs in pre-3.0 UWIN ksh.
15573 for as_var in ENV MAIL MAILPATH
15574 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15584 LC_TELEPHONE LC_TIME
15586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15587 eval $as_var=C; export $as_var
15589 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15593 # Required to use basename.
15594 if expr a : '\(a\)' >/dev/null 2>&1 &&
15595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15602 as_basename=basename
15608 # Name of the executable.
15609 as_me=`$as_basename -- "$0" ||
15610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15611 X"$0" : 'X\(//\)$' \| \
15612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15614 sed '/^.*\/\([^/][^/]*\)\/*$/{
15633 as_lineno_1=$LINENO
15634 as_lineno_2=$LINENO
15635 test "x$as_lineno_1" != "x$as_lineno_2" &&
15636 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15639 # uniformly replaced by the line number. The first 'sed' inserts a
15640 # line-number line after each line using $LINENO; the second 'sed'
15641 # does the real work. The second script uses 'N' to pair each
15642 # line-number line with the line containing $LINENO, and appends
15643 # trailing '-' during substitution so that $LINENO is not a special
15644 # case at line end.
15645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15646 # scripts with optimization help from Paolo Bonzini. Blame Lee
15647 # E. McMahon (1931-1989) for sed's syntax. :-)
15659 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15662 ' >$as_me.lineno &&
15663 chmod +x "$as_me.lineno" ||
15664 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15665 { (exit 1); exit 1; }; }
15667 # Don't try to exec as it changes $[0], causing all sort of problems
15668 # (the dirname of $[0] is not the place where we might find the
15669 # original and so on. Autoconf is especially sensitive to this).
15670 . "./$as_me.lineno"
15671 # Exit status is that of the last command.
15676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15682 ECHO_C= ECHO_N= ECHO_T=
15683 case `echo -n x` in
15685 case `echo 'x\c'` in
15686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15693 if expr a : '\(a\)' >/dev/null 2>&1 &&
15694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15700 rm -f conf$$ conf$$.exe conf$$.file
15701 if test -d conf$$.dir; then
15702 rm -f conf$$.dir/conf$$.file
15708 if ln -s conf$$.file conf$$ 2>/dev/null; then
15710 # ... but there are two gotchas:
15711 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15712 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15713 # In both cases, we have to default to `cp -p'.
15714 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15716 elif ln conf$$.file conf$$ 2>/dev/null; then
15721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15722 rmdir conf$$.dir 2>/dev/null
15724 if mkdir -p . 2>/dev/null; then
15727 test -d ./-p && rmdir ./-p
15731 if test -x / >/dev/null 2>&1; then
15732 as_test_x='test -x'
15734 if ls -dL / >/dev/null 2>&1; then
15741 if test -d "$1"; then
15747 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15748 ???[sx]*):;;*)false;;esac;fi
15752 as_executable_p=$as_test_x
15754 # Sed expression to map a string onto a valid CPP name.
15755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15757 # Sed expression to map a string onto a valid variable name.
15758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15763 # Save the log message, to keep $[0] and so on meaningful, and to
15764 # report actual input values of CONFIG_FILES etc. instead of their
15765 # values after options handling.
15767 This file was extended by $as_me, which was
15768 generated by GNU Autoconf 2.61. Invocation command line was
15770 CONFIG_FILES = $CONFIG_FILES
15771 CONFIG_HEADERS = $CONFIG_HEADERS
15772 CONFIG_LINKS = $CONFIG_LINKS
15773 CONFIG_COMMANDS = $CONFIG_COMMANDS
15776 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15781 cat >>$CONFIG_STATUS <<_ACEOF
15782 # Files that config.status was made for.
15783 config_files="$ac_config_files"
15784 config_commands="$ac_config_commands"
15788 cat >>$CONFIG_STATUS <<\_ACEOF
15790 \`$as_me' instantiates files from templates according to the
15791 current configuration.
15793 Usage: $0 [OPTIONS] [FILE]...
15795 -h, --help print this help, then exit
15796 -V, --version print version number and configuration settings, then exit
15797 -q, --quiet do not print progress messages
15798 -d, --debug don't remove temporary files
15799 --recheck update $as_me by reconfiguring in the same conditions
15800 --file=FILE[:TEMPLATE]
15801 instantiate the configuration file FILE
15803 Configuration files:
15806 Configuration commands:
15809 Report bugs to <bug-autoconf@gnu.org>."
15812 cat >>$CONFIG_STATUS <<_ACEOF
15815 configured by $0, generated by GNU Autoconf 2.61,
15816 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15818 Copyright (C) 2006 Free Software Foundation, Inc.
15819 This config.status script is free software; the Free Software Foundation
15820 gives unlimited permission to copy, distribute and modify it."
15827 cat >>$CONFIG_STATUS <<\_ACEOF
15828 # If no file are specified by the user, then we need to provide default
15829 # value. By we need to know if files were specified by the user.
15835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15836 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15847 # Handling of the options.
15848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15851 echo "$ac_cs_version"; exit ;;
15852 --debug | --debu | --deb | --de | --d | -d )
15854 --file | --fil | --fi | --f )
15856 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15857 ac_need_defaults=false;;
15858 --he | --h | --help | --hel | -h )
15859 echo "$ac_cs_usage"; exit ;;
15860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15864 # This is an error.
15865 -*) { echo "$as_me: error: unrecognized option: $1
15866 Try \`$0 --help' for more information." >&2
15867 { (exit 1); exit 1; }; } ;;
15869 *) ac_config_targets="$ac_config_targets $1"
15870 ac_need_defaults=false ;;
15876 ac_configure_extra_args=
15878 if $ac_cs_silent; then
15880 ac_configure_extra_args="$ac_configure_extra_args --silent"
15884 cat >>$CONFIG_STATUS <<_ACEOF
15885 if \$ac_cs_recheck; then
15886 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15887 CONFIG_SHELL=$SHELL
15888 export CONFIG_SHELL
15889 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15893 cat >>$CONFIG_STATUS <<\_ACEOF
15897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15898 ## Running $as_me. ##
15904 cat >>$CONFIG_STATUS <<_ACEOF
15908 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15909 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15911 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15912 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15913 LINGUAS="${LINGUAS-%UNSET%}"
15918 cat >>$CONFIG_STATUS <<\_ACEOF
15920 # Handling of arguments.
15921 for ac_config_target in $ac_config_targets
15923 case $ac_config_target in
15924 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15925 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15927 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15929 { (exit 1); exit 1; }; };;
15934 # If the user did not use the arguments to specify the items to instantiate,
15935 # then the envvar interface is used. Set only those that are not.
15936 # We use the long form for the default assignment because of an extremely
15937 # bizarre bug on SunOS 4.1.3.
15938 if $ac_need_defaults; then
15939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15943 # Have a temporary directory for convenience. Make it in the build tree
15944 # simply because there is no reason against having it here, and in addition,
15945 # creating and moving files from /tmp can sometimes cause problems.
15946 # Hook for its removal unless debugging.
15947 # Note that there is a small window in which the directory will not be cleaned:
15948 # after its creation but before its name has been assigned to `$tmp'.
15952 trap 'exit_status=$?
15953 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15955 trap '{ (exit 1); exit 1; }' 1 2 13 15
15957 # Create a (secure) tmp directory for tmp files.
15960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15961 test -n "$tmp" && test -d "$tmp"
15964 tmp=./conf$$-$RANDOM
15965 (umask 077 && mkdir "$tmp")
15968 echo "$me: cannot create a temporary directory in ." >&2
15969 { (exit 1); exit 1; }
15973 # Set up the sed scripts for CONFIG_FILES section.
15976 # No need to generate the scripts if there are no CONFIG_FILES.
15977 # This happens for instance when ./config.status config.h
15978 if test -n "$CONFIG_FILES"; then
15982 # Create sed commands to just substitute file output variables.
15984 # Remaining file output variables are in a fragment that also has non-file
15990 for ac_last_try in false false false false false :; do
15991 cat >conf$$subs.sed <<_ACEOF
15992 SHELL!$SHELL$ac_delim
15993 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15994 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15995 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15996 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15997 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15998 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15999 exec_prefix!$exec_prefix$ac_delim
16000 prefix!$prefix$ac_delim
16001 program_transform_name!$program_transform_name$ac_delim
16002 bindir!$bindir$ac_delim
16003 sbindir!$sbindir$ac_delim
16004 libexecdir!$libexecdir$ac_delim
16005 datarootdir!$datarootdir$ac_delim
16006 datadir!$datadir$ac_delim
16007 sysconfdir!$sysconfdir$ac_delim
16008 sharedstatedir!$sharedstatedir$ac_delim
16009 localstatedir!$localstatedir$ac_delim
16010 includedir!$includedir$ac_delim
16011 oldincludedir!$oldincludedir$ac_delim
16012 docdir!$docdir$ac_delim
16013 infodir!$infodir$ac_delim
16014 htmldir!$htmldir$ac_delim
16015 dvidir!$dvidir$ac_delim
16016 pdfdir!$pdfdir$ac_delim
16017 psdir!$psdir$ac_delim
16018 libdir!$libdir$ac_delim
16019 localedir!$localedir$ac_delim
16020 mandir!$mandir$ac_delim
16021 DEFS!$DEFS$ac_delim
16022 ECHO_C!$ECHO_C$ac_delim
16023 ECHO_N!$ECHO_N$ac_delim
16024 ECHO_T!$ECHO_T$ac_delim
16025 LIBS!$LIBS$ac_delim
16026 build_alias!$build_alias$ac_delim
16027 host_alias!$host_alias$ac_delim
16028 target_alias!$target_alias$ac_delim
16029 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16030 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16031 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16032 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16033 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16034 build!$build$ac_delim
16035 build_cpu!$build_cpu$ac_delim
16036 build_vendor!$build_vendor$ac_delim
16037 build_os!$build_os$ac_delim
16038 host!$host$ac_delim
16039 host_cpu!$host_cpu$ac_delim
16040 host_vendor!$host_vendor$ac_delim
16041 host_os!$host_os$ac_delim
16043 CFLAGS!$CFLAGS$ac_delim
16044 LDFLAGS!$LDFLAGS$ac_delim
16045 CPPFLAGS!$CPPFLAGS$ac_delim
16046 ac_ct_CC!$ac_ct_CC$ac_delim
16047 EXEEXT!$EXEEXT$ac_delim
16048 OBJEXT!$OBJEXT$ac_delim
16051 GREP!$GREP$ac_delim
16052 EGREP!$EGREP$ac_delim
16053 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16054 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16055 HTREE_CMT!$HTREE_CMT$ac_delim
16056 ELF_CMT!$ELF_CMT$ac_delim
16057 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16058 PROFILE_CMT!$PROFILE_CMT$ac_delim
16059 CHECKER_CMT!$CHECKER_CMT$ac_delim
16060 LIB_EXT!$LIB_EXT$ac_delim
16061 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16062 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16063 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16064 IMAGER_CMT!$IMAGER_CMT$ac_delim
16065 RESIZER_CMT!$RESIZER_CMT$ac_delim
16066 FSCK_PROG!$FSCK_PROG$ac_delim
16067 FSCK_MAN!$FSCK_MAN$ac_delim
16070 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16072 elif $ac_last_try; then
16073 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16074 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16075 { (exit 1); exit 1; }; }
16077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16081 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16082 if test -n "$ac_eof"; then
16083 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16084 ac_eof=`expr $ac_eof + 1`
16087 cat >>$CONFIG_STATUS <<_ACEOF
16088 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16089 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16090 /^[ ]*@MCONFIG@[ ]*$/{
16094 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16098 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16102 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16103 r $MAKEFILE_PROFILE
16106 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16107 r $MAKEFILE_CHECKER
16110 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16111 r $MAKEFILE_LIBRARY
16114 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16115 r $ASM_TYPES_HEADER
16120 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16121 s/^/s,@/; s/!/@,|#_!!_#|/
16124 s/'"$ac_delim"'$/,g/; t
16126 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16127 ' >>$CONFIG_STATUS <conf$$subs.sed
16128 rm -f conf$$subs.sed
16129 cat >>$CONFIG_STATUS <<_ACEOF
16135 for ac_last_try in false false false false false :; do
16136 cat >conf$$subs.sed <<_ACEOF
16137 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16138 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16139 PKG_CONFIG!$PKG_CONFIG$ac_delim
16140 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16141 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16142 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16143 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16144 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16145 UUIDD_CMT!$UUIDD_CMT$ac_delim
16146 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16147 PACKAGE!$PACKAGE$ac_delim
16148 VERSION!$VERSION$ac_delim
16149 SET_MAKE!$SET_MAKE$ac_delim
16150 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16151 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16152 INSTALL_DATA!$INSTALL_DATA$ac_delim
16153 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16154 USE_NLS!$USE_NLS$ac_delim
16155 MSGFMT!$MSGFMT$ac_delim
16156 GMSGFMT!$GMSGFMT$ac_delim
16157 XGETTEXT!$XGETTEXT$ac_delim
16158 MSGMERGE!$MSGMERGE$ac_delim
16159 RANLIB!$RANLIB$ac_delim
16160 ALLOCA!$ALLOCA$ac_delim
16161 GLIBC21!$GLIBC21$ac_delim
16162 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16163 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16164 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16165 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16166 LIBICONV!$LIBICONV$ac_delim
16167 LTLIBICONV!$LTLIBICONV$ac_delim
16168 INTLBISON!$INTLBISON$ac_delim
16169 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16170 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16171 CATOBJEXT!$CATOBJEXT$ac_delim
16172 DATADIRNAME!$DATADIRNAME$ac_delim
16173 INSTOBJEXT!$INSTOBJEXT$ac_delim
16174 GENCAT!$GENCAT$ac_delim
16175 INTLOBJS!$INTLOBJS$ac_delim
16176 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16177 INTLLIBS!$INTLLIBS$ac_delim
16178 LIBINTL!$LIBINTL$ac_delim
16179 LTLIBINTL!$LTLIBINTL$ac_delim
16180 POSUB!$POSUB$ac_delim
16181 BINARY_TYPE!$BINARY_TYPE$ac_delim
16183 LN_S!$LN_S$ac_delim
16187 CHMOD!$CHMOD$ac_delim
16190 PERL!$PERL$ac_delim
16191 LDCONFIG!$LDCONFIG$ac_delim
16193 STRIP!$STRIP$ac_delim
16194 MAKEINFO!$MAKEINFO$ac_delim
16195 BUILD_CC!$BUILD_CC$ac_delim
16196 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16197 SIZEOF_INT!$SIZEOF_INT$ac_delim
16198 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16199 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16200 SOCKET_LIB!$SOCKET_LIB$ac_delim
16201 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16202 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16203 LINUX_CMT!$LINUX_CMT$ac_delim
16204 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16205 UNIX_CMT!$UNIX_CMT$ac_delim
16206 root_prefix!$root_prefix$ac_delim
16207 root_bindir!$root_bindir$ac_delim
16208 root_sbindir!$root_sbindir$ac_delim
16209 root_libdir!$root_libdir$ac_delim
16210 root_sysconfdir!$root_sysconfdir$ac_delim
16211 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16212 SS_DIR!$SS_DIR$ac_delim
16213 ET_DIR!$ET_DIR$ac_delim
16214 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16215 INTL_FLAGS!$INTL_FLAGS$ac_delim
16216 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16217 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16218 LIBOBJS!$LIBOBJS$ac_delim
16219 LTLIBOBJS!$LTLIBOBJS$ac_delim
16222 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
16224 elif $ac_last_try; then
16225 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16226 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16227 { (exit 1); exit 1; }; }
16229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16233 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16234 if test -n "$ac_eof"; then
16235 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16236 ac_eof=`expr $ac_eof + 1`
16239 cat >>$CONFIG_STATUS <<_ACEOF
16240 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16244 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16245 s/^/s,@/; s/!/@,|#_!!_#|/
16248 s/'"$ac_delim"'$/,g/; t
16250 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16251 ' >>$CONFIG_STATUS <conf$$subs.sed
16252 rm -f conf$$subs.sed
16253 cat >>$CONFIG_STATUS <<_ACEOF
16260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16262 # trailing colons and then remove the whole line if VPATH becomes empty
16263 # (actually we leave an empty line to preserve line numbers).
16264 if test "x$srcdir" = x.; then
16265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16266 s/:*\$(srcdir):*/:/
16267 s/:*\${srcdir}:*/:/
16269 s/^\([^=]*=[ ]*\):*/\1/
16275 cat >>$CONFIG_STATUS <<\_ACEOF
16276 fi # test -n "$CONFIG_FILES"
16279 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16282 :[FHLC]) ac_mode=$ac_tag; continue;;
16284 case $ac_mode$ac_tag in
16286 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16287 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16288 { (exit 1); exit 1; }; };;
16289 :[FH]-) ac_tag=-:-;;
16290 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16307 -) ac_f="$tmp/stdin";;
16308 *) # Look for the file first in the build tree, then in the source tree
16309 # (if the path is not absolute). The absolute path cannot be DOS-style,
16310 # because $ac_f cannot contain `:'.
16314 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16316 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16317 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16318 { (exit 1); exit 1; }; };;
16320 ac_file_inputs="$ac_file_inputs $ac_f"
16323 # Let's still pretend it is `configure' which instantiates (i.e., don't
16324 # use $as_me), people would be surprised to read:
16325 # /* config.h. Generated by config.status. */
16326 configure_input="Generated from "`IFS=:
16327 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16328 if test x"$ac_file" != x-; then
16329 configure_input="$ac_file. $configure_input"
16330 { echo "$as_me:$LINENO: creating $ac_file" >&5
16331 echo "$as_me: creating $ac_file" >&6;}
16335 *:-:* | *:-) cat >"$tmp/stdin";;
16340 ac_dir=`$as_dirname -- "$ac_file" ||
16341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16342 X"$ac_file" : 'X\(//\)[^/]' \| \
16343 X"$ac_file" : 'X\(//\)$' \| \
16344 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16350 /^X\(\/\/\)[^/].*/{
16365 -*) as_dir=./$as_dir;;
16367 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16371 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16372 *) as_qdir=$as_dir;;
16374 as_dirs="'$as_qdir' $as_dirs"
16375 as_dir=`$as_dirname -- "$as_dir" ||
16376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16377 X"$as_dir" : 'X\(//\)[^/]' \| \
16378 X"$as_dir" : 'X\(//\)$' \| \
16379 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16385 /^X\(\/\/\)[^/].*/{
16398 test -d "$as_dir" && break
16400 test -z "$as_dirs" || eval "mkdir $as_dirs"
16401 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16402 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16403 { (exit 1); exit 1; }; }; }
16407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16410 # A ".." for each directory in $ac_dir_suffix.
16411 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16412 case $ac_top_builddir_sub in
16413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16417 ac_abs_top_builddir=$ac_pwd
16418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16419 # for backward compatibility:
16420 ac_top_builddir=$ac_top_build_prefix
16423 .) # We are building in place.
16425 ac_top_srcdir=$ac_top_builddir_sub
16426 ac_abs_top_srcdir=$ac_pwd ;;
16427 [\\/]* | ?:[\\/]* ) # Absolute name.
16428 ac_srcdir=$srcdir$ac_dir_suffix;
16429 ac_top_srcdir=$srcdir
16430 ac_abs_top_srcdir=$srcdir ;;
16431 *) # Relative name.
16432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16433 ac_top_srcdir=$ac_top_build_prefix$srcdir
16434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16446 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16447 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16451 cat >>$CONFIG_STATUS <<\_ACEOF
16452 # If the template does not know about datarootdir, expand it.
16453 # FIXME: This hack should be removed a few years after 2.60.
16454 ac_datarootdir_hack=; ac_datarootdir_seen=
16456 case `sed -n '/datarootdir/ {
16465 ' $ac_file_inputs` in
16466 *datarootdir*) ac_datarootdir_seen=yes;;
16467 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16468 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16469 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16471 cat >>$CONFIG_STATUS <<_ACEOF
16472 ac_datarootdir_hack='
16473 s&@datadir@&$datadir&g
16474 s&@docdir@&$docdir&g
16475 s&@infodir@&$infodir&g
16476 s&@localedir@&$localedir&g
16477 s&@mandir@&$mandir&g
16478 s&\\\${datarootdir}&$datarootdir&g' ;;
16482 # Neutralize VPATH when `$srcdir' = `.'.
16483 # Shell code in configure.ac might set extrasub.
16484 # FIXME: do we really want to maintain this feature?
16485 cat >>$CONFIG_STATUS <<_ACEOF
16489 cat >>$CONFIG_STATUS <<\_ACEOF
16491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16492 s&@configure_input@&$configure_input&;t t
16493 s&@top_builddir@&$ac_top_builddir_sub&;t t
16494 s&@srcdir@&$ac_srcdir&;t t
16495 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16496 s&@top_srcdir@&$ac_top_srcdir&;t t
16497 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16498 s&@builddir@&$ac_builddir&;t t
16499 s&@abs_builddir@&$ac_abs_builddir&;t t
16500 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16501 s&@INSTALL@&$ac_INSTALL&;t t
16502 $ac_datarootdir_hack
16503 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16505 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16506 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16507 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16508 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16509 which seems to be undefined. Please make sure it is defined." >&5
16510 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16511 which seems to be undefined. Please make sure it is defined." >&2;}
16515 -) cat "$tmp/out"; rm -f "$tmp/out";;
16516 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16521 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16522 echo "$as_me: executing $ac_file commands" >&6;}
16527 case $ac_file$ac_mode in
16529 for ac_file in $CONFIG_FILES; do
16530 # Support "outfile[:infile[:infile...]]"
16532 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16534 # PO directories have a Makefile.in generated from Makefile.in.in.
16535 case "$ac_file" in */Makefile.in)
16536 # Adjust a relative srcdir.
16537 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16538 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16539 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16540 # In autoconf-2.13 it is called $ac_given_srcdir.
16541 # In autoconf-2.50 it is called $srcdir.
16542 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16543 case "$ac_given_srcdir" in
16544 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16545 /*) top_srcdir="$ac_given_srcdir" ;;
16546 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16548 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16549 rm -f "$ac_dir/POTFILES"
16550 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16551 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16552 POMAKEFILEDEPS="POTFILES.in"
16553 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16554 # on $ac_dir but don't depend on user-specified configuration
16556 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16557 # The LINGUAS file contains the set of available languages.
16558 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16559 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16561 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16562 # Hide the ALL_LINGUAS assigment from automake.
16563 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16564 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16566 # The set of available languages was given in configure.in.
16567 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16570 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16571 # Compute UPDATEPOFILES
16572 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16573 # Compute DUMMYPOFILES
16574 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16576 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16577 case "$ac_given_srcdir" in
16579 *) srcdirpre='$(srcdir)/' ;;
16585 for lang in $ALL_LINGUAS; do
16586 POFILES="$POFILES $srcdirpre$lang.po"
16587 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16588 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16589 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16591 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16592 # environment variable.
16594 if test -n "$ALL_LINGUAS"; then
16595 for presentlang in $ALL_LINGUAS; do
16597 if test "%UNSET%" != "$LINGUAS"; then
16598 desiredlanguages="$LINGUAS"
16600 desiredlanguages="$ALL_LINGUAS"
16602 for desiredlang in $desiredlanguages; do
16603 # Use the presentlang catalog if desiredlang is
16604 # a. equal to presentlang, or
16605 # b. a variant of presentlang (because in this case,
16606 # presentlang can be used as a fallback for messages
16607 # which are not translated in the desiredlang catalog).
16608 case "$desiredlang" in
16609 "$presentlang"*) useit=yes;;
16612 if test $useit = yes; then
16613 INST_LINGUAS="$INST_LINGUAS $presentlang"
16618 if test -n "$INST_LINGUAS"; then
16619 for lang in $INST_LINGUAS; do
16620 CATALOGS="$CATALOGS $lang.gmo"
16623 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16624 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"
16625 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16626 if test -f "$f"; then
16628 *.orig | *.bak | *~) ;;
16629 *) cat "$f" >> "$ac_dir/Makefile" ;;
16642 { (exit 0); exit 0; }
16644 chmod +x $CONFIG_STATUS
16645 ac_clean_files=$ac_clean_files_save
16648 # configure is writing to config.log, and then calls config.status.
16649 # config.status does its own redirection, appending to config.log.
16650 # Unfortunately, on DOS this fails, as config.log is still kept open
16651 # by configure, so config.status won't be able to write to it; its
16652 # output is simply discarded. So we exec the FD to /dev/null,
16653 # effectively closing config.log, so it can be properly (re)opened and
16654 # appended to by config.status. When coming back to configure, we
16655 # need to make the FD available again.
16656 if test "$no_create" != yes; then
16658 ac_config_status_args=
16659 test "$silent" = yes &&
16660 ac_config_status_args="$ac_config_status_args --quiet"
16662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16665 # would make configure fail if this is the last instruction.
16666 $ac_cs_success || { (exit 1); exit 1; }
16669 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi