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
721 BUILD_INCLUDED_LIBINTL
728 INTL_LIBTOOL_SUFFIX_PREFIX
773 ac_subst_files='MCONFIG
780 PUBLIC_CONFIG_HEADER'
781 ac_precious_vars='build_alias
792 # Initialize some variables set by options.
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
804 program_transform_name=s,x,x,
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE}'
829 infodir='${datarootdir}/info'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_$ac_feature=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 -enable-* | --enable-*)
912 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_$ac_feature=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
933 -help | --help | --hel | --he | -h)
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 # Obsolete; use --without-fp.
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1082 -site=* | --site=* | --sit=*)
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1109 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_$ac_package=no ;;
1127 # Obsolete; use --with-x.
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1256 ac_srcdir_defaulted=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1292 \`configure' configures this package to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1350 --build=BUILD configure for building on BUILD [guessed]
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 if test -n "$ac_init_help"; then
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --enable-maintainer-mode enable makefile rules useful for maintainers
1363 --enable-compression enable EXPERIMENTAL compression support
1364 --enable-htree enable EXPERIMENTAL htree directory support
1365 --enable-elf-shlibs select ELF shared libraries
1366 --enable-bsd-shlibs select BSD shared libraries
1367 --enable-profile build profiling libraries
1368 --enable-checker build checker libraries
1369 --enable-jbd-debug enable journal debugging
1370 --enable-blkid-debug enable blkid debugging
1371 --disable-testio-debug disable the use of the test I/O manager for debugging
1372 --disable-debugfs disable support of debugfs program
1373 --disable-imager disable support of e2image program
1374 --disable-resizer disable support of e2resize program
1375 --enable-fsck build fsck wrapper program
1376 --enable-e2initrd-helper build e2initrd-helper program
1377 --disable-tls disable use of thread local support
1378 --disable-uuidd disable building the uuid daemon
1379 --disable-nls do not use Native Language Support
1380 --disable-rpath do not hardcode runtime library paths
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-diet-libc use diet libc
1386 --with-cc=COMPILER select compiler to use
1387 --with-linker=LINKER select linker to use
1388 --with-ccopts=CCOPTS select compiler command line options
1389 --with-ldopts=LDOPTS select linker command line options
1390 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1391 --with-gnu-ld assume the C compiler uses GNU ld default=no
1392 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1393 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1394 --with-included-gettext use the GNU gettext library included here
1395 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1396 --without-libintl-prefix don't search for libintl in includedir and libdir
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" || continue
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1438 .) # We are building in place.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1462 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1472 generated by GNU Autoconf 2.61
1474 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1475 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1481 cat >config.log <<_ACEOF
1482 This file contains any messages produced by compilers while
1483 running configure, to aid debugging if configure makes a mistake.
1485 It was created by $as_me, which was
1486 generated by GNU Autoconf 2.61. Invocation command line was
1498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1505 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1507 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1508 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1510 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1511 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1512 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1513 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 test -z "$as_dir" && as_dir=.
1522 echo "PATH: $as_dir"
1538 # Keep a trace of the command line.
1539 # Strip out --no-create and --no-recursion so they do not pile up.
1540 # Strip out --silent because we don't want to record it for future runs.
1541 # Also quote any args containing shell meta-characters.
1542 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_must_keep_next=false
1552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554 | -silent | --silent | --silen | --sile | --sil)
1557 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1560 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1562 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1563 if test $ac_must_keep_next = true; then
1564 ac_must_keep_next=false # Got value, back to normal.
1567 *=* | --config-cache | -C | -disable-* | --disable-* \
1568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1570 | -with-* | --with-* | -without-* | --without-* | --x)
1571 case "$ac_configure_args0 " in
1572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1575 -* ) ac_must_keep_next=true ;;
1578 ac_configure_args="$ac_configure_args '$ac_arg'"
1583 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1584 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1586 # When interrupted or exit'd, cleanup temporary files, and complete
1587 # config.log. We remove comments because anyway the quotes in there
1588 # would cause problems or look ugly.
1589 # WARNING: Use '\'' to represent an apostrophe within the trap.
1590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1591 trap 'exit_status=$?
1592 # Save into config.log some information that might help in debugging.
1597 ## ---------------- ##
1598 ## Cache variables. ##
1599 ## ---------------- ##
1602 # The following way of writing the cache mishandles newlines in values,
1604 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1605 eval ac_val=\$$ac_var
1609 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1610 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1613 _ | IFS | as_nl) ;; #(
1614 *) $as_unset $ac_var ;;
1619 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1620 *${as_nl}ac_space=\ *)
1622 "s/'\''/'\''\\\\'\'''\''/g;
1623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1634 ## ----------------- ##
1635 ## Output variables. ##
1636 ## ----------------- ##
1639 for ac_var in $ac_subst_vars
1641 eval ac_val=\$$ac_var
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 echo "$ac_var='\''$ac_val'\''"
1649 if test -n "$ac_subst_files"; then
1651 ## ------------------- ##
1652 ## File substitutions. ##
1653 ## ------------------- ##
1656 for ac_var in $ac_subst_files
1658 eval ac_val=\$$ac_var
1660 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1662 echo "$ac_var='\''$ac_val'\''"
1667 if test -s confdefs.h; then
1677 test "$ac_signal" != 0 &&
1678 echo "$as_me: caught signal $ac_signal"
1679 echo "$as_me: exit $exit_status"
1681 rm -f core *.core core.conftest.* &&
1682 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1685 for ac_signal in 1 2 13 15; do
1686 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1690 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1691 rm -f -r conftest* confdefs.h
1693 # Predefined preprocessor variables.
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_NAME "$PACKAGE_NAME"
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_STRING "$PACKAGE_STRING"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1720 # Let the site file select an alternate cache file if it wants to.
1721 # Prefer explicitly selected file to automatically selected ones.
1722 if test -n "$CONFIG_SITE"; then
1723 set x "$CONFIG_SITE"
1724 elif test "x$prefix" != xNONE; then
1725 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1727 set x "$ac_default_prefix/share/config.site" \
1728 "$ac_default_prefix/etc/config.site"
1733 if test -r "$ac_site_file"; then
1734 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1735 echo "$as_me: loading site script $ac_site_file" >&6;}
1736 sed 's/^/| /' "$ac_site_file" >&5
1741 if test -r "$cache_file"; then
1742 # Some versions of bash will fail to source /dev/null (special
1743 # files actually), so we avoid doing that.
1744 if test -f "$cache_file"; then
1745 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1746 echo "$as_me: loading cache $cache_file" >&6;}
1748 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749 *) . "./$cache_file";;
1753 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1754 echo "$as_me: creating cache $cache_file" >&6;}
1758 # Check that the precious variables saved in the cache have kept the same
1760 ac_cache_corrupted=false
1761 for ac_var in $ac_precious_vars; do
1762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763 eval ac_new_set=\$ac_env_${ac_var}_set
1764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765 eval ac_new_val=\$ac_env_${ac_var}_value
1766 case $ac_old_set,$ac_new_set in
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1777 if test "x$ac_old_val" != "x$ac_new_val"; then
1778 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1781 echo "$as_me: former value: $ac_old_val" >&2;}
1782 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1783 echo "$as_me: current value: $ac_new_val" >&2;}
1784 ac_cache_corrupted=:
1787 # Pass precious variables to config.status.
1788 if test "$ac_new_set" = set; then
1790 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 *) ac_arg=$ac_var=$ac_new_val ;;
1793 case " $ac_configure_args " in
1794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1795 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1799 if $ac_cache_corrupted; then
1800 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804 { (exit 1); exit 1; }; }
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 for ac_dir in config "$srcdir"/config; do
1833 if test -f "$ac_dir/install-sh"; then
1835 ac_install_sh="$ac_aux_dir/install-sh -c"
1837 elif test -f "$ac_dir/install.sh"; then
1839 ac_install_sh="$ac_aux_dir/install.sh -c"
1841 elif test -f "$ac_dir/shtool"; then
1843 ac_install_sh="$ac_aux_dir/shtool install -c"
1847 if test -z "$ac_aux_dir"; then
1848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1850 { (exit 1); exit 1; }; }
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1866 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1867 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1869 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1870 MONTH=`echo $DATE | awk -F- '{print $2}'`
1871 YEAR=`echo $DATE | awk -F- '{print $3}'`
1873 if expr $YEAR ">" 1900 > /dev/null ; then
1874 E2FSPROGS_YEAR=$YEAR
1875 elif expr $YEAR ">" 90 >/dev/null ; then
1876 E2FSPROGS_YEAR=19$YEAR
1878 E2FSPROGS_YEAR=20$YEAR
1882 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1883 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1884 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1885 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1886 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1887 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1888 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1889 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1890 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1891 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1892 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1893 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1894 *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1895 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1898 base_ver=`echo $E2FSPROGS_VERSION | \
1899 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1901 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1903 case $E2FSPROGS_VERSION in
1905 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1908 E2FSPROGS_PKGVER="$base_ver"
1912 unset DATE MONTH YEAR base_ver pre_vers date_spec
1913 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1914 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1915 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1916 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1922 # Make sure we can run config.sub.
1923 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1924 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1925 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1926 { (exit 1); exit 1; }; }
1928 { echo "$as_me:$LINENO: checking build system type" >&5
1929 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1930 if test "${ac_cv_build+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 ac_build_alias=$build_alias
1934 test "x$ac_build_alias" = x &&
1935 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1936 test "x$ac_build_alias" = x &&
1937 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1938 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1939 { (exit 1); exit 1; }; }
1940 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1941 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1942 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1943 { (exit 1); exit 1; }; }
1946 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1947 echo "${ECHO_T}$ac_cv_build" >&6; }
1948 case $ac_cv_build in
1950 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1951 echo "$as_me: error: invalid value of canonical build" >&2;}
1952 { (exit 1); exit 1; }; };;
1955 ac_save_IFS=$IFS; IFS='-'
1961 # Remember, the first character of IFS is used to create $*,
1962 # except with old shells:
1965 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1968 { echo "$as_me:$LINENO: checking host system type" >&5
1969 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1970 if test "${ac_cv_host+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test "x$host_alias" = x; then
1974 ac_cv_host=$ac_cv_build
1976 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1977 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1978 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1979 { (exit 1); exit 1; }; }
1983 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1984 echo "${ECHO_T}$ac_cv_host" >&6; }
1987 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1988 echo "$as_me: error: invalid value of canonical host" >&2;}
1989 { (exit 1); exit 1; }; };;
1992 ac_save_IFS=$IFS; IFS='-'
1998 # Remember, the first character of IFS is used to create $*,
1999 # except with old shells:
2002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007 # Check whether --with-diet-libc was given.
2008 if test "${with_diet_libc+set}" = set; then
2009 withval=$with_diet_libc; CC="diet cc -nostdinc"
2011 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2012 echo "${ECHO_T}CC=$CC" >&6; }
2015 # Check whether --with-cc was given.
2016 if test "${with_cc+set}" = set; then
2017 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2018 echo "${ECHO_T}CC=$withval" >&6; }
2021 if test -z "$CC" ; then CC=cc; fi
2022 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2023 echo "${ECHO_T}CC defaults to $CC" >&6; }
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$CC"; then
2062 { echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6; }
2065 { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2071 if test -z "$ac_cv_prog_CC"; then
2073 # Extract the first word of "gcc", so it can be a program name with args.
2074 set dummy gcc; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 ac_cv_prog_ac_ct_CC="gcc"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2105 { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2109 if test "x$ac_ct_CC" = x; then
2112 case $cross_compiling:$ac_tool_warned in
2114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet. If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&5
2117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2120 ac_tool_warned=yes ;;
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}cc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_CC="${ac_tool_prefix}cc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 if test -n "$CC"; then
2159 { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2169 if test -z "$CC"; then
2170 # Extract the first word of "cc", so it can be a program name with args.
2171 set dummy cc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_CC+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$CC"; then
2178 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2189 ac_prog_rejected=yes
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 if test $ac_prog_rejected = yes; then
2201 # We found a bogon in the path, so make sure we never use it.
2202 set dummy $ac_cv_prog_CC
2204 if test $# != 0; then
2205 # We chose a different compiler from the bogus one.
2206 # However, it has the same basename, so the bogon will be chosen
2207 # first if we set CC to just the basename; use the full file name.
2209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2215 if test -n "$CC"; then
2216 { echo "$as_me:$LINENO: result: $CC" >&5
2217 echo "${ECHO_T}$CC" >&6; }
2219 { echo "$as_me:$LINENO: result: no" >&5
2220 echo "${ECHO_T}no" >&6; }
2225 if test -z "$CC"; then
2226 if test -n "$ac_tool_prefix"; then
2227 for ac_prog in cl.exe
2229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 if test -n "$CC"; then
2258 { echo "$as_me:$LINENO: result: $CC" >&5
2259 echo "${ECHO_T}$CC" >&6; }
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2266 test -n "$CC" && break
2269 if test -z "$CC"; then
2271 for ac_prog in cl.exe
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 if test -n "$ac_ct_CC"; then
2281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_ac_ct_CC="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301 if test -n "$ac_ct_CC"; then
2302 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303 echo "${ECHO_T}$ac_ct_CC" >&6; }
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2310 test -n "$ac_ct_CC" && break
2313 if test "x$ac_ct_CC" = x; then
2316 case $cross_compiling:$ac_tool_warned in
2318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet. If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&5
2321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2324 ac_tool_warned=yes ;;
2333 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2339 # Provide some information about the compiler.
2340 echo "$as_me:$LINENO: checking for C compiler version" >&5
2341 ac_compiler=`set X $ac_compile; echo $2`
2342 { (ac_try="$ac_compiler --version >&5"
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2348 (eval "$ac_compiler --version >&5") 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2352 { (ac_try="$ac_compiler -v >&5"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compiler -v >&5") 2>&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }
2362 { (ac_try="$ac_compiler -V >&5"
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_compiler -V >&5") 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }
2373 cat >conftest.$ac_ext <<_ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2388 ac_clean_files_save=$ac_clean_files
2389 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2390 # Try to create an executable without -o first, disregard a.out.
2391 # It will help us diagnose broken compilers, and finding out an intuition
2393 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2394 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2395 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2397 # List of possible output files, starting from the most likely.
2398 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2399 # only as a last resort. b.out is created by i960 compilers.
2400 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2402 # The IRIX 6 linker writes into existing files which may not be
2403 # executable, retaining their permissions. Remove them first so a
2404 # subsequent execution test works.
2406 for ac_file in $ac_files
2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2415 if { (ac_try="$ac_link_default"
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421 (eval "$ac_link_default") 2>&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; then
2425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2426 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2427 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2428 # so that the user can short-circuit this test for compilers unknown to
2430 for ac_file in $ac_files ''
2432 test -f "$ac_file" || continue
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2437 # We found the default executable, but exeext='' is most
2441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2445 # We set ac_cv_exeext here because the later test for it is not
2446 # safe: cross compilers may not add the suffix if given an `-o'
2447 # argument, so we may need to know it at that point already.
2448 # Even if this section looks crufty: it has the advantage of
2455 test "$ac_cv_exeext" = no && ac_cv_exeext=
2461 { echo "$as_me:$LINENO: result: $ac_file" >&5
2462 echo "${ECHO_T}$ac_file" >&6; }
2463 if test -z "$ac_file"; then
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2467 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&2;}
2471 { (exit 77); exit 77; }; }
2474 ac_exeext=$ac_cv_exeext
2476 # Check that the compiler produces executables we can run. If not, either
2477 # the compiler is broken, or we cross compile.
2478 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2479 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2480 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2481 # If not cross compiling, check that we can run a simple program.
2482 if test "$cross_compiling" != yes; then
2483 if { ac_try='./$ac_file'
2484 { (case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489 (eval "$ac_try") 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; }; then
2495 if test "$cross_compiling" = maybe; then
2498 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }
2508 { echo "$as_me:$LINENO: result: yes" >&5
2509 echo "${ECHO_T}yes" >&6; }
2511 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2517 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 echo "${ECHO_T}$cross_compiling" >&6; }
2520 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2522 if { (ac_try="$ac_link"
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_link") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; then
2532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2534 # work properly (i.e., refer to `conftest.exe'), while it won't with
2536 for ac_file in conftest.exe conftest conftest.*; do
2537 test -f "$ac_file" || continue
2539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&2;}
2550 { (exit 1); exit 1; }; }
2553 rm -f conftest$ac_cv_exeext
2554 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2555 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2557 rm -f conftest.$ac_ext
2558 EXEEXT=$ac_cv_exeext
2560 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2561 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2562 if test "${ac_cv_objext+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2580 rm -f conftest.o conftest.obj
2581 if { (ac_try="$ac_compile"
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_compile") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; then
2591 for ac_file in conftest.o conftest.obj conftest.*; do
2592 test -f "$ac_file" || continue;
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2603 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&5
2605 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2612 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613 echo "${ECHO_T}$ac_cv_objext" >&6; }
2614 OBJEXT=$ac_cv_objext
2616 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2621 cat >conftest.$ac_ext <<_ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2668 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2669 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2670 GCC=`test $ac_compiler_gnu = yes && echo yes`
2671 ac_test_CFLAGS=${CFLAGS+set}
2672 ac_save_CFLAGS=$CFLAGS
2673 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_cc_g+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 ac_save_c_werror_flag=$ac_c_werror_flag
2679 ac_c_werror_flag=yes
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 ac_c_werror_flag=$ac_save_c_werror_flag
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_compile") 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } && {
2788 test -z "$ac_c_werror_flag" ||
2789 test ! -s conftest.err
2790 } && test -s conftest.$ac_objext; then
2793 echo "$as_me: failed program was:" >&5
2794 sed 's/^/| /' conftest.$ac_ext >&5
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 ac_c_werror_flag=$ac_save_c_werror_flag
2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2810 if test "$ac_test_CFLAGS" = set; then
2811 CFLAGS=$ac_save_CFLAGS
2812 elif test $ac_cv_prog_cc_g = yes; then
2813 if test "$GCC" = yes; then
2819 if test "$GCC" = yes; then
2825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_cc_c89+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 ac_cv_prog_cc_c89=no
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2840 #include <sys/types.h>
2841 #include <sys/stat.h>
2842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2843 struct buf { int x; };
2844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2845 static char *e (p, i)
2851 static char *f (char * (*g) (char **, int), char **p, ...)
2856 s = g (p, va_arg (v,int));
2861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2862 function prototypes and stuff, but not '\xHH' hex character constants.
2863 These don't provoke an error unfortunately, instead are silently treated
2864 as 'x'. The following induces an error, until -std is added to get
2865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2866 array size at least. It's necessary to write '\x00'==0 to get something
2867 that's true only with -std. */
2868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2871 inside strings and character constants. */
2873 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892 CC="$ac_save_CC $ac_arg"
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } && {
2907 test -z "$ac_c_werror_flag" ||
2908 test ! -s conftest.err
2909 } && test -s conftest.$ac_objext; then
2910 ac_cv_prog_cc_c89=$ac_arg
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2918 rm -f core conftest.err conftest.$ac_objext
2919 test "x$ac_cv_prog_cc_c89" != "xno" && break
2921 rm -f conftest.$ac_ext
2926 case "x$ac_cv_prog_cc_c89" in
2928 { echo "$as_me:$LINENO: result: none needed" >&5
2929 echo "${ECHO_T}none needed" >&6; } ;;
2931 { echo "$as_me:$LINENO: result: unsupported" >&5
2932 echo "${ECHO_T}unsupported" >&6; } ;;
2934 CC="$CC $ac_cv_prog_cc_c89"
2935 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2936 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2953 # On Suns, sometimes $CPP names a directory.
2954 if test -n "$CPP" && test -d "$CPP"; then
2957 if test -z "$CPP"; then
2958 if test "${ac_cv_prog_CPP+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 # Double quotes because CPP needs to be expanded
2962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965 for ac_c_preproc_warn_flag in '' yes
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2970 # <limits.h> exists even on freestanding compilers.
2971 # On the NeXT, cc -E runs the code through the compiler's parser,
2972 # not just through cpp. "Syntax error" is here to catch this case.
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2980 # include <limits.h>
2982 # include <assert.h>
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev/null && {
2999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Broken: fails on valid input.
3011 rm -f conftest.err conftest.$ac_ext
3013 # OK, works on sane cases. Now check whether nonexistent headers
3014 # can be detected and how.
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3021 #include <ac_nonexistent.h>
3023 if { (ac_try="$ac_cpp conftest.$ac_ext"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null && {
3036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3039 # Broken: success on invalid input.
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Passes both tests.
3050 rm -f conftest.err conftest.$ac_ext
3053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3054 rm -f conftest.err conftest.$ac_ext
3055 if $ac_preproc_ok; then
3067 { echo "$as_me:$LINENO: result: $CPP" >&5
3068 echo "${ECHO_T}$CPP" >&6; }
3070 for ac_c_preproc_warn_flag in '' yes
3072 # Use a header file that comes with gcc, so configuring glibc
3073 # with a fresh cross-compiler works.
3074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3075 # <limits.h> exists even on freestanding compilers.
3076 # On the NeXT, cc -E runs the code through the compiler's parser,
3077 # not just through cpp. "Syntax error" is here to catch this case.
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 # include <limits.h>
3087 # include <assert.h>
3091 if { (ac_try="$ac_cpp conftest.$ac_ext"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3144 # Broken: success on invalid input.
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Passes both tests.
3155 rm -f conftest.err conftest.$ac_ext
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&5
3165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&2;}
3167 { (exit 1); exit 1; }; }
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 # Check whether --with-linker was given.
3178 if test "${with_linker+set}" = set; then
3179 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3180 echo "${ECHO_T}LD=$withval" >&6; }
3183 if test -z "$LD" ; then LD=$CC; fi
3184 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3185 echo "${ECHO_T}LD defaults to $LD" >&6; }
3190 # Check whether --with-ccopts was given.
3191 if test "${with_ccopts+set}" = set; then
3192 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3193 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 # Extract the first word of "grep ggrep" to use in msg output
3204 if test -z "$GREP"; then
3205 set dummy grep ggrep; ac_prog_name=$2
3206 if test "${ac_cv_path_GREP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_path_GREP_found=false
3210 # Loop through the user's path and test for each of PROGNAME-LIST
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215 test -z "$as_dir" && as_dir=.
3216 for ac_prog in grep ggrep; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3220 # Check for GNU ac_path_GREP and select it if it is found.
3221 # Check for GNU $ac_path_GREP
3222 case `"$ac_path_GREP" --version 2>&1` in
3224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230 cat "conftest.in" "conftest.in" >"conftest.tmp"
3231 mv "conftest.tmp" "conftest.in"
3232 cp "conftest.in" "conftest.nl"
3233 echo 'GREP' >> "conftest.nl"
3234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3236 ac_count=`expr $ac_count + 1`
3237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3238 # Best one so far, save it but keep looking for a better one
3239 ac_cv_path_GREP="$ac_path_GREP"
3240 ac_path_GREP_max=$ac_count
3242 # 10*(2^10) chars as input seems more than enough
3243 test $ac_count -gt 10 && break
3245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3249 $ac_path_GREP_found && break 3
3259 GREP="$ac_cv_path_GREP"
3260 if test -z "$GREP"; then
3261 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3263 { (exit 1); exit 1; }; }
3267 ac_cv_path_GREP=$GREP
3272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3274 GREP="$ac_cv_path_GREP"
3277 { echo "$as_me:$LINENO: checking for egrep" >&5
3278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3279 if test "${ac_cv_path_EGREP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3283 then ac_cv_path_EGREP="$GREP -E"
3285 # Extract the first word of "egrep" to use in msg output
3286 if test -z "$EGREP"; then
3287 set dummy egrep; ac_prog_name=$2
3288 if test "${ac_cv_path_EGREP+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 ac_path_EGREP_found=false
3292 # Loop through the user's path and test for each of PROGNAME-LIST
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297 test -z "$as_dir" && as_dir=.
3298 for ac_prog in egrep; do
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3302 # Check for GNU ac_path_EGREP and select it if it is found.
3303 # Check for GNU $ac_path_EGREP
3304 case `"$ac_path_EGREP" --version 2>&1` in
3306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 cat "conftest.in" "conftest.in" >"conftest.tmp"
3313 mv "conftest.tmp" "conftest.in"
3314 cp "conftest.in" "conftest.nl"
3315 echo 'EGREP' >> "conftest.nl"
3316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3318 ac_count=`expr $ac_count + 1`
3319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3320 # Best one so far, save it but keep looking for a better one
3321 ac_cv_path_EGREP="$ac_path_EGREP"
3322 ac_path_EGREP_max=$ac_count
3324 # 10*(2^10) chars as input seems more than enough
3325 test $ac_count -gt 10 && break
3327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331 $ac_path_EGREP_found && break 3
3341 EGREP="$ac_cv_path_EGREP"
3342 if test -z "$EGREP"; then
3343 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3345 { (exit 1); exit 1; }; }
3349 ac_cv_path_EGREP=$EGREP
3355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3357 EGREP="$ac_cv_path_EGREP"
3360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3362 if test "${ac_cv_header_stdc+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3393 grep -v '^ *+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3401 ac_cv_header_stdc=yes
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 ac_cv_header_stdc=no
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 if test $ac_cv_header_stdc = yes; then
3412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423 $EGREP "memchr" >/dev/null 2>&1; then
3426 ac_cv_header_stdc=no
3432 if test $ac_cv_header_stdc = yes; then
3433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434 cat >conftest.$ac_ext <<_ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444 $EGREP "free" >/dev/null 2>&1; then
3447 ac_cv_header_stdc=no
3453 if test $ac_cv_header_stdc = yes; then
3454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455 if test "$cross_compiling" = yes; then
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3466 #if ((' ' & 0x0FF) == 0x020)
3467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470 # define ISLOWER(c) \
3471 (('a' <= (c) && (c) <= 'i') \
3472 || ('j' <= (c) && (c) <= 'r') \
3473 || ('s' <= (c) && (c) <= 'z'))
3474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3482 for (i = 0; i < 256; i++)
3483 if (XOR (islower (i), ISLOWER (i))
3484 || toupper (i) != TOUPPER (i))
3489 rm -f conftest$ac_exeext
3490 if { (ac_try="$ac_link"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_link") 2>&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_try") 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); }; }; then
3511 echo "$as_me: program exited with status $ac_status" >&5
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3516 ac_cv_header_stdc=no
3518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3526 if test $ac_cv_header_stdc = yes; then
3528 cat >>confdefs.h <<\_ACEOF
3529 #define STDC_HEADERS 1
3534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3544 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3545 inttypes.h stdint.h unistd.h
3547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559 $ac_includes_default
3561 #include <$ac_header>
3563 rm -f conftest.$ac_objext
3564 if { (ac_try="$ac_compile"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_compile") 2>conftest.er1
3572 grep -v '^ *+' conftest.er1 >conftest.err
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } && {
3577 test -z "$ac_c_werror_flag" ||
3578 test ! -s conftest.err
3579 } && test -s conftest.$ac_objext; then
3580 eval "$as_ac_Header=yes"
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 eval "$as_ac_Header=no"
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_res=`eval echo '${'$as_ac_Header'}'`
3591 { echo "$as_me:$LINENO: result: $ac_res" >&5
3592 echo "${ECHO_T}$ac_res" >&6; }
3593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3594 cat >>confdefs.h <<_ACEOF
3595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3603 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3605 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3610 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3612 # Is the header compilable?
3613 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3614 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 $ac_includes_default
3622 #include <linux/fs.h>
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1 >conftest.err
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3641 ac_header_compiler=yes
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3646 ac_header_compiler=no
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3651 echo "${ECHO_T}$ac_header_compiler" >&6; }
3653 # Is the header present?
3654 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3655 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3662 #include <linux/fs.h>
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null && {
3677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3680 ac_header_preproc=yes
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 ac_header_preproc=no
3688 rm -f conftest.err conftest.$ac_ext
3689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3690 echo "${ECHO_T}$ac_header_preproc" >&6; }
3692 # So? What about this header?
3693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3695 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3696 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3698 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3699 ac_header_preproc=yes
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3703 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3705 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3707 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3709 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3711 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3713 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3717 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3718 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3719 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_cv_header_linux_fs_h=$ac_header_preproc
3724 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3725 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3728 if test $ac_cv_header_linux_fs_h = yes; then
3735 if test "$linux_headers" != yes; then
3736 LINUX_INCLUDE='-I$(top_builddir)/include'
3739 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3740 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3741 if test "$GCC" = yes
3744 alpha) addcflags="-mieee" ;;
3747 if test "x$addcflags" != x
3749 { echo "$as_me:$LINENO: result: $addcflags" >&5
3750 echo "${ECHO_T}$addcflags" >&6; }
3751 CFLAGS="$addcflags $CFLAGS"
3753 { echo "$as_me:$LINENO: result: (none)" >&5
3754 echo "${ECHO_T}(none)" >&6; }
3760 # Check whether --with-ldopts was given.
3761 if test "${with_ldopts+set}" = set; then
3762 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3763 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3768 # Check whether --with-root-prefix was given.
3769 if test "${with_root_prefix+set}" = set; then
3770 withval=$with_root_prefix; root_prefix=$withval
3774 # Check whether --enable-maintainer-mode was given.
3775 if test "${enable_maintainer_mode+set}" = set; then
3776 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3779 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3780 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3783 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3784 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3789 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3790 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3795 # Check whether --enable-compression was given.
3796 if test "${enable_compression+set}" = set; then
3797 enableval=$enable_compression; if test "$enableval" = "no"
3799 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3800 echo "${ECHO_T}Disabling compression support" >&6; }
3802 cat >>confdefs.h <<\_ACEOF
3803 #define ENABLE_COMPRESSION 1
3806 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3807 echo "${ECHO_T}Enabling compression support" >&6; }
3808 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3809 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3813 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3814 echo "${ECHO_T}Disabling compression support by default" >&6; }
3818 # Check whether --enable-htree was given.
3819 if test "${enable_htree+set}" = set; then
3820 enableval=$enable_htree; if test "$enableval" = "no"
3823 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3824 echo "${ECHO_T}Disabling htree directory support" >&6; }
3827 cat >>confdefs.h <<\_ACEOF
3828 #define ENABLE_HTREE 1
3831 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3832 echo "${ECHO_T}Enabling htree directory support" >&6; }
3837 cat >>confdefs.h <<\_ACEOF
3838 #define ENABLE_HTREE 1
3841 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3842 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3847 E2_PKG_CONFIG_STATIC=--static
3850 # Check whether --enable-elf-shlibs was given.
3851 if test "${enable_elf_shlibs+set}" = set; then
3852 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3855 MAKEFILE_ELF=/dev/null
3856 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3857 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3859 E2_PKG_CONFIG_STATIC=
3861 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3864 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3870 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
3871 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3872 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3876 MAKEFILE_ELF=/dev/null
3878 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3879 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3885 # Check whether --enable-bsd-shlibs was given.
3886 if test "${enable_bsd_shlibs+set}" = set; then
3887 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3890 MAKEFILE_BSDLIB=/dev/null
3891 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3892 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3894 E2_PKG_CONFIG_STATIC=
3896 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3900 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3904 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3905 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3909 MAKEFILE_BSDLIB=/dev/null
3911 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3912 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3918 # Check whether --enable-profile was given.
3919 if test "${enable_profile+set}" = set; then
3920 enableval=$enable_profile; if test "$enableval" = "no"
3923 MAKEFILE_PROFILE=/dev/null
3924 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3925 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3928 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3929 PROFILED_LIB_EXT=_p.a
3930 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3931 echo "${ECHO_T}Building profiling libraries" >&6; }
3936 MAKEFILE_PROFILE=/dev/null
3937 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3938 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3944 # Check whether --enable-checker was given.
3945 if test "${enable_checker+set}" = set; then
3946 enableval=$enable_checker; if test "$enableval" = "no"
3949 MAKEFILE_CHECKER=/dev/null
3950 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3951 echo "${ECHO_T}Disabling checker libraries" >&6; }
3954 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3955 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3956 echo "${ECHO_T}Building checker libraries" >&6; }
3961 MAKEFILE_CHECKER=/dev/null
3962 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3963 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3974 # Check whether --enable-jbd-debug was given.
3975 if test "${enable_jbd_debug+set}" = set; then
3976 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3978 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3979 echo "${ECHO_T}Disabling journal debugging" >&6; }
3981 cat >>confdefs.h <<\_ACEOF
3982 #define CONFIG_JBD_DEBUG 1
3985 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3986 echo "${ECHO_T}Enabling journal debugging" >&6; }
3990 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3991 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3995 # Check whether --enable-blkid-debug was given.
3996 if test "${enable_blkid_debug+set}" = set; then
3997 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3999 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4000 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4002 cat >>confdefs.h <<\_ACEOF
4003 #define CONFIG_BLKID_DEBUG 1
4006 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4007 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4011 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4012 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4016 # Check whether --enable-testio-debug was given.
4017 if test "${enable_testio_debug+set}" = set; then
4018 enableval=$enable_testio_debug; if test "$enableval" = "no"
4020 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4021 echo "${ECHO_T}Disabling testio debugging" >&6; }
4025 cat >>confdefs.h <<\_ACEOF
4026 #define CONFIG_TESTIO_DEBUG 1
4029 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4030 echo "${ECHO_T}Enabling testio debugging" >&6; }
4034 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4035 echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4036 cat >>confdefs.h <<\_ACEOF
4037 #define CONFIG_TESTIO_DEBUG 1
4045 # Check whether --enable-debugfs was given.
4046 if test "${enable_debugfs+set}" = set; then
4047 enableval=$enable_debugfs; if test "$enableval" = "no"
4049 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4050 echo "${ECHO_T}Disabling debugfs support" >&6; }
4054 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4055 echo "${ECHO_T}Enabling debugfs support" >&6; }
4059 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4060 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4066 # Check whether --enable-imager was given.
4067 if test "${enable_imager+set}" = set; then
4068 enableval=$enable_imager; if test "$enableval" = "no"
4070 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4071 echo "${ECHO_T}Disabling e2image support" >&6; }
4075 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4076 echo "${ECHO_T}Enabling e2image support" >&6; }
4080 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4081 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4087 # Check whether --enable-resizer was given.
4088 if test "${enable_resizer+set}" = set; then
4089 enableval=$enable_resizer; if test "$enableval" = "no"
4091 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4092 echo "${ECHO_T}Disabling e2resize support" >&6; }
4096 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4097 echo "${ECHO_T}Enabling e2resize support" >&6; }
4101 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4102 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4108 # Check whether --enable-fsck was given.
4109 if test "${enable_fsck+set}" = set; then
4110 enableval=$enable_fsck; if test "$enableval" = "no"
4112 FSCK_PROG='' FSCK_MAN=''
4113 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4114 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4116 FSCK_PROG=fsck FSCK_MAN=fsck.8
4117 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4118 echo "${ECHO_T}Building fsck wrapper" >&6; }
4124 FSCK_PROG='' FSCK_MAN=''
4125 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4126 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4129 FSCK_PROG=fsck FSCK_MAN=fsck.8
4130 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4131 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4138 # Check whether --enable-e2initrd-helper was given.
4139 if test "${enable_e2initrd_helper+set}" = set; then
4140 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4142 E2INITRD_PROG='' E2INITRD_MAN=''
4143 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4144 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4146 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4147 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4148 echo "${ECHO_T}Building e2initrd helper" >&6; }
4152 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4153 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4154 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4160 # Check whether --enable-tls was given.
4161 if test "${enable_tls+set}" = set; then
4162 enableval=$enable_tls; if test "$enableval" = "no"
4165 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4166 echo "${ECHO_T}Disabling thread local support" >&6; }
4169 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4170 echo "${ECHO_T}Enabling thread local support" >&6; }
4174 if test -n "$WITH_DIET_LIBC"
4177 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4178 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4181 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4182 echo "${ECHO_T}Try using thread local support by default" >&6; }
4187 if test "$try_tls" = "yes"
4190 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4191 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4192 if test "${ac_cv_tls+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 ax_tls_keywords="__thread __declspec(thread) none"
4197 for ax_tls_keyword in $ax_tls_keywords; do
4198 case $ax_tls_keyword in
4199 none) ac_cv_tls=none ; break ;;
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4210 static $ax_tls_keyword int bar;
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest.$ac_objext; then
4238 ac_cv_tls=$ax_tls_keyword ; break
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 if test "$ac_cv_tls" != "none"; then
4256 cat >>confdefs.h <<_ACEOF
4257 #define TLS $ac_cv_tls
4261 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4262 echo "${ECHO_T}$ac_cv_tls" >&6; }
4265 # Check whether --enable-uuidd was given.
4266 if test "${enable_uuidd+set}" = set; then
4267 enableval=$enable_uuidd; if test "$enableval" = "no"
4269 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4270 echo "${ECHO_T}Not building uuidd" >&6; }
4273 cat >>confdefs.h <<\_ACEOF
4278 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4279 echo "${ECHO_T}Building uuidd" >&6; }
4283 cat >>confdefs.h <<\_ACEOF
4288 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4289 echo "${ECHO_T}Building uuidd by default" >&6; }
4294 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4296 GETTEXT_PACKAGE=e2fsprogs
4298 VERSION="$E2FSPROGS_VERSION"
4300 cat >>confdefs.h <<_ACEOF
4301 #define PACKAGE "$PACKAGE"
4304 cat >>confdefs.h <<_ACEOF
4305 #define VERSION "$VERSION"
4312 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4313 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4314 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4315 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 cat >conftest.make <<\_ACEOF
4321 @echo '@@@%%%=$(MAKE)=@@@%%%'
4323 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4324 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4326 eval ac_cv_prog_make_${ac_make}_set=yes;;
4328 eval ac_cv_prog_make_${ac_make}_set=no;;
4332 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4333 { echo "$as_me:$LINENO: result: yes" >&5
4334 echo "${ECHO_T}yes" >&6; }
4337 { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4339 SET_MAKE="MAKE=${MAKE-make}"
4342 # Find a good install program. We prefer a C program (faster),
4343 # so one script is as good as another. But avoid the broken or
4344 # incompatible versions:
4345 # SysV /etc/install, /usr/sbin/install
4346 # SunOS /usr/etc/install
4347 # IRIX /sbin/install
4349 # AmigaOS /C/install, which installs bootblocks on floppy discs
4350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4353 # OS/2's system install, which has a completely different semantic
4354 # ./install, which can be erroneously created by make from ./install.sh.
4355 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4357 if test -z "$INSTALL"; then
4358 if test "${ac_cv_path_install+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir=.
4366 # Account for people who put trailing slashes in PATH elements.
4368 ./ | .// | /cC/* | \
4369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4373 # OSF1 and SCO ODT 3.0 have their own names for install.
4374 # Don't use installbsd from OSF since it installs stuff as root
4376 for ac_prog in ginstall scoinst install; do
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4379 if test $ac_prog = install &&
4380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4381 # AIX install. It has an incompatible calling convention.
4383 elif test $ac_prog = install &&
4384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4385 # program-specific install script used by HP pwplus--don't use.
4388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4401 if test "${ac_cv_path_install+set}" = set; then
4402 INSTALL=$ac_cv_path_install
4404 # As a last resort, use the slow shell script. Don't cache a
4405 # value for INSTALL within a source directory, because that will
4406 # break other packages using the cache if that directory is
4407 # removed, or if the value is a relative name.
4408 INSTALL=$ac_install_sh
4411 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4412 echo "${ECHO_T}$INSTALL" >&6; }
4414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4415 # It thinks the first close brace ends the variable substitution.
4416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4424 if test -n "$ac_aux_dir"; then
4425 case "$ac_aux_dir" in
4426 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4427 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4430 if test -z "$MKINSTALLDIRS"; then
4431 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4436 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4437 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4438 # Check whether --enable-nls was given.
4439 if test "${enable_nls+set}" = set; then
4440 enableval=$enable_nls; USE_NLS=$enableval
4445 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4446 echo "${ECHO_T}$USE_NLS" >&6; }
4453 # Prepare PATH_SEPARATOR.
4454 # The user is always right.
4455 if test "${PATH_SEPARATOR+set}" != set; then
4456 echo "#! /bin/sh" >conf$$.sh
4457 echo "exit 0" >>conf$$.sh
4459 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4467 # Find out how to test for executable files. Don't use a zero-byte file,
4468 # as systems may use methods other than mode bits to determine executability.
4469 cat >conf$$.file <<_ASEOF
4473 chmod +x conf$$.file
4474 if test -x conf$$.file >/dev/null 2>&1; then
4475 ac_executable_p="test -x"
4477 ac_executable_p="test -f"
4481 # Extract the first word of "msgfmt", so it can be a program name with args.
4482 set dummy msgfmt; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_path_MSGFMT+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4493 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4494 for ac_dir in $PATH; do
4496 test -z "$ac_dir" && ac_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4499 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4500 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4501 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4508 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4512 MSGFMT="$ac_cv_path_MSGFMT"
4513 if test "$MSGFMT" != ":"; then
4514 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4515 echo "${ECHO_T}$MSGFMT" >&6; }
4517 { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4521 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4522 set dummy gmsgfmt; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4552 GMSGFMT=$ac_cv_path_GMSGFMT
4553 if test -n "$GMSGFMT"; then
4554 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4555 echo "${ECHO_T}$GMSGFMT" >&6; }
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4564 # Prepare PATH_SEPARATOR.
4565 # The user is always right.
4566 if test "${PATH_SEPARATOR+set}" != set; then
4567 echo "#! /bin/sh" >conf$$.sh
4568 echo "exit 0" >>conf$$.sh
4570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4578 # Find out how to test for executable files. Don't use a zero-byte file,
4579 # as systems may use methods other than mode bits to determine executability.
4580 cat >conf$$.file <<_ASEOF
4584 chmod +x conf$$.file
4585 if test -x conf$$.file >/dev/null 2>&1; then
4586 ac_executable_p="test -x"
4588 ac_executable_p="test -f"
4592 # Extract the first word of "xgettext", so it can be a program name with args.
4593 set dummy xgettext; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4604 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4605 for ac_dir in $PATH; do
4607 test -z "$ac_dir" && ac_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4610 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4611 (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
4612 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4619 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4623 XGETTEXT="$ac_cv_path_XGETTEXT"
4624 if test "$XGETTEXT" != ":"; then
4625 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4626 echo "${ECHO_T}$XGETTEXT" >&6; }
4628 { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4635 # Prepare PATH_SEPARATOR.
4636 # The user is always right.
4637 if test "${PATH_SEPARATOR+set}" != set; then
4638 echo "#! /bin/sh" >conf$$.sh
4639 echo "exit 0" >>conf$$.sh
4641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4649 # Find out how to test for executable files. Don't use a zero-byte file,
4650 # as systems may use methods other than mode bits to determine executability.
4651 cat >conf$$.file <<_ASEOF
4655 chmod +x conf$$.file
4656 if test -x conf$$.file >/dev/null 2>&1; then
4657 ac_executable_p="test -x"
4659 ac_executable_p="test -f"
4663 # Extract the first word of "msgmerge", so it can be a program name with args.
4664 set dummy msgmerge; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4675 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4676 for ac_dir in $PATH; do
4678 test -z "$ac_dir" && ac_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4681 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4682 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4689 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4693 MSGMERGE="$ac_cv_path_MSGMERGE"
4694 if test "$MSGMERGE" != ":"; then
4695 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4696 echo "${ECHO_T}$MSGMERGE" >&6; }
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4703 if test "$GMSGFMT" != ":"; then
4704 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4705 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4708 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4709 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4710 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4715 if test "$XGETTEXT" != ":"; then
4716 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4717 (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
4720 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4721 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4727 ac_config_commands="$ac_config_commands default-1"
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4735 if test "${ac_cv_prog_RANLIB+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 if test -n "$RANLIB"; then
4739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 RANLIB=$ac_cv_prog_RANLIB
4759 if test -n "$RANLIB"; then
4760 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4761 echo "${ECHO_T}$RANLIB" >&6; }
4763 { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4769 if test -z "$ac_cv_prog_RANLIB"; then
4770 ac_ct_RANLIB=$RANLIB
4771 # Extract the first word of "ranlib", so it can be a program name with args.
4772 set dummy ranlib; ac_word=$2
4773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 if test -n "$ac_ct_RANLIB"; then
4779 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_ac_ct_RANLIB="ranlib"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4799 if test -n "$ac_ct_RANLIB"; then
4800 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4803 { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4807 if test "x$ac_ct_RANLIB" = x; then
4810 case $cross_compiling:$ac_tool_warned in
4812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4813 whose name does not start with the host triplet. If you think this
4814 configuration is useful to you, please write to autoconf@gnu.org." >&5
4815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4816 whose name does not start with the host triplet. If you think this
4817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4818 ac_tool_warned=yes ;;
4820 RANLIB=$ac_ct_RANLIB
4823 RANLIB="$ac_cv_prog_RANLIB"
4827 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4828 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4829 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 ac_check_lib_save_LIBS=$LIBS
4833 LIBS="-lcposix $LIBS"
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4841 /* Override any GCC internal prototype to avoid an error.
4842 Use char because int might match the return type of a GCC
4843 builtin and then its argument prototype would still apply. */
4856 rm -f conftest.$ac_objext conftest$ac_exeext
4857 if { (ac_try="$ac_link"
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863 (eval "$ac_link") 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && {
4870 test -z "$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 } && test -s conftest$ac_exeext &&
4873 $as_test_x conftest$ac_exeext; then
4874 ac_cv_lib_cposix_strerror=yes
4876 echo "$as_me: failed program was:" >&5
4877 sed 's/^/| /' conftest.$ac_ext >&5
4879 ac_cv_lib_cposix_strerror=no
4882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4883 conftest$ac_exeext conftest.$ac_ext
4884 LIBS=$ac_check_lib_save_LIBS
4886 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4887 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4888 if test $ac_cv_lib_cposix_strerror = yes; then
4889 LIBS="$LIBS -lcposix"
4894 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4895 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4896 if test "${ac_cv_c_const+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 cat >conftest.$ac_ext <<_ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4909 /* FIXME: Include the comments suggested by Paul. */
4911 /* Ultrix mips cc rejects this. */
4912 typedef int charset[2];
4914 /* SunOS 4.1.1 cc rejects this. */
4915 char const *const *pcpcc;
4917 /* NEC SVR4.0.2 mips cc rejects this. */
4918 struct point {int x, y;};
4919 static struct point const zero = {0,0};
4920 /* AIX XL C 1.02.0.0 rejects this.
4921 It does not let you subtract one const X* pointer from another in
4922 an arm of an if-expression whose if-part is not a constant
4924 const char *g = "string";
4925 pcpcc = &g + (g ? g-g : 0);
4926 /* HPUX 7.0 cc rejects these. */
4928 ppc = (char**) pcpcc;
4929 pcpcc = (char const *const *) ppc;
4930 { /* SCO 3.2v4 cc rejects this. */
4932 char const *s = 0 ? (char *) 0 : (char const *) 0;
4937 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4939 const int *foo = &x[0];
4942 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4943 typedef const int *iptr;
4947 { /* AIX XL C 1.02.0.0 rejects this saying
4948 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4949 struct s { int j; const int *ap[3]; };
4950 struct s *b; b->j = 5;
4952 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4956 return !cs[0] && !zero.x;
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4991 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4992 if test $ac_cv_c_const = no; then
4994 cat >>confdefs.h <<\_ACEOF
5001 { echo "$as_me:$LINENO: checking for signed" >&5
5002 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5003 if test "${bh_cv_c_signed+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 cat >conftest.$ac_ext <<_ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5021 rm -f conftest.$ac_objext
5022 if { (ac_try="$ac_compile"
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_compile") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } && {
5035 test -z "$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 } && test -s conftest.$ac_objext; then
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5049 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5050 if test $bh_cv_c_signed = no; then
5052 cat >>confdefs.h <<\_ACEOF
5058 { echo "$as_me:$LINENO: checking for inline" >&5
5059 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5060 if test "${ac_cv_c_inline+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 for ac_kw in inline __inline__ __inline; do
5065 cat >conftest.$ac_ext <<_ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5073 static $ac_kw foo_t static_foo () {return 0; }
5074 $ac_kw foo_t foo () {return 0; }
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_compile") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
5095 ac_cv_c_inline=$ac_kw
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 test "$ac_cv_c_inline" != no && break
5108 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5109 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5112 case $ac_cv_c_inline in
5115 case $ac_cv_c_inline in
5117 *) ac_val=$ac_cv_c_inline;;
5119 cat >>confdefs.h <<_ACEOF
5121 #define inline $ac_val
5127 { echo "$as_me:$LINENO: checking for off_t" >&5
5128 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5129 if test "${ac_cv_type_off_t+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 cat >conftest.$ac_ext <<_ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 $ac_includes_default
5139 typedef off_t ac__type_new_;
5143 if ((ac__type_new_ *) 0)
5145 if (sizeof (ac__type_new_))
5151 rm -f conftest.$ac_objext
5152 if { (ac_try="$ac_compile"
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_compile") 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } && {
5165 test -z "$ac_c_werror_flag" ||
5166 test ! -s conftest.err
5167 } && test -s conftest.$ac_objext; then
5168 ac_cv_type_off_t=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5178 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5179 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5180 if test $ac_cv_type_off_t = yes; then
5184 cat >>confdefs.h <<_ACEOF
5185 #define off_t long int
5190 { echo "$as_me:$LINENO: checking for size_t" >&5
5191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5192 if test "${ac_cv_type_size_t+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5198 cat confdefs.h >>conftest.$ac_ext
5199 cat >>conftest.$ac_ext <<_ACEOF
5200 /* end confdefs.h. */
5201 $ac_includes_default
5202 typedef size_t ac__type_new_;
5206 if ((ac__type_new_ *) 0)
5208 if (sizeof (ac__type_new_))
5214 rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compile") 2>conftest.er1
5223 grep -v '^ *+' conftest.er1 >conftest.err
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } && {
5228 test -z "$ac_c_werror_flag" ||
5229 test ! -s conftest.err
5230 } && test -s conftest.$ac_objext; then
5231 ac_cv_type_size_t=yes
5233 echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5236 ac_cv_type_size_t=no
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5242 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5243 if test $ac_cv_type_size_t = yes; then
5247 cat >>confdefs.h <<_ACEOF
5248 #define size_t unsigned int
5254 { echo "$as_me:$LINENO: checking for long long" >&5
5255 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5256 if test "${ac_cv_type_long_long+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 long long ll = 1LL; int i = 63;
5269 long long llmax = (long long) -1;
5270 return ll << i | ll >> i | llmax / ll | llmax % ll;
5275 rm -f conftest.$ac_objext conftest$ac_exeext
5276 if { (ac_try="$ac_link"
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_link") 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && {
5289 test -z "$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5291 } && test -s conftest$ac_exeext &&
5292 $as_test_x conftest$ac_exeext; then
5293 ac_cv_type_long_long=yes
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 ac_cv_type_long_long=no
5301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5302 conftest$ac_exeext conftest.$ac_ext
5304 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5305 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5306 if test $ac_cv_type_long_long = yes; then
5308 cat >>confdefs.h <<\_ACEOF
5309 #define HAVE_LONG_LONG 1
5315 { echo "$as_me:$LINENO: checking for long double" >&5
5316 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5317 if test "${gt_cv_c_long_double+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 if test "$GCC" = yes; then
5321 gt_cv_c_long_double=yes
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5330 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5331 long double foo = 0.0;
5332 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5333 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5343 rm -f conftest.$ac_objext
5344 if { (ac_try="$ac_compile"
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compile") 2>conftest.er1
5352 grep -v '^ *+' conftest.er1 >conftest.err
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } && {
5357 test -z "$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.$ac_objext; then
5360 gt_cv_c_long_double=yes
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 gt_cv_c_long_double=no
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5372 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5373 if test $gt_cv_c_long_double = yes; then
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_LONG_DOUBLE 1
5382 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5383 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5384 if test "${gt_cv_c_wchar_t+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 cat >conftest.$ac_ext <<_ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5394 wchar_t foo = (wchar_t)'\0';
5403 rm -f conftest.$ac_objext
5404 if { (ac_try="$ac_compile"
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_compile") 2>conftest.er1
5412 grep -v '^ *+' conftest.er1 >conftest.err
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } && {
5417 test -z "$ac_c_werror_flag" ||
5418 test ! -s conftest.err
5419 } && test -s conftest.$ac_objext; then
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5431 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5432 if test $gt_cv_c_wchar_t = yes; then
5434 cat >>confdefs.h <<\_ACEOF
5435 #define HAVE_WCHAR_T 1
5441 { echo "$as_me:$LINENO: checking for wint_t" >&5
5442 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5443 if test "${gt_cv_c_wint_t+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5453 wint_t foo = (wchar_t)'\0';
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5490 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5491 if test $gt_cv_c_wint_t = yes; then
5493 cat >>confdefs.h <<\_ACEOF
5494 #define HAVE_WINT_T 1
5500 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5501 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5502 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 #include <sys/types.h>
5512 #include <inttypes.h>
5516 uintmax_t i = (uintmax_t) -1;
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 jm_ac_cv_header_inttypes_h=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 jm_ac_cv_header_inttypes_h=no
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5549 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5550 if test $jm_ac_cv_header_inttypes_h = yes; then
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5559 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5560 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5561 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <sys/types.h>
5575 uintmax_t i = (uintmax_t) -1;
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 jm_ac_cv_header_stdint_h=yes
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 jm_ac_cv_header_stdint_h=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5608 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5609 if test $jm_ac_cv_header_stdint_h = yes; then
5611 cat >>confdefs.h <<_ACEOF
5612 #define HAVE_STDINT_H_WITH_UINTMAX 1
5620 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5621 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5622 if test "${gt_cv_c_intmax_t+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5634 #if HAVE_STDINT_H_WITH_UINTMAX
5637 #if HAVE_INTTYPES_H_WITH_UINTMAX
5638 #include <inttypes.h>
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && {
5663 test -z "$ac_c_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.$ac_objext; then
5666 gt_cv_c_intmax_t=yes
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5677 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5678 if test $gt_cv_c_intmax_t = yes; then
5680 cat >>confdefs.h <<\_ACEOF
5681 #define HAVE_INTMAX_T 1
5688 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5689 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5690 if test "${gt_cv_func_printf_posix+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 if test "$cross_compiling" = yes; then
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5703 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 $EGREP "notposix" >/dev/null 2>&1; then
5710 gt_cv_func_printf_posix="guessing no"
5712 gt_cv_func_printf_posix="guessing yes"
5718 cat >conftest.$ac_ext <<_ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5727 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5728 dollar expansion (possibly an autoconf bug). */
5729 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5730 static char buf[100];
5733 sprintf (buf, format, 33, 55);
5734 return (strcmp (buf, "55 33") != 0);
5737 rm -f conftest$ac_exeext
5738 if { (ac_try="$ac_link"
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_link") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5748 { (case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_try") 2>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 gt_cv_func_printf_posix=yes
5759 echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5764 gt_cv_func_printf_posix=no
5766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5772 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5773 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5774 case $gt_cv_func_printf_posix in
5777 cat >>confdefs.h <<\_ACEOF
5778 #define HAVE_POSIX_PRINTF 1
5784 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5785 # for constant arguments. Useless!
5786 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5787 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5788 if test "${ac_cv_working_alloca_h+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 cat >conftest.$ac_ext <<_ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5801 char *p = (char *) alloca (2 * sizeof (int));
5807 rm -f conftest.$ac_objext conftest$ac_exeext
5808 if { (ac_try="$ac_link"
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_link") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest$ac_exeext &&
5824 $as_test_x conftest$ac_exeext; then
5825 ac_cv_working_alloca_h=yes
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5830 ac_cv_working_alloca_h=no
5833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5834 conftest$ac_exeext conftest.$ac_ext
5836 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5837 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5838 if test $ac_cv_working_alloca_h = yes; then
5840 cat >>confdefs.h <<\_ACEOF
5841 #define HAVE_ALLOCA_H 1
5846 { echo "$as_me:$LINENO: checking for alloca" >&5
5847 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5848 if test "${ac_cv_func_alloca_works+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5858 # define alloca __builtin_alloca
5861 # include <malloc.h>
5862 # define alloca _alloca
5864 # ifdef HAVE_ALLOCA_H
5865 # include <alloca.h>
5870 # ifndef alloca /* predefined by HP cc +Olibcalls */
5881 char *p = (char *) alloca (1);
5887 rm -f conftest.$ac_objext conftest$ac_exeext
5888 if { (ac_try="$ac_link"
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_link") 2>conftest.er1
5896 grep -v '^ *+' conftest.er1 >conftest.err
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && {
5901 test -z "$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest$ac_exeext &&
5904 $as_test_x conftest$ac_exeext; then
5905 ac_cv_func_alloca_works=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.$ac_ext >&5
5910 ac_cv_func_alloca_works=no
5913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5914 conftest$ac_exeext conftest.$ac_ext
5916 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5917 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5919 if test $ac_cv_func_alloca_works = yes; then
5921 cat >>confdefs.h <<\_ACEOF
5922 #define HAVE_ALLOCA 1
5926 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5927 # that cause trouble. Some versions do not even contain alloca or
5928 # contain a buggy version. If you still want to use their alloca,
5929 # use ar to extract alloca.o from them instead of compiling alloca.c.
5931 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5933 cat >>confdefs.h <<\_ACEOF
5938 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5939 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5940 if test "${ac_cv_os_cray+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #if defined CRAY && ! defined CRAY2
5956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5957 $EGREP "webecray" >/dev/null 2>&1; then
5965 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5966 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5967 if test $ac_cv_os_cray = yes; then
5968 for ac_func in _getb67 GETB67 getb67; do
5969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5983 #define $ac_func innocuous_$ac_func
5985 /* System header to define __stub macros and hopefully few prototypes,
5986 which can conflict with char $ac_func (); below.
5987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 <limits.h> exists even on freestanding compilers. */
5991 # include <limits.h>
5993 # include <assert.h>
5998 /* Override any GCC internal prototype to avoid an error.
5999 Use char because int might match the return type of a GCC
6000 builtin and then its argument prototype would still apply. */
6005 /* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
6008 #if defined __stub_$ac_func || defined __stub___$ac_func
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (ac_try="$ac_link"
6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024 *) ac_try_echo=$ac_try;;
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027 (eval "$ac_link") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1 >conftest.err
6031 cat conftest.err >&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest$ac_exeext &&
6037 $as_test_x conftest$ac_exeext; then
6038 eval "$as_ac_var=yes"
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 eval "$as_ac_var=no"
6046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6047 conftest$ac_exeext conftest.$ac_ext
6049 ac_res=`eval echo '${'$as_ac_var'}'`
6050 { echo "$as_me:$LINENO: result: $ac_res" >&5
6051 echo "${ECHO_T}$ac_res" >&6; }
6052 if test `eval echo '${'$as_ac_var'}'` = yes; then
6054 cat >>confdefs.h <<_ACEOF
6055 #define CRAY_STACKSEG_END $ac_func
6064 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6065 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6066 if test "${ac_cv_c_stack_direction+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 if test "$cross_compiling" = yes; then
6070 ac_cv_c_stack_direction=0
6072 cat >conftest.$ac_ext <<_ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 $ac_includes_default
6080 find_stack_direction ()
6082 static char *addr = 0;
6087 return find_stack_direction ();
6090 return (&dummy > addr) ? 1 : -1;
6096 return find_stack_direction () < 0;
6099 rm -f conftest$ac_exeext
6100 if { (ac_try="$ac_link"
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_link") 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6110 { (case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_try") 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
6119 ac_cv_c_stack_direction=1
6121 echo "$as_me: program exited with status $ac_status" >&5
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6126 ac_cv_c_stack_direction=-1
6128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6133 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6134 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6136 cat >>confdefs.h <<_ACEOF
6137 #define STACK_DIRECTION $ac_cv_c_stack_direction
6145 for ac_header in stdlib.h unistd.h
6147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_res=`eval echo '${'$as_ac_Header'}'`
6155 { echo "$as_me:$LINENO: result: $ac_res" >&5
6156 echo "${ECHO_T}$ac_res" >&6; }
6158 # Is the header compilable?
6159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6161 cat >conftest.$ac_ext <<_ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6168 #include <$ac_header>
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 ac_header_compiler=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_header_compiler=no
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6197 echo "${ECHO_T}$ac_header_compiler" >&6; }
6199 # Is the header present?
6200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6202 cat >conftest.$ac_ext <<_ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <$ac_header>
6210 if { (ac_try="$ac_cpp conftest.$ac_ext"
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6218 grep -v '^ *+' conftest.er1 >conftest.err
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null && {
6223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6226 ac_header_preproc=yes
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_header_preproc=no
6234 rm -f conftest.err conftest.$ac_ext
6235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6236 echo "${ECHO_T}$ac_header_preproc" >&6; }
6238 # So? What about this header?
6239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6245 ac_header_preproc=yes
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 eval "$as_ac_Header=\$ac_header_preproc"
6270 ac_res=`eval echo '${'$as_ac_Header'}'`
6271 { echo "$as_me:$LINENO: result: $ac_res" >&5
6272 echo "${ECHO_T}$ac_res" >&6; }
6275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6276 cat >>confdefs.h <<_ACEOF
6277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6285 for ac_func in getpagesize
6287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 cat >conftest.$ac_ext <<_ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6301 #define $ac_func innocuous_$ac_func
6303 /* System header to define __stub macros and hopefully few prototypes,
6304 which can conflict with char $ac_func (); below.
6305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6306 <limits.h> exists even on freestanding compilers. */
6309 # include <limits.h>
6311 # include <assert.h>
6316 /* Override any GCC internal prototype to avoid an error.
6317 Use char because int might match the return type of a GCC
6318 builtin and then its argument prototype would still apply. */
6323 /* The GNU C library defines this for functions which it implements
6324 to always fail with ENOSYS. Some functions are actually named
6325 something starting with __ and the normal name is an alias. */
6326 #if defined __stub_$ac_func || defined __stub___$ac_func
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (ac_try="$ac_link"
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_link") 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest$ac_exeext &&
6355 $as_test_x conftest$ac_exeext; then
6356 eval "$as_ac_var=yes"
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6361 eval "$as_ac_var=no"
6364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6365 conftest$ac_exeext conftest.$ac_ext
6367 ac_res=`eval echo '${'$as_ac_var'}'`
6368 { echo "$as_me:$LINENO: result: $ac_res" >&5
6369 echo "${ECHO_T}$ac_res" >&6; }
6370 if test `eval echo '${'$as_ac_var'}'` = yes; then
6371 cat >>confdefs.h <<_ACEOF
6372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6378 { echo "$as_me:$LINENO: checking for working mmap" >&5
6379 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6380 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 if test "$cross_compiling" = yes; then
6384 ac_cv_func_mmap_fixed_mapped=no
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 $ac_includes_default
6393 /* malloc might have been renamed as rpl_malloc. */
6396 /* Thanks to Mike Haertel and Jim Avera for this test.
6397 Here is a matrix of mmap possibilities:
6398 mmap private not fixed
6399 mmap private fixed at somewhere currently unmapped
6400 mmap private fixed at somewhere already mapped
6401 mmap shared not fixed
6402 mmap shared fixed at somewhere currently unmapped
6403 mmap shared fixed at somewhere already mapped
6404 For private mappings, we should verify that changes cannot be read()
6405 back from the file, nor mmap's back from the file at a different
6406 address. (There have been systems where private was not correctly
6407 implemented like the infamous i386 svr4.0, and systems where the
6408 VM page cache was not coherent with the file system buffer cache
6409 like early versions of FreeBSD and possibly contemporary NetBSD.)
6410 For shared mappings, we should conversely verify that changes get
6411 propagated back to all the places they're supposed to be.
6413 Grep wants private fixed already mapped.
6414 The main things grep needs to know about mmap are:
6415 * does it exist and is it safe to write into the mmap'd area
6416 * how to use it (BSD variants) */
6419 #include <sys/mman.h>
6421 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6425 /* This mess was copied from the GNU getpagesize.h. */
6426 #ifndef HAVE_GETPAGESIZE
6427 /* Assume that all systems that can run configure have sys/param.h. */
6428 # ifndef HAVE_SYS_PARAM_H
6429 # define HAVE_SYS_PARAM_H 1
6432 # ifdef _SC_PAGESIZE
6433 # define getpagesize() sysconf(_SC_PAGESIZE)
6434 # else /* no _SC_PAGESIZE */
6435 # ifdef HAVE_SYS_PARAM_H
6436 # include <sys/param.h>
6437 # ifdef EXEC_PAGESIZE
6438 # define getpagesize() EXEC_PAGESIZE
6439 # else /* no EXEC_PAGESIZE */
6441 # define getpagesize() NBPG * CLSIZE
6444 # endif /* no CLSIZE */
6445 # else /* no NBPG */
6447 # define getpagesize() NBPC
6448 # else /* no NBPC */
6450 # define getpagesize() PAGESIZE
6451 # endif /* PAGESIZE */
6452 # endif /* no NBPC */
6453 # endif /* no NBPG */
6454 # endif /* no EXEC_PAGESIZE */
6455 # else /* no HAVE_SYS_PARAM_H */
6456 # define getpagesize() 8192 /* punt totally */
6457 # endif /* no HAVE_SYS_PARAM_H */
6458 # endif /* no _SC_PAGESIZE */
6460 #endif /* no HAVE_GETPAGESIZE */
6465 char *data, *data2, *data3;
6469 pagesize = getpagesize ();
6471 /* First, make a file with some known garbage in it. */
6472 data = (char *) malloc (pagesize);
6475 for (i = 0; i < pagesize; ++i)
6476 *(data + i) = rand ();
6478 fd = creat ("conftest.mmap", 0600);
6481 if (write (fd, data, pagesize) != pagesize)
6485 /* Next, try to mmap the file at a fixed address which already has
6486 something else allocated at it. If we can, also make sure that
6487 we see the same garbage. */
6488 fd = open ("conftest.mmap", O_RDWR);
6491 data2 = (char *) malloc (2 * pagesize);
6494 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6495 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6496 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6498 for (i = 0; i < pagesize; ++i)
6499 if (*(data + i) != *(data2 + i))
6502 /* Finally, make sure that changes to the mapped area do not
6503 percolate back to the file as seen by read(). (This is a bug on
6504 some variants of i386 svr4.0.) */
6505 for (i = 0; i < pagesize; ++i)
6506 *(data2 + i) = *(data2 + i) + 1;
6507 data3 = (char *) malloc (pagesize);
6510 if (read (fd, data3, pagesize) != pagesize)
6512 for (i = 0; i < pagesize; ++i)
6513 if (*(data + i) != *(data3 + i))
6519 rm -f conftest$ac_exeext
6520 if { (ac_try="$ac_link"
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_link") 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6530 { (case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535 (eval "$ac_try") 2>&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_func_mmap_fixed_mapped=yes
6541 echo "$as_me: program exited with status $ac_status" >&5
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_cv_func_mmap_fixed_mapped=no
6548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6554 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6555 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6557 cat >>confdefs.h <<\_ACEOF
6565 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6566 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6567 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6577 #include <features.h>
6578 #ifdef __GNU_LIBRARY__
6579 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6587 ac_cv_gnu_library_2_1=yes
6589 ac_cv_gnu_library_2_1=no
6596 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6597 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6599 GLIBC21="$ac_cv_gnu_library_2_1"
6604 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6605 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6606 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 if test "$cross_compiling" = yes; then
6612 # Guess based on the CPU.
6614 alpha* | i3456786 | m68k | s390*)
6615 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6617 gt_cv_int_divbyzero_sigfpe="guessing no";;
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6633 sigfpe_handler (int sig)
6635 sigfpe_handler (sig) int sig;
6638 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6639 exit (sig != SIGFPE);
6649 signal (SIGFPE, sigfpe_handler);
6650 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6651 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6652 signal (SIGTRAP, sigfpe_handler);
6654 /* Linux/SPARC yields signal SIGILL. */
6655 #if defined (__sparc__) && defined (__linux__)
6656 signal (SIGILL, sigfpe_handler);
6665 rm -f conftest$ac_exeext
6666 if { (ac_try="$ac_link"
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_link") 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6676 { (case "(($ac_try" in
6677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678 *) ac_try_echo=$ac_try;;
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681 (eval "$ac_try") 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 gt_cv_int_divbyzero_sigfpe=yes
6687 echo "$as_me: program exited with status $ac_status" >&5
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6692 gt_cv_int_divbyzero_sigfpe=no
6694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6700 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6701 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6702 case "$gt_cv_int_divbyzero_sigfpe" in
6707 cat >>confdefs.h <<_ACEOF
6708 #define INTDIV0_RAISES_SIGFPE $value
6713 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6714 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6715 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 unsigned long long ull = 1ULL; int i = 63;
6728 unsigned long long ullmax = (unsigned long long) -1;
6729 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (ac_try="$ac_link"
6737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6738 *) ac_try_echo=$ac_try;;
6740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6741 (eval "$ac_link") 2>conftest.er1
6743 grep -v '^ *+' conftest.er1 >conftest.err
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest$ac_exeext &&
6751 $as_test_x conftest$ac_exeext; then
6752 ac_cv_type_unsigned_long_long=yes
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_cv_type_unsigned_long_long=no
6760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6761 conftest$ac_exeext conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6764 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6765 if test $ac_cv_type_unsigned_long_long = yes; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define HAVE_UNSIGNED_LONG_LONG 1
6776 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6778 test $ac_cv_type_unsigned_long_long = yes \
6779 && ac_type='unsigned long long' \
6780 || ac_type='unsigned long'
6782 cat >>confdefs.h <<_ACEOF
6783 #define uintmax_t $ac_type
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_UINTMAX_T 1
6795 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6796 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6797 if test "${gt_cv_header_inttypes_h+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <sys/types.h>
6808 #include <inttypes.h>
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 gt_cv_header_inttypes_h=yes
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 gt_cv_header_inttypes_h=no
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6846 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6847 if test $gt_cv_header_inttypes_h = yes; then
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_INTTYPES_H 1
6857 if test $gt_cv_header_inttypes_h = yes; then
6858 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6859 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6860 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 #include <inttypes.h>
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1 >conftest.err
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 gt_cv_inttypes_pri_broken=no
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 gt_cv_inttypes_pri_broken=yes
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6912 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6914 if test "$gt_cv_inttypes_pri_broken" = yes; then
6916 cat >>confdefs.h <<_ACEOF
6917 #define PRI_MACROS_BROKEN 1
6924 for ac_header in stdint.h
6926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_res=`eval echo '${'$as_ac_Header'}'`
6934 { echo "$as_me:$LINENO: result: $ac_res" >&5
6935 echo "${ECHO_T}$ac_res" >&6; }
6937 # Is the header compilable?
6938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 $ac_includes_default
6947 #include <$ac_header>
6949 rm -f conftest.$ac_objext
6950 if { (ac_try="$ac_compile"
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6958 grep -v '^ *+' conftest.er1 >conftest.err
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_header_compiler=yes
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_header_compiler=no
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976 echo "${ECHO_T}$ac_header_compiler" >&6; }
6978 # Is the header present?
6979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #include <$ac_header>
6989 if { (ac_try="$ac_cpp conftest.$ac_ext"
6991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6997 grep -v '^ *+' conftest.er1 >conftest.err
6999 cat conftest.err >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } >/dev/null && {
7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7005 ac_header_preproc=yes
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 ac_header_preproc=no
7013 rm -f conftest.err conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7015 echo "${ECHO_T}$ac_header_preproc" >&6; }
7017 # So? What about this header?
7018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7024 ac_header_preproc=yes
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 eval "$as_ac_Header=\$ac_header_preproc"
7049 ac_res=`eval echo '${'$as_ac_Header'}'`
7050 { echo "$as_me:$LINENO: result: $ac_res" >&5
7051 echo "${ECHO_T}$ac_res" >&6; }
7054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7055 cat >>confdefs.h <<_ACEOF
7056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7063 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7064 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7066 cat >conftest.$ac_ext <<_ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 $EGREP "Found it" >/dev/null 2>&1; then
7088 if test -z "$result"; then
7089 if test "$cross_compiling" = yes; then
7090 # Depending upon the size, compute the lo and hi bounds.
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7101 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7127 cat >conftest.$ac_ext <<_ACEOF
7130 cat confdefs.h >>conftest.$ac_ext
7131 cat >>conftest.$ac_ext <<_ACEOF
7132 /* end confdefs.h. */
7137 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_compile") 2>conftest.er1
7153 grep -v '^ *+' conftest.er1 >conftest.err
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
7161 ac_hi=$ac_mid; break
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_lo=`expr $ac_mid + 1`
7167 if test $ac_lo -le $ac_mid; then
7171 ac_mid=`expr 2 '*' $ac_mid + 1`
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7190 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7197 rm -f conftest.$ac_objext
7198 if { (ac_try="$ac_compile"
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7206 grep -v '^ *+' conftest.er1 >conftest.err
7208 cat conftest.err >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7226 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7242 grep -v '^ *+' conftest.er1 >conftest.err
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.$ac_objext; then
7250 ac_lo=$ac_mid; break
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_hi=`expr '(' $ac_mid ')' - 1`
7256 if test $ac_mid -le $ac_hi; then
7260 ac_mid=`expr 2 '*' $ac_mid`
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 # Binary search between lo and hi bounds.
7277 while test "x$ac_lo" != "x$ac_hi"; do
7278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7279 cat >conftest.$ac_ext <<_ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7289 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
7305 grep -v '^ *+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
7315 echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7318 ac_lo=`expr '(' $ac_mid ')' + 1`
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7335 static long int longval () { return ~(size_t)0 / 10; }
7336 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7343 FILE *f = fopen ("conftest.val", "w");
7346 if ((~(size_t)0 / 10) < 0)
7348 long int i = longval ();
7349 if (i != (~(size_t)0 / 10))
7351 fprintf (f, "%ld\n", i);
7355 unsigned long int i = ulongval ();
7356 if (i != (~(size_t)0 / 10))
7358 fprintf (f, "%lu\n", i);
7360 return ferror (f) || fclose (f) != 0;
7366 rm -f conftest$ac_exeext
7367 if { (ac_try="$ac_link"
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_link") 2>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7377 { (case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382 (eval "$ac_try") 2>&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 res_hi=`cat conftest.val`
7388 echo "$as_me: program exited with status $ac_status" >&5
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7399 if test "$cross_compiling" = yes; then
7400 # Depending upon the size, compute the lo and hi bounds.
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7411 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7447 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7454 rm -f conftest.$ac_objext
7455 if { (ac_try="$ac_compile"
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 ac_hi=$ac_mid; break
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ac_lo=`expr $ac_mid + 1`
7477 if test $ac_lo -le $ac_mid; then
7481 ac_mid=`expr 2 '*' $ac_mid + 1`
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7500 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7507 rm -f conftest.$ac_objext
7508 if { (ac_try="$ac_compile"
7510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7511 *) ac_try_echo=$ac_try;;
7513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7514 (eval "$ac_compile") 2>conftest.er1
7516 grep -v '^ *+' conftest.er1 >conftest.err
7518 cat conftest.err >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && {
7521 test -z "$ac_c_werror_flag" ||
7522 test ! -s conftest.err
7523 } && test -s conftest.$ac_objext; then
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7536 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
7560 ac_lo=$ac_mid; break
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_hi=`expr '(' $ac_mid ')' - 1`
7566 if test $ac_mid -le $ac_hi; then
7570 ac_mid=`expr 2 '*' $ac_mid`
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 # Binary search between lo and hi bounds.
7587 while test "x$ac_lo" != "x$ac_hi"; do
7588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7599 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7606 rm -f conftest.$ac_objext
7607 if { (ac_try="$ac_compile"
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_compile") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1 >conftest.err
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && {
7620 test -z "$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 } && test -s conftest.$ac_objext; then
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_lo=`expr '(' $ac_mid ')' + 1`
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7645 static long int longval () { return ~(size_t)0 % 10; }
7646 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7653 FILE *f = fopen ("conftest.val", "w");
7656 if ((~(size_t)0 % 10) < 0)
7658 long int i = longval ();
7659 if (i != (~(size_t)0 % 10))
7661 fprintf (f, "%ld\n", i);
7665 unsigned long int i = ulongval ();
7666 if (i != (~(size_t)0 % 10))
7668 fprintf (f, "%lu\n", i);
7670 return ferror (f) || fclose (f) != 0;
7676 rm -f conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 res_lo=`cat conftest.val`
7698 echo "$as_me: program exited with status $ac_status" >&5
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7709 if test "$cross_compiling" = yes; then
7710 # Depending upon the size, compute the lo and hi bounds.
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7721 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7747 cat >conftest.$ac_ext <<_ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7757 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7773 grep -v '^ *+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.$ac_objext; then
7781 ac_hi=$ac_mid; break
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 ac_lo=`expr $ac_mid + 1`
7787 if test $ac_lo -le $ac_mid; then
7791 ac_mid=`expr 2 '*' $ac_mid + 1`
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 cat >conftest.$ac_ext <<_ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7810 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7817 rm -f conftest.$ac_objext
7818 if { (ac_try="$ac_compile"
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7826 grep -v '^ *+' conftest.er1 >conftest.err
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_c_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7846 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest.$ac_objext; then
7870 ac_lo=$ac_mid; break
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 ac_hi=`expr '(' $ac_mid ')' - 1`
7876 if test $ac_mid -le $ac_hi; then
7880 ac_mid=`expr 2 '*' $ac_mid`
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 # Binary search between lo and hi bounds.
7897 while test "x$ac_lo" != "x$ac_hi"; do
7898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7909 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_lo=`expr '(' $ac_mid ')' + 1`
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 ?*) fits_in_uint=$ac_lo;;
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7955 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7956 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7963 FILE *f = fopen ("conftest.val", "w");
7966 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7968 long int i = longval ();
7969 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7971 fprintf (f, "%ld\n", i);
7975 unsigned long int i = ulongval ();
7976 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7978 fprintf (f, "%lu\n", i);
7980 return ferror (f) || fclose (f) != 0;
7986 rm -f conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7997 { (case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_try") 2>&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
8006 fits_in_uint=`cat conftest.val`
8008 echo "$as_me: program exited with status $ac_status" >&5
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8019 if test "$fits_in_uint" = 1; then
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8028 extern unsigned long foo;
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compile") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest.$ac_objext; then
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 if test -z "$result"; then
8066 if test "$fits_in_uint" = 1; then
8067 result="$res_hi$res_lo"U
8069 result="$res_hi$res_lo"UL
8075 { echo "$as_me:$LINENO: result: $result" >&5
8076 echo "${ECHO_T}$result" >&6; }
8077 if test "$result" != yes; then
8079 cat >>confdefs.h <<_ACEOF
8080 #define SIZE_MAX $result
8088 for ac_header in stdint.h
8090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 ac_res=`eval echo '${'$as_ac_Header'}'`
8098 { echo "$as_me:$LINENO: result: $ac_res" >&5
8099 echo "${ECHO_T}$ac_res" >&6; }
8101 # Is the header compilable?
8102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8110 $ac_includes_default
8111 #include <$ac_header>
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_header_compiler=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 ac_header_compiler=no
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140 echo "${ECHO_T}$ac_header_compiler" >&6; }
8142 # Is the header present?
8143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <$ac_header>
8153 if { (ac_try="$ac_cpp conftest.$ac_ext"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null && {
8166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8169 ac_header_preproc=yes
8171 echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_header_preproc=no
8177 rm -f conftest.err conftest.$ac_ext
8178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8179 echo "${ECHO_T}$ac_header_preproc" >&6; }
8181 # So? What about this header?
8182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8188 ac_header_preproc=yes
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 eval "$as_ac_Header=\$ac_header_preproc"
8213 ac_res=`eval echo '${'$as_ac_Header'}'`
8214 { echo "$as_me:$LINENO: result: $ac_res" >&5
8215 echo "${ECHO_T}$ac_res" >&6; }
8218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8219 cat >>confdefs.h <<_ACEOF
8220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8229 if test "X$prefix" = "XNONE"; then
8230 acl_final_prefix="$ac_default_prefix"
8232 acl_final_prefix="$prefix"
8234 if test "X$exec_prefix" = "XNONE"; then
8235 acl_final_exec_prefix='${prefix}'
8237 acl_final_exec_prefix="$exec_prefix"
8239 acl_save_prefix="$prefix"
8240 prefix="$acl_final_prefix"
8241 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8242 prefix="$acl_save_prefix"
8245 # Check whether --with-gnu-ld was given.
8246 if test "${with_gnu_ld+set}" = set; then
8247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8252 # Prepare PATH_SEPARATOR.
8253 # The user is always right.
8254 if test "${PATH_SEPARATOR+set}" != set; then
8255 echo "#! /bin/sh" >conf$$.sh
8256 echo "exit 0" >>conf$$.sh
8258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8266 if test "$GCC" = yes; then
8267 # Check if gcc -print-prog-name=ld gives a path.
8268 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8269 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8272 # gcc leaves a trailing carriage return which upsets mingw
8273 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8275 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8278 # Accept absolute paths.
8279 [\\/]* | [A-Za-z]:[\\/]*)
8280 re_direlt='/[^/][^/]*/\.\./'
8281 # Canonicalize the path of ld
8282 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8283 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8284 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8286 test -z "$LD" && LD="$ac_prog"
8289 # If it fails, then pretend we aren't using GCC.
8293 # If it is relative, then search for the first ld in PATH.
8297 elif test "$with_gnu_ld" = yes; then
8298 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8301 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8304 if test "${acl_cv_path_LD+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8307 if test -z "$LD"; then
8308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8309 for ac_dir in $PATH; do
8310 test -z "$ac_dir" && ac_dir=.
8311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8312 acl_cv_path_LD="$ac_dir/$ac_prog"
8313 # Check to see if the program is GNU ld. I'd rather use --version,
8314 # but apparently some GNU ld's only accept -v.
8315 # Break only if it was the GNU/non-GNU ld that we prefer.
8316 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8317 *GNU* | *'with BFD'*)
8318 test "$with_gnu_ld" != no && break ;;
8320 test "$with_gnu_ld" != yes && break ;;
8326 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8330 LD="$acl_cv_path_LD"
8331 if test -n "$LD"; then
8332 { echo "$as_me:$LINENO: result: $LD" >&5
8333 echo "${ECHO_T}$LD" >&6; }
8335 { echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6; }
8338 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8339 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8340 { (exit 1); exit 1; }; }
8341 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8342 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8343 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8347 case `$LD -v 2>&1 </dev/null` in
8348 *GNU* | *'with BFD'*)
8349 acl_cv_prog_gnu_ld=yes ;;
8351 acl_cv_prog_gnu_ld=no ;;
8354 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8355 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8356 with_gnu_ld=$acl_cv_prog_gnu_ld
8360 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8361 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8362 if test "${acl_cv_rpath+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8367 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8373 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8374 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8376 libext="$acl_cv_libext"
8377 shlibext="$acl_cv_shlibext"
8378 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8379 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8380 hardcode_direct="$acl_cv_hardcode_direct"
8381 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8382 # Check whether --enable-rpath was given.
8383 if test "${enable_rpath+set}" = set; then
8384 enableval=$enable_rpath; :
8398 acl_save_prefix="$prefix"
8399 prefix="$acl_final_prefix"
8400 acl_save_exec_prefix="$exec_prefix"
8401 exec_prefix="$acl_final_exec_prefix"
8403 eval additional_includedir=\"$includedir\"
8404 eval additional_libdir=\"$libdir\"
8406 exec_prefix="$acl_save_exec_prefix"
8407 prefix="$acl_save_prefix"
8410 # Check whether --with-libiconv-prefix was given.
8411 if test "${with_libiconv_prefix+set}" = set; then
8412 withval=$with_libiconv_prefix;
8413 if test "X$withval" = "Xno"; then
8416 if test "X$withval" = "X"; then
8418 acl_save_prefix="$prefix"
8419 prefix="$acl_final_prefix"
8420 acl_save_exec_prefix="$exec_prefix"
8421 exec_prefix="$acl_final_exec_prefix"
8423 eval additional_includedir=\"$includedir\"
8424 eval additional_libdir=\"$libdir\"
8426 exec_prefix="$acl_save_exec_prefix"
8427 prefix="$acl_save_prefix"
8430 additional_includedir="$withval/include"
8431 additional_libdir="$withval/lib"
8442 names_already_handled=
8443 names_next_round='iconv '
8444 while test -n "$names_next_round"; do
8445 names_this_round="$names_next_round"
8447 for name in $names_this_round; do
8449 for n in $names_already_handled; do
8450 if test "$n" = "$name"; then
8455 if test -z "$already_handled"; then
8456 names_already_handled="$names_already_handled $name"
8457 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8458 eval value=\"\$HAVE_LIB$uppername\"
8459 if test -n "$value"; then
8460 if test "$value" = yes; then
8461 eval value=\"\$LIB$uppername\"
8462 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8463 eval value=\"\$LTLIB$uppername\"
8464 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8473 if test $use_additional = yes; then
8474 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8475 found_dir="$additional_libdir"
8476 found_so="$additional_libdir/lib$name.$shlibext"
8477 if test -f "$additional_libdir/lib$name.la"; then
8478 found_la="$additional_libdir/lib$name.la"
8481 if test -f "$additional_libdir/lib$name.$libext"; then
8482 found_dir="$additional_libdir"
8483 found_a="$additional_libdir/lib$name.$libext"
8484 if test -f "$additional_libdir/lib$name.la"; then
8485 found_la="$additional_libdir/lib$name.la"
8490 if test "X$found_dir" = "X"; then
8491 for x in $LDFLAGS $LTLIBICONV; do
8493 acl_save_prefix="$prefix"
8494 prefix="$acl_final_prefix"
8495 acl_save_exec_prefix="$exec_prefix"
8496 exec_prefix="$acl_final_exec_prefix"
8498 exec_prefix="$acl_save_exec_prefix"
8499 prefix="$acl_save_prefix"
8503 dir=`echo "X$x" | sed -e 's/^X-L//'`
8504 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8506 found_so="$dir/lib$name.$shlibext"
8507 if test -f "$dir/lib$name.la"; then
8508 found_la="$dir/lib$name.la"
8511 if test -f "$dir/lib$name.$libext"; then
8513 found_a="$dir/lib$name.$libext"
8514 if test -f "$dir/lib$name.la"; then
8515 found_la="$dir/lib$name.la"
8521 if test "X$found_dir" != "X"; then
8526 if test "X$found_dir" != "X"; then
8527 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8528 if test "X$found_so" != "X"; then
8529 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8530 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8533 for x in $ltrpathdirs; do
8534 if test "X$x" = "X$found_dir"; then
8539 if test -z "$haveit"; then
8540 ltrpathdirs="$ltrpathdirs $found_dir"
8542 if test "$hardcode_direct" = yes; then
8543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8545 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8548 for x in $rpathdirs; do
8549 if test "X$x" = "X$found_dir"; then
8554 if test -z "$haveit"; then
8555 rpathdirs="$rpathdirs $found_dir"
8559 for x in $LDFLAGS $LIBICONV; do
8561 acl_save_prefix="$prefix"
8562 prefix="$acl_final_prefix"
8563 acl_save_exec_prefix="$exec_prefix"
8564 exec_prefix="$acl_final_exec_prefix"
8566 exec_prefix="$acl_save_exec_prefix"
8567 prefix="$acl_save_prefix"
8569 if test "X$x" = "X-L$found_dir"; then
8574 if test -z "$haveit"; then
8575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8577 if test "$hardcode_minus_L" != no; then
8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8580 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8586 if test "X$found_a" != "X"; then
8587 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8589 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8592 additional_includedir=
8593 case "$found_dir" in
8595 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8596 additional_includedir="$basedir/include"
8599 if test "X$additional_includedir" != "X"; then
8600 if test "X$additional_includedir" != "X/usr/include"; then
8602 if test "X$additional_includedir" = "X/usr/local/include"; then
8603 if test -n "$GCC"; then
8605 linux*) haveit=yes;;
8609 if test -z "$haveit"; then
8610 for x in $CPPFLAGS $INCICONV; do
8612 acl_save_prefix="$prefix"
8613 prefix="$acl_final_prefix"
8614 acl_save_exec_prefix="$exec_prefix"
8615 exec_prefix="$acl_final_exec_prefix"
8617 exec_prefix="$acl_save_exec_prefix"
8618 prefix="$acl_save_prefix"
8620 if test "X$x" = "X-I$additional_includedir"; then
8625 if test -z "$haveit"; then
8626 if test -d "$additional_includedir"; then
8627 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8633 if test -n "$found_la"; then
8634 save_libdir="$libdir"
8636 */* | *\\*) . "$found_la" ;;
8637 *) . "./$found_la" ;;
8639 libdir="$save_libdir"
8640 for dep in $dependency_libs; do
8643 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8644 if test "X$additional_libdir" != "X/usr/lib"; then
8646 if test "X$additional_libdir" = "X/usr/local/lib"; then
8647 if test -n "$GCC"; then
8649 linux*) haveit=yes;;
8653 if test -z "$haveit"; then
8655 for x in $LDFLAGS $LIBICONV; do
8657 acl_save_prefix="$prefix"
8658 prefix="$acl_final_prefix"
8659 acl_save_exec_prefix="$exec_prefix"
8660 exec_prefix="$acl_final_exec_prefix"
8662 exec_prefix="$acl_save_exec_prefix"
8663 prefix="$acl_save_prefix"
8665 if test "X$x" = "X-L$additional_libdir"; then
8670 if test -z "$haveit"; then
8671 if test -d "$additional_libdir"; then
8672 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8676 for x in $LDFLAGS $LTLIBICONV; do
8678 acl_save_prefix="$prefix"
8679 prefix="$acl_final_prefix"
8680 acl_save_exec_prefix="$exec_prefix"
8681 exec_prefix="$acl_final_exec_prefix"
8683 exec_prefix="$acl_save_exec_prefix"
8684 prefix="$acl_save_prefix"
8686 if test "X$x" = "X-L$additional_libdir"; then
8691 if test -z "$haveit"; then
8692 if test -d "$additional_libdir"; then
8693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8700 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8701 if test "$enable_rpath" != no; then
8703 for x in $rpathdirs; do
8704 if test "X$x" = "X$dir"; then
8709 if test -z "$haveit"; then
8710 rpathdirs="$rpathdirs $dir"
8713 for x in $ltrpathdirs; do
8714 if test "X$x" = "X$dir"; then
8719 if test -z "$haveit"; then
8720 ltrpathdirs="$ltrpathdirs $dir"
8725 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8728 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8731 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8732 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8738 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8739 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8745 if test "X$rpathdirs" != "X"; then
8746 if test -n "$hardcode_libdir_separator"; then
8748 for found_dir in $rpathdirs; do
8749 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8751 acl_save_libdir="$libdir"
8753 eval flag=\"$hardcode_libdir_flag_spec\"
8754 libdir="$acl_save_libdir"
8755 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8757 for found_dir in $rpathdirs; do
8758 acl_save_libdir="$libdir"
8760 eval flag=\"$hardcode_libdir_flag_spec\"
8761 libdir="$acl_save_libdir"
8762 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8766 if test "X$ltrpathdirs" != "X"; then
8767 for found_dir in $ltrpathdirs; do
8768 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8779 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8780 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8781 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 $ac_includes_default
8791 typedef ptrdiff_t ac__type_new_;
8795 if ((ac__type_new_ *) 0)
8797 if (sizeof (ac__type_new_))
8803 rm -f conftest.$ac_objext
8804 if { (ac_try="$ac_compile"
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_compile") 2>conftest.er1
8812 grep -v '^ *+' conftest.er1 >conftest.err
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } && {
8817 test -z "$ac_c_werror_flag" ||
8818 test ! -s conftest.err
8819 } && test -s conftest.$ac_objext; then
8820 ac_cv_type_ptrdiff_t=yes
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8825 ac_cv_type_ptrdiff_t=no
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8831 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8832 if test $ac_cv_type_ptrdiff_t = yes; then
8836 cat >>confdefs.h <<\_ACEOF
8837 #define ptrdiff_t long
8853 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8854 stdlib.h string.h unistd.h sys/param.h
8856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 ac_res=`eval echo '${'$as_ac_Header'}'`
8864 { echo "$as_me:$LINENO: result: $ac_res" >&5
8865 echo "${ECHO_T}$ac_res" >&6; }
8867 # Is the header compilable?
8868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8870 cat >conftest.$ac_ext <<_ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h. */
8876 $ac_includes_default
8877 #include <$ac_header>
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
8896 ac_header_compiler=yes
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.$ac_ext >&5
8901 ac_header_compiler=no
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8906 echo "${ECHO_T}$ac_header_compiler" >&6; }
8908 # Is the header present?
8909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 #include <$ac_header>
8919 if { (ac_try="$ac_cpp conftest.$ac_ext"
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } >/dev/null && {
8932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8935 ac_header_preproc=yes
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 ac_header_preproc=no
8943 rm -f conftest.err conftest.$ac_ext
8944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8945 echo "${ECHO_T}$ac_header_preproc" >&6; }
8947 # So? What about this header?
8948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8954 ac_header_preproc=yes
8957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 eval "$as_ac_Header=\$ac_header_preproc"
8979 ac_res=`eval echo '${'$as_ac_Header'}'`
8980 { echo "$as_me:$LINENO: result: $ac_res" >&5
8981 echo "${ECHO_T}$ac_res" >&6; }
8984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8985 cat >>confdefs.h <<_ACEOF
8986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9017 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9018 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9035 #define $ac_func innocuous_$ac_func
9037 /* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char $ac_func (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9043 # include <limits.h>
9045 # include <assert.h>
9050 /* Override any GCC internal prototype to avoid an error.
9051 Use char because int might match the return type of a GCC
9052 builtin and then its argument prototype would still apply. */
9057 /* The GNU C library defines this for functions which it implements
9058 to always fail with ENOSYS. Some functions are actually named
9059 something starting with __ and the normal name is an alias. */
9060 #if defined __stub_$ac_func || defined __stub___$ac_func
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (ac_try="$ac_link"
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_link") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1 >conftest.err
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest$ac_exeext &&
9089 $as_test_x conftest$ac_exeext; then
9090 eval "$as_ac_var=yes"
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9095 eval "$as_ac_var=no"
9098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9099 conftest$ac_exeext conftest.$ac_ext
9101 ac_res=`eval echo '${'$as_ac_var'}'`
9102 { echo "$as_me:$LINENO: result: $ac_res" >&5
9103 echo "${ECHO_T}$ac_res" >&6; }
9104 if test `eval echo '${'$as_ac_var'}'` = yes; then
9105 cat >>confdefs.h <<_ACEOF
9106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9114 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9115 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9116 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 cat >conftest.$ac_ext <<_ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9131 char *p = (char *) _snprintf;
9138 rm -f conftest.$ac_objext
9139 if { (ac_try="$ac_compile"
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_compile") 2>conftest.er1
9147 grep -v '^ *+' conftest.er1 >conftest.err
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } && {
9152 test -z "$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 } && test -s conftest.$ac_objext; then
9155 ac_cv_have_decl__snprintf=yes
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_cv_have_decl__snprintf=no
9163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9166 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9167 if test $ac_cv_have_decl__snprintf = yes; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define HAVE_DECL__SNPRINTF $gt_value
9179 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9180 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9181 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 cat >conftest.$ac_ext <<_ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9196 char *p = (char *) _snwprintf;
9203 rm -f conftest.$ac_objext
9204 if { (ac_try="$ac_compile"
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_compile") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } && {
9217 test -z "$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 } && test -s conftest.$ac_objext; then
9220 ac_cv_have_decl__snwprintf=yes
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_have_decl__snwprintf=no
9228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9231 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9232 if test $ac_cv_have_decl__snwprintf = yes; then
9238 cat >>confdefs.h <<_ACEOF
9239 #define HAVE_DECL__SNWPRINTF $gt_value
9245 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9246 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9247 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9261 #ifndef feof_unlocked
9262 char *p = (char *) feof_unlocked;
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9286 ac_cv_have_decl_feof_unlocked=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_cv_have_decl_feof_unlocked=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9297 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9298 if test $ac_cv_have_decl_feof_unlocked = yes; then
9304 cat >>confdefs.h <<_ACEOF
9305 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9310 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9311 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9312 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9326 #ifndef fgets_unlocked
9327 char *p = (char *) fgets_unlocked;
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9351 ac_cv_have_decl_fgets_unlocked=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_cv_have_decl_fgets_unlocked=no
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9362 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9363 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9369 cat >>confdefs.h <<_ACEOF
9370 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9375 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9376 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9377 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9391 #ifndef getc_unlocked
9392 char *p = (char *) getc_unlocked;
9399 rm -f conftest.$ac_objext
9400 if { (ac_try="$ac_compile"
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_compile") 2>conftest.er1
9408 grep -v '^ *+' conftest.er1 >conftest.err
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest.$ac_objext; then
9416 ac_cv_have_decl_getc_unlocked=yes
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ac_cv_have_decl_getc_unlocked=no
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9427 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9428 if test $ac_cv_have_decl_getc_unlocked = yes; then
9434 cat >>confdefs.h <<_ACEOF
9435 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9440 case $gt_cv_func_printf_posix in
9441 *yes) HAVE_POSIX_PRINTF=1 ;;
9442 *) HAVE_POSIX_PRINTF=0 ;;
9445 if test "$ac_cv_func_asprintf" = yes; then
9451 if test "$ac_cv_func_snprintf" = yes; then
9457 if test "$ac_cv_func_wprintf" = yes; then
9469 am_save_CPPFLAGS="$CPPFLAGS"
9471 for element in $INCICONV; do
9473 for x in $CPPFLAGS; do
9475 acl_save_prefix="$prefix"
9476 prefix="$acl_final_prefix"
9477 acl_save_exec_prefix="$exec_prefix"
9478 exec_prefix="$acl_final_exec_prefix"
9480 exec_prefix="$acl_save_exec_prefix"
9481 prefix="$acl_save_prefix"
9483 if test "X$x" = "X$element"; then
9488 if test -z "$haveit"; then
9489 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9494 { echo "$as_me:$LINENO: checking for iconv" >&5
9495 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9496 if test "${am_cv_func_iconv+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 am_cv_func_iconv="no, consider installing GNU libiconv"
9502 cat >conftest.$ac_ext <<_ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9513 iconv_t cd = iconv_open("","");
9514 iconv(cd,NULL,NULL,NULL,NULL);
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (ac_try="$ac_link"
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_link") 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && {
9534 test -z "$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 } && test -s conftest$ac_exeext &&
9537 $as_test_x conftest$ac_exeext; then
9538 am_cv_func_iconv=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9547 conftest$ac_exeext conftest.$ac_ext
9548 if test "$am_cv_func_iconv" != yes; then
9549 am_save_LIBS="$LIBS"
9550 LIBS="$LIBS $LIBICONV"
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9562 iconv_t cd = iconv_open("","");
9563 iconv(cd,NULL,NULL,NULL,NULL);
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
9578 grep -v '^ *+' conftest.er1 >conftest.err
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest$ac_exeext &&
9586 $as_test_x conftest$ac_exeext; then
9588 am_cv_func_iconv=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597 conftest$ac_exeext conftest.$ac_ext
9598 LIBS="$am_save_LIBS"
9602 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9603 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9604 if test "$am_cv_func_iconv" = yes; then
9606 cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_ICONV 1
9611 if test "$am_cv_lib_iconv" = yes; then
9612 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9613 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9614 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9615 echo "${ECHO_T}$LIBICONV" >&6; }
9617 CPPFLAGS="$am_save_CPPFLAGS"
9624 if test "$am_cv_func_iconv" = yes; then
9625 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9626 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9627 if test "${am_cv_proto_iconv+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 cat >conftest.$ac_ext <<_ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9644 #if defined(__STDC__) || defined(__cplusplus)
9645 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9658 rm -f conftest.$ac_objext
9659 if { (ac_try="$ac_compile"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_compile") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.$ac_objext; then
9675 am_cv_proto_iconv_arg1=""
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 am_cv_proto_iconv_arg1="const"
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9684 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);"
9687 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9688 { echo "$as_me:$LINENO: result: ${ac_t:-
9689 }$am_cv_proto_iconv" >&5
9690 echo "${ECHO_T}${ac_t:-
9691 }$am_cv_proto_iconv" >&6; }
9693 cat >>confdefs.h <<_ACEOF
9694 #define ICONV_CONST $am_cv_proto_iconv_arg1
9700 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9701 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9702 if test "${am_cv_langinfo_codeset+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 #include <langinfo.h>
9715 char* cs = nl_langinfo(CODESET);
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest$ac_exeext &&
9737 $as_test_x conftest$ac_exeext; then
9738 am_cv_langinfo_codeset=yes
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 am_cv_langinfo_codeset=no
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747 conftest$ac_exeext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9751 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9752 if test $am_cv_langinfo_codeset = yes; then
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_LANGINFO_CODESET 1
9760 if test $ac_cv_header_locale_h = yes; then
9762 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9763 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9764 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (ac_try="$ac_link"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext &&
9799 $as_test_x conftest$ac_exeext; then
9800 am_cv_val_LC_MESSAGES=yes
9802 echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9805 am_cv_val_LC_MESSAGES=no
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809 conftest$ac_exeext conftest.$ac_ext
9811 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9812 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9813 if test $am_cv_val_LC_MESSAGES = yes; then
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_LC_MESSAGES 1
9823 for ac_prog in bison
9825 # Extract the first word of "$ac_prog", so it can be a program name with args.
9826 set dummy $ac_prog; ac_word=$2
9827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9829 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 if test -n "$INTLBISON"; then
9833 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9842 ac_cv_prog_INTLBISON="$ac_prog"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 INTLBISON=$ac_cv_prog_INTLBISON
9853 if test -n "$INTLBISON"; then
9854 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9855 echo "${ECHO_T}$INTLBISON" >&6; }
9857 { echo "$as_me:$LINENO: result: no" >&5
9858 echo "${ECHO_T}no" >&6; }
9862 test -n "$INTLBISON" && break
9865 if test -z "$INTLBISON"; then
9868 { echo "$as_me:$LINENO: checking version of bison" >&5
9869 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9870 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9871 case $ac_prog_version in
9872 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9873 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9874 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9875 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9877 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9878 echo "${ECHO_T}$ac_prog_version" >&6; }
9880 if test $ac_verc_fail = yes; then
9899 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9900 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9901 # Check whether --enable-nls was given.
9902 if test "${enable_nls+set}" = set; then
9903 enableval=$enable_nls; USE_NLS=$enableval
9908 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9909 echo "${ECHO_T}$USE_NLS" >&6; }
9914 BUILD_INCLUDED_LIBINTL=no
9915 USE_INCLUDED_LIBINTL=no
9921 if test "$USE_NLS" = "yes"; then
9922 gt_use_preinstalled_gnugettext=no
9924 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9925 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9927 # Check whether --with-included-gettext was given.
9928 if test "${with_included_gettext+set}" = set; then
9929 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9931 nls_cv_force_use_gnu_gettext=no
9934 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9935 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9937 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9938 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9945 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9946 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9947 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 #include <libintl.h>
9957 extern int _nl_msg_cat_cntr;
9958 extern int *_nl_domain_bindings;
9962 bindtextdomain ("", "");
9963 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest$ac_exeext &&
9985 $as_test_x conftest$ac_exeext; then
9986 gt_cv_func_gnugettext1_libc=yes
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 gt_cv_func_gnugettext1_libc=no
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995 conftest$ac_exeext conftest.$ac_ext
9997 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9998 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10000 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10006 acl_save_prefix="$prefix"
10007 prefix="$acl_final_prefix"
10008 acl_save_exec_prefix="$exec_prefix"
10009 exec_prefix="$acl_final_exec_prefix"
10011 eval additional_includedir=\"$includedir\"
10012 eval additional_libdir=\"$libdir\"
10014 exec_prefix="$acl_save_exec_prefix"
10015 prefix="$acl_save_prefix"
10018 # Check whether --with-libintl-prefix was given.
10019 if test "${with_libintl_prefix+set}" = set; then
10020 withval=$with_libintl_prefix;
10021 if test "X$withval" = "Xno"; then
10024 if test "X$withval" = "X"; then
10026 acl_save_prefix="$prefix"
10027 prefix="$acl_final_prefix"
10028 acl_save_exec_prefix="$exec_prefix"
10029 exec_prefix="$acl_final_exec_prefix"
10031 eval additional_includedir=\"$includedir\"
10032 eval additional_libdir=\"$libdir\"
10034 exec_prefix="$acl_save_exec_prefix"
10035 prefix="$acl_save_prefix"
10038 additional_includedir="$withval/include"
10039 additional_libdir="$withval/lib"
10050 names_already_handled=
10051 names_next_round='intl '
10052 while test -n "$names_next_round"; do
10053 names_this_round="$names_next_round"
10055 for name in $names_this_round; do
10057 for n in $names_already_handled; do
10058 if test "$n" = "$name"; then
10059 already_handled=yes
10063 if test -z "$already_handled"; then
10064 names_already_handled="$names_already_handled $name"
10065 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10066 eval value=\"\$HAVE_LIB$uppername\"
10067 if test -n "$value"; then
10068 if test "$value" = yes; then
10069 eval value=\"\$LIB$uppername\"
10070 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10071 eval value=\"\$LTLIB$uppername\"
10072 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10081 if test $use_additional = yes; then
10082 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10083 found_dir="$additional_libdir"
10084 found_so="$additional_libdir/lib$name.$shlibext"
10085 if test -f "$additional_libdir/lib$name.la"; then
10086 found_la="$additional_libdir/lib$name.la"
10089 if test -f "$additional_libdir/lib$name.$libext"; then
10090 found_dir="$additional_libdir"
10091 found_a="$additional_libdir/lib$name.$libext"
10092 if test -f "$additional_libdir/lib$name.la"; then
10093 found_la="$additional_libdir/lib$name.la"
10098 if test "X$found_dir" = "X"; then
10099 for x in $LDFLAGS $LTLIBINTL; do
10101 acl_save_prefix="$prefix"
10102 prefix="$acl_final_prefix"
10103 acl_save_exec_prefix="$exec_prefix"
10104 exec_prefix="$acl_final_exec_prefix"
10106 exec_prefix="$acl_save_exec_prefix"
10107 prefix="$acl_save_prefix"
10111 dir=`echo "X$x" | sed -e 's/^X-L//'`
10112 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10114 found_so="$dir/lib$name.$shlibext"
10115 if test -f "$dir/lib$name.la"; then
10116 found_la="$dir/lib$name.la"
10119 if test -f "$dir/lib$name.$libext"; then
10121 found_a="$dir/lib$name.$libext"
10122 if test -f "$dir/lib$name.la"; then
10123 found_la="$dir/lib$name.la"
10129 if test "X$found_dir" != "X"; then
10134 if test "X$found_dir" != "X"; then
10135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10136 if test "X$found_so" != "X"; then
10137 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10141 for x in $ltrpathdirs; do
10142 if test "X$x" = "X$found_dir"; then
10147 if test -z "$haveit"; then
10148 ltrpathdirs="$ltrpathdirs $found_dir"
10150 if test "$hardcode_direct" = yes; then
10151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10153 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10154 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10156 for x in $rpathdirs; do
10157 if test "X$x" = "X$found_dir"; then
10162 if test -z "$haveit"; then
10163 rpathdirs="$rpathdirs $found_dir"
10167 for x in $LDFLAGS $LIBINTL; do
10169 acl_save_prefix="$prefix"
10170 prefix="$acl_final_prefix"
10171 acl_save_exec_prefix="$exec_prefix"
10172 exec_prefix="$acl_final_exec_prefix"
10174 exec_prefix="$acl_save_exec_prefix"
10175 prefix="$acl_save_prefix"
10177 if test "X$x" = "X-L$found_dir"; then
10182 if test -z "$haveit"; then
10183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10185 if test "$hardcode_minus_L" != no; then
10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10188 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10194 if test "X$found_a" != "X"; then
10195 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10197 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10200 additional_includedir=
10201 case "$found_dir" in
10203 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10204 additional_includedir="$basedir/include"
10207 if test "X$additional_includedir" != "X"; then
10208 if test "X$additional_includedir" != "X/usr/include"; then
10210 if test "X$additional_includedir" = "X/usr/local/include"; then
10211 if test -n "$GCC"; then
10213 linux*) haveit=yes;;
10217 if test -z "$haveit"; then
10218 for x in $CPPFLAGS $INCINTL; do
10220 acl_save_prefix="$prefix"
10221 prefix="$acl_final_prefix"
10222 acl_save_exec_prefix="$exec_prefix"
10223 exec_prefix="$acl_final_exec_prefix"
10225 exec_prefix="$acl_save_exec_prefix"
10226 prefix="$acl_save_prefix"
10228 if test "X$x" = "X-I$additional_includedir"; then
10233 if test -z "$haveit"; then
10234 if test -d "$additional_includedir"; then
10235 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10241 if test -n "$found_la"; then
10242 save_libdir="$libdir"
10243 case "$found_la" in
10244 */* | *\\*) . "$found_la" ;;
10245 *) . "./$found_la" ;;
10247 libdir="$save_libdir"
10248 for dep in $dependency_libs; do
10251 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10252 if test "X$additional_libdir" != "X/usr/lib"; then
10254 if test "X$additional_libdir" = "X/usr/local/lib"; then
10255 if test -n "$GCC"; then
10257 linux*) haveit=yes;;
10261 if test -z "$haveit"; then
10263 for x in $LDFLAGS $LIBINTL; do
10265 acl_save_prefix="$prefix"
10266 prefix="$acl_final_prefix"
10267 acl_save_exec_prefix="$exec_prefix"
10268 exec_prefix="$acl_final_exec_prefix"
10270 exec_prefix="$acl_save_exec_prefix"
10271 prefix="$acl_save_prefix"
10273 if test "X$x" = "X-L$additional_libdir"; then
10278 if test -z "$haveit"; then
10279 if test -d "$additional_libdir"; then
10280 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10284 for x in $LDFLAGS $LTLIBINTL; do
10286 acl_save_prefix="$prefix"
10287 prefix="$acl_final_prefix"
10288 acl_save_exec_prefix="$exec_prefix"
10289 exec_prefix="$acl_final_exec_prefix"
10291 exec_prefix="$acl_save_exec_prefix"
10292 prefix="$acl_save_prefix"
10294 if test "X$x" = "X-L$additional_libdir"; then
10299 if test -z "$haveit"; then
10300 if test -d "$additional_libdir"; then
10301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10308 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10309 if test "$enable_rpath" != no; then
10311 for x in $rpathdirs; do
10312 if test "X$x" = "X$dir"; then
10317 if test -z "$haveit"; then
10318 rpathdirs="$rpathdirs $dir"
10321 for x in $ltrpathdirs; do
10322 if test "X$x" = "X$dir"; then
10327 if test -z "$haveit"; then
10328 ltrpathdirs="$ltrpathdirs $dir"
10333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10336 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10339 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10340 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10346 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10353 if test "X$rpathdirs" != "X"; then
10354 if test -n "$hardcode_libdir_separator"; then
10356 for found_dir in $rpathdirs; do
10357 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10359 acl_save_libdir="$libdir"
10361 eval flag=\"$hardcode_libdir_flag_spec\"
10362 libdir="$acl_save_libdir"
10363 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10365 for found_dir in $rpathdirs; do
10366 acl_save_libdir="$libdir"
10367 libdir="$found_dir"
10368 eval flag=\"$hardcode_libdir_flag_spec\"
10369 libdir="$acl_save_libdir"
10370 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10374 if test "X$ltrpathdirs" != "X"; then
10375 for found_dir in $ltrpathdirs; do
10376 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10380 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10381 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10382 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 gt_save_CPPFLAGS="$CPPFLAGS"
10386 CPPFLAGS="$CPPFLAGS $INCINTL"
10387 gt_save_LIBS="$LIBS"
10388 LIBS="$LIBS $LIBINTL"
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <libintl.h>
10396 extern int _nl_msg_cat_cntr;
10401 const char *_nl_expand_alias ();
10405 bindtextdomain ("", "");
10406 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest$ac_exeext &&
10428 $as_test_x conftest$ac_exeext; then
10429 gt_cv_func_gnugettext1_libintl=yes
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 gt_cv_func_gnugettext1_libintl=no
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10438 conftest$ac_exeext conftest.$ac_ext
10439 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10440 LIBS="$LIBS $LIBICONV"
10441 cat >conftest.$ac_ext <<_ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 #include <libintl.h>
10448 extern int _nl_msg_cat_cntr;
10453 const char *_nl_expand_alias ();
10457 bindtextdomain ("", "");
10458 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_link") 2>conftest.er1
10472 grep -v '^ *+' conftest.er1 >conftest.err
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext &&
10480 $as_test_x conftest$ac_exeext; then
10481 LIBINTL="$LIBINTL $LIBICONV"
10482 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10483 gt_cv_func_gnugettext1_libintl=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10495 CPPFLAGS="$gt_save_CPPFLAGS"
10496 LIBS="$gt_save_LIBS"
10498 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10499 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10502 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10503 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10504 && test "$PACKAGE" != gettext-runtime \
10505 && test "$PACKAGE" != gettext-tools; }; then
10506 gt_use_preinstalled_gnugettext=yes
10514 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10515 nls_cv_use_gnu_gettext=yes
10519 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10520 BUILD_INCLUDED_LIBINTL=yes
10521 USE_INCLUDED_LIBINTL=yes
10522 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10523 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10524 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10527 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10528 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10533 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10534 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10536 cat >>confdefs.h <<\_ACEOF
10537 #define ENABLE_NLS 1
10545 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10546 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10547 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10548 echo "${ECHO_T}$USE_NLS" >&6; }
10549 if test "$USE_NLS" = "yes"; then
10550 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10551 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10552 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10553 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10554 gt_source="external libintl"
10559 gt_source="included intl directory"
10561 { echo "$as_me:$LINENO: result: $gt_source" >&5
10562 echo "${ECHO_T}$gt_source" >&6; }
10565 if test "$USE_NLS" = "yes"; then
10567 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10568 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10569 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10570 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10571 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10572 echo "${ECHO_T}$LIBINTL" >&6; }
10574 for element in $INCINTL; do
10576 for x in $CPPFLAGS; do
10578 acl_save_prefix="$prefix"
10579 prefix="$acl_final_prefix"
10580 acl_save_exec_prefix="$exec_prefix"
10581 exec_prefix="$acl_final_exec_prefix"
10583 exec_prefix="$acl_save_exec_prefix"
10584 prefix="$acl_save_prefix"
10586 if test "X$x" = "X$element"; then
10591 if test -z "$haveit"; then
10592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10599 cat >>confdefs.h <<\_ACEOF
10600 #define HAVE_GETTEXT 1
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_DCGETTEXT 1
10614 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10615 BUILD_INCLUDED_LIBINTL=yes
10622 nls_cv_header_intl=
10623 nls_cv_header_libgt=
10634 if test "$USE_INCLUDED_LIBINTL" = yes; then
10635 INTLOBJS="\$(GETTOBJS)"
10639 INTL_LIBTOOL_SUFFIX_PREFIX=
10643 INTLLIBS="$LIBINTL"
10651 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10652 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10653 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 cat >conftest.make <<\_ACEOF
10660 @echo '@@@%%%=$(MAKE)=@@@%%%'
10662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10664 *@@@%%%=?*=@@@%%%*)
10665 eval ac_cv_prog_make_${ac_make}_set=yes;;
10667 eval ac_cv_prog_make_${ac_make}_set=no;;
10669 rm -f conftest.make
10671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10672 { echo "$as_me:$LINENO: result: yes" >&5
10673 echo "${ECHO_T}yes" >&6; }
10676 { echo "$as_me:$LINENO: result: no" >&5
10677 echo "${ECHO_T}no" >&6; }
10678 SET_MAKE="MAKE=${MAKE-make}"
10681 # Extract the first word of "ln", so it can be a program name with args.
10682 set dummy ln; ac_word=$2
10683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10685 if test "${ac_cv_path_LN+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10697 test -z "$as_dir" && as_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10700 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10708 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10713 if test -n "$LN"; then
10714 { echo "$as_me:$LINENO: result: $LN" >&5
10715 echo "${ECHO_T}$LN" >&6; }
10717 { echo "$as_me:$LINENO: result: no" >&5
10718 echo "${ECHO_T}no" >&6; }
10722 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10723 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10725 if test "$LN_S" = "ln -s"; then
10726 { echo "$as_me:$LINENO: result: yes" >&5
10727 echo "${ECHO_T}yes" >&6; }
10729 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10730 echo "${ECHO_T}no, using $LN_S" >&6; }
10733 # Extract the first word of "mv", so it can be a program name with args.
10734 set dummy mv; ac_word=$2
10735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10737 if test "${ac_cv_path_MV+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10752 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10765 if test -n "$MV"; then
10766 { echo "$as_me:$LINENO: result: $MV" >&5
10767 echo "${ECHO_T}$MV" >&6; }
10769 { echo "$as_me:$LINENO: result: no" >&5
10770 echo "${ECHO_T}no" >&6; }
10774 # Extract the first word of "cp", so it can be a program name with args.
10775 set dummy cp; ac_word=$2
10776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10778 if test "${ac_cv_path_CP+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787 for as_dir in $PATH
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10793 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10806 if test -n "$CP"; then
10807 { echo "$as_me:$LINENO: result: $CP" >&5
10808 echo "${ECHO_T}$CP" >&6; }
10810 { echo "$as_me:$LINENO: result: no" >&5
10811 echo "${ECHO_T}no" >&6; }
10815 # Extract the first word of "rm", so it can be a program name with args.
10816 set dummy rm; ac_word=$2
10817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10819 if test "${ac_cv_path_RM+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10847 if test -n "$RM"; then
10848 { echo "$as_me:$LINENO: result: $RM" >&5
10849 echo "${ECHO_T}$RM" >&6; }
10851 { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10856 # Extract the first word of "chmod", so it can be a program name with args.
10857 set dummy chmod; 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_CHMOD+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$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_CHMOD" && ac_cv_path_CHMOD=":"
10887 CHMOD=$ac_cv_path_CHMOD
10888 if test -n "$CHMOD"; then
10889 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10890 echo "${ECHO_T}$CHMOD" >&6; }
10892 { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10897 for ac_prog in gawk mawk nawk awk
10899 # Extract the first word of "$ac_prog", so it can be a program name with args.
10900 set dummy $ac_prog; ac_word=$2
10901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10903 if test "${ac_cv_prog_AWK+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 if test -n "$AWK"; then
10907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916 ac_cv_prog_AWK="$ac_prog"
10917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 AWK=$ac_cv_prog_AWK
10927 if test -n "$AWK"; then
10928 { echo "$as_me:$LINENO: result: $AWK" >&5
10929 echo "${ECHO_T}$AWK" >&6; }
10931 { echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6; }
10936 test -n "$AWK" && break
10939 { echo "$as_me:$LINENO: checking for egrep" >&5
10940 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10941 if test "${ac_cv_path_EGREP+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10945 then ac_cv_path_EGREP="$GREP -E"
10947 # Extract the first word of "egrep" to use in msg output
10948 if test -z "$EGREP"; then
10949 set dummy egrep; ac_prog_name=$2
10950 if test "${ac_cv_path_EGREP+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 ac_path_EGREP_found=false
10954 # Loop through the user's path and test for each of PROGNAME-LIST
10955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10959 test -z "$as_dir" && as_dir=.
10960 for ac_prog in egrep; do
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10963 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10964 # Check for GNU ac_path_EGREP and select it if it is found.
10965 # Check for GNU $ac_path_EGREP
10966 case `"$ac_path_EGREP" --version 2>&1` in
10968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10971 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10974 cat "conftest.in" "conftest.in" >"conftest.tmp"
10975 mv "conftest.tmp" "conftest.in"
10976 cp "conftest.in" "conftest.nl"
10977 echo 'EGREP' >> "conftest.nl"
10978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10980 ac_count=`expr $ac_count + 1`
10981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10982 # Best one so far, save it but keep looking for a better one
10983 ac_cv_path_EGREP="$ac_path_EGREP"
10984 ac_path_EGREP_max=$ac_count
10986 # 10*(2^10) chars as input seems more than enough
10987 test $ac_count -gt 10 && break
10989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10993 $ac_path_EGREP_found && break 3
11003 EGREP="$ac_cv_path_EGREP"
11004 if test -z "$EGREP"; then
11005 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11006 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11007 { (exit 1); exit 1; }; }
11011 ac_cv_path_EGREP=$EGREP
11017 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11018 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11019 EGREP="$ac_cv_path_EGREP"
11022 # Extract the first word of "sed", so it can be a program name with args.
11023 set dummy sed; ac_word=$2
11024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11026 if test "${ac_cv_path_SED+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035 for as_dir in $PATH
11038 test -z "$as_dir" && as_dir=.
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11041 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11053 SED=$ac_cv_path_SED
11054 if test -n "$SED"; then
11055 { echo "$as_me:$LINENO: result: $SED" >&5
11056 echo "${ECHO_T}$SED" >&6; }
11058 { echo "$as_me:$LINENO: result: no" >&5
11059 echo "${ECHO_T}no" >&6; }
11063 # Extract the first word of "perl", so it can be a program name with args.
11064 set dummy perl; ac_word=$2
11065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11067 if test "${ac_cv_path_PERL+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11094 PERL=$ac_cv_path_PERL
11095 if test -n "$PERL"; then
11096 { echo "$as_me:$LINENO: result: $PERL" >&5
11097 echo "${ECHO_T}$PERL" >&6; }
11099 { echo "$as_me:$LINENO: result: no" >&5
11100 echo "${ECHO_T}no" >&6; }
11104 # Extract the first word of "ldconfig", so it can be a program name with args.
11105 set dummy ldconfig; ac_word=$2
11106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11108 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11135 LDCONFIG=$ac_cv_path_LDCONFIG
11136 if test -n "$LDCONFIG"; then
11137 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11138 echo "${ECHO_T}$LDCONFIG" >&6; }
11140 { echo "$as_me:$LINENO: result: no" >&5
11141 echo "${ECHO_T}no" >&6; }
11145 if test -n "$ac_tool_prefix"; then
11146 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11147 set dummy ${ac_tool_prefix}ar; ac_word=$2
11148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11150 if test "${ac_cv_prog_AR+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 if test -n "$AR"; then
11154 ac_cv_prog_AR="$AR" # Let the user override the test.
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163 ac_cv_prog_AR="${ac_tool_prefix}ar"
11164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11174 if test -n "$AR"; then
11175 { echo "$as_me:$LINENO: result: $AR" >&5
11176 echo "${ECHO_T}$AR" >&6; }
11178 { echo "$as_me:$LINENO: result: no" >&5
11179 echo "${ECHO_T}no" >&6; }
11184 if test -z "$ac_cv_prog_AR"; then
11186 # Extract the first word of "ar", so it can be a program name with args.
11187 set dummy ar; ac_word=$2
11188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11190 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 if test -n "$ac_ct_AR"; then
11194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_prog_ac_ct_AR="ar"
11204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11214 if test -n "$ac_ct_AR"; then
11215 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11216 echo "${ECHO_T}$ac_ct_AR" >&6; }
11218 { echo "$as_me:$LINENO: result: no" >&5
11219 echo "${ECHO_T}no" >&6; }
11222 if test "x$ac_ct_AR" = x; then
11225 case $cross_compiling:$ac_tool_warned in
11227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11228 whose name does not start with the host triplet. If you think this
11229 configuration is useful to you, please write to autoconf@gnu.org." >&5
11230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11231 whose name does not start with the host triplet. If you think this
11232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11233 ac_tool_warned=yes ;;
11238 AR="$ac_cv_prog_AR"
11241 if test -n "$ac_tool_prefix"; then
11242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11246 if test "${ac_cv_prog_RANLIB+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 if test -n "$RANLIB"; then
11250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253 for as_dir in $PATH
11256 test -z "$as_dir" && as_dir=.
11257 for ac_exec_ext in '' $ac_executable_extensions; do
11258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 RANLIB=$ac_cv_prog_RANLIB
11270 if test -n "$RANLIB"; then
11271 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11272 echo "${ECHO_T}$RANLIB" >&6; }
11274 { echo "$as_me:$LINENO: result: no" >&5
11275 echo "${ECHO_T}no" >&6; }
11280 if test -z "$ac_cv_prog_RANLIB"; then
11281 ac_ct_RANLIB=$RANLIB
11282 # Extract the first word of "ranlib", so it can be a program name with args.
11283 set dummy ranlib; ac_word=$2
11284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11286 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 if test -n "$ac_ct_RANLIB"; then
11290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299 ac_cv_prog_ac_ct_RANLIB="ranlib"
11300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11310 if test -n "$ac_ct_RANLIB"; then
11311 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11312 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11314 { echo "$as_me:$LINENO: result: no" >&5
11315 echo "${ECHO_T}no" >&6; }
11318 if test "x$ac_ct_RANLIB" = x; then
11321 case $cross_compiling:$ac_tool_warned in
11323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11324 whose name does not start with the host triplet. If you think this
11325 configuration is useful to you, please write to autoconf@gnu.org." >&5
11326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11327 whose name does not start with the host triplet. If you think this
11328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11329 ac_tool_warned=yes ;;
11331 RANLIB=$ac_ct_RANLIB
11334 RANLIB="$ac_cv_prog_RANLIB"
11337 if test -n "$ac_tool_prefix"; then
11338 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11339 set dummy ${ac_tool_prefix}strip; ac_word=$2
11340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11342 if test "${ac_cv_prog_STRIP+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 if test -n "$STRIP"; then
11346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11352 test -z "$as_dir" && as_dir=.
11353 for ac_exec_ext in '' $ac_executable_extensions; do
11354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11355 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 STRIP=$ac_cv_prog_STRIP
11366 if test -n "$STRIP"; then
11367 { echo "$as_me:$LINENO: result: $STRIP" >&5
11368 echo "${ECHO_T}$STRIP" >&6; }
11370 { echo "$as_me:$LINENO: result: no" >&5
11371 echo "${ECHO_T}no" >&6; }
11376 if test -z "$ac_cv_prog_STRIP"; then
11378 # Extract the first word of "strip", so it can be a program name with args.
11379 set dummy strip; ac_word=$2
11380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11382 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 if test -n "$ac_ct_STRIP"; then
11386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389 for as_dir in $PATH
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 ac_cv_prog_ac_ct_STRIP="strip"
11396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11406 if test -n "$ac_ct_STRIP"; then
11407 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11408 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11410 { echo "$as_me:$LINENO: result: no" >&5
11411 echo "${ECHO_T}no" >&6; }
11414 if test "x$ac_ct_STRIP" = x; then
11417 case $cross_compiling:$ac_tool_warned in
11419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11420 whose name does not start with the host triplet. If you think this
11421 configuration is useful to you, please write to autoconf@gnu.org." >&5
11422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11423 whose name does not start with the host triplet. If you think this
11424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11425 ac_tool_warned=yes ;;
11430 STRIP="$ac_cv_prog_STRIP"
11433 # Extract the first word of "makeinfo", so it can be a program name with args.
11434 set dummy makeinfo; ac_word=$2
11435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11437 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 if test -n "$MAKEINFO"; then
11441 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_prog_MAKEINFO="makeinfo"
11451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 MAKEINFO=$ac_cv_prog_MAKEINFO
11461 if test -n "$MAKEINFO"; then
11462 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11463 echo "${ECHO_T}$MAKEINFO" >&6; }
11465 { echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6; }
11470 if test "_$MAKEINFO" = "_"; then
11471 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11473 case "$MAKEINFO" in
11475 { echo "$as_me:$LINENO: WARNING:
11476 *** Makeinfo is missing. Info documentation will not be built." >&5
11477 echo "$as_me: WARNING:
11478 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11485 # Find a good install program. We prefer a C program (faster),
11486 # so one script is as good as another. But avoid the broken or
11487 # incompatible versions:
11488 # SysV /etc/install, /usr/sbin/install
11489 # SunOS /usr/etc/install
11490 # IRIX /sbin/install
11492 # AmigaOS /C/install, which installs bootblocks on floppy discs
11493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11496 # OS/2's system install, which has a completely different semantic
11497 # ./install, which can be erroneously created by make from ./install.sh.
11498 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11500 if test -z "$INSTALL"; then
11501 if test "${ac_cv_path_install+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11508 test -z "$as_dir" && as_dir=.
11509 # Account for people who put trailing slashes in PATH elements.
11511 ./ | .// | /cC/* | \
11512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11513 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11516 # OSF1 and SCO ODT 3.0 have their own names for install.
11517 # Don't use installbsd from OSF since it installs stuff as root
11519 for ac_prog in ginstall scoinst install; do
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11522 if test $ac_prog = install &&
11523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11524 # AIX install. It has an incompatible calling convention.
11526 elif test $ac_prog = install &&
11527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11528 # program-specific install script used by HP pwplus--don't use.
11531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11544 if test "${ac_cv_path_install+set}" = set; then
11545 INSTALL=$ac_cv_path_install
11547 # As a last resort, use the slow shell script. Don't cache a
11548 # value for INSTALL within a source directory, because that will
11549 # break other packages using the cache if that directory is
11550 # removed, or if the value is a relative name.
11551 INSTALL=$ac_install_sh
11554 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11555 echo "${ECHO_T}$INSTALL" >&6; }
11557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11558 # It thinks the first close brace ends the variable substitution.
11559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11565 # See if we need a separate native compiler.
11566 if test $cross_compiling = no; then
11570 for ac_prog in gcc cc
11572 # Extract the first word of "$ac_prog", so it can be a program name with args.
11573 set dummy $ac_prog; ac_word=$2
11574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11576 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 if test -n "$BUILD_CC"; then
11580 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_prog_BUILD_CC="$ac_prog"
11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 BUILD_CC=$ac_cv_prog_BUILD_CC
11600 if test -n "$BUILD_CC"; then
11601 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11602 echo "${ECHO_T}$BUILD_CC" >&6; }
11604 { echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6; }
11609 test -n "$BUILD_CC" && break
11651 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11664 # Is the header compilable?
11665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11667 cat >conftest.$ac_ext <<_ACEOF
11670 cat confdefs.h >>conftest.$ac_ext
11671 cat >>conftest.$ac_ext <<_ACEOF
11672 /* end confdefs.h. */
11673 $ac_includes_default
11674 #include <$ac_header>
11676 rm -f conftest.$ac_objext
11677 if { (ac_try="$ac_compile"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.$ac_objext; then
11693 ac_header_compiler=yes
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11698 ac_header_compiler=no
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11703 echo "${ECHO_T}$ac_header_compiler" >&6; }
11705 # Is the header present?
11706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <$ac_header>
11716 if { (ac_try="$ac_cpp conftest.$ac_ext"
11717 case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11724 grep -v '^ *+' conftest.er1 >conftest.err
11726 cat conftest.err >&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } >/dev/null && {
11729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11730 test ! -s conftest.err
11732 ac_header_preproc=yes
11734 echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11737 ac_header_preproc=no
11740 rm -f conftest.err conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742 echo "${ECHO_T}$ac_header_preproc" >&6; }
11744 # So? What about this header?
11745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751 ac_header_preproc=yes
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 eval "$as_ac_Header=\$ac_header_preproc"
11776 ac_res=`eval echo '${'$as_ac_Header'}'`
11777 { echo "$as_me:$LINENO: result: $ac_res" >&5
11778 echo "${ECHO_T}$ac_res" >&6; }
11781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11792 for ac_header in sys/disk.h sys/mount.h
11794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 #if HAVE_SYS_QUEUE_H
11808 #include <sys/queue.h>
11812 #include <$ac_header>
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } && {
11828 test -z "$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 } && test -s conftest.$ac_objext; then
11831 eval "$as_ac_Header=yes"
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 eval "$as_ac_Header=no"
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 ac_res=`eval echo '${'$as_ac_Header'}'`
11842 { echo "$as_me:$LINENO: result: $ac_res" >&5
11843 echo "${ECHO_T}$ac_res" >&6; }
11844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11854 for ac_header in net/if.h
11856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 cat >conftest.$ac_ext <<_ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11869 #if HAVE_SYS_TYPES_H
11870 #include <sys/types.h>
11872 #if HAVE_SYS_SOCKET
11873 #include <sys/socket.h>
11877 #include <$ac_header>
11879 rm -f conftest.$ac_objext
11880 if { (ac_try="$ac_compile"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_compile") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest.$ac_objext; then
11896 eval "$as_ac_Header=yes"
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11901 eval "$as_ac_Header=no"
11904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11906 ac_res=`eval echo '${'$as_ac_Header'}'`
11907 { echo "$as_me:$LINENO: result: $ac_res" >&5
11908 echo "${ECHO_T}$ac_res" >&6; }
11909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11910 cat >>confdefs.h <<_ACEOF
11911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11919 for ac_func in vprintf
11921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 cat >conftest.$ac_ext <<_ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11935 #define $ac_func innocuous_$ac_func
11937 /* System header to define __stub macros and hopefully few prototypes,
11938 which can conflict with char $ac_func (); below.
11939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11940 <limits.h> exists even on freestanding compilers. */
11943 # include <limits.h>
11945 # include <assert.h>
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11957 /* The GNU C library defines this for functions which it implements
11958 to always fail with ENOSYS. Some functions are actually named
11959 something starting with __ and the normal name is an alias. */
11960 #if defined __stub_$ac_func || defined __stub___$ac_func
11967 return $ac_func ();
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (ac_try="$ac_link"
11974 case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_link") 2>conftest.er1
11981 grep -v '^ *+' conftest.er1 >conftest.err
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest$ac_exeext &&
11989 $as_test_x conftest$ac_exeext; then
11990 eval "$as_ac_var=yes"
11992 echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 eval "$as_ac_var=no"
11998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11999 conftest$ac_exeext conftest.$ac_ext
12001 ac_res=`eval echo '${'$as_ac_var'}'`
12002 { echo "$as_me:$LINENO: result: $ac_res" >&5
12003 echo "${ECHO_T}$ac_res" >&6; }
12004 if test `eval echo '${'$as_ac_var'}'` = yes; then
12005 cat >>confdefs.h <<_ACEOF
12006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12009 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12010 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12011 if test "${ac_cv_func__doprnt+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 cat >conftest.$ac_ext <<_ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h. */
12020 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12022 #define _doprnt innocuous__doprnt
12024 /* System header to define __stub macros and hopefully few prototypes,
12025 which can conflict with char _doprnt (); below.
12026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12027 <limits.h> exists even on freestanding compilers. */
12030 # include <limits.h>
12032 # include <assert.h>
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12044 /* The GNU C library defines this for functions which it implements
12045 to always fail with ENOSYS. Some functions are actually named
12046 something starting with __ and the normal name is an alias. */
12047 #if defined __stub__doprnt || defined __stub____doprnt
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12068 grep -v '^ *+' conftest.er1 >conftest.err
12070 cat conftest.err >&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest$ac_exeext &&
12076 $as_test_x conftest$ac_exeext; then
12077 ac_cv_func__doprnt=yes
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_cv_func__doprnt=no
12085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12086 conftest$ac_exeext conftest.$ac_ext
12088 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12089 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12090 if test $ac_cv_func__doprnt = yes; then
12092 cat >>confdefs.h <<\_ACEOF
12093 #define HAVE_DOPRNT 1
12102 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12103 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12104 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 #include <dirent.h>
12118 static struct dirent ac_aggr;
12119 if (ac_aggr.d_reclen)
12125 rm -f conftest.$ac_objext
12126 if { (ac_try="$ac_compile"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_compile") 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest.$ac_objext; then
12142 ac_cv_member_struct_dirent_d_reclen=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 cat >conftest.$ac_ext <<_ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 #include <dirent.h>
12158 static struct dirent ac_aggr;
12159 if (sizeof ac_aggr.d_reclen)
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
12182 ac_cv_member_struct_dirent_d_reclen=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_member_struct_dirent_d_reclen=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12196 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12197 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_RECLEN_DIRENT 1
12204 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12205 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12206 if test "${ac_cv_type_ssize_t+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 cat >conftest.$ac_ext <<_ACEOF
12212 cat confdefs.h >>conftest.$ac_ext
12213 cat >>conftest.$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 #include <sys/types.h>
12217 typedef ssize_t ac__type_new_;
12221 if ((ac__type_new_ *) 0)
12223 if (sizeof (ac__type_new_))
12229 rm -f conftest.$ac_objext
12230 if { (ac_try="$ac_compile"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compile") 2>conftest.er1
12238 grep -v '^ *+' conftest.er1 >conftest.err
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
12246 ac_cv_type_ssize_t=yes
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12251 ac_cv_type_ssize_t=no
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12257 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12258 if test $ac_cv_type_ssize_t = yes; then
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_TYPE_SSIZE_T 1
12265 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12266 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12267 if test "${ac_cv_have_decl_llseek+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 #include <unistd.h>
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 ac_cv_have_decl_llseek=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 ac_cv_have_decl_llseek=no
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12317 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12318 if test $ac_cv_have_decl_llseek = yes; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define HAVE_LLSEEK_PROTOTYPE 1
12325 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12326 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12327 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 #define _LARGEFILE_SOURCE
12337 #define _LARGEFILE64_SOURCE
12338 #include <unistd.h>
12351 rm -f conftest.$ac_objext
12352 if { (ac_try="$ac_compile"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_compile") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest.$ac_objext; then
12368 ac_cv_have_decl_lseek64=yes
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_have_decl_lseek64=no
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12379 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12380 if test $ac_cv_have_decl_lseek64 = yes; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_LSEEK64_PROTOTYPE 1
12387 { echo "$as_me:$LINENO: checking for short" >&5
12388 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12389 if test "${ac_cv_type_short+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 $ac_includes_default
12399 typedef short ac__type_new_;
12403 if ((ac__type_new_ *) 0)
12405 if (sizeof (ac__type_new_))
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_compile") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest.$ac_objext; then
12428 ac_cv_type_short=yes
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12433 ac_cv_type_short=no
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12439 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12441 # The cast to long int works around a bug in the HP C Compiler
12442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12444 # This bug is HP SR number 8606223364.
12445 { echo "$as_me:$LINENO: checking size of short" >&5
12446 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12447 if test "${ac_cv_sizeof_short+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12450 if test "$cross_compiling" = yes; then
12451 # Depending upon the size, compute the lo and hi bounds.
12452 cat >conftest.$ac_ext <<_ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h. */
12458 $ac_includes_default
12459 typedef short ac__type_sizeof_;
12463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12470 rm -f conftest.$ac_objext
12471 if { (ac_try="$ac_compile"
12472 case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_compile") 2>conftest.er1
12479 grep -v '^ *+' conftest.er1 >conftest.err
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } && {
12484 test -z "$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12486 } && test -s conftest.$ac_objext; then
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 $ac_includes_default
12496 typedef short ac__type_sizeof_;
12500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12507 rm -f conftest.$ac_objext
12508 if { (ac_try="$ac_compile"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_compile") 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && {
12521 test -z "$ac_c_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest.$ac_objext; then
12524 ac_hi=$ac_mid; break
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ac_lo=`expr $ac_mid + 1`
12530 if test $ac_lo -le $ac_mid; then
12534 ac_mid=`expr 2 '*' $ac_mid + 1`
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 $ac_includes_default
12550 typedef short ac__type_sizeof_;
12554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12561 rm -f conftest.$ac_objext
12562 if { (ac_try="$ac_compile"
12563 case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_compile") 2>conftest.er1
12570 grep -v '^ *+' conftest.er1 >conftest.err
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } && {
12575 test -z "$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12577 } && test -s conftest.$ac_objext; then
12580 cat >conftest.$ac_ext <<_ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 typedef short ac__type_sizeof_;
12591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12598 rm -f conftest.$ac_objext
12599 if { (ac_try="$ac_compile"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_compile") 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest.$ac_objext; then
12615 ac_lo=$ac_mid; break
12617 echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12620 ac_hi=`expr '(' $ac_mid ')' - 1`
12621 if test $ac_mid -le $ac_hi; then
12625 ac_mid=`expr 2 '*' $ac_mid`
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 # Binary search between lo and hi bounds.
12642 while test "x$ac_lo" != "x$ac_hi"; do
12643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12644 cat >conftest.$ac_ext <<_ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650 $ac_includes_default
12651 typedef short ac__type_sizeof_;
12655 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12662 rm -f conftest.$ac_objext
12663 if { (ac_try="$ac_compile"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
12671 grep -v '^ *+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ac_lo=`expr '(' $ac_mid ')' + 1`
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 ?*) ac_cv_sizeof_short=$ac_lo;;
12691 '') if test "$ac_cv_type_short" = yes; then
12692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12693 See \`config.log' for more details." >&5
12694 echo "$as_me: error: cannot compute sizeof (short)
12695 See \`config.log' for more details." >&2;}
12696 { (exit 77); exit 77; }; }
12698 ac_cv_sizeof_short=0
12702 cat >conftest.$ac_ext <<_ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 $ac_includes_default
12709 typedef short ac__type_sizeof_;
12710 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12711 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12713 #include <stdlib.h>
12718 FILE *f = fopen ("conftest.val", "w");
12721 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12723 long int i = longval ();
12724 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12726 fprintf (f, "%ld\n", i);
12730 unsigned long int i = ulongval ();
12731 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12733 fprintf (f, "%lu\n", i);
12735 return ferror (f) || fclose (f) != 0;
12741 rm -f conftest$ac_exeext
12742 if { (ac_try="$ac_link"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_sizeof_short=`cat conftest.val`
12763 echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ( exit $ac_status )
12768 if test "$ac_cv_type_short" = yes; then
12769 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12770 See \`config.log' for more details." >&5
12771 echo "$as_me: error: cannot compute sizeof (short)
12772 See \`config.log' for more details." >&2;}
12773 { (exit 77); exit 77; }; }
12775 ac_cv_sizeof_short=0
12778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12782 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12783 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12787 cat >>confdefs.h <<_ACEOF
12788 #define SIZEOF_SHORT $ac_cv_sizeof_short
12792 { echo "$as_me:$LINENO: checking for int" >&5
12793 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12794 if test "${ac_cv_type_int+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 cat >conftest.$ac_ext <<_ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12804 typedef int ac__type_new_;
12808 if ((ac__type_new_ *) 0)
12810 if (sizeof (ac__type_new_))
12816 rm -f conftest.$ac_objext
12817 if { (ac_try="$ac_compile"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_compile") 2>conftest.er1
12825 grep -v '^ *+' conftest.er1 >conftest.err
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && {
12830 test -z "$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12832 } && test -s conftest.$ac_objext; then
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12844 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12846 # The cast to long int works around a bug in the HP C Compiler
12847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12849 # This bug is HP SR number 8606223364.
12850 { echo "$as_me:$LINENO: checking size of int" >&5
12851 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12852 if test "${ac_cv_sizeof_int+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 if test "$cross_compiling" = yes; then
12856 # Depending upon the size, compute the lo and hi bounds.
12857 cat >conftest.$ac_ext <<_ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 $ac_includes_default
12864 typedef int ac__type_sizeof_;
12868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_compile") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } && {
12889 test -z "$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 } && test -s conftest.$ac_objext; then
12894 cat >conftest.$ac_ext <<_ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900 $ac_includes_default
12901 typedef int ac__type_sizeof_;
12905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12912 rm -f conftest.$ac_objext
12913 if { (ac_try="$ac_compile"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_compile") 2>conftest.er1
12921 grep -v '^ *+' conftest.er1 >conftest.err
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } && {
12926 test -z "$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12928 } && test -s conftest.$ac_objext; then
12929 ac_hi=$ac_mid; break
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_lo=`expr $ac_mid + 1`
12935 if test $ac_lo -le $ac_mid; then
12939 ac_mid=`expr 2 '*' $ac_mid + 1`
12942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12948 cat >conftest.$ac_ext <<_ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 $ac_includes_default
12955 typedef int ac__type_sizeof_;
12959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12966 rm -f conftest.$ac_objext
12967 if { (ac_try="$ac_compile"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_compile") 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } && {
12980 test -z "$ac_c_werror_flag" ||
12981 test ! -s conftest.err
12982 } && test -s conftest.$ac_objext; then
12985 cat >conftest.$ac_ext <<_ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 $ac_includes_default
12992 typedef int ac__type_sizeof_;
12996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13003 rm -f conftest.$ac_objext
13004 if { (ac_try="$ac_compile"
13005 case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_compile") 2>conftest.er1
13012 grep -v '^ *+' conftest.er1 >conftest.err
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } && {
13017 test -z "$ac_c_werror_flag" ||
13018 test ! -s conftest.err
13019 } && test -s conftest.$ac_objext; then
13020 ac_lo=$ac_mid; break
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.$ac_ext >&5
13025 ac_hi=`expr '(' $ac_mid ')' - 1`
13026 if test $ac_mid -le $ac_hi; then
13030 ac_mid=`expr 2 '*' $ac_mid`
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 # Binary search between lo and hi bounds.
13047 while test "x$ac_lo" != "x$ac_hi"; do
13048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13049 cat >conftest.$ac_ext <<_ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h. */
13055 $ac_includes_default
13056 typedef int ac__type_sizeof_;
13060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13067 rm -f conftest.$ac_objext
13068 if { (ac_try="$ac_compile"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_compile") 2>conftest.er1
13076 grep -v '^ *+' conftest.er1 >conftest.err
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest.$ac_objext; then
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 ac_lo=`expr '(' $ac_mid ')' + 1`
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095 ?*) ac_cv_sizeof_int=$ac_lo;;
13096 '') if test "$ac_cv_type_int" = yes; then
13097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13098 See \`config.log' for more details." >&5
13099 echo "$as_me: error: cannot compute sizeof (int)
13100 See \`config.log' for more details." >&2;}
13101 { (exit 77); exit 77; }; }
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13114 typedef int ac__type_sizeof_;
13115 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13116 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13118 #include <stdlib.h>
13123 FILE *f = fopen ("conftest.val", "w");
13126 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13128 long int i = longval ();
13129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13131 fprintf (f, "%ld\n", i);
13135 unsigned long int i = ulongval ();
13136 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13138 fprintf (f, "%lu\n", i);
13140 return ferror (f) || fclose (f) != 0;
13146 rm -f conftest$ac_exeext
13147 if { (ac_try="$ac_link"
13148 case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_link") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13157 { (case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_sizeof_int=`cat conftest.val`
13168 echo "$as_me: program exited with status $ac_status" >&5
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ( exit $ac_status )
13173 if test "$ac_cv_type_int" = yes; then
13174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13175 See \`config.log' for more details." >&5
13176 echo "$as_me: error: cannot compute sizeof (int)
13177 See \`config.log' for more details." >&2;}
13178 { (exit 77); exit 77; }; }
13183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13187 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13188 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13192 cat >>confdefs.h <<_ACEOF
13193 #define SIZEOF_INT $ac_cv_sizeof_int
13197 { echo "$as_me:$LINENO: checking for long" >&5
13198 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13199 if test "${ac_cv_type_long+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 $ac_includes_default
13209 typedef long ac__type_new_;
13213 if ((ac__type_new_ *) 0)
13215 if (sizeof (ac__type_new_))
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_compile") 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest.$ac_objext; then
13238 ac_cv_type_long=yes
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13249 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13251 # The cast to long int works around a bug in the HP C Compiler
13252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13254 # This bug is HP SR number 8606223364.
13255 { echo "$as_me:$LINENO: checking size of long" >&5
13256 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13257 if test "${ac_cv_sizeof_long+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 if test "$cross_compiling" = yes; then
13261 # Depending upon the size, compute the lo and hi bounds.
13262 cat >conftest.$ac_ext <<_ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 $ac_includes_default
13269 typedef long ac__type_sizeof_;
13273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13280 rm -f conftest.$ac_objext
13281 if { (ac_try="$ac_compile"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compile") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && {
13294 test -z "$ac_c_werror_flag" ||
13295 test ! -s conftest.err
13296 } && test -s conftest.$ac_objext; then
13299 cat >conftest.$ac_ext <<_ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305 $ac_includes_default
13306 typedef long ac__type_sizeof_;
13310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
13334 ac_hi=$ac_mid; break
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ac_lo=`expr $ac_mid + 1`
13340 if test $ac_lo -le $ac_mid; then
13344 ac_mid=`expr 2 '*' $ac_mid + 1`
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 cat >conftest.$ac_ext <<_ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 $ac_includes_default
13360 typedef long ac__type_sizeof_;
13364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compile") 2>conftest.er1
13380 grep -v '^ *+' conftest.er1 >conftest.err
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest.$ac_objext; then
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 $ac_includes_default
13397 typedef long ac__type_sizeof_;
13401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_compile") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } && {
13422 test -z "$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 } && test -s conftest.$ac_objext; then
13425 ac_lo=$ac_mid; break
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_hi=`expr '(' $ac_mid ')' - 1`
13431 if test $ac_mid -le $ac_hi; then
13435 ac_mid=`expr 2 '*' $ac_mid`
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 echo "$as_me: failed program was:" >&5
13442 sed 's/^/| /' conftest.$ac_ext >&5
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 # Binary search between lo and hi bounds.
13452 while test "x$ac_lo" != "x$ac_hi"; do
13453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13454 cat >conftest.$ac_ext <<_ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13461 typedef long ac__type_sizeof_;
13465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13472 rm -f conftest.$ac_objext
13473 if { (ac_try="$ac_compile"
13474 case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_compile") 2>conftest.er1
13481 grep -v '^ *+' conftest.er1 >conftest.err
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && {
13486 test -z "$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 } && test -s conftest.$ac_objext; then
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 ac_lo=`expr '(' $ac_mid ')' + 1`
13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 ?*) ac_cv_sizeof_long=$ac_lo;;
13501 '') if test "$ac_cv_type_long" = yes; then
13502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13503 See \`config.log' for more details." >&5
13504 echo "$as_me: error: cannot compute sizeof (long)
13505 See \`config.log' for more details." >&2;}
13506 { (exit 77); exit 77; }; }
13508 ac_cv_sizeof_long=0
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 $ac_includes_default
13519 typedef long ac__type_sizeof_;
13520 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13521 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13523 #include <stdlib.h>
13528 FILE *f = fopen ("conftest.val", "w");
13531 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13533 long int i = longval ();
13534 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13536 fprintf (f, "%ld\n", i);
13540 unsigned long int i = ulongval ();
13541 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13543 fprintf (f, "%lu\n", i);
13545 return ferror (f) || fclose (f) != 0;
13551 rm -f conftest$ac_exeext
13552 if { (ac_try="$ac_link"
13553 case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_link") 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13562 { (case "(($ac_try" in
13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_try") 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_cv_sizeof_long=`cat conftest.val`
13573 echo "$as_me: program exited with status $ac_status" >&5
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 ( exit $ac_status )
13578 if test "$ac_cv_type_long" = yes; then
13579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13580 See \`config.log' for more details." >&5
13581 echo "$as_me: error: cannot compute sizeof (long)
13582 See \`config.log' for more details." >&2;}
13583 { (exit 77); exit 77; }; }
13585 ac_cv_sizeof_long=0
13588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13592 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13593 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13597 cat >>confdefs.h <<_ACEOF
13598 #define SIZEOF_LONG $ac_cv_sizeof_long
13602 { echo "$as_me:$LINENO: checking for long long" >&5
13603 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13604 if test "${ac_cv_type_long_long+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 cat >conftest.$ac_ext <<_ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 $ac_includes_default
13614 typedef long long ac__type_new_;
13618 if ((ac__type_new_ *) 0)
13620 if (sizeof (ac__type_new_))
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_compile") 2>conftest.er1
13635 grep -v '^ *+' conftest.er1 >conftest.err
13637 cat conftest.err >&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } && {
13640 test -z "$ac_c_werror_flag" ||
13641 test ! -s conftest.err
13642 } && test -s conftest.$ac_objext; then
13643 ac_cv_type_long_long=yes
13645 echo "$as_me: failed program was:" >&5
13646 sed 's/^/| /' conftest.$ac_ext >&5
13648 ac_cv_type_long_long=no
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13654 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13656 # The cast to long int works around a bug in the HP C Compiler
13657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13659 # This bug is HP SR number 8606223364.
13660 { echo "$as_me:$LINENO: checking size of long long" >&5
13661 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13662 if test "${ac_cv_sizeof_long_long+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 if test "$cross_compiling" = yes; then
13666 # Depending upon the size, compute the lo and hi bounds.
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13674 typedef long long ac__type_sizeof_;
13678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13685 rm -f conftest.$ac_objext
13686 if { (ac_try="$ac_compile"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_compile") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && {
13699 test -z "$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13701 } && test -s conftest.$ac_objext; then
13704 cat >conftest.$ac_ext <<_ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 $ac_includes_default
13711 typedef long long ac__type_sizeof_;
13715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13722 rm -f conftest.$ac_objext
13723 if { (ac_try="$ac_compile"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_compile") 2>conftest.er1
13731 grep -v '^ *+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } && {
13736 test -z "$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13738 } && test -s conftest.$ac_objext; then
13739 ac_hi=$ac_mid; break
13741 echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13744 ac_lo=`expr $ac_mid + 1`
13745 if test $ac_lo -le $ac_mid; then
13749 ac_mid=`expr 2 '*' $ac_mid + 1`
13752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 $ac_includes_default
13765 typedef long long ac__type_sizeof_;
13769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13776 rm -f conftest.$ac_objext
13777 if { (ac_try="$ac_compile"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_compile") 2>conftest.er1
13785 grep -v '^ *+' conftest.er1 >conftest.err
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13792 } && test -s conftest.$ac_objext; then
13795 cat >conftest.$ac_ext <<_ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 $ac_includes_default
13802 typedef long long ac__type_sizeof_;
13806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13813 rm -f conftest.$ac_objext
13814 if { (ac_try="$ac_compile"
13815 case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_compile") 2>conftest.er1
13822 grep -v '^ *+' conftest.er1 >conftest.err
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest.$ac_objext; then
13830 ac_lo=$ac_mid; break
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_hi=`expr '(' $ac_mid ')' - 1`
13836 if test $ac_mid -le $ac_hi; then
13840 ac_mid=`expr 2 '*' $ac_mid`
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 # Binary search between lo and hi bounds.
13857 while test "x$ac_lo" != "x$ac_hi"; do
13858 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13859 cat >conftest.$ac_ext <<_ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13865 $ac_includes_default
13866 typedef long long ac__type_sizeof_;
13870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13877 rm -f conftest.$ac_objext
13878 if { (ac_try="$ac_compile"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_compile") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && {
13891 test -z "$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 } && test -s conftest.$ac_objext; then
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_lo=`expr '(' $ac_mid ')' + 1`
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13906 '') if test "$ac_cv_type_long_long" = yes; then
13907 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13908 See \`config.log' for more details." >&5
13909 echo "$as_me: error: cannot compute sizeof (long long)
13910 See \`config.log' for more details." >&2;}
13911 { (exit 77); exit 77; }; }
13913 ac_cv_sizeof_long_long=0
13917 cat >conftest.$ac_ext <<_ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 $ac_includes_default
13924 typedef long long ac__type_sizeof_;
13925 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13926 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13928 #include <stdlib.h>
13933 FILE *f = fopen ("conftest.val", "w");
13936 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13938 long int i = longval ();
13939 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13941 fprintf (f, "%ld\n", i);
13945 unsigned long int i = ulongval ();
13946 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13948 fprintf (f, "%lu\n", i);
13950 return ferror (f) || fclose (f) != 0;
13956 rm -f conftest$ac_exeext
13957 if { (ac_try="$ac_link"
13958 case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_link") 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13967 { (case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_try") 2>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_sizeof_long_long=`cat conftest.val`
13978 echo "$as_me: program exited with status $ac_status" >&5
13979 echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.$ac_ext >&5
13982 ( exit $ac_status )
13983 if test "$ac_cv_type_long_long" = yes; then
13984 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13985 See \`config.log' for more details." >&5
13986 echo "$as_me: error: cannot compute sizeof (long long)
13987 See \`config.log' for more details." >&2;}
13988 { (exit 77); exit 77; }; }
13990 ac_cv_sizeof_long_long=0
13993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13998 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14002 cat >>confdefs.h <<_ACEOF
14003 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14007 SIZEOF_SHORT=$ac_cv_sizeof_short
14008 SIZEOF_INT=$ac_cv_sizeof_int
14009 SIZEOF_LONG=$ac_cv_sizeof_long
14010 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14015 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14016 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14017 if test "${ac_cv_c_bigendian+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14020 # See if sys/param.h defines the BYTE_ORDER macro.
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 #include <sys/types.h>
14028 #include <sys/param.h>
14033 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14034 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14035 bogus endian macros
14042 rm -f conftest.$ac_objext
14043 if { (ac_try="$ac_compile"
14044 case "(($ac_try" in
14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046 *) ac_try_echo=$ac_try;;
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049 (eval "$ac_compile") 2>conftest.er1
14051 grep -v '^ *+' conftest.er1 >conftest.err
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest.$ac_objext; then
14059 # It does; now see whether it defined to BIG_ENDIAN or not.
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 #include <sys/types.h>
14067 #include <sys/param.h>
14072 #if BYTE_ORDER != BIG_ENDIAN
14080 rm -f conftest.$ac_objext
14081 if { (ac_try="$ac_compile"
14082 case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_compile") 2>conftest.er1
14089 grep -v '^ *+' conftest.er1 >conftest.err
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } && {
14094 test -z "$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 } && test -s conftest.$ac_objext; then
14097 ac_cv_c_bigendian=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_c_bigendian=no
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 # It does not; compile a test program.
14111 if test "$cross_compiling" = yes; then
14112 # try to guess the endianness by grepping values into an object file
14113 ac_cv_c_bigendian=unknown
14114 cat >conftest.$ac_ext <<_ACEOF
14117 cat confdefs.h >>conftest.$ac_ext
14118 cat >>conftest.$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14120 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14121 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14122 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14123 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14124 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14125 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14129 _ascii (); _ebcdic ();
14134 rm -f conftest.$ac_objext
14135 if { (ac_try="$ac_compile"
14136 case "(($ac_try" in
14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138 *) ac_try_echo=$ac_try;;
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_compile") 2>conftest.er1
14143 grep -v '^ *+' conftest.er1 >conftest.err
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } && {
14148 test -z "$ac_c_werror_flag" ||
14149 test ! -s conftest.err
14150 } && test -s conftest.$ac_objext; then
14151 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14152 ac_cv_c_bigendian=yes
14154 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14155 if test "$ac_cv_c_bigendian" = unknown; then
14156 ac_cv_c_bigendian=no
14158 # finding both strings is unlikely to happen, but who knows?
14159 ac_cv_c_bigendian=unknown
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171 cat >conftest.$ac_ext <<_ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 $ac_includes_default
14182 /* Are we little or big endian? From Harbison&Steele. */
14186 char c[sizeof (long int)];
14189 return u.c[sizeof (long int) - 1] == 1;
14195 rm -f conftest$ac_exeext
14196 if { (ac_try="$ac_link"
14197 case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_link") 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14206 { (case "(($ac_try" in
14207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14208 *) ac_try_echo=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_try") 2>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_cv_c_bigendian=no
14217 echo "$as_me: program exited with status $ac_status" >&5
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 ( exit $ac_status )
14222 ac_cv_c_bigendian=yes
14224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14233 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14234 case $ac_cv_c_bigendian in
14237 cat >>confdefs.h <<\_ACEOF
14238 #define WORDS_BIGENDIAN 1
14244 { { echo "$as_me:$LINENO: error: unknown endianness
14245 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14246 echo "$as_me: error: unknown endianness
14247 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14248 { (exit 1); exit 1; }; } ;;
14251 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14252 ASM_TYPES_HEADER=./asm_types.h
14254 echo "/* These defines are needed for the public ext2fs.h header file */" \
14256 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14257 uniq tmp_config.$$ >> public_config.h
14259 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14261 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14262 uniq tmp_config.$$ >> public_config.h
14264 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14266 rm -f tmp_config.$$
14267 PUBLIC_CONFIG_HEADER=./public_config.h
14270 for ac_header in inttypes.h
14272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 ac_res=`eval echo '${'$as_ac_Header'}'`
14280 { echo "$as_me:$LINENO: result: $ac_res" >&5
14281 echo "${ECHO_T}$ac_res" >&6; }
14283 # Is the header compilable?
14284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 $ac_includes_default
14293 #include <$ac_header>
14295 rm -f conftest.$ac_objext
14296 if { (ac_try="$ac_compile"
14297 case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_compile") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest.$ac_objext; then
14312 ac_header_compiler=yes
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14317 ac_header_compiler=no
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14322 echo "${ECHO_T}$ac_header_compiler" >&6; }
14324 # Is the header present?
14325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14327 cat >conftest.$ac_ext <<_ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 #include <$ac_header>
14335 if { (ac_try="$ac_cpp conftest.$ac_ext"
14336 case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } >/dev/null && {
14348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14351 ac_header_preproc=yes
14353 echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14356 ac_header_preproc=no
14359 rm -f conftest.err conftest.$ac_ext
14360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14361 echo "${ECHO_T}$ac_header_preproc" >&6; }
14363 # So? What about this header?
14364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14370 ac_header_preproc=yes
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14391 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 eval "$as_ac_Header=\$ac_header_preproc"
14395 ac_res=`eval echo '${'$as_ac_Header'}'`
14396 { echo "$as_me:$LINENO: result: $ac_res" >&5
14397 echo "${ECHO_T}$ac_res" >&6; }
14400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14401 cat >>confdefs.h <<_ACEOF
14402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14409 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14410 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14411 if test "${ac_cv_type_intptr_t+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 cat >conftest.$ac_ext <<_ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 $ac_includes_default
14421 typedef intptr_t ac__type_new_;
14425 if ((ac__type_new_ *) 0)
14427 if (sizeof (ac__type_new_))
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437 *) ac_try_echo=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_compile") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest.$ac_objext; then
14450 ac_cv_type_intptr_t=yes
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ac_cv_type_intptr_t=no
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14460 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14461 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14462 if test $ac_cv_type_intptr_t = yes; then
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_INTPTR_T 1
14471 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14472 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14473 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 cat >conftest.$ac_ext <<_ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 #include <sys/stat.h>
14486 struct stat stat; stat.st_flags = 0;
14491 rm -f conftest.$ac_objext
14492 if { (ac_try="$ac_compile"
14493 case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_compile") 2>conftest.er1
14500 grep -v '^ *+' conftest.er1 >conftest.err
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } && {
14505 test -z "$ac_c_werror_flag" ||
14506 test ! -s conftest.err
14507 } && test -s conftest.$ac_objext; then
14508 e2fsprogs_cv_struct_st_flags=yes
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 e2fsprogs_cv_struct_st_flags=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14520 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14521 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14522 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14523 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14524 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 #include <sys/stat.h>
14537 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_compile") 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } && {
14556 test -z "$ac_c_werror_flag" ||
14557 test ! -s conftest.err
14558 } && test -s conftest.$ac_objext; then
14559 e2fsprogs_cv_struct_st_flags_immut=yes
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 e2fsprogs_cv_struct_st_flags_immut=no
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14571 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14572 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14573 cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_STAT_FLAGS 1
14579 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14580 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14581 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <sys/types.h>
14591 #include <sys/socket.h>
14596 static struct sockaddr ac_aggr;
14597 if (ac_aggr.sa_len)
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_compile") 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest.$ac_objext; then
14620 ac_cv_member_struct_sockaddr_sa_len=yes
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 cat >conftest.$ac_ext <<_ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 #include <sys/types.h>
14632 #include <sys/socket.h>
14637 static struct sockaddr ac_aggr;
14638 if (sizeof ac_aggr.sa_len)
14644 rm -f conftest.$ac_objext
14645 if { (ac_try="$ac_compile"
14646 case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_compile") 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } && {
14658 test -z "$ac_c_werror_flag" ||
14659 test ! -s conftest.err
14660 } && test -s conftest.$ac_objext; then
14661 ac_cv_member_struct_sockaddr_sa_len=yes
14663 echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_cv_member_struct_sockaddr_sa_len=no
14669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14674 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14675 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14676 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14678 cat >>confdefs.h <<_ACEOF
14679 #define HAVE_SA_LEN 1
14717 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit
14719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14725 cat >conftest.$ac_ext <<_ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14733 #define $ac_func innocuous_$ac_func
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char $ac_func (); below.
14737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14738 <limits.h> exists even on freestanding compilers. */
14741 # include <limits.h>
14743 # include <assert.h>
14748 /* Override any GCC internal prototype to avoid an error.
14749 Use char because int might match the return type of a GCC
14750 builtin and then its argument prototype would still apply. */
14755 /* The GNU C library defines this for functions which it implements
14756 to always fail with ENOSYS. Some functions are actually named
14757 something starting with __ and the normal name is an alias. */
14758 #if defined __stub_$ac_func || defined __stub___$ac_func
14765 return $ac_func ();
14770 rm -f conftest.$ac_objext conftest$ac_exeext
14771 if { (ac_try="$ac_link"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777 (eval "$ac_link") 2>conftest.er1
14779 grep -v '^ *+' conftest.er1 >conftest.err
14781 cat conftest.err >&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); } && {
14784 test -z "$ac_c_werror_flag" ||
14785 test ! -s conftest.err
14786 } && test -s conftest$ac_exeext &&
14787 $as_test_x conftest$ac_exeext; then
14788 eval "$as_ac_var=yes"
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 eval "$as_ac_var=no"
14796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14797 conftest$ac_exeext conftest.$ac_ext
14799 ac_res=`eval echo '${'$as_ac_var'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801 echo "${ECHO_T}$ac_res" >&6; }
14802 if test `eval echo '${'$as_ac_var'}'` = yes; then
14803 cat >>confdefs.h <<_ACEOF
14804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14811 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14812 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14813 if test "${ac_cv_lib_socket_socket+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-lsocket $LIBS"
14818 cat >conftest.$ac_ext <<_ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14825 /* Override any GCC internal prototype to avoid an error.
14826 Use char because int might match the return type of a GCC
14827 builtin and then its argument prototype would still apply. */
14840 rm -f conftest.$ac_objext conftest$ac_exeext
14841 if { (ac_try="$ac_link"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847 (eval "$ac_link") 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest$ac_exeext &&
14857 $as_test_x conftest$ac_exeext; then
14858 ac_cv_lib_socket_socket=yes
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_cv_lib_socket_socket=no
14866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14867 conftest$ac_exeext conftest.$ac_ext
14868 LIBS=$ac_check_lib_save_LIBS
14870 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14871 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14872 if test $ac_cv_lib_socket_socket = yes; then
14873 SOCKET_LIB=-lsocket
14878 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14879 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 ac_check_lib_save_LIBS=$LIBS
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14892 /* Override any GCC internal prototype to avoid an error.
14893 Use char because int might match the return type of a GCC
14894 builtin and then its argument prototype would still apply. */
14907 rm -f conftest.$ac_objext conftest$ac_exeext
14908 if { (ac_try="$ac_link"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_link") 2>conftest.er1
14916 grep -v '^ *+' conftest.er1 >conftest.err
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && {
14921 test -z "$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14923 } && test -s conftest$ac_exeext &&
14924 $as_test_x conftest$ac_exeext; then
14925 ac_cv_lib_dl_dlopen=yes
14927 echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.$ac_ext >&5
14930 ac_cv_lib_dl_dlopen=no
14933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14934 conftest$ac_exeext conftest.$ac_ext
14935 LIBS=$ac_check_lib_save_LIBS
14937 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14938 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14939 if test $ac_cv_lib_dl_dlopen = yes; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_DLOPEN 1
14948 { echo "$as_me:$LINENO: checking for optreset" >&5
14949 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14950 if test "${ac_cv_have_optreset+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <unistd.h>
14962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14963 $EGREP "optreset" >/dev/null 2>&1; then
14964 ac_cv_have_optreset=yes
14966 ac_cv_have_optreset=no
14971 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14972 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14973 if test $ac_cv_have_optreset = yes; then
14974 cat >>confdefs.h <<\_ACEOF
14975 #define HAVE_OPTRESET 1
14980 { echo "$as_me:$LINENO: checking for sem_init" >&5
14981 echo $ECHO_N "checking for sem_init... $ECHO_C" >&6; }
14982 if test "${ac_cv_func_sem_init+set}" = set; then
14983 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 cat >conftest.$ac_ext <<_ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
14992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14993 #define sem_init innocuous_sem_init
14995 /* System header to define __stub macros and hopefully few prototypes,
14996 which can conflict with char sem_init (); below.
14997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14998 <limits.h> exists even on freestanding compilers. */
15001 # include <limits.h>
15003 # include <assert.h>
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15015 /* The GNU C library defines this for functions which it implements
15016 to always fail with ENOSYS. Some functions are actually named
15017 something starting with __ and the normal name is an alias. */
15018 #if defined __stub_sem_init || defined __stub___sem_init
15025 return sem_init ();
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1 >conftest.err
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest$ac_exeext &&
15047 $as_test_x conftest$ac_exeext; then
15048 ac_cv_func_sem_init=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_cv_func_sem_init=no
15056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15057 conftest$ac_exeext conftest.$ac_ext
15059 { echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
15060 echo "${ECHO_T}$ac_cv_func_sem_init" >&6; }
15061 if test $ac_cv_func_sem_init = yes; then
15064 { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
15065 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
15066 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 ac_check_lib_save_LIBS=$LIBS
15070 LIBS="-lpthread $LIBS"
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15078 /* Override any GCC internal prototype to avoid an error.
15079 Use char because int might match the return type of a GCC
15080 builtin and then its argument prototype would still apply. */
15088 return sem_init ();
15093 rm -f conftest.$ac_objext conftest$ac_exeext
15094 if { (ac_try="$ac_link"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_link") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest$ac_exeext &&
15110 $as_test_x conftest$ac_exeext; then
15111 ac_cv_lib_pthread_sem_init=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_cv_lib_pthread_sem_init=no
15119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS
15123 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
15124 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
15125 if test $ac_cv_lib_pthread_sem_init = yes; then
15126 cat >>confdefs.h <<\_ACEOF
15127 #define HAVE_SEM_INIT 1
15130 SEM_INIT_LIB=-lpthread
15132 { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
15133 echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; }
15134 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 ac_check_lib_save_LIBS=$LIBS
15139 cat >conftest.$ac_ext <<_ACEOF
15142 cat confdefs.h >>conftest.$ac_ext
15143 cat >>conftest.$ac_ext <<_ACEOF
15144 /* end confdefs.h. */
15146 /* Override any GCC internal prototype to avoid an error.
15147 Use char because int might match the return type of a GCC
15148 builtin and then its argument prototype would still apply. */
15156 return sem_init ();
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_link") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest$ac_exeext &&
15178 $as_test_x conftest$ac_exeext; then
15179 ac_cv_lib_rt_sem_init=yes
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 ac_cv_lib_rt_sem_init=no
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188 conftest$ac_exeext conftest.$ac_ext
15189 LIBS=$ac_check_lib_save_LIBS
15191 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
15192 echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; }
15193 if test $ac_cv_lib_rt_sem_init = yes; then
15194 cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_SEM_INIT 1
15200 { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
15201 echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; }
15202 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 ac_check_lib_save_LIBS=$LIBS
15206 LIBS="-lposix4 $LIBS"
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15214 /* Override any GCC internal prototype to avoid an error.
15215 Use char because int might match the return type of a GCC
15216 builtin and then its argument prototype would still apply. */
15224 return sem_init ();
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (ac_try="$ac_link"
15231 case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_link") 2>conftest.er1
15238 grep -v '^ *+' conftest.er1 >conftest.err
15240 cat conftest.err >&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } && {
15243 test -z "$ac_c_werror_flag" ||
15244 test ! -s conftest.err
15245 } && test -s conftest$ac_exeext &&
15246 $as_test_x conftest$ac_exeext; then
15247 ac_cv_lib_posix4_sem_init=yes
15249 echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 ac_cv_lib_posix4_sem_init=no
15255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15256 conftest$ac_exeext conftest.$ac_ext
15257 LIBS=$ac_check_lib_save_LIBS
15259 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
15260 echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; }
15261 if test $ac_cv_lib_posix4_sem_init = yes; then
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_SEM_INIT 1
15266 SEM_INIT_LIB=-lposix4
15275 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15276 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15277 if diff -u $0 $0 > /dev/null 2>&1 ; then
15282 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15283 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15287 cat >>confdefs.h <<\_ACEOF
15288 #define HAVE_EXT2_IOCTLS 1
15309 linux* | gnu* | k*bsd*-gnu)
15310 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15312 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15313 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15318 linux* | gnu* | k*bsd*-gnu)
15319 if test "$prefix" = NONE ; then
15321 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15322 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15323 if test "$mandir" = '${prefix}/man' ; then
15324 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15325 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15326 mandir=/usr/share/man
15331 if test "$root_prefix" = NONE ; then
15332 if test "$prefix" = NONE ; then
15333 root_prefix="$ac_default_prefix"
15335 root_prefix="$prefix"
15337 root_bindir=$bindir
15338 root_sbindir=$sbindir
15339 root_libdir=$libdir
15340 root_sysconfdir=$sysconfdir
15342 root_bindir='${root_prefix}/bin'
15343 root_sbindir='${root_prefix}/sbin'
15344 root_libdir='${root_prefix}/lib'
15345 root_sysconfdir='${root_prefix}/etc'
15347 if test "$bindir" != '${exec_prefix}/bin'; then
15348 root_bindir=$bindir
15349 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15350 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15352 if test "$sbindir" != '${exec_prefix}/sbin'; then
15353 root_sbindir=$sbindir
15354 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15355 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15357 if test "$libdir" != '${exec_prefix}/lib'; then
15358 root_libdir=$libdir
15359 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15360 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15362 if test "$sysconfdir" != '${prefix}/etc'; then
15363 root_sysconfdir=$sysconfdir
15364 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15365 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15372 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15373 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15374 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15393 rm -f conftest.$ac_objext conftest$ac_exeext
15394 if { (ac_try="$ac_link"
15395 case "(($ac_try" in
15396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_link") 2>conftest.er1
15402 grep -v '^ *+' conftest.er1 >conftest.err
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest$ac_exeext &&
15410 $as_test_x conftest$ac_exeext; then
15411 ac_cv_e2fsprogs_use_static=yes
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15416 ac_cv_e2fsprogs_use_static=no
15419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LDFLAGS=$SAVE_LDFLAGS
15426 ac_cv_e2fsprogs_use_static=no
15429 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15430 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15432 if test $ac_cv_e2fsprogs_use_static = yes; then
15433 LDFLAG_STATIC=-static
15438 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15439 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15440 cat >>confdefs.h <<\_ACEOF
15441 #define _INTL_REDIRECT_MACROS 1
15446 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15447 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15450 if test "$cross_compiling" = yes ; then
15453 DO_TEST_SUITE=check
15457 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15458 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15461 if test $cross_compiling = no; then
15462 BUILD_CFLAGS="$CFLAGS"
15463 BUILD_LDFLAGS="$LDFLAGS"
15470 test -d lib || mkdir lib
15471 test -d include || mkdir include
15472 test -d include/linux || mkdir include/linux
15473 test -d include/asm || mkdir include/asm
15474 for i in MCONFIG Makefile e2fsprogs.spec \
15475 util/Makefile util/subst.conf util/gen-tarball \
15476 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15477 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15478 lib/uuid/Makefile lib/uuid/uuid_types.h \
15479 lib/blkid/Makefile lib/blkid/blkid_types.h \
15480 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15481 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15482 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15483 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15484 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15485 if test -d `dirname ${srcdir}/$i` ; then
15486 outlist="$outlist $i"
15489 ac_config_files="$ac_config_files $outlist"
15491 cat >confcache <<\_ACEOF
15492 # This file is a shell script that caches the results of configure
15493 # tests run on this system so they can be shared between configure
15494 # scripts and configure runs, see configure's option --config-cache.
15495 # It is not useful on other systems. If it contains results you don't
15496 # want to keep, you may remove or edit it.
15498 # config.status only pays attention to the cache file if you give it
15499 # the --recheck option to rerun configure.
15501 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15503 # following values.
15507 # The following way of writing the cache mishandles newlines in values,
15508 # but we know of no workaround that is simple, portable, and efficient.
15509 # So, we kill variables containing newlines.
15510 # Ultrix sh set writes to stderr and can't be redirected directly,
15511 # and sets the high bit in the cache file unless we assign to the vars.
15513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15514 eval ac_val=\$$ac_var
15518 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15519 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15522 _ | IFS | as_nl) ;; #(
15523 *) $as_unset $ac_var ;;
15529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15530 *${as_nl}ac_space=\ *)
15531 # `set' does not quote correctly, so add quotes (double-quote
15532 # substitution turns \\\\ into \\, and sed turns \\ into \).
15535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15538 # `set' quotes correctly as required by POSIX, so do not add quotes.
15539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15553 if test -w "$cache_file"; then
15554 test "x$cache_file" != "x/dev/null" &&
15555 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15556 echo "$as_me: updating cache $cache_file" >&6;}
15557 cat confcache >$cache_file
15559 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15560 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15565 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15566 # Let make expand exec_prefix.
15567 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15569 # Transform confdefs.h into DEFS.
15570 # Protect against shell expansion while executing Makefile rules.
15571 # Protect against Makefile macro expansion.
15573 # If the first sed substitution is executed (which looks for macros that
15574 # take arguments), then branch to the quote section. Otherwise,
15575 # look for a macro that doesn't take arguments.
15579 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15581 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15585 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15598 DEFS=`sed -n "$ac_script" confdefs.h`
15603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15604 # 1. Remove the extension, and $U if already installed.
15605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15606 ac_i=`echo "$ac_i" | sed "$ac_script"`
15607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15608 # will be set to the directory where LIBOBJS objects are built.
15609 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15610 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15612 LIBOBJS=$ac_libobjs
15614 LTLIBOBJS=$ac_ltlibobjs
15618 : ${CONFIG_STATUS=./config.status}
15619 ac_clean_files_save=$ac_clean_files
15620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15623 cat >$CONFIG_STATUS <<_ACEOF
15625 # Generated by $as_me.
15626 # Run this file to recreate the current configuration.
15627 # Compiler output produced by configure, useful for debugging
15628 # configure, is in config.log if it exists.
15631 ac_cs_recheck=false
15633 SHELL=\${CONFIG_SHELL-$SHELL}
15636 cat >>$CONFIG_STATUS <<\_ACEOF
15637 ## --------------------- ##
15638 ## M4sh Initialization. ##
15639 ## --------------------- ##
15641 # Be more Bourne compatible
15642 DUALCASE=1; export DUALCASE # for MKS sh
15643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15646 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15647 # is contrary to our usage. Disable this feature.
15648 alias -g '${1+"$@"}'='"$@"'
15649 setopt NO_GLOB_SUBST
15651 case `(set -o) 2>/dev/null` in
15652 *posix*) set -o posix ;;
15661 # Avoid depending upon Character Ranges.
15662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15665 as_cr_digits='0123456789'
15666 as_cr_alnum=$as_cr_Letters$as_cr_digits
15668 # The user is always right.
15669 if test "${PATH_SEPARATOR+set}" != set; then
15670 echo "#! /bin/sh" >conf$$.sh
15671 echo "exit 0" >>conf$$.sh
15673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15681 # Support unset when possible.
15682 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15690 # We need space, tab and new line, in precisely that order. Quoting is
15691 # there to prevent editors from complaining about space-tab.
15692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15693 # splitting by setting IFS to empty value.)
15698 # Find who we are. Look in the path if we contain no directory separator.
15700 *[\\/]* ) as_myself=$0 ;;
15701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15702 for as_dir in $PATH
15705 test -z "$as_dir" && as_dir=.
15706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15712 # We did not find ourselves, most probably we were run as `sh COMMAND'
15713 # in which case we are not to be found in the path.
15714 if test "x$as_myself" = x; then
15717 if test ! -f "$as_myself"; then
15718 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15719 { (exit 1); exit 1; }
15722 # Work around bugs in pre-3.0 UWIN ksh.
15723 for as_var in ENV MAIL MAILPATH
15724 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15732 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15733 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15734 LC_TELEPHONE LC_TIME
15736 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15737 eval $as_var=C; export $as_var
15739 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15743 # Required to use basename.
15744 if expr a : '\(a\)' >/dev/null 2>&1 &&
15745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15752 as_basename=basename
15758 # Name of the executable.
15759 as_me=`$as_basename -- "$0" ||
15760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15761 X"$0" : 'X\(//\)$' \| \
15762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15764 sed '/^.*\/\([^/][^/]*\)\/*$/{
15783 as_lineno_1=$LINENO
15784 as_lineno_2=$LINENO
15785 test "x$as_lineno_1" != "x$as_lineno_2" &&
15786 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15788 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15789 # uniformly replaced by the line number. The first 'sed' inserts a
15790 # line-number line after each line using $LINENO; the second 'sed'
15791 # does the real work. The second script uses 'N' to pair each
15792 # line-number line with the line containing $LINENO, and appends
15793 # trailing '-' during substitution so that $LINENO is not a special
15794 # case at line end.
15795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15796 # scripts with optimization help from Paolo Bonzini. Blame Lee
15797 # E. McMahon (1931-1989) for sed's syntax. :-)
15809 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15812 ' >$as_me.lineno &&
15813 chmod +x "$as_me.lineno" ||
15814 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15815 { (exit 1); exit 1; }; }
15817 # Don't try to exec as it changes $[0], causing all sort of problems
15818 # (the dirname of $[0] is not the place where we might find the
15819 # original and so on. Autoconf is especially sensitive to this).
15820 . "./$as_me.lineno"
15821 # Exit status is that of the last command.
15826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15832 ECHO_C= ECHO_N= ECHO_T=
15833 case `echo -n x` in
15835 case `echo 'x\c'` in
15836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15843 if expr a : '\(a\)' >/dev/null 2>&1 &&
15844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15850 rm -f conf$$ conf$$.exe conf$$.file
15851 if test -d conf$$.dir; then
15852 rm -f conf$$.dir/conf$$.file
15858 if ln -s conf$$.file conf$$ 2>/dev/null; then
15860 # ... but there are two gotchas:
15861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15863 # In both cases, we have to default to `cp -p'.
15864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15866 elif ln conf$$.file conf$$ 2>/dev/null; then
15871 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15872 rmdir conf$$.dir 2>/dev/null
15874 if mkdir -p . 2>/dev/null; then
15877 test -d ./-p && rmdir ./-p
15881 if test -x / >/dev/null 2>&1; then
15882 as_test_x='test -x'
15884 if ls -dL / >/dev/null 2>&1; then
15891 if test -d "$1"; then
15897 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15898 ???[sx]*):;;*)false;;esac;fi
15902 as_executable_p=$as_test_x
15904 # Sed expression to map a string onto a valid CPP name.
15905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15907 # Sed expression to map a string onto a valid variable name.
15908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15913 # Save the log message, to keep $[0] and so on meaningful, and to
15914 # report actual input values of CONFIG_FILES etc. instead of their
15915 # values after options handling.
15917 This file was extended by $as_me, which was
15918 generated by GNU Autoconf 2.61. Invocation command line was
15920 CONFIG_FILES = $CONFIG_FILES
15921 CONFIG_HEADERS = $CONFIG_HEADERS
15922 CONFIG_LINKS = $CONFIG_LINKS
15923 CONFIG_COMMANDS = $CONFIG_COMMANDS
15926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15931 cat >>$CONFIG_STATUS <<_ACEOF
15932 # Files that config.status was made for.
15933 config_files="$ac_config_files"
15934 config_commands="$ac_config_commands"
15938 cat >>$CONFIG_STATUS <<\_ACEOF
15940 \`$as_me' instantiates files from templates according to the
15941 current configuration.
15943 Usage: $0 [OPTIONS] [FILE]...
15945 -h, --help print this help, then exit
15946 -V, --version print version number and configuration settings, then exit
15947 -q, --quiet do not print progress messages
15948 -d, --debug don't remove temporary files
15949 --recheck update $as_me by reconfiguring in the same conditions
15950 --file=FILE[:TEMPLATE]
15951 instantiate the configuration file FILE
15953 Configuration files:
15956 Configuration commands:
15959 Report bugs to <bug-autoconf@gnu.org>."
15962 cat >>$CONFIG_STATUS <<_ACEOF
15965 configured by $0, generated by GNU Autoconf 2.61,
15966 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15968 Copyright (C) 2006 Free Software Foundation, Inc.
15969 This config.status script is free software; the Free Software Foundation
15970 gives unlimited permission to copy, distribute and modify it."
15977 cat >>$CONFIG_STATUS <<\_ACEOF
15978 # If no file are specified by the user, then we need to provide default
15979 # value. By we need to know if files were specified by the user.
15985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15997 # Handling of the options.
15998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16001 echo "$ac_cs_version"; exit ;;
16002 --debug | --debu | --deb | --de | --d | -d )
16004 --file | --fil | --fi | --f )
16006 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16007 ac_need_defaults=false;;
16008 --he | --h | --help | --hel | -h )
16009 echo "$ac_cs_usage"; exit ;;
16010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16011 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16014 # This is an error.
16015 -*) { echo "$as_me: error: unrecognized option: $1
16016 Try \`$0 --help' for more information." >&2
16017 { (exit 1); exit 1; }; } ;;
16019 *) ac_config_targets="$ac_config_targets $1"
16020 ac_need_defaults=false ;;
16026 ac_configure_extra_args=
16028 if $ac_cs_silent; then
16030 ac_configure_extra_args="$ac_configure_extra_args --silent"
16034 cat >>$CONFIG_STATUS <<_ACEOF
16035 if \$ac_cs_recheck; then
16036 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16037 CONFIG_SHELL=$SHELL
16038 export CONFIG_SHELL
16039 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16043 cat >>$CONFIG_STATUS <<\_ACEOF
16047 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16048 ## Running $as_me. ##
16054 cat >>$CONFIG_STATUS <<_ACEOF
16058 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16059 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16061 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16062 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16063 LINGUAS="${LINGUAS-%UNSET%}"
16068 cat >>$CONFIG_STATUS <<\_ACEOF
16070 # Handling of arguments.
16071 for ac_config_target in $ac_config_targets
16073 case $ac_config_target in
16074 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16075 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16077 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16079 { (exit 1); exit 1; }; };;
16084 # If the user did not use the arguments to specify the items to instantiate,
16085 # then the envvar interface is used. Set only those that are not.
16086 # We use the long form for the default assignment because of an extremely
16087 # bizarre bug on SunOS 4.1.3.
16088 if $ac_need_defaults; then
16089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16093 # Have a temporary directory for convenience. Make it in the build tree
16094 # simply because there is no reason against having it here, and in addition,
16095 # creating and moving files from /tmp can sometimes cause problems.
16096 # Hook for its removal unless debugging.
16097 # Note that there is a small window in which the directory will not be cleaned:
16098 # after its creation but before its name has been assigned to `$tmp'.
16102 trap 'exit_status=$?
16103 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16105 trap '{ (exit 1); exit 1; }' 1 2 13 15
16107 # Create a (secure) tmp directory for tmp files.
16110 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16111 test -n "$tmp" && test -d "$tmp"
16114 tmp=./conf$$-$RANDOM
16115 (umask 077 && mkdir "$tmp")
16118 echo "$me: cannot create a temporary directory in ." >&2
16119 { (exit 1); exit 1; }
16123 # Set up the sed scripts for CONFIG_FILES section.
16126 # No need to generate the scripts if there are no CONFIG_FILES.
16127 # This happens for instance when ./config.status config.h
16128 if test -n "$CONFIG_FILES"; then
16132 # Create sed commands to just substitute file output variables.
16134 # Remaining file output variables are in a fragment that also has non-file
16140 for ac_last_try in false false false false false :; do
16141 cat >conf$$subs.sed <<_ACEOF
16142 SHELL!$SHELL$ac_delim
16143 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16144 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16145 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16146 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16147 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16148 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16149 exec_prefix!$exec_prefix$ac_delim
16150 prefix!$prefix$ac_delim
16151 program_transform_name!$program_transform_name$ac_delim
16152 bindir!$bindir$ac_delim
16153 sbindir!$sbindir$ac_delim
16154 libexecdir!$libexecdir$ac_delim
16155 datarootdir!$datarootdir$ac_delim
16156 datadir!$datadir$ac_delim
16157 sysconfdir!$sysconfdir$ac_delim
16158 sharedstatedir!$sharedstatedir$ac_delim
16159 localstatedir!$localstatedir$ac_delim
16160 includedir!$includedir$ac_delim
16161 oldincludedir!$oldincludedir$ac_delim
16162 docdir!$docdir$ac_delim
16163 infodir!$infodir$ac_delim
16164 htmldir!$htmldir$ac_delim
16165 dvidir!$dvidir$ac_delim
16166 pdfdir!$pdfdir$ac_delim
16167 psdir!$psdir$ac_delim
16168 libdir!$libdir$ac_delim
16169 localedir!$localedir$ac_delim
16170 mandir!$mandir$ac_delim
16171 DEFS!$DEFS$ac_delim
16172 ECHO_C!$ECHO_C$ac_delim
16173 ECHO_N!$ECHO_N$ac_delim
16174 ECHO_T!$ECHO_T$ac_delim
16175 LIBS!$LIBS$ac_delim
16176 build_alias!$build_alias$ac_delim
16177 host_alias!$host_alias$ac_delim
16178 target_alias!$target_alias$ac_delim
16179 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16180 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16181 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16182 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16183 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16184 build!$build$ac_delim
16185 build_cpu!$build_cpu$ac_delim
16186 build_vendor!$build_vendor$ac_delim
16187 build_os!$build_os$ac_delim
16188 host!$host$ac_delim
16189 host_cpu!$host_cpu$ac_delim
16190 host_vendor!$host_vendor$ac_delim
16191 host_os!$host_os$ac_delim
16193 CFLAGS!$CFLAGS$ac_delim
16194 LDFLAGS!$LDFLAGS$ac_delim
16195 CPPFLAGS!$CPPFLAGS$ac_delim
16196 ac_ct_CC!$ac_ct_CC$ac_delim
16197 EXEEXT!$EXEEXT$ac_delim
16198 OBJEXT!$OBJEXT$ac_delim
16201 GREP!$GREP$ac_delim
16202 EGREP!$EGREP$ac_delim
16203 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16204 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16205 HTREE_CMT!$HTREE_CMT$ac_delim
16206 ELF_CMT!$ELF_CMT$ac_delim
16207 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16208 PROFILE_CMT!$PROFILE_CMT$ac_delim
16209 CHECKER_CMT!$CHECKER_CMT$ac_delim
16210 LIB_EXT!$LIB_EXT$ac_delim
16211 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16212 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16213 LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim
16214 PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim
16217 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16219 elif $ac_last_try; then
16220 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16221 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16222 { (exit 1); exit 1; }; }
16224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16228 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16229 if test -n "$ac_eof"; then
16230 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16231 ac_eof=`expr $ac_eof + 1`
16234 cat >>$CONFIG_STATUS <<_ACEOF
16235 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16237 /^[ ]*@MCONFIG@[ ]*$/{
16241 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16245 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16249 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16250 r $MAKEFILE_PROFILE
16253 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16254 r $MAKEFILE_CHECKER
16257 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16258 r $MAKEFILE_LIBRARY
16261 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16262 r $ASM_TYPES_HEADER
16265 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16266 r $PUBLIC_CONFIG_HEADER
16271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16272 s/^/s,@/; s/!/@,|#_!!_#|/
16275 s/'"$ac_delim"'$/,g/; t
16277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16278 ' >>$CONFIG_STATUS <conf$$subs.sed
16279 rm -f conf$$subs.sed
16280 cat >>$CONFIG_STATUS <<_ACEOF
16286 for ac_last_try in false false false false false :; do
16287 cat >conf$$subs.sed <<_ACEOF
16288 TEST_IO_CMT!$TEST_IO_CMT$ac_delim
16289 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16290 IMAGER_CMT!$IMAGER_CMT$ac_delim
16291 RESIZER_CMT!$RESIZER_CMT$ac_delim
16292 FSCK_PROG!$FSCK_PROG$ac_delim
16293 FSCK_MAN!$FSCK_MAN$ac_delim
16294 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16295 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16296 UUIDD_CMT!$UUIDD_CMT$ac_delim
16297 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16298 PACKAGE!$PACKAGE$ac_delim
16299 VERSION!$VERSION$ac_delim
16300 SET_MAKE!$SET_MAKE$ac_delim
16301 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16302 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16303 INSTALL_DATA!$INSTALL_DATA$ac_delim
16304 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16305 USE_NLS!$USE_NLS$ac_delim
16306 MSGFMT!$MSGFMT$ac_delim
16307 GMSGFMT!$GMSGFMT$ac_delim
16308 XGETTEXT!$XGETTEXT$ac_delim
16309 MSGMERGE!$MSGMERGE$ac_delim
16310 RANLIB!$RANLIB$ac_delim
16311 ALLOCA!$ALLOCA$ac_delim
16312 GLIBC21!$GLIBC21$ac_delim
16313 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16314 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16315 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16316 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16317 LIBICONV!$LIBICONV$ac_delim
16318 LTLIBICONV!$LTLIBICONV$ac_delim
16319 INTLBISON!$INTLBISON$ac_delim
16320 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16321 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16322 CATOBJEXT!$CATOBJEXT$ac_delim
16323 DATADIRNAME!$DATADIRNAME$ac_delim
16324 INSTOBJEXT!$INSTOBJEXT$ac_delim
16325 GENCAT!$GENCAT$ac_delim
16326 INTLOBJS!$INTLOBJS$ac_delim
16327 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16328 INTLLIBS!$INTLLIBS$ac_delim
16329 LIBINTL!$LIBINTL$ac_delim
16330 LTLIBINTL!$LTLIBINTL$ac_delim
16331 POSUB!$POSUB$ac_delim
16332 BINARY_TYPE!$BINARY_TYPE$ac_delim
16334 LN_S!$LN_S$ac_delim
16338 CHMOD!$CHMOD$ac_delim
16341 PERL!$PERL$ac_delim
16342 LDCONFIG!$LDCONFIG$ac_delim
16344 STRIP!$STRIP$ac_delim
16345 MAKEINFO!$MAKEINFO$ac_delim
16346 BUILD_CC!$BUILD_CC$ac_delim
16347 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16348 SIZEOF_INT!$SIZEOF_INT$ac_delim
16349 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16350 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16351 SOCKET_LIB!$SOCKET_LIB$ac_delim
16352 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16353 SEM_INIT_LIB!$SEM_INIT_LIB$ac_delim
16354 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16355 LINUX_CMT!$LINUX_CMT$ac_delim
16356 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16357 UNIX_CMT!$UNIX_CMT$ac_delim
16358 root_prefix!$root_prefix$ac_delim
16359 root_bindir!$root_bindir$ac_delim
16360 root_sbindir!$root_sbindir$ac_delim
16361 root_libdir!$root_libdir$ac_delim
16362 root_sysconfdir!$root_sysconfdir$ac_delim
16363 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16364 SS_DIR!$SS_DIR$ac_delim
16365 ET_DIR!$ET_DIR$ac_delim
16366 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16367 INTL_FLAGS!$INTL_FLAGS$ac_delim
16368 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16369 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16370 LIBOBJS!$LIBOBJS$ac_delim
16371 LTLIBOBJS!$LTLIBOBJS$ac_delim
16374 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
16376 elif $ac_last_try; then
16377 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16378 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16379 { (exit 1); exit 1; }; }
16381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16385 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16386 if test -n "$ac_eof"; then
16387 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16388 ac_eof=`expr $ac_eof + 1`
16391 cat >>$CONFIG_STATUS <<_ACEOF
16392 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16396 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16397 s/^/s,@/; s/!/@,|#_!!_#|/
16400 s/'"$ac_delim"'$/,g/; t
16402 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16403 ' >>$CONFIG_STATUS <conf$$subs.sed
16404 rm -f conf$$subs.sed
16405 cat >>$CONFIG_STATUS <<_ACEOF
16412 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16413 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16414 # trailing colons and then remove the whole line if VPATH becomes empty
16415 # (actually we leave an empty line to preserve line numbers).
16416 if test "x$srcdir" = x.; then
16417 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16418 s/:*\$(srcdir):*/:/
16419 s/:*\${srcdir}:*/:/
16421 s/^\([^=]*=[ ]*\):*/\1/
16427 cat >>$CONFIG_STATUS <<\_ACEOF
16428 fi # test -n "$CONFIG_FILES"
16431 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16434 :[FHLC]) ac_mode=$ac_tag; continue;;
16436 case $ac_mode$ac_tag in
16438 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16439 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16440 { (exit 1); exit 1; }; };;
16441 :[FH]-) ac_tag=-:-;;
16442 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16459 -) ac_f="$tmp/stdin";;
16460 *) # Look for the file first in the build tree, then in the source tree
16461 # (if the path is not absolute). The absolute path cannot be DOS-style,
16462 # because $ac_f cannot contain `:'.
16466 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16468 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16469 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16470 { (exit 1); exit 1; }; };;
16472 ac_file_inputs="$ac_file_inputs $ac_f"
16475 # Let's still pretend it is `configure' which instantiates (i.e., don't
16476 # use $as_me), people would be surprised to read:
16477 # /* config.h. Generated by config.status. */
16478 configure_input="Generated from "`IFS=:
16479 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16480 if test x"$ac_file" != x-; then
16481 configure_input="$ac_file. $configure_input"
16482 { echo "$as_me:$LINENO: creating $ac_file" >&5
16483 echo "$as_me: creating $ac_file" >&6;}
16487 *:-:* | *:-) cat >"$tmp/stdin";;
16492 ac_dir=`$as_dirname -- "$ac_file" ||
16493 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16494 X"$ac_file" : 'X\(//\)[^/]' \| \
16495 X"$ac_file" : 'X\(//\)$' \| \
16496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16502 /^X\(\/\/\)[^/].*/{
16517 -*) as_dir=./$as_dir;;
16519 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16523 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16524 *) as_qdir=$as_dir;;
16526 as_dirs="'$as_qdir' $as_dirs"
16527 as_dir=`$as_dirname -- "$as_dir" ||
16528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16529 X"$as_dir" : 'X\(//\)[^/]' \| \
16530 X"$as_dir" : 'X\(//\)$' \| \
16531 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16537 /^X\(\/\/\)[^/].*/{
16550 test -d "$as_dir" && break
16552 test -z "$as_dirs" || eval "mkdir $as_dirs"
16553 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16554 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16555 { (exit 1); exit 1; }; }; }
16559 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16561 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16562 # A ".." for each directory in $ac_dir_suffix.
16563 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16564 case $ac_top_builddir_sub in
16565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16569 ac_abs_top_builddir=$ac_pwd
16570 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16571 # for backward compatibility:
16572 ac_top_builddir=$ac_top_build_prefix
16575 .) # We are building in place.
16577 ac_top_srcdir=$ac_top_builddir_sub
16578 ac_abs_top_srcdir=$ac_pwd ;;
16579 [\\/]* | ?:[\\/]* ) # Absolute name.
16580 ac_srcdir=$srcdir$ac_dir_suffix;
16581 ac_top_srcdir=$srcdir
16582 ac_abs_top_srcdir=$srcdir ;;
16583 *) # Relative name.
16584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16585 ac_top_srcdir=$ac_top_build_prefix$srcdir
16586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16588 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16598 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16599 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16603 cat >>$CONFIG_STATUS <<\_ACEOF
16604 # If the template does not know about datarootdir, expand it.
16605 # FIXME: This hack should be removed a few years after 2.60.
16606 ac_datarootdir_hack=; ac_datarootdir_seen=
16608 case `sed -n '/datarootdir/ {
16617 ' $ac_file_inputs` in
16618 *datarootdir*) ac_datarootdir_seen=yes;;
16619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16620 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16621 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16623 cat >>$CONFIG_STATUS <<_ACEOF
16624 ac_datarootdir_hack='
16625 s&@datadir@&$datadir&g
16626 s&@docdir@&$docdir&g
16627 s&@infodir@&$infodir&g
16628 s&@localedir@&$localedir&g
16629 s&@mandir@&$mandir&g
16630 s&\\\${datarootdir}&$datarootdir&g' ;;
16634 # Neutralize VPATH when `$srcdir' = `.'.
16635 # Shell code in configure.ac might set extrasub.
16636 # FIXME: do we really want to maintain this feature?
16637 cat >>$CONFIG_STATUS <<_ACEOF
16641 cat >>$CONFIG_STATUS <<\_ACEOF
16643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16644 s&@configure_input@&$configure_input&;t t
16645 s&@top_builddir@&$ac_top_builddir_sub&;t t
16646 s&@srcdir@&$ac_srcdir&;t t
16647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16648 s&@top_srcdir@&$ac_top_srcdir&;t t
16649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16650 s&@builddir@&$ac_builddir&;t t
16651 s&@abs_builddir@&$ac_abs_builddir&;t t
16652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16653 s&@INSTALL@&$ac_INSTALL&;t t
16654 $ac_datarootdir_hack
16655 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16660 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16661 which seems to be undefined. Please make sure it is defined." >&5
16662 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16663 which seems to be undefined. Please make sure it is defined." >&2;}
16667 -) cat "$tmp/out"; rm -f "$tmp/out";;
16668 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16673 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16674 echo "$as_me: executing $ac_file commands" >&6;}
16679 case $ac_file$ac_mode in
16681 for ac_file in $CONFIG_FILES; do
16682 # Support "outfile[:infile[:infile...]]"
16684 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16686 # PO directories have a Makefile.in generated from Makefile.in.in.
16687 case "$ac_file" in */Makefile.in)
16688 # Adjust a relative srcdir.
16689 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16690 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16691 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16692 # In autoconf-2.13 it is called $ac_given_srcdir.
16693 # In autoconf-2.50 it is called $srcdir.
16694 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16695 case "$ac_given_srcdir" in
16696 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16697 /*) top_srcdir="$ac_given_srcdir" ;;
16698 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16700 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16701 rm -f "$ac_dir/POTFILES"
16702 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16703 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16704 POMAKEFILEDEPS="POTFILES.in"
16705 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16706 # on $ac_dir but don't depend on user-specified configuration
16708 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16709 # The LINGUAS file contains the set of available languages.
16710 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16711 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16713 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16714 # Hide the ALL_LINGUAS assigment from automake.
16715 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16716 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16718 # The set of available languages was given in configure.in.
16719 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16722 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16723 # Compute UPDATEPOFILES
16724 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16725 # Compute DUMMYPOFILES
16726 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16728 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16729 case "$ac_given_srcdir" in
16731 *) srcdirpre='$(srcdir)/' ;;
16737 for lang in $ALL_LINGUAS; do
16738 POFILES="$POFILES $srcdirpre$lang.po"
16739 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16740 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16741 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16743 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16744 # environment variable.
16746 if test -n "$ALL_LINGUAS"; then
16747 for presentlang in $ALL_LINGUAS; do
16749 if test "%UNSET%" != "$LINGUAS"; then
16750 desiredlanguages="$LINGUAS"
16752 desiredlanguages="$ALL_LINGUAS"
16754 for desiredlang in $desiredlanguages; do
16755 # Use the presentlang catalog if desiredlang is
16756 # a. equal to presentlang, or
16757 # b. a variant of presentlang (because in this case,
16758 # presentlang can be used as a fallback for messages
16759 # which are not translated in the desiredlang catalog).
16760 case "$desiredlang" in
16761 "$presentlang"*) useit=yes;;
16764 if test $useit = yes; then
16765 INST_LINGUAS="$INST_LINGUAS $presentlang"
16770 if test -n "$INST_LINGUAS"; then
16771 for lang in $INST_LINGUAS; do
16772 CATALOGS="$CATALOGS $lang.gmo"
16775 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16776 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"
16777 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16778 if test -f "$f"; then
16780 *.orig | *.bak | *~) ;;
16781 *) cat "$f" >> "$ac_dir/Makefile" ;;
16794 { (exit 0); exit 0; }
16796 chmod +x $CONFIG_STATUS
16797 ac_clean_files=$ac_clean_files_save
16800 # configure is writing to config.log, and then calls config.status.
16801 # config.status does its own redirection, appending to config.log.
16802 # Unfortunately, on DOS this fails, as config.log is still kept open
16803 # by configure, so config.status won't be able to write to it; its
16804 # output is simply discarded. So we exec the FD to /dev/null,
16805 # effectively closing config.log, so it can be properly (re)opened and
16806 # appended to by config.status. When coming back to configure, we
16807 # need to make the FD available again.
16808 if test "$no_create" != yes; then
16810 ac_config_status_args=
16811 test "$silent" = yes &&
16812 ac_config_status_args="$ac_config_status_args --quiet"
16814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16817 # would make configure fail if this is the last instruction.
16818 $ac_cs_success || { (exit 1); exit 1; }
16821 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi