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 PUBLIC_CONFIG_HEADER'
783 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 if test -n "$ac_init_help"; then
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-maintainer-mode enable makefile rules useful for maintainers
1366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
1368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
1375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
1378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
1380 --enable-blkid-devmapper build with device-mapper support
1381 --disable-tls disable use of thread local support
1382 --disable-uuidd disable building the uuid daemon
1383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1389 --with-diet-libc use diet libc
1390 --with-cc=COMPILER select compiler to use
1391 --with-linker=LINKER select linker to use
1392 --with-ccopts=CCOPTS select compiler command line options
1393 --with-ldopts=LDOPTS select linker command line options
1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search for libintl in includedir and libdir
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1411 PKG_CONFIG path to pkg-config utility
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" || continue
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1477 generated by GNU Autoconf 2.61
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by $as_me, which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_must_keep_next=false
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 -* ) ac_must_keep_next=true ;;
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 echo "$ac_var='\''$ac_val'\''"
1654 if test -n "$ac_subst_files"; then
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 echo "$ac_var='\''$ac_val'\''"
1672 if test -s confdefs.h; then
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1763 # Check that the precious variables saved in the cache have kept the same
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786 echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788 echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837 for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 elif test -f "$ac_dir/install.sh"; then
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 elif test -f "$ac_dir/shtool"; then
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1852 if test -z "$ac_aux_dir"; then
1853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1855 { (exit 1); exit 1; }; }
1858 # These three variables are undocumented and unsupported,
1859 # and are intended to be withdrawn in a future Autoconf release.
1860 # They can cause serious problems if a builder's source tree is in a directory
1861 # whose full name contains unusual characters.
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1870 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1874 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1875 MONTH=`echo $DATE | awk -F- '{print $2}'`
1876 YEAR=`echo $DATE | awk -F- '{print $3}'`
1878 if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880 elif expr $YEAR ">" 90 >/dev/null ; then
1881 E2FSPROGS_YEAR=19$YEAR
1883 E2FSPROGS_YEAR=20$YEAR
1887 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1899 *) echo "Unknown month $MONTH??" ;;
1902 base_ver=`echo $E2FSPROGS_VERSION | \
1903 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1905 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907 case $E2FSPROGS_VERSION in
1909 pre_vers=`echo $base_ver 0.01 - p | dc`
1910 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1913 E2FSPROGS_PKGVER="$base_ver"
1917 unset DATE MONTH YEAR base_ver pre_vers date_spec
1918 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1919 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1925 # Make sure we can run config.sub.
1926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1928 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1929 { (exit 1); exit 1; }; }
1931 { echo "$as_me:$LINENO: checking build system type" >&5
1932 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1933 if test "${ac_cv_build+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 ac_build_alias=$build_alias
1937 test "x$ac_build_alias" = x &&
1938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939 test "x$ac_build_alias" = x &&
1940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942 { (exit 1); exit 1; }; }
1943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1946 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950 echo "${ECHO_T}$ac_cv_build" >&6; }
1951 case $ac_cv_build in
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1954 echo "$as_me: error: invalid value of canonical build" >&2;}
1955 { (exit 1); exit 1; }; };;
1958 ac_save_IFS=$IFS; IFS='-'
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1971 { echo "$as_me:$LINENO: checking host system type" >&5
1972 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1973 if test "${ac_cv_host+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test "x$host_alias" = x; then
1977 ac_cv_host=$ac_cv_build
1979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1981 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1982 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1987 echo "${ECHO_T}$ac_cv_host" >&6; }
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1991 echo "$as_me: error: invalid value of canonical host" >&2;}
1992 { (exit 1); exit 1; }; };;
1995 ac_save_IFS=$IFS; IFS='-'
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2009 # Check whether --with-diet-libc was given.
2010 if test "${with_diet_libc+set}" = set; then
2011 withval=$with_diet_libc; CC="diet cc -nostdinc"
2012 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2013 echo "${ECHO_T}CC=$CC" >&6; }
2016 # Check whether --with-cc was given.
2017 if test "${with_cc+set}" = set; then
2018 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2019 echo "${ECHO_T}CC=$withval" >&6; }
2022 if test -z "$CC" ; then CC=cc; fi
2023 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2024 echo "${ECHO_T}CC defaults to $CC" >&6; }
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 { echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6; }
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2072 if test -z "$ac_cv_prog_CC"; then
2074 # Extract the first word of "gcc", so it can be a program name with args.
2075 set dummy gcc; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_ac_ct_CC="gcc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6; }
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2110 if test "x$ac_ct_CC" = x; then
2113 case $cross_compiling:$ac_tool_warned in
2115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet. If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&5
2118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2119 whose name does not start with the host triplet. If you think this
2120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2121 ac_tool_warned=yes ;;
2129 if test -z "$CC"; then
2130 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}cc; ac_word=$2
2133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148 ac_cv_prog_CC="${ac_tool_prefix}cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 if test -n "$CC"; then
2160 { echo "$as_me:$LINENO: result: $CC" >&5
2161 echo "${ECHO_T}$CC" >&6; }
2163 { echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6; }
2170 if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172 set dummy cc; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190 ac_prog_rejected=yes
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 if test $ac_prog_rejected = yes; then
2202 # We found a bogon in the path, so make sure we never use it.
2203 set dummy $ac_cv_prog_CC
2205 if test $# != 0; then
2206 # We chose a different compiler from the bogus one.
2207 # However, it has the same basename, so the bogon will be chosen
2208 # first if we set CC to just the basename; use the full file name.
2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2216 if test -n "$CC"; then
2217 { echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6; }
2220 { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2226 if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 for ac_prog in cl.exe
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 if test -n "$CC"; then
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2267 test -n "$CC" && break
2270 if test -z "$CC"; then
2272 for ac_prog in cl.exe
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_ac_ct_CC="$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302 if test -n "$ac_ct_CC"; then
2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304 echo "${ECHO_T}$ac_ct_CC" >&6; }
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2311 test -n "$ac_ct_CC" && break
2314 if test "x$ac_ct_CC" = x; then
2317 case $cross_compiling:$ac_tool_warned in
2319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2320 whose name does not start with the host triplet. If you think this
2321 configuration is useful to you, please write to autoconf@gnu.org." >&5
2322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2323 whose name does not start with the host triplet. If you think this
2324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2325 ac_tool_warned=yes ;;
2334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: no acceptable C compiler found in \$PATH
2337 See \`config.log' for more details." >&2;}
2338 { (exit 1); exit 1; }; }
2340 # Provide some information about the compiler.
2341 echo "$as_me:$LINENO: checking for C compiler version" >&5
2342 ac_compiler=`set X $ac_compile; echo $2`
2343 { (ac_try="$ac_compiler --version >&5"
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compiler --version >&5") 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2353 { (ac_try="$ac_compiler -v >&5"
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler -v >&5") 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2363 { (ac_try="$ac_compiler -V >&5"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -V >&5") 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 ac_clean_files_save=$ac_clean_files
2390 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2391 # Try to create an executable without -o first, disregard a.out.
2392 # It will help us diagnose broken compilers, and finding out an intuition
2394 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2395 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2396 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398 # List of possible output files, starting from the most likely.
2399 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2400 # only as a last resort. b.out is created by i960 compilers.
2401 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2403 # The IRIX 6 linker writes into existing files which may not be
2404 # executable, retaining their permissions. Remove them first so a
2405 # subsequent execution test works.
2407 for ac_file in $ac_files
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2416 if { (ac_try="$ac_link_default"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_link_default") 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; then
2426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2427 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2428 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2429 # so that the user can short-circuit this test for compilers unknown to
2431 for ac_file in $ac_files ''
2433 test -f "$ac_file" || continue
2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2438 # We found the default executable, but exeext='' is most
2442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446 # We set ac_cv_exeext here because the later test for it is not
2447 # safe: cross compilers may not add the suffix if given an `-o'
2448 # argument, so we may need to know it at that point already.
2449 # Even if this section looks crufty: it has the advantage of
2456 test "$ac_cv_exeext" = no && ac_cv_exeext=
2462 { echo "$as_me:$LINENO: result: $ac_file" >&5
2463 echo "${ECHO_T}$ac_file" >&6; }
2464 if test -z "$ac_file"; then
2465 echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&2;}
2472 { (exit 77); exit 77; }; }
2475 ac_exeext=$ac_cv_exeext
2477 # Check that the compiler produces executables we can run. If not, either
2478 # the compiler is broken, or we cross compile.
2479 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2480 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2481 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2482 # If not cross compiling, check that we can run a simple program.
2483 if test "$cross_compiling" != yes; then
2484 if { ac_try='./$ac_file'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 if test "$cross_compiling" = maybe; then
2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2500 If you meant to cross compile, use \`--host'.
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot run C compiled programs.
2503 If you meant to cross compile, use \`--host'.
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2509 { echo "$as_me:$LINENO: result: yes" >&5
2510 echo "${ECHO_T}yes" >&6; }
2512 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2513 ac_clean_files=$ac_clean_files_save
2514 # Check that the compiler produces executables we can run. If not, either
2515 # the compiler is broken, or we cross compile.
2516 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2517 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2518 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2519 echo "${ECHO_T}$cross_compiling" >&6; }
2521 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2522 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2523 if { (ac_try="$ac_link"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link") 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 for ac_file in conftest.exe conftest conftest.*; do
2538 test -f "$ac_file" || continue
2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&5
2549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2554 rm -f conftest$ac_cv_exeext
2555 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2558 rm -f conftest.$ac_ext
2559 EXEEXT=$ac_cv_exeext
2561 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2563 if test "${ac_cv_objext+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.o conftest.obj
2582 if { (ac_try="$ac_compile"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 for ac_file in conftest.o conftest.obj conftest.*; do
2593 test -f "$ac_file" || continue;
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2601 echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614 echo "${ECHO_T}$ac_cv_objext" >&6; }
2615 OBJEXT=$ac_cv_objext
2617 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (ac_try="$ac_compile"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compile") 2>conftest.er1
2649 grep -v '^ *+' conftest.er1 >conftest.err
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest.$ac_objext; then
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2669 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2671 GCC=`test $ac_compiler_gnu = yes && echo yes`
2672 ac_test_CFLAGS=${CFLAGS+set}
2673 ac_save_CFLAGS=$CFLAGS
2674 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_cc_g+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 ac_save_c_werror_flag=$ac_c_werror_flag
2680 ac_c_werror_flag=yes
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } && {
2750 test -z "$ac_c_werror_flag" ||
2751 test ! -s conftest.err
2752 } && test -s conftest.$ac_objext; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 ac_c_werror_flag=$ac_save_c_werror_flag
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_c_werror_flag=$ac_save_c_werror_flag
2809 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2811 if test "$ac_test_CFLAGS" = set; then
2812 CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2820 if test "$GCC" = yes; then
2826 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2827 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_cc_c89+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_prog_cc_c89=no
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872 inside strings and character constants. */
2874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 CC="$ac_save_CC $ac_arg"
2894 rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
2911 ac_cv_prog_cc_c89=$ac_arg
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f core conftest.err conftest.$ac_objext
2920 test "x$ac_cv_prog_cc_c89" != "xno" && break
2922 rm -f conftest.$ac_ext
2927 case "x$ac_cv_prog_cc_c89" in
2929 { echo "$as_me:$LINENO: result: none needed" >&5
2930 echo "${ECHO_T}none needed" >&6; } ;;
2932 { echo "$as_me:$LINENO: result: unsupported" >&5
2933 echo "${ECHO_T}unsupported" >&6; } ;;
2935 CC="$CC $ac_cv_prog_cc_c89"
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2953 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2954 # On Suns, sometimes $CPP names a directory.
2955 if test -n "$CPP" && test -d "$CPP"; then
2958 if test -z "$CPP"; then
2959 if test "${ac_cv_prog_CPP+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 # Double quotes because CPP needs to be expanded
2963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2966 for ac_c_preproc_warn_flag in '' yes
2968 # Use a header file that comes with gcc, so configuring glibc
2969 # with a fresh cross-compiler works.
2970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2971 # <limits.h> exists even on freestanding compilers.
2972 # On the NeXT, cc -E runs the code through the compiler's parser,
2973 # not just through cpp. "Syntax error" is here to catch this case.
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2981 # include <limits.h>
2983 # include <assert.h>
2987 if { (ac_try="$ac_cpp conftest.$ac_ext"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null && {
3000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 # Broken: fails on valid input.
3012 rm -f conftest.err conftest.$ac_ext
3014 # OK, works on sane cases. Now check whether nonexistent headers
3015 # can be detected and how.
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <ac_nonexistent.h>
3024 if { (ac_try="$ac_cpp conftest.$ac_ext"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null && {
3037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3040 # Broken: success on invalid input.
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Passes both tests.
3051 rm -f conftest.err conftest.$ac_ext
3054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055 rm -f conftest.err conftest.$ac_ext
3056 if $ac_preproc_ok; then
3068 { echo "$as_me:$LINENO: result: $CPP" >&5
3069 echo "${ECHO_T}$CPP" >&6; }
3071 for ac_c_preproc_warn_flag in '' yes
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3086 # include <limits.h>
3088 # include <assert.h>
3092 if { (ac_try="$ac_cpp conftest.$ac_ext"
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 grep -v '^ *+' conftest.er1 >conftest.err
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } >/dev/null && {
3105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3117 rm -f conftest.err conftest.$ac_ext
3119 # OK, works on sane cases. Now check whether nonexistent headers
3120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1 >conftest.err
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev/null && {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3145 # Broken: success on invalid input.
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 # Passes both tests.
3156 rm -f conftest.err conftest.$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 # Check whether --with-linker was given.
3179 if test "${with_linker+set}" = set; then
3180 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3181 echo "${ECHO_T}LD=$withval" >&6; }
3184 if test -z "$LD" ; then LD=$CC; fi
3185 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3186 echo "${ECHO_T}LD defaults to $LD" >&6; }
3191 # Check whether --with-ccopts was given.
3192 if test "${with_ccopts+set}" = set; then
3193 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3194 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3199 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3200 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3201 if test "${ac_cv_path_GREP+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 # Extract the first word of "grep ggrep" to use in msg output
3205 if test -z "$GREP"; then
3206 set dummy grep ggrep; ac_prog_name=$2
3207 if test "${ac_cv_path_GREP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 ac_path_GREP_found=false
3211 # Loop through the user's path and test for each of PROGNAME-LIST
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3216 test -z "$as_dir" && as_dir=.
3217 for ac_prog in grep ggrep; do
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3221 # Check for GNU ac_path_GREP and select it if it is found.
3222 # Check for GNU $ac_path_GREP
3223 case `"$ac_path_GREP" --version 2>&1` in
3225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3228 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3231 cat "conftest.in" "conftest.in" >"conftest.tmp"
3232 mv "conftest.tmp" "conftest.in"
3233 cp "conftest.in" "conftest.nl"
3234 echo 'GREP' >> "conftest.nl"
3235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3237 ac_count=`expr $ac_count + 1`
3238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3239 # Best one so far, save it but keep looking for a better one
3240 ac_cv_path_GREP="$ac_path_GREP"
3241 ac_path_GREP_max=$ac_count
3243 # 10*(2^10) chars as input seems more than enough
3244 test $ac_count -gt 10 && break
3246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3250 $ac_path_GREP_found && break 3
3260 GREP="$ac_cv_path_GREP"
3261 if test -z "$GREP"; then
3262 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3263 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3264 { (exit 1); exit 1; }; }
3268 ac_cv_path_GREP=$GREP
3273 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3274 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3275 GREP="$ac_cv_path_GREP"
3278 { echo "$as_me:$LINENO: checking for egrep" >&5
3279 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3280 if test "${ac_cv_path_EGREP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3284 then ac_cv_path_EGREP="$GREP -E"
3286 # Extract the first word of "egrep" to use in msg output
3287 if test -z "$EGREP"; then
3288 set dummy egrep; ac_prog_name=$2
3289 if test "${ac_cv_path_EGREP+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 ac_path_EGREP_found=false
3293 # Loop through the user's path and test for each of PROGNAME-LIST
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298 test -z "$as_dir" && as_dir=.
3299 for ac_prog in egrep; do
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3303 # Check for GNU ac_path_EGREP and select it if it is found.
3304 # Check for GNU $ac_path_EGREP
3305 case `"$ac_path_EGREP" --version 2>&1` in
3307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3310 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3313 cat "conftest.in" "conftest.in" >"conftest.tmp"
3314 mv "conftest.tmp" "conftest.in"
3315 cp "conftest.in" "conftest.nl"
3316 echo 'EGREP' >> "conftest.nl"
3317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319 ac_count=`expr $ac_count + 1`
3320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321 # Best one so far, save it but keep looking for a better one
3322 ac_cv_path_EGREP="$ac_path_EGREP"
3323 ac_path_EGREP_max=$ac_count
3325 # 10*(2^10) chars as input seems more than enough
3326 test $ac_count -gt 10 && break
3328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332 $ac_path_EGREP_found && break 3
3342 EGREP="$ac_cv_path_EGREP"
3343 if test -z "$EGREP"; then
3344 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3345 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3346 { (exit 1); exit 1; }; }
3350 ac_cv_path_EGREP=$EGREP
3356 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3358 EGREP="$ac_cv_path_EGREP"
3361 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3362 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3363 if test "${ac_cv_header_stdc+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3385 rm -f conftest.$ac_objext
3386 if { (ac_try="$ac_compile"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_compile") 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && {
3399 test -z "$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 } && test -s conftest.$ac_objext; then
3402 ac_cv_header_stdc=yes
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 ac_cv_header_stdc=no
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 if test $ac_cv_header_stdc = yes; then
3413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "memchr" >/dev/null 2>&1; then
3427 ac_cv_header_stdc=no
3433 if test $ac_cv_header_stdc = yes; then
3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 $EGREP "free" >/dev/null 2>&1; then
3448 ac_cv_header_stdc=no
3454 if test $ac_cv_header_stdc = yes; then
3455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3456 if test "$cross_compiling" = yes; then
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 #if ((' ' & 0x0FF) == 0x020)
3468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471 # define ISLOWER(c) \
3472 (('a' <= (c) && (c) <= 'i') \
3473 || ('j' <= (c) && (c) <= 'r') \
3474 || ('s' <= (c) && (c) <= 'z'))
3475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3483 for (i = 0; i < 256; i++)
3484 if (XOR (islower (i), ISLOWER (i))
3485 || toupper (i) != TOUPPER (i))
3490 rm -f conftest$ac_exeext
3491 if { (ac_try="$ac_link"
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_link") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3501 { (case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_try") 2>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3512 echo "$as_me: program exited with status $ac_status" >&5
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3517 ac_cv_header_stdc=no
3519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3525 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3526 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3527 if test $ac_cv_header_stdc = yes; then
3529 cat >>confdefs.h <<\_ACEOF
3530 #define STDC_HEADERS 1
3535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3546 inttypes.h stdint.h unistd.h
3548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3562 #include <$ac_header>
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 eval "$as_ac_Header=yes"
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 eval "$as_ac_Header=no"
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_res=`eval echo '${'$as_ac_Header'}'`
3592 { echo "$as_me:$LINENO: result: $ac_res" >&5
3593 echo "${ECHO_T}$ac_res" >&6; }
3594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3595 cat >>confdefs.h <<_ACEOF
3596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3605 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3606 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3607 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3611 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3613 # Is the header compilable?
3614 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3615 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 $ac_includes_default
3623 #include <linux/fs.h>
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
3642 ac_header_compiler=yes
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 ac_header_compiler=no
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3652 echo "${ECHO_T}$ac_header_compiler" >&6; }
3654 # Is the header present?
3655 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3656 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <linux/fs.h>
3665 if { (ac_try="$ac_cpp conftest.$ac_ext"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3673 grep -v '^ *+' conftest.er1 >conftest.err
3675 cat conftest.err >&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev/null && {
3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3681 ac_header_preproc=yes
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_header_preproc=no
3689 rm -f conftest.err conftest.$ac_ext
3690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3691 echo "${ECHO_T}$ac_header_preproc" >&6; }
3693 # So? What about this header?
3694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3697 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3699 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3700 ac_header_preproc=yes
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3704 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3706 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3708 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3710 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3712 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3714 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3718 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3719 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3720 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 ac_cv_header_linux_fs_h=$ac_header_preproc
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3729 if test $ac_cv_header_linux_fs_h = yes; then
3736 if test "$linux_headers" != yes; then
3737 LINUX_INCLUDE='-I$(top_builddir)/include'
3740 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3741 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3742 if test "$GCC" = yes
3745 alpha) addcflags="-mieee" ;;
3748 if test "x$addcflags" != x
3750 { echo "$as_me:$LINENO: result: $addcflags" >&5
3751 echo "${ECHO_T}$addcflags" >&6; }
3752 CFLAGS="$addcflags $CFLAGS"
3754 { echo "$as_me:$LINENO: result: (none)" >&5
3755 echo "${ECHO_T}(none)" >&6; }
3761 # Check whether --with-ldopts was given.
3762 if test "${with_ldopts+set}" = set; then
3763 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3764 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3771 # Check whether --with-root-prefix was given.
3772 if test "${with_root_prefix+set}" = set; then
3773 withval=$with_root_prefix; root_prefix=$withval
3777 # Check whether --enable-maintainer-mode was given.
3778 if test "${enable_maintainer_mode+set}" = set; then
3779 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3782 echo "Disabling maintainer mode"
3785 echo "Enabling maintainer mode"
3790 echo "Disabling maintainer mode by default"
3795 # Check whether --enable-compression was given.
3796 if test "${enable_compression+set}" = set; then
3797 enableval=$enable_compression; if test "$enableval" = "no"
3799 echo "Disabling compression support"
3801 cat >>confdefs.h <<\_ACEOF
3802 #define ENABLE_COMPRESSION 1
3805 echo "Enabling compression support"
3806 echo "WARNING: Compression support is experimental"
3810 echo "Disabling compression support by default"
3814 # Check whether --enable-htree was given.
3815 if test "${enable_htree+set}" = set; then
3816 enableval=$enable_htree; if test "$enableval" = "no"
3819 echo "Disabling htree directory support"
3822 cat >>confdefs.h <<\_ACEOF
3823 #define ENABLE_HTREE 1
3826 echo "Enabling htree directory support"
3831 cat >>confdefs.h <<\_ACEOF
3832 #define ENABLE_HTREE 1
3835 echo "Enabling htree directory support by default"
3840 E2_PKG_CONFIG_STATIC=--static
3841 # Check whether --enable-elf-shlibs was given.
3842 if test "${enable_elf_shlibs+set}" = set; then
3843 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3846 MAKEFILE_ELF=/dev/null
3847 echo "Disabling ELF shared libraries"
3849 E2_PKG_CONFIG_STATIC=
3851 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3854 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3859 echo "Enabling ELF shared libraries"
3863 MAKEFILE_ELF=/dev/null
3865 echo "Disabling ELF shared libraries by default"
3871 # Check whether --enable-bsd-shlibs was given.
3872 if test "${enable_bsd_shlibs+set}" = set; then
3873 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3876 MAKEFILE_BSDLIB=/dev/null
3877 echo "Disabling BSD shared libraries"
3879 E2_PKG_CONFIG_STATIC=
3881 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3885 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3889 echo "Enabling BSD shared libraries"
3893 MAKEFILE_BSDLIB=/dev/null
3895 echo "Disabling BSD shared libraries by default"
3901 # Check whether --enable-profile was given.
3902 if test "${enable_profile+set}" = set; then
3903 enableval=$enable_profile; if test "$enableval" = "no"
3906 MAKEFILE_PROFILE=/dev/null
3907 echo "Disabling profiling libraries"
3910 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3911 PROFILED_LIB_EXT=_p.a
3912 echo "Building profiling libraries"
3917 MAKEFILE_PROFILE=/dev/null
3918 echo "Disabling profiling libraries by default"
3924 # Check whether --enable-checker was given.
3925 if test "${enable_checker+set}" = set; then
3926 enableval=$enable_checker; if test "$enableval" = "no"
3929 MAKEFILE_CHECKER=/dev/null
3930 echo "Disabling checker libraries"
3933 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3934 echo "Building checker libraries"
3939 MAKEFILE_CHECKER=/dev/null
3940 echo "Disabling checker libraries by default"
3949 # Check whether --enable-jbd-debug was given.
3950 if test "${enable_jbd_debug+set}" = set; then
3951 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3953 echo "Disabling journal debugging"
3955 cat >>confdefs.h <<\_ACEOF
3956 #define CONFIG_JBD_DEBUG 1
3959 echo "Enabling journal debugging"
3963 echo "Disabling journal debugging by default"
3967 # Check whether --enable-blkid-debug was given.
3968 if test "${enable_blkid_debug+set}" = set; then
3969 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3971 echo "Disabling blkid debugging"
3973 cat >>confdefs.h <<\_ACEOF
3974 #define CONFIG_BLKID_DEBUG 1
3977 echo "Enabling blkid debugging"
3981 echo "Disabling blkid debugging by default"
3985 # Check whether --enable-testio-debug was given.
3986 if test "${enable_testio_debug+set}" = set; then
3987 enableval=$enable_testio_debug; if test "$enableval" = "no"
3989 echo "Disabling testio debugging"
3991 cat >>confdefs.h <<\_ACEOF
3992 #define CONFIG_TESTIO_DEBUG 1
3995 echo "Enabling testio debugging"
3999 echo "Disabling testio debugging by default"
4003 # Check whether --enable-debugfs was given.
4004 if test "${enable_debugfs+set}" = set; then
4005 enableval=$enable_debugfs; if test "$enableval" = "no"
4007 echo "Disabling debugfs support"
4011 echo "Enabling debugfs support"
4015 echo "Enabling debugfs support by default"
4021 # Check whether --enable-imager was given.
4022 if test "${enable_imager+set}" = set; then
4023 enableval=$enable_imager; if test "$enableval" = "no"
4025 echo "Disabling e2image support"
4029 echo "Enabling e2image support"
4033 echo "Enabling e2image support by default"
4039 # Check whether --enable-resizer was given.
4040 if test "${enable_resizer+set}" = set; then
4041 enableval=$enable_resizer; if test "$enableval" = "no"
4043 echo "Disabling e2resize support"
4047 echo "Enabling e2resize support"
4051 echo "Enabling e2resize support by default"
4057 # Check whether --enable-fsck was given.
4058 if test "${enable_fsck+set}" = set; then
4059 enableval=$enable_fsck; if test "$enableval" = "no"
4061 FSCK_PROG='' FSCK_MAN=''
4062 echo "Not building fsck wrapper"
4064 FSCK_PROG=fsck FSCK_MAN=fsck.8
4065 echo "Building fsck wrapper"
4071 FSCK_PROG='' FSCK_MAN=''
4072 echo "Not building fsck wrapper by default"
4075 FSCK_PROG=fsck FSCK_MAN=fsck.8
4076 echo "Building fsck wrapper by default"
4083 # Check whether --enable-e2initrd-helper was given.
4084 if test "${enable_e2initrd_helper+set}" = set; then
4085 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4087 E2INITRD_PROG='' E2INITRD_MAN=''
4088 echo "Not building e2initrd helper"
4090 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4091 echo "Building e2initrd helper"
4095 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4096 echo "Building e2initrd helper by default"
4102 STATIC_BLKID_DEVMAPPER_LIBS=''
4103 # Check whether --enable-blkid-devmapper was given.
4104 if test "${enable_blkid_devmapper+set}" = set; then
4105 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4107 echo "Disabling device-mapper support"
4110 STATIC_DEVMAPPER_LIBS=''
4112 cat >>confdefs.h <<\_ACEOF
4113 #define HAVE_DEVMAPPER 1
4116 echo "Enabling device-mapper support"
4120 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4121 if test -n "$ac_tool_prefix"; then
4122 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4126 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4153 if test -n "$PKG_CONFIG"; then
4154 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4155 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4157 { echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6; }
4163 if test -z "$ac_cv_path_PKG_CONFIG"; then
4164 ac_pt_PKG_CONFIG=$PKG_CONFIG
4165 # Extract the first word of "pkg-config", so it can be a program name with args.
4166 set dummy pkg-config; ac_word=$2
4167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4169 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 case $ac_pt_PKG_CONFIG in
4174 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4196 if test -n "$ac_pt_PKG_CONFIG"; then
4197 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4198 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4200 { echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6; }
4204 if test "x$ac_pt_PKG_CONFIG" = x; then
4207 case $cross_compiling:$ac_tool_warned in
4209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4210 whose name does not start with the host triplet. If you think this
4211 configuration is useful to you, please write to autoconf@gnu.org." >&5
4212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4213 whose name does not start with the host triplet. If you think this
4214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4215 ac_tool_warned=yes ;;
4217 PKG_CONFIG=$ac_pt_PKG_CONFIG
4220 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4224 if test -n "$PKG_CONFIG"; then
4225 _pkg_min_version=0.9.0
4226 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4227 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4228 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4229 { echo "$as_me:$LINENO: result: yes" >&5
4230 echo "${ECHO_T}yes" >&6; }
4232 { echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6; }
4239 if test -z "$PKG_CONFIG"; then
4240 echo "pkg-config not installed; please install it."
4244 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4245 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4246 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 ac_check_lib_save_LIBS=$LIBS
4250 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4258 /* Override any GCC internal prototype to avoid an error.
4259 Use char because int might match the return type of a GCC
4260 builtin and then its argument prototype would still apply. */
4264 char dm_tree_create ();
4268 return dm_tree_create ();
4273 rm -f conftest.$ac_objext conftest$ac_exeext
4274 if { (ac_try="$ac_link"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_link") 2>conftest.er1
4282 grep -v '^ *+' conftest.er1 >conftest.err
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } && {
4287 test -z "$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 } && test -s conftest$ac_exeext &&
4290 $as_test_x conftest$ac_exeext; then
4291 ac_cv_lib_devmapper_dm_tree_create=yes
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 ac_cv_lib_devmapper_dm_tree_create=no
4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300 conftest$ac_exeext conftest.$ac_ext
4301 LIBS=$ac_check_lib_save_LIBS
4303 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4304 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4305 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4306 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4307 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4308 DEVMAPPER_REQ="devmapper";
4309 DEVMAPPER_PC_LIBS="-ldevmapper"
4311 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4312 echo "$as_me: error: device-mapper library not found" >&2;}
4313 { (exit 1); exit 1; }; }
4316 # work around stupid devmapper.pc bug in Debian
4317 case "$STATIC_DEVMAPPER_LIBS" in
4321 echo "Working around Debian bug #390243..."
4322 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4325 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4326 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4327 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4332 echo "Disabling device-mapper support by default"
4341 # Check whether --enable-tls was given.
4342 if test "${enable_tls+set}" = set; then
4343 enableval=$enable_tls; if test "$enableval" = "no"
4346 echo "Disabling thread local support"
4349 echo "Enabling thread local support"
4354 echo "Try using thread local support by default"
4358 if test "$try_tls" = "yes"
4361 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4362 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4363 if test "${ac_cv_tls+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ax_tls_keywords="__thread __declspec(thread) none"
4368 for ax_tls_keyword in $ax_tls_keywords; do
4369 case $ax_tls_keyword in
4370 none) ac_cv_tls=none ; break ;;
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4381 static $ax_tls_keyword int bar;
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } && {
4406 test -z "$ac_c_werror_flag" ||
4407 test ! -s conftest.err
4408 } && test -s conftest.$ac_objext; then
4409 ac_cv_tls=$ax_tls_keyword ; break
4411 echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 if test "$ac_cv_tls" != "none"; then
4427 cat >>confdefs.h <<_ACEOF
4428 #define TLS $ac_cv_tls
4432 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4433 echo "${ECHO_T}$ac_cv_tls" >&6; }
4436 # Check whether --enable-uuidd was given.
4437 if test "${enable_uuidd+set}" = set; then
4438 enableval=$enable_uuidd; if test "$enableval" = "no"
4440 echo "Not building uuidd"
4443 cat >>confdefs.h <<\_ACEOF
4448 echo "Building uuidd"
4452 cat >>confdefs.h <<\_ACEOF
4457 echo "Building uuidd by default"
4462 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4464 GETTEXT_PACKAGE=e2fsprogs
4466 VERSION="$E2FSPROGS_VERSION"
4468 cat >>confdefs.h <<_ACEOF
4469 #define PACKAGE "$PACKAGE"
4472 cat >>confdefs.h <<_ACEOF
4473 #define VERSION "$VERSION"
4480 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4481 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4482 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4483 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 cat >conftest.make <<\_ACEOF
4489 @echo '@@@%%%=$(MAKE)=@@@%%%'
4491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4494 eval ac_cv_prog_make_${ac_make}_set=yes;;
4496 eval ac_cv_prog_make_${ac_make}_set=no;;
4500 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4501 { echo "$as_me:$LINENO: result: yes" >&5
4502 echo "${ECHO_T}yes" >&6; }
4505 { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 SET_MAKE="MAKE=${MAKE-make}"
4510 # Find a good install program. We prefer a C program (faster),
4511 # so one script is as good as another. But avoid the broken or
4512 # incompatible versions:
4513 # SysV /etc/install, /usr/sbin/install
4514 # SunOS /usr/etc/install
4515 # IRIX /sbin/install
4517 # AmigaOS /C/install, which installs bootblocks on floppy discs
4518 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4519 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4520 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4521 # OS/2's system install, which has a completely different semantic
4522 # ./install, which can be erroneously created by make from ./install.sh.
4523 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4524 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4525 if test -z "$INSTALL"; then
4526 if test "${ac_cv_path_install+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 test -z "$as_dir" && as_dir=.
4534 # Account for people who put trailing slashes in PATH elements.
4536 ./ | .// | /cC/* | \
4537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4541 # OSF1 and SCO ODT 3.0 have their own names for install.
4542 # Don't use installbsd from OSF since it installs stuff as root
4544 for ac_prog in ginstall scoinst install; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4547 if test $ac_prog = install &&
4548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4549 # AIX install. It has an incompatible calling convention.
4551 elif test $ac_prog = install &&
4552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4553 # program-specific install script used by HP pwplus--don't use.
4556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4569 if test "${ac_cv_path_install+set}" = set; then
4570 INSTALL=$ac_cv_path_install
4572 # As a last resort, use the slow shell script. Don't cache a
4573 # value for INSTALL within a source directory, because that will
4574 # break other packages using the cache if that directory is
4575 # removed, or if the value is a relative name.
4576 INSTALL=$ac_install_sh
4579 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4580 echo "${ECHO_T}$INSTALL" >&6; }
4582 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4583 # It thinks the first close brace ends the variable substitution.
4584 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4586 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4588 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4592 if test -n "$ac_aux_dir"; then
4593 case "$ac_aux_dir" in
4594 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4595 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4598 if test -z "$MKINSTALLDIRS"; then
4599 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4604 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4605 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4606 # Check whether --enable-nls was given.
4607 if test "${enable_nls+set}" = set; then
4608 enableval=$enable_nls; USE_NLS=$enableval
4613 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4614 echo "${ECHO_T}$USE_NLS" >&6; }
4621 # Prepare PATH_SEPARATOR.
4622 # The user is always right.
4623 if test "${PATH_SEPARATOR+set}" != set; then
4624 echo "#! /bin/sh" >conf$$.sh
4625 echo "exit 0" >>conf$$.sh
4627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4635 # Find out how to test for executable files. Don't use a zero-byte file,
4636 # as systems may use methods other than mode bits to determine executability.
4637 cat >conf$$.file <<_ASEOF
4641 chmod +x conf$$.file
4642 if test -x conf$$.file >/dev/null 2>&1; then
4643 ac_executable_p="test -x"
4645 ac_executable_p="test -f"
4649 # Extract the first word of "msgfmt", so it can be a program name with args.
4650 set dummy msgfmt; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_path_MSGFMT+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4661 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4662 for ac_dir in $PATH; do
4664 test -z "$ac_dir" && ac_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4667 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4668 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4669 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4676 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4680 MSGFMT="$ac_cv_path_MSGFMT"
4681 if test "$MSGFMT" != ":"; then
4682 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4683 echo "${ECHO_T}$MSGFMT" >&6; }
4685 { echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6; }
4689 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4690 set dummy gmsgfmt; ac_word=$2
4691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4720 GMSGFMT=$ac_cv_path_GMSGFMT
4721 if test -n "$GMSGFMT"; then
4722 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4723 echo "${ECHO_T}$GMSGFMT" >&6; }
4725 { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4732 # Prepare PATH_SEPARATOR.
4733 # The user is always right.
4734 if test "${PATH_SEPARATOR+set}" != set; then
4735 echo "#! /bin/sh" >conf$$.sh
4736 echo "exit 0" >>conf$$.sh
4738 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4746 # Find out how to test for executable files. Don't use a zero-byte file,
4747 # as systems may use methods other than mode bits to determine executability.
4748 cat >conf$$.file <<_ASEOF
4752 chmod +x conf$$.file
4753 if test -x conf$$.file >/dev/null 2>&1; then
4754 ac_executable_p="test -x"
4756 ac_executable_p="test -f"
4760 # Extract the first word of "xgettext", so it can be a program name with args.
4761 set dummy xgettext; ac_word=$2
4762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4764 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4772 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4773 for ac_dir in $PATH; do
4775 test -z "$ac_dir" && ac_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4778 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4779 (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
4780 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4787 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4791 XGETTEXT="$ac_cv_path_XGETTEXT"
4792 if test "$XGETTEXT" != ":"; then
4793 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4794 echo "${ECHO_T}$XGETTEXT" >&6; }
4796 { echo "$as_me:$LINENO: result: no" >&5
4797 echo "${ECHO_T}no" >&6; }
4803 # Prepare PATH_SEPARATOR.
4804 # The user is always right.
4805 if test "${PATH_SEPARATOR+set}" != set; then
4806 echo "#! /bin/sh" >conf$$.sh
4807 echo "exit 0" >>conf$$.sh
4809 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4817 # Find out how to test for executable files. Don't use a zero-byte file,
4818 # as systems may use methods other than mode bits to determine executability.
4819 cat >conf$$.file <<_ASEOF
4823 chmod +x conf$$.file
4824 if test -x conf$$.file >/dev/null 2>&1; then
4825 ac_executable_p="test -x"
4827 ac_executable_p="test -f"
4831 # Extract the first word of "msgmerge", so it can be a program name with args.
4832 set dummy msgmerge; ac_word=$2
4833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4835 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4843 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4844 for ac_dir in $PATH; do
4846 test -z "$ac_dir" && ac_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4849 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4850 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4857 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4861 MSGMERGE="$ac_cv_path_MSGMERGE"
4862 if test "$MSGMERGE" != ":"; then
4863 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4864 echo "${ECHO_T}$MSGMERGE" >&6; }
4866 { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4871 if test "$GMSGFMT" != ":"; then
4872 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4873 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4876 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4877 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4878 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4883 if test "$XGETTEXT" != ":"; then
4884 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4885 (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
4888 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4889 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4895 ac_config_commands="$ac_config_commands default-1"
4898 if test -n "$ac_tool_prefix"; then
4899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4900 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_RANLIB+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 if test -n "$RANLIB"; then
4907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 RANLIB=$ac_cv_prog_RANLIB
4927 if test -n "$RANLIB"; then
4928 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4929 echo "${ECHO_T}$RANLIB" >&6; }
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4937 if test -z "$ac_cv_prog_RANLIB"; then
4938 ac_ct_RANLIB=$RANLIB
4939 # Extract the first word of "ranlib", so it can be a program name with args.
4940 set dummy ranlib; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 if test -n "$ac_ct_RANLIB"; then
4947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_prog_ac_ct_RANLIB="ranlib"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4967 if test -n "$ac_ct_RANLIB"; then
4968 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4969 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4971 { echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6; }
4975 if test "x$ac_ct_RANLIB" = x; then
4978 case $cross_compiling:$ac_tool_warned in
4980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4981 whose name does not start with the host triplet. If you think this
4982 configuration is useful to you, please write to autoconf@gnu.org." >&5
4983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4984 whose name does not start with the host triplet. If you think this
4985 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4986 ac_tool_warned=yes ;;
4988 RANLIB=$ac_ct_RANLIB
4991 RANLIB="$ac_cv_prog_RANLIB"
4995 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4996 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4997 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 ac_check_lib_save_LIBS=$LIBS
5001 LIBS="-lcposix $LIBS"
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5009 /* Override any GCC internal prototype to avoid an error.
5010 Use char because int might match the return type of a GCC
5011 builtin and then its argument prototype would still apply. */
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (ac_try="$ac_link"
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_link") 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && {
5038 test -z "$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5040 } && test -s conftest$ac_exeext &&
5041 $as_test_x conftest$ac_exeext; then
5042 ac_cv_lib_cposix_strerror=yes
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 ac_cv_lib_cposix_strerror=no
5050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5051 conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5054 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5055 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5056 if test $ac_cv_lib_cposix_strerror = yes; then
5057 LIBS="$LIBS -lcposix"
5062 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5063 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5064 if test "${ac_cv_c_const+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 cat >conftest.$ac_ext <<_ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5077 /* FIXME: Include the comments suggested by Paul. */
5079 /* Ultrix mips cc rejects this. */
5080 typedef int charset[2];
5082 /* SunOS 4.1.1 cc rejects this. */
5083 char const *const *pcpcc;
5085 /* NEC SVR4.0.2 mips cc rejects this. */
5086 struct point {int x, y;};
5087 static struct point const zero = {0,0};
5088 /* AIX XL C 1.02.0.0 rejects this.
5089 It does not let you subtract one const X* pointer from another in
5090 an arm of an if-expression whose if-part is not a constant
5092 const char *g = "string";
5093 pcpcc = &g + (g ? g-g : 0);
5094 /* HPUX 7.0 cc rejects these. */
5096 ppc = (char**) pcpcc;
5097 pcpcc = (char const *const *) ppc;
5098 { /* SCO 3.2v4 cc rejects this. */
5100 char const *s = 0 ? (char *) 0 : (char const *) 0;
5105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5107 const int *foo = &x[0];
5110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5111 typedef const int *iptr;
5115 { /* AIX XL C 1.02.0.0 rejects this saying
5116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5117 struct s { int j; const int *ap[3]; };
5118 struct s *b; b->j = 5;
5120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5124 return !cs[0] && !zero.x;
5131 rm -f conftest.$ac_objext
5132 if { (ac_try="$ac_compile"
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_compile") 2>conftest.er1
5140 grep -v '^ *+' conftest.er1 >conftest.err
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } && {
5145 test -z "$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 } && test -s conftest.$ac_objext; then
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5158 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5159 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5160 if test $ac_cv_c_const = no; then
5162 cat >>confdefs.h <<\_ACEOF
5169 { echo "$as_me:$LINENO: checking for signed" >&5
5170 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5171 if test "${bh_cv_c_signed+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 cat >conftest.$ac_ext <<_ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5189 rm -f conftest.$ac_objext
5190 if { (ac_try="$ac_compile"
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_compile") 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } && {
5203 test -z "$ac_c_werror_flag" ||
5204 test ! -s conftest.err
5205 } && test -s conftest.$ac_objext; then
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5217 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5218 if test $bh_cv_c_signed = no; then
5220 cat >>confdefs.h <<\_ACEOF
5226 { echo "$as_me:$LINENO: checking for inline" >&5
5227 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5228 if test "${ac_cv_c_inline+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 for ac_kw in inline __inline__ __inline; do
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5241 static $ac_kw foo_t static_foo () {return 0; }
5242 $ac_kw foo_t foo () {return 0; }
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && {
5260 test -z "$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 } && test -s conftest.$ac_objext; then
5263 ac_cv_c_inline=$ac_kw
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 test "$ac_cv_c_inline" != no && break
5276 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5277 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5280 case $ac_cv_c_inline in
5283 case $ac_cv_c_inline in
5285 *) ac_val=$ac_cv_c_inline;;
5287 cat >>confdefs.h <<_ACEOF
5289 #define inline $ac_val
5295 { echo "$as_me:$LINENO: checking for off_t" >&5
5296 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5297 if test "${ac_cv_type_off_t+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5306 $ac_includes_default
5307 typedef off_t ac__type_new_;
5311 if ((ac__type_new_ *) 0)
5313 if (sizeof (ac__type_new_))
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.$ac_objext; then
5336 ac_cv_type_off_t=yes
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5347 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5348 if test $ac_cv_type_off_t = yes; then
5352 cat >>confdefs.h <<_ACEOF
5353 #define off_t long int
5358 { echo "$as_me:$LINENO: checking for size_t" >&5
5359 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5360 if test "${ac_cv_type_size_t+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 cat >conftest.$ac_ext <<_ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5369 $ac_includes_default
5370 typedef size_t ac__type_new_;
5374 if ((ac__type_new_ *) 0)
5376 if (sizeof (ac__type_new_))
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5391 grep -v '^ *+' conftest.er1 >conftest.err
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_cv_type_size_t=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_cv_type_size_t=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5410 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5411 if test $ac_cv_type_size_t = yes; then
5415 cat >>confdefs.h <<_ACEOF
5416 #define size_t unsigned int
5422 { echo "$as_me:$LINENO: checking for long long" >&5
5423 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5424 if test "${ac_cv_type_long_long+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 long long ll = 1LL; int i = 63;
5437 long long llmax = (long long) -1;
5438 return ll << i | ll >> i | llmax / ll | llmax % ll;
5443 rm -f conftest.$ac_objext conftest$ac_exeext
5444 if { (ac_try="$ac_link"
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447 *) ac_try_echo=$ac_try;;
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450 (eval "$ac_link") 2>conftest.er1
5452 grep -v '^ *+' conftest.er1 >conftest.err
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } && {
5457 test -z "$ac_c_werror_flag" ||
5458 test ! -s conftest.err
5459 } && test -s conftest$ac_exeext &&
5460 $as_test_x conftest$ac_exeext; then
5461 ac_cv_type_long_long=yes
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 ac_cv_type_long_long=no
5469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5470 conftest$ac_exeext conftest.$ac_ext
5472 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5473 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5474 if test $ac_cv_type_long_long = yes; then
5476 cat >>confdefs.h <<\_ACEOF
5477 #define HAVE_LONG_LONG 1
5483 { echo "$as_me:$LINENO: checking for long double" >&5
5484 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5485 if test "${gt_cv_c_long_double+set}" = set; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 if test "$GCC" = yes; then
5489 gt_cv_c_long_double=yes
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5498 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5499 long double foo = 0.0;
5500 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5501 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 gt_cv_c_long_double=yes
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 gt_cv_c_long_double=no
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5540 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5541 if test $gt_cv_c_long_double = yes; then
5543 cat >>confdefs.h <<\_ACEOF
5544 #define HAVE_LONG_DOUBLE 1
5550 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5551 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5552 if test "${gt_cv_c_wchar_t+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 wchar_t foo = (wchar_t)'\0';
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5580 grep -v '^ *+' conftest.er1 >conftest.err
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5599 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5600 if test $gt_cv_c_wchar_t = yes; then
5602 cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_WCHAR_T 1
5609 { echo "$as_me:$LINENO: checking for wint_t" >&5
5610 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5611 if test "${gt_cv_c_wint_t+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5621 wint_t foo = (wchar_t)'\0';
5630 rm -f conftest.$ac_objext
5631 if { (ac_try="$ac_compile"
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_compile") 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_c_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest.$ac_objext; then
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5658 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5659 if test $gt_cv_c_wint_t = yes; then
5661 cat >>confdefs.h <<\_ACEOF
5662 #define HAVE_WINT_T 1
5668 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5669 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5670 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 cat >conftest.$ac_ext <<_ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <sys/types.h>
5680 #include <inttypes.h>
5684 uintmax_t i = (uintmax_t) -1;
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5698 grep -v '^ *+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
5706 jm_ac_cv_header_inttypes_h=yes
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 jm_ac_cv_header_inttypes_h=no
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5717 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5718 if test $jm_ac_cv_header_inttypes_h = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5727 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5728 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5729 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 cat >conftest.$ac_ext <<_ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5743 uintmax_t i = (uintmax_t) -1;
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5765 jm_ac_cv_header_stdint_h=yes
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 jm_ac_cv_header_stdint_h=no
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5776 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5777 if test $jm_ac_cv_header_stdint_h = yes; then
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_STDINT_H_WITH_UINTMAX 1
5788 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5789 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5790 if test "${gt_cv_c_intmax_t+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 cat >conftest.$ac_ext <<_ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5802 #if HAVE_STDINT_H_WITH_UINTMAX
5805 #if HAVE_INTTYPES_H_WITH_UINTMAX
5806 #include <inttypes.h>
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5826 grep -v '^ *+' conftest.er1 >conftest.err
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
5834 gt_cv_c_intmax_t=yes
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5845 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5846 if test $gt_cv_c_intmax_t = yes; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_INTMAX_T 1
5856 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5857 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5858 if test "${gt_cv_func_printf_posix+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 if test "$cross_compiling" = yes; then
5864 cat >conftest.$ac_ext <<_ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5871 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877 $EGREP "notposix" >/dev/null 2>&1; then
5878 gt_cv_func_printf_posix="guessing no"
5880 gt_cv_func_printf_posix="guessing yes"
5886 cat >conftest.$ac_ext <<_ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5895 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5896 dollar expansion (possibly an autoconf bug). */
5897 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5898 static char buf[100];
5901 sprintf (buf, format, 33, 55);
5902 return (strcmp (buf, "55 33") != 0);
5905 rm -f conftest$ac_exeext
5906 if { (ac_try="$ac_link"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_link") 2>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 gt_cv_func_printf_posix=yes
5927 echo "$as_me: program exited with status $ac_status" >&5
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5932 gt_cv_func_printf_posix=no
5934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5940 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5941 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5942 case $gt_cv_func_printf_posix in
5945 cat >>confdefs.h <<\_ACEOF
5946 #define HAVE_POSIX_PRINTF 1
5952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5953 # for constant arguments. Useless!
5954 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5955 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5956 if test "${ac_cv_working_alloca_h+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5969 char *p = (char *) alloca (2 * sizeof (int));
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (ac_try="$ac_link"
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_link") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest$ac_exeext &&
5992 $as_test_x conftest$ac_exeext; then
5993 ac_cv_working_alloca_h=yes
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 ac_cv_working_alloca_h=no
6001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6002 conftest$ac_exeext conftest.$ac_ext
6004 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6005 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6006 if test $ac_cv_working_alloca_h = yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009 #define HAVE_ALLOCA_H 1
6014 { echo "$as_me:$LINENO: checking for alloca" >&5
6015 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6016 if test "${ac_cv_func_alloca_works+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 cat >conftest.$ac_ext <<_ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6026 # define alloca __builtin_alloca
6029 # include <malloc.h>
6030 # define alloca _alloca
6032 # ifdef HAVE_ALLOCA_H
6033 # include <alloca.h>
6038 # ifndef alloca /* predefined by HP cc +Olibcalls */
6049 char *p = (char *) alloca (1);
6055 rm -f conftest.$ac_objext conftest$ac_exeext
6056 if { (ac_try="$ac_link"
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_link") 2>conftest.er1
6064 grep -v '^ *+' conftest.er1 >conftest.err
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest$ac_exeext &&
6072 $as_test_x conftest$ac_exeext; then
6073 ac_cv_func_alloca_works=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_cv_func_alloca_works=no
6081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6082 conftest$ac_exeext conftest.$ac_ext
6084 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6085 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6087 if test $ac_cv_func_alloca_works = yes; then
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_ALLOCA 1
6094 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6095 # that cause trouble. Some versions do not even contain alloca or
6096 # contain a buggy version. If you still want to use their alloca,
6097 # use ar to extract alloca.o from them instead of compiling alloca.c.
6099 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6101 cat >>confdefs.h <<\_ACEOF
6106 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6107 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6108 if test "${ac_cv_os_cray+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6117 #if defined CRAY && ! defined CRAY2
6124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 $EGREP "webecray" >/dev/null 2>&1; then
6133 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6134 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6135 if test $ac_cv_os_cray = yes; then
6136 for ac_func in _getb67 GETB67 getb67; do
6137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 cat >conftest.$ac_ext <<_ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6151 #define $ac_func innocuous_$ac_func
6153 /* System header to define __stub macros and hopefully few prototypes,
6154 which can conflict with char $ac_func (); below.
6155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6156 <limits.h> exists even on freestanding compilers. */
6159 # include <limits.h>
6161 # include <assert.h>
6166 /* Override any GCC internal prototype to avoid an error.
6167 Use char because int might match the return type of a GCC
6168 builtin and then its argument prototype would still apply. */
6173 /* The GNU C library defines this for functions which it implements
6174 to always fail with ENOSYS. Some functions are actually named
6175 something starting with __ and the normal name is an alias. */
6176 #if defined __stub_$ac_func || defined __stub___$ac_func
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1 >conftest.err
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest$ac_exeext &&
6205 $as_test_x conftest$ac_exeext; then
6206 eval "$as_ac_var=yes"
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 eval "$as_ac_var=no"
6214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6215 conftest$ac_exeext conftest.$ac_ext
6217 ac_res=`eval echo '${'$as_ac_var'}'`
6218 { echo "$as_me:$LINENO: result: $ac_res" >&5
6219 echo "${ECHO_T}$ac_res" >&6; }
6220 if test `eval echo '${'$as_ac_var'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define CRAY_STACKSEG_END $ac_func
6232 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6233 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6234 if test "${ac_cv_c_stack_direction+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test "$cross_compiling" = yes; then
6238 ac_cv_c_stack_direction=0
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 $ac_includes_default
6248 find_stack_direction ()
6250 static char *addr = 0;
6255 return find_stack_direction ();
6258 return (&dummy > addr) ? 1 : -1;
6264 return find_stack_direction () < 0;
6267 rm -f conftest$ac_exeext
6268 if { (ac_try="$ac_link"
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_link") 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6278 { (case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_try") 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_cv_c_stack_direction=1
6289 echo "$as_me: program exited with status $ac_status" >&5
6290 echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6294 ac_cv_c_stack_direction=-1
6296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6301 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6302 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6304 cat >>confdefs.h <<_ACEOF
6305 #define STACK_DIRECTION $ac_cv_c_stack_direction
6313 for ac_header in stdlib.h unistd.h
6315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 ac_res=`eval echo '${'$as_ac_Header'}'`
6323 { echo "$as_me:$LINENO: result: $ac_res" >&5
6324 echo "${ECHO_T}$ac_res" >&6; }
6326 # Is the header compilable?
6327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 $ac_includes_default
6336 #include <$ac_header>
6338 rm -f conftest.$ac_objext
6339 if { (ac_try="$ac_compile"
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_compile") 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest.$ac_objext; then
6355 ac_header_compiler=yes
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 ac_header_compiler=no
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6365 echo "${ECHO_T}$ac_header_compiler" >&6; }
6367 # Is the header present?
6368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 #include <$ac_header>
6378 if { (ac_try="$ac_cpp conftest.$ac_ext"
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } >/dev/null && {
6391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6394 ac_header_preproc=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_header_preproc=no
6402 rm -f conftest.err conftest.$ac_ext
6403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6404 echo "${ECHO_T}$ac_header_preproc" >&6; }
6406 # So? What about this header?
6407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6413 ac_header_preproc=yes
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 eval "$as_ac_Header=\$ac_header_preproc"
6438 ac_res=`eval echo '${'$as_ac_Header'}'`
6439 { echo "$as_me:$LINENO: result: $ac_res" >&5
6440 echo "${ECHO_T}$ac_res" >&6; }
6443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6444 cat >>confdefs.h <<_ACEOF
6445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6453 for ac_func in getpagesize
6455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6469 #define $ac_func innocuous_$ac_func
6471 /* System header to define __stub macros and hopefully few prototypes,
6472 which can conflict with char $ac_func (); below.
6473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6474 <limits.h> exists even on freestanding compilers. */
6477 # include <limits.h>
6479 # include <assert.h>
6484 /* Override any GCC internal prototype to avoid an error.
6485 Use char because int might match the return type of a GCC
6486 builtin and then its argument prototype would still apply. */
6491 /* The GNU C library defines this for functions which it implements
6492 to always fail with ENOSYS. Some functions are actually named
6493 something starting with __ and the normal name is an alias. */
6494 #if defined __stub_$ac_func || defined __stub___$ac_func
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (ac_try="$ac_link"
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_link") 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_c_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest$ac_exeext &&
6523 $as_test_x conftest$ac_exeext; then
6524 eval "$as_ac_var=yes"
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 eval "$as_ac_var=no"
6532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6533 conftest$ac_exeext conftest.$ac_ext
6535 ac_res=`eval echo '${'$as_ac_var'}'`
6536 { echo "$as_me:$LINENO: result: $ac_res" >&5
6537 echo "${ECHO_T}$ac_res" >&6; }
6538 if test `eval echo '${'$as_ac_var'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6546 { echo "$as_me:$LINENO: checking for working mmap" >&5
6547 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6548 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 if test "$cross_compiling" = yes; then
6552 ac_cv_func_mmap_fixed_mapped=no
6554 cat >conftest.$ac_ext <<_ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 $ac_includes_default
6561 /* malloc might have been renamed as rpl_malloc. */
6564 /* Thanks to Mike Haertel and Jim Avera for this test.
6565 Here is a matrix of mmap possibilities:
6566 mmap private not fixed
6567 mmap private fixed at somewhere currently unmapped
6568 mmap private fixed at somewhere already mapped
6569 mmap shared not fixed
6570 mmap shared fixed at somewhere currently unmapped
6571 mmap shared fixed at somewhere already mapped
6572 For private mappings, we should verify that changes cannot be read()
6573 back from the file, nor mmap's back from the file at a different
6574 address. (There have been systems where private was not correctly
6575 implemented like the infamous i386 svr4.0, and systems where the
6576 VM page cache was not coherent with the file system buffer cache
6577 like early versions of FreeBSD and possibly contemporary NetBSD.)
6578 For shared mappings, we should conversely verify that changes get
6579 propagated back to all the places they're supposed to be.
6581 Grep wants private fixed already mapped.
6582 The main things grep needs to know about mmap are:
6583 * does it exist and is it safe to write into the mmap'd area
6584 * how to use it (BSD variants) */
6587 #include <sys/mman.h>
6589 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6593 /* This mess was copied from the GNU getpagesize.h. */
6594 #ifndef HAVE_GETPAGESIZE
6595 /* Assume that all systems that can run configure have sys/param.h. */
6596 # ifndef HAVE_SYS_PARAM_H
6597 # define HAVE_SYS_PARAM_H 1
6600 # ifdef _SC_PAGESIZE
6601 # define getpagesize() sysconf(_SC_PAGESIZE)
6602 # else /* no _SC_PAGESIZE */
6603 # ifdef HAVE_SYS_PARAM_H
6604 # include <sys/param.h>
6605 # ifdef EXEC_PAGESIZE
6606 # define getpagesize() EXEC_PAGESIZE
6607 # else /* no EXEC_PAGESIZE */
6609 # define getpagesize() NBPG * CLSIZE
6612 # endif /* no CLSIZE */
6613 # else /* no NBPG */
6615 # define getpagesize() NBPC
6616 # else /* no NBPC */
6618 # define getpagesize() PAGESIZE
6619 # endif /* PAGESIZE */
6620 # endif /* no NBPC */
6621 # endif /* no NBPG */
6622 # endif /* no EXEC_PAGESIZE */
6623 # else /* no HAVE_SYS_PARAM_H */
6624 # define getpagesize() 8192 /* punt totally */
6625 # endif /* no HAVE_SYS_PARAM_H */
6626 # endif /* no _SC_PAGESIZE */
6628 #endif /* no HAVE_GETPAGESIZE */
6633 char *data, *data2, *data3;
6637 pagesize = getpagesize ();
6639 /* First, make a file with some known garbage in it. */
6640 data = (char *) malloc (pagesize);
6643 for (i = 0; i < pagesize; ++i)
6644 *(data + i) = rand ();
6646 fd = creat ("conftest.mmap", 0600);
6649 if (write (fd, data, pagesize) != pagesize)
6653 /* Next, try to mmap the file at a fixed address which already has
6654 something else allocated at it. If we can, also make sure that
6655 we see the same garbage. */
6656 fd = open ("conftest.mmap", O_RDWR);
6659 data2 = (char *) malloc (2 * pagesize);
6662 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6663 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6664 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6666 for (i = 0; i < pagesize; ++i)
6667 if (*(data + i) != *(data2 + i))
6670 /* Finally, make sure that changes to the mapped area do not
6671 percolate back to the file as seen by read(). (This is a bug on
6672 some variants of i386 svr4.0.) */
6673 for (i = 0; i < pagesize; ++i)
6674 *(data2 + i) = *(data2 + i) + 1;
6675 data3 = (char *) malloc (pagesize);
6678 if (read (fd, data3, pagesize) != pagesize)
6680 for (i = 0; i < pagesize; ++i)
6681 if (*(data + i) != *(data3 + i))
6687 rm -f conftest$ac_exeext
6688 if { (ac_try="$ac_link"
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694 (eval "$ac_link") 2>&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6698 { (case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_try") 2>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_func_mmap_fixed_mapped=yes
6709 echo "$as_me: program exited with status $ac_status" >&5
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6714 ac_cv_func_mmap_fixed_mapped=no
6716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6721 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6722 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6723 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6725 cat >>confdefs.h <<\_ACEOF
6733 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6734 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6735 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6745 #include <features.h>
6746 #ifdef __GNU_LIBRARY__
6747 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6754 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6755 ac_cv_gnu_library_2_1=yes
6757 ac_cv_gnu_library_2_1=no
6764 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6765 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6767 GLIBC21="$ac_cv_gnu_library_2_1"
6772 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6773 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6774 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 if test "$cross_compiling" = yes; then
6780 # Guess based on the CPU.
6782 alpha* | i3456786 | m68k | s390*)
6783 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6785 gt_cv_int_divbyzero_sigfpe="guessing no";;
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6801 sigfpe_handler (int sig)
6803 sigfpe_handler (sig) int sig;
6806 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6807 exit (sig != SIGFPE);
6817 signal (SIGFPE, sigfpe_handler);
6818 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6819 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6820 signal (SIGTRAP, sigfpe_handler);
6822 /* Linux/SPARC yields signal SIGILL. */
6823 #if defined (__sparc__) && defined (__linux__)
6824 signal (SIGILL, sigfpe_handler);
6833 rm -f conftest$ac_exeext
6834 if { (ac_try="$ac_link"
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_link") 2>&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6844 { (case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6849 (eval "$ac_try") 2>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 gt_cv_int_divbyzero_sigfpe=yes
6855 echo "$as_me: program exited with status $ac_status" >&5
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6860 gt_cv_int_divbyzero_sigfpe=no
6862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6868 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6869 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6870 case "$gt_cv_int_divbyzero_sigfpe" in
6875 cat >>confdefs.h <<_ACEOF
6876 #define INTDIV0_RAISES_SIGFPE $value
6881 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6882 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6883 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 unsigned long long ull = 1ULL; int i = 63;
6896 unsigned long long ullmax = (unsigned long long) -1;
6897 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6902 rm -f conftest.$ac_objext conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909 (eval "$ac_link") 2>conftest.er1
6911 grep -v '^ *+' conftest.er1 >conftest.err
6913 cat conftest.err >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } && {
6916 test -z "$ac_c_werror_flag" ||
6917 test ! -s conftest.err
6918 } && test -s conftest$ac_exeext &&
6919 $as_test_x conftest$ac_exeext; then
6920 ac_cv_type_unsigned_long_long=yes
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6925 ac_cv_type_unsigned_long_long=no
6928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6929 conftest$ac_exeext conftest.$ac_ext
6931 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6932 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6933 if test $ac_cv_type_unsigned_long_long = yes; then
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_UNSIGNED_LONG_LONG 1
6944 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6946 test $ac_cv_type_unsigned_long_long = yes \
6947 && ac_type='unsigned long long' \
6948 || ac_type='unsigned long'
6950 cat >>confdefs.h <<_ACEOF
6951 #define uintmax_t $ac_type
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_UINTMAX_T 1
6963 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6964 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6965 if test "${gt_cv_header_inttypes_h+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 cat >conftest.$ac_ext <<_ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <inttypes.h>
6985 rm -f conftest.$ac_objext
6986 if { (ac_try="$ac_compile"
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 (eval "$ac_compile") 2>conftest.er1
6994 grep -v '^ *+' conftest.er1 >conftest.err
6996 cat conftest.err >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); } && {
6999 test -z "$ac_c_werror_flag" ||
7000 test ! -s conftest.err
7001 } && test -s conftest.$ac_objext; then
7002 gt_cv_header_inttypes_h=yes
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 gt_cv_header_inttypes_h=no
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7014 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7015 if test $gt_cv_header_inttypes_h = yes; then
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_INTTYPES_H 1
7025 if test $gt_cv_header_inttypes_h = yes; then
7026 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7027 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7028 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <inttypes.h>
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_compile") 2>conftest.er1
7060 grep -v '^ *+' conftest.er1 >conftest.err
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest.$ac_objext; then
7068 gt_cv_inttypes_pri_broken=no
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 gt_cv_inttypes_pri_broken=yes
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7080 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7082 if test "$gt_cv_inttypes_pri_broken" = yes; then
7084 cat >>confdefs.h <<_ACEOF
7085 #define PRI_MACROS_BROKEN 1
7092 for ac_header in stdint.h
7094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_res=`eval echo '${'$as_ac_Header'}'`
7102 { echo "$as_me:$LINENO: result: $ac_res" >&5
7103 echo "${ECHO_T}$ac_res" >&6; }
7105 # Is the header compilable?
7106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7108 cat >conftest.$ac_ext <<_ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7115 #include <$ac_header>
7117 rm -f conftest.$ac_objext
7118 if { (ac_try="$ac_compile"
7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121 *) ac_try_echo=$ac_try;;
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124 (eval "$ac_compile") 2>conftest.er1
7126 grep -v '^ *+' conftest.er1 >conftest.err
7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest.$ac_objext; then
7134 ac_header_compiler=yes
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 ac_header_compiler=no
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144 echo "${ECHO_T}$ac_header_compiler" >&6; }
7146 # Is the header present?
7147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7149 cat >conftest.$ac_ext <<_ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <$ac_header>
7157 if { (ac_try="$ac_cpp conftest.$ac_ext"
7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7165 grep -v '^ *+' conftest.er1 >conftest.err
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } >/dev/null && {
7170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7171 test ! -s conftest.err
7173 ac_header_preproc=yes
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7178 ac_header_preproc=no
7181 rm -f conftest.err conftest.$ac_ext
7182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7183 echo "${ECHO_T}$ac_header_preproc" >&6; }
7185 # So? What about this header?
7186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7192 ac_header_preproc=yes
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 eval "$as_ac_Header=\$ac_header_preproc"
7217 ac_res=`eval echo '${'$as_ac_Header'}'`
7218 { echo "$as_me:$LINENO: result: $ac_res" >&5
7219 echo "${ECHO_T}$ac_res" >&6; }
7222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7223 cat >>confdefs.h <<_ACEOF
7224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7232 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251 $EGREP "Found it" >/dev/null 2>&1; then
7256 if test -z "$result"; then
7257 if test "$cross_compiling" = yes; then
7258 # Depending upon the size, compute the lo and hi bounds.
7259 cat >conftest.$ac_ext <<_ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7269 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7276 rm -f conftest.$ac_objext
7277 if { (ac_try="$ac_compile"
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_compile") 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest.$ac_objext; then
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7305 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7312 rm -f conftest.$ac_objext
7313 if { (ac_try="$ac_compile"
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7321 grep -v '^ *+' conftest.er1 >conftest.err
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
7329 ac_hi=$ac_mid; break
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_lo=`expr $ac_mid + 1`
7335 if test $ac_lo -le $ac_mid; then
7339 ac_mid=`expr 2 '*' $ac_mid + 1`
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 cat >conftest.$ac_ext <<_ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7358 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7365 rm -f conftest.$ac_objext
7366 if { (ac_try="$ac_compile"
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7384 cat >conftest.$ac_ext <<_ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7394 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_compile") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
7418 ac_lo=$ac_mid; break
7420 echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7423 ac_hi=`expr '(' $ac_mid ')' - 1`
7424 if test $ac_mid -le $ac_hi; then
7428 ac_mid=`expr 2 '*' $ac_mid`
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 # Binary search between lo and hi bounds.
7445 while test "x$ac_lo" != "x$ac_hi"; do
7446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7457 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7464 rm -f conftest.$ac_objext
7465 if { (ac_try="$ac_compile"
7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468 *) ac_try_echo=$ac_try;;
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471 (eval "$ac_compile") 2>conftest.er1
7473 grep -v '^ *+' conftest.er1 >conftest.err
7475 cat conftest.err >&5
7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); } && {
7478 test -z "$ac_c_werror_flag" ||
7479 test ! -s conftest.err
7480 } && test -s conftest.$ac_objext; then
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_lo=`expr '(' $ac_mid ')' + 1`
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7503 static long int longval () { return ~(size_t)0 / 10; }
7504 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7511 FILE *f = fopen ("conftest.val", "w");
7514 if ((~(size_t)0 / 10) < 0)
7516 long int i = longval ();
7517 if (i != (~(size_t)0 / 10))
7519 fprintf (f, "%ld\n", i);
7523 unsigned long int i = ulongval ();
7524 if (i != (~(size_t)0 / 10))
7526 fprintf (f, "%lu\n", i);
7528 return ferror (f) || fclose (f) != 0;
7534 rm -f conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7545 { (case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_try") 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 res_hi=`cat conftest.val`
7556 echo "$as_me: program exited with status $ac_status" >&5
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7567 if test "$cross_compiling" = yes; then
7568 # Depending upon the size, compute the lo and hi bounds.
7569 cat >conftest.$ac_ext <<_ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7579 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7586 rm -f conftest.$ac_objext
7587 if { (ac_try="$ac_compile"
7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7590 *) ac_try_echo=$ac_try;;
7592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7593 (eval "$ac_compile") 2>conftest.er1
7595 grep -v '^ *+' conftest.er1 >conftest.err
7597 cat conftest.err >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } && {
7600 test -z "$ac_c_werror_flag" ||
7601 test ! -s conftest.err
7602 } && test -s conftest.$ac_objext; then
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7615 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1 >conftest.err
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 ac_hi=$ac_mid; break
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_lo=`expr $ac_mid + 1`
7645 if test $ac_lo -le $ac_mid; then
7649 ac_mid=`expr 2 '*' $ac_mid + 1`
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7668 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7694 cat >conftest.$ac_ext <<_ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7704 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_compile") 2>conftest.er1
7720 grep -v '^ *+' conftest.er1 >conftest.err
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest.$ac_objext; then
7728 ac_lo=$ac_mid; break
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7733 ac_hi=`expr '(' $ac_mid ')' - 1`
7734 if test $ac_mid -le $ac_hi; then
7738 ac_mid=`expr 2 '*' $ac_mid`
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 # Binary search between lo and hi bounds.
7755 while test "x$ac_lo" != "x$ac_hi"; do
7756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7767 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7783 grep -v '^ *+' conftest.er1 >conftest.err
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 ac_lo=`expr '(' $ac_mid ')' + 1`
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7813 static long int longval () { return ~(size_t)0 % 10; }
7814 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7821 FILE *f = fopen ("conftest.val", "w");
7824 if ((~(size_t)0 % 10) < 0)
7826 long int i = longval ();
7827 if (i != (~(size_t)0 % 10))
7829 fprintf (f, "%ld\n", i);
7833 unsigned long int i = ulongval ();
7834 if (i != (~(size_t)0 % 10))
7836 fprintf (f, "%lu\n", i);
7838 return ferror (f) || fclose (f) != 0;
7844 rm -f conftest$ac_exeext
7845 if { (ac_try="$ac_link"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_link") 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 res_lo=`cat conftest.val`
7866 echo "$as_me: program exited with status $ac_status" >&5
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7877 if test "$cross_compiling" = yes; then
7878 # Depending upon the size, compute the lo and hi bounds.
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7889 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7925 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7932 rm -f conftest.$ac_objext
7933 if { (ac_try="$ac_compile"
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_compile") 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest.$ac_objext; then
7949 ac_hi=$ac_mid; break
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 ac_lo=`expr $ac_mid + 1`
7955 if test $ac_lo -le $ac_mid; then
7959 ac_mid=`expr 2 '*' $ac_mid + 1`
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7978 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7994 grep -v '^ *+' conftest.er1 >conftest.err
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8014 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.$ac_objext; then
8038 ac_lo=$ac_mid; break
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_hi=`expr '(' $ac_mid ')' - 1`
8044 if test $ac_mid -le $ac_hi; then
8048 ac_mid=`expr 2 '*' $ac_mid`
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 # Binary search between lo and hi bounds.
8065 while test "x$ac_lo" != "x$ac_hi"; do
8066 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8077 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_lo=`expr '(' $ac_mid ')' + 1`
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 ?*) fits_in_uint=$ac_lo;;
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8123 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8124 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8131 FILE *f = fopen ("conftest.val", "w");
8134 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8136 long int i = longval ();
8137 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8139 fprintf (f, "%ld\n", i);
8143 unsigned long int i = ulongval ();
8144 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8146 fprintf (f, "%lu\n", i);
8148 return ferror (f) || fclose (f) != 0;
8154 rm -f conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 fits_in_uint=`cat conftest.val`
8176 echo "$as_me: program exited with status $ac_status" >&5
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8187 if test "$fits_in_uint" = 1; then
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8196 extern unsigned long foo;
8206 rm -f conftest.$ac_objext
8207 if { (ac_try="$ac_compile"
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_compile") 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest.$ac_objext; then
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 if test -z "$result"; then
8234 if test "$fits_in_uint" = 1; then
8235 result="$res_hi$res_lo"U
8237 result="$res_hi$res_lo"UL
8243 { echo "$as_me:$LINENO: result: $result" >&5
8244 echo "${ECHO_T}$result" >&6; }
8245 if test "$result" != yes; then
8247 cat >>confdefs.h <<_ACEOF
8248 #define SIZE_MAX $result
8256 for ac_header in stdint.h
8258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266 { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8269 # Is the header compilable?
8270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8272 cat >conftest.$ac_ext <<_ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 #include <$ac_header>
8281 rm -f conftest.$ac_objext
8282 if { (ac_try="$ac_compile"
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_compile") 2>conftest.er1
8290 grep -v '^ *+' conftest.er1 >conftest.err
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && {
8295 test -z "$ac_c_werror_flag" ||
8296 test ! -s conftest.err
8297 } && test -s conftest.$ac_objext; then
8298 ac_header_compiler=yes
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 ac_header_compiler=no
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308 echo "${ECHO_T}$ac_header_compiler" >&6; }
8310 # Is the header present?
8311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <$ac_header>
8321 if { (ac_try="$ac_cpp conftest.$ac_ext"
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } >/dev/null && {
8334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8337 ac_header_preproc=yes
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8342 ac_header_preproc=no
8345 rm -f conftest.err conftest.$ac_ext
8346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347 echo "${ECHO_T}$ac_header_preproc" >&6; }
8349 # So? What about this header?
8350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8356 ac_header_preproc=yes
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 eval "$as_ac_Header=\$ac_header_preproc"
8381 ac_res=`eval echo '${'$as_ac_Header'}'`
8382 { echo "$as_me:$LINENO: result: $ac_res" >&5
8383 echo "${ECHO_T}$ac_res" >&6; }
8386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8387 cat >>confdefs.h <<_ACEOF
8388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8397 if test "X$prefix" = "XNONE"; then
8398 acl_final_prefix="$ac_default_prefix"
8400 acl_final_prefix="$prefix"
8402 if test "X$exec_prefix" = "XNONE"; then
8403 acl_final_exec_prefix='${prefix}'
8405 acl_final_exec_prefix="$exec_prefix"
8407 acl_save_prefix="$prefix"
8408 prefix="$acl_final_prefix"
8409 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8410 prefix="$acl_save_prefix"
8413 # Check whether --with-gnu-ld was given.
8414 if test "${with_gnu_ld+set}" = set; then
8415 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8420 # Prepare PATH_SEPARATOR.
8421 # The user is always right.
8422 if test "${PATH_SEPARATOR+set}" != set; then
8423 echo "#! /bin/sh" >conf$$.sh
8424 echo "exit 0" >>conf$$.sh
8426 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8434 if test "$GCC" = yes; then
8435 # Check if gcc -print-prog-name=ld gives a path.
8436 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8437 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8440 # gcc leaves a trailing carriage return which upsets mingw
8441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8446 # Accept absolute paths.
8447 [\\/]* | [A-Za-z]:[\\/]*)
8448 re_direlt='/[^/][^/]*/\.\./'
8449 # Canonicalize the path of ld
8450 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8452 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8454 test -z "$LD" && LD="$ac_prog"
8457 # If it fails, then pretend we aren't using GCC.
8461 # If it is relative, then search for the first ld in PATH.
8465 elif test "$with_gnu_ld" = yes; then
8466 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8467 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8469 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8470 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8472 if test "${acl_cv_path_LD+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 if test -z "$LD"; then
8476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8477 for ac_dir in $PATH; do
8478 test -z "$ac_dir" && ac_dir=.
8479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8480 acl_cv_path_LD="$ac_dir/$ac_prog"
8481 # Check to see if the program is GNU ld. I'd rather use --version,
8482 # but apparently some GNU ld's only accept -v.
8483 # Break only if it was the GNU/non-GNU ld that we prefer.
8484 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8485 *GNU* | *'with BFD'*)
8486 test "$with_gnu_ld" != no && break ;;
8488 test "$with_gnu_ld" != yes && break ;;
8494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8498 LD="$acl_cv_path_LD"
8499 if test -n "$LD"; then
8500 { echo "$as_me:$LINENO: result: $LD" >&5
8501 echo "${ECHO_T}$LD" >&6; }
8503 { echo "$as_me:$LINENO: result: no" >&5
8504 echo "${ECHO_T}no" >&6; }
8506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8508 { (exit 1); exit 1; }; }
8509 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8512 echo $ECHO_N "(cached) $ECHO_C" >&6
8514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8515 case `$LD -v 2>&1 </dev/null` in
8516 *GNU* | *'with BFD'*)
8517 acl_cv_prog_gnu_ld=yes ;;
8519 acl_cv_prog_gnu_ld=no ;;
8522 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8523 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8524 with_gnu_ld=$acl_cv_prog_gnu_ld
8528 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8529 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8530 if test "${acl_cv_rpath+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8534 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8535 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8541 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8542 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8544 libext="$acl_cv_libext"
8545 shlibext="$acl_cv_shlibext"
8546 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8547 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8548 hardcode_direct="$acl_cv_hardcode_direct"
8549 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8550 # Check whether --enable-rpath was given.
8551 if test "${enable_rpath+set}" = set; then
8552 enableval=$enable_rpath; :
8566 acl_save_prefix="$prefix"
8567 prefix="$acl_final_prefix"
8568 acl_save_exec_prefix="$exec_prefix"
8569 exec_prefix="$acl_final_exec_prefix"
8571 eval additional_includedir=\"$includedir\"
8572 eval additional_libdir=\"$libdir\"
8574 exec_prefix="$acl_save_exec_prefix"
8575 prefix="$acl_save_prefix"
8578 # Check whether --with-libiconv-prefix was given.
8579 if test "${with_libiconv_prefix+set}" = set; then
8580 withval=$with_libiconv_prefix;
8581 if test "X$withval" = "Xno"; then
8584 if test "X$withval" = "X"; then
8586 acl_save_prefix="$prefix"
8587 prefix="$acl_final_prefix"
8588 acl_save_exec_prefix="$exec_prefix"
8589 exec_prefix="$acl_final_exec_prefix"
8591 eval additional_includedir=\"$includedir\"
8592 eval additional_libdir=\"$libdir\"
8594 exec_prefix="$acl_save_exec_prefix"
8595 prefix="$acl_save_prefix"
8598 additional_includedir="$withval/include"
8599 additional_libdir="$withval/lib"
8610 names_already_handled=
8611 names_next_round='iconv '
8612 while test -n "$names_next_round"; do
8613 names_this_round="$names_next_round"
8615 for name in $names_this_round; do
8617 for n in $names_already_handled; do
8618 if test "$n" = "$name"; then
8623 if test -z "$already_handled"; then
8624 names_already_handled="$names_already_handled $name"
8625 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8626 eval value=\"\$HAVE_LIB$uppername\"
8627 if test -n "$value"; then
8628 if test "$value" = yes; then
8629 eval value=\"\$LIB$uppername\"
8630 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8631 eval value=\"\$LTLIB$uppername\"
8632 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8641 if test $use_additional = yes; then
8642 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8643 found_dir="$additional_libdir"
8644 found_so="$additional_libdir/lib$name.$shlibext"
8645 if test -f "$additional_libdir/lib$name.la"; then
8646 found_la="$additional_libdir/lib$name.la"
8649 if test -f "$additional_libdir/lib$name.$libext"; then
8650 found_dir="$additional_libdir"
8651 found_a="$additional_libdir/lib$name.$libext"
8652 if test -f "$additional_libdir/lib$name.la"; then
8653 found_la="$additional_libdir/lib$name.la"
8658 if test "X$found_dir" = "X"; then
8659 for x in $LDFLAGS $LTLIBICONV; do
8661 acl_save_prefix="$prefix"
8662 prefix="$acl_final_prefix"
8663 acl_save_exec_prefix="$exec_prefix"
8664 exec_prefix="$acl_final_exec_prefix"
8666 exec_prefix="$acl_save_exec_prefix"
8667 prefix="$acl_save_prefix"
8671 dir=`echo "X$x" | sed -e 's/^X-L//'`
8672 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8674 found_so="$dir/lib$name.$shlibext"
8675 if test -f "$dir/lib$name.la"; then
8676 found_la="$dir/lib$name.la"
8679 if test -f "$dir/lib$name.$libext"; then
8681 found_a="$dir/lib$name.$libext"
8682 if test -f "$dir/lib$name.la"; then
8683 found_la="$dir/lib$name.la"
8689 if test "X$found_dir" != "X"; then
8694 if test "X$found_dir" != "X"; then
8695 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8696 if test "X$found_so" != "X"; then
8697 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8701 for x in $ltrpathdirs; do
8702 if test "X$x" = "X$found_dir"; then
8707 if test -z "$haveit"; then
8708 ltrpathdirs="$ltrpathdirs $found_dir"
8710 if test "$hardcode_direct" = yes; then
8711 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8713 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8714 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8716 for x in $rpathdirs; do
8717 if test "X$x" = "X$found_dir"; then
8722 if test -z "$haveit"; then
8723 rpathdirs="$rpathdirs $found_dir"
8727 for x in $LDFLAGS $LIBICONV; do
8729 acl_save_prefix="$prefix"
8730 prefix="$acl_final_prefix"
8731 acl_save_exec_prefix="$exec_prefix"
8732 exec_prefix="$acl_final_exec_prefix"
8734 exec_prefix="$acl_save_exec_prefix"
8735 prefix="$acl_save_prefix"
8737 if test "X$x" = "X-L$found_dir"; then
8742 if test -z "$haveit"; then
8743 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8745 if test "$hardcode_minus_L" != no; then
8746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8748 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8754 if test "X$found_a" != "X"; then
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8760 additional_includedir=
8761 case "$found_dir" in
8763 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8764 additional_includedir="$basedir/include"
8767 if test "X$additional_includedir" != "X"; then
8768 if test "X$additional_includedir" != "X/usr/include"; then
8770 if test "X$additional_includedir" = "X/usr/local/include"; then
8771 if test -n "$GCC"; then
8773 linux*) haveit=yes;;
8777 if test -z "$haveit"; then
8778 for x in $CPPFLAGS $INCICONV; do
8780 acl_save_prefix="$prefix"
8781 prefix="$acl_final_prefix"
8782 acl_save_exec_prefix="$exec_prefix"
8783 exec_prefix="$acl_final_exec_prefix"
8785 exec_prefix="$acl_save_exec_prefix"
8786 prefix="$acl_save_prefix"
8788 if test "X$x" = "X-I$additional_includedir"; then
8793 if test -z "$haveit"; then
8794 if test -d "$additional_includedir"; then
8795 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8801 if test -n "$found_la"; then
8802 save_libdir="$libdir"
8804 */* | *\\*) . "$found_la" ;;
8805 *) . "./$found_la" ;;
8807 libdir="$save_libdir"
8808 for dep in $dependency_libs; do
8811 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8812 if test "X$additional_libdir" != "X/usr/lib"; then
8814 if test "X$additional_libdir" = "X/usr/local/lib"; then
8815 if test -n "$GCC"; then
8817 linux*) haveit=yes;;
8821 if test -z "$haveit"; then
8823 for x in $LDFLAGS $LIBICONV; do
8825 acl_save_prefix="$prefix"
8826 prefix="$acl_final_prefix"
8827 acl_save_exec_prefix="$exec_prefix"
8828 exec_prefix="$acl_final_exec_prefix"
8830 exec_prefix="$acl_save_exec_prefix"
8831 prefix="$acl_save_prefix"
8833 if test "X$x" = "X-L$additional_libdir"; then
8838 if test -z "$haveit"; then
8839 if test -d "$additional_libdir"; then
8840 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8844 for x in $LDFLAGS $LTLIBICONV; do
8846 acl_save_prefix="$prefix"
8847 prefix="$acl_final_prefix"
8848 acl_save_exec_prefix="$exec_prefix"
8849 exec_prefix="$acl_final_exec_prefix"
8851 exec_prefix="$acl_save_exec_prefix"
8852 prefix="$acl_save_prefix"
8854 if test "X$x" = "X-L$additional_libdir"; then
8859 if test -z "$haveit"; then
8860 if test -d "$additional_libdir"; then
8861 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8868 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8869 if test "$enable_rpath" != no; then
8871 for x in $rpathdirs; do
8872 if test "X$x" = "X$dir"; then
8877 if test -z "$haveit"; then
8878 rpathdirs="$rpathdirs $dir"
8881 for x in $ltrpathdirs; do
8882 if test "X$x" = "X$dir"; then
8887 if test -z "$haveit"; then
8888 ltrpathdirs="$ltrpathdirs $dir"
8893 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8896 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8899 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8900 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8906 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8913 if test "X$rpathdirs" != "X"; then
8914 if test -n "$hardcode_libdir_separator"; then
8916 for found_dir in $rpathdirs; do
8917 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8919 acl_save_libdir="$libdir"
8921 eval flag=\"$hardcode_libdir_flag_spec\"
8922 libdir="$acl_save_libdir"
8923 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8925 for found_dir in $rpathdirs; do
8926 acl_save_libdir="$libdir"
8928 eval flag=\"$hardcode_libdir_flag_spec\"
8929 libdir="$acl_save_libdir"
8930 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8934 if test "X$ltrpathdirs" != "X"; then
8935 for found_dir in $ltrpathdirs; do
8936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8947 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8948 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8949 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 $ac_includes_default
8959 typedef ptrdiff_t ac__type_new_;
8963 if ((ac__type_new_ *) 0)
8965 if (sizeof (ac__type_new_))
8971 rm -f conftest.$ac_objext
8972 if { (ac_try="$ac_compile"
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_compile") 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest.$ac_objext; then
8988 ac_cv_type_ptrdiff_t=yes
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 ac_cv_type_ptrdiff_t=no
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8998 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8999 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9000 if test $ac_cv_type_ptrdiff_t = yes; then
9004 cat >>confdefs.h <<\_ACEOF
9005 #define ptrdiff_t long
9021 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9022 stdlib.h string.h unistd.h sys/param.h
9024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 ac_res=`eval echo '${'$as_ac_Header'}'`
9032 { echo "$as_me:$LINENO: result: $ac_res" >&5
9033 echo "${ECHO_T}$ac_res" >&6; }
9035 # Is the header compilable?
9036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9038 cat >conftest.$ac_ext <<_ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 $ac_includes_default
9045 #include <$ac_header>
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_compile") 2>conftest.er1
9056 grep -v '^ *+' conftest.er1 >conftest.err
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } && {
9061 test -z "$ac_c_werror_flag" ||
9062 test ! -s conftest.err
9063 } && test -s conftest.$ac_objext; then
9064 ac_header_compiler=yes
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 ac_header_compiler=no
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9074 echo "${ECHO_T}$ac_header_compiler" >&6; }
9076 # Is the header present?
9077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 #include <$ac_header>
9087 if { (ac_try="$ac_cpp conftest.$ac_ext"
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9095 grep -v '^ *+' conftest.er1 >conftest.err
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } >/dev/null && {
9100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9103 ac_header_preproc=yes
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9108 ac_header_preproc=no
9111 rm -f conftest.err conftest.$ac_ext
9112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9113 echo "${ECHO_T}$ac_header_preproc" >&6; }
9115 # So? What about this header?
9116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9122 ac_header_preproc=yes
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 eval "$as_ac_Header=\$ac_header_preproc"
9147 ac_res=`eval echo '${'$as_ac_Header'}'`
9148 { echo "$as_me:$LINENO: result: $ac_res" >&5
9149 echo "${ECHO_T}$ac_res" >&6; }
9152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9153 cat >>confdefs.h <<_ACEOF
9154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9185 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9186 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9203 #define $ac_func innocuous_$ac_func
9205 /* System header to define __stub macros and hopefully few prototypes,
9206 which can conflict with char $ac_func (); below.
9207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9208 <limits.h> exists even on freestanding compilers. */
9211 # include <limits.h>
9213 # include <assert.h>
9218 /* Override any GCC internal prototype to avoid an error.
9219 Use char because int might match the return type of a GCC
9220 builtin and then its argument prototype would still apply. */
9225 /* The GNU C library defines this for functions which it implements
9226 to always fail with ENOSYS. Some functions are actually named
9227 something starting with __ and the normal name is an alias. */
9228 #if defined __stub_$ac_func || defined __stub___$ac_func
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest$ac_exeext &&
9257 $as_test_x conftest$ac_exeext; then
9258 eval "$as_ac_var=yes"
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9263 eval "$as_ac_var=no"
9266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9267 conftest$ac_exeext conftest.$ac_ext
9269 ac_res=`eval echo '${'$as_ac_var'}'`
9270 { echo "$as_me:$LINENO: result: $ac_res" >&5
9271 echo "${ECHO_T}$ac_res" >&6; }
9272 if test `eval echo '${'$as_ac_var'}'` = yes; then
9273 cat >>confdefs.h <<_ACEOF
9274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9282 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9283 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9284 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9287 cat >conftest.$ac_ext <<_ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9299 char *p = (char *) _snprintf;
9306 rm -f conftest.$ac_objext
9307 if { (ac_try="$ac_compile"
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_compile") 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } && {
9320 test -z "$ac_c_werror_flag" ||
9321 test ! -s conftest.err
9322 } && test -s conftest.$ac_objext; then
9323 ac_cv_have_decl__snprintf=yes
9325 echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9328 ac_cv_have_decl__snprintf=no
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9334 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9335 if test $ac_cv_have_decl__snprintf = yes; then
9341 cat >>confdefs.h <<_ACEOF
9342 #define HAVE_DECL__SNPRINTF $gt_value
9347 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9348 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9349 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9364 char *p = (char *) _snwprintf;
9371 rm -f conftest.$ac_objext
9372 if { (ac_try="$ac_compile"
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.$ac_objext; then
9388 ac_cv_have_decl__snwprintf=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_cv_have_decl__snwprintf=no
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9398 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9399 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9400 if test $ac_cv_have_decl__snwprintf = yes; then
9406 cat >>confdefs.h <<_ACEOF
9407 #define HAVE_DECL__SNWPRINTF $gt_value
9413 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9414 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9415 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9429 #ifndef feof_unlocked
9430 char *p = (char *) feof_unlocked;
9437 rm -f conftest.$ac_objext
9438 if { (ac_try="$ac_compile"
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_compile") 2>conftest.er1
9446 grep -v '^ *+' conftest.er1 >conftest.err
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_c_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
9454 ac_cv_have_decl_feof_unlocked=yes
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_cv_have_decl_feof_unlocked=no
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9465 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9466 if test $ac_cv_have_decl_feof_unlocked = yes; then
9472 cat >>confdefs.h <<_ACEOF
9473 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9478 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9479 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9480 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 cat >conftest.$ac_ext <<_ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9494 #ifndef fgets_unlocked
9495 char *p = (char *) fgets_unlocked;
9502 rm -f conftest.$ac_objext
9503 if { (ac_try="$ac_compile"
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest.$ac_objext; then
9519 ac_cv_have_decl_fgets_unlocked=yes
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9524 ac_cv_have_decl_fgets_unlocked=no
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9529 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9530 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9531 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9543 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9544 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9545 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9559 #ifndef getc_unlocked
9560 char *p = (char *) getc_unlocked;
9567 rm -f conftest.$ac_objext
9568 if { (ac_try="$ac_compile"
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.$ac_objext; then
9584 ac_cv_have_decl_getc_unlocked=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 ac_cv_have_decl_getc_unlocked=no
9592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9595 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9596 if test $ac_cv_have_decl_getc_unlocked = yes; then
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9608 case $gt_cv_func_printf_posix in
9609 *yes) HAVE_POSIX_PRINTF=1 ;;
9610 *) HAVE_POSIX_PRINTF=0 ;;
9613 if test "$ac_cv_func_asprintf" = yes; then
9619 if test "$ac_cv_func_snprintf" = yes; then
9625 if test "$ac_cv_func_wprintf" = yes; then
9637 am_save_CPPFLAGS="$CPPFLAGS"
9639 for element in $INCICONV; do
9641 for x in $CPPFLAGS; do
9643 acl_save_prefix="$prefix"
9644 prefix="$acl_final_prefix"
9645 acl_save_exec_prefix="$exec_prefix"
9646 exec_prefix="$acl_final_exec_prefix"
9648 exec_prefix="$acl_save_exec_prefix"
9649 prefix="$acl_save_prefix"
9651 if test "X$x" = "X$element"; then
9656 if test -z "$haveit"; then
9657 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9662 { echo "$as_me:$LINENO: checking for iconv" >&5
9663 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9664 if test "${am_cv_func_iconv+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 am_cv_func_iconv="no, consider installing GNU libiconv"
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9681 iconv_t cd = iconv_open("","");
9682 iconv(cd,NULL,NULL,NULL,NULL);
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } && {
9702 test -z "$ac_c_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest$ac_exeext &&
9705 $as_test_x conftest$ac_exeext; then
9706 am_cv_func_iconv=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715 conftest$ac_exeext conftest.$ac_ext
9716 if test "$am_cv_func_iconv" != yes; then
9717 am_save_LIBS="$LIBS"
9718 LIBS="$LIBS $LIBICONV"
9719 cat >conftest.$ac_ext <<_ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9730 iconv_t cd = iconv_open("","");
9731 iconv(cd,NULL,NULL,NULL,NULL);
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
9756 am_cv_func_iconv=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS="$am_save_LIBS"
9770 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9771 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9772 if test "$am_cv_func_iconv" = yes; then
9774 cat >>confdefs.h <<\_ACEOF
9775 #define HAVE_ICONV 1
9779 if test "$am_cv_lib_iconv" = yes; then
9780 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9781 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9782 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9783 echo "${ECHO_T}$LIBICONV" >&6; }
9785 CPPFLAGS="$am_save_CPPFLAGS"
9792 if test "$am_cv_func_iconv" = yes; then
9793 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9794 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9795 if test "${am_cv_proto_iconv+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9812 #if defined(__STDC__) || defined(__cplusplus)
9813 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9826 rm -f conftest.$ac_objext
9827 if { (ac_try="$ac_compile"
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9843 am_cv_proto_iconv_arg1=""
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 am_cv_proto_iconv_arg1="const"
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 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);"
9855 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9856 { echo "$as_me:$LINENO: result: ${ac_t:-
9857 }$am_cv_proto_iconv" >&5
9858 echo "${ECHO_T}${ac_t:-
9859 }$am_cv_proto_iconv" >&6; }
9861 cat >>confdefs.h <<_ACEOF
9862 #define ICONV_CONST $am_cv_proto_iconv_arg1
9868 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9869 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9870 if test "${am_cv_langinfo_codeset+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 #include <langinfo.h>
9883 char* cs = nl_langinfo(CODESET);
9888 rm -f conftest.$ac_objext conftest$ac_exeext
9889 if { (ac_try="$ac_link"
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext &&
9905 $as_test_x conftest$ac_exeext; then
9906 am_cv_langinfo_codeset=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 am_cv_langinfo_codeset=no
9914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915 conftest$ac_exeext conftest.$ac_ext
9918 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9919 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9920 if test $am_cv_langinfo_codeset = yes; then
9922 cat >>confdefs.h <<\_ACEOF
9923 #define HAVE_LANGINFO_CODESET 1
9928 if test $ac_cv_header_locale_h = yes; then
9930 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9931 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9932 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
9968 am_cv_val_LC_MESSAGES=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 am_cv_val_LC_MESSAGES=no
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9980 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9981 if test $am_cv_val_LC_MESSAGES = yes; then
9983 cat >>confdefs.h <<\_ACEOF
9984 #define HAVE_LC_MESSAGES 1
9991 for ac_prog in bison
9993 # Extract the first word of "$ac_prog", so it can be a program name with args.
9994 set dummy $ac_prog; ac_word=$2
9995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9997 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 if test -n "$INTLBISON"; then
10001 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_prog_INTLBISON="$ac_prog"
10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 INTLBISON=$ac_cv_prog_INTLBISON
10021 if test -n "$INTLBISON"; then
10022 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10023 echo "${ECHO_T}$INTLBISON" >&6; }
10025 { echo "$as_me:$LINENO: result: no" >&5
10026 echo "${ECHO_T}no" >&6; }
10030 test -n "$INTLBISON" && break
10033 if test -z "$INTLBISON"; then
10036 { echo "$as_me:$LINENO: checking version of bison" >&5
10037 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10038 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10039 case $ac_prog_version in
10040 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10041 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10042 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10043 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10045 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10046 echo "${ECHO_T}$ac_prog_version" >&6; }
10048 if test $ac_verc_fail = yes; then
10067 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10068 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10069 # Check whether --enable-nls was given.
10070 if test "${enable_nls+set}" = set; then
10071 enableval=$enable_nls; USE_NLS=$enableval
10076 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10077 echo "${ECHO_T}$USE_NLS" >&6; }
10082 BUILD_INCLUDED_LIBINTL=no
10083 USE_INCLUDED_LIBINTL=no
10089 if test "$USE_NLS" = "yes"; then
10090 gt_use_preinstalled_gnugettext=no
10092 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10093 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10095 # Check whether --with-included-gettext was given.
10096 if test "${with_included_gettext+set}" = set; then
10097 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10099 nls_cv_force_use_gnu_gettext=no
10102 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10103 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10105 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10106 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10113 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10114 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10115 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <libintl.h>
10125 extern int _nl_msg_cat_cntr;
10126 extern int *_nl_domain_bindings;
10130 bindtextdomain ("", "");
10131 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (ac_try="$ac_link"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_link") 2>conftest.er1
10145 grep -v '^ *+' conftest.er1 >conftest.err
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } && {
10150 test -z "$ac_c_werror_flag" ||
10151 test ! -s conftest.err
10152 } && test -s conftest$ac_exeext &&
10153 $as_test_x conftest$ac_exeext; then
10154 gt_cv_func_gnugettext1_libc=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 gt_cv_func_gnugettext1_libc=no
10162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10163 conftest$ac_exeext conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10166 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10168 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10174 acl_save_prefix="$prefix"
10175 prefix="$acl_final_prefix"
10176 acl_save_exec_prefix="$exec_prefix"
10177 exec_prefix="$acl_final_exec_prefix"
10179 eval additional_includedir=\"$includedir\"
10180 eval additional_libdir=\"$libdir\"
10182 exec_prefix="$acl_save_exec_prefix"
10183 prefix="$acl_save_prefix"
10186 # Check whether --with-libintl-prefix was given.
10187 if test "${with_libintl_prefix+set}" = set; then
10188 withval=$with_libintl_prefix;
10189 if test "X$withval" = "Xno"; then
10192 if test "X$withval" = "X"; then
10194 acl_save_prefix="$prefix"
10195 prefix="$acl_final_prefix"
10196 acl_save_exec_prefix="$exec_prefix"
10197 exec_prefix="$acl_final_exec_prefix"
10199 eval additional_includedir=\"$includedir\"
10200 eval additional_libdir=\"$libdir\"
10202 exec_prefix="$acl_save_exec_prefix"
10203 prefix="$acl_save_prefix"
10206 additional_includedir="$withval/include"
10207 additional_libdir="$withval/lib"
10218 names_already_handled=
10219 names_next_round='intl '
10220 while test -n "$names_next_round"; do
10221 names_this_round="$names_next_round"
10223 for name in $names_this_round; do
10225 for n in $names_already_handled; do
10226 if test "$n" = "$name"; then
10227 already_handled=yes
10231 if test -z "$already_handled"; then
10232 names_already_handled="$names_already_handled $name"
10233 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10234 eval value=\"\$HAVE_LIB$uppername\"
10235 if test -n "$value"; then
10236 if test "$value" = yes; then
10237 eval value=\"\$LIB$uppername\"
10238 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10239 eval value=\"\$LTLIB$uppername\"
10240 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10249 if test $use_additional = yes; then
10250 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10251 found_dir="$additional_libdir"
10252 found_so="$additional_libdir/lib$name.$shlibext"
10253 if test -f "$additional_libdir/lib$name.la"; then
10254 found_la="$additional_libdir/lib$name.la"
10257 if test -f "$additional_libdir/lib$name.$libext"; then
10258 found_dir="$additional_libdir"
10259 found_a="$additional_libdir/lib$name.$libext"
10260 if test -f "$additional_libdir/lib$name.la"; then
10261 found_la="$additional_libdir/lib$name.la"
10266 if test "X$found_dir" = "X"; then
10267 for x in $LDFLAGS $LTLIBINTL; do
10269 acl_save_prefix="$prefix"
10270 prefix="$acl_final_prefix"
10271 acl_save_exec_prefix="$exec_prefix"
10272 exec_prefix="$acl_final_exec_prefix"
10274 exec_prefix="$acl_save_exec_prefix"
10275 prefix="$acl_save_prefix"
10279 dir=`echo "X$x" | sed -e 's/^X-L//'`
10280 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10282 found_so="$dir/lib$name.$shlibext"
10283 if test -f "$dir/lib$name.la"; then
10284 found_la="$dir/lib$name.la"
10287 if test -f "$dir/lib$name.$libext"; then
10289 found_a="$dir/lib$name.$libext"
10290 if test -f "$dir/lib$name.la"; then
10291 found_la="$dir/lib$name.la"
10297 if test "X$found_dir" != "X"; then
10302 if test "X$found_dir" != "X"; then
10303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10304 if test "X$found_so" != "X"; then
10305 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10309 for x in $ltrpathdirs; do
10310 if test "X$x" = "X$found_dir"; then
10315 if test -z "$haveit"; then
10316 ltrpathdirs="$ltrpathdirs $found_dir"
10318 if test "$hardcode_direct" = yes; then
10319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10321 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10322 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10324 for x in $rpathdirs; do
10325 if test "X$x" = "X$found_dir"; then
10330 if test -z "$haveit"; then
10331 rpathdirs="$rpathdirs $found_dir"
10335 for x in $LDFLAGS $LIBINTL; do
10337 acl_save_prefix="$prefix"
10338 prefix="$acl_final_prefix"
10339 acl_save_exec_prefix="$exec_prefix"
10340 exec_prefix="$acl_final_exec_prefix"
10342 exec_prefix="$acl_save_exec_prefix"
10343 prefix="$acl_save_prefix"
10345 if test "X$x" = "X-L$found_dir"; then
10350 if test -z "$haveit"; then
10351 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10353 if test "$hardcode_minus_L" != no; then
10354 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10356 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10362 if test "X$found_a" != "X"; then
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10365 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10368 additional_includedir=
10369 case "$found_dir" in
10371 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10372 additional_includedir="$basedir/include"
10375 if test "X$additional_includedir" != "X"; then
10376 if test "X$additional_includedir" != "X/usr/include"; then
10378 if test "X$additional_includedir" = "X/usr/local/include"; then
10379 if test -n "$GCC"; then
10381 linux*) haveit=yes;;
10385 if test -z "$haveit"; then
10386 for x in $CPPFLAGS $INCINTL; do
10388 acl_save_prefix="$prefix"
10389 prefix="$acl_final_prefix"
10390 acl_save_exec_prefix="$exec_prefix"
10391 exec_prefix="$acl_final_exec_prefix"
10393 exec_prefix="$acl_save_exec_prefix"
10394 prefix="$acl_save_prefix"
10396 if test "X$x" = "X-I$additional_includedir"; then
10401 if test -z "$haveit"; then
10402 if test -d "$additional_includedir"; then
10403 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10409 if test -n "$found_la"; then
10410 save_libdir="$libdir"
10411 case "$found_la" in
10412 */* | *\\*) . "$found_la" ;;
10413 *) . "./$found_la" ;;
10415 libdir="$save_libdir"
10416 for dep in $dependency_libs; do
10419 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10420 if test "X$additional_libdir" != "X/usr/lib"; then
10422 if test "X$additional_libdir" = "X/usr/local/lib"; then
10423 if test -n "$GCC"; then
10425 linux*) haveit=yes;;
10429 if test -z "$haveit"; then
10431 for x in $LDFLAGS $LIBINTL; do
10433 acl_save_prefix="$prefix"
10434 prefix="$acl_final_prefix"
10435 acl_save_exec_prefix="$exec_prefix"
10436 exec_prefix="$acl_final_exec_prefix"
10438 exec_prefix="$acl_save_exec_prefix"
10439 prefix="$acl_save_prefix"
10441 if test "X$x" = "X-L$additional_libdir"; then
10446 if test -z "$haveit"; then
10447 if test -d "$additional_libdir"; then
10448 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10452 for x in $LDFLAGS $LTLIBINTL; do
10454 acl_save_prefix="$prefix"
10455 prefix="$acl_final_prefix"
10456 acl_save_exec_prefix="$exec_prefix"
10457 exec_prefix="$acl_final_exec_prefix"
10459 exec_prefix="$acl_save_exec_prefix"
10460 prefix="$acl_save_prefix"
10462 if test "X$x" = "X-L$additional_libdir"; then
10467 if test -z "$haveit"; then
10468 if test -d "$additional_libdir"; then
10469 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10476 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10477 if test "$enable_rpath" != no; then
10479 for x in $rpathdirs; do
10480 if test "X$x" = "X$dir"; then
10485 if test -z "$haveit"; then
10486 rpathdirs="$rpathdirs $dir"
10489 for x in $ltrpathdirs; do
10490 if test "X$x" = "X$dir"; then
10495 if test -z "$haveit"; then
10496 ltrpathdirs="$ltrpathdirs $dir"
10501 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10504 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10507 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10508 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10514 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10521 if test "X$rpathdirs" != "X"; then
10522 if test -n "$hardcode_libdir_separator"; then
10524 for found_dir in $rpathdirs; do
10525 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10527 acl_save_libdir="$libdir"
10529 eval flag=\"$hardcode_libdir_flag_spec\"
10530 libdir="$acl_save_libdir"
10531 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10533 for found_dir in $rpathdirs; do
10534 acl_save_libdir="$libdir"
10535 libdir="$found_dir"
10536 eval flag=\"$hardcode_libdir_flag_spec\"
10537 libdir="$acl_save_libdir"
10538 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10542 if test "X$ltrpathdirs" != "X"; then
10543 for found_dir in $ltrpathdirs; do
10544 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10548 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10549 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10550 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 gt_save_CPPFLAGS="$CPPFLAGS"
10554 CPPFLAGS="$CPPFLAGS $INCINTL"
10555 gt_save_LIBS="$LIBS"
10556 LIBS="$LIBS $LIBINTL"
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <libintl.h>
10564 extern int _nl_msg_cat_cntr;
10569 const char *_nl_expand_alias ();
10573 bindtextdomain ("", "");
10574 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (ac_try="$ac_link"
10581 case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_link") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest$ac_exeext &&
10596 $as_test_x conftest$ac_exeext; then
10597 gt_cv_func_gnugettext1_libintl=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 gt_cv_func_gnugettext1_libintl=no
10605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10606 conftest$ac_exeext conftest.$ac_ext
10607 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10608 LIBS="$LIBS $LIBICONV"
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #include <libintl.h>
10616 extern int _nl_msg_cat_cntr;
10621 const char *_nl_expand_alias ();
10625 bindtextdomain ("", "");
10626 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10649 LIBINTL="$LIBINTL $LIBICONV"
10650 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10651 gt_cv_func_gnugettext1_libintl=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10661 conftest$ac_exeext conftest.$ac_ext
10663 CPPFLAGS="$gt_save_CPPFLAGS"
10664 LIBS="$gt_save_LIBS"
10666 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10667 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10670 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10671 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10672 && test "$PACKAGE" != gettext-runtime \
10673 && test "$PACKAGE" != gettext-tools; }; then
10674 gt_use_preinstalled_gnugettext=yes
10682 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10683 nls_cv_use_gnu_gettext=yes
10687 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10688 BUILD_INCLUDED_LIBINTL=yes
10689 USE_INCLUDED_LIBINTL=yes
10690 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10691 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10692 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10695 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10696 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10701 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10702 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10704 cat >>confdefs.h <<\_ACEOF
10705 #define ENABLE_NLS 1
10713 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10714 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10715 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10716 echo "${ECHO_T}$USE_NLS" >&6; }
10717 if test "$USE_NLS" = "yes"; then
10718 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10719 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10720 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10721 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10722 gt_source="external libintl"
10727 gt_source="included intl directory"
10729 { echo "$as_me:$LINENO: result: $gt_source" >&5
10730 echo "${ECHO_T}$gt_source" >&6; }
10733 if test "$USE_NLS" = "yes"; then
10735 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10736 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10737 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10738 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10739 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10740 echo "${ECHO_T}$LIBINTL" >&6; }
10742 for element in $INCINTL; do
10744 for x in $CPPFLAGS; do
10746 acl_save_prefix="$prefix"
10747 prefix="$acl_final_prefix"
10748 acl_save_exec_prefix="$exec_prefix"
10749 exec_prefix="$acl_final_exec_prefix"
10751 exec_prefix="$acl_save_exec_prefix"
10752 prefix="$acl_save_prefix"
10754 if test "X$x" = "X$element"; then
10759 if test -z "$haveit"; then
10760 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10767 cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_GETTEXT 1
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_DCGETTEXT 1
10782 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10783 BUILD_INCLUDED_LIBINTL=yes
10790 nls_cv_header_intl=
10791 nls_cv_header_libgt=
10802 if test "$USE_INCLUDED_LIBINTL" = yes; then
10803 INTLOBJS="\$(GETTOBJS)"
10807 INTL_LIBTOOL_SUFFIX_PREFIX=
10811 INTLLIBS="$LIBINTL"
10819 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10820 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10821 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10822 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 cat >conftest.make <<\_ACEOF
10828 @echo '@@@%%%=$(MAKE)=@@@%%%'
10830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10831 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10832 *@@@%%%=?*=@@@%%%*)
10833 eval ac_cv_prog_make_${ac_make}_set=yes;;
10835 eval ac_cv_prog_make_${ac_make}_set=no;;
10837 rm -f conftest.make
10839 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10840 { echo "$as_me:$LINENO: result: yes" >&5
10841 echo "${ECHO_T}yes" >&6; }
10844 { echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6; }
10846 SET_MAKE="MAKE=${MAKE-make}"
10849 # Extract the first word of "ln", so it can be a program name with args.
10850 set dummy ln; ac_word=$2
10851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10853 if test "${ac_cv_path_LN+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10868 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10881 if test -n "$LN"; then
10882 { echo "$as_me:$LINENO: result: $LN" >&5
10883 echo "${ECHO_T}$LN" >&6; }
10885 { echo "$as_me:$LINENO: result: no" >&5
10886 echo "${ECHO_T}no" >&6; }
10890 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10891 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10893 if test "$LN_S" = "ln -s"; then
10894 { echo "$as_me:$LINENO: result: yes" >&5
10895 echo "${ECHO_T}yes" >&6; }
10897 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10898 echo "${ECHO_T}no, using $LN_S" >&6; }
10901 # Extract the first word of "mv", so it can be a program name with args.
10902 set dummy mv; ac_word=$2
10903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10905 if test "${ac_cv_path_MV+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914 for as_dir in $PATH
10917 test -z "$as_dir" && as_dir=.
10918 for ac_exec_ext in '' $ac_executable_extensions; do
10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10920 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10928 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10933 if test -n "$MV"; then
10934 { echo "$as_me:$LINENO: result: $MV" >&5
10935 echo "${ECHO_T}$MV" >&6; }
10937 { echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6; }
10942 # Extract the first word of "cp", so it can be a program name with args.
10943 set dummy cp; ac_word=$2
10944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10946 if test "${ac_cv_path_CP+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10974 if test -n "$CP"; then
10975 { echo "$as_me:$LINENO: result: $CP" >&5
10976 echo "${ECHO_T}$CP" >&6; }
10978 { echo "$as_me:$LINENO: result: no" >&5
10979 echo "${ECHO_T}no" >&6; }
10983 # Extract the first word of "rm", so it can be a program name with args.
10984 set dummy rm; ac_word=$2
10985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10987 if test "${ac_cv_path_RM+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11002 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11015 if test -n "$RM"; then
11016 { echo "$as_me:$LINENO: result: $RM" >&5
11017 echo "${ECHO_T}$RM" >&6; }
11019 { echo "$as_me:$LINENO: result: no" >&5
11020 echo "${ECHO_T}no" >&6; }
11024 # Extract the first word of "chmod", so it can be a program name with args.
11025 set dummy chmod; ac_word=$2
11026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11028 if test "${ac_cv_path_CHMOD+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11037 for as_dir in $PATH
11040 test -z "$as_dir" && as_dir=.
11041 for ac_exec_ext in '' $ac_executable_extensions; do
11042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11043 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11051 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11055 CHMOD=$ac_cv_path_CHMOD
11056 if test -n "$CHMOD"; then
11057 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11058 echo "${ECHO_T}$CHMOD" >&6; }
11060 { echo "$as_me:$LINENO: result: no" >&5
11061 echo "${ECHO_T}no" >&6; }
11065 for ac_prog in gawk mawk nawk awk
11067 # Extract the first word of "$ac_prog", so it can be a program name with args.
11068 set dummy $ac_prog; ac_word=$2
11069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11071 if test "${ac_cv_prog_AWK+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 if test -n "$AWK"; then
11075 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11078 for as_dir in $PATH
11081 test -z "$as_dir" && as_dir=.
11082 for ac_exec_ext in '' $ac_executable_extensions; do
11083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11084 ac_cv_prog_AWK="$ac_prog"
11085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 AWK=$ac_cv_prog_AWK
11095 if test -n "$AWK"; then
11096 { echo "$as_me:$LINENO: result: $AWK" >&5
11097 echo "${ECHO_T}$AWK" >&6; }
11099 { echo "$as_me:$LINENO: result: no" >&5
11100 echo "${ECHO_T}no" >&6; }
11104 test -n "$AWK" && break
11107 { echo "$as_me:$LINENO: checking for egrep" >&5
11108 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11109 if test "${ac_cv_path_EGREP+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11113 then ac_cv_path_EGREP="$GREP -E"
11115 # Extract the first word of "egrep" to use in msg output
11116 if test -z "$EGREP"; then
11117 set dummy egrep; ac_prog_name=$2
11118 if test "${ac_cv_path_EGREP+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 ac_path_EGREP_found=false
11122 # Loop through the user's path and test for each of PROGNAME-LIST
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11127 test -z "$as_dir" && as_dir=.
11128 for ac_prog in egrep; do
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11131 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11132 # Check for GNU ac_path_EGREP and select it if it is found.
11133 # Check for GNU $ac_path_EGREP
11134 case `"$ac_path_EGREP" --version 2>&1` in
11136 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11139 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11142 cat "conftest.in" "conftest.in" >"conftest.tmp"
11143 mv "conftest.tmp" "conftest.in"
11144 cp "conftest.in" "conftest.nl"
11145 echo 'EGREP' >> "conftest.nl"
11146 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11148 ac_count=`expr $ac_count + 1`
11149 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11150 # Best one so far, save it but keep looking for a better one
11151 ac_cv_path_EGREP="$ac_path_EGREP"
11152 ac_path_EGREP_max=$ac_count
11154 # 10*(2^10) chars as input seems more than enough
11155 test $ac_count -gt 10 && break
11157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11161 $ac_path_EGREP_found && break 3
11171 EGREP="$ac_cv_path_EGREP"
11172 if test -z "$EGREP"; then
11173 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11174 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11175 { (exit 1); exit 1; }; }
11179 ac_cv_path_EGREP=$EGREP
11185 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11186 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11187 EGREP="$ac_cv_path_EGREP"
11190 # Extract the first word of "sed", so it can be a program name with args.
11191 set dummy sed; ac_word=$2
11192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11194 if test "${ac_cv_path_SED+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11221 SED=$ac_cv_path_SED
11222 if test -n "$SED"; then
11223 { echo "$as_me:$LINENO: result: $SED" >&5
11224 echo "${ECHO_T}$SED" >&6; }
11226 { echo "$as_me:$LINENO: result: no" >&5
11227 echo "${ECHO_T}no" >&6; }
11231 # Extract the first word of "perl", so it can be a program name with args.
11232 set dummy perl; ac_word=$2
11233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11235 if test "${ac_cv_path_PERL+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in $PATH
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
11249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11250 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11258 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11262 PERL=$ac_cv_path_PERL
11263 if test -n "$PERL"; then
11264 { echo "$as_me:$LINENO: result: $PERL" >&5
11265 echo "${ECHO_T}$PERL" >&6; }
11267 { echo "$as_me:$LINENO: result: no" >&5
11268 echo "${ECHO_T}no" >&6; }
11272 # Extract the first word of "ldconfig", so it can be a program name with args.
11273 set dummy ldconfig; ac_word=$2
11274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11276 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11303 LDCONFIG=$ac_cv_path_LDCONFIG
11304 if test -n "$LDCONFIG"; then
11305 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11306 echo "${ECHO_T}$LDCONFIG" >&6; }
11308 { echo "$as_me:$LINENO: result: no" >&5
11309 echo "${ECHO_T}no" >&6; }
11313 if test -n "$ac_tool_prefix"; then
11314 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11315 set dummy ${ac_tool_prefix}ar; ac_word=$2
11316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11318 if test "${ac_cv_prog_AR+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 if test -n "$AR"; then
11322 ac_cv_prog_AR="$AR" # Let the user override the test.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331 ac_cv_prog_AR="${ac_tool_prefix}ar"
11332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11342 if test -n "$AR"; then
11343 { echo "$as_me:$LINENO: result: $AR" >&5
11344 echo "${ECHO_T}$AR" >&6; }
11346 { echo "$as_me:$LINENO: result: no" >&5
11347 echo "${ECHO_T}no" >&6; }
11352 if test -z "$ac_cv_prog_AR"; then
11354 # Extract the first word of "ar", so it can be a program name with args.
11355 set dummy ar; ac_word=$2
11356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11358 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 if test -n "$ac_ct_AR"; then
11362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11365 for as_dir in $PATH
11368 test -z "$as_dir" && as_dir=.
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11371 ac_cv_prog_ac_ct_AR="ar"
11372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11382 if test -n "$ac_ct_AR"; then
11383 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11384 echo "${ECHO_T}$ac_ct_AR" >&6; }
11386 { echo "$as_me:$LINENO: result: no" >&5
11387 echo "${ECHO_T}no" >&6; }
11390 if test "x$ac_ct_AR" = x; then
11393 case $cross_compiling:$ac_tool_warned in
11395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11396 whose name does not start with the host triplet. If you think this
11397 configuration is useful to you, please write to autoconf@gnu.org." >&5
11398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11399 whose name does not start with the host triplet. If you think this
11400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11401 ac_tool_warned=yes ;;
11406 AR="$ac_cv_prog_AR"
11409 if test -n "$ac_tool_prefix"; then
11410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11414 if test "${ac_cv_prog_RANLIB+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 if test -n "$RANLIB"; then
11418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 RANLIB=$ac_cv_prog_RANLIB
11438 if test -n "$RANLIB"; then
11439 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11440 echo "${ECHO_T}$RANLIB" >&6; }
11442 { echo "$as_me:$LINENO: result: no" >&5
11443 echo "${ECHO_T}no" >&6; }
11448 if test -z "$ac_cv_prog_RANLIB"; then
11449 ac_ct_RANLIB=$RANLIB
11450 # Extract the first word of "ranlib", so it can be a program name with args.
11451 set dummy ranlib; ac_word=$2
11452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 if test -n "$ac_ct_RANLIB"; then
11458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11467 ac_cv_prog_ac_ct_RANLIB="ranlib"
11468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11478 if test -n "$ac_ct_RANLIB"; then
11479 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11480 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11482 { echo "$as_me:$LINENO: result: no" >&5
11483 echo "${ECHO_T}no" >&6; }
11486 if test "x$ac_ct_RANLIB" = x; then
11489 case $cross_compiling:$ac_tool_warned in
11491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11492 whose name does not start with the host triplet. If you think this
11493 configuration is useful to you, please write to autoconf@gnu.org." >&5
11494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11495 whose name does not start with the host triplet. If you think this
11496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11497 ac_tool_warned=yes ;;
11499 RANLIB=$ac_ct_RANLIB
11502 RANLIB="$ac_cv_prog_RANLIB"
11505 if test -n "$ac_tool_prefix"; then
11506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11507 set dummy ${ac_tool_prefix}strip; ac_word=$2
11508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11510 if test "${ac_cv_prog_STRIP+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 if test -n "$STRIP"; then
11514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 STRIP=$ac_cv_prog_STRIP
11534 if test -n "$STRIP"; then
11535 { echo "$as_me:$LINENO: result: $STRIP" >&5
11536 echo "${ECHO_T}$STRIP" >&6; }
11538 { echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6; }
11544 if test -z "$ac_cv_prog_STRIP"; then
11546 # Extract the first word of "strip", so it can be a program name with args.
11547 set dummy strip; ac_word=$2
11548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 if test -n "$ac_ct_STRIP"; then
11554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11560 test -z "$as_dir" && as_dir=.
11561 for ac_exec_ext in '' $ac_executable_extensions; do
11562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11563 ac_cv_prog_ac_ct_STRIP="strip"
11564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11574 if test -n "$ac_ct_STRIP"; then
11575 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11576 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11578 { echo "$as_me:$LINENO: result: no" >&5
11579 echo "${ECHO_T}no" >&6; }
11582 if test "x$ac_ct_STRIP" = x; then
11585 case $cross_compiling:$ac_tool_warned in
11587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11588 whose name does not start with the host triplet. If you think this
11589 configuration is useful to you, please write to autoconf@gnu.org." >&5
11590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11591 whose name does not start with the host triplet. If you think this
11592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11593 ac_tool_warned=yes ;;
11598 STRIP="$ac_cv_prog_STRIP"
11601 # Extract the first word of "makeinfo", so it can be a program name with args.
11602 set dummy makeinfo; ac_word=$2
11603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11605 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 if test -n "$MAKEINFO"; then
11609 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11615 test -z "$as_dir" && as_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618 ac_cv_prog_MAKEINFO="makeinfo"
11619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 MAKEINFO=$ac_cv_prog_MAKEINFO
11629 if test -n "$MAKEINFO"; then
11630 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11631 echo "${ECHO_T}$MAKEINFO" >&6; }
11633 { echo "$as_me:$LINENO: result: no" >&5
11634 echo "${ECHO_T}no" >&6; }
11638 if test "_$MAKEINFO" = "_"; then
11639 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11641 case "$MAKEINFO" in
11643 { echo "$as_me:$LINENO: WARNING:
11644 *** Makeinfo is missing. Info documentation will not be built." >&5
11645 echo "$as_me: WARNING:
11646 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11653 # Find a good install program. We prefer a C program (faster),
11654 # so one script is as good as another. But avoid the broken or
11655 # incompatible versions:
11656 # SysV /etc/install, /usr/sbin/install
11657 # SunOS /usr/etc/install
11658 # IRIX /sbin/install
11660 # AmigaOS /C/install, which installs bootblocks on floppy discs
11661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11664 # OS/2's system install, which has a completely different semantic
11665 # ./install, which can be erroneously created by make from ./install.sh.
11666 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11667 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11668 if test -z "$INSTALL"; then
11669 if test "${ac_cv_path_install+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11676 test -z "$as_dir" && as_dir=.
11677 # Account for people who put trailing slashes in PATH elements.
11679 ./ | .// | /cC/* | \
11680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11684 # OSF1 and SCO ODT 3.0 have their own names for install.
11685 # Don't use installbsd from OSF since it installs stuff as root
11687 for ac_prog in ginstall scoinst install; do
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11690 if test $ac_prog = install &&
11691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11692 # AIX install. It has an incompatible calling convention.
11694 elif test $ac_prog = install &&
11695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11696 # program-specific install script used by HP pwplus--don't use.
11699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11712 if test "${ac_cv_path_install+set}" = set; then
11713 INSTALL=$ac_cv_path_install
11715 # As a last resort, use the slow shell script. Don't cache a
11716 # value for INSTALL within a source directory, because that will
11717 # break other packages using the cache if that directory is
11718 # removed, or if the value is a relative name.
11719 INSTALL=$ac_install_sh
11722 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11723 echo "${ECHO_T}$INSTALL" >&6; }
11725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11726 # It thinks the first close brace ends the variable substitution.
11727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11731 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11733 # See if we need a separate native compiler.
11734 if test $cross_compiling = no; then
11738 for ac_prog in gcc cc
11740 # Extract the first word of "$ac_prog", so it can be a program name with args.
11741 set dummy $ac_prog; ac_word=$2
11742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11744 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 if test -n "$BUILD_CC"; then
11748 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11757 ac_cv_prog_BUILD_CC="$ac_prog"
11758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 BUILD_CC=$ac_cv_prog_BUILD_CC
11768 if test -n "$BUILD_CC"; then
11769 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11770 echo "${ECHO_T}$BUILD_CC" >&6; }
11772 { echo "$as_me:$LINENO: result: no" >&5
11773 echo "${ECHO_T}no" >&6; }
11777 test -n "$BUILD_CC" && break
11816 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
11818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 ac_res=`eval echo '${'$as_ac_Header'}'`
11826 { echo "$as_me:$LINENO: result: $ac_res" >&5
11827 echo "${ECHO_T}$ac_res" >&6; }
11829 # Is the header compilable?
11830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 $ac_includes_default
11839 #include <$ac_header>
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest.$ac_objext; then
11858 ac_header_compiler=yes
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 ac_header_compiler=no
11866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11868 echo "${ECHO_T}$ac_header_compiler" >&6; }
11870 # Is the header present?
11871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 #include <$ac_header>
11881 if { (ac_try="$ac_cpp conftest.$ac_ext"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } >/dev/null && {
11894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11897 ac_header_preproc=yes
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_header_preproc=no
11905 rm -f conftest.err conftest.$ac_ext
11906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11907 echo "${ECHO_T}$ac_header_preproc" >&6; }
11909 # So? What about this header?
11910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11916 ac_header_preproc=yes
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 eval "$as_ac_Header=\$ac_header_preproc"
11941 ac_res=`eval echo '${'$as_ac_Header'}'`
11942 { echo "$as_me:$LINENO: result: $ac_res" >&5
11943 echo "${ECHO_T}$ac_res" >&6; }
11946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11957 for ac_header in sys/disk.h sys/mount.h
11959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 #if HAVE_SYS_QUEUE_H
11973 #include <sys/queue.h>
11977 #include <$ac_header>
11979 rm -f conftest.$ac_objext
11980 if { (ac_try="$ac_compile"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_compile") 2>conftest.er1
11988 grep -v '^ *+' conftest.er1 >conftest.err
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } && {
11993 test -z "$ac_c_werror_flag" ||
11994 test ! -s conftest.err
11995 } && test -s conftest.$ac_objext; then
11996 eval "$as_ac_Header=yes"
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 eval "$as_ac_Header=no"
12004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006 ac_res=`eval echo '${'$as_ac_Header'}'`
12007 { echo "$as_me:$LINENO: result: $ac_res" >&5
12008 echo "${ECHO_T}$ac_res" >&6; }
12009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12010 cat >>confdefs.h <<_ACEOF
12011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12019 for ac_header in net/if.h
12021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 cat >conftest.$ac_ext <<_ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12034 #if HAVE_SYS_TYPES_H
12035 #include <sys/types.h>
12037 #if HAVE_SYS_SOCKET
12038 #include <sys/socket.h>
12042 #include <$ac_header>
12044 rm -f conftest.$ac_objext
12045 if { (ac_try="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_compile") 2>conftest.er1
12053 grep -v '^ *+' conftest.er1 >conftest.err
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } && {
12058 test -z "$ac_c_werror_flag" ||
12059 test ! -s conftest.err
12060 } && test -s conftest.$ac_objext; then
12061 eval "$as_ac_Header=yes"
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 eval "$as_ac_Header=no"
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 ac_res=`eval echo '${'$as_ac_Header'}'`
12072 { echo "$as_me:$LINENO: result: $ac_res" >&5
12073 echo "${ECHO_T}$ac_res" >&6; }
12074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084 for ac_func in vprintf
12086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12100 #define $ac_func innocuous_$ac_func
12102 /* System header to define __stub macros and hopefully few prototypes,
12103 which can conflict with char $ac_func (); below.
12104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12105 <limits.h> exists even on freestanding compilers. */
12108 # include <limits.h>
12110 # include <assert.h>
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12122 /* The GNU C library defines this for functions which it implements
12123 to always fail with ENOSYS. Some functions are actually named
12124 something starting with __ and the normal name is an alias. */
12125 #if defined __stub_$ac_func || defined __stub___$ac_func
12132 return $ac_func ();
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_link") 2>conftest.er1
12146 grep -v '^ *+' conftest.er1 >conftest.err
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest$ac_exeext &&
12154 $as_test_x conftest$ac_exeext; then
12155 eval "$as_ac_var=yes"
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 eval "$as_ac_var=no"
12163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12164 conftest$ac_exeext conftest.$ac_ext
12166 ac_res=`eval echo '${'$as_ac_var'}'`
12167 { echo "$as_me:$LINENO: result: $ac_res" >&5
12168 echo "${ECHO_T}$ac_res" >&6; }
12169 if test `eval echo '${'$as_ac_var'}'` = yes; then
12170 cat >>confdefs.h <<_ACEOF
12171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12174 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12175 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12176 if test "${ac_cv_func__doprnt+set}" = set; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12185 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12187 #define _doprnt innocuous__doprnt
12189 /* System header to define __stub macros and hopefully few prototypes,
12190 which can conflict with char _doprnt (); below.
12191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12192 <limits.h> exists even on freestanding compilers. */
12195 # include <limits.h>
12197 # include <assert.h>
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12209 /* The GNU C library defines this for functions which it implements
12210 to always fail with ENOSYS. Some functions are actually named
12211 something starting with __ and the normal name is an alias. */
12212 #if defined __stub__doprnt || defined __stub____doprnt
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (ac_try="$ac_link"
12226 case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_link") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest$ac_exeext &&
12241 $as_test_x conftest$ac_exeext; then
12242 ac_cv_func__doprnt=yes
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 ac_cv_func__doprnt=no
12250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12251 conftest$ac_exeext conftest.$ac_ext
12253 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12254 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12255 if test $ac_cv_func__doprnt = yes; then
12257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_DOPRNT 1
12267 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12268 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12269 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 #include <dirent.h>
12283 static struct dirent ac_aggr;
12284 if (ac_aggr.d_reclen)
12290 rm -f conftest.$ac_objext
12291 if { (ac_try="$ac_compile"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12297 (eval "$ac_compile") 2>conftest.er1
12299 grep -v '^ *+' conftest.er1 >conftest.err
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } && {
12304 test -z "$ac_c_werror_flag" ||
12305 test ! -s conftest.err
12306 } && test -s conftest.$ac_objext; then
12307 ac_cv_member_struct_dirent_d_reclen=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 #include <dirent.h>
12323 static struct dirent ac_aggr;
12324 if (sizeof ac_aggr.d_reclen)
12330 rm -f conftest.$ac_objext
12331 if { (ac_try="$ac_compile"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_compile") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest.$ac_objext; then
12347 ac_cv_member_struct_dirent_d_reclen=yes
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 ac_cv_member_struct_dirent_d_reclen=no
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12361 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12362 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12363 cat >>confdefs.h <<\_ACEOF
12364 #define HAVE_RECLEN_DIRENT 1
12369 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12370 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12371 if test "${ac_cv_type_ssize_t+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 #include <sys/types.h>
12382 typedef ssize_t ac__type_new_;
12386 if ((ac__type_new_ *) 0)
12388 if (sizeof (ac__type_new_))
12394 rm -f conftest.$ac_objext
12395 if { (ac_try="$ac_compile"
12396 case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_compile") 2>conftest.er1
12403 grep -v '^ *+' conftest.er1 >conftest.err
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest.$ac_objext; then
12411 ac_cv_type_ssize_t=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_type_ssize_t=no
12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12422 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12423 if test $ac_cv_type_ssize_t = yes; then
12424 cat >>confdefs.h <<\_ACEOF
12425 #define HAVE_TYPE_SSIZE_T 1
12430 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12431 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12432 if test "${ac_cv_have_decl_llseek+set}" = set; then
12433 echo $ECHO_N "(cached) $ECHO_C" >&6
12435 cat >conftest.$ac_ext <<_ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 #include <unistd.h>
12454 rm -f conftest.$ac_objext
12455 if { (ac_try="$ac_compile"
12456 case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_compile") 2>conftest.er1
12463 grep -v '^ *+' conftest.er1 >conftest.err
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } && {
12468 test -z "$ac_c_werror_flag" ||
12469 test ! -s conftest.err
12470 } && test -s conftest.$ac_objext; then
12471 ac_cv_have_decl_llseek=yes
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_have_decl_llseek=no
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12481 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12482 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12483 if test $ac_cv_have_decl_llseek = yes; then
12484 cat >>confdefs.h <<\_ACEOF
12485 #define HAVE_LLSEEK_PROTOTYPE 1
12490 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12491 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12492 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 cat >conftest.$ac_ext <<_ACEOF
12498 cat confdefs.h >>conftest.$ac_ext
12499 cat >>conftest.$ac_ext <<_ACEOF
12500 /* end confdefs.h. */
12501 #define _LARGEFILE_SOURCE
12502 #define _LARGEFILE64_SOURCE
12503 #include <unistd.h>
12516 rm -f conftest.$ac_objext
12517 if { (ac_try="$ac_compile"
12518 case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_compile") 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } && {
12530 test -z "$ac_c_werror_flag" ||
12531 test ! -s conftest.err
12532 } && test -s conftest.$ac_objext; then
12533 ac_cv_have_decl_lseek64=yes
12535 echo "$as_me: failed program was:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ac_cv_have_decl_lseek64=no
12541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12544 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12545 if test $ac_cv_have_decl_lseek64 = yes; then
12546 cat >>confdefs.h <<\_ACEOF
12547 #define HAVE_LSEEK64_PROTOTYPE 1
12552 { echo "$as_me:$LINENO: checking for short" >&5
12553 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12554 if test "${ac_cv_type_short+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 cat >conftest.$ac_ext <<_ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h. */
12563 $ac_includes_default
12564 typedef short ac__type_new_;
12568 if ((ac__type_new_ *) 0)
12570 if (sizeof (ac__type_new_))
12576 rm -f conftest.$ac_objext
12577 if { (ac_try="$ac_compile"
12578 case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_compile") 2>conftest.er1
12585 grep -v '^ *+' conftest.er1 >conftest.err
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } && {
12590 test -z "$ac_c_werror_flag" ||
12591 test ! -s conftest.err
12592 } && test -s conftest.$ac_objext; then
12593 ac_cv_type_short=yes
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ac_cv_type_short=no
12601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12604 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12606 # The cast to long int works around a bug in the HP C Compiler
12607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12609 # This bug is HP SR number 8606223364.
12610 { echo "$as_me:$LINENO: checking size of short" >&5
12611 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12612 if test "${ac_cv_sizeof_short+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 if test "$cross_compiling" = yes; then
12616 # Depending upon the size, compute the lo and hi bounds.
12617 cat >conftest.$ac_ext <<_ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 $ac_includes_default
12624 typedef short ac__type_sizeof_;
12628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12635 rm -f conftest.$ac_objext
12636 if { (ac_try="$ac_compile"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_compile") 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } && {
12649 test -z "$ac_c_werror_flag" ||
12650 test ! -s conftest.err
12651 } && test -s conftest.$ac_objext; then
12654 cat >conftest.$ac_ext <<_ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12660 $ac_includes_default
12661 typedef short ac__type_sizeof_;
12665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_compile") 2>conftest.er1
12681 grep -v '^ *+' conftest.er1 >conftest.err
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest.$ac_objext; then
12689 ac_hi=$ac_mid; break
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 ac_lo=`expr $ac_mid + 1`
12695 if test $ac_lo -le $ac_mid; then
12699 ac_mid=`expr 2 '*' $ac_mid + 1`
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 cat >conftest.$ac_ext <<_ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 $ac_includes_default
12715 typedef short ac__type_sizeof_;
12719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12726 rm -f conftest.$ac_objext
12727 if { (ac_try="$ac_compile"
12728 case "(($ac_try" in
12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730 *) ac_try_echo=$ac_try;;
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_compile") 2>conftest.er1
12735 grep -v '^ *+' conftest.er1 >conftest.err
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest.$ac_objext; then
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 $ac_includes_default
12752 typedef short ac__type_sizeof_;
12756 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12763 rm -f conftest.$ac_objext
12764 if { (ac_try="$ac_compile"
12765 case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12772 grep -v '^ *+' conftest.er1 >conftest.err
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
12780 ac_lo=$ac_mid; break
12782 echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12785 ac_hi=`expr '(' $ac_mid ')' - 1`
12786 if test $ac_mid -le $ac_hi; then
12790 ac_mid=`expr 2 '*' $ac_mid`
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 # Binary search between lo and hi bounds.
12807 while test "x$ac_lo" != "x$ac_hi"; do
12808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12809 cat >conftest.$ac_ext <<_ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 $ac_includes_default
12816 typedef short ac__type_sizeof_;
12820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12827 rm -f conftest.$ac_objext
12828 if { (ac_try="$ac_compile"
12829 case "(($ac_try" in
12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_compile") 2>conftest.er1
12836 grep -v '^ *+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } && {
12841 test -z "$ac_c_werror_flag" ||
12842 test ! -s conftest.err
12843 } && test -s conftest.$ac_objext; then
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 ac_lo=`expr '(' $ac_mid ')' + 1`
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12855 ?*) ac_cv_sizeof_short=$ac_lo;;
12856 '') if test "$ac_cv_type_short" = yes; then
12857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12858 See \`config.log' for more details." >&5
12859 echo "$as_me: error: cannot compute sizeof (short)
12860 See \`config.log' for more details." >&2;}
12861 { (exit 77); exit 77; }; }
12863 ac_cv_sizeof_short=0
12867 cat >conftest.$ac_ext <<_ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 $ac_includes_default
12874 typedef short ac__type_sizeof_;
12875 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12876 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12878 #include <stdlib.h>
12883 FILE *f = fopen ("conftest.val", "w");
12886 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12888 long int i = longval ();
12889 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12891 fprintf (f, "%ld\n", i);
12895 unsigned long int i = ulongval ();
12896 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12898 fprintf (f, "%lu\n", i);
12900 return ferror (f) || fclose (f) != 0;
12906 rm -f conftest$ac_exeext
12907 if { (ac_try="$ac_link"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_link") 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12917 { (case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_try") 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 ac_cv_sizeof_short=`cat conftest.val`
12928 echo "$as_me: program exited with status $ac_status" >&5
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 ( exit $ac_status )
12933 if test "$ac_cv_type_short" = yes; then
12934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12935 See \`config.log' for more details." >&5
12936 echo "$as_me: error: cannot compute sizeof (short)
12937 See \`config.log' for more details." >&2;}
12938 { (exit 77); exit 77; }; }
12940 ac_cv_sizeof_short=0
12943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12947 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12948 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12952 cat >>confdefs.h <<_ACEOF
12953 #define SIZEOF_SHORT $ac_cv_sizeof_short
12957 { echo "$as_me:$LINENO: checking for int" >&5
12958 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12959 if test "${ac_cv_type_int+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 cat >conftest.$ac_ext <<_ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 $ac_includes_default
12969 typedef int ac__type_new_;
12973 if ((ac__type_new_ *) 0)
12975 if (sizeof (ac__type_new_))
12981 rm -f conftest.$ac_objext
12982 if { (ac_try="$ac_compile"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_compile") 2>conftest.er1
12990 grep -v '^ *+' conftest.er1 >conftest.err
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } && {
12995 test -z "$ac_c_werror_flag" ||
12996 test ! -s conftest.err
12997 } && test -s conftest.$ac_objext; then
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13009 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13011 # The cast to long int works around a bug in the HP C Compiler
13012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13014 # This bug is HP SR number 8606223364.
13015 { echo "$as_me:$LINENO: checking size of int" >&5
13016 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13017 if test "${ac_cv_sizeof_int+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13020 if test "$cross_compiling" = yes; then
13021 # Depending upon the size, compute the lo and hi bounds.
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 $ac_includes_default
13029 typedef int ac__type_sizeof_;
13033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13040 rm -f conftest.$ac_objext
13041 if { (ac_try="$ac_compile"
13042 case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_compile") 2>conftest.er1
13049 grep -v '^ *+' conftest.er1 >conftest.err
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } && {
13054 test -z "$ac_c_werror_flag" ||
13055 test ! -s conftest.err
13056 } && test -s conftest.$ac_objext; then
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 $ac_includes_default
13066 typedef int ac__type_sizeof_;
13070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13077 rm -f conftest.$ac_objext
13078 if { (ac_try="$ac_compile"
13079 case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_compile") 2>conftest.er1
13086 grep -v '^ *+' conftest.er1 >conftest.err
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } && {
13091 test -z "$ac_c_werror_flag" ||
13092 test ! -s conftest.err
13093 } && test -s conftest.$ac_objext; then
13094 ac_hi=$ac_mid; break
13096 echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_lo=`expr $ac_mid + 1`
13100 if test $ac_lo -le $ac_mid; then
13104 ac_mid=`expr 2 '*' $ac_mid + 1`
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 cat >conftest.$ac_ext <<_ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13120 typedef int ac__type_sizeof_;
13124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13131 rm -f conftest.$ac_objext
13132 if { (ac_try="$ac_compile"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_compile") 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } && {
13145 test -z "$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 } && test -s conftest.$ac_objext; then
13150 cat >conftest.$ac_ext <<_ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 typedef int ac__type_sizeof_;
13161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13168 rm -f conftest.$ac_objext
13169 if { (ac_try="$ac_compile"
13170 case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_compile") 2>conftest.er1
13177 grep -v '^ *+' conftest.er1 >conftest.err
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } && {
13182 test -z "$ac_c_werror_flag" ||
13183 test ! -s conftest.err
13184 } && test -s conftest.$ac_objext; then
13185 ac_lo=$ac_mid; break
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13190 ac_hi=`expr '(' $ac_mid ')' - 1`
13191 if test $ac_mid -le $ac_hi; then
13195 ac_mid=`expr 2 '*' $ac_mid`
13198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 # Binary search between lo and hi bounds.
13212 while test "x$ac_lo" != "x$ac_hi"; do
13213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 $ac_includes_default
13221 typedef int ac__type_sizeof_;
13225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13232 rm -f conftest.$ac_objext
13233 if { (ac_try="$ac_compile"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_compile") 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } && {
13246 test -z "$ac_c_werror_flag" ||
13247 test ! -s conftest.err
13248 } && test -s conftest.$ac_objext; then
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_lo=`expr '(' $ac_mid ')' + 1`
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 ?*) ac_cv_sizeof_int=$ac_lo;;
13261 '') if test "$ac_cv_type_int" = yes; then
13262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13263 See \`config.log' for more details." >&5
13264 echo "$as_me: error: cannot compute sizeof (int)
13265 See \`config.log' for more details." >&2;}
13266 { (exit 77); exit 77; }; }
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 $ac_includes_default
13279 typedef int ac__type_sizeof_;
13280 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13281 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13283 #include <stdlib.h>
13288 FILE *f = fopen ("conftest.val", "w");
13291 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13293 long int i = longval ();
13294 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13296 fprintf (f, "%ld\n", i);
13300 unsigned long int i = ulongval ();
13301 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13303 fprintf (f, "%lu\n", i);
13305 return ferror (f) || fclose (f) != 0;
13311 rm -f conftest$ac_exeext
13312 if { (ac_try="$ac_link"
13313 case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_link") 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13322 { (case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_try") 2>&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_sizeof_int=`cat conftest.val`
13333 echo "$as_me: program exited with status $ac_status" >&5
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13337 ( exit $ac_status )
13338 if test "$ac_cv_type_int" = yes; then
13339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13340 See \`config.log' for more details." >&5
13341 echo "$as_me: error: cannot compute sizeof (int)
13342 See \`config.log' for more details." >&2;}
13343 { (exit 77); exit 77; }; }
13348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13352 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13353 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13357 cat >>confdefs.h <<_ACEOF
13358 #define SIZEOF_INT $ac_cv_sizeof_int
13362 { echo "$as_me:$LINENO: checking for long" >&5
13363 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13364 if test "${ac_cv_type_long+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h. */
13373 $ac_includes_default
13374 typedef long ac__type_new_;
13378 if ((ac__type_new_ *) 0)
13380 if (sizeof (ac__type_new_))
13386 rm -f conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_compile") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest.$ac_objext; then
13403 ac_cv_type_long=yes
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13414 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13416 # The cast to long int works around a bug in the HP C Compiler
13417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13419 # This bug is HP SR number 8606223364.
13420 { echo "$as_me:$LINENO: checking size of long" >&5
13421 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13422 if test "${ac_cv_sizeof_long+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 if test "$cross_compiling" = yes; then
13426 # Depending upon the size, compute the lo and hi bounds.
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13434 typedef long ac__type_sizeof_;
13438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest.$ac_objext; then
13464 cat >conftest.$ac_ext <<_ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13470 $ac_includes_default
13471 typedef long ac__type_sizeof_;
13475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13482 rm -f conftest.$ac_objext
13483 if { (ac_try="$ac_compile"
13484 case "(($ac_try" in
13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486 *) ac_try_echo=$ac_try;;
13488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13489 (eval "$ac_compile") 2>conftest.er1
13491 grep -v '^ *+' conftest.er1 >conftest.err
13493 cat conftest.err >&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } && {
13496 test -z "$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13498 } && test -s conftest.$ac_objext; then
13499 ac_hi=$ac_mid; break
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_lo=`expr $ac_mid + 1`
13505 if test $ac_lo -le $ac_mid; then
13509 ac_mid=`expr 2 '*' $ac_mid + 1`
13512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 $ac_includes_default
13525 typedef long ac__type_sizeof_;
13529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13536 rm -f conftest.$ac_objext
13537 if { (ac_try="$ac_compile"
13538 case "(($ac_try" in
13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13540 *) ac_try_echo=$ac_try;;
13542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13543 (eval "$ac_compile") 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } && {
13550 test -z "$ac_c_werror_flag" ||
13551 test ! -s conftest.err
13552 } && test -s conftest.$ac_objext; then
13555 cat >conftest.$ac_ext <<_ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 $ac_includes_default
13562 typedef long ac__type_sizeof_;
13566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_compile") 2>conftest.er1
13582 grep -v '^ *+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } && {
13587 test -z "$ac_c_werror_flag" ||
13588 test ! -s conftest.err
13589 } && test -s conftest.$ac_objext; then
13590 ac_lo=$ac_mid; break
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13595 ac_hi=`expr '(' $ac_mid ')' - 1`
13596 if test $ac_mid -le $ac_hi; then
13600 ac_mid=`expr 2 '*' $ac_mid`
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 # Binary search between lo and hi bounds.
13617 while test "x$ac_lo" != "x$ac_hi"; do
13618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13625 $ac_includes_default
13626 typedef long ac__type_sizeof_;
13630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1 >conftest.err
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest.$ac_objext; then
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_lo=`expr '(' $ac_mid ')' + 1`
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 ?*) ac_cv_sizeof_long=$ac_lo;;
13666 '') if test "$ac_cv_type_long" = yes; then
13667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13668 See \`config.log' for more details." >&5
13669 echo "$as_me: error: cannot compute sizeof (long)
13670 See \`config.log' for more details." >&2;}
13671 { (exit 77); exit 77; }; }
13673 ac_cv_sizeof_long=0
13677 cat >conftest.$ac_ext <<_ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13684 typedef long ac__type_sizeof_;
13685 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13686 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13688 #include <stdlib.h>
13693 FILE *f = fopen ("conftest.val", "w");
13696 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13698 long int i = longval ();
13699 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13701 fprintf (f, "%ld\n", i);
13705 unsigned long int i = ulongval ();
13706 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13708 fprintf (f, "%lu\n", i);
13710 return ferror (f) || fclose (f) != 0;
13716 rm -f conftest$ac_exeext
13717 if { (ac_try="$ac_link"
13718 case "(($ac_try" in
13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720 *) ac_try_echo=$ac_try;;
13722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13723 (eval "$ac_link") 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 ac_cv_sizeof_long=`cat conftest.val`
13738 echo "$as_me: program exited with status $ac_status" >&5
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ( exit $ac_status )
13743 if test "$ac_cv_type_long" = yes; then
13744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13745 See \`config.log' for more details." >&5
13746 echo "$as_me: error: cannot compute sizeof (long)
13747 See \`config.log' for more details." >&2;}
13748 { (exit 77); exit 77; }; }
13750 ac_cv_sizeof_long=0
13753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13757 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13758 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13762 cat >>confdefs.h <<_ACEOF
13763 #define SIZEOF_LONG $ac_cv_sizeof_long
13767 { echo "$as_me:$LINENO: checking for long long" >&5
13768 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13769 if test "${ac_cv_type_long_long+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13779 typedef long long ac__type_new_;
13783 if ((ac__type_new_ *) 0)
13785 if (sizeof (ac__type_new_))
13791 rm -f conftest.$ac_objext
13792 if { (ac_try="$ac_compile"
13793 case "(($ac_try" in
13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_compile") 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13802 cat conftest.err >&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest.$ac_objext; then
13808 ac_cv_type_long_long=yes
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_cv_type_long_long=no
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13819 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13821 # The cast to long int works around a bug in the HP C Compiler
13822 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13823 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13824 # This bug is HP SR number 8606223364.
13825 { echo "$as_me:$LINENO: checking size of long long" >&5
13826 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13827 if test "${ac_cv_sizeof_long_long+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 if test "$cross_compiling" = yes; then
13831 # Depending upon the size, compute the lo and hi bounds.
13832 cat >conftest.$ac_ext <<_ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 $ac_includes_default
13839 typedef long long ac__type_sizeof_;
13843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13850 rm -f conftest.$ac_objext
13851 if { (ac_try="$ac_compile"
13852 case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_compile") 2>conftest.er1
13859 grep -v '^ *+' conftest.er1 >conftest.err
13861 cat conftest.err >&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); } && {
13864 test -z "$ac_c_werror_flag" ||
13865 test ! -s conftest.err
13866 } && test -s conftest.$ac_objext; then
13869 cat >conftest.$ac_ext <<_ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 $ac_includes_default
13876 typedef long long ac__type_sizeof_;
13880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13887 rm -f conftest.$ac_objext
13888 if { (ac_try="$ac_compile"
13889 case "(($ac_try" in
13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891 *) ac_try_echo=$ac_try;;
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894 (eval "$ac_compile") 2>conftest.er1
13896 grep -v '^ *+' conftest.er1 >conftest.err
13898 cat conftest.err >&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } && {
13901 test -z "$ac_c_werror_flag" ||
13902 test ! -s conftest.err
13903 } && test -s conftest.$ac_objext; then
13904 ac_hi=$ac_mid; break
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 ac_lo=`expr $ac_mid + 1`
13910 if test $ac_lo -le $ac_mid; then
13914 ac_mid=`expr 2 '*' $ac_mid + 1`
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 typedef long long ac__type_sizeof_;
13934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13941 rm -f conftest.$ac_objext
13942 if { (ac_try="$ac_compile"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_compile") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } && {
13955 test -z "$ac_c_werror_flag" ||
13956 test ! -s conftest.err
13957 } && test -s conftest.$ac_objext; then
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 $ac_includes_default
13967 typedef long long ac__type_sizeof_;
13971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13978 rm -f conftest.$ac_objext
13979 if { (ac_try="$ac_compile"
13980 case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_compile") 2>conftest.er1
13987 grep -v '^ *+' conftest.er1 >conftest.err
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } && {
13992 test -z "$ac_c_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest.$ac_objext; then
13995 ac_lo=$ac_mid; break
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 ac_hi=`expr '(' $ac_mid ')' - 1`
14001 if test $ac_mid -le $ac_hi; then
14005 ac_mid=`expr 2 '*' $ac_mid`
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 # Binary search between lo and hi bounds.
14022 while test "x$ac_lo" != "x$ac_hi"; do
14023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 $ac_includes_default
14031 typedef long long ac__type_sizeof_;
14035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_compile") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest.$ac_objext; then
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14064 ac_lo=`expr '(' $ac_mid ')' + 1`
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14071 '') if test "$ac_cv_type_long_long" = yes; then
14072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14073 See \`config.log' for more details." >&5
14074 echo "$as_me: error: cannot compute sizeof (long long)
14075 See \`config.log' for more details." >&2;}
14076 { (exit 77); exit 77; }; }
14078 ac_cv_sizeof_long_long=0
14082 cat >conftest.$ac_ext <<_ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h. */
14088 $ac_includes_default
14089 typedef long long ac__type_sizeof_;
14090 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14091 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14093 #include <stdlib.h>
14098 FILE *f = fopen ("conftest.val", "w");
14101 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14103 long int i = longval ();
14104 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14106 fprintf (f, "%ld\n", i);
14110 unsigned long int i = ulongval ();
14111 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14113 fprintf (f, "%lu\n", i);
14115 return ferror (f) || fclose (f) != 0;
14121 rm -f conftest$ac_exeext
14122 if { (ac_try="$ac_link"
14123 case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_link") 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14132 { (case "(($ac_try" in
14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137 (eval "$ac_try") 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_sizeof_long_long=`cat conftest.val`
14143 echo "$as_me: program exited with status $ac_status" >&5
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ( exit $ac_status )
14148 if test "$ac_cv_type_long_long" = yes; then
14149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14150 See \`config.log' for more details." >&5
14151 echo "$as_me: error: cannot compute sizeof (long long)
14152 See \`config.log' for more details." >&2;}
14153 { (exit 77); exit 77; }; }
14155 ac_cv_sizeof_long_long=0
14158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14162 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14163 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14167 cat >>confdefs.h <<_ACEOF
14168 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14172 SIZEOF_SHORT=$ac_cv_sizeof_short
14173 SIZEOF_INT=$ac_cv_sizeof_int
14174 SIZEOF_LONG=$ac_cv_sizeof_long
14175 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14180 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14181 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14182 if test "${ac_cv_c_bigendian+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14185 # See if sys/param.h defines the BYTE_ORDER macro.
14186 cat >conftest.$ac_ext <<_ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 #include <sys/types.h>
14193 #include <sys/param.h>
14198 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14199 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14200 bogus endian macros
14207 rm -f conftest.$ac_objext
14208 if { (ac_try="$ac_compile"
14209 case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_compile") 2>conftest.er1
14216 grep -v '^ *+' conftest.er1 >conftest.err
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } && {
14221 test -z "$ac_c_werror_flag" ||
14222 test ! -s conftest.err
14223 } && test -s conftest.$ac_objext; then
14224 # It does; now see whether it defined to BIG_ENDIAN or not.
14225 cat >conftest.$ac_ext <<_ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14232 #include <sys/param.h>
14237 #if BYTE_ORDER != BIG_ENDIAN
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_compile") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest.$ac_objext; then
14262 ac_cv_c_bigendian=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_c_bigendian=no
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 # It does not; compile a test program.
14276 if test "$cross_compiling" = yes; then
14277 # try to guess the endianness by grepping values into an object file
14278 ac_cv_c_bigendian=unknown
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14286 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14287 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14288 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14289 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14290 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14294 _ascii (); _ebcdic ();
14299 rm -f conftest.$ac_objext
14300 if { (ac_try="$ac_compile"
14301 case "(($ac_try" in
14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14303 *) ac_try_echo=$ac_try;;
14305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14306 (eval "$ac_compile") 2>conftest.er1
14308 grep -v '^ *+' conftest.er1 >conftest.err
14310 cat conftest.err >&5
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); } && {
14313 test -z "$ac_c_werror_flag" ||
14314 test ! -s conftest.err
14315 } && test -s conftest.$ac_objext; then
14316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14317 ac_cv_c_bigendian=yes
14319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14320 if test "$ac_cv_c_bigendian" = unknown; then
14321 ac_cv_c_bigendian=no
14323 # finding both strings is unlikely to happen, but who knows?
14324 ac_cv_c_bigendian=unknown
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 cat >conftest.$ac_ext <<_ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14342 $ac_includes_default
14347 /* Are we little or big endian? From Harbison&Steele. */
14351 char c[sizeof (long int)];
14354 return u.c[sizeof (long int) - 1] == 1;
14360 rm -f conftest$ac_exeext
14361 if { (ac_try="$ac_link"
14362 case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_link") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14371 { (case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_try") 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; }; then
14380 ac_cv_c_bigendian=no
14382 echo "$as_me: program exited with status $ac_status" >&5
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ( exit $ac_status )
14387 ac_cv_c_bigendian=yes
14389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14398 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14399 case $ac_cv_c_bigendian in
14402 cat >>confdefs.h <<\_ACEOF
14403 #define WORDS_BIGENDIAN 1
14409 { { echo "$as_me:$LINENO: error: unknown endianness
14410 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14411 echo "$as_me: error: unknown endianness
14412 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14413 { (exit 1); exit 1; }; } ;;
14416 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14417 ASM_TYPES_HEADER=./asm_types.h
14419 echo "/* These defines are needed for the public ext2fs.h header file */" \
14421 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14422 uniq tmp_config.$$ >> public_config.h
14424 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14426 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14427 uniq tmp_config.$$ >> public_config.h
14429 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14431 rm -f tmp_config.$$
14432 PUBLIC_CONFIG_HEADER=./public_config.h
14435 for ac_header in inttypes.h
14437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 ac_res=`eval echo '${'$as_ac_Header'}'`
14445 { echo "$as_me:$LINENO: result: $ac_res" >&5
14446 echo "${ECHO_T}$ac_res" >&6; }
14448 # Is the header compilable?
14449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14451 cat >conftest.$ac_ext <<_ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 $ac_includes_default
14458 #include <$ac_header>
14460 rm -f conftest.$ac_objext
14461 if { (ac_try="$ac_compile"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_compile") 2>conftest.er1
14469 grep -v '^ *+' conftest.er1 >conftest.err
14471 cat conftest.err >&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } && {
14474 test -z "$ac_c_werror_flag" ||
14475 test ! -s conftest.err
14476 } && test -s conftest.$ac_objext; then
14477 ac_header_compiler=yes
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_header_compiler=no
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14487 echo "${ECHO_T}$ac_header_compiler" >&6; }
14489 # Is the header present?
14490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14492 cat >conftest.$ac_ext <<_ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 #include <$ac_header>
14500 if { (ac_try="$ac_cpp conftest.$ac_ext"
14501 case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } >/dev/null && {
14513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14516 ac_header_preproc=yes
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_header_preproc=no
14524 rm -f conftest.err conftest.$ac_ext
14525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526 echo "${ECHO_T}$ac_header_preproc" >&6; }
14528 # So? What about this header?
14529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14535 ac_header_preproc=yes
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 eval "$as_ac_Header=\$ac_header_preproc"
14560 ac_res=`eval echo '${'$as_ac_Header'}'`
14561 { echo "$as_me:$LINENO: result: $ac_res" >&5
14562 echo "${ECHO_T}$ac_res" >&6; }
14565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566 cat >>confdefs.h <<_ACEOF
14567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14574 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14575 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14576 if test "${ac_cv_type_intptr_t+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 cat >conftest.$ac_ext <<_ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14586 typedef intptr_t ac__type_new_;
14590 if ((ac__type_new_ *) 0)
14592 if (sizeof (ac__type_new_))
14598 rm -f conftest.$ac_objext
14599 if { (ac_try="$ac_compile"
14600 case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_compile") 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } && {
14612 test -z "$ac_c_werror_flag" ||
14613 test ! -s conftest.err
14614 } && test -s conftest.$ac_objext; then
14615 ac_cv_type_intptr_t=yes
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 ac_cv_type_intptr_t=no
14623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14625 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14626 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14627 if test $ac_cv_type_intptr_t = yes; then
14629 cat >>confdefs.h <<_ACEOF
14630 #define HAVE_INTPTR_T 1
14636 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14637 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14638 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 cat >conftest.$ac_ext <<_ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 #include <sys/stat.h>
14651 struct stat stat; stat.st_flags = 0;
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
14665 grep -v '^ *+' conftest.er1 >conftest.err
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
14673 e2fsprogs_cv_struct_st_flags=yes
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 e2fsprogs_cv_struct_st_flags=no
14681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14685 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14686 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14687 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14688 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14689 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <sys/stat.h>
14702 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14707 rm -f conftest.$ac_objext
14708 if { (ac_try="$ac_compile"
14709 case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_compile") 2>conftest.er1
14716 grep -v '^ *+' conftest.er1 >conftest.err
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } && {
14721 test -z "$ac_c_werror_flag" ||
14722 test ! -s conftest.err
14723 } && test -s conftest.$ac_objext; then
14724 e2fsprogs_cv_struct_st_flags_immut=yes
14726 echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14729 e2fsprogs_cv_struct_st_flags_immut=no
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14736 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14737 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_STAT_FLAGS 1
14744 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14745 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14746 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <sys/types.h>
14756 #include <sys/socket.h>
14761 static struct sockaddr ac_aggr;
14762 if (ac_aggr.sa_len)
14768 rm -f conftest.$ac_objext
14769 if { (ac_try="$ac_compile"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_compile") 2>conftest.er1
14777 grep -v '^ *+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest.$ac_objext; then
14785 ac_cv_member_struct_sockaddr_sa_len=yes
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 #include <sys/types.h>
14797 #include <sys/socket.h>
14802 static struct sockaddr ac_aggr;
14803 if (sizeof ac_aggr.sa_len)
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_compile") 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest.$ac_objext; then
14826 ac_cv_member_struct_sockaddr_sa_len=yes
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 ac_cv_member_struct_sockaddr_sa_len=no
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14840 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14841 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844 #define HAVE_SA_LEN 1
14878 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
14880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 cat >conftest.$ac_ext <<_ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14894 #define $ac_func innocuous_$ac_func
14896 /* System header to define __stub macros and hopefully few prototypes,
14897 which can conflict with char $ac_func (); below.
14898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14899 <limits.h> exists even on freestanding compilers. */
14902 # include <limits.h>
14904 # include <assert.h>
14909 /* Override any GCC internal prototype to avoid an error.
14910 Use char because int might match the return type of a GCC
14911 builtin and then its argument prototype would still apply. */
14916 /* The GNU C library defines this for functions which it implements
14917 to always fail with ENOSYS. Some functions are actually named
14918 something starting with __ and the normal name is an alias. */
14919 #if defined __stub_$ac_func || defined __stub___$ac_func
14926 return $ac_func ();
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (ac_try="$ac_link"
14933 case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_link") 2>conftest.er1
14940 grep -v '^ *+' conftest.er1 >conftest.err
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } && {
14945 test -z "$ac_c_werror_flag" ||
14946 test ! -s conftest.err
14947 } && test -s conftest$ac_exeext &&
14948 $as_test_x conftest$ac_exeext; then
14949 eval "$as_ac_var=yes"
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 eval "$as_ac_var=no"
14957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14958 conftest$ac_exeext conftest.$ac_ext
14960 ac_res=`eval echo '${'$as_ac_var'}'`
14961 { echo "$as_me:$LINENO: result: $ac_res" >&5
14962 echo "${ECHO_T}$ac_res" >&6; }
14963 if test `eval echo '${'$as_ac_var'}'` = yes; then
14964 cat >>confdefs.h <<_ACEOF
14965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14972 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14973 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14974 if test "${ac_cv_lib_socket_socket+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 ac_check_lib_save_LIBS=$LIBS
14978 LIBS="-lsocket $LIBS"
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14986 /* Override any GCC internal prototype to avoid an error.
14987 Use char because int might match the return type of a GCC
14988 builtin and then its argument prototype would still apply. */
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_link") 2>conftest.er1
15010 grep -v '^ *+' conftest.er1 >conftest.err
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest$ac_exeext &&
15018 $as_test_x conftest$ac_exeext; then
15019 ac_cv_lib_socket_socket=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15024 ac_cv_lib_socket_socket=no
15027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15028 conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS
15031 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15032 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15033 if test $ac_cv_lib_socket_socket = yes; then
15034 SOCKET_LIB=-lsocket
15039 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15040 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15044 ac_check_lib_save_LIBS=$LIBS
15046 cat >conftest.$ac_ext <<_ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 /* Override any GCC internal prototype to avoid an error.
15054 Use char because int might match the return type of a GCC
15055 builtin and then its argument prototype would still apply. */
15068 rm -f conftest.$ac_objext conftest$ac_exeext
15069 if { (ac_try="$ac_link"
15070 case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_link") 2>conftest.er1
15077 grep -v '^ *+' conftest.er1 >conftest.err
15079 cat conftest.err >&5
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } && {
15082 test -z "$ac_c_werror_flag" ||
15083 test ! -s conftest.err
15084 } && test -s conftest$ac_exeext &&
15085 $as_test_x conftest$ac_exeext; then
15086 ac_cv_lib_dl_dlopen=yes
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 ac_cv_lib_dl_dlopen=no
15094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15095 conftest$ac_exeext conftest.$ac_ext
15096 LIBS=$ac_check_lib_save_LIBS
15098 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15100 if test $ac_cv_lib_dl_dlopen = yes; then
15102 cat >>confdefs.h <<\_ACEOF
15103 #define HAVE_DLOPEN 1
15109 { echo "$as_me:$LINENO: checking for optreset" >&5
15110 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15111 if test "${ac_cv_have_optreset+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 cat >conftest.$ac_ext <<_ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 #include <unistd.h>
15123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15124 $EGREP "optreset" >/dev/null 2>&1; then
15125 ac_cv_have_optreset=yes
15127 ac_cv_have_optreset=no
15132 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15133 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15134 if test $ac_cv_have_optreset = yes; then
15135 cat >>confdefs.h <<\_ACEOF
15136 #define HAVE_OPTRESET 1
15140 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15141 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15142 if diff -u $0 $0 > /dev/null 2>&1 ; then
15147 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15148 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15152 cat >>confdefs.h <<\_ACEOF
15153 #define HAVE_EXT2_IOCTLS 1
15174 linux* | gnu* | k*bsd*-gnu)
15175 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15177 echo "On $host_os systems, root_prefix defaults to ''"
15182 linux* | gnu* | k*bsd*-gnu)
15183 if test "$prefix" = NONE ; then
15185 echo "On $host_os systems, prefix defaults to /usr"
15186 if test "$mandir" = '${prefix}/man' ; then
15187 echo "...and mandir defaults to /usr/share/man"
15188 mandir=/usr/share/man
15193 if test "$root_prefix" = NONE ; then
15194 if test "$prefix" = NONE ; then
15195 root_prefix="$ac_default_prefix"
15197 root_prefix="$prefix"
15199 root_bindir=$bindir
15200 root_sbindir=$sbindir
15201 root_libdir=$libdir
15202 root_sysconfdir=$sysconfdir
15204 root_bindir='${root_prefix}/bin'
15205 root_sbindir='${root_prefix}/sbin'
15206 root_libdir='${root_prefix}/lib'
15207 root_sysconfdir='${root_prefix}/etc'
15209 if test "$bindir" != '${exec_prefix}/bin'; then
15210 root_bindir=$bindir
15211 echo "Setting root_bindir to $root_bindir"
15213 if test "$sbindir" != '${exec_prefix}/sbin'; then
15214 root_sbindir=$sbindir
15215 echo "Setting root_sbindir to $root_sbindir"
15217 if test "$libdir" != '${exec_prefix}/lib'; then
15218 root_libdir=$libdir
15219 echo "Setting root_libdir to $root_libdir"
15221 if test "$sysconfdir" != '${prefix}/etc'; then
15222 root_sysconfdir=$sysconfdir
15223 echo "Setting root_sysconfdir to $root_sysconfdir"
15230 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15231 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15232 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15236 cat >conftest.$ac_ext <<_ACEOF
15239 cat confdefs.h >>conftest.$ac_ext
15240 cat >>conftest.$ac_ext <<_ACEOF
15241 /* end confdefs.h. */
15251 rm -f conftest.$ac_objext conftest$ac_exeext
15252 if { (ac_try="$ac_link"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258 (eval "$ac_link") 2>conftest.er1
15260 grep -v '^ *+' conftest.er1 >conftest.err
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } && {
15265 test -z "$ac_c_werror_flag" ||
15266 test ! -s conftest.err
15267 } && test -s conftest$ac_exeext &&
15268 $as_test_x conftest$ac_exeext; then
15269 ac_cv_e2fsprogs_use_static=yes
15271 echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_cv_e2fsprogs_use_static=no
15277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15278 conftest$ac_exeext conftest.$ac_ext
15279 LDFLAGS=$SAVE_LDFLAGS
15284 ac_cv_e2fsprogs_use_static=no
15287 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15288 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15290 if test $ac_cv_e2fsprogs_use_static = yes; then
15291 LDFLAG_STATIC=-static
15296 echo "Using Apple Darwin / GNU libintl workaround"
15297 cat >>confdefs.h <<\_ACEOF
15298 #define _INTL_REDIRECT_MACROS 1
15303 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15304 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15307 if test "$cross_compiling" = yes ; then
15310 DO_TEST_SUITE=check
15314 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15315 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15318 if test $cross_compiling = no; then
15319 BUILD_CFLAGS="$CFLAGS"
15320 BUILD_LDFLAGS="$LDFLAGS"
15327 test -d lib || mkdir lib
15328 test -d include || mkdir include
15329 test -d include/linux || mkdir include/linux
15330 test -d include/asm || mkdir include/asm
15331 for i in MCONFIG Makefile e2fsprogs.spec \
15332 util/Makefile util/subst.conf util/gen-tarball \
15333 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15334 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15335 lib/uuid/Makefile lib/uuid/uuid_types.h \
15336 lib/blkid/Makefile lib/blkid/blkid_types.h \
15337 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15338 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15339 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15340 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15341 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15342 if test -d `dirname ${srcdir}/$i` ; then
15343 outlist="$outlist $i"
15346 ac_config_files="$ac_config_files $outlist"
15348 cat >confcache <<\_ACEOF
15349 # This file is a shell script that caches the results of configure
15350 # tests run on this system so they can be shared between configure
15351 # scripts and configure runs, see configure's option --config-cache.
15352 # It is not useful on other systems. If it contains results you don't
15353 # want to keep, you may remove or edit it.
15355 # config.status only pays attention to the cache file if you give it
15356 # the --recheck option to rerun configure.
15358 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15359 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15360 # following values.
15364 # The following way of writing the cache mishandles newlines in values,
15365 # but we know of no workaround that is simple, portable, and efficient.
15366 # So, we kill variables containing newlines.
15367 # Ultrix sh set writes to stderr and can't be redirected directly,
15368 # and sets the high bit in the cache file unless we assign to the vars.
15370 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15371 eval ac_val=\$$ac_var
15375 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15376 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15379 _ | IFS | as_nl) ;; #(
15380 *) $as_unset $ac_var ;;
15386 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15387 *${as_nl}ac_space=\ *)
15388 # `set' does not quote correctly, so add quotes (double-quote
15389 # substitution turns \\\\ into \\, and sed turns \\ into \).
15392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15395 # `set' quotes correctly as required by POSIX, so do not add quotes.
15396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15407 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15409 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15410 if test -w "$cache_file"; then
15411 test "x$cache_file" != "x/dev/null" &&
15412 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15413 echo "$as_me: updating cache $cache_file" >&6;}
15414 cat confcache >$cache_file
15416 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15417 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15423 # Let make expand exec_prefix.
15424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15426 # Transform confdefs.h into DEFS.
15427 # Protect against shell expansion while executing Makefile rules.
15428 # Protect against Makefile macro expansion.
15430 # If the first sed substitution is executed (which looks for macros that
15431 # take arguments), then branch to the quote section. Otherwise,
15432 # look for a macro that doesn't take arguments.
15436 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15438 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15442 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15455 DEFS=`sed -n "$ac_script" confdefs.h`
15460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15461 # 1. Remove the extension, and $U if already installed.
15462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15463 ac_i=`echo "$ac_i" | sed "$ac_script"`
15464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15465 # will be set to the directory where LIBOBJS objects are built.
15466 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15467 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15469 LIBOBJS=$ac_libobjs
15471 LTLIBOBJS=$ac_ltlibobjs
15475 : ${CONFIG_STATUS=./config.status}
15476 ac_clean_files_save=$ac_clean_files
15477 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15478 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15479 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15480 cat >$CONFIG_STATUS <<_ACEOF
15482 # Generated by $as_me.
15483 # Run this file to recreate the current configuration.
15484 # Compiler output produced by configure, useful for debugging
15485 # configure, is in config.log if it exists.
15488 ac_cs_recheck=false
15490 SHELL=\${CONFIG_SHELL-$SHELL}
15493 cat >>$CONFIG_STATUS <<\_ACEOF
15494 ## --------------------- ##
15495 ## M4sh Initialization. ##
15496 ## --------------------- ##
15498 # Be more Bourne compatible
15499 DUALCASE=1; export DUALCASE # for MKS sh
15500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15504 # is contrary to our usage. Disable this feature.
15505 alias -g '${1+"$@"}'='"$@"'
15506 setopt NO_GLOB_SUBST
15508 case `(set -o) 2>/dev/null` in
15509 *posix*) set -o posix ;;
15518 # Avoid depending upon Character Ranges.
15519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15522 as_cr_digits='0123456789'
15523 as_cr_alnum=$as_cr_Letters$as_cr_digits
15525 # The user is always right.
15526 if test "${PATH_SEPARATOR+set}" != set; then
15527 echo "#! /bin/sh" >conf$$.sh
15528 echo "exit 0" >>conf$$.sh
15530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15538 # Support unset when possible.
15539 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15547 # We need space, tab and new line, in precisely that order. Quoting is
15548 # there to prevent editors from complaining about space-tab.
15549 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15550 # splitting by setting IFS to empty value.)
15555 # Find who we are. Look in the path if we contain no directory separator.
15557 *[\\/]* ) as_myself=$0 ;;
15558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15559 for as_dir in $PATH
15562 test -z "$as_dir" && as_dir=.
15563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15569 # We did not find ourselves, most probably we were run as `sh COMMAND'
15570 # in which case we are not to be found in the path.
15571 if test "x$as_myself" = x; then
15574 if test ! -f "$as_myself"; then
15575 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15576 { (exit 1); exit 1; }
15579 # Work around bugs in pre-3.0 UWIN ksh.
15580 for as_var in ENV MAIL MAILPATH
15581 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15589 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15590 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15591 LC_TELEPHONE LC_TIME
15593 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15594 eval $as_var=C; export $as_var
15596 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15600 # Required to use basename.
15601 if expr a : '\(a\)' >/dev/null 2>&1 &&
15602 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15608 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15609 as_basename=basename
15615 # Name of the executable.
15616 as_me=`$as_basename -- "$0" ||
15617 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15618 X"$0" : 'X\(//\)$' \| \
15619 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15621 sed '/^.*\/\([^/][^/]*\)\/*$/{
15640 as_lineno_1=$LINENO
15641 as_lineno_2=$LINENO
15642 test "x$as_lineno_1" != "x$as_lineno_2" &&
15643 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15645 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15646 # uniformly replaced by the line number. The first 'sed' inserts a
15647 # line-number line after each line using $LINENO; the second 'sed'
15648 # does the real work. The second script uses 'N' to pair each
15649 # line-number line with the line containing $LINENO, and appends
15650 # trailing '-' during substitution so that $LINENO is not a special
15651 # case at line end.
15652 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15653 # scripts with optimization help from Paolo Bonzini. Blame Lee
15654 # E. McMahon (1931-1989) for sed's syntax. :-)
15666 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15669 ' >$as_me.lineno &&
15670 chmod +x "$as_me.lineno" ||
15671 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15672 { (exit 1); exit 1; }; }
15674 # Don't try to exec as it changes $[0], causing all sort of problems
15675 # (the dirname of $[0] is not the place where we might find the
15676 # original and so on. Autoconf is especially sensitive to this).
15677 . "./$as_me.lineno"
15678 # Exit status is that of the last command.
15683 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15689 ECHO_C= ECHO_N= ECHO_T=
15690 case `echo -n x` in
15692 case `echo 'x\c'` in
15693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15700 if expr a : '\(a\)' >/dev/null 2>&1 &&
15701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15707 rm -f conf$$ conf$$.exe conf$$.file
15708 if test -d conf$$.dir; then
15709 rm -f conf$$.dir/conf$$.file
15715 if ln -s conf$$.file conf$$ 2>/dev/null; then
15717 # ... but there are two gotchas:
15718 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15719 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15720 # In both cases, we have to default to `cp -p'.
15721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15723 elif ln conf$$.file conf$$ 2>/dev/null; then
15728 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15729 rmdir conf$$.dir 2>/dev/null
15731 if mkdir -p . 2>/dev/null; then
15734 test -d ./-p && rmdir ./-p
15738 if test -x / >/dev/null 2>&1; then
15739 as_test_x='test -x'
15741 if ls -dL / >/dev/null 2>&1; then
15748 if test -d "$1"; then
15754 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15755 ???[sx]*):;;*)false;;esac;fi
15759 as_executable_p=$as_test_x
15761 # Sed expression to map a string onto a valid CPP name.
15762 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15764 # Sed expression to map a string onto a valid variable name.
15765 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15770 # Save the log message, to keep $[0] and so on meaningful, and to
15771 # report actual input values of CONFIG_FILES etc. instead of their
15772 # values after options handling.
15774 This file was extended by $as_me, which was
15775 generated by GNU Autoconf 2.61. Invocation command line was
15777 CONFIG_FILES = $CONFIG_FILES
15778 CONFIG_HEADERS = $CONFIG_HEADERS
15779 CONFIG_LINKS = $CONFIG_LINKS
15780 CONFIG_COMMANDS = $CONFIG_COMMANDS
15783 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15788 cat >>$CONFIG_STATUS <<_ACEOF
15789 # Files that config.status was made for.
15790 config_files="$ac_config_files"
15791 config_commands="$ac_config_commands"
15795 cat >>$CONFIG_STATUS <<\_ACEOF
15797 \`$as_me' instantiates files from templates according to the
15798 current configuration.
15800 Usage: $0 [OPTIONS] [FILE]...
15802 -h, --help print this help, then exit
15803 -V, --version print version number and configuration settings, then exit
15804 -q, --quiet do not print progress messages
15805 -d, --debug don't remove temporary files
15806 --recheck update $as_me by reconfiguring in the same conditions
15807 --file=FILE[:TEMPLATE]
15808 instantiate the configuration file FILE
15810 Configuration files:
15813 Configuration commands:
15816 Report bugs to <bug-autoconf@gnu.org>."
15819 cat >>$CONFIG_STATUS <<_ACEOF
15822 configured by $0, generated by GNU Autoconf 2.61,
15823 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15825 Copyright (C) 2006 Free Software Foundation, Inc.
15826 This config.status script is free software; the Free Software Foundation
15827 gives unlimited permission to copy, distribute and modify it."
15834 cat >>$CONFIG_STATUS <<\_ACEOF
15835 # If no file are specified by the user, then we need to provide default
15836 # value. By we need to know if files were specified by the user.
15842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15854 # Handling of the options.
15855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15858 echo "$ac_cs_version"; exit ;;
15859 --debug | --debu | --deb | --de | --d | -d )
15861 --file | --fil | --fi | --f )
15863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15864 ac_need_defaults=false;;
15865 --he | --h | --help | --hel | -h )
15866 echo "$ac_cs_usage"; exit ;;
15867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15868 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15871 # This is an error.
15872 -*) { echo "$as_me: error: unrecognized option: $1
15873 Try \`$0 --help' for more information." >&2
15874 { (exit 1); exit 1; }; } ;;
15876 *) ac_config_targets="$ac_config_targets $1"
15877 ac_need_defaults=false ;;
15883 ac_configure_extra_args=
15885 if $ac_cs_silent; then
15887 ac_configure_extra_args="$ac_configure_extra_args --silent"
15891 cat >>$CONFIG_STATUS <<_ACEOF
15892 if \$ac_cs_recheck; then
15893 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15894 CONFIG_SHELL=$SHELL
15895 export CONFIG_SHELL
15896 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15900 cat >>$CONFIG_STATUS <<\_ACEOF
15904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905 ## Running $as_me. ##
15911 cat >>$CONFIG_STATUS <<_ACEOF
15915 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15916 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15919 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15920 LINGUAS="${LINGUAS-%UNSET%}"
15925 cat >>$CONFIG_STATUS <<\_ACEOF
15927 # Handling of arguments.
15928 for ac_config_target in $ac_config_targets
15930 case $ac_config_target in
15931 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15932 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15934 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15935 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15936 { (exit 1); exit 1; }; };;
15941 # If the user did not use the arguments to specify the items to instantiate,
15942 # then the envvar interface is used. Set only those that are not.
15943 # We use the long form for the default assignment because of an extremely
15944 # bizarre bug on SunOS 4.1.3.
15945 if $ac_need_defaults; then
15946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15950 # Have a temporary directory for convenience. Make it in the build tree
15951 # simply because there is no reason against having it here, and in addition,
15952 # creating and moving files from /tmp can sometimes cause problems.
15953 # Hook for its removal unless debugging.
15954 # Note that there is a small window in which the directory will not be cleaned:
15955 # after its creation but before its name has been assigned to `$tmp'.
15959 trap 'exit_status=$?
15960 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15962 trap '{ (exit 1); exit 1; }' 1 2 13 15
15964 # Create a (secure) tmp directory for tmp files.
15967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15968 test -n "$tmp" && test -d "$tmp"
15971 tmp=./conf$$-$RANDOM
15972 (umask 077 && mkdir "$tmp")
15975 echo "$me: cannot create a temporary directory in ." >&2
15976 { (exit 1); exit 1; }
15980 # Set up the sed scripts for CONFIG_FILES section.
15983 # No need to generate the scripts if there are no CONFIG_FILES.
15984 # This happens for instance when ./config.status config.h
15985 if test -n "$CONFIG_FILES"; then
15989 # Create sed commands to just substitute file output variables.
15991 # Remaining file output variables are in a fragment that also has non-file
15997 for ac_last_try in false false false false false :; do
15998 cat >conf$$subs.sed <<_ACEOF
15999 SHELL!$SHELL$ac_delim
16000 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16001 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16002 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16003 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16004 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16005 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16006 exec_prefix!$exec_prefix$ac_delim
16007 prefix!$prefix$ac_delim
16008 program_transform_name!$program_transform_name$ac_delim
16009 bindir!$bindir$ac_delim
16010 sbindir!$sbindir$ac_delim
16011 libexecdir!$libexecdir$ac_delim
16012 datarootdir!$datarootdir$ac_delim
16013 datadir!$datadir$ac_delim
16014 sysconfdir!$sysconfdir$ac_delim
16015 sharedstatedir!$sharedstatedir$ac_delim
16016 localstatedir!$localstatedir$ac_delim
16017 includedir!$includedir$ac_delim
16018 oldincludedir!$oldincludedir$ac_delim
16019 docdir!$docdir$ac_delim
16020 infodir!$infodir$ac_delim
16021 htmldir!$htmldir$ac_delim
16022 dvidir!$dvidir$ac_delim
16023 pdfdir!$pdfdir$ac_delim
16024 psdir!$psdir$ac_delim
16025 libdir!$libdir$ac_delim
16026 localedir!$localedir$ac_delim
16027 mandir!$mandir$ac_delim
16028 DEFS!$DEFS$ac_delim
16029 ECHO_C!$ECHO_C$ac_delim
16030 ECHO_N!$ECHO_N$ac_delim
16031 ECHO_T!$ECHO_T$ac_delim
16032 LIBS!$LIBS$ac_delim
16033 build_alias!$build_alias$ac_delim
16034 host_alias!$host_alias$ac_delim
16035 target_alias!$target_alias$ac_delim
16036 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16037 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16038 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16039 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16040 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16041 build!$build$ac_delim
16042 build_cpu!$build_cpu$ac_delim
16043 build_vendor!$build_vendor$ac_delim
16044 build_os!$build_os$ac_delim
16045 host!$host$ac_delim
16046 host_cpu!$host_cpu$ac_delim
16047 host_vendor!$host_vendor$ac_delim
16048 host_os!$host_os$ac_delim
16050 CFLAGS!$CFLAGS$ac_delim
16051 LDFLAGS!$LDFLAGS$ac_delim
16052 CPPFLAGS!$CPPFLAGS$ac_delim
16053 ac_ct_CC!$ac_ct_CC$ac_delim
16054 EXEEXT!$EXEEXT$ac_delim
16055 OBJEXT!$OBJEXT$ac_delim
16058 GREP!$GREP$ac_delim
16059 EGREP!$EGREP$ac_delim
16060 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16061 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16062 HTREE_CMT!$HTREE_CMT$ac_delim
16063 ELF_CMT!$ELF_CMT$ac_delim
16064 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16065 PROFILE_CMT!$PROFILE_CMT$ac_delim
16066 CHECKER_CMT!$CHECKER_CMT$ac_delim
16067 LIB_EXT!$LIB_EXT$ac_delim
16068 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16069 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16070 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16071 IMAGER_CMT!$IMAGER_CMT$ac_delim
16074 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16076 elif $ac_last_try; then
16077 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16078 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16079 { (exit 1); exit 1; }; }
16081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16085 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16086 if test -n "$ac_eof"; then
16087 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16088 ac_eof=`expr $ac_eof + 1`
16091 cat >>$CONFIG_STATUS <<_ACEOF
16092 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16094 /^[ ]*@MCONFIG@[ ]*$/{
16098 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16102 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16106 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16107 r $MAKEFILE_PROFILE
16110 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16111 r $MAKEFILE_CHECKER
16114 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16115 r $MAKEFILE_LIBRARY
16118 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16119 r $ASM_TYPES_HEADER
16122 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16123 r $PUBLIC_CONFIG_HEADER
16128 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16129 s/^/s,@/; s/!/@,|#_!!_#|/
16132 s/'"$ac_delim"'$/,g/; t
16134 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16135 ' >>$CONFIG_STATUS <conf$$subs.sed
16136 rm -f conf$$subs.sed
16137 cat >>$CONFIG_STATUS <<_ACEOF
16143 for ac_last_try in false false false false false :; do
16144 cat >conf$$subs.sed <<_ACEOF
16145 RESIZER_CMT!$RESIZER_CMT$ac_delim
16146 FSCK_PROG!$FSCK_PROG$ac_delim
16147 FSCK_MAN!$FSCK_MAN$ac_delim
16148 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16149 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16150 PKG_CONFIG!$PKG_CONFIG$ac_delim
16151 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16152 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16153 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16154 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16155 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16156 UUIDD_CMT!$UUIDD_CMT$ac_delim
16157 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16158 PACKAGE!$PACKAGE$ac_delim
16159 VERSION!$VERSION$ac_delim
16160 SET_MAKE!$SET_MAKE$ac_delim
16161 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16162 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16163 INSTALL_DATA!$INSTALL_DATA$ac_delim
16164 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16165 USE_NLS!$USE_NLS$ac_delim
16166 MSGFMT!$MSGFMT$ac_delim
16167 GMSGFMT!$GMSGFMT$ac_delim
16168 XGETTEXT!$XGETTEXT$ac_delim
16169 MSGMERGE!$MSGMERGE$ac_delim
16170 RANLIB!$RANLIB$ac_delim
16171 ALLOCA!$ALLOCA$ac_delim
16172 GLIBC21!$GLIBC21$ac_delim
16173 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16174 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16175 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16176 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16177 LIBICONV!$LIBICONV$ac_delim
16178 LTLIBICONV!$LTLIBICONV$ac_delim
16179 INTLBISON!$INTLBISON$ac_delim
16180 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16181 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16182 CATOBJEXT!$CATOBJEXT$ac_delim
16183 DATADIRNAME!$DATADIRNAME$ac_delim
16184 INSTOBJEXT!$INSTOBJEXT$ac_delim
16185 GENCAT!$GENCAT$ac_delim
16186 INTLOBJS!$INTLOBJS$ac_delim
16187 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16188 INTLLIBS!$INTLLIBS$ac_delim
16189 LIBINTL!$LIBINTL$ac_delim
16190 LTLIBINTL!$LTLIBINTL$ac_delim
16191 POSUB!$POSUB$ac_delim
16192 BINARY_TYPE!$BINARY_TYPE$ac_delim
16194 LN_S!$LN_S$ac_delim
16198 CHMOD!$CHMOD$ac_delim
16201 PERL!$PERL$ac_delim
16202 LDCONFIG!$LDCONFIG$ac_delim
16204 STRIP!$STRIP$ac_delim
16205 MAKEINFO!$MAKEINFO$ac_delim
16206 BUILD_CC!$BUILD_CC$ac_delim
16207 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16208 SIZEOF_INT!$SIZEOF_INT$ac_delim
16209 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16210 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16211 SOCKET_LIB!$SOCKET_LIB$ac_delim
16212 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16213 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16214 LINUX_CMT!$LINUX_CMT$ac_delim
16215 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16216 UNIX_CMT!$UNIX_CMT$ac_delim
16217 root_prefix!$root_prefix$ac_delim
16218 root_bindir!$root_bindir$ac_delim
16219 root_sbindir!$root_sbindir$ac_delim
16220 root_libdir!$root_libdir$ac_delim
16221 root_sysconfdir!$root_sysconfdir$ac_delim
16222 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16223 SS_DIR!$SS_DIR$ac_delim
16224 ET_DIR!$ET_DIR$ac_delim
16225 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16226 INTL_FLAGS!$INTL_FLAGS$ac_delim
16227 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16228 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16229 LIBOBJS!$LIBOBJS$ac_delim
16230 LTLIBOBJS!$LTLIBOBJS$ac_delim
16233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16235 elif $ac_last_try; then
16236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16238 { (exit 1); exit 1; }; }
16240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16244 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16245 if test -n "$ac_eof"; then
16246 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16247 ac_eof=`expr $ac_eof + 1`
16250 cat >>$CONFIG_STATUS <<_ACEOF
16251 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16256 s/^/s,@/; s/!/@,|#_!!_#|/
16259 s/'"$ac_delim"'$/,g/; t
16261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16262 ' >>$CONFIG_STATUS <conf$$subs.sed
16263 rm -f conf$$subs.sed
16264 cat >>$CONFIG_STATUS <<_ACEOF
16271 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16272 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16273 # trailing colons and then remove the whole line if VPATH becomes empty
16274 # (actually we leave an empty line to preserve line numbers).
16275 if test "x$srcdir" = x.; then
16276 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16277 s/:*\$(srcdir):*/:/
16278 s/:*\${srcdir}:*/:/
16280 s/^\([^=]*=[ ]*\):*/\1/
16286 cat >>$CONFIG_STATUS <<\_ACEOF
16287 fi # test -n "$CONFIG_FILES"
16290 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16293 :[FHLC]) ac_mode=$ac_tag; continue;;
16295 case $ac_mode$ac_tag in
16297 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16298 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16299 { (exit 1); exit 1; }; };;
16300 :[FH]-) ac_tag=-:-;;
16301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16318 -) ac_f="$tmp/stdin";;
16319 *) # Look for the file first in the build tree, then in the source tree
16320 # (if the path is not absolute). The absolute path cannot be DOS-style,
16321 # because $ac_f cannot contain `:'.
16325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16327 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16328 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16329 { (exit 1); exit 1; }; };;
16331 ac_file_inputs="$ac_file_inputs $ac_f"
16334 # Let's still pretend it is `configure' which instantiates (i.e., don't
16335 # use $as_me), people would be surprised to read:
16336 # /* config.h. Generated by config.status. */
16337 configure_input="Generated from "`IFS=:
16338 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16339 if test x"$ac_file" != x-; then
16340 configure_input="$ac_file. $configure_input"
16341 { echo "$as_me:$LINENO: creating $ac_file" >&5
16342 echo "$as_me: creating $ac_file" >&6;}
16346 *:-:* | *:-) cat >"$tmp/stdin";;
16351 ac_dir=`$as_dirname -- "$ac_file" ||
16352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16353 X"$ac_file" : 'X\(//\)[^/]' \| \
16354 X"$ac_file" : 'X\(//\)$' \| \
16355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16361 /^X\(\/\/\)[^/].*/{
16376 -*) as_dir=./$as_dir;;
16378 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16382 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16383 *) as_qdir=$as_dir;;
16385 as_dirs="'$as_qdir' $as_dirs"
16386 as_dir=`$as_dirname -- "$as_dir" ||
16387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16388 X"$as_dir" : 'X\(//\)[^/]' \| \
16389 X"$as_dir" : 'X\(//\)$' \| \
16390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16396 /^X\(\/\/\)[^/].*/{
16409 test -d "$as_dir" && break
16411 test -z "$as_dirs" || eval "mkdir $as_dirs"
16412 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16413 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16414 { (exit 1); exit 1; }; }; }
16418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16421 # A ".." for each directory in $ac_dir_suffix.
16422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16423 case $ac_top_builddir_sub in
16424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16428 ac_abs_top_builddir=$ac_pwd
16429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16430 # for backward compatibility:
16431 ac_top_builddir=$ac_top_build_prefix
16434 .) # We are building in place.
16436 ac_top_srcdir=$ac_top_builddir_sub
16437 ac_abs_top_srcdir=$ac_pwd ;;
16438 [\\/]* | ?:[\\/]* ) # Absolute name.
16439 ac_srcdir=$srcdir$ac_dir_suffix;
16440 ac_top_srcdir=$srcdir
16441 ac_abs_top_srcdir=$srcdir ;;
16442 *) # Relative name.
16443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16444 ac_top_srcdir=$ac_top_build_prefix$srcdir
16445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16458 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16462 cat >>$CONFIG_STATUS <<\_ACEOF
16463 # If the template does not know about datarootdir, expand it.
16464 # FIXME: This hack should be removed a few years after 2.60.
16465 ac_datarootdir_hack=; ac_datarootdir_seen=
16467 case `sed -n '/datarootdir/ {
16476 ' $ac_file_inputs` in
16477 *datarootdir*) ac_datarootdir_seen=yes;;
16478 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16479 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16480 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16482 cat >>$CONFIG_STATUS <<_ACEOF
16483 ac_datarootdir_hack='
16484 s&@datadir@&$datadir&g
16485 s&@docdir@&$docdir&g
16486 s&@infodir@&$infodir&g
16487 s&@localedir@&$localedir&g
16488 s&@mandir@&$mandir&g
16489 s&\\\${datarootdir}&$datarootdir&g' ;;
16493 # Neutralize VPATH when `$srcdir' = `.'.
16494 # Shell code in configure.ac might set extrasub.
16495 # FIXME: do we really want to maintain this feature?
16496 cat >>$CONFIG_STATUS <<_ACEOF
16500 cat >>$CONFIG_STATUS <<\_ACEOF
16502 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16503 s&@configure_input@&$configure_input&;t t
16504 s&@top_builddir@&$ac_top_builddir_sub&;t t
16505 s&@srcdir@&$ac_srcdir&;t t
16506 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16507 s&@top_srcdir@&$ac_top_srcdir&;t t
16508 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16509 s&@builddir@&$ac_builddir&;t t
16510 s&@abs_builddir@&$ac_abs_builddir&;t t
16511 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16512 s&@INSTALL@&$ac_INSTALL&;t t
16513 $ac_datarootdir_hack
16514 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16519 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16520 which seems to be undefined. Please make sure it is defined." >&5
16521 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16522 which seems to be undefined. Please make sure it is defined." >&2;}
16526 -) cat "$tmp/out"; rm -f "$tmp/out";;
16527 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16532 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16533 echo "$as_me: executing $ac_file commands" >&6;}
16538 case $ac_file$ac_mode in
16540 for ac_file in $CONFIG_FILES; do
16541 # Support "outfile[:infile[:infile...]]"
16543 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16545 # PO directories have a Makefile.in generated from Makefile.in.in.
16546 case "$ac_file" in */Makefile.in)
16547 # Adjust a relative srcdir.
16548 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16549 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16550 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16551 # In autoconf-2.13 it is called $ac_given_srcdir.
16552 # In autoconf-2.50 it is called $srcdir.
16553 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16554 case "$ac_given_srcdir" in
16555 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16556 /*) top_srcdir="$ac_given_srcdir" ;;
16557 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16559 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16560 rm -f "$ac_dir/POTFILES"
16561 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16562 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16563 POMAKEFILEDEPS="POTFILES.in"
16564 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16565 # on $ac_dir but don't depend on user-specified configuration
16567 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16568 # The LINGUAS file contains the set of available languages.
16569 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16570 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16572 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16573 # Hide the ALL_LINGUAS assigment from automake.
16574 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16575 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16577 # The set of available languages was given in configure.in.
16578 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16581 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16582 # Compute UPDATEPOFILES
16583 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16584 # Compute DUMMYPOFILES
16585 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16587 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16588 case "$ac_given_srcdir" in
16590 *) srcdirpre='$(srcdir)/' ;;
16596 for lang in $ALL_LINGUAS; do
16597 POFILES="$POFILES $srcdirpre$lang.po"
16598 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16599 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16600 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16602 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16603 # environment variable.
16605 if test -n "$ALL_LINGUAS"; then
16606 for presentlang in $ALL_LINGUAS; do
16608 if test "%UNSET%" != "$LINGUAS"; then
16609 desiredlanguages="$LINGUAS"
16611 desiredlanguages="$ALL_LINGUAS"
16613 for desiredlang in $desiredlanguages; do
16614 # Use the presentlang catalog if desiredlang is
16615 # a. equal to presentlang, or
16616 # b. a variant of presentlang (because in this case,
16617 # presentlang can be used as a fallback for messages
16618 # which are not translated in the desiredlang catalog).
16619 case "$desiredlang" in
16620 "$presentlang"*) useit=yes;;
16623 if test $useit = yes; then
16624 INST_LINGUAS="$INST_LINGUAS $presentlang"
16629 if test -n "$INST_LINGUAS"; then
16630 for lang in $INST_LINGUAS; do
16631 CATALOGS="$CATALOGS $lang.gmo"
16634 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16635 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"
16636 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16637 if test -f "$f"; then
16639 *.orig | *.bak | *~) ;;
16640 *) cat "$f" >> "$ac_dir/Makefile" ;;
16653 { (exit 0); exit 0; }
16655 chmod +x $CONFIG_STATUS
16656 ac_clean_files=$ac_clean_files_save
16659 # configure is writing to config.log, and then calls config.status.
16660 # config.status does its own redirection, appending to config.log.
16661 # Unfortunately, on DOS this fails, as config.log is still kept open
16662 # by configure, so config.status won't be able to write to it; its
16663 # output is simply discarded. So we exec the FD to /dev/null,
16664 # effectively closing config.log, so it can be properly (re)opened and
16665 # appended to by config.status. When coming back to configure, we
16666 # need to make the FD available again.
16667 if test "$no_create" != yes; then
16669 ac_config_status_args=
16670 test "$silent" = yes &&
16671 ac_config_status_args="$ac_config_status_args --quiet"
16673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16676 # would make configure fail if this is the last instruction.
16677 $ac_cs_success || { (exit 1); exit 1; }
16680 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi