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 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1912 E2FSPROGS_PKGVER="$base_ver"
1916 unset DATE MONTH YEAR base_ver pre_vers date_spec
1917 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1918 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1924 # Make sure we can run config.sub.
1925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1926 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1927 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1928 { (exit 1); exit 1; }; }
1930 { echo "$as_me:$LINENO: checking build system type" >&5
1931 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1932 if test "${ac_cv_build+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 ac_build_alias=$build_alias
1936 test "x$ac_build_alias" = x &&
1937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1938 test "x$ac_build_alias" = x &&
1939 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1940 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1941 { (exit 1); exit 1; }; }
1942 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1943 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1944 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1945 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1949 echo "${ECHO_T}$ac_cv_build" >&6; }
1950 case $ac_cv_build in
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1953 echo "$as_me: error: invalid value of canonical build" >&2;}
1954 { (exit 1); exit 1; }; };;
1957 ac_save_IFS=$IFS; IFS='-'
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1970 { echo "$as_me:$LINENO: checking host system type" >&5
1971 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_host+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test "x$host_alias" = x; then
1976 ac_cv_host=$ac_cv_build
1978 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1981 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1986 echo "${ECHO_T}$ac_cv_host" >&6; }
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1990 echo "$as_me: error: invalid value of canonical host" >&2;}
1991 { (exit 1); exit 1; }; };;
1994 ac_save_IFS=$IFS; IFS='-'
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2004 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
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"
2013 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2014 echo "${ECHO_T}CC=$CC" >&6; }
2017 # Check whether --with-cc was given.
2018 if test "${with_cc+set}" = set; then
2019 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2020 echo "${ECHO_T}CC=$withval" >&6; }
2023 if test -z "$CC" ; then CC=cc; fi
2024 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2025 echo "${ECHO_T}CC defaults to $CC" >&6; }
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 if test -n "$CC"; then
2064 { echo "$as_me:$LINENO: result: $CC" >&5
2065 echo "${ECHO_T}$CC" >&6; }
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2073 if test -z "$ac_cv_prog_CC"; then
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076 set dummy gcc; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_ac_ct_CC="gcc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6; }
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2111 if test "x$ac_ct_CC" = x; then
2114 case $cross_compiling:$ac_tool_warned in
2116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet. If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&5
2119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2120 whose name does not start with the host triplet. If you think this
2121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2122 ac_tool_warned=yes ;;
2130 if test -z "$CC"; then
2131 if test -n "$ac_tool_prefix"; then
2132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2133 set dummy ${ac_tool_prefix}cc; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 if test -n "$CC"; then
2161 { echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6; }
2164 { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2171 if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2217 if test -n "$CC"; then
2218 { echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6; }
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2227 if test -z "$CC"; then
2228 if test -n "$ac_tool_prefix"; then
2229 for ac_prog in cl.exe
2231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 if test -n "$CC"; then
2260 { echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6; }
2263 { echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6; }
2268 test -n "$CC" && break
2271 if test -z "$CC"; then
2273 for ac_prog in cl.exe
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_ac_ct_CC="$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2312 test -n "$ac_ct_CC" && break
2315 if test "x$ac_ct_CC" = x; then
2318 case $cross_compiling:$ac_tool_warned in
2320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&5
2323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet. If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326 ac_tool_warned=yes ;;
2335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: no acceptable C compiler found in \$PATH
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2341 # Provide some information about the compiler.
2342 echo "$as_me:$LINENO: checking for C compiler version" >&5
2343 ac_compiler=`set X $ac_compile; echo $2`
2344 { (ac_try="$ac_compiler --version >&5"
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compiler --version >&5") 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2354 { (ac_try="$ac_compiler -v >&5"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler -v >&5") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364 { (ac_try="$ac_compiler -V >&5"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -V >&5") 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2375 cat >conftest.$ac_ext <<_ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2390 ac_clean_files_save=$ac_clean_files
2391 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392 # Try to create an executable without -o first, disregard a.out.
2393 # It will help us diagnose broken compilers, and finding out an intuition
2395 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2396 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2397 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2399 # List of possible output files, starting from the most likely.
2400 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2401 # only as a last resort. b.out is created by i960 compilers.
2402 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2404 # The IRIX 6 linker writes into existing files which may not be
2405 # executable, retaining their permissions. Remove them first so a
2406 # subsequent execution test works.
2408 for ac_file in $ac_files
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2417 if { (ac_try="$ac_link_default"
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_link_default") 2>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; then
2427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2430 # so that the user can short-circuit this test for compilers unknown to
2432 for ac_file in $ac_files ''
2434 test -f "$ac_file" || continue
2436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2439 # We found the default executable, but exeext='' is most
2443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447 # We set ac_cv_exeext here because the later test for it is not
2448 # safe: cross compilers may not add the suffix if given an `-o'
2449 # argument, so we may need to know it at that point already.
2450 # Even if this section looks crufty: it has the advantage of
2457 test "$ac_cv_exeext" = no && ac_cv_exeext=
2463 { echo "$as_me:$LINENO: result: $ac_file" >&5
2464 echo "${ECHO_T}$ac_file" >&6; }
2465 if test -z "$ac_file"; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: C compiler cannot create executables
2472 See \`config.log' for more details." >&2;}
2473 { (exit 77); exit 77; }; }
2476 ac_exeext=$ac_cv_exeext
2478 # Check that the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2481 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2482 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2483 # If not cross compiling, check that we can run a simple program.
2484 if test "$cross_compiling" != yes; then
2485 if { ac_try='./$ac_file'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 if test "$cross_compiling" = maybe; then
2500 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2510 { echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6; }
2513 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2514 ac_clean_files=$ac_clean_files_save
2515 # Check that the compiler produces executables we can run. If not, either
2516 # the compiler is broken, or we cross compile.
2517 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2518 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2519 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2520 echo "${ECHO_T}$cross_compiling" >&6; }
2522 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2523 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2524 if { (ac_try="$ac_link"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_link") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536 # work properly (i.e., refer to `conftest.exe'), while it won't with
2538 for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2551 See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2555 rm -f conftest$ac_cv_exeext
2556 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2557 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2559 rm -f conftest.$ac_ext
2560 EXEEXT=$ac_cv_exeext
2562 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2564 if test "${ac_cv_objext+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.o conftest.obj
2583 if { (ac_try="$ac_compile"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 for ac_file in conftest.o conftest.obj conftest.*; do
2594 test -f "$ac_file" || continue;
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6; }
2616 OBJEXT=$ac_cv_objext
2618 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (ac_try="$ac_compile"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2670 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2672 GCC=`test $ac_compiler_gnu = yes && echo yes`
2673 ac_test_CFLAGS=${CFLAGS+set}
2674 ac_save_CFLAGS=$CFLAGS
2675 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 ac_save_c_werror_flag=$ac_c_werror_flag
2681 ac_c_werror_flag=yes
2684 cat >conftest.$ac_ext <<_ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
2708 grep -v '^ *+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 ac_c_werror_flag=$ac_save_c_werror_flag
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2810 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2812 if test "$ac_test_CFLAGS" = set; then
2813 CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2821 if test "$GCC" = yes; then
2827 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2828 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_cc_c89+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_cv_prog_cc_c89=no
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2858 s = g (p, va_arg (v,int));
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
2866 as 'x'. The following induces an error, until -std is added to get
2867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
2869 that's true only with -std. */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873 inside strings and character constants. */
2875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877 int test (int i, double x);
2878 struct s1 {int (*f) (int a);};
2879 struct s2 {int (*f) (double a);};
2880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (ac_try="$ac_compile"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>conftest.er1
2904 grep -v '^ *+' conftest.er1 >conftest.err
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest.$ac_objext; then
2912 ac_cv_prog_cc_c89=$ac_arg
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2920 rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
2923 rm -f conftest.$ac_ext
2928 case "x$ac_cv_prog_cc_c89" in
2930 { echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6; } ;;
2933 { echo "$as_me:$LINENO: result: unsupported" >&5
2934 echo "${ECHO_T}unsupported" >&6; } ;;
2936 CC="$CC $ac_cv_prog_cc_c89"
2937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2954 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2955 # On Suns, sometimes $CPP names a directory.
2956 if test -n "$CPP" && test -d "$CPP"; then
2959 if test -z "$CPP"; then
2960 if test "${ac_cv_prog_CPP+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 # Double quotes because CPP needs to be expanded
2964 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2967 for ac_c_preproc_warn_flag in '' yes
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972 # <limits.h> exists even on freestanding compilers.
2973 # On the NeXT, cc -E runs the code through the compiler's parser,
2974 # not just through cpp. "Syntax error" is here to catch this case.
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2982 # include <limits.h>
2984 # include <assert.h>
2988 if { (ac_try="$ac_cpp conftest.$ac_ext"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null && {
3001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Broken: fails on valid input.
3013 rm -f conftest.err conftest.$ac_ext
3015 # OK, works on sane cases. Now check whether nonexistent headers
3016 # can be detected and how.
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #include <ac_nonexistent.h>
3025 if { (ac_try="$ac_cpp conftest.$ac_ext"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null && {
3038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3041 # Broken: success on invalid input.
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 # Passes both tests.
3052 rm -f conftest.err conftest.$ac_ext
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3069 { echo "$as_me:$LINENO: result: $CPP" >&5
3070 echo "${ECHO_T}$CPP" >&6; }
3072 for ac_c_preproc_warn_flag in '' yes
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3087 # include <limits.h>
3089 # include <assert.h>
3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 # Broken: fails on valid input.
3118 rm -f conftest.err conftest.$ac_ext
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <ac_nonexistent.h>
3130 if { (ac_try="$ac_cpp conftest.$ac_ext"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3146 # Broken: success on invalid input.
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Passes both tests.
3157 rm -f conftest.err conftest.$ac_ext
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.err conftest.$ac_ext
3162 if $ac_preproc_ok; then
3165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 # Check whether --with-linker was given.
3180 if test "${with_linker+set}" = set; then
3181 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3182 echo "${ECHO_T}LD=$withval" >&6; }
3185 if test -z "$LD" ; then LD=$CC; fi
3186 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3187 echo "${ECHO_T}LD defaults to $LD" >&6; }
3192 # Check whether --with-ccopts was given.
3193 if test "${with_ccopts+set}" = set; then
3194 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3195 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202 if test "${ac_cv_path_GREP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 # Extract the first word of "grep ggrep" to use in msg output
3206 if test -z "$GREP"; then
3207 set dummy grep ggrep; ac_prog_name=$2
3208 if test "${ac_cv_path_GREP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_path_GREP_found=false
3212 # Loop through the user's path and test for each of PROGNAME-LIST
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3217 test -z "$as_dir" && as_dir=.
3218 for ac_prog in grep ggrep; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3222 # Check for GNU ac_path_GREP and select it if it is found.
3223 # Check for GNU $ac_path_GREP
3224 case `"$ac_path_GREP" --version 2>&1` in
3226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3232 cat "conftest.in" "conftest.in" >"conftest.tmp"
3233 mv "conftest.tmp" "conftest.in"
3234 cp "conftest.in" "conftest.nl"
3235 echo 'GREP' >> "conftest.nl"
3236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238 ac_count=`expr $ac_count + 1`
3239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240 # Best one so far, save it but keep looking for a better one
3241 ac_cv_path_GREP="$ac_path_GREP"
3242 ac_path_GREP_max=$ac_count
3244 # 10*(2^10) chars as input seems more than enough
3245 test $ac_count -gt 10 && break
3247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3251 $ac_path_GREP_found && break 3
3261 GREP="$ac_cv_path_GREP"
3262 if test -z "$GREP"; then
3263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265 { (exit 1); exit 1; }; }
3269 ac_cv_path_GREP=$GREP
3274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
3279 { echo "$as_me:$LINENO: checking for egrep" >&5
3280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281 if test "${ac_cv_path_EGREP+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285 then ac_cv_path_EGREP="$GREP -E"
3287 # Extract the first word of "egrep" to use in msg output
3288 if test -z "$EGREP"; then
3289 set dummy egrep; ac_prog_name=$2
3290 if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 ac_path_EGREP_found=false
3294 # Loop through the user's path and test for each of PROGNAME-LIST
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3299 test -z "$as_dir" && as_dir=.
3300 for ac_prog in egrep; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3304 # Check for GNU ac_path_EGREP and select it if it is found.
3305 # Check for GNU $ac_path_EGREP
3306 case `"$ac_path_EGREP" --version 2>&1` in
3308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
3317 echo 'EGREP' >> "conftest.nl"
3318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_EGREP="$ac_path_EGREP"
3324 ac_path_EGREP_max=$ac_count
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 $ac_path_EGREP_found && break 3
3343 EGREP="$ac_cv_path_EGREP"
3344 if test -z "$EGREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347 { (exit 1); exit 1; }; }
3351 ac_cv_path_EGREP=$EGREP
3357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359 EGREP="$ac_cv_path_EGREP"
3362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3364 if test "${ac_cv_header_stdc+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_cv_header_stdc=yes
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_header_stdc=no
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 if test $ac_cv_header_stdc = yes; then
3414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "memchr" >/dev/null 2>&1; then
3428 ac_cv_header_stdc=no
3434 if test $ac_cv_header_stdc = yes; then
3435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "free" >/dev/null 2>&1; then
3449 ac_cv_header_stdc=no
3455 if test $ac_cv_header_stdc = yes; then
3456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457 if test "$cross_compiling" = yes; then
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3468 #if ((' ' & 0x0FF) == 0x020)
3469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3472 # define ISLOWER(c) \
3473 (('a' <= (c) && (c) <= 'i') \
3474 || ('j' <= (c) && (c) <= 'r') \
3475 || ('s' <= (c) && (c) <= 'z'))
3476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3484 for (i = 0; i < 256; i++)
3485 if (XOR (islower (i), ISLOWER (i))
3486 || toupper (i) != TOUPPER (i))
3491 rm -f conftest$ac_exeext
3492 if { (ac_try="$ac_link"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_link") 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3513 echo "$as_me: program exited with status $ac_status" >&5
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_cv_header_stdc=no
3520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3528 if test $ac_cv_header_stdc = yes; then
3530 cat >>confdefs.h <<\_ACEOF
3531 #define STDC_HEADERS 1
3536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547 inttypes.h stdint.h unistd.h
3549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3563 #include <$ac_header>
3565 rm -f conftest.$ac_objext
3566 if { (ac_try="$ac_compile"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_compile") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } && {
3579 test -z "$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 } && test -s conftest.$ac_objext; then
3582 eval "$as_ac_Header=yes"
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 eval "$as_ac_Header=no"
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_res=`eval echo '${'$as_ac_Header'}'`
3593 { echo "$as_me:$LINENO: result: $ac_res" >&5
3594 echo "${ECHO_T}$ac_res" >&6; }
3595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3605 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3607 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3612 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3614 # Is the header compilable?
3615 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3616 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3617 cat >conftest.$ac_ext <<_ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 $ac_includes_default
3624 #include <linux/fs.h>
3626 rm -f conftest.$ac_objext
3627 if { (ac_try="$ac_compile"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_compile") 2>conftest.er1
3635 grep -v '^ *+' conftest.er1 >conftest.err
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest.$ac_objext; then
3643 ac_header_compiler=yes
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 ac_header_compiler=no
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3653 echo "${ECHO_T}$ac_header_compiler" >&6; }
3655 # Is the header present?
3656 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3657 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3658 cat >conftest.$ac_ext <<_ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 #include <linux/fs.h>
3666 if { (ac_try="$ac_cpp conftest.$ac_ext"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3682 ac_header_preproc=yes
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_header_preproc=no
3690 rm -f conftest.err conftest.$ac_ext
3691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692 echo "${ECHO_T}$ac_header_preproc" >&6; }
3694 # So? What about this header?
3695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3698 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3700 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3701 ac_header_preproc=yes
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3705 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3707 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3709 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3711 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3713 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3715 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3719 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3720 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3721 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 ac_cv_header_linux_fs_h=$ac_header_preproc
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3730 if test $ac_cv_header_linux_fs_h = yes; then
3737 if test "$linux_headers" != yes; then
3738 LINUX_INCLUDE='-I$(top_builddir)/include'
3741 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3742 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3743 if test "$GCC" = yes
3746 alpha) addcflags="-mieee" ;;
3749 if test "x$addcflags" != x
3751 { echo "$as_me:$LINENO: result: $addcflags" >&5
3752 echo "${ECHO_T}$addcflags" >&6; }
3753 CFLAGS="$addcflags $CFLAGS"
3755 { echo "$as_me:$LINENO: result: (none)" >&5
3756 echo "${ECHO_T}(none)" >&6; }
3762 # Check whether --with-ldopts was given.
3763 if test "${with_ldopts+set}" = set; then
3764 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3765 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3772 # Check whether --with-root-prefix was given.
3773 if test "${with_root_prefix+set}" = set; then
3774 withval=$with_root_prefix; root_prefix=$withval
3778 # Check whether --enable-maintainer-mode was given.
3779 if test "${enable_maintainer_mode+set}" = set; then
3780 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3783 echo "Disabling maintainer mode"
3786 echo "Enabling maintainer mode"
3791 echo "Disabling maintainer mode by default"
3796 # Check whether --enable-compression was given.
3797 if test "${enable_compression+set}" = set; then
3798 enableval=$enable_compression; if test "$enableval" = "no"
3800 echo "Disabling compression support"
3802 cat >>confdefs.h <<\_ACEOF
3803 #define ENABLE_COMPRESSION 1
3806 echo "Enabling compression support"
3807 echo "WARNING: Compression support is experimental"
3811 echo "Disabling compression support by default"
3815 # Check whether --enable-htree was given.
3816 if test "${enable_htree+set}" = set; then
3817 enableval=$enable_htree; if test "$enableval" = "no"
3820 echo "Disabling htree directory support"
3823 cat >>confdefs.h <<\_ACEOF
3824 #define ENABLE_HTREE 1
3827 echo "Enabling htree directory support"
3832 cat >>confdefs.h <<\_ACEOF
3833 #define ENABLE_HTREE 1
3836 echo "Enabling htree directory support by default"
3841 E2_PKG_CONFIG_STATIC=--static
3842 # Check whether --enable-elf-shlibs was given.
3843 if test "${enable_elf_shlibs+set}" = set; then
3844 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3847 MAKEFILE_ELF=/dev/null
3848 echo "Disabling ELF shared libraries"
3850 E2_PKG_CONFIG_STATIC=
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3860 echo "Enabling ELF shared libraries"
3864 MAKEFILE_ELF=/dev/null
3866 echo "Disabling ELF shared libraries by default"
3872 # Check whether --enable-bsd-shlibs was given.
3873 if test "${enable_bsd_shlibs+set}" = set; then
3874 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3877 MAKEFILE_BSDLIB=/dev/null
3878 echo "Disabling BSD shared libraries"
3880 E2_PKG_CONFIG_STATIC=
3882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3890 echo "Enabling BSD shared libraries"
3894 MAKEFILE_BSDLIB=/dev/null
3896 echo "Disabling BSD shared libraries by default"
3902 # Check whether --enable-profile was given.
3903 if test "${enable_profile+set}" = set; then
3904 enableval=$enable_profile; if test "$enableval" = "no"
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries"
3911 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3912 PROFILED_LIB_EXT=_p.a
3913 echo "Building profiling libraries"
3918 MAKEFILE_PROFILE=/dev/null
3919 echo "Disabling profiling libraries by default"
3925 # Check whether --enable-checker was given.
3926 if test "${enable_checker+set}" = set; then
3927 enableval=$enable_checker; if test "$enableval" = "no"
3930 MAKEFILE_CHECKER=/dev/null
3931 echo "Disabling checker libraries"
3934 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3935 echo "Building checker libraries"
3940 MAKEFILE_CHECKER=/dev/null
3941 echo "Disabling checker libraries by default"
3950 # Check whether --enable-jbd-debug was given.
3951 if test "${enable_jbd_debug+set}" = set; then
3952 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3954 echo "Disabling journal debugging"
3956 cat >>confdefs.h <<\_ACEOF
3957 #define CONFIG_JBD_DEBUG 1
3960 echo "Enabling journal debugging"
3964 echo "Disabling journal debugging by default"
3968 # Check whether --enable-blkid-debug was given.
3969 if test "${enable_blkid_debug+set}" = set; then
3970 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3972 echo "Disabling blkid debugging"
3974 cat >>confdefs.h <<\_ACEOF
3975 #define CONFIG_BLKID_DEBUG 1
3978 echo "Enabling blkid debugging"
3982 echo "Disabling blkid debugging by default"
3986 # Check whether --enable-testio-debug was given.
3987 if test "${enable_testio_debug+set}" = set; then
3988 enableval=$enable_testio_debug; if test "$enableval" = "no"
3990 echo "Disabling testio debugging"
3992 cat >>confdefs.h <<\_ACEOF
3993 #define CONFIG_TESTIO_DEBUG 1
3996 echo "Enabling testio debugging"
4000 echo "Disabling testio debugging by default"
4004 # Check whether --enable-debugfs was given.
4005 if test "${enable_debugfs+set}" = set; then
4006 enableval=$enable_debugfs; if test "$enableval" = "no"
4008 echo "Disabling debugfs support"
4012 echo "Enabling debugfs support"
4016 echo "Enabling debugfs support by default"
4022 # Check whether --enable-imager was given.
4023 if test "${enable_imager+set}" = set; then
4024 enableval=$enable_imager; if test "$enableval" = "no"
4026 echo "Disabling e2image support"
4030 echo "Enabling e2image support"
4034 echo "Enabling e2image support by default"
4040 # Check whether --enable-resizer was given.
4041 if test "${enable_resizer+set}" = set; then
4042 enableval=$enable_resizer; if test "$enableval" = "no"
4044 echo "Disabling e2resize support"
4048 echo "Enabling e2resize support"
4052 echo "Enabling e2resize support by default"
4058 # Check whether --enable-fsck was given.
4059 if test "${enable_fsck+set}" = set; then
4060 enableval=$enable_fsck; if test "$enableval" = "no"
4062 FSCK_PROG='' FSCK_MAN=''
4063 echo "Not building fsck wrapper"
4065 FSCK_PROG=fsck FSCK_MAN=fsck.8
4066 echo "Building fsck wrapper"
4072 FSCK_PROG='' FSCK_MAN=''
4073 echo "Not building fsck wrapper by default"
4076 FSCK_PROG=fsck FSCK_MAN=fsck.8
4077 echo "Building fsck wrapper by default"
4084 # Check whether --enable-e2initrd-helper was given.
4085 if test "${enable_e2initrd_helper+set}" = set; then
4086 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4088 E2INITRD_PROG='' E2INITRD_MAN=''
4089 echo "Not building e2initrd helper"
4091 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4092 echo "Building e2initrd helper"
4096 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4097 echo "Building e2initrd helper by default"
4103 STATIC_BLKID_DEVMAPPER_LIBS=''
4104 # Check whether --enable-blkid-devmapper was given.
4105 if test "${enable_blkid_devmapper+set}" = set; then
4106 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4108 echo "Disabling device-mapper support"
4111 STATIC_DEVMAPPER_LIBS=''
4113 cat >>confdefs.h <<\_ACEOF
4114 #define HAVE_DEVMAPPER 1
4117 echo "Enabling device-mapper support"
4121 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4122 if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4154 if test -n "$PKG_CONFIG"; then
4155 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4156 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4158 { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4164 if test -z "$ac_cv_path_PKG_CONFIG"; then
4165 ac_pt_PKG_CONFIG=$PKG_CONFIG
4166 # Extract the first word of "pkg-config", so it can be a program name with args.
4167 set dummy pkg-config; ac_word=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 case $ac_pt_PKG_CONFIG in
4175 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4197 if test -n "$ac_pt_PKG_CONFIG"; then
4198 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4199 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4201 { echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6; }
4205 if test "x$ac_pt_PKG_CONFIG" = x; then
4208 case $cross_compiling:$ac_tool_warned in
4210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4211 whose name does not start with the host triplet. If you think this
4212 configuration is useful to you, please write to autoconf@gnu.org." >&5
4213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4214 whose name does not start with the host triplet. If you think this
4215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4216 ac_tool_warned=yes ;;
4218 PKG_CONFIG=$ac_pt_PKG_CONFIG
4221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4225 if test -n "$PKG_CONFIG"; then
4226 _pkg_min_version=0.9.0
4227 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4228 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4230 { echo "$as_me:$LINENO: result: yes" >&5
4231 echo "${ECHO_T}yes" >&6; }
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4240 if test -z "$PKG_CONFIG"; then
4241 echo "pkg-config not installed; please install it."
4245 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4246 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4247 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 ac_check_lib_save_LIBS=$LIBS
4251 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4259 /* Override any GCC internal prototype to avoid an error.
4260 Use char because int might match the return type of a GCC
4261 builtin and then its argument prototype would still apply. */
4265 char dm_tree_create ();
4269 return dm_tree_create ();
4274 rm -f conftest.$ac_objext conftest$ac_exeext
4275 if { (ac_try="$ac_link"
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_link") 2>conftest.er1
4283 grep -v '^ *+' conftest.er1 >conftest.err
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
4290 } && test -s conftest$ac_exeext &&
4291 $as_test_x conftest$ac_exeext; then
4292 ac_cv_lib_devmapper_dm_tree_create=yes
4294 echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 ac_cv_lib_devmapper_dm_tree_create=no
4300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4301 conftest$ac_exeext conftest.$ac_ext
4302 LIBS=$ac_check_lib_save_LIBS
4304 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4305 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4306 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4307 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4308 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4309 DEVMAPPER_REQ="devmapper";
4310 DEVMAPPER_PC_LIBS="-ldevmapper"
4312 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4313 echo "$as_me: error: device-mapper library not found" >&2;}
4314 { (exit 1); exit 1; }; }
4317 # work around stupid devmapper.pc bug in Debian
4318 case "$STATIC_DEVMAPPER_LIBS" in
4322 echo "Working around Debian bug #390243..."
4323 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4326 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4327 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4328 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4333 echo "Disabling device-mapper support by default"
4342 # Check whether --enable-tls was given.
4343 if test "${enable_tls+set}" = set; then
4344 enableval=$enable_tls; if test "$enableval" = "no"
4347 echo "Disabling thread local support"
4350 echo "Enabling thread local support"
4354 if test -n "$WITH_DIET_LIBC"
4357 echo "Diet libc does not support thread local support"
4360 echo "Try using thread local support by default"
4365 if test "$try_tls" = "yes"
4368 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4369 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4370 if test "${ac_cv_tls+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 ax_tls_keywords="__thread __declspec(thread) none"
4375 for ax_tls_keyword in $ax_tls_keywords; do
4376 case $ax_tls_keyword in
4377 none) ac_cv_tls=none ; break ;;
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4388 static $ax_tls_keyword int bar;
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_compile") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } && {
4413 test -z "$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4415 } && test -s conftest.$ac_objext; then
4416 ac_cv_tls=$ax_tls_keyword ; break
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 if test "$ac_cv_tls" != "none"; then
4434 cat >>confdefs.h <<_ACEOF
4435 #define TLS $ac_cv_tls
4439 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4440 echo "${ECHO_T}$ac_cv_tls" >&6; }
4443 # Check whether --enable-uuidd was given.
4444 if test "${enable_uuidd+set}" = set; then
4445 enableval=$enable_uuidd; if test "$enableval" = "no"
4447 echo "Not building uuidd"
4450 cat >>confdefs.h <<\_ACEOF
4455 echo "Building uuidd"
4459 cat >>confdefs.h <<\_ACEOF
4464 echo "Building uuidd by default"
4469 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4471 GETTEXT_PACKAGE=e2fsprogs
4473 VERSION="$E2FSPROGS_VERSION"
4475 cat >>confdefs.h <<_ACEOF
4476 #define PACKAGE "$PACKAGE"
4479 cat >>confdefs.h <<_ACEOF
4480 #define VERSION "$VERSION"
4487 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4488 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4489 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4490 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 cat >conftest.make <<\_ACEOF
4496 @echo '@@@%%%=$(MAKE)=@@@%%%'
4498 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4499 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4501 eval ac_cv_prog_make_${ac_make}_set=yes;;
4503 eval ac_cv_prog_make_${ac_make}_set=no;;
4507 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4508 { echo "$as_me:$LINENO: result: yes" >&5
4509 echo "${ECHO_T}yes" >&6; }
4512 { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 SET_MAKE="MAKE=${MAKE-make}"
4517 # Find a good install program. We prefer a C program (faster),
4518 # so one script is as good as another. But avoid the broken or
4519 # incompatible versions:
4520 # SysV /etc/install, /usr/sbin/install
4521 # SunOS /usr/etc/install
4522 # IRIX /sbin/install
4524 # AmigaOS /C/install, which installs bootblocks on floppy discs
4525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4528 # OS/2's system install, which has a completely different semantic
4529 # ./install, which can be erroneously created by make from ./install.sh.
4530 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4531 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4532 if test -z "$INSTALL"; then
4533 if test "${ac_cv_path_install+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 # Account for people who put trailing slashes in PATH elements.
4543 ./ | .// | /cC/* | \
4544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4545 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4548 # OSF1 and SCO ODT 3.0 have their own names for install.
4549 # Don't use installbsd from OSF since it installs stuff as root
4551 for ac_prog in ginstall scoinst install; do
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4554 if test $ac_prog = install &&
4555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4556 # AIX install. It has an incompatible calling convention.
4558 elif test $ac_prog = install &&
4559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4560 # program-specific install script used by HP pwplus--don't use.
4563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4576 if test "${ac_cv_path_install+set}" = set; then
4577 INSTALL=$ac_cv_path_install
4579 # As a last resort, use the slow shell script. Don't cache a
4580 # value for INSTALL within a source directory, because that will
4581 # break other packages using the cache if that directory is
4582 # removed, or if the value is a relative name.
4583 INSTALL=$ac_install_sh
4586 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4587 echo "${ECHO_T}$INSTALL" >&6; }
4589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4590 # It thinks the first close brace ends the variable substitution.
4591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4599 if test -n "$ac_aux_dir"; then
4600 case "$ac_aux_dir" in
4601 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4602 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4605 if test -z "$MKINSTALLDIRS"; then
4606 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4611 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4612 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4613 # Check whether --enable-nls was given.
4614 if test "${enable_nls+set}" = set; then
4615 enableval=$enable_nls; USE_NLS=$enableval
4620 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4621 echo "${ECHO_T}$USE_NLS" >&6; }
4628 # Prepare PATH_SEPARATOR.
4629 # The user is always right.
4630 if test "${PATH_SEPARATOR+set}" != set; then
4631 echo "#! /bin/sh" >conf$$.sh
4632 echo "exit 0" >>conf$$.sh
4634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4642 # Find out how to test for executable files. Don't use a zero-byte file,
4643 # as systems may use methods other than mode bits to determine executability.
4644 cat >conf$$.file <<_ASEOF
4648 chmod +x conf$$.file
4649 if test -x conf$$.file >/dev/null 2>&1; then
4650 ac_executable_p="test -x"
4652 ac_executable_p="test -f"
4656 # Extract the first word of "msgfmt", so it can be a program name with args.
4657 set dummy msgfmt; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_MSGFMT+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4668 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4669 for ac_dir in $PATH; do
4671 test -z "$ac_dir" && ac_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4674 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4675 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4676 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4683 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4687 MSGFMT="$ac_cv_path_MSGFMT"
4688 if test "$MSGFMT" != ":"; then
4689 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4690 echo "${ECHO_T}$MSGFMT" >&6; }
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4696 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4697 set dummy gmsgfmt; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4727 GMSGFMT=$ac_cv_path_GMSGFMT
4728 if test -n "$GMSGFMT"; then
4729 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4730 echo "${ECHO_T}$GMSGFMT" >&6; }
4732 { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4739 # Prepare PATH_SEPARATOR.
4740 # The user is always right.
4741 if test "${PATH_SEPARATOR+set}" != set; then
4742 echo "#! /bin/sh" >conf$$.sh
4743 echo "exit 0" >>conf$$.sh
4745 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4753 # Find out how to test for executable files. Don't use a zero-byte file,
4754 # as systems may use methods other than mode bits to determine executability.
4755 cat >conf$$.file <<_ASEOF
4759 chmod +x conf$$.file
4760 if test -x conf$$.file >/dev/null 2>&1; then
4761 ac_executable_p="test -x"
4763 ac_executable_p="test -f"
4767 # Extract the first word of "xgettext", so it can be a program name with args.
4768 set dummy xgettext; ac_word=$2
4769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4779 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4780 for ac_dir in $PATH; do
4782 test -z "$ac_dir" && ac_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4785 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4786 (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
4787 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4794 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4798 XGETTEXT="$ac_cv_path_XGETTEXT"
4799 if test "$XGETTEXT" != ":"; then
4800 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4801 echo "${ECHO_T}$XGETTEXT" >&6; }
4803 { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4810 # Prepare PATH_SEPARATOR.
4811 # The user is always right.
4812 if test "${PATH_SEPARATOR+set}" != set; then
4813 echo "#! /bin/sh" >conf$$.sh
4814 echo "exit 0" >>conf$$.sh
4816 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4824 # Find out how to test for executable files. Don't use a zero-byte file,
4825 # as systems may use methods other than mode bits to determine executability.
4826 cat >conf$$.file <<_ASEOF
4830 chmod +x conf$$.file
4831 if test -x conf$$.file >/dev/null 2>&1; then
4832 ac_executable_p="test -x"
4834 ac_executable_p="test -f"
4838 # Extract the first word of "msgmerge", so it can be a program name with args.
4839 set dummy msgmerge; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4850 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4851 for ac_dir in $PATH; do
4853 test -z "$ac_dir" && ac_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4856 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4857 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4864 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4868 MSGMERGE="$ac_cv_path_MSGMERGE"
4869 if test "$MSGMERGE" != ":"; then
4870 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4871 echo "${ECHO_T}$MSGMERGE" >&6; }
4873 { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4878 if test "$GMSGFMT" != ":"; then
4879 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4880 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4883 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4884 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4885 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4890 if test "$XGETTEXT" != ":"; then
4891 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4892 (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
4895 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4896 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4902 ac_config_commands="$ac_config_commands default-1"
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4910 if test "${ac_cv_prog_RANLIB+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 if test -n "$RANLIB"; then
4914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 RANLIB=$ac_cv_prog_RANLIB
4934 if test -n "$RANLIB"; then
4935 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4936 echo "${ECHO_T}$RANLIB" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4944 if test -z "$ac_cv_prog_RANLIB"; then
4945 ac_ct_RANLIB=$RANLIB
4946 # Extract the first word of "ranlib", so it can be a program name with args.
4947 set dummy ranlib; ac_word=$2
4948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 if test -n "$ac_ct_RANLIB"; then
4954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963 ac_cv_prog_ac_ct_RANLIB="ranlib"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4974 if test -n "$ac_ct_RANLIB"; then
4975 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4976 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4978 { echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6; }
4982 if test "x$ac_ct_RANLIB" = x; then
4985 case $cross_compiling:$ac_tool_warned in
4987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4988 whose name does not start with the host triplet. If you think this
4989 configuration is useful to you, please write to autoconf@gnu.org." >&5
4990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4991 whose name does not start with the host triplet. If you think this
4992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4993 ac_tool_warned=yes ;;
4995 RANLIB=$ac_ct_RANLIB
4998 RANLIB="$ac_cv_prog_RANLIB"
5002 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5003 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5004 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lcposix $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (ac_try="$ac_link"
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest$ac_exeext &&
5048 $as_test_x conftest$ac_exeext; then
5049 ac_cv_lib_cposix_strerror=yes
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_cv_lib_cposix_strerror=no
5057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5058 conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5061 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5062 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5063 if test $ac_cv_lib_cposix_strerror = yes; then
5064 LIBS="$LIBS -lcposix"
5069 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5070 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5071 if test "${ac_cv_c_const+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5084 /* FIXME: Include the comments suggested by Paul. */
5086 /* Ultrix mips cc rejects this. */
5087 typedef int charset[2];
5089 /* SunOS 4.1.1 cc rejects this. */
5090 char const *const *pcpcc;
5092 /* NEC SVR4.0.2 mips cc rejects this. */
5093 struct point {int x, y;};
5094 static struct point const zero = {0,0};
5095 /* AIX XL C 1.02.0.0 rejects this.
5096 It does not let you subtract one const X* pointer from another in
5097 an arm of an if-expression whose if-part is not a constant
5099 const char *g = "string";
5100 pcpcc = &g + (g ? g-g : 0);
5101 /* HPUX 7.0 cc rejects these. */
5103 ppc = (char**) pcpcc;
5104 pcpcc = (char const *const *) ppc;
5105 { /* SCO 3.2v4 cc rejects this. */
5107 char const *s = 0 ? (char *) 0 : (char const *) 0;
5112 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5114 const int *foo = &x[0];
5117 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5118 typedef const int *iptr;
5122 { /* AIX XL C 1.02.0.0 rejects this saying
5123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5124 struct s { int j; const int *ap[3]; };
5125 struct s *b; b->j = 5;
5127 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5131 return !cs[0] && !zero.x;
5138 rm -f conftest.$ac_objext
5139 if { (ac_try="$ac_compile"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compile") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_c_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest.$ac_objext; then
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5166 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5167 if test $ac_cv_c_const = no; then
5169 cat >>confdefs.h <<\_ACEOF
5176 { echo "$as_me:$LINENO: checking for signed" >&5
5177 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5178 if test "${bh_cv_c_signed+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 cat >conftest.$ac_ext <<_ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5196 rm -f conftest.$ac_objext
5197 if { (ac_try="$ac_compile"
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compile") 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && {
5210 test -z "$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5212 } && test -s conftest.$ac_objext; then
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5224 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5225 if test $bh_cv_c_signed = no; then
5227 cat >>confdefs.h <<\_ACEOF
5233 { echo "$as_me:$LINENO: checking for inline" >&5
5234 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5235 if test "${ac_cv_c_inline+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 for ac_kw in inline __inline__ __inline; do
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5248 static $ac_kw foo_t static_foo () {return 0; }
5249 $ac_kw foo_t foo () {return 0; }
5253 rm -f conftest.$ac_objext
5254 if { (ac_try="$ac_compile"
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compile") 2>conftest.er1
5262 grep -v '^ *+' conftest.er1 >conftest.err
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } && {
5267 test -z "$ac_c_werror_flag" ||
5268 test ! -s conftest.err
5269 } && test -s conftest.$ac_objext; then
5270 ac_cv_c_inline=$ac_kw
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 test "$ac_cv_c_inline" != no && break
5283 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5284 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5287 case $ac_cv_c_inline in
5290 case $ac_cv_c_inline in
5292 *) ac_val=$ac_cv_c_inline;;
5294 cat >>confdefs.h <<_ACEOF
5296 #define inline $ac_val
5302 { echo "$as_me:$LINENO: checking for off_t" >&5
5303 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5304 if test "${ac_cv_type_off_t+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5314 typedef off_t ac__type_new_;
5318 if ((ac__type_new_ *) 0)
5320 if (sizeof (ac__type_new_))
5326 rm -f conftest.$ac_objext
5327 if { (ac_try="$ac_compile"
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_compile") 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } && {
5340 test -z "$ac_c_werror_flag" ||
5341 test ! -s conftest.err
5342 } && test -s conftest.$ac_objext; then
5343 ac_cv_type_off_t=yes
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5354 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5355 if test $ac_cv_type_off_t = yes; then
5359 cat >>confdefs.h <<_ACEOF
5360 #define off_t long int
5365 { echo "$as_me:$LINENO: checking for size_t" >&5
5366 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5367 if test "${ac_cv_type_size_t+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376 $ac_includes_default
5377 typedef size_t ac__type_new_;
5381 if ((ac__type_new_ *) 0)
5383 if (sizeof (ac__type_new_))
5389 rm -f conftest.$ac_objext
5390 if { (ac_try="$ac_compile"
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5398 grep -v '^ *+' conftest.er1 >conftest.err
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest.$ac_objext; then
5406 ac_cv_type_size_t=yes
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5411 ac_cv_type_size_t=no
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5417 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5418 if test $ac_cv_type_size_t = yes; then
5422 cat >>confdefs.h <<_ACEOF
5423 #define size_t unsigned int
5429 { echo "$as_me:$LINENO: checking for long long" >&5
5430 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5431 if test "${ac_cv_type_long_long+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 long long ll = 1LL; int i = 63;
5444 long long llmax = (long long) -1;
5445 return ll << i | ll >> i | llmax / ll | llmax % ll;
5450 rm -f conftest.$ac_objext conftest$ac_exeext
5451 if { (ac_try="$ac_link"
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_link") 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && {
5464 test -z "$ac_c_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest$ac_exeext &&
5467 $as_test_x conftest$ac_exeext; then
5468 ac_cv_type_long_long=yes
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_cv_type_long_long=no
5476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5477 conftest$ac_exeext conftest.$ac_ext
5479 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5480 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5481 if test $ac_cv_type_long_long = yes; then
5483 cat >>confdefs.h <<\_ACEOF
5484 #define HAVE_LONG_LONG 1
5490 { echo "$as_me:$LINENO: checking for long double" >&5
5491 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5492 if test "${gt_cv_c_long_double+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 if test "$GCC" = yes; then
5496 gt_cv_c_long_double=yes
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5505 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5506 long double foo = 0.0;
5507 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5508 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5527 grep -v '^ *+' conftest.er1 >conftest.err
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 gt_cv_c_long_double=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 gt_cv_c_long_double=no
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5547 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5548 if test $gt_cv_c_long_double = yes; then
5550 cat >>confdefs.h <<\_ACEOF
5551 #define HAVE_LONG_DOUBLE 1
5557 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5558 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5559 if test "${gt_cv_c_wchar_t+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5569 wchar_t foo = (wchar_t)'\0';
5578 rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compile") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && {
5592 test -z "$ac_c_werror_flag" ||
5593 test ! -s conftest.err
5594 } && test -s conftest.$ac_objext; then
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5606 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5607 if test $gt_cv_c_wchar_t = yes; then
5609 cat >>confdefs.h <<\_ACEOF
5610 #define HAVE_WCHAR_T 1
5616 { echo "$as_me:$LINENO: checking for wint_t" >&5
5617 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5618 if test "${gt_cv_c_wint_t+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 cat >conftest.$ac_ext <<_ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5628 wint_t foo = (wchar_t)'\0';
5637 rm -f conftest.$ac_objext
5638 if { (ac_try="$ac_compile"
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_compile") 2>conftest.er1
5646 grep -v '^ *+' conftest.er1 >conftest.err
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && {
5651 test -z "$ac_c_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest.$ac_objext; then
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5665 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5666 if test $gt_cv_c_wint_t = yes; then
5668 cat >>confdefs.h <<\_ACEOF
5669 #define HAVE_WINT_T 1
5675 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5676 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5677 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 cat >conftest.$ac_ext <<_ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #include <sys/types.h>
5687 #include <inttypes.h>
5691 uintmax_t i = (uintmax_t) -1;
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5713 jm_ac_cv_header_inttypes_h=yes
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 jm_ac_cv_header_inttypes_h=no
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5723 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5724 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5725 if test $jm_ac_cv_header_inttypes_h = yes; then
5727 cat >>confdefs.h <<_ACEOF
5728 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5734 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5735 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5736 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5750 uintmax_t i = (uintmax_t) -1;
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compile") 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } && {
5769 test -z "$ac_c_werror_flag" ||
5770 test ! -s conftest.err
5771 } && test -s conftest.$ac_objext; then
5772 jm_ac_cv_header_stdint_h=yes
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 jm_ac_cv_header_stdint_h=no
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5783 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5784 if test $jm_ac_cv_header_stdint_h = yes; then
5786 cat >>confdefs.h <<_ACEOF
5787 #define HAVE_STDINT_H_WITH_UINTMAX 1
5795 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5796 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5797 if test "${gt_cv_c_intmax_t+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5809 #if HAVE_STDINT_H_WITH_UINTMAX
5812 #if HAVE_INTTYPES_H_WITH_UINTMAX
5813 #include <inttypes.h>
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5833 grep -v '^ *+' conftest.er1 >conftest.err
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.$ac_objext; then
5841 gt_cv_c_intmax_t=yes
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5852 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5853 if test $gt_cv_c_intmax_t = yes; then
5855 cat >>confdefs.h <<\_ACEOF
5856 #define HAVE_INTMAX_T 1
5863 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5864 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5865 if test "${gt_cv_func_printf_posix+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 if test "$cross_compiling" = yes; then
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5878 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "notposix" >/dev/null 2>&1; then
5885 gt_cv_func_printf_posix="guessing no"
5887 gt_cv_func_printf_posix="guessing yes"
5893 cat >conftest.$ac_ext <<_ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5902 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5903 dollar expansion (possibly an autoconf bug). */
5904 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5905 static char buf[100];
5908 sprintf (buf, format, 33, 55);
5909 return (strcmp (buf, "55 33") != 0);
5912 rm -f conftest$ac_exeext
5913 if { (ac_try="$ac_link"
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_link") 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 gt_cv_func_printf_posix=yes
5934 echo "$as_me: program exited with status $ac_status" >&5
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5939 gt_cv_func_printf_posix=no
5941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5947 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5948 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5949 case $gt_cv_func_printf_posix in
5952 cat >>confdefs.h <<\_ACEOF
5953 #define HAVE_POSIX_PRINTF 1
5959 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5960 # for constant arguments. Useless!
5961 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5962 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5963 if test "${ac_cv_working_alloca_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5976 char *p = (char *) alloca (2 * sizeof (int));
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (ac_try="$ac_link"
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest$ac_exeext &&
5999 $as_test_x conftest$ac_exeext; then
6000 ac_cv_working_alloca_h=yes
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_cv_working_alloca_h=no
6008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6009 conftest$ac_exeext conftest.$ac_ext
6011 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6012 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6013 if test $ac_cv_working_alloca_h = yes; then
6015 cat >>confdefs.h <<\_ACEOF
6016 #define HAVE_ALLOCA_H 1
6021 { echo "$as_me:$LINENO: checking for alloca" >&5
6022 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6023 if test "${ac_cv_func_alloca_works+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6033 # define alloca __builtin_alloca
6036 # include <malloc.h>
6037 # define alloca _alloca
6039 # ifdef HAVE_ALLOCA_H
6040 # include <alloca.h>
6045 # ifndef alloca /* predefined by HP cc +Olibcalls */
6056 char *p = (char *) alloca (1);
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_link") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext &&
6079 $as_test_x conftest$ac_exeext; then
6080 ac_cv_func_alloca_works=yes
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_func_alloca_works=no
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089 conftest$ac_exeext conftest.$ac_ext
6091 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6092 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6094 if test $ac_cv_func_alloca_works = yes; then
6096 cat >>confdefs.h <<\_ACEOF
6097 #define HAVE_ALLOCA 1
6101 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6102 # that cause trouble. Some versions do not even contain alloca or
6103 # contain a buggy version. If you still want to use their alloca,
6104 # use ar to extract alloca.o from them instead of compiling alloca.c.
6106 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6108 cat >>confdefs.h <<\_ACEOF
6113 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6114 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6115 if test "${ac_cv_os_cray+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 cat >conftest.$ac_ext <<_ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #if defined CRAY && ! defined CRAY2
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "webecray" >/dev/null 2>&1; then
6140 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6141 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6142 if test $ac_cv_os_cray = yes; then
6143 for ac_func in _getb67 GETB67 getb67; do
6144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 cat >conftest.$ac_ext <<_ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6158 #define $ac_func innocuous_$ac_func
6160 /* System header to define __stub macros and hopefully few prototypes,
6161 which can conflict with char $ac_func (); below.
6162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6163 <limits.h> exists even on freestanding compilers. */
6166 # include <limits.h>
6168 # include <assert.h>
6173 /* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6180 /* The GNU C library defines this for functions which it implements
6181 to always fail with ENOSYS. Some functions are actually named
6182 something starting with __ and the normal name is an alias. */
6183 #if defined __stub_$ac_func || defined __stub___$ac_func
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_link") 2>conftest.er1
6204 grep -v '^ *+' conftest.er1 >conftest.err
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest$ac_exeext &&
6212 $as_test_x conftest$ac_exeext; then
6213 eval "$as_ac_var=yes"
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 eval "$as_ac_var=no"
6221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6222 conftest$ac_exeext conftest.$ac_ext
6224 ac_res=`eval echo '${'$as_ac_var'}'`
6225 { echo "$as_me:$LINENO: result: $ac_res" >&5
6226 echo "${ECHO_T}$ac_res" >&6; }
6227 if test `eval echo '${'$as_ac_var'}'` = yes; then
6229 cat >>confdefs.h <<_ACEOF
6230 #define CRAY_STACKSEG_END $ac_func
6239 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6241 if test "${ac_cv_c_stack_direction+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 if test "$cross_compiling" = yes; then
6245 ac_cv_c_stack_direction=0
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6255 find_stack_direction ()
6257 static char *addr = 0;
6262 return find_stack_direction ();
6265 return (&dummy > addr) ? 1 : -1;
6271 return find_stack_direction () < 0;
6274 rm -f conftest$ac_exeext
6275 if { (ac_try="$ac_link"
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_link") 2>&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285 { (case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_try") 2>&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 ac_cv_c_stack_direction=1
6296 echo "$as_me: program exited with status $ac_status" >&5
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_c_stack_direction=-1
6303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6309 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6311 cat >>confdefs.h <<_ACEOF
6312 #define STACK_DIRECTION $ac_cv_c_stack_direction
6320 for ac_header in stdlib.h unistd.h
6322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 ac_res=`eval echo '${'$as_ac_Header'}'`
6330 { echo "$as_me:$LINENO: result: $ac_res" >&5
6331 echo "${ECHO_T}$ac_res" >&6; }
6333 # Is the header compilable?
6334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 $ac_includes_default
6343 #include <$ac_header>
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compile") 2>conftest.er1
6354 grep -v '^ *+' conftest.er1 >conftest.err
6356 cat conftest.err >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.$ac_objext; then
6362 ac_header_compiler=yes
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6367 ac_header_compiler=no
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6372 echo "${ECHO_T}$ac_header_compiler" >&6; }
6374 # Is the header present?
6375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6377 cat >conftest.$ac_ext <<_ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 #include <$ac_header>
6385 if { (ac_try="$ac_cpp conftest.$ac_ext"
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } >/dev/null && {
6398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6401 ac_header_preproc=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_header_preproc=no
6409 rm -f conftest.err conftest.$ac_ext
6410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6411 echo "${ECHO_T}$ac_header_preproc" >&6; }
6413 # So? What about this header?
6414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6420 ac_header_preproc=yes
6423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 eval "$as_ac_Header=\$ac_header_preproc"
6445 ac_res=`eval echo '${'$as_ac_Header'}'`
6446 { echo "$as_me:$LINENO: result: $ac_res" >&5
6447 echo "${ECHO_T}$ac_res" >&6; }
6450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6451 cat >>confdefs.h <<_ACEOF
6452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6460 for ac_func in getpagesize
6462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6476 #define $ac_func innocuous_$ac_func
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char $ac_func (); below.
6480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6481 <limits.h> exists even on freestanding compilers. */
6484 # include <limits.h>
6486 # include <assert.h>
6491 /* Override any GCC internal prototype to avoid an error.
6492 Use char because int might match the return type of a GCC
6493 builtin and then its argument prototype would still apply. */
6498 /* The GNU C library defines this for functions which it implements
6499 to always fail with ENOSYS. Some functions are actually named
6500 something starting with __ and the normal name is an alias. */
6501 #if defined __stub_$ac_func || defined __stub___$ac_func
6513 rm -f conftest.$ac_objext conftest$ac_exeext
6514 if { (ac_try="$ac_link"
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_link") 2>conftest.er1
6522 grep -v '^ *+' conftest.er1 >conftest.err
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } && {
6527 test -z "$ac_c_werror_flag" ||
6528 test ! -s conftest.err
6529 } && test -s conftest$ac_exeext &&
6530 $as_test_x conftest$ac_exeext; then
6531 eval "$as_ac_var=yes"
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 eval "$as_ac_var=no"
6539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6540 conftest$ac_exeext conftest.$ac_ext
6542 ac_res=`eval echo '${'$as_ac_var'}'`
6543 { echo "$as_me:$LINENO: result: $ac_res" >&5
6544 echo "${ECHO_T}$ac_res" >&6; }
6545 if test `eval echo '${'$as_ac_var'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6553 { echo "$as_me:$LINENO: checking for working mmap" >&5
6554 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6555 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 if test "$cross_compiling" = yes; then
6559 ac_cv_func_mmap_fixed_mapped=no
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 $ac_includes_default
6568 /* malloc might have been renamed as rpl_malloc. */
6571 /* Thanks to Mike Haertel and Jim Avera for this test.
6572 Here is a matrix of mmap possibilities:
6573 mmap private not fixed
6574 mmap private fixed at somewhere currently unmapped
6575 mmap private fixed at somewhere already mapped
6576 mmap shared not fixed
6577 mmap shared fixed at somewhere currently unmapped
6578 mmap shared fixed at somewhere already mapped
6579 For private mappings, we should verify that changes cannot be read()
6580 back from the file, nor mmap's back from the file at a different
6581 address. (There have been systems where private was not correctly
6582 implemented like the infamous i386 svr4.0, and systems where the
6583 VM page cache was not coherent with the file system buffer cache
6584 like early versions of FreeBSD and possibly contemporary NetBSD.)
6585 For shared mappings, we should conversely verify that changes get
6586 propagated back to all the places they're supposed to be.
6588 Grep wants private fixed already mapped.
6589 The main things grep needs to know about mmap are:
6590 * does it exist and is it safe to write into the mmap'd area
6591 * how to use it (BSD variants) */
6594 #include <sys/mman.h>
6596 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6600 /* This mess was copied from the GNU getpagesize.h. */
6601 #ifndef HAVE_GETPAGESIZE
6602 /* Assume that all systems that can run configure have sys/param.h. */
6603 # ifndef HAVE_SYS_PARAM_H
6604 # define HAVE_SYS_PARAM_H 1
6607 # ifdef _SC_PAGESIZE
6608 # define getpagesize() sysconf(_SC_PAGESIZE)
6609 # else /* no _SC_PAGESIZE */
6610 # ifdef HAVE_SYS_PARAM_H
6611 # include <sys/param.h>
6612 # ifdef EXEC_PAGESIZE
6613 # define getpagesize() EXEC_PAGESIZE
6614 # else /* no EXEC_PAGESIZE */
6616 # define getpagesize() NBPG * CLSIZE
6619 # endif /* no CLSIZE */
6620 # else /* no NBPG */
6622 # define getpagesize() NBPC
6623 # else /* no NBPC */
6625 # define getpagesize() PAGESIZE
6626 # endif /* PAGESIZE */
6627 # endif /* no NBPC */
6628 # endif /* no NBPG */
6629 # endif /* no EXEC_PAGESIZE */
6630 # else /* no HAVE_SYS_PARAM_H */
6631 # define getpagesize() 8192 /* punt totally */
6632 # endif /* no HAVE_SYS_PARAM_H */
6633 # endif /* no _SC_PAGESIZE */
6635 #endif /* no HAVE_GETPAGESIZE */
6640 char *data, *data2, *data3;
6644 pagesize = getpagesize ();
6646 /* First, make a file with some known garbage in it. */
6647 data = (char *) malloc (pagesize);
6650 for (i = 0; i < pagesize; ++i)
6651 *(data + i) = rand ();
6653 fd = creat ("conftest.mmap", 0600);
6656 if (write (fd, data, pagesize) != pagesize)
6660 /* Next, try to mmap the file at a fixed address which already has
6661 something else allocated at it. If we can, also make sure that
6662 we see the same garbage. */
6663 fd = open ("conftest.mmap", O_RDWR);
6666 data2 = (char *) malloc (2 * pagesize);
6669 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6670 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6671 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6673 for (i = 0; i < pagesize; ++i)
6674 if (*(data + i) != *(data2 + i))
6677 /* Finally, make sure that changes to the mapped area do not
6678 percolate back to the file as seen by read(). (This is a bug on
6679 some variants of i386 svr4.0.) */
6680 for (i = 0; i < pagesize; ++i)
6681 *(data2 + i) = *(data2 + i) + 1;
6682 data3 = (char *) malloc (pagesize);
6685 if (read (fd, data3, pagesize) != pagesize)
6687 for (i = 0; i < pagesize; ++i)
6688 if (*(data + i) != *(data3 + i))
6694 rm -f conftest$ac_exeext
6695 if { (ac_try="$ac_link"
6697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698 *) ac_try_echo=$ac_try;;
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701 (eval "$ac_link") 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6705 { (case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_try") 2>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6714 ac_cv_func_mmap_fixed_mapped=yes
6716 echo "$as_me: program exited with status $ac_status" >&5
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_cv_func_mmap_fixed_mapped=no
6723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6728 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6729 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6730 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6732 cat >>confdefs.h <<\_ACEOF
6740 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6741 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6742 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 cat >conftest.$ac_ext <<_ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6752 #include <features.h>
6753 #ifdef __GNU_LIBRARY__
6754 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6762 ac_cv_gnu_library_2_1=yes
6764 ac_cv_gnu_library_2_1=no
6771 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6772 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6774 GLIBC21="$ac_cv_gnu_library_2_1"
6779 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6780 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6781 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 if test "$cross_compiling" = yes; then
6787 # Guess based on the CPU.
6789 alpha* | i3456786 | m68k | s390*)
6790 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6792 gt_cv_int_divbyzero_sigfpe="guessing no";;
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6808 sigfpe_handler (int sig)
6810 sigfpe_handler (sig) int sig;
6813 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6814 exit (sig != SIGFPE);
6824 signal (SIGFPE, sigfpe_handler);
6825 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6826 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6827 signal (SIGTRAP, sigfpe_handler);
6829 /* Linux/SPARC yields signal SIGILL. */
6830 #if defined (__sparc__) && defined (__linux__)
6831 signal (SIGILL, sigfpe_handler);
6840 rm -f conftest$ac_exeext
6841 if { (ac_try="$ac_link"
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_link") 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6851 { (case "(($ac_try" in
6852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853 *) ac_try_echo=$ac_try;;
6855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6856 (eval "$ac_try") 2>&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 gt_cv_int_divbyzero_sigfpe=yes
6862 echo "$as_me: program exited with status $ac_status" >&5
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6867 gt_cv_int_divbyzero_sigfpe=no
6869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6875 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6876 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6877 case "$gt_cv_int_divbyzero_sigfpe" in
6882 cat >>confdefs.h <<_ACEOF
6883 #define INTDIV0_RAISES_SIGFPE $value
6888 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6889 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6890 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 cat >conftest.$ac_ext <<_ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 unsigned long long ull = 1ULL; int i = 63;
6903 unsigned long long ullmax = (unsigned long long) -1;
6904 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>conftest.er1
6918 grep -v '^ *+' conftest.er1 >conftest.err
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest$ac_exeext &&
6926 $as_test_x conftest$ac_exeext; then
6927 ac_cv_type_unsigned_long_long=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_type_unsigned_long_long=no
6935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936 conftest$ac_exeext conftest.$ac_ext
6938 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6939 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6940 if test $ac_cv_type_unsigned_long_long = yes; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define HAVE_UNSIGNED_LONG_LONG 1
6951 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6953 test $ac_cv_type_unsigned_long_long = yes \
6954 && ac_type='unsigned long long' \
6955 || ac_type='unsigned long'
6957 cat >>confdefs.h <<_ACEOF
6958 #define uintmax_t $ac_type
6963 cat >>confdefs.h <<\_ACEOF
6964 #define HAVE_UINTMAX_T 1
6970 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6971 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6972 if test "${gt_cv_header_inttypes_h+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 cat >conftest.$ac_ext <<_ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 #include <sys/types.h>
6983 #include <inttypes.h>
6992 rm -f conftest.$ac_objext
6993 if { (ac_try="$ac_compile"
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 gt_cv_header_inttypes_h=yes
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 gt_cv_header_inttypes_h=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7021 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7022 if test $gt_cv_header_inttypes_h = yes; then
7024 cat >>confdefs.h <<_ACEOF
7025 #define HAVE_INTTYPES_H 1
7032 if test $gt_cv_header_inttypes_h = yes; then
7033 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7034 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7035 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <inttypes.h>
7058 rm -f conftest.$ac_objext
7059 if { (ac_try="$ac_compile"
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_compile") 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && {
7072 test -z "$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 } && test -s conftest.$ac_objext; then
7075 gt_cv_inttypes_pri_broken=no
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 gt_cv_inttypes_pri_broken=yes
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7087 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7089 if test "$gt_cv_inttypes_pri_broken" = yes; then
7091 cat >>confdefs.h <<_ACEOF
7092 #define PRI_MACROS_BROKEN 1
7099 for ac_header in stdint.h
7101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 ac_res=`eval echo '${'$as_ac_Header'}'`
7109 { echo "$as_me:$LINENO: result: $ac_res" >&5
7110 echo "${ECHO_T}$ac_res" >&6; }
7112 # Is the header compilable?
7113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7122 #include <$ac_header>
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
7141 ac_header_compiler=yes
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 ac_header_compiler=no
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7151 echo "${ECHO_T}$ac_header_compiler" >&6; }
7153 # Is the header present?
7154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <$ac_header>
7164 if { (ac_try="$ac_cpp conftest.$ac_ext"
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } >/dev/null && {
7177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7180 ac_header_preproc=yes
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_header_preproc=no
7188 rm -f conftest.err conftest.$ac_ext
7189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7190 echo "${ECHO_T}$ac_header_preproc" >&6; }
7192 # So? What about this header?
7193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7199 ac_header_preproc=yes
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 eval "$as_ac_Header=\$ac_header_preproc"
7224 ac_res=`eval echo '${'$as_ac_Header'}'`
7225 { echo "$as_me:$LINENO: result: $ac_res" >&5
7226 echo "${ECHO_T}$ac_res" >&6; }
7229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7230 cat >>confdefs.h <<_ACEOF
7231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7239 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7258 $EGREP "Found it" >/dev/null 2>&1; then
7263 if test -z "$result"; then
7264 if test "$cross_compiling" = yes; then
7265 # Depending upon the size, compute the lo and hi bounds.
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7276 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7283 rm -f conftest.$ac_objext
7284 if { (ac_try="$ac_compile"
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_compile") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.$ac_objext; then
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7312 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7319 rm -f conftest.$ac_objext
7320 if { (ac_try="$ac_compile"
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
7336 ac_hi=$ac_mid; break
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 ac_lo=`expr $ac_mid + 1`
7342 if test $ac_lo -le $ac_mid; then
7346 ac_mid=`expr 2 '*' $ac_mid + 1`
7349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 cat >conftest.$ac_ext <<_ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7365 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7372 rm -f conftest.$ac_objext
7373 if { (ac_try="$ac_compile"
7375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_compile") 2>conftest.er1
7381 grep -v '^ *+' conftest.er1 >conftest.err
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.$ac_objext; then
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7401 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7408 rm -f conftest.$ac_objext
7409 if { (ac_try="$ac_compile"
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7417 grep -v '^ *+' conftest.er1 >conftest.err
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
7425 ac_lo=$ac_mid; break
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7430 ac_hi=`expr '(' $ac_mid ')' - 1`
7431 if test $ac_mid -le $ac_hi; then
7435 ac_mid=`expr 2 '*' $ac_mid`
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 # Binary search between lo and hi bounds.
7452 while test "x$ac_lo" != "x$ac_hi"; do
7453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7464 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7471 rm -f conftest.$ac_objext
7472 if { (ac_try="$ac_compile"
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478 (eval "$ac_compile") 2>conftest.er1
7480 grep -v '^ *+' conftest.er1 >conftest.err
7482 cat conftest.err >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } && {
7485 test -z "$ac_c_werror_flag" ||
7486 test ! -s conftest.err
7487 } && test -s conftest.$ac_objext; then
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_lo=`expr '(' $ac_mid ')' + 1`
7496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 cat >conftest.$ac_ext <<_ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7510 static long int longval () { return ~(size_t)0 / 10; }
7511 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7518 FILE *f = fopen ("conftest.val", "w");
7521 if ((~(size_t)0 / 10) < 0)
7523 long int i = longval ();
7524 if (i != (~(size_t)0 / 10))
7526 fprintf (f, "%ld\n", i);
7530 unsigned long int i = ulongval ();
7531 if (i != (~(size_t)0 / 10))
7533 fprintf (f, "%lu\n", i);
7535 return ferror (f) || fclose (f) != 0;
7541 rm -f conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_link") 2>&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7552 { (case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_try") 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 res_hi=`cat conftest.val`
7563 echo "$as_me: program exited with status $ac_status" >&5
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7574 if test "$cross_compiling" = yes; then
7575 # Depending upon the size, compute the lo and hi bounds.
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7586 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_compile") 2>conftest.er1
7602 grep -v '^ *+' conftest.er1 >conftest.err
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } && {
7607 test -z "$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 } && test -s conftest.$ac_objext; then
7612 cat >conftest.$ac_ext <<_ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7622 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7629 rm -f conftest.$ac_objext
7630 if { (ac_try="$ac_compile"
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 ac_hi=$ac_mid; break
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ac_lo=`expr $ac_mid + 1`
7652 if test $ac_lo -le $ac_mid; then
7656 ac_mid=`expr 2 '*' $ac_mid + 1`
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7675 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7711 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7718 rm -f conftest.$ac_objext
7719 if { (ac_try="$ac_compile"
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_compile") 2>conftest.er1
7727 grep -v '^ *+' conftest.er1 >conftest.err
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest.$ac_objext; then
7735 ac_lo=$ac_mid; break
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_hi=`expr '(' $ac_mid ')' - 1`
7741 if test $ac_mid -le $ac_hi; then
7745 ac_mid=`expr 2 '*' $ac_mid`
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 # Binary search between lo and hi bounds.
7762 while test "x$ac_lo" != "x$ac_hi"; do
7763 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7764 cat >conftest.$ac_ext <<_ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7774 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7781 rm -f conftest.$ac_objext
7782 if { (ac_try="$ac_compile"
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7790 grep -v '^ *+' conftest.er1 >conftest.err
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_lo=`expr '(' $ac_mid ')' + 1`
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7820 static long int longval () { return ~(size_t)0 % 10; }
7821 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7828 FILE *f = fopen ("conftest.val", "w");
7831 if ((~(size_t)0 % 10) < 0)
7833 long int i = longval ();
7834 if (i != (~(size_t)0 % 10))
7836 fprintf (f, "%ld\n", i);
7840 unsigned long int i = ulongval ();
7841 if (i != (~(size_t)0 % 10))
7843 fprintf (f, "%lu\n", i);
7845 return ferror (f) || fclose (f) != 0;
7851 rm -f conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7862 { (case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_try") 2>&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 res_lo=`cat conftest.val`
7873 echo "$as_me: program exited with status $ac_status" >&5
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7884 if test "$cross_compiling" = yes; then
7885 # Depending upon the size, compute the lo and hi bounds.
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7896 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7932 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7956 ac_hi=$ac_mid; break
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_lo=`expr $ac_mid + 1`
7962 if test $ac_lo -le $ac_mid; then
7966 ac_mid=`expr 2 '*' $ac_mid + 1`
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 cat >conftest.$ac_ext <<_ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7985 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8021 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8028 rm -f conftest.$ac_objext
8029 if { (ac_try="$ac_compile"
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8045 ac_lo=$ac_mid; break
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 ac_hi=`expr '(' $ac_mid ')' - 1`
8051 if test $ac_mid -le $ac_hi; then
8055 ac_mid=`expr 2 '*' $ac_mid`
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 # Binary search between lo and hi bounds.
8072 while test "x$ac_lo" != "x$ac_hi"; do
8073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8074 cat >conftest.$ac_ext <<_ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8084 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8100 grep -v '^ *+' conftest.er1 >conftest.err
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ac_lo=`expr '(' $ac_mid ')' + 1`
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 ?*) fits_in_uint=$ac_lo;;
8123 cat >conftest.$ac_ext <<_ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h. */
8130 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8131 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8138 FILE *f = fopen ("conftest.val", "w");
8141 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8143 long int i = longval ();
8144 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8146 fprintf (f, "%ld\n", i);
8150 unsigned long int i = ulongval ();
8151 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8153 fprintf (f, "%lu\n", i);
8155 return ferror (f) || fclose (f) != 0;
8161 rm -f conftest$ac_exeext
8162 if { (ac_try="$ac_link"
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_link") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8172 { (case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_try") 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 fits_in_uint=`cat conftest.val`
8183 echo "$as_me: program exited with status $ac_status" >&5
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8194 if test "$fits_in_uint" = 1; then
8195 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8203 extern unsigned long foo;
8213 rm -f conftest.$ac_objext
8214 if { (ac_try="$ac_compile"
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_compile") 2>conftest.er1
8222 grep -v '^ *+' conftest.er1 >conftest.err
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && {
8227 test -z "$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8240 if test -z "$result"; then
8241 if test "$fits_in_uint" = 1; then
8242 result="$res_hi$res_lo"U
8244 result="$res_hi$res_lo"UL
8250 { echo "$as_me:$LINENO: result: $result" >&5
8251 echo "${ECHO_T}$result" >&6; }
8252 if test "$result" != yes; then
8254 cat >>confdefs.h <<_ACEOF
8255 #define SIZE_MAX $result
8263 for ac_header in stdint.h
8265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 ac_res=`eval echo '${'$as_ac_Header'}'`
8273 { echo "$as_me:$LINENO: result: $ac_res" >&5
8274 echo "${ECHO_T}$ac_res" >&6; }
8276 # Is the header compilable?
8277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 $ac_includes_default
8286 #include <$ac_header>
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && {
8302 test -z "$ac_c_werror_flag" ||
8303 test ! -s conftest.err
8304 } && test -s conftest.$ac_objext; then
8305 ac_header_compiler=yes
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8310 ac_header_compiler=no
8313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8315 echo "${ECHO_T}$ac_header_compiler" >&6; }
8317 # Is the header present?
8318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 #include <$ac_header>
8328 if { (ac_try="$ac_cpp conftest.$ac_ext"
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } >/dev/null && {
8341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8344 ac_header_preproc=yes
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 ac_header_preproc=no
8352 rm -f conftest.err conftest.$ac_ext
8353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8354 echo "${ECHO_T}$ac_header_preproc" >&6; }
8356 # So? What about this header?
8357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8363 ac_header_preproc=yes
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 eval "$as_ac_Header=\$ac_header_preproc"
8388 ac_res=`eval echo '${'$as_ac_Header'}'`
8389 { echo "$as_me:$LINENO: result: $ac_res" >&5
8390 echo "${ECHO_T}$ac_res" >&6; }
8393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8404 if test "X$prefix" = "XNONE"; then
8405 acl_final_prefix="$ac_default_prefix"
8407 acl_final_prefix="$prefix"
8409 if test "X$exec_prefix" = "XNONE"; then
8410 acl_final_exec_prefix='${prefix}'
8412 acl_final_exec_prefix="$exec_prefix"
8414 acl_save_prefix="$prefix"
8415 prefix="$acl_final_prefix"
8416 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8417 prefix="$acl_save_prefix"
8420 # Check whether --with-gnu-ld was given.
8421 if test "${with_gnu_ld+set}" = set; then
8422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8427 # Prepare PATH_SEPARATOR.
8428 # The user is always right.
8429 if test "${PATH_SEPARATOR+set}" != set; then
8430 echo "#! /bin/sh" >conf$$.sh
8431 echo "exit 0" >>conf$$.sh
8433 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8441 if test "$GCC" = yes; then
8442 # Check if gcc -print-prog-name=ld gives a path.
8443 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8444 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8447 # gcc leaves a trailing carriage return which upsets mingw
8448 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8453 # Accept absolute paths.
8454 [\\/]* | [A-Za-z]:[\\/]*)
8455 re_direlt='/[^/][^/]*/\.\./'
8456 # Canonicalize the path of ld
8457 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8458 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8459 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8461 test -z "$LD" && LD="$ac_prog"
8464 # If it fails, then pretend we aren't using GCC.
8468 # If it is relative, then search for the first ld in PATH.
8472 elif test "$with_gnu_ld" = yes; then
8473 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8474 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8476 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8477 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8479 if test "${acl_cv_path_LD+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 if test -z "$LD"; then
8483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8484 for ac_dir in $PATH; do
8485 test -z "$ac_dir" && ac_dir=.
8486 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8487 acl_cv_path_LD="$ac_dir/$ac_prog"
8488 # Check to see if the program is GNU ld. I'd rather use --version,
8489 # but apparently some GNU ld's only accept -v.
8490 # Break only if it was the GNU/non-GNU ld that we prefer.
8491 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8492 *GNU* | *'with BFD'*)
8493 test "$with_gnu_ld" != no && break ;;
8495 test "$with_gnu_ld" != yes && break ;;
8501 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8505 LD="$acl_cv_path_LD"
8506 if test -n "$LD"; then
8507 { echo "$as_me:$LINENO: result: $LD" >&5
8508 echo "${ECHO_T}$LD" >&6; }
8510 { echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6; }
8513 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8514 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8515 { (exit 1); exit 1; }; }
8516 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8517 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8518 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8522 case `$LD -v 2>&1 </dev/null` in
8523 *GNU* | *'with BFD'*)
8524 acl_cv_prog_gnu_ld=yes ;;
8526 acl_cv_prog_gnu_ld=no ;;
8529 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8530 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8531 with_gnu_ld=$acl_cv_prog_gnu_ld
8535 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8536 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8537 if test "${acl_cv_rpath+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8542 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8548 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8549 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8551 libext="$acl_cv_libext"
8552 shlibext="$acl_cv_shlibext"
8553 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8554 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8555 hardcode_direct="$acl_cv_hardcode_direct"
8556 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8557 # Check whether --enable-rpath was given.
8558 if test "${enable_rpath+set}" = set; then
8559 enableval=$enable_rpath; :
8573 acl_save_prefix="$prefix"
8574 prefix="$acl_final_prefix"
8575 acl_save_exec_prefix="$exec_prefix"
8576 exec_prefix="$acl_final_exec_prefix"
8578 eval additional_includedir=\"$includedir\"
8579 eval additional_libdir=\"$libdir\"
8581 exec_prefix="$acl_save_exec_prefix"
8582 prefix="$acl_save_prefix"
8585 # Check whether --with-libiconv-prefix was given.
8586 if test "${with_libiconv_prefix+set}" = set; then
8587 withval=$with_libiconv_prefix;
8588 if test "X$withval" = "Xno"; then
8591 if test "X$withval" = "X"; then
8593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
8598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
8601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8605 additional_includedir="$withval/include"
8606 additional_libdir="$withval/lib"
8617 names_already_handled=
8618 names_next_round='iconv '
8619 while test -n "$names_next_round"; do
8620 names_this_round="$names_next_round"
8622 for name in $names_this_round; do
8624 for n in $names_already_handled; do
8625 if test "$n" = "$name"; then
8630 if test -z "$already_handled"; then
8631 names_already_handled="$names_already_handled $name"
8632 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8633 eval value=\"\$HAVE_LIB$uppername\"
8634 if test -n "$value"; then
8635 if test "$value" = yes; then
8636 eval value=\"\$LIB$uppername\"
8637 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8638 eval value=\"\$LTLIB$uppername\"
8639 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8648 if test $use_additional = yes; then
8649 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8650 found_dir="$additional_libdir"
8651 found_so="$additional_libdir/lib$name.$shlibext"
8652 if test -f "$additional_libdir/lib$name.la"; then
8653 found_la="$additional_libdir/lib$name.la"
8656 if test -f "$additional_libdir/lib$name.$libext"; then
8657 found_dir="$additional_libdir"
8658 found_a="$additional_libdir/lib$name.$libext"
8659 if test -f "$additional_libdir/lib$name.la"; then
8660 found_la="$additional_libdir/lib$name.la"
8665 if test "X$found_dir" = "X"; then
8666 for x in $LDFLAGS $LTLIBICONV; do
8668 acl_save_prefix="$prefix"
8669 prefix="$acl_final_prefix"
8670 acl_save_exec_prefix="$exec_prefix"
8671 exec_prefix="$acl_final_exec_prefix"
8673 exec_prefix="$acl_save_exec_prefix"
8674 prefix="$acl_save_prefix"
8678 dir=`echo "X$x" | sed -e 's/^X-L//'`
8679 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8681 found_so="$dir/lib$name.$shlibext"
8682 if test -f "$dir/lib$name.la"; then
8683 found_la="$dir/lib$name.la"
8686 if test -f "$dir/lib$name.$libext"; then
8688 found_a="$dir/lib$name.$libext"
8689 if test -f "$dir/lib$name.la"; then
8690 found_la="$dir/lib$name.la"
8696 if test "X$found_dir" != "X"; then
8701 if test "X$found_dir" != "X"; then
8702 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8703 if test "X$found_so" != "X"; then
8704 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8705 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8708 for x in $ltrpathdirs; do
8709 if test "X$x" = "X$found_dir"; then
8714 if test -z "$haveit"; then
8715 ltrpathdirs="$ltrpathdirs $found_dir"
8717 if test "$hardcode_direct" = yes; then
8718 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8720 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8721 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8723 for x in $rpathdirs; do
8724 if test "X$x" = "X$found_dir"; then
8729 if test -z "$haveit"; then
8730 rpathdirs="$rpathdirs $found_dir"
8734 for x in $LDFLAGS $LIBICONV; do
8736 acl_save_prefix="$prefix"
8737 prefix="$acl_final_prefix"
8738 acl_save_exec_prefix="$exec_prefix"
8739 exec_prefix="$acl_final_exec_prefix"
8741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8744 if test "X$x" = "X-L$found_dir"; then
8749 if test -z "$haveit"; then
8750 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8752 if test "$hardcode_minus_L" != no; then
8753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8761 if test "X$found_a" != "X"; then
8762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8764 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8767 additional_includedir=
8768 case "$found_dir" in
8770 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8771 additional_includedir="$basedir/include"
8774 if test "X$additional_includedir" != "X"; then
8775 if test "X$additional_includedir" != "X/usr/include"; then
8777 if test "X$additional_includedir" = "X/usr/local/include"; then
8778 if test -n "$GCC"; then
8780 linux*) haveit=yes;;
8784 if test -z "$haveit"; then
8785 for x in $CPPFLAGS $INCICONV; do
8787 acl_save_prefix="$prefix"
8788 prefix="$acl_final_prefix"
8789 acl_save_exec_prefix="$exec_prefix"
8790 exec_prefix="$acl_final_exec_prefix"
8792 exec_prefix="$acl_save_exec_prefix"
8793 prefix="$acl_save_prefix"
8795 if test "X$x" = "X-I$additional_includedir"; then
8800 if test -z "$haveit"; then
8801 if test -d "$additional_includedir"; then
8802 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8808 if test -n "$found_la"; then
8809 save_libdir="$libdir"
8811 */* | *\\*) . "$found_la" ;;
8812 *) . "./$found_la" ;;
8814 libdir="$save_libdir"
8815 for dep in $dependency_libs; do
8818 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8819 if test "X$additional_libdir" != "X/usr/lib"; then
8821 if test "X$additional_libdir" = "X/usr/local/lib"; then
8822 if test -n "$GCC"; then
8824 linux*) haveit=yes;;
8828 if test -z "$haveit"; then
8830 for x in $LDFLAGS $LIBICONV; do
8832 acl_save_prefix="$prefix"
8833 prefix="$acl_final_prefix"
8834 acl_save_exec_prefix="$exec_prefix"
8835 exec_prefix="$acl_final_exec_prefix"
8837 exec_prefix="$acl_save_exec_prefix"
8838 prefix="$acl_save_prefix"
8840 if test "X$x" = "X-L$additional_libdir"; then
8845 if test -z "$haveit"; then
8846 if test -d "$additional_libdir"; then
8847 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8851 for x in $LDFLAGS $LTLIBICONV; do
8853 acl_save_prefix="$prefix"
8854 prefix="$acl_final_prefix"
8855 acl_save_exec_prefix="$exec_prefix"
8856 exec_prefix="$acl_final_exec_prefix"
8858 exec_prefix="$acl_save_exec_prefix"
8859 prefix="$acl_save_prefix"
8861 if test "X$x" = "X-L$additional_libdir"; then
8866 if test -z "$haveit"; then
8867 if test -d "$additional_libdir"; then
8868 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8875 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8876 if test "$enable_rpath" != no; then
8878 for x in $rpathdirs; do
8879 if test "X$x" = "X$dir"; then
8884 if test -z "$haveit"; then
8885 rpathdirs="$rpathdirs $dir"
8888 for x in $ltrpathdirs; do
8889 if test "X$x" = "X$dir"; then
8894 if test -z "$haveit"; then
8895 ltrpathdirs="$ltrpathdirs $dir"
8900 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8903 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8906 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8913 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8914 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8920 if test "X$rpathdirs" != "X"; then
8921 if test -n "$hardcode_libdir_separator"; then
8923 for found_dir in $rpathdirs; do
8924 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8926 acl_save_libdir="$libdir"
8928 eval flag=\"$hardcode_libdir_flag_spec\"
8929 libdir="$acl_save_libdir"
8930 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8932 for found_dir in $rpathdirs; do
8933 acl_save_libdir="$libdir"
8935 eval flag=\"$hardcode_libdir_flag_spec\"
8936 libdir="$acl_save_libdir"
8937 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8941 if test "X$ltrpathdirs" != "X"; then
8942 for found_dir in $ltrpathdirs; do
8943 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8954 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8955 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8956 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8965 $ac_includes_default
8966 typedef ptrdiff_t ac__type_new_;
8970 if ((ac__type_new_ *) 0)
8972 if (sizeof (ac__type_new_))
8978 rm -f conftest.$ac_objext
8979 if { (ac_try="$ac_compile"
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_compile") 2>conftest.er1
8987 grep -v '^ *+' conftest.er1 >conftest.err
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest.$ac_objext; then
8995 ac_cv_type_ptrdiff_t=yes
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
9000 ac_cv_type_ptrdiff_t=no
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9006 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9007 if test $ac_cv_type_ptrdiff_t = yes; then
9011 cat >>confdefs.h <<\_ACEOF
9012 #define ptrdiff_t long
9028 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9029 stdlib.h string.h unistd.h sys/param.h
9031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9038 ac_res=`eval echo '${'$as_ac_Header'}'`
9039 { echo "$as_me:$LINENO: result: $ac_res" >&5
9040 echo "${ECHO_T}$ac_res" >&6; }
9042 # Is the header compilable?
9043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9045 cat >conftest.$ac_ext <<_ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 $ac_includes_default
9052 #include <$ac_header>
9054 rm -f conftest.$ac_objext
9055 if { (ac_try="$ac_compile"
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
9071 ac_header_compiler=yes
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_header_compiler=no
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9081 echo "${ECHO_T}$ac_header_compiler" >&6; }
9083 # Is the header present?
9084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9086 cat >conftest.$ac_ext <<_ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 #include <$ac_header>
9094 if { (ac_try="$ac_cpp conftest.$ac_ext"
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } >/dev/null && {
9107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9110 ac_header_preproc=yes
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 ac_header_preproc=no
9118 rm -f conftest.err conftest.$ac_ext
9119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9120 echo "${ECHO_T}$ac_header_preproc" >&6; }
9122 # So? What about this header?
9123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9129 ac_header_preproc=yes
9132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 eval "$as_ac_Header=\$ac_header_preproc"
9154 ac_res=`eval echo '${'$as_ac_Header'}'`
9155 { echo "$as_me:$LINENO: result: $ac_res" >&5
9156 echo "${ECHO_T}$ac_res" >&6; }
9159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9160 cat >>confdefs.h <<_ACEOF
9161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9191 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9192 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9193 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9210 #define $ac_func innocuous_$ac_func
9212 /* System header to define __stub macros and hopefully few prototypes,
9213 which can conflict with char $ac_func (); below.
9214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9215 <limits.h> exists even on freestanding compilers. */
9218 # include <limits.h>
9220 # include <assert.h>
9225 /* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
9232 /* The GNU C library defines this for functions which it implements
9233 to always fail with ENOSYS. Some functions are actually named
9234 something starting with __ and the normal name is an alias. */
9235 #if defined __stub_$ac_func || defined __stub___$ac_func
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_link") 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && {
9261 test -z "$ac_c_werror_flag" ||
9262 test ! -s conftest.err
9263 } && test -s conftest$ac_exeext &&
9264 $as_test_x conftest$ac_exeext; then
9265 eval "$as_ac_var=yes"
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 eval "$as_ac_var=no"
9273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9274 conftest$ac_exeext conftest.$ac_ext
9276 ac_res=`eval echo '${'$as_ac_var'}'`
9277 { echo "$as_me:$LINENO: result: $ac_res" >&5
9278 echo "${ECHO_T}$ac_res" >&6; }
9279 if test `eval echo '${'$as_ac_var'}'` = yes; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9289 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9290 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9291 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9306 char *p = (char *) _snprintf;
9313 rm -f conftest.$ac_objext
9314 if { (ac_try="$ac_compile"
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_compile") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest.$ac_objext; then
9330 ac_cv_have_decl__snprintf=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_have_decl__snprintf=no
9338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9341 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9342 if test $ac_cv_have_decl__snprintf = yes; then
9348 cat >>confdefs.h <<_ACEOF
9349 #define HAVE_DECL__SNPRINTF $gt_value
9354 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9355 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9356 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9371 char *p = (char *) _snwprintf;
9378 rm -f conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.$ac_objext; then
9395 ac_cv_have_decl__snwprintf=yes
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9400 ac_cv_have_decl__snwprintf=no
9403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9406 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9407 if test $ac_cv_have_decl__snwprintf = yes; then
9413 cat >>confdefs.h <<_ACEOF
9414 #define HAVE_DECL__SNWPRINTF $gt_value
9420 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9421 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9422 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9436 #ifndef feof_unlocked
9437 char *p = (char *) feof_unlocked;
9444 rm -f conftest.$ac_objext
9445 if { (ac_try="$ac_compile"
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_compile") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest.$ac_objext; then
9461 ac_cv_have_decl_feof_unlocked=yes
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 ac_cv_have_decl_feof_unlocked=no
9469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9472 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9473 if test $ac_cv_have_decl_feof_unlocked = yes; then
9479 cat >>confdefs.h <<_ACEOF
9480 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9485 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9486 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9487 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.$ac_ext <<_ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9501 #ifndef fgets_unlocked
9502 char *p = (char *) fgets_unlocked;
9509 rm -f conftest.$ac_objext
9510 if { (ac_try="$ac_compile"
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_compile") 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest.$ac_objext; then
9526 ac_cv_have_decl_fgets_unlocked=yes
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_have_decl_fgets_unlocked=no
9534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9536 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9537 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9538 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9544 cat >>confdefs.h <<_ACEOF
9545 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9550 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9551 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9552 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 cat >conftest.$ac_ext <<_ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9566 #ifndef getc_unlocked
9567 char *p = (char *) getc_unlocked;
9574 rm -f conftest.$ac_objext
9575 if { (ac_try="$ac_compile"
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9581 (eval "$ac_compile") 2>conftest.er1
9583 grep -v '^ *+' conftest.er1 >conftest.err
9585 cat conftest.err >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } && {
9588 test -z "$ac_c_werror_flag" ||
9589 test ! -s conftest.err
9590 } && test -s conftest.$ac_objext; then
9591 ac_cv_have_decl_getc_unlocked=yes
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9596 ac_cv_have_decl_getc_unlocked=no
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9602 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9603 if test $ac_cv_have_decl_getc_unlocked = yes; then
9609 cat >>confdefs.h <<_ACEOF
9610 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9615 case $gt_cv_func_printf_posix in
9616 *yes) HAVE_POSIX_PRINTF=1 ;;
9617 *) HAVE_POSIX_PRINTF=0 ;;
9620 if test "$ac_cv_func_asprintf" = yes; then
9626 if test "$ac_cv_func_snprintf" = yes; then
9632 if test "$ac_cv_func_wprintf" = yes; then
9644 am_save_CPPFLAGS="$CPPFLAGS"
9646 for element in $INCICONV; do
9648 for x in $CPPFLAGS; do
9650 acl_save_prefix="$prefix"
9651 prefix="$acl_final_prefix"
9652 acl_save_exec_prefix="$exec_prefix"
9653 exec_prefix="$acl_final_exec_prefix"
9655 exec_prefix="$acl_save_exec_prefix"
9656 prefix="$acl_save_prefix"
9658 if test "X$x" = "X$element"; then
9663 if test -z "$haveit"; then
9664 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9669 { echo "$as_me:$LINENO: checking for iconv" >&5
9670 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9671 if test "${am_cv_func_iconv+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 am_cv_func_iconv="no, consider installing GNU libiconv"
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9688 iconv_t cd = iconv_open("","");
9689 iconv(cd,NULL,NULL,NULL,NULL);
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (ac_try="$ac_link"
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } && {
9709 test -z "$ac_c_werror_flag" ||
9710 test ! -s conftest.err
9711 } && test -s conftest$ac_exeext &&
9712 $as_test_x conftest$ac_exeext; then
9713 am_cv_func_iconv=yes
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722 conftest$ac_exeext conftest.$ac_ext
9723 if test "$am_cv_func_iconv" != yes; then
9724 am_save_LIBS="$LIBS"
9725 LIBS="$LIBS $LIBICONV"
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9737 iconv_t cd = iconv_open("","");
9738 iconv(cd,NULL,NULL,NULL,NULL);
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
9763 am_cv_func_iconv=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772 conftest$ac_exeext conftest.$ac_ext
9773 LIBS="$am_save_LIBS"
9777 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9778 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9779 if test "$am_cv_func_iconv" = yes; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_ICONV 1
9786 if test "$am_cv_lib_iconv" = yes; then
9787 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9788 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9789 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9790 echo "${ECHO_T}$LIBICONV" >&6; }
9792 CPPFLAGS="$am_save_CPPFLAGS"
9799 if test "$am_cv_func_iconv" = yes; then
9800 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9801 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9802 if test "${am_cv_proto_iconv+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 cat >conftest.$ac_ext <<_ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9819 #if defined(__STDC__) || defined(__cplusplus)
9820 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9833 rm -f conftest.$ac_objext
9834 if { (ac_try="$ac_compile"
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_compile") 2>conftest.er1
9842 grep -v '^ *+' conftest.er1 >conftest.err
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest.$ac_objext; then
9850 am_cv_proto_iconv_arg1=""
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 am_cv_proto_iconv_arg1="const"
9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9859 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);"
9862 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9863 { echo "$as_me:$LINENO: result: ${ac_t:-
9864 }$am_cv_proto_iconv" >&5
9865 echo "${ECHO_T}${ac_t:-
9866 }$am_cv_proto_iconv" >&6; }
9868 cat >>confdefs.h <<_ACEOF
9869 #define ICONV_CONST $am_cv_proto_iconv_arg1
9875 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9876 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9877 if test "${am_cv_langinfo_codeset+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 cat >conftest.$ac_ext <<_ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 #include <langinfo.h>
9890 char* cs = nl_langinfo(CODESET);
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_link") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest$ac_exeext &&
9912 $as_test_x conftest$ac_exeext; then
9913 am_cv_langinfo_codeset=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 am_cv_langinfo_codeset=no
9921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922 conftest$ac_exeext conftest.$ac_ext
9925 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9926 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9927 if test $am_cv_langinfo_codeset = yes; then
9929 cat >>confdefs.h <<\_ACEOF
9930 #define HAVE_LANGINFO_CODESET 1
9935 if test $ac_cv_header_locale_h = yes; then
9937 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9938 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9939 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest$ac_exeext &&
9974 $as_test_x conftest$ac_exeext; then
9975 am_cv_val_LC_MESSAGES=yes
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 am_cv_val_LC_MESSAGES=no
9983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984 conftest$ac_exeext conftest.$ac_ext
9986 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9987 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9988 if test $am_cv_val_LC_MESSAGES = yes; then
9990 cat >>confdefs.h <<\_ACEOF
9991 #define HAVE_LC_MESSAGES 1
9998 for ac_prog in bison
10000 # Extract the first word of "$ac_prog", so it can be a program name with args.
10001 set dummy $ac_prog; ac_word=$2
10002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10004 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 if test -n "$INTLBISON"; then
10008 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011 for as_dir in $PATH
10014 test -z "$as_dir" && as_dir=.
10015 for ac_exec_ext in '' $ac_executable_extensions; do
10016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017 ac_cv_prog_INTLBISON="$ac_prog"
10018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 INTLBISON=$ac_cv_prog_INTLBISON
10028 if test -n "$INTLBISON"; then
10029 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10030 echo "${ECHO_T}$INTLBISON" >&6; }
10032 { echo "$as_me:$LINENO: result: no" >&5
10033 echo "${ECHO_T}no" >&6; }
10037 test -n "$INTLBISON" && break
10040 if test -z "$INTLBISON"; then
10043 { echo "$as_me:$LINENO: checking version of bison" >&5
10044 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10045 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10046 case $ac_prog_version in
10047 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10048 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10049 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10050 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10052 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10053 echo "${ECHO_T}$ac_prog_version" >&6; }
10055 if test $ac_verc_fail = yes; then
10074 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10075 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10076 # Check whether --enable-nls was given.
10077 if test "${enable_nls+set}" = set; then
10078 enableval=$enable_nls; USE_NLS=$enableval
10083 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10084 echo "${ECHO_T}$USE_NLS" >&6; }
10089 BUILD_INCLUDED_LIBINTL=no
10090 USE_INCLUDED_LIBINTL=no
10096 if test "$USE_NLS" = "yes"; then
10097 gt_use_preinstalled_gnugettext=no
10099 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10100 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10102 # Check whether --with-included-gettext was given.
10103 if test "${with_included_gettext+set}" = set; then
10104 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10106 nls_cv_force_use_gnu_gettext=no
10109 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10110 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10112 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10113 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10120 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10121 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10122 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #include <libintl.h>
10132 extern int _nl_msg_cat_cntr;
10133 extern int *_nl_domain_bindings;
10137 bindtextdomain ("", "");
10138 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (ac_try="$ac_link"
10145 case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10152 grep -v '^ *+' conftest.er1 >conftest.err
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } && {
10157 test -z "$ac_c_werror_flag" ||
10158 test ! -s conftest.err
10159 } && test -s conftest$ac_exeext &&
10160 $as_test_x conftest$ac_exeext; then
10161 gt_cv_func_gnugettext1_libc=yes
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 gt_cv_func_gnugettext1_libc=no
10169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170 conftest$ac_exeext conftest.$ac_ext
10172 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10173 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10175 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 acl_save_exec_prefix="$exec_prefix"
10184 exec_prefix="$acl_final_exec_prefix"
10186 eval additional_includedir=\"$includedir\"
10187 eval additional_libdir=\"$libdir\"
10189 exec_prefix="$acl_save_exec_prefix"
10190 prefix="$acl_save_prefix"
10193 # Check whether --with-libintl-prefix was given.
10194 if test "${with_libintl_prefix+set}" = set; then
10195 withval=$with_libintl_prefix;
10196 if test "X$withval" = "Xno"; then
10199 if test "X$withval" = "X"; then
10201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
10206 eval additional_includedir=\"$includedir\"
10207 eval additional_libdir=\"$libdir\"
10209 exec_prefix="$acl_save_exec_prefix"
10210 prefix="$acl_save_prefix"
10213 additional_includedir="$withval/include"
10214 additional_libdir="$withval/lib"
10225 names_already_handled=
10226 names_next_round='intl '
10227 while test -n "$names_next_round"; do
10228 names_this_round="$names_next_round"
10230 for name in $names_this_round; do
10232 for n in $names_already_handled; do
10233 if test "$n" = "$name"; then
10234 already_handled=yes
10238 if test -z "$already_handled"; then
10239 names_already_handled="$names_already_handled $name"
10240 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10241 eval value=\"\$HAVE_LIB$uppername\"
10242 if test -n "$value"; then
10243 if test "$value" = yes; then
10244 eval value=\"\$LIB$uppername\"
10245 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10246 eval value=\"\$LTLIB$uppername\"
10247 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10256 if test $use_additional = yes; then
10257 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10258 found_dir="$additional_libdir"
10259 found_so="$additional_libdir/lib$name.$shlibext"
10260 if test -f "$additional_libdir/lib$name.la"; then
10261 found_la="$additional_libdir/lib$name.la"
10264 if test -f "$additional_libdir/lib$name.$libext"; then
10265 found_dir="$additional_libdir"
10266 found_a="$additional_libdir/lib$name.$libext"
10267 if test -f "$additional_libdir/lib$name.la"; then
10268 found_la="$additional_libdir/lib$name.la"
10273 if test "X$found_dir" = "X"; then
10274 for x in $LDFLAGS $LTLIBINTL; do
10276 acl_save_prefix="$prefix"
10277 prefix="$acl_final_prefix"
10278 acl_save_exec_prefix="$exec_prefix"
10279 exec_prefix="$acl_final_exec_prefix"
10281 exec_prefix="$acl_save_exec_prefix"
10282 prefix="$acl_save_prefix"
10286 dir=`echo "X$x" | sed -e 's/^X-L//'`
10287 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10289 found_so="$dir/lib$name.$shlibext"
10290 if test -f "$dir/lib$name.la"; then
10291 found_la="$dir/lib$name.la"
10294 if test -f "$dir/lib$name.$libext"; then
10296 found_a="$dir/lib$name.$libext"
10297 if test -f "$dir/lib$name.la"; then
10298 found_la="$dir/lib$name.la"
10304 if test "X$found_dir" != "X"; then
10309 if test "X$found_dir" != "X"; then
10310 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10311 if test "X$found_so" != "X"; then
10312 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10313 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10316 for x in $ltrpathdirs; do
10317 if test "X$x" = "X$found_dir"; then
10322 if test -z "$haveit"; then
10323 ltrpathdirs="$ltrpathdirs $found_dir"
10325 if test "$hardcode_direct" = yes; then
10326 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10328 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10329 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10331 for x in $rpathdirs; do
10332 if test "X$x" = "X$found_dir"; then
10337 if test -z "$haveit"; then
10338 rpathdirs="$rpathdirs $found_dir"
10342 for x in $LDFLAGS $LIBINTL; do
10344 acl_save_prefix="$prefix"
10345 prefix="$acl_final_prefix"
10346 acl_save_exec_prefix="$exec_prefix"
10347 exec_prefix="$acl_final_exec_prefix"
10349 exec_prefix="$acl_save_exec_prefix"
10350 prefix="$acl_save_prefix"
10352 if test "X$x" = "X-L$found_dir"; then
10357 if test -z "$haveit"; then
10358 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10360 if test "$hardcode_minus_L" != no; then
10361 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10369 if test "X$found_a" != "X"; then
10370 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10372 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10375 additional_includedir=
10376 case "$found_dir" in
10378 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10379 additional_includedir="$basedir/include"
10382 if test "X$additional_includedir" != "X"; then
10383 if test "X$additional_includedir" != "X/usr/include"; then
10385 if test "X$additional_includedir" = "X/usr/local/include"; then
10386 if test -n "$GCC"; then
10388 linux*) haveit=yes;;
10392 if test -z "$haveit"; then
10393 for x in $CPPFLAGS $INCINTL; do
10395 acl_save_prefix="$prefix"
10396 prefix="$acl_final_prefix"
10397 acl_save_exec_prefix="$exec_prefix"
10398 exec_prefix="$acl_final_exec_prefix"
10400 exec_prefix="$acl_save_exec_prefix"
10401 prefix="$acl_save_prefix"
10403 if test "X$x" = "X-I$additional_includedir"; then
10408 if test -z "$haveit"; then
10409 if test -d "$additional_includedir"; then
10410 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10416 if test -n "$found_la"; then
10417 save_libdir="$libdir"
10418 case "$found_la" in
10419 */* | *\\*) . "$found_la" ;;
10420 *) . "./$found_la" ;;
10422 libdir="$save_libdir"
10423 for dep in $dependency_libs; do
10426 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10427 if test "X$additional_libdir" != "X/usr/lib"; then
10429 if test "X$additional_libdir" = "X/usr/local/lib"; then
10430 if test -n "$GCC"; then
10432 linux*) haveit=yes;;
10436 if test -z "$haveit"; then
10438 for x in $LDFLAGS $LIBINTL; do
10440 acl_save_prefix="$prefix"
10441 prefix="$acl_final_prefix"
10442 acl_save_exec_prefix="$exec_prefix"
10443 exec_prefix="$acl_final_exec_prefix"
10445 exec_prefix="$acl_save_exec_prefix"
10446 prefix="$acl_save_prefix"
10448 if test "X$x" = "X-L$additional_libdir"; then
10453 if test -z "$haveit"; then
10454 if test -d "$additional_libdir"; then
10455 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10459 for x in $LDFLAGS $LTLIBINTL; do
10461 acl_save_prefix="$prefix"
10462 prefix="$acl_final_prefix"
10463 acl_save_exec_prefix="$exec_prefix"
10464 exec_prefix="$acl_final_exec_prefix"
10466 exec_prefix="$acl_save_exec_prefix"
10467 prefix="$acl_save_prefix"
10469 if test "X$x" = "X-L$additional_libdir"; then
10474 if test -z "$haveit"; then
10475 if test -d "$additional_libdir"; then
10476 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10483 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10484 if test "$enable_rpath" != no; then
10486 for x in $rpathdirs; do
10487 if test "X$x" = "X$dir"; then
10492 if test -z "$haveit"; then
10493 rpathdirs="$rpathdirs $dir"
10496 for x in $ltrpathdirs; do
10497 if test "X$x" = "X$dir"; then
10502 if test -z "$haveit"; then
10503 ltrpathdirs="$ltrpathdirs $dir"
10508 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10511 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10514 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10521 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10522 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10528 if test "X$rpathdirs" != "X"; then
10529 if test -n "$hardcode_libdir_separator"; then
10531 for found_dir in $rpathdirs; do
10532 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10534 acl_save_libdir="$libdir"
10536 eval flag=\"$hardcode_libdir_flag_spec\"
10537 libdir="$acl_save_libdir"
10538 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10540 for found_dir in $rpathdirs; do
10541 acl_save_libdir="$libdir"
10542 libdir="$found_dir"
10543 eval flag=\"$hardcode_libdir_flag_spec\"
10544 libdir="$acl_save_libdir"
10545 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10549 if test "X$ltrpathdirs" != "X"; then
10550 for found_dir in $ltrpathdirs; do
10551 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10555 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10556 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10557 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 gt_save_CPPFLAGS="$CPPFLAGS"
10561 CPPFLAGS="$CPPFLAGS $INCINTL"
10562 gt_save_LIBS="$LIBS"
10563 LIBS="$LIBS $LIBINTL"
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 #include <libintl.h>
10571 extern int _nl_msg_cat_cntr;
10576 const char *_nl_expand_alias ();
10580 bindtextdomain ("", "");
10581 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (ac_try="$ac_link"
10588 case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10593 (eval "$ac_link") 2>conftest.er1
10595 grep -v '^ *+' conftest.er1 >conftest.err
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } && {
10600 test -z "$ac_c_werror_flag" ||
10601 test ! -s conftest.err
10602 } && test -s conftest$ac_exeext &&
10603 $as_test_x conftest$ac_exeext; then
10604 gt_cv_func_gnugettext1_libintl=yes
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 gt_cv_func_gnugettext1_libintl=no
10612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10613 conftest$ac_exeext conftest.$ac_ext
10614 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10615 LIBS="$LIBS $LIBICONV"
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <libintl.h>
10623 extern int _nl_msg_cat_cntr;
10628 const char *_nl_expand_alias ();
10632 bindtextdomain ("", "");
10633 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (ac_try="$ac_link"
10640 case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_link") 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest$ac_exeext &&
10655 $as_test_x conftest$ac_exeext; then
10656 LIBINTL="$LIBINTL $LIBICONV"
10657 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10658 gt_cv_func_gnugettext1_libintl=yes
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10668 conftest$ac_exeext conftest.$ac_ext
10670 CPPFLAGS="$gt_save_CPPFLAGS"
10671 LIBS="$gt_save_LIBS"
10673 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10674 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10677 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10678 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10679 && test "$PACKAGE" != gettext-runtime \
10680 && test "$PACKAGE" != gettext-tools; }; then
10681 gt_use_preinstalled_gnugettext=yes
10689 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10690 nls_cv_use_gnu_gettext=yes
10694 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10695 BUILD_INCLUDED_LIBINTL=yes
10696 USE_INCLUDED_LIBINTL=yes
10697 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10698 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10699 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10702 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10703 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10708 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10709 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10711 cat >>confdefs.h <<\_ACEOF
10712 #define ENABLE_NLS 1
10720 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10721 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10722 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10723 echo "${ECHO_T}$USE_NLS" >&6; }
10724 if test "$USE_NLS" = "yes"; then
10725 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10726 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10727 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10728 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10729 gt_source="external libintl"
10734 gt_source="included intl directory"
10736 { echo "$as_me:$LINENO: result: $gt_source" >&5
10737 echo "${ECHO_T}$gt_source" >&6; }
10740 if test "$USE_NLS" = "yes"; then
10742 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10743 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10744 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10745 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10746 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10747 echo "${ECHO_T}$LIBINTL" >&6; }
10749 for element in $INCINTL; do
10751 for x in $CPPFLAGS; do
10753 acl_save_prefix="$prefix"
10754 prefix="$acl_final_prefix"
10755 acl_save_exec_prefix="$exec_prefix"
10756 exec_prefix="$acl_final_exec_prefix"
10758 exec_prefix="$acl_save_exec_prefix"
10759 prefix="$acl_save_prefix"
10761 if test "X$x" = "X$element"; then
10766 if test -z "$haveit"; then
10767 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10774 cat >>confdefs.h <<\_ACEOF
10775 #define HAVE_GETTEXT 1
10779 cat >>confdefs.h <<\_ACEOF
10780 #define HAVE_DCGETTEXT 1
10789 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10790 BUILD_INCLUDED_LIBINTL=yes
10797 nls_cv_header_intl=
10798 nls_cv_header_libgt=
10809 if test "$USE_INCLUDED_LIBINTL" = yes; then
10810 INTLOBJS="\$(GETTOBJS)"
10814 INTL_LIBTOOL_SUFFIX_PREFIX=
10818 INTLLIBS="$LIBINTL"
10826 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10827 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10828 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10829 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.make <<\_ACEOF
10835 @echo '@@@%%%=$(MAKE)=@@@%%%'
10837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10839 *@@@%%%=?*=@@@%%%*)
10840 eval ac_cv_prog_make_${ac_make}_set=yes;;
10842 eval ac_cv_prog_make_${ac_make}_set=no;;
10844 rm -f conftest.make
10846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10847 { echo "$as_me:$LINENO: result: yes" >&5
10848 echo "${ECHO_T}yes" >&6; }
10851 { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10853 SET_MAKE="MAKE=${MAKE-make}"
10856 # Extract the first word of "ln", so it can be a program name with args.
10857 set dummy ln; ac_word=$2
10858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10860 if test "${ac_cv_path_LN+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10888 if test -n "$LN"; then
10889 { echo "$as_me:$LINENO: result: $LN" >&5
10890 echo "${ECHO_T}$LN" >&6; }
10892 { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10897 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10898 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10900 if test "$LN_S" = "ln -s"; then
10901 { echo "$as_me:$LINENO: result: yes" >&5
10902 echo "${ECHO_T}yes" >&6; }
10904 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10905 echo "${ECHO_T}no, using $LN_S" >&6; }
10908 # Extract the first word of "mv", so it can be a program name with args.
10909 set dummy mv; ac_word=$2
10910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10912 if test "${ac_cv_path_MV+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10940 if test -n "$MV"; then
10941 { echo "$as_me:$LINENO: result: $MV" >&5
10942 echo "${ECHO_T}$MV" >&6; }
10944 { echo "$as_me:$LINENO: result: no" >&5
10945 echo "${ECHO_T}no" >&6; }
10949 # Extract the first word of "cp", so it can be a program name with args.
10950 set dummy cp; ac_word=$2
10951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10953 if test "${ac_cv_path_CP+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10968 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10981 if test -n "$CP"; then
10982 { echo "$as_me:$LINENO: result: $CP" >&5
10983 echo "${ECHO_T}$CP" >&6; }
10985 { echo "$as_me:$LINENO: result: no" >&5
10986 echo "${ECHO_T}no" >&6; }
10990 # Extract the first word of "rm", so it can be a program name with args.
10991 set dummy rm; ac_word=$2
10992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10994 if test "${ac_cv_path_RM+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11017 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11022 if test -n "$RM"; then
11023 { echo "$as_me:$LINENO: result: $RM" >&5
11024 echo "${ECHO_T}$RM" >&6; }
11026 { echo "$as_me:$LINENO: result: no" >&5
11027 echo "${ECHO_T}no" >&6; }
11031 # Extract the first word of "chmod", so it can be a program name with args.
11032 set dummy chmod; ac_word=$2
11033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11035 if test "${ac_cv_path_CHMOD+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11058 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11062 CHMOD=$ac_cv_path_CHMOD
11063 if test -n "$CHMOD"; then
11064 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11065 echo "${ECHO_T}$CHMOD" >&6; }
11067 { echo "$as_me:$LINENO: result: no" >&5
11068 echo "${ECHO_T}no" >&6; }
11072 for ac_prog in gawk mawk nawk awk
11074 # Extract the first word of "$ac_prog", so it can be a program name with args.
11075 set dummy $ac_prog; ac_word=$2
11076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11078 if test "${ac_cv_prog_AWK+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11081 if test -n "$AWK"; then
11082 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091 ac_cv_prog_AWK="$ac_prog"
11092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 AWK=$ac_cv_prog_AWK
11102 if test -n "$AWK"; then
11103 { echo "$as_me:$LINENO: result: $AWK" >&5
11104 echo "${ECHO_T}$AWK" >&6; }
11106 { echo "$as_me:$LINENO: result: no" >&5
11107 echo "${ECHO_T}no" >&6; }
11111 test -n "$AWK" && break
11114 { echo "$as_me:$LINENO: checking for egrep" >&5
11115 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11116 if test "${ac_cv_path_EGREP+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11120 then ac_cv_path_EGREP="$GREP -E"
11122 # Extract the first word of "egrep" to use in msg output
11123 if test -z "$EGREP"; then
11124 set dummy egrep; ac_prog_name=$2
11125 if test "${ac_cv_path_EGREP+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 ac_path_EGREP_found=false
11129 # Loop through the user's path and test for each of PROGNAME-LIST
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11134 test -z "$as_dir" && as_dir=.
11135 for ac_prog in egrep; do
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11138 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11139 # Check for GNU ac_path_EGREP and select it if it is found.
11140 # Check for GNU $ac_path_EGREP
11141 case `"$ac_path_EGREP" --version 2>&1` in
11143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11146 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11149 cat "conftest.in" "conftest.in" >"conftest.tmp"
11150 mv "conftest.tmp" "conftest.in"
11151 cp "conftest.in" "conftest.nl"
11152 echo 'EGREP' >> "conftest.nl"
11153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11155 ac_count=`expr $ac_count + 1`
11156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11157 # Best one so far, save it but keep looking for a better one
11158 ac_cv_path_EGREP="$ac_path_EGREP"
11159 ac_path_EGREP_max=$ac_count
11161 # 10*(2^10) chars as input seems more than enough
11162 test $ac_count -gt 10 && break
11164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11168 $ac_path_EGREP_found && break 3
11178 EGREP="$ac_cv_path_EGREP"
11179 if test -z "$EGREP"; then
11180 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11181 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11182 { (exit 1); exit 1; }; }
11186 ac_cv_path_EGREP=$EGREP
11192 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11193 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11194 EGREP="$ac_cv_path_EGREP"
11197 # Extract the first word of "sed", so it can be a program name with args.
11198 set dummy sed; ac_word=$2
11199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11201 if test "${ac_cv_path_SED+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
11215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11216 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11228 SED=$ac_cv_path_SED
11229 if test -n "$SED"; then
11230 { echo "$as_me:$LINENO: result: $SED" >&5
11231 echo "${ECHO_T}$SED" >&6; }
11233 { echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6; }
11238 # Extract the first word of "perl", so it can be a program name with args.
11239 set dummy perl; ac_word=$2
11240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11242 if test "${ac_cv_path_PERL+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11269 PERL=$ac_cv_path_PERL
11270 if test -n "$PERL"; then
11271 { echo "$as_me:$LINENO: result: $PERL" >&5
11272 echo "${ECHO_T}$PERL" >&6; }
11274 { echo "$as_me:$LINENO: result: no" >&5
11275 echo "${ECHO_T}no" >&6; }
11279 # Extract the first word of "ldconfig", so it can be a program name with args.
11280 set dummy ldconfig; ac_word=$2
11281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11283 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11310 LDCONFIG=$ac_cv_path_LDCONFIG
11311 if test -n "$LDCONFIG"; then
11312 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11313 echo "${ECHO_T}$LDCONFIG" >&6; }
11315 { echo "$as_me:$LINENO: result: no" >&5
11316 echo "${ECHO_T}no" >&6; }
11320 if test -n "$ac_tool_prefix"; then
11321 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11322 set dummy ${ac_tool_prefix}ar; ac_word=$2
11323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11325 if test "${ac_cv_prog_AR+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 if test -n "$AR"; then
11329 ac_cv_prog_AR="$AR" # Let the user override the test.
11331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332 for as_dir in $PATH
11335 test -z "$as_dir" && as_dir=.
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11338 ac_cv_prog_AR="${ac_tool_prefix}ar"
11339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 if test -n "$AR"; then
11350 { echo "$as_me:$LINENO: result: $AR" >&5
11351 echo "${ECHO_T}$AR" >&6; }
11353 { echo "$as_me:$LINENO: result: no" >&5
11354 echo "${ECHO_T}no" >&6; }
11359 if test -z "$ac_cv_prog_AR"; then
11361 # Extract the first word of "ar", so it can be a program name with args.
11362 set dummy ar; ac_word=$2
11363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11365 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 if test -n "$ac_ct_AR"; then
11369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11375 test -z "$as_dir" && as_dir=.
11376 for ac_exec_ext in '' $ac_executable_extensions; do
11377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11378 ac_cv_prog_ac_ct_AR="ar"
11379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11389 if test -n "$ac_ct_AR"; then
11390 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11391 echo "${ECHO_T}$ac_ct_AR" >&6; }
11393 { echo "$as_me:$LINENO: result: no" >&5
11394 echo "${ECHO_T}no" >&6; }
11397 if test "x$ac_ct_AR" = x; then
11400 case $cross_compiling:$ac_tool_warned in
11402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11403 whose name does not start with the host triplet. If you think this
11404 configuration is useful to you, please write to autoconf@gnu.org." >&5
11405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11406 whose name does not start with the host triplet. If you think this
11407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11408 ac_tool_warned=yes ;;
11413 AR="$ac_cv_prog_AR"
11416 if test -n "$ac_tool_prefix"; then
11417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11421 if test "${ac_cv_prog_RANLIB+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 if test -n "$RANLIB"; then
11425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 RANLIB=$ac_cv_prog_RANLIB
11445 if test -n "$RANLIB"; then
11446 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11447 echo "${ECHO_T}$RANLIB" >&6; }
11449 { echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6; }
11455 if test -z "$ac_cv_prog_RANLIB"; then
11456 ac_ct_RANLIB=$RANLIB
11457 # Extract the first word of "ranlib", so it can be a program name with args.
11458 set dummy ranlib; ac_word=$2
11459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 if test -n "$ac_ct_RANLIB"; then
11465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474 ac_cv_prog_ac_ct_RANLIB="ranlib"
11475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11485 if test -n "$ac_ct_RANLIB"; then
11486 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11487 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11489 { echo "$as_me:$LINENO: result: no" >&5
11490 echo "${ECHO_T}no" >&6; }
11493 if test "x$ac_ct_RANLIB" = x; then
11496 case $cross_compiling:$ac_tool_warned in
11498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11499 whose name does not start with the host triplet. If you think this
11500 configuration is useful to you, please write to autoconf@gnu.org." >&5
11501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11502 whose name does not start with the host triplet. If you think this
11503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11504 ac_tool_warned=yes ;;
11506 RANLIB=$ac_ct_RANLIB
11509 RANLIB="$ac_cv_prog_RANLIB"
11512 if test -n "$ac_tool_prefix"; then
11513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11514 set dummy ${ac_tool_prefix}strip; ac_word=$2
11515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11517 if test "${ac_cv_prog_STRIP+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 if test -n "$STRIP"; then
11521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 STRIP=$ac_cv_prog_STRIP
11541 if test -n "$STRIP"; then
11542 { echo "$as_me:$LINENO: result: $STRIP" >&5
11543 echo "${ECHO_T}$STRIP" >&6; }
11545 { echo "$as_me:$LINENO: result: no" >&5
11546 echo "${ECHO_T}no" >&6; }
11551 if test -z "$ac_cv_prog_STRIP"; then
11553 # Extract the first word of "strip", so it can be a program name with args.
11554 set dummy strip; ac_word=$2
11555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11557 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 if test -n "$ac_ct_STRIP"; then
11561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564 for as_dir in $PATH
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11570 ac_cv_prog_ac_ct_STRIP="strip"
11571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11581 if test -n "$ac_ct_STRIP"; then
11582 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11583 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11585 { echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6; }
11589 if test "x$ac_ct_STRIP" = x; then
11592 case $cross_compiling:$ac_tool_warned in
11594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11595 whose name does not start with the host triplet. If you think this
11596 configuration is useful to you, please write to autoconf@gnu.org." >&5
11597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11598 whose name does not start with the host triplet. If you think this
11599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11600 ac_tool_warned=yes ;;
11605 STRIP="$ac_cv_prog_STRIP"
11608 # Extract the first word of "makeinfo", so it can be a program name with args.
11609 set dummy makeinfo; ac_word=$2
11610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11612 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 if test -n "$MAKEINFO"; then
11616 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619 for as_dir in $PATH
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
11624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11625 ac_cv_prog_MAKEINFO="makeinfo"
11626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 MAKEINFO=$ac_cv_prog_MAKEINFO
11636 if test -n "$MAKEINFO"; then
11637 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11638 echo "${ECHO_T}$MAKEINFO" >&6; }
11640 { echo "$as_me:$LINENO: result: no" >&5
11641 echo "${ECHO_T}no" >&6; }
11645 if test "_$MAKEINFO" = "_"; then
11646 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11648 case "$MAKEINFO" in
11650 { echo "$as_me:$LINENO: WARNING:
11651 *** Makeinfo is missing. Info documentation will not be built." >&5
11652 echo "$as_me: WARNING:
11653 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11660 # Find a good install program. We prefer a C program (faster),
11661 # so one script is as good as another. But avoid the broken or
11662 # incompatible versions:
11663 # SysV /etc/install, /usr/sbin/install
11664 # SunOS /usr/etc/install
11665 # IRIX /sbin/install
11667 # AmigaOS /C/install, which installs bootblocks on floppy discs
11668 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11669 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11670 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11671 # OS/2's system install, which has a completely different semantic
11672 # ./install, which can be erroneously created by make from ./install.sh.
11673 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11674 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11675 if test -z "$INSTALL"; then
11676 if test "${ac_cv_path_install+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11683 test -z "$as_dir" && as_dir=.
11684 # Account for people who put trailing slashes in PATH elements.
11686 ./ | .// | /cC/* | \
11687 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11688 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11691 # OSF1 and SCO ODT 3.0 have their own names for install.
11692 # Don't use installbsd from OSF since it installs stuff as root
11694 for ac_prog in ginstall scoinst install; do
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11697 if test $ac_prog = install &&
11698 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11699 # AIX install. It has an incompatible calling convention.
11701 elif test $ac_prog = install &&
11702 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11703 # program-specific install script used by HP pwplus--don't use.
11706 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11719 if test "${ac_cv_path_install+set}" = set; then
11720 INSTALL=$ac_cv_path_install
11722 # As a last resort, use the slow shell script. Don't cache a
11723 # value for INSTALL within a source directory, because that will
11724 # break other packages using the cache if that directory is
11725 # removed, or if the value is a relative name.
11726 INSTALL=$ac_install_sh
11729 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11730 echo "${ECHO_T}$INSTALL" >&6; }
11732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11733 # It thinks the first close brace ends the variable substitution.
11734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11740 # See if we need a separate native compiler.
11741 if test $cross_compiling = no; then
11745 for ac_prog in gcc cc
11747 # Extract the first word of "$ac_prog", so it can be a program name with args.
11748 set dummy $ac_prog; ac_word=$2
11749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11751 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 if test -n "$BUILD_CC"; then
11755 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11764 ac_cv_prog_BUILD_CC="$ac_prog"
11765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 BUILD_CC=$ac_cv_prog_BUILD_CC
11775 if test -n "$BUILD_CC"; then
11776 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11777 echo "${ECHO_T}$BUILD_CC" >&6; }
11779 { echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6; }
11784 test -n "$BUILD_CC" && break
11824 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 termio.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
11826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 ac_res=`eval echo '${'$as_ac_Header'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835 echo "${ECHO_T}$ac_res" >&6; }
11837 # Is the header compilable?
11838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11840 cat >conftest.$ac_ext <<_ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 $ac_includes_default
11847 #include <$ac_header>
11849 rm -f conftest.$ac_objext
11850 if { (ac_try="$ac_compile"
11851 case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_compile") 2>conftest.er1
11858 grep -v '^ *+' conftest.er1 >conftest.err
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } && {
11863 test -z "$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11865 } && test -s conftest.$ac_objext; then
11866 ac_header_compiler=yes
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_header_compiler=no
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11876 echo "${ECHO_T}$ac_header_compiler" >&6; }
11878 # Is the header present?
11879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 #include <$ac_header>
11889 if { (ac_try="$ac_cpp conftest.$ac_ext"
11890 case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } >/dev/null && {
11902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11903 test ! -s conftest.err
11905 ac_header_preproc=yes
11907 echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11910 ac_header_preproc=no
11913 rm -f conftest.err conftest.$ac_ext
11914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11915 echo "${ECHO_T}$ac_header_preproc" >&6; }
11917 # So? What about this header?
11918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11924 ac_header_preproc=yes
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 eval "$as_ac_Header=\$ac_header_preproc"
11949 ac_res=`eval echo '${'$as_ac_Header'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951 echo "${ECHO_T}$ac_res" >&6; }
11954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11955 cat >>confdefs.h <<_ACEOF
11956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965 for ac_header in sys/disk.h sys/mount.h
11967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 cat >conftest.$ac_ext <<_ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11980 #if HAVE_SYS_QUEUE_H
11981 #include <sys/queue.h>
11985 #include <$ac_header>
11987 rm -f conftest.$ac_objext
11988 if { (ac_try="$ac_compile"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_compile") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest.$ac_objext; then
12004 eval "$as_ac_Header=yes"
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 eval "$as_ac_Header=no"
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 ac_res=`eval echo '${'$as_ac_Header'}'`
12015 { echo "$as_me:$LINENO: result: $ac_res" >&5
12016 echo "${ECHO_T}$ac_res" >&6; }
12017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 for ac_header in net/if.h
12029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12042 #if HAVE_SYS_TYPES_H
12043 #include <sys/types.h>
12045 #if HAVE_SYS_SOCKET
12046 #include <sys/socket.h>
12050 #include <$ac_header>
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12061 grep -v '^ *+' conftest.er1 >conftest.err
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
12069 eval "$as_ac_Header=yes"
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 eval "$as_ac_Header=no"
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 ac_res=`eval echo '${'$as_ac_Header'}'`
12080 { echo "$as_me:$LINENO: result: $ac_res" >&5
12081 echo "${ECHO_T}$ac_res" >&6; }
12082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12083 cat >>confdefs.h <<_ACEOF
12084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092 for ac_func in vprintf
12094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12108 #define $ac_func innocuous_$ac_func
12110 /* System header to define __stub macros and hopefully few prototypes,
12111 which can conflict with char $ac_func (); below.
12112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12113 <limits.h> exists even on freestanding compilers. */
12116 # include <limits.h>
12118 # include <assert.h>
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12130 /* The GNU C library defines this for functions which it implements
12131 to always fail with ENOSYS. Some functions are actually named
12132 something starting with __ and the normal name is an alias. */
12133 #if defined __stub_$ac_func || defined __stub___$ac_func
12140 return $ac_func ();
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (ac_try="$ac_link"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_link") 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest$ac_exeext &&
12162 $as_test_x conftest$ac_exeext; then
12163 eval "$as_ac_var=yes"
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 eval "$as_ac_var=no"
12171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12172 conftest$ac_exeext conftest.$ac_ext
12174 ac_res=`eval echo '${'$as_ac_var'}'`
12175 { echo "$as_me:$LINENO: result: $ac_res" >&5
12176 echo "${ECHO_T}$ac_res" >&6; }
12177 if test `eval echo '${'$as_ac_var'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12182 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12183 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12184 if test "${ac_cv_func__doprnt+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12193 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12195 #define _doprnt innocuous__doprnt
12197 /* System header to define __stub macros and hopefully few prototypes,
12198 which can conflict with char _doprnt (); below.
12199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12200 <limits.h> exists even on freestanding compilers. */
12203 # include <limits.h>
12205 # include <assert.h>
12210 /* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
12217 /* The GNU C library defines this for functions which it implements
12218 to always fail with ENOSYS. Some functions are actually named
12219 something starting with __ and the normal name is an alias. */
12220 #if defined __stub__doprnt || defined __stub____doprnt
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (ac_try="$ac_link"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12239 (eval "$ac_link") 2>conftest.er1
12241 grep -v '^ *+' conftest.er1 >conftest.err
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } && {
12246 test -z "$ac_c_werror_flag" ||
12247 test ! -s conftest.err
12248 } && test -s conftest$ac_exeext &&
12249 $as_test_x conftest$ac_exeext; then
12250 ac_cv_func__doprnt=yes
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 ac_cv_func__doprnt=no
12258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12259 conftest$ac_exeext conftest.$ac_ext
12261 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12262 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12263 if test $ac_cv_func__doprnt = yes; then
12265 cat >>confdefs.h <<\_ACEOF
12266 #define HAVE_DOPRNT 1
12275 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12276 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12277 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 cat >conftest.$ac_ext <<_ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <dirent.h>
12291 static struct dirent ac_aggr;
12292 if (ac_aggr.d_reclen)
12298 rm -f conftest.$ac_objext
12299 if { (ac_try="$ac_compile"
12300 case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_compile") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.$ac_objext; then
12315 ac_cv_member_struct_dirent_d_reclen=yes
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 #include <dirent.h>
12331 static struct dirent ac_aggr;
12332 if (sizeof ac_aggr.d_reclen)
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 ac_cv_member_struct_dirent_d_reclen=yes
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 ac_cv_member_struct_dirent_d_reclen=no
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12369 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12370 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12371 cat >>confdefs.h <<\_ACEOF
12372 #define HAVE_RECLEN_DIRENT 1
12377 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12378 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12379 if test "${ac_cv_type_ssize_t+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 #include <sys/types.h>
12390 typedef ssize_t ac__type_new_;
12394 if ((ac__type_new_ *) 0)
12396 if (sizeof (ac__type_new_))
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_compile") 2>conftest.er1
12411 grep -v '^ *+' conftest.er1 >conftest.err
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.$ac_objext; then
12419 ac_cv_type_ssize_t=yes
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ac_cv_type_ssize_t=no
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12430 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12431 if test $ac_cv_type_ssize_t = yes; then
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_TYPE_SSIZE_T 1
12438 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12439 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12440 if test "${ac_cv_have_decl_llseek+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <unistd.h>
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
12479 ac_cv_have_decl_llseek=yes
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 ac_cv_have_decl_llseek=no
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12490 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12491 if test $ac_cv_have_decl_llseek = yes; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define HAVE_LLSEEK_PROTOTYPE 1
12498 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12499 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12500 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 cat >conftest.$ac_ext <<_ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 #define _LARGEFILE_SOURCE
12510 #define _LARGEFILE64_SOURCE
12511 #include <unistd.h>
12524 rm -f conftest.$ac_objext
12525 if { (ac_try="$ac_compile"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_compile") 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && {
12538 test -z "$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12540 } && test -s conftest.$ac_objext; then
12541 ac_cv_have_decl_lseek64=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 ac_cv_have_decl_lseek64=no
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12552 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12553 if test $ac_cv_have_decl_lseek64 = yes; then
12554 cat >>confdefs.h <<\_ACEOF
12555 #define HAVE_LSEEK64_PROTOTYPE 1
12560 { echo "$as_me:$LINENO: checking for short" >&5
12561 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12562 if test "${ac_cv_type_short+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 $ac_includes_default
12572 typedef short ac__type_new_;
12576 if ((ac__type_new_ *) 0)
12578 if (sizeof (ac__type_new_))
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
12601 ac_cv_type_short=yes
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_cv_type_short=no
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12612 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12614 # The cast to long int works around a bug in the HP C Compiler
12615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617 # This bug is HP SR number 8606223364.
12618 { echo "$as_me:$LINENO: checking size of short" >&5
12619 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12620 if test "${ac_cv_sizeof_short+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 if test "$cross_compiling" = yes; then
12624 # Depending upon the size, compute the lo and hi bounds.
12625 cat >conftest.$ac_ext <<_ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 typedef short ac__type_sizeof_;
12636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12652 grep -v '^ *+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12669 typedef short ac__type_sizeof_;
12673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12697 ac_hi=$ac_mid; break
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_lo=`expr $ac_mid + 1`
12703 if test $ac_lo -le $ac_mid; then
12707 ac_mid=`expr 2 '*' $ac_mid + 1`
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12716 cat >conftest.$ac_ext <<_ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 typedef short ac__type_sizeof_;
12727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12734 rm -f conftest.$ac_objext
12735 if { (ac_try="$ac_compile"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_compile") 2>conftest.er1
12743 grep -v '^ *+' conftest.er1 >conftest.err
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest.$ac_objext; then
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 $ac_includes_default
12760 typedef short ac__type_sizeof_;
12764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_compile") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest.$ac_objext; then
12788 ac_lo=$ac_mid; break
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.$ac_ext >&5
12793 ac_hi=`expr '(' $ac_mid ')' - 1`
12794 if test $ac_mid -le $ac_hi; then
12798 ac_mid=`expr 2 '*' $ac_mid`
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 # Binary search between lo and hi bounds.
12815 while test "x$ac_lo" != "x$ac_hi"; do
12816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12817 cat >conftest.$ac_ext <<_ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 typedef short ac__type_sizeof_;
12828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12835 rm -f conftest.$ac_objext
12836 if { (ac_try="$ac_compile"
12837 case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_lo=`expr '(' $ac_mid ')' + 1`
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 ?*) ac_cv_sizeof_short=$ac_lo;;
12864 '') if test "$ac_cv_type_short" = yes; then
12865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12866 See \`config.log' for more details." >&5
12867 echo "$as_me: error: cannot compute sizeof (short)
12868 See \`config.log' for more details." >&2;}
12869 { (exit 77); exit 77; }; }
12871 ac_cv_sizeof_short=0
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12882 typedef short ac__type_sizeof_;
12883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12886 #include <stdlib.h>
12891 FILE *f = fopen ("conftest.val", "w");
12894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12896 long int i = longval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12899 fprintf (f, "%ld\n", i);
12903 unsigned long int i = ulongval ();
12904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12906 fprintf (f, "%lu\n", i);
12908 return ferror (f) || fclose (f) != 0;
12914 rm -f conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_link") 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_sizeof_short=`cat conftest.val`
12936 echo "$as_me: program exited with status $ac_status" >&5
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ( exit $ac_status )
12941 if test "$ac_cv_type_short" = yes; then
12942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12943 See \`config.log' for more details." >&5
12944 echo "$as_me: error: cannot compute sizeof (short)
12945 See \`config.log' for more details." >&2;}
12946 { (exit 77); exit 77; }; }
12948 ac_cv_sizeof_short=0
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12956 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12960 cat >>confdefs.h <<_ACEOF
12961 #define SIZEOF_SHORT $ac_cv_sizeof_short
12965 { echo "$as_me:$LINENO: checking for int" >&5
12966 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12967 if test "${ac_cv_type_int+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 typedef int ac__type_new_;
12981 if ((ac__type_new_ *) 0)
12983 if (sizeof (ac__type_new_))
12989 rm -f conftest.$ac_objext
12990 if { (ac_try="$ac_compile"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_compile") 2>conftest.er1
12998 grep -v '^ *+' conftest.er1 >conftest.err
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest.$ac_objext; then
13008 echo "$as_me: failed program was:" >&5
13009 sed 's/^/| /' conftest.$ac_ext >&5
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13017 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13019 # The cast to long int works around a bug in the HP C Compiler
13020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13022 # This bug is HP SR number 8606223364.
13023 { echo "$as_me:$LINENO: checking size of int" >&5
13024 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13025 if test "${ac_cv_sizeof_int+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 if test "$cross_compiling" = yes; then
13029 # Depending upon the size, compute the lo and hi bounds.
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 $ac_includes_default
13037 typedef int ac__type_sizeof_;
13041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13048 rm -f conftest.$ac_objext
13049 if { (ac_try="$ac_compile"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_compile") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest.$ac_objext; then
13067 cat >conftest.$ac_ext <<_ACEOF
13070 cat confdefs.h >>conftest.$ac_ext
13071 cat >>conftest.$ac_ext <<_ACEOF
13072 /* end confdefs.h. */
13073 $ac_includes_default
13074 typedef int ac__type_sizeof_;
13078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
13102 ac_hi=$ac_mid; break
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.$ac_ext >&5
13107 ac_lo=`expr $ac_mid + 1`
13108 if test $ac_lo -le $ac_mid; then
13112 ac_mid=`expr 2 '*' $ac_mid + 1`
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13128 typedef int ac__type_sizeof_;
13132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13158 cat >conftest.$ac_ext <<_ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 $ac_includes_default
13165 typedef int ac__type_sizeof_;
13169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13176 rm -f conftest.$ac_objext
13177 if { (ac_try="$ac_compile"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_compile") 2>conftest.er1
13185 grep -v '^ *+' conftest.er1 >conftest.err
13187 cat conftest.err >&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 } && test -s conftest.$ac_objext; then
13193 ac_lo=$ac_mid; break
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13198 ac_hi=`expr '(' $ac_mid ')' - 1`
13199 if test $ac_mid -le $ac_hi; then
13203 ac_mid=`expr 2 '*' $ac_mid`
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 # Binary search between lo and hi bounds.
13220 while test "x$ac_lo" != "x$ac_hi"; do
13221 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13222 cat >conftest.$ac_ext <<_ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h. */
13228 $ac_includes_default
13229 typedef int ac__type_sizeof_;
13233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_compile") 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } && {
13254 test -z "$ac_c_werror_flag" ||
13255 test ! -s conftest.err
13256 } && test -s conftest.$ac_objext; then
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13262 ac_lo=`expr '(' $ac_mid ')' + 1`
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 ?*) ac_cv_sizeof_int=$ac_lo;;
13269 '') if test "$ac_cv_type_int" = yes; then
13270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13271 See \`config.log' for more details." >&5
13272 echo "$as_me: error: cannot compute sizeof (int)
13273 See \`config.log' for more details." >&2;}
13274 { (exit 77); exit 77; }; }
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13287 typedef int ac__type_sizeof_;
13288 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13289 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13291 #include <stdlib.h>
13296 FILE *f = fopen ("conftest.val", "w");
13299 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13301 long int i = longval ();
13302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13304 fprintf (f, "%ld\n", i);
13308 unsigned long int i = ulongval ();
13309 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13311 fprintf (f, "%lu\n", i);
13313 return ferror (f) || fclose (f) != 0;
13319 rm -f conftest$ac_exeext
13320 if { (ac_try="$ac_link"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_link") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13330 { (case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_try") 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_sizeof_int=`cat conftest.val`
13341 echo "$as_me: program exited with status $ac_status" >&5
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ( exit $ac_status )
13346 if test "$ac_cv_type_int" = yes; then
13347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13348 See \`config.log' for more details." >&5
13349 echo "$as_me: error: cannot compute sizeof (int)
13350 See \`config.log' for more details." >&2;}
13351 { (exit 77); exit 77; }; }
13356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13360 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13361 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13365 cat >>confdefs.h <<_ACEOF
13366 #define SIZEOF_INT $ac_cv_sizeof_int
13370 { echo "$as_me:$LINENO: checking for long" >&5
13371 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13372 if test "${ac_cv_type_long+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 $ac_includes_default
13382 typedef long ac__type_new_;
13386 if ((ac__type_new_ *) 0)
13388 if (sizeof (ac__type_new_))
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest.$ac_objext; then
13411 ac_cv_type_long=yes
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13422 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13424 # The cast to long int works around a bug in the HP C Compiler
13425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13427 # This bug is HP SR number 8606223364.
13428 { echo "$as_me:$LINENO: checking size of long" >&5
13429 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13430 if test "${ac_cv_sizeof_long+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 if test "$cross_compiling" = yes; then
13434 # Depending upon the size, compute the lo and hi bounds.
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441 $ac_includes_default
13442 typedef long ac__type_sizeof_;
13446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && {
13467 test -z "$ac_c_werror_flag" ||
13468 test ! -s conftest.err
13469 } && test -s conftest.$ac_objext; then
13472 cat >conftest.$ac_ext <<_ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 $ac_includes_default
13479 typedef long ac__type_sizeof_;
13483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13499 grep -v '^ *+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_hi=$ac_mid; break
13509 echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.$ac_ext >&5
13512 ac_lo=`expr $ac_mid + 1`
13513 if test $ac_lo -le $ac_mid; then
13517 ac_mid=`expr 2 '*' $ac_mid + 1`
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 cat >conftest.$ac_ext <<_ACEOF
13529 cat confdefs.h >>conftest.$ac_ext
13530 cat >>conftest.$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13532 $ac_includes_default
13533 typedef long ac__type_sizeof_;
13537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13553 grep -v '^ *+' conftest.er1 >conftest.err
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 $ac_includes_default
13570 typedef long ac__type_sizeof_;
13574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13590 grep -v '^ *+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } && {
13595 test -z "$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13597 } && test -s conftest.$ac_objext; then
13598 ac_lo=$ac_mid; break
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 ac_hi=`expr '(' $ac_mid ')' - 1`
13604 if test $ac_mid -le $ac_hi; then
13608 ac_mid=`expr 2 '*' $ac_mid`
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 # Binary search between lo and hi bounds.
13625 while test "x$ac_lo" != "x$ac_hi"; do
13626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627 cat >conftest.$ac_ext <<_ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633 $ac_includes_default
13634 typedef long ac__type_sizeof_;
13638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13645 rm -f conftest.$ac_objext
13646 if { (ac_try="$ac_compile"
13647 case "(($ac_try" in
13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649 *) ac_try_echo=$ac_try;;
13651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13652 (eval "$ac_compile") 2>conftest.er1
13654 grep -v '^ *+' conftest.er1 >conftest.err
13656 cat conftest.err >&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } && {
13659 test -z "$ac_c_werror_flag" ||
13660 test ! -s conftest.err
13661 } && test -s conftest.$ac_objext; then
13664 echo "$as_me: failed program was:" >&5
13665 sed 's/^/| /' conftest.$ac_ext >&5
13667 ac_lo=`expr '(' $ac_mid ')' + 1`
13670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 ?*) ac_cv_sizeof_long=$ac_lo;;
13674 '') if test "$ac_cv_type_long" = yes; then
13675 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13676 See \`config.log' for more details." >&5
13677 echo "$as_me: error: cannot compute sizeof (long)
13678 See \`config.log' for more details." >&2;}
13679 { (exit 77); exit 77; }; }
13681 ac_cv_sizeof_long=0
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13692 typedef long ac__type_sizeof_;
13693 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13694 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13696 #include <stdlib.h>
13701 FILE *f = fopen ("conftest.val", "w");
13704 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13706 long int i = longval ();
13707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13709 fprintf (f, "%ld\n", i);
13713 unsigned long int i = ulongval ();
13714 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13716 fprintf (f, "%lu\n", i);
13718 return ferror (f) || fclose (f) != 0;
13724 rm -f conftest$ac_exeext
13725 if { (ac_try="$ac_link"
13726 case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_link") 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13744 ac_cv_sizeof_long=`cat conftest.val`
13746 echo "$as_me: program exited with status $ac_status" >&5
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ( exit $ac_status )
13751 if test "$ac_cv_type_long" = yes; then
13752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13753 See \`config.log' for more details." >&5
13754 echo "$as_me: error: cannot compute sizeof (long)
13755 See \`config.log' for more details." >&2;}
13756 { (exit 77); exit 77; }; }
13758 ac_cv_sizeof_long=0
13761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13765 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13766 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13770 cat >>confdefs.h <<_ACEOF
13771 #define SIZEOF_LONG $ac_cv_sizeof_long
13775 { echo "$as_me:$LINENO: checking for long long" >&5
13776 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13777 if test "${ac_cv_type_long_long+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13787 typedef long long ac__type_new_;
13791 if ((ac__type_new_ *) 0)
13793 if (sizeof (ac__type_new_))
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
13816 ac_cv_type_long_long=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_cv_type_long_long=no
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13827 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13829 # The cast to long int works around a bug in the HP C Compiler
13830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13832 # This bug is HP SR number 8606223364.
13833 { echo "$as_me:$LINENO: checking size of long long" >&5
13834 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13835 if test "${ac_cv_sizeof_long_long+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 if test "$cross_compiling" = yes; then
13839 # Depending upon the size, compute the lo and hi bounds.
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13847 typedef long long ac__type_sizeof_;
13851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13877 cat >conftest.$ac_ext <<_ACEOF
13880 cat confdefs.h >>conftest.$ac_ext
13881 cat >>conftest.$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13883 $ac_includes_default
13884 typedef long long ac__type_sizeof_;
13888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13895 rm -f conftest.$ac_objext
13896 if { (ac_try="$ac_compile"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_compile") 2>conftest.er1
13904 grep -v '^ *+' conftest.er1 >conftest.err
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest.$ac_objext; then
13912 ac_hi=$ac_mid; break
13914 echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 ac_lo=`expr $ac_mid + 1`
13918 if test $ac_lo -le $ac_mid; then
13922 ac_mid=`expr 2 '*' $ac_mid + 1`
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 $ac_includes_default
13938 typedef long long ac__type_sizeof_;
13942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_compile") 2>conftest.er1
13958 grep -v '^ *+' conftest.er1 >conftest.err
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest.$ac_objext; then
13968 cat >conftest.$ac_ext <<_ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 $ac_includes_default
13975 typedef long long ac__type_sizeof_;
13979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13986 rm -f conftest.$ac_objext
13987 if { (ac_try="$ac_compile"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_compile") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest.$ac_objext; then
14003 ac_lo=$ac_mid; break
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_hi=`expr '(' $ac_mid ')' - 1`
14009 if test $ac_mid -le $ac_hi; then
14013 ac_mid=`expr 2 '*' $ac_mid`
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14029 # Binary search between lo and hi bounds.
14030 while test "x$ac_lo" != "x$ac_hi"; do
14031 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14032 cat >conftest.$ac_ext <<_ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 $ac_includes_default
14039 typedef long long ac__type_sizeof_;
14043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14050 rm -f conftest.$ac_objext
14051 if { (ac_try="$ac_compile"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_compile") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1 >conftest.err
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest.$ac_objext; then
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14072 ac_lo=`expr '(' $ac_mid ')' + 1`
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14079 '') if test "$ac_cv_type_long_long" = yes; then
14080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14081 See \`config.log' for more details." >&5
14082 echo "$as_me: error: cannot compute sizeof (long long)
14083 See \`config.log' for more details." >&2;}
14084 { (exit 77); exit 77; }; }
14086 ac_cv_sizeof_long_long=0
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 $ac_includes_default
14097 typedef long long ac__type_sizeof_;
14098 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14099 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14101 #include <stdlib.h>
14106 FILE *f = fopen ("conftest.val", "w");
14109 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14111 long int i = longval ();
14112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14114 fprintf (f, "%ld\n", i);
14118 unsigned long int i = ulongval ();
14119 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14121 fprintf (f, "%lu\n", i);
14123 return ferror (f) || fclose (f) != 0;
14129 rm -f conftest$ac_exeext
14130 if { (ac_try="$ac_link"
14131 case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_link") 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14140 { (case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_try") 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_cv_sizeof_long_long=`cat conftest.val`
14151 echo "$as_me: program exited with status $ac_status" >&5
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ( exit $ac_status )
14156 if test "$ac_cv_type_long_long" = yes; then
14157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14158 See \`config.log' for more details." >&5
14159 echo "$as_me: error: cannot compute sizeof (long long)
14160 See \`config.log' for more details." >&2;}
14161 { (exit 77); exit 77; }; }
14163 ac_cv_sizeof_long_long=0
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14170 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14171 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14175 cat >>confdefs.h <<_ACEOF
14176 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14180 SIZEOF_SHORT=$ac_cv_sizeof_short
14181 SIZEOF_INT=$ac_cv_sizeof_int
14182 SIZEOF_LONG=$ac_cv_sizeof_long
14183 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14188 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14189 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14190 if test "${ac_cv_c_bigendian+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 # See if sys/param.h defines the BYTE_ORDER macro.
14194 cat >conftest.$ac_ext <<_ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h. */
14200 #include <sys/types.h>
14201 #include <sys/param.h>
14206 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14207 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14208 bogus endian macros
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_compile") 2>conftest.er1
14224 grep -v '^ *+' conftest.er1 >conftest.err
14226 cat conftest.err >&5
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); } && {
14229 test -z "$ac_c_werror_flag" ||
14230 test ! -s conftest.err
14231 } && test -s conftest.$ac_objext; then
14232 # It does; now see whether it defined to BIG_ENDIAN or not.
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 #include <sys/types.h>
14240 #include <sys/param.h>
14245 #if BYTE_ORDER != BIG_ENDIAN
14253 rm -f conftest.$ac_objext
14254 if { (ac_try="$ac_compile"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_compile") 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest.$ac_objext; then
14270 ac_cv_c_bigendian=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_c_bigendian=no
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14283 # It does not; compile a test program.
14284 if test "$cross_compiling" = yes; then
14285 # try to guess the endianness by grepping values into an object file
14286 ac_cv_c_bigendian=unknown
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14294 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14295 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14296 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14297 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14298 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14302 _ascii (); _ebcdic ();
14307 rm -f conftest.$ac_objext
14308 if { (ac_try="$ac_compile"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_compile") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } && {
14321 test -z "$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 } && test -s conftest.$ac_objext; then
14324 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14325 ac_cv_c_bigendian=yes
14327 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14328 if test "$ac_cv_c_bigendian" = unknown; then
14329 ac_cv_c_bigendian=no
14331 # finding both strings is unlikely to happen, but who knows?
14332 ac_cv_c_bigendian=unknown
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14350 $ac_includes_default
14355 /* Are we little or big endian? From Harbison&Steele. */
14359 char c[sizeof (long int)];
14362 return u.c[sizeof (long int) - 1] == 1;
14368 rm -f conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14379 { (case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_try") 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_c_bigendian=no
14390 echo "$as_me: program exited with status $ac_status" >&5
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ( exit $ac_status )
14395 ac_cv_c_bigendian=yes
14397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14406 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14407 case $ac_cv_c_bigendian in
14410 cat >>confdefs.h <<\_ACEOF
14411 #define WORDS_BIGENDIAN 1
14417 { { echo "$as_me:$LINENO: error: unknown endianness
14418 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14419 echo "$as_me: error: unknown endianness
14420 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14421 { (exit 1); exit 1; }; } ;;
14424 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14425 ASM_TYPES_HEADER=./asm_types.h
14427 echo "/* These defines are needed for the public ext2fs.h header file */" \
14429 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14430 uniq tmp_config.$$ >> public_config.h
14432 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14434 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14435 uniq tmp_config.$$ >> public_config.h
14437 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14439 rm -f tmp_config.$$
14440 PUBLIC_CONFIG_HEADER=./public_config.h
14443 for ac_header in inttypes.h
14445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_res=`eval echo '${'$as_ac_Header'}'`
14453 { echo "$as_me:$LINENO: result: $ac_res" >&5
14454 echo "${ECHO_T}$ac_res" >&6; }
14456 # Is the header compilable?
14457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 $ac_includes_default
14466 #include <$ac_header>
14468 rm -f conftest.$ac_objext
14469 if { (ac_try="$ac_compile"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_compile") 2>conftest.er1
14477 grep -v '^ *+' conftest.er1 >conftest.err
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest.$ac_objext; then
14485 ac_header_compiler=yes
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14490 ac_header_compiler=no
14493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14495 echo "${ECHO_T}$ac_header_compiler" >&6; }
14497 # Is the header present?
14498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14500 cat >conftest.$ac_ext <<_ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 #include <$ac_header>
14508 if { (ac_try="$ac_cpp conftest.$ac_ext"
14509 case "(($ac_try" in
14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511 *) ac_try_echo=$ac_try;;
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14516 grep -v '^ *+' conftest.er1 >conftest.err
14518 cat conftest.err >&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); } >/dev/null && {
14521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14522 test ! -s conftest.err
14524 ac_header_preproc=yes
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 ac_header_preproc=no
14532 rm -f conftest.err conftest.$ac_ext
14533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14534 echo "${ECHO_T}$ac_header_preproc" >&6; }
14536 # So? What about this header?
14537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14543 ac_header_preproc=yes
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 eval "$as_ac_Header=\$ac_header_preproc"
14568 ac_res=`eval echo '${'$as_ac_Header'}'`
14569 { echo "$as_me:$LINENO: result: $ac_res" >&5
14570 echo "${ECHO_T}$ac_res" >&6; }
14573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14574 cat >>confdefs.h <<_ACEOF
14575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14582 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14583 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14584 if test "${ac_cv_type_intptr_t+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 $ac_includes_default
14594 typedef intptr_t ac__type_new_;
14598 if ((ac__type_new_ *) 0)
14600 if (sizeof (ac__type_new_))
14606 rm -f conftest.$ac_objext
14607 if { (ac_try="$ac_compile"
14608 case "(($ac_try" in
14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610 *) ac_try_echo=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_compile") 2>conftest.er1
14615 grep -v '^ *+' conftest.er1 >conftest.err
14617 cat conftest.err >&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } && {
14620 test -z "$ac_c_werror_flag" ||
14621 test ! -s conftest.err
14622 } && test -s conftest.$ac_objext; then
14623 ac_cv_type_intptr_t=yes
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14628 ac_cv_type_intptr_t=no
14631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14634 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14635 if test $ac_cv_type_intptr_t = yes; then
14637 cat >>confdefs.h <<_ACEOF
14638 #define HAVE_INTPTR_T 1
14644 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14645 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14646 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 #include <sys/stat.h>
14659 struct stat stat; stat.st_flags = 0;
14664 rm -f conftest.$ac_objext
14665 if { (ac_try="$ac_compile"
14666 case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_compile") 2>conftest.er1
14673 grep -v '^ *+' conftest.er1 >conftest.err
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } && {
14678 test -z "$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 } && test -s conftest.$ac_objext; then
14681 e2fsprogs_cv_struct_st_flags=yes
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 e2fsprogs_cv_struct_st_flags=no
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14693 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14694 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14695 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14696 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14697 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 #include <sys/stat.h>
14710 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest.$ac_objext; then
14732 e2fsprogs_cv_struct_st_flags_immut=yes
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 e2fsprogs_cv_struct_st_flags_immut=no
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14744 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14745 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_STAT_FLAGS 1
14752 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14753 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14754 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <sys/types.h>
14764 #include <sys/socket.h>
14769 static struct sockaddr ac_aggr;
14770 if (ac_aggr.sa_len)
14776 rm -f conftest.$ac_objext
14777 if { (ac_try="$ac_compile"
14778 case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_compile") 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && {
14790 test -z "$ac_c_werror_flag" ||
14791 test ! -s conftest.err
14792 } && test -s conftest.$ac_objext; then
14793 ac_cv_member_struct_sockaddr_sa_len=yes
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 #include <sys/types.h>
14805 #include <sys/socket.h>
14810 static struct sockaddr ac_aggr;
14811 if (sizeof ac_aggr.sa_len)
14817 rm -f conftest.$ac_objext
14818 if { (ac_try="$ac_compile"
14819 case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_compile") 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } && {
14831 test -z "$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14833 } && test -s conftest.$ac_objext; then
14834 ac_cv_member_struct_sockaddr_sa_len=yes
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 ac_cv_member_struct_sockaddr_sa_len=no
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14848 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14849 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14851 cat >>confdefs.h <<_ACEOF
14852 #define HAVE_SA_LEN 1
14888 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
14890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14894 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 cat >conftest.$ac_ext <<_ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14904 #define $ac_func innocuous_$ac_func
14906 /* System header to define __stub macros and hopefully few prototypes,
14907 which can conflict with char $ac_func (); below.
14908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14909 <limits.h> exists even on freestanding compilers. */
14912 # include <limits.h>
14914 # include <assert.h>
14919 /* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
14926 /* The GNU C library defines this for functions which it implements
14927 to always fail with ENOSYS. Some functions are actually named
14928 something starting with __ and the normal name is an alias. */
14929 #if defined __stub_$ac_func || defined __stub___$ac_func
14936 return $ac_func ();
14941 rm -f conftest.$ac_objext conftest$ac_exeext
14942 if { (ac_try="$ac_link"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_link") 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest$ac_exeext &&
14958 $as_test_x conftest$ac_exeext; then
14959 eval "$as_ac_var=yes"
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 eval "$as_ac_var=no"
14967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14968 conftest$ac_exeext conftest.$ac_ext
14970 ac_res=`eval echo '${'$as_ac_var'}'`
14971 { echo "$as_me:$LINENO: result: $ac_res" >&5
14972 echo "${ECHO_T}$ac_res" >&6; }
14973 if test `eval echo '${'$as_ac_var'}'` = yes; then
14974 cat >>confdefs.h <<_ACEOF
14975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14982 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14983 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14984 if test "${ac_cv_lib_socket_socket+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14987 ac_check_lib_save_LIBS=$LIBS
14988 LIBS="-lsocket $LIBS"
14989 cat >conftest.$ac_ext <<_ACEOF
14992 cat confdefs.h >>conftest.$ac_ext
14993 cat >>conftest.$ac_ext <<_ACEOF
14994 /* end confdefs.h. */
14996 /* Override any GCC internal prototype to avoid an error.
14997 Use char because int might match the return type of a GCC
14998 builtin and then its argument prototype would still apply. */
15011 rm -f conftest.$ac_objext conftest$ac_exeext
15012 if { (ac_try="$ac_link"
15013 case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_link") 2>conftest.er1
15020 grep -v '^ *+' conftest.er1 >conftest.err
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } && {
15025 test -z "$ac_c_werror_flag" ||
15026 test ! -s conftest.err
15027 } && test -s conftest$ac_exeext &&
15028 $as_test_x conftest$ac_exeext; then
15029 ac_cv_lib_socket_socket=yes
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.$ac_ext >&5
15034 ac_cv_lib_socket_socket=no
15037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15038 conftest$ac_exeext conftest.$ac_ext
15039 LIBS=$ac_check_lib_save_LIBS
15041 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15042 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15043 if test $ac_cv_lib_socket_socket = yes; then
15044 SOCKET_LIB=-lsocket
15049 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 ac_check_lib_save_LIBS=$LIBS
15056 cat >conftest.$ac_ext <<_ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15063 /* Override any GCC internal prototype to avoid an error.
15064 Use char because int might match the return type of a GCC
15065 builtin and then its argument prototype would still apply. */
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (ac_try="$ac_link"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest$ac_exeext &&
15095 $as_test_x conftest$ac_exeext; then
15096 ac_cv_lib_dl_dlopen=yes
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ac_cv_lib_dl_dlopen=no
15104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15105 conftest$ac_exeext conftest.$ac_ext
15106 LIBS=$ac_check_lib_save_LIBS
15108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15110 if test $ac_cv_lib_dl_dlopen = yes; then
15112 cat >>confdefs.h <<\_ACEOF
15113 #define HAVE_DLOPEN 1
15119 { echo "$as_me:$LINENO: checking for optreset" >&5
15120 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15121 if test "${ac_cv_have_optreset+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15130 #include <unistd.h>
15133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15134 $EGREP "optreset" >/dev/null 2>&1; then
15135 ac_cv_have_optreset=yes
15137 ac_cv_have_optreset=no
15142 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15143 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15144 if test $ac_cv_have_optreset = yes; then
15145 cat >>confdefs.h <<\_ACEOF
15146 #define HAVE_OPTRESET 1
15150 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15151 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15152 if diff -u $0 $0 > /dev/null 2>&1 ; then
15157 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15158 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15162 cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_EXT2_IOCTLS 1
15184 linux* | gnu* | k*bsd*-gnu)
15185 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15187 echo "On $host_os systems, root_prefix defaults to ''"
15192 linux* | gnu* | k*bsd*-gnu)
15193 if test "$prefix" = NONE ; then
15195 echo "On $host_os systems, prefix defaults to /usr"
15196 if test "$mandir" = '${prefix}/man' ; then
15197 echo "...and mandir defaults to /usr/share/man"
15198 mandir=/usr/share/man
15203 if test "$root_prefix" = NONE ; then
15204 if test "$prefix" = NONE ; then
15205 root_prefix="$ac_default_prefix"
15207 root_prefix="$prefix"
15209 root_bindir=$bindir
15210 root_sbindir=$sbindir
15211 root_libdir=$libdir
15212 root_sysconfdir=$sysconfdir
15214 root_bindir='${root_prefix}/bin'
15215 root_sbindir='${root_prefix}/sbin'
15216 root_libdir='${root_prefix}/lib'
15217 root_sysconfdir='${root_prefix}/etc'
15219 if test "$bindir" != '${exec_prefix}/bin'; then
15220 root_bindir=$bindir
15221 echo "Setting root_bindir to $root_bindir"
15223 if test "$sbindir" != '${exec_prefix}/sbin'; then
15224 root_sbindir=$sbindir
15225 echo "Setting root_sbindir to $root_sbindir"
15227 if test "$libdir" != '${exec_prefix}/lib'; then
15228 root_libdir=$libdir
15229 echo "Setting root_libdir to $root_libdir"
15231 if test "$sysconfdir" != '${prefix}/etc'; then
15232 root_sysconfdir=$sysconfdir
15233 echo "Setting root_sysconfdir to $root_sysconfdir"
15240 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15241 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15242 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext &&
15278 $as_test_x conftest$ac_exeext; then
15279 ac_cv_e2fsprogs_use_static=yes
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_cv_e2fsprogs_use_static=no
15287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15288 conftest$ac_exeext conftest.$ac_ext
15289 LDFLAGS=$SAVE_LDFLAGS
15294 ac_cv_e2fsprogs_use_static=no
15297 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15298 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15300 if test $ac_cv_e2fsprogs_use_static = yes; then
15301 LDFLAG_STATIC=-static
15306 echo "Using Apple Darwin / GNU libintl workaround"
15307 cat >>confdefs.h <<\_ACEOF
15308 #define _INTL_REDIRECT_MACROS 1
15313 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15314 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15317 if test "$cross_compiling" = yes ; then
15320 DO_TEST_SUITE=check
15324 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15325 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15328 if test $cross_compiling = no; then
15329 BUILD_CFLAGS="$CFLAGS"
15330 BUILD_LDFLAGS="$LDFLAGS"
15337 test -d lib || mkdir lib
15338 test -d include || mkdir include
15339 test -d include/linux || mkdir include/linux
15340 test -d include/asm || mkdir include/asm
15341 for i in MCONFIG Makefile e2fsprogs.spec \
15342 util/Makefile util/subst.conf util/gen-tarball \
15343 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15344 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15345 lib/uuid/Makefile lib/uuid/uuid_types.h \
15346 lib/blkid/Makefile lib/blkid/blkid_types.h \
15347 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15348 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15349 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15350 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15351 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15352 if test -d `dirname ${srcdir}/$i` ; then
15353 outlist="$outlist $i"
15356 ac_config_files="$ac_config_files $outlist"
15358 cat >confcache <<\_ACEOF
15359 # This file is a shell script that caches the results of configure
15360 # tests run on this system so they can be shared between configure
15361 # scripts and configure runs, see configure's option --config-cache.
15362 # It is not useful on other systems. If it contains results you don't
15363 # want to keep, you may remove or edit it.
15365 # config.status only pays attention to the cache file if you give it
15366 # the --recheck option to rerun configure.
15368 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15369 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15370 # following values.
15374 # The following way of writing the cache mishandles newlines in values,
15375 # but we know of no workaround that is simple, portable, and efficient.
15376 # So, we kill variables containing newlines.
15377 # Ultrix sh set writes to stderr and can't be redirected directly,
15378 # and sets the high bit in the cache file unless we assign to the vars.
15380 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15381 eval ac_val=\$$ac_var
15385 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15386 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15389 _ | IFS | as_nl) ;; #(
15390 *) $as_unset $ac_var ;;
15396 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15397 *${as_nl}ac_space=\ *)
15398 # `set' does not quote correctly, so add quotes (double-quote
15399 # substitution turns \\\\ into \\, and sed turns \\ into \).
15402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15405 # `set' quotes correctly as required by POSIX, so do not add quotes.
15406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15415 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15417 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15419 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15420 if test -w "$cache_file"; then
15421 test "x$cache_file" != "x/dev/null" &&
15422 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15423 echo "$as_me: updating cache $cache_file" >&6;}
15424 cat confcache >$cache_file
15426 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15427 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15432 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15433 # Let make expand exec_prefix.
15434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15436 # Transform confdefs.h into DEFS.
15437 # Protect against shell expansion while executing Makefile rules.
15438 # Protect against Makefile macro expansion.
15440 # If the first sed substitution is executed (which looks for macros that
15441 # take arguments), then branch to the quote section. Otherwise,
15442 # look for a macro that doesn't take arguments.
15446 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15448 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15452 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15465 DEFS=`sed -n "$ac_script" confdefs.h`
15470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15471 # 1. Remove the extension, and $U if already installed.
15472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15473 ac_i=`echo "$ac_i" | sed "$ac_script"`
15474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15475 # will be set to the directory where LIBOBJS objects are built.
15476 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15477 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15479 LIBOBJS=$ac_libobjs
15481 LTLIBOBJS=$ac_ltlibobjs
15485 : ${CONFIG_STATUS=./config.status}
15486 ac_clean_files_save=$ac_clean_files
15487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15488 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15489 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15490 cat >$CONFIG_STATUS <<_ACEOF
15492 # Generated by $as_me.
15493 # Run this file to recreate the current configuration.
15494 # Compiler output produced by configure, useful for debugging
15495 # configure, is in config.log if it exists.
15498 ac_cs_recheck=false
15500 SHELL=\${CONFIG_SHELL-$SHELL}
15503 cat >>$CONFIG_STATUS <<\_ACEOF
15504 ## --------------------- ##
15505 ## M4sh Initialization. ##
15506 ## --------------------- ##
15508 # Be more Bourne compatible
15509 DUALCASE=1; export DUALCASE # for MKS sh
15510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15513 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15514 # is contrary to our usage. Disable this feature.
15515 alias -g '${1+"$@"}'='"$@"'
15516 setopt NO_GLOB_SUBST
15518 case `(set -o) 2>/dev/null` in
15519 *posix*) set -o posix ;;
15528 # Avoid depending upon Character Ranges.
15529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15532 as_cr_digits='0123456789'
15533 as_cr_alnum=$as_cr_Letters$as_cr_digits
15535 # The user is always right.
15536 if test "${PATH_SEPARATOR+set}" != set; then
15537 echo "#! /bin/sh" >conf$$.sh
15538 echo "exit 0" >>conf$$.sh
15540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15548 # Support unset when possible.
15549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15557 # We need space, tab and new line, in precisely that order. Quoting is
15558 # there to prevent editors from complaining about space-tab.
15559 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15560 # splitting by setting IFS to empty value.)
15565 # Find who we are. Look in the path if we contain no directory separator.
15567 *[\\/]* ) as_myself=$0 ;;
15568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15569 for as_dir in $PATH
15572 test -z "$as_dir" && as_dir=.
15573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15579 # We did not find ourselves, most probably we were run as `sh COMMAND'
15580 # in which case we are not to be found in the path.
15581 if test "x$as_myself" = x; then
15584 if test ! -f "$as_myself"; then
15585 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15586 { (exit 1); exit 1; }
15589 # Work around bugs in pre-3.0 UWIN ksh.
15590 for as_var in ENV MAIL MAILPATH
15591 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15601 LC_TELEPHONE LC_TIME
15603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15604 eval $as_var=C; export $as_var
15606 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15610 # Required to use basename.
15611 if expr a : '\(a\)' >/dev/null 2>&1 &&
15612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15619 as_basename=basename
15625 # Name of the executable.
15626 as_me=`$as_basename -- "$0" ||
15627 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15628 X"$0" : 'X\(//\)$' \| \
15629 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15631 sed '/^.*\/\([^/][^/]*\)\/*$/{
15650 as_lineno_1=$LINENO
15651 as_lineno_2=$LINENO
15652 test "x$as_lineno_1" != "x$as_lineno_2" &&
15653 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15655 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15656 # uniformly replaced by the line number. The first 'sed' inserts a
15657 # line-number line after each line using $LINENO; the second 'sed'
15658 # does the real work. The second script uses 'N' to pair each
15659 # line-number line with the line containing $LINENO, and appends
15660 # trailing '-' during substitution so that $LINENO is not a special
15661 # case at line end.
15662 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15663 # scripts with optimization help from Paolo Bonzini. Blame Lee
15664 # E. McMahon (1931-1989) for sed's syntax. :-)
15676 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15679 ' >$as_me.lineno &&
15680 chmod +x "$as_me.lineno" ||
15681 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15682 { (exit 1); exit 1; }; }
15684 # Don't try to exec as it changes $[0], causing all sort of problems
15685 # (the dirname of $[0] is not the place where we might find the
15686 # original and so on. Autoconf is especially sensitive to this).
15687 . "./$as_me.lineno"
15688 # Exit status is that of the last command.
15693 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15699 ECHO_C= ECHO_N= ECHO_T=
15700 case `echo -n x` in
15702 case `echo 'x\c'` in
15703 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15710 if expr a : '\(a\)' >/dev/null 2>&1 &&
15711 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15717 rm -f conf$$ conf$$.exe conf$$.file
15718 if test -d conf$$.dir; then
15719 rm -f conf$$.dir/conf$$.file
15725 if ln -s conf$$.file conf$$ 2>/dev/null; then
15727 # ... but there are two gotchas:
15728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15730 # In both cases, we have to default to `cp -p'.
15731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15733 elif ln conf$$.file conf$$ 2>/dev/null; then
15738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15739 rmdir conf$$.dir 2>/dev/null
15741 if mkdir -p . 2>/dev/null; then
15744 test -d ./-p && rmdir ./-p
15748 if test -x / >/dev/null 2>&1; then
15749 as_test_x='test -x'
15751 if ls -dL / >/dev/null 2>&1; then
15758 if test -d "$1"; then
15764 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15765 ???[sx]*):;;*)false;;esac;fi
15769 as_executable_p=$as_test_x
15771 # Sed expression to map a string onto a valid CPP name.
15772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15774 # Sed expression to map a string onto a valid variable name.
15775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15780 # Save the log message, to keep $[0] and so on meaningful, and to
15781 # report actual input values of CONFIG_FILES etc. instead of their
15782 # values after options handling.
15784 This file was extended by $as_me, which was
15785 generated by GNU Autoconf 2.61. Invocation command line was
15787 CONFIG_FILES = $CONFIG_FILES
15788 CONFIG_HEADERS = $CONFIG_HEADERS
15789 CONFIG_LINKS = $CONFIG_LINKS
15790 CONFIG_COMMANDS = $CONFIG_COMMANDS
15793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15798 cat >>$CONFIG_STATUS <<_ACEOF
15799 # Files that config.status was made for.
15800 config_files="$ac_config_files"
15801 config_commands="$ac_config_commands"
15805 cat >>$CONFIG_STATUS <<\_ACEOF
15807 \`$as_me' instantiates files from templates according to the
15808 current configuration.
15810 Usage: $0 [OPTIONS] [FILE]...
15812 -h, --help print this help, then exit
15813 -V, --version print version number and configuration settings, then exit
15814 -q, --quiet do not print progress messages
15815 -d, --debug don't remove temporary files
15816 --recheck update $as_me by reconfiguring in the same conditions
15817 --file=FILE[:TEMPLATE]
15818 instantiate the configuration file FILE
15820 Configuration files:
15823 Configuration commands:
15826 Report bugs to <bug-autoconf@gnu.org>."
15829 cat >>$CONFIG_STATUS <<_ACEOF
15832 configured by $0, generated by GNU Autoconf 2.61,
15833 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15835 Copyright (C) 2006 Free Software Foundation, Inc.
15836 This config.status script is free software; the Free Software Foundation
15837 gives unlimited permission to copy, distribute and modify it."
15844 cat >>$CONFIG_STATUS <<\_ACEOF
15845 # If no file are specified by the user, then we need to provide default
15846 # value. By we need to know if files were specified by the user.
15852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15864 # Handling of the options.
15865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15868 echo "$ac_cs_version"; exit ;;
15869 --debug | --debu | --deb | --de | --d | -d )
15871 --file | --fil | --fi | --f )
15873 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15874 ac_need_defaults=false;;
15875 --he | --h | --help | --hel | -h )
15876 echo "$ac_cs_usage"; exit ;;
15877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15881 # This is an error.
15882 -*) { echo "$as_me: error: unrecognized option: $1
15883 Try \`$0 --help' for more information." >&2
15884 { (exit 1); exit 1; }; } ;;
15886 *) ac_config_targets="$ac_config_targets $1"
15887 ac_need_defaults=false ;;
15893 ac_configure_extra_args=
15895 if $ac_cs_silent; then
15897 ac_configure_extra_args="$ac_configure_extra_args --silent"
15901 cat >>$CONFIG_STATUS <<_ACEOF
15902 if \$ac_cs_recheck; then
15903 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15904 CONFIG_SHELL=$SHELL
15905 export CONFIG_SHELL
15906 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15910 cat >>$CONFIG_STATUS <<\_ACEOF
15914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15915 ## Running $as_me. ##
15921 cat >>$CONFIG_STATUS <<_ACEOF
15925 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15926 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15928 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15929 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15930 LINGUAS="${LINGUAS-%UNSET%}"
15935 cat >>$CONFIG_STATUS <<\_ACEOF
15937 # Handling of arguments.
15938 for ac_config_target in $ac_config_targets
15940 case $ac_config_target in
15941 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15942 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15944 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15945 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15946 { (exit 1); exit 1; }; };;
15951 # If the user did not use the arguments to specify the items to instantiate,
15952 # then the envvar interface is used. Set only those that are not.
15953 # We use the long form for the default assignment because of an extremely
15954 # bizarre bug on SunOS 4.1.3.
15955 if $ac_need_defaults; then
15956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15957 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15960 # Have a temporary directory for convenience. Make it in the build tree
15961 # simply because there is no reason against having it here, and in addition,
15962 # creating and moving files from /tmp can sometimes cause problems.
15963 # Hook for its removal unless debugging.
15964 # Note that there is a small window in which the directory will not be cleaned:
15965 # after its creation but before its name has been assigned to `$tmp'.
15969 trap 'exit_status=$?
15970 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15972 trap '{ (exit 1); exit 1; }' 1 2 13 15
15974 # Create a (secure) tmp directory for tmp files.
15977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15978 test -n "$tmp" && test -d "$tmp"
15981 tmp=./conf$$-$RANDOM
15982 (umask 077 && mkdir "$tmp")
15985 echo "$me: cannot create a temporary directory in ." >&2
15986 { (exit 1); exit 1; }
15990 # Set up the sed scripts for CONFIG_FILES section.
15993 # No need to generate the scripts if there are no CONFIG_FILES.
15994 # This happens for instance when ./config.status config.h
15995 if test -n "$CONFIG_FILES"; then
15999 # Create sed commands to just substitute file output variables.
16001 # Remaining file output variables are in a fragment that also has non-file
16007 for ac_last_try in false false false false false :; do
16008 cat >conf$$subs.sed <<_ACEOF
16009 SHELL!$SHELL$ac_delim
16010 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16011 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16012 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16013 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16014 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16015 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16016 exec_prefix!$exec_prefix$ac_delim
16017 prefix!$prefix$ac_delim
16018 program_transform_name!$program_transform_name$ac_delim
16019 bindir!$bindir$ac_delim
16020 sbindir!$sbindir$ac_delim
16021 libexecdir!$libexecdir$ac_delim
16022 datarootdir!$datarootdir$ac_delim
16023 datadir!$datadir$ac_delim
16024 sysconfdir!$sysconfdir$ac_delim
16025 sharedstatedir!$sharedstatedir$ac_delim
16026 localstatedir!$localstatedir$ac_delim
16027 includedir!$includedir$ac_delim
16028 oldincludedir!$oldincludedir$ac_delim
16029 docdir!$docdir$ac_delim
16030 infodir!$infodir$ac_delim
16031 htmldir!$htmldir$ac_delim
16032 dvidir!$dvidir$ac_delim
16033 pdfdir!$pdfdir$ac_delim
16034 psdir!$psdir$ac_delim
16035 libdir!$libdir$ac_delim
16036 localedir!$localedir$ac_delim
16037 mandir!$mandir$ac_delim
16038 DEFS!$DEFS$ac_delim
16039 ECHO_C!$ECHO_C$ac_delim
16040 ECHO_N!$ECHO_N$ac_delim
16041 ECHO_T!$ECHO_T$ac_delim
16042 LIBS!$LIBS$ac_delim
16043 build_alias!$build_alias$ac_delim
16044 host_alias!$host_alias$ac_delim
16045 target_alias!$target_alias$ac_delim
16046 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16047 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16048 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16049 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16050 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16051 build!$build$ac_delim
16052 build_cpu!$build_cpu$ac_delim
16053 build_vendor!$build_vendor$ac_delim
16054 build_os!$build_os$ac_delim
16055 host!$host$ac_delim
16056 host_cpu!$host_cpu$ac_delim
16057 host_vendor!$host_vendor$ac_delim
16058 host_os!$host_os$ac_delim
16060 CFLAGS!$CFLAGS$ac_delim
16061 LDFLAGS!$LDFLAGS$ac_delim
16062 CPPFLAGS!$CPPFLAGS$ac_delim
16063 ac_ct_CC!$ac_ct_CC$ac_delim
16064 EXEEXT!$EXEEXT$ac_delim
16065 OBJEXT!$OBJEXT$ac_delim
16068 GREP!$GREP$ac_delim
16069 EGREP!$EGREP$ac_delim
16070 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16071 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16072 HTREE_CMT!$HTREE_CMT$ac_delim
16073 ELF_CMT!$ELF_CMT$ac_delim
16074 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16075 PROFILE_CMT!$PROFILE_CMT$ac_delim
16076 CHECKER_CMT!$CHECKER_CMT$ac_delim
16077 LIB_EXT!$LIB_EXT$ac_delim
16078 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16079 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16080 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16081 IMAGER_CMT!$IMAGER_CMT$ac_delim
16084 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16086 elif $ac_last_try; then
16087 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16088 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16089 { (exit 1); exit 1; }; }
16091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16095 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16096 if test -n "$ac_eof"; then
16097 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16098 ac_eof=`expr $ac_eof + 1`
16101 cat >>$CONFIG_STATUS <<_ACEOF
16102 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16104 /^[ ]*@MCONFIG@[ ]*$/{
16108 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16112 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16116 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16117 r $MAKEFILE_PROFILE
16120 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16121 r $MAKEFILE_CHECKER
16124 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16125 r $MAKEFILE_LIBRARY
16128 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16129 r $ASM_TYPES_HEADER
16132 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16133 r $PUBLIC_CONFIG_HEADER
16138 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16139 s/^/s,@/; s/!/@,|#_!!_#|/
16142 s/'"$ac_delim"'$/,g/; t
16144 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16145 ' >>$CONFIG_STATUS <conf$$subs.sed
16146 rm -f conf$$subs.sed
16147 cat >>$CONFIG_STATUS <<_ACEOF
16153 for ac_last_try in false false false false false :; do
16154 cat >conf$$subs.sed <<_ACEOF
16155 RESIZER_CMT!$RESIZER_CMT$ac_delim
16156 FSCK_PROG!$FSCK_PROG$ac_delim
16157 FSCK_MAN!$FSCK_MAN$ac_delim
16158 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16159 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16160 PKG_CONFIG!$PKG_CONFIG$ac_delim
16161 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16162 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16163 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16164 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16165 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16166 UUIDD_CMT!$UUIDD_CMT$ac_delim
16167 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16168 PACKAGE!$PACKAGE$ac_delim
16169 VERSION!$VERSION$ac_delim
16170 SET_MAKE!$SET_MAKE$ac_delim
16171 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16172 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16173 INSTALL_DATA!$INSTALL_DATA$ac_delim
16174 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16175 USE_NLS!$USE_NLS$ac_delim
16176 MSGFMT!$MSGFMT$ac_delim
16177 GMSGFMT!$GMSGFMT$ac_delim
16178 XGETTEXT!$XGETTEXT$ac_delim
16179 MSGMERGE!$MSGMERGE$ac_delim
16180 RANLIB!$RANLIB$ac_delim
16181 ALLOCA!$ALLOCA$ac_delim
16182 GLIBC21!$GLIBC21$ac_delim
16183 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16184 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16185 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16186 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16187 LIBICONV!$LIBICONV$ac_delim
16188 LTLIBICONV!$LTLIBICONV$ac_delim
16189 INTLBISON!$INTLBISON$ac_delim
16190 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16191 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16192 CATOBJEXT!$CATOBJEXT$ac_delim
16193 DATADIRNAME!$DATADIRNAME$ac_delim
16194 INSTOBJEXT!$INSTOBJEXT$ac_delim
16195 GENCAT!$GENCAT$ac_delim
16196 INTLOBJS!$INTLOBJS$ac_delim
16197 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16198 INTLLIBS!$INTLLIBS$ac_delim
16199 LIBINTL!$LIBINTL$ac_delim
16200 LTLIBINTL!$LTLIBINTL$ac_delim
16201 POSUB!$POSUB$ac_delim
16202 BINARY_TYPE!$BINARY_TYPE$ac_delim
16204 LN_S!$LN_S$ac_delim
16208 CHMOD!$CHMOD$ac_delim
16211 PERL!$PERL$ac_delim
16212 LDCONFIG!$LDCONFIG$ac_delim
16214 STRIP!$STRIP$ac_delim
16215 MAKEINFO!$MAKEINFO$ac_delim
16216 BUILD_CC!$BUILD_CC$ac_delim
16217 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16218 SIZEOF_INT!$SIZEOF_INT$ac_delim
16219 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16220 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16221 SOCKET_LIB!$SOCKET_LIB$ac_delim
16222 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16223 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16224 LINUX_CMT!$LINUX_CMT$ac_delim
16225 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16226 UNIX_CMT!$UNIX_CMT$ac_delim
16227 root_prefix!$root_prefix$ac_delim
16228 root_bindir!$root_bindir$ac_delim
16229 root_sbindir!$root_sbindir$ac_delim
16230 root_libdir!$root_libdir$ac_delim
16231 root_sysconfdir!$root_sysconfdir$ac_delim
16232 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16233 SS_DIR!$SS_DIR$ac_delim
16234 ET_DIR!$ET_DIR$ac_delim
16235 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16236 INTL_FLAGS!$INTL_FLAGS$ac_delim
16237 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16238 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16239 LIBOBJS!$LIBOBJS$ac_delim
16240 LTLIBOBJS!$LTLIBOBJS$ac_delim
16243 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16245 elif $ac_last_try; then
16246 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16247 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16248 { (exit 1); exit 1; }; }
16250 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16254 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16255 if test -n "$ac_eof"; then
16256 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16257 ac_eof=`expr $ac_eof + 1`
16260 cat >>$CONFIG_STATUS <<_ACEOF
16261 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16265 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16266 s/^/s,@/; s/!/@,|#_!!_#|/
16269 s/'"$ac_delim"'$/,g/; t
16271 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16272 ' >>$CONFIG_STATUS <conf$$subs.sed
16273 rm -f conf$$subs.sed
16274 cat >>$CONFIG_STATUS <<_ACEOF
16281 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16282 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16283 # trailing colons and then remove the whole line if VPATH becomes empty
16284 # (actually we leave an empty line to preserve line numbers).
16285 if test "x$srcdir" = x.; then
16286 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16287 s/:*\$(srcdir):*/:/
16288 s/:*\${srcdir}:*/:/
16290 s/^\([^=]*=[ ]*\):*/\1/
16296 cat >>$CONFIG_STATUS <<\_ACEOF
16297 fi # test -n "$CONFIG_FILES"
16300 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16303 :[FHLC]) ac_mode=$ac_tag; continue;;
16305 case $ac_mode$ac_tag in
16307 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16308 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16309 { (exit 1); exit 1; }; };;
16310 :[FH]-) ac_tag=-:-;;
16311 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16328 -) ac_f="$tmp/stdin";;
16329 *) # Look for the file first in the build tree, then in the source tree
16330 # (if the path is not absolute). The absolute path cannot be DOS-style,
16331 # because $ac_f cannot contain `:'.
16335 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16337 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16338 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16339 { (exit 1); exit 1; }; };;
16341 ac_file_inputs="$ac_file_inputs $ac_f"
16344 # Let's still pretend it is `configure' which instantiates (i.e., don't
16345 # use $as_me), people would be surprised to read:
16346 # /* config.h. Generated by config.status. */
16347 configure_input="Generated from "`IFS=:
16348 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16349 if test x"$ac_file" != x-; then
16350 configure_input="$ac_file. $configure_input"
16351 { echo "$as_me:$LINENO: creating $ac_file" >&5
16352 echo "$as_me: creating $ac_file" >&6;}
16356 *:-:* | *:-) cat >"$tmp/stdin";;
16361 ac_dir=`$as_dirname -- "$ac_file" ||
16362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16363 X"$ac_file" : 'X\(//\)[^/]' \| \
16364 X"$ac_file" : 'X\(//\)$' \| \
16365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16371 /^X\(\/\/\)[^/].*/{
16386 -*) as_dir=./$as_dir;;
16388 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16392 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16393 *) as_qdir=$as_dir;;
16395 as_dirs="'$as_qdir' $as_dirs"
16396 as_dir=`$as_dirname -- "$as_dir" ||
16397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16398 X"$as_dir" : 'X\(//\)[^/]' \| \
16399 X"$as_dir" : 'X\(//\)$' \| \
16400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16406 /^X\(\/\/\)[^/].*/{
16419 test -d "$as_dir" && break
16421 test -z "$as_dirs" || eval "mkdir $as_dirs"
16422 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16423 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16424 { (exit 1); exit 1; }; }; }
16428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16431 # A ".." for each directory in $ac_dir_suffix.
16432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16433 case $ac_top_builddir_sub in
16434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16438 ac_abs_top_builddir=$ac_pwd
16439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16440 # for backward compatibility:
16441 ac_top_builddir=$ac_top_build_prefix
16444 .) # We are building in place.
16446 ac_top_srcdir=$ac_top_builddir_sub
16447 ac_abs_top_srcdir=$ac_pwd ;;
16448 [\\/]* | ?:[\\/]* ) # Absolute name.
16449 ac_srcdir=$srcdir$ac_dir_suffix;
16450 ac_top_srcdir=$srcdir
16451 ac_abs_top_srcdir=$srcdir ;;
16452 *) # Relative name.
16453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16454 ac_top_srcdir=$ac_top_build_prefix$srcdir
16455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16472 cat >>$CONFIG_STATUS <<\_ACEOF
16473 # If the template does not know about datarootdir, expand it.
16474 # FIXME: This hack should be removed a few years after 2.60.
16475 ac_datarootdir_hack=; ac_datarootdir_seen=
16477 case `sed -n '/datarootdir/ {
16486 ' $ac_file_inputs` in
16487 *datarootdir*) ac_datarootdir_seen=yes;;
16488 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16489 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16490 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16492 cat >>$CONFIG_STATUS <<_ACEOF
16493 ac_datarootdir_hack='
16494 s&@datadir@&$datadir&g
16495 s&@docdir@&$docdir&g
16496 s&@infodir@&$infodir&g
16497 s&@localedir@&$localedir&g
16498 s&@mandir@&$mandir&g
16499 s&\\\${datarootdir}&$datarootdir&g' ;;
16503 # Neutralize VPATH when `$srcdir' = `.'.
16504 # Shell code in configure.ac might set extrasub.
16505 # FIXME: do we really want to maintain this feature?
16506 cat >>$CONFIG_STATUS <<_ACEOF
16510 cat >>$CONFIG_STATUS <<\_ACEOF
16512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16513 s&@configure_input@&$configure_input&;t t
16514 s&@top_builddir@&$ac_top_builddir_sub&;t t
16515 s&@srcdir@&$ac_srcdir&;t t
16516 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16517 s&@top_srcdir@&$ac_top_srcdir&;t t
16518 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16519 s&@builddir@&$ac_builddir&;t t
16520 s&@abs_builddir@&$ac_abs_builddir&;t t
16521 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16522 s&@INSTALL@&$ac_INSTALL&;t t
16523 $ac_datarootdir_hack
16524 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16527 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16528 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16529 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16530 which seems to be undefined. Please make sure it is defined." >&5
16531 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16532 which seems to be undefined. Please make sure it is defined." >&2;}
16536 -) cat "$tmp/out"; rm -f "$tmp/out";;
16537 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16542 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16543 echo "$as_me: executing $ac_file commands" >&6;}
16548 case $ac_file$ac_mode in
16550 for ac_file in $CONFIG_FILES; do
16551 # Support "outfile[:infile[:infile...]]"
16553 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16555 # PO directories have a Makefile.in generated from Makefile.in.in.
16556 case "$ac_file" in */Makefile.in)
16557 # Adjust a relative srcdir.
16558 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16559 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16560 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16561 # In autoconf-2.13 it is called $ac_given_srcdir.
16562 # In autoconf-2.50 it is called $srcdir.
16563 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16564 case "$ac_given_srcdir" in
16565 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16566 /*) top_srcdir="$ac_given_srcdir" ;;
16567 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16569 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16570 rm -f "$ac_dir/POTFILES"
16571 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16572 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16573 POMAKEFILEDEPS="POTFILES.in"
16574 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16575 # on $ac_dir but don't depend on user-specified configuration
16577 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16578 # The LINGUAS file contains the set of available languages.
16579 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16580 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16582 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16583 # Hide the ALL_LINGUAS assigment from automake.
16584 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16585 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16587 # The set of available languages was given in configure.in.
16588 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16591 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16592 # Compute UPDATEPOFILES
16593 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16594 # Compute DUMMYPOFILES
16595 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16597 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16598 case "$ac_given_srcdir" in
16600 *) srcdirpre='$(srcdir)/' ;;
16606 for lang in $ALL_LINGUAS; do
16607 POFILES="$POFILES $srcdirpre$lang.po"
16608 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16609 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16610 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16612 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16613 # environment variable.
16615 if test -n "$ALL_LINGUAS"; then
16616 for presentlang in $ALL_LINGUAS; do
16618 if test "%UNSET%" != "$LINGUAS"; then
16619 desiredlanguages="$LINGUAS"
16621 desiredlanguages="$ALL_LINGUAS"
16623 for desiredlang in $desiredlanguages; do
16624 # Use the presentlang catalog if desiredlang is
16625 # a. equal to presentlang, or
16626 # b. a variant of presentlang (because in this case,
16627 # presentlang can be used as a fallback for messages
16628 # which are not translated in the desiredlang catalog).
16629 case "$desiredlang" in
16630 "$presentlang"*) useit=yes;;
16633 if test $useit = yes; then
16634 INST_LINGUAS="$INST_LINGUAS $presentlang"
16639 if test -n "$INST_LINGUAS"; then
16640 for lang in $INST_LINGUAS; do
16641 CATALOGS="$CATALOGS $lang.gmo"
16644 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16645 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"
16646 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16647 if test -f "$f"; then
16649 *.orig | *.bak | *~) ;;
16650 *) cat "$f" >> "$ac_dir/Makefile" ;;
16663 { (exit 0); exit 0; }
16665 chmod +x $CONFIG_STATUS
16666 ac_clean_files=$ac_clean_files_save
16669 # configure is writing to config.log, and then calls config.status.
16670 # config.status does its own redirection, appending to config.log.
16671 # Unfortunately, on DOS this fails, as config.log is still kept open
16672 # by configure, so config.status won't be able to write to it; its
16673 # output is simply discarded. So we exec the FD to /dev/null,
16674 # effectively closing config.log, so it can be properly (re)opened and
16675 # appended to by config.status. When coming back to configure, we
16676 # need to make the FD available again.
16677 if test "$no_create" != yes; then
16679 ac_config_status_args=
16680 test "$silent" = yes &&
16681 ac_config_status_args="$ac_config_status_args --quiet"
16683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16686 # would make configure fail if this is the last instruction.
16687 $ac_cs_success || { (exit 1); exit 1; }
16690 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi