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
699 STATIC_DEVMAPPER_LIBS
700 STATIC_BLKID_DEVMAPPER_LIBS
725 BUILD_INCLUDED_LIBINTL
732 INTL_LIBTOOL_SUFFIX_PREFIX
776 ac_subst_files='MCONFIG
783 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 if test -n "$ac_init_help"; then
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-maintainer-mode enable makefile rules useful for maintainers
1366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
1368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
1375 --disable-swapfs disable support of legacy byte-swapped filesystems
1376 --disable-debugfs disable support of debugfs program
1377 --disable-imager disable support of e2image program
1378 --disable-resizer disable support of e2resize program
1379 --enable-fsck build fsck wrapper program
1380 --enable-e2initrd-helper build e2initrd-helper program
1381 --enable-blkid-devmapper build with device-mapper support
1382 --disable-tls disable use of thread local support
1383 --disable-uuidd disable building the uuid daemon
1384 --disable-nls do not use Native Language Support
1385 --disable-rpath do not hardcode runtime library paths
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1390 --with-diet-libc use diet libc
1391 --with-cc=COMPILER select compiler to use
1392 --with-linker=LINKER select linker to use
1393 --with-ccopts=CCOPTS select compiler command line options
1394 --with-ldopts=LDOPTS select linker command line options
1395 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1396 --with-gnu-ld assume the C compiler uses GNU ld default=no
1397 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1398 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1399 --with-included-gettext use the GNU gettext library included here
1400 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1401 --without-libintl-prefix don't search for libintl in includedir and libdir
1403 Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
1408 LIBS libraries to pass to the linker, e.g. -l<library>
1409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
1412 PKG_CONFIG path to pkg-config utility
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" || continue
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1444 .) # We are building in place.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1478 generated by GNU Autoconf 2.61
1480 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1481 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1487 cat >config.log <<_ACEOF
1488 This file contains any messages produced by compilers while
1489 running configure, to aid debugging if configure makes a mistake.
1491 It was created by $as_me, which was
1492 generated by GNU Autoconf 2.61. Invocation command line was
1504 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1505 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1506 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1507 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1508 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1511 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1513 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1514 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1515 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1516 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1517 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1518 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1519 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir=.
1528 echo "PATH: $as_dir"
1544 # Keep a trace of the command line.
1545 # Strip out --no-create and --no-recursion so they do not pile up.
1546 # Strip out --silent because we don't want to record it for future runs.
1547 # Also quote any args containing shell meta-characters.
1548 # Make two passes to allow for proper duplicate-argument suppression.
1552 ac_must_keep_next=false
1558 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1560 | -silent | --silent | --silen | --sile | --sil)
1563 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1566 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1568 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1569 if test $ac_must_keep_next = true; then
1570 ac_must_keep_next=false # Got value, back to normal.
1573 *=* | --config-cache | -C | -disable-* | --disable-* \
1574 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1575 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1576 | -with-* | --with-* | -without-* | --without-* | --x)
1577 case "$ac_configure_args0 " in
1578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1581 -* ) ac_must_keep_next=true ;;
1584 ac_configure_args="$ac_configure_args '$ac_arg'"
1589 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1590 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1592 # When interrupted or exit'd, cleanup temporary files, and complete
1593 # config.log. We remove comments because anyway the quotes in there
1594 # would cause problems or look ugly.
1595 # WARNING: Use '\'' to represent an apostrophe within the trap.
1596 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1597 trap 'exit_status=$?
1598 # Save into config.log some information that might help in debugging.
1603 ## ---------------- ##
1604 ## Cache variables. ##
1605 ## ---------------- ##
1608 # The following way of writing the cache mishandles newlines in values,
1610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1611 eval ac_val=\$$ac_var
1615 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1616 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1619 _ | IFS | as_nl) ;; #(
1620 *) $as_unset $ac_var ;;
1625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1626 *${as_nl}ac_space=\ *)
1628 "s/'\''/'\''\\\\'\'''\''/g;
1629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1640 ## ----------------- ##
1641 ## Output variables. ##
1642 ## ----------------- ##
1645 for ac_var in $ac_subst_vars
1647 eval ac_val=\$$ac_var
1649 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 echo "$ac_var='\''$ac_val'\''"
1655 if test -n "$ac_subst_files"; then
1657 ## ------------------- ##
1658 ## File substitutions. ##
1659 ## ------------------- ##
1662 for ac_var in $ac_subst_files
1664 eval ac_val=\$$ac_var
1666 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668 echo "$ac_var='\''$ac_val'\''"
1673 if test -s confdefs.h; then
1683 test "$ac_signal" != 0 &&
1684 echo "$as_me: caught signal $ac_signal"
1685 echo "$as_me: exit $exit_status"
1687 rm -f core *.core core.conftest.* &&
1688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1691 for ac_signal in 1 2 13 15; do
1692 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1696 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1697 rm -f -r conftest* confdefs.h
1699 # Predefined preprocessor variables.
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_NAME "$PACKAGE_NAME"
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_STRING "$PACKAGE_STRING"
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1726 # Let the site file select an alternate cache file if it wants to.
1727 # Prefer explicitly selected file to automatically selected ones.
1728 if test -n "$CONFIG_SITE"; then
1729 set x "$CONFIG_SITE"
1730 elif test "x$prefix" != xNONE; then
1731 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1733 set x "$ac_default_prefix/share/config.site" \
1734 "$ac_default_prefix/etc/config.site"
1739 if test -r "$ac_site_file"; then
1740 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741 echo "$as_me: loading site script $ac_site_file" >&6;}
1742 sed 's/^/| /' "$ac_site_file" >&5
1747 if test -r "$cache_file"; then
1748 # Some versions of bash will fail to source /dev/null (special
1749 # files actually), so we avoid doing that.
1750 if test -f "$cache_file"; then
1751 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752 echo "$as_me: loading cache $cache_file" >&6;}
1754 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755 *) . "./$cache_file";;
1759 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760 echo "$as_me: creating cache $cache_file" >&6;}
1764 # Check that the precious variables saved in the cache have kept the same
1766 ac_cache_corrupted=false
1767 for ac_var in $ac_precious_vars; do
1768 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769 eval ac_new_set=\$ac_env_${ac_var}_set
1770 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771 eval ac_new_val=\$ac_env_${ac_var}_value
1772 case $ac_old_set,$ac_new_set in
1774 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1778 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1783 if test "x$ac_old_val" != "x$ac_new_val"; then
1784 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1787 echo "$as_me: former value: $ac_old_val" >&2;}
1788 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1789 echo "$as_me: current value: $ac_new_val" >&2;}
1790 ac_cache_corrupted=:
1793 # Pass precious variables to config.status.
1794 if test "$ac_new_set" = set; then
1796 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 *) ac_arg=$ac_var=$ac_new_val ;;
1799 case " $ac_configure_args " in
1800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1801 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1805 if $ac_cache_corrupted; then
1806 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1807 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1808 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1809 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1810 { (exit 1); exit 1; }; }
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1838 for ac_dir in config "$srcdir"/config; do
1839 if test -f "$ac_dir/install-sh"; then
1841 ac_install_sh="$ac_aux_dir/install-sh -c"
1843 elif test -f "$ac_dir/install.sh"; then
1845 ac_install_sh="$ac_aux_dir/install.sh -c"
1847 elif test -f "$ac_dir/shtool"; then
1849 ac_install_sh="$ac_aux_dir/shtool install -c"
1853 if test -z "$ac_aux_dir"; then
1854 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1855 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1856 { (exit 1); exit 1; }; }
1859 # These three variables are undocumented and unsupported,
1860 # and are intended to be withdrawn in a future Autoconf release.
1861 # They can cause serious problems if a builder's source tree is in a directory
1862 # whose full name contains unusual characters.
1863 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1864 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1865 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1871 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1872 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1873 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1875 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1876 MONTH=`echo $DATE | awk -F- '{print $2}'`
1877 YEAR=`echo $DATE | awk -F- '{print $3}'`
1879 if expr $YEAR ">" 1900 > /dev/null ; then
1880 E2FSPROGS_YEAR=$YEAR
1881 elif expr $YEAR ">" 90 >/dev/null ; then
1882 E2FSPROGS_YEAR=19$YEAR
1884 E2FSPROGS_YEAR=20$YEAR
1888 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1889 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1890 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1891 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1892 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1893 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1894 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1895 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1896 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1897 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1898 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1899 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1900 *) echo "Unknown month $MONTH??" ;;
1903 base_ver=`echo $E2FSPROGS_VERSION | \
1904 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1906 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1908 case $E2FSPROGS_VERSION in
1910 pre_vers=`echo $base_ver 0.01 - p | dc`
1911 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1914 E2FSPROGS_PKGVER="$base_ver"
1918 unset DATE MONTH YEAR base_ver pre_vers date_spec
1919 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1920 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1926 # Make sure we can run config.sub.
1927 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1928 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1929 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1930 { (exit 1); exit 1; }; }
1932 { echo "$as_me:$LINENO: checking build system type" >&5
1933 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1934 if test "${ac_cv_build+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 ac_build_alias=$build_alias
1938 test "x$ac_build_alias" = x &&
1939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1940 test "x$ac_build_alias" = x &&
1941 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1942 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1943 { (exit 1); exit 1; }; }
1944 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1945 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1946 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1947 { (exit 1); exit 1; }; }
1950 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1951 echo "${ECHO_T}$ac_cv_build" >&6; }
1952 case $ac_cv_build in
1954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1955 echo "$as_me: error: invalid value of canonical build" >&2;}
1956 { (exit 1); exit 1; }; };;
1959 ac_save_IFS=$IFS; IFS='-'
1965 # Remember, the first character of IFS is used to create $*,
1966 # except with old shells:
1969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1972 { echo "$as_me:$LINENO: checking host system type" >&5
1973 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1974 if test "${ac_cv_host+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test "x$host_alias" = x; then
1978 ac_cv_host=$ac_cv_build
1980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1987 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988 echo "${ECHO_T}$ac_cv_host" >&6; }
1991 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1992 echo "$as_me: error: invalid value of canonical host" >&2;}
1993 { (exit 1); exit 1; }; };;
1996 ac_save_IFS=$IFS; IFS='-'
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2006 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2010 # Check whether --with-diet-libc was given.
2011 if test "${with_diet_libc+set}" = set; then
2012 withval=$with_diet_libc; CC="diet cc -nostdinc"
2013 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2014 echo "${ECHO_T}CC=$CC" >&6; }
2017 # Check whether --with-cc was given.
2018 if test "${with_cc+set}" = set; then
2019 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2020 echo "${ECHO_T}CC=$withval" >&6; }
2023 if test -z "$CC" ; then CC=cc; fi
2024 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2025 echo "${ECHO_T}CC defaults to $CC" >&6; }
2030 ac_cpp='$CPP $CPPFLAGS'
2031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 if test -n "$CC"; then
2064 { echo "$as_me:$LINENO: result: $CC" >&5
2065 echo "${ECHO_T}$CC" >&6; }
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2073 if test -z "$ac_cv_prog_CC"; then
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076 set dummy gcc; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_ac_ct_CC="gcc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6; }
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2111 if test "x$ac_ct_CC" = x; then
2114 case $cross_compiling:$ac_tool_warned in
2116 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet. If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&5
2119 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2120 whose name does not start with the host triplet. If you think this
2121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2122 ac_tool_warned=yes ;;
2130 if test -z "$CC"; then
2131 if test -n "$ac_tool_prefix"; then
2132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2133 set dummy ${ac_tool_prefix}cc; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 if test -n "$CC"; then
2161 { echo "$as_me:$LINENO: result: $CC" >&5
2162 echo "${ECHO_T}$CC" >&6; }
2164 { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2171 if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173 set dummy cc; ac_word=$2
2174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2206 if test $# != 0; then
2207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2217 if test -n "$CC"; then
2218 { echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6; }
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2227 if test -z "$CC"; then
2228 if test -n "$ac_tool_prefix"; then
2229 for ac_prog in cl.exe
2231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 if test -n "$CC"; then
2260 { echo "$as_me:$LINENO: result: $CC" >&5
2261 echo "${ECHO_T}$CC" >&6; }
2263 { echo "$as_me:$LINENO: result: no" >&5
2264 echo "${ECHO_T}no" >&6; }
2268 test -n "$CC" && break
2271 if test -z "$CC"; then
2273 for ac_prog in cl.exe
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276 set dummy $ac_prog; ac_word=$2
2277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 ac_cv_prog_ac_ct_CC="$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303 if test -n "$ac_ct_CC"; then
2304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305 echo "${ECHO_T}$ac_ct_CC" >&6; }
2307 { echo "$as_me:$LINENO: result: no" >&5
2308 echo "${ECHO_T}no" >&6; }
2312 test -n "$ac_ct_CC" && break
2315 if test "x$ac_ct_CC" = x; then
2318 case $cross_compiling:$ac_tool_warned in
2320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&5
2323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet. If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326 ac_tool_warned=yes ;;
2335 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: no acceptable C compiler found in \$PATH
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2341 # Provide some information about the compiler.
2342 echo "$as_me:$LINENO: checking for C compiler version" >&5
2343 ac_compiler=`set X $ac_compile; echo $2`
2344 { (ac_try="$ac_compiler --version >&5"
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compiler --version >&5") 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2354 { (ac_try="$ac_compiler -v >&5"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler -v >&5") 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
2364 { (ac_try="$ac_compiler -V >&5"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -V >&5") 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2375 cat >conftest.$ac_ext <<_ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2390 ac_clean_files_save=$ac_clean_files
2391 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392 # Try to create an executable without -o first, disregard a.out.
2393 # It will help us diagnose broken compilers, and finding out an intuition
2395 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2396 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2397 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2399 # List of possible output files, starting from the most likely.
2400 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2401 # only as a last resort. b.out is created by i960 compilers.
2402 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2404 # The IRIX 6 linker writes into existing files which may not be
2405 # executable, retaining their permissions. Remove them first so a
2406 # subsequent execution test works.
2408 for ac_file in $ac_files
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2417 if { (ac_try="$ac_link_default"
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_link_default") 2>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; then
2427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2430 # so that the user can short-circuit this test for compilers unknown to
2432 for ac_file in $ac_files ''
2434 test -f "$ac_file" || continue
2436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2439 # We found the default executable, but exeext='' is most
2443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447 # We set ac_cv_exeext here because the later test for it is not
2448 # safe: cross compilers may not add the suffix if given an `-o'
2449 # argument, so we may need to know it at that point already.
2450 # Even if this section looks crufty: it has the advantage of
2457 test "$ac_cv_exeext" = no && ac_cv_exeext=
2463 { echo "$as_me:$LINENO: result: $ac_file" >&5
2464 echo "${ECHO_T}$ac_file" >&6; }
2465 if test -z "$ac_file"; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: C compiler cannot create executables
2472 See \`config.log' for more details." >&2;}
2473 { (exit 77); exit 77; }; }
2476 ac_exeext=$ac_cv_exeext
2478 # Check that the compiler produces executables we can run. If not, either
2479 # the compiler is broken, or we cross compile.
2480 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2481 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2482 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2483 # If not cross compiling, check that we can run a simple program.
2484 if test "$cross_compiling" != yes; then
2485 if { ac_try='./$ac_file'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2497 if test "$cross_compiling" = maybe; then
2500 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2510 { echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6; }
2513 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2514 ac_clean_files=$ac_clean_files_save
2515 # Check that the compiler produces executables we can run. If not, either
2516 # the compiler is broken, or we cross compile.
2517 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2518 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2519 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2520 echo "${ECHO_T}$cross_compiling" >&6; }
2522 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2523 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2524 if { (ac_try="$ac_link"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_link") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536 # work properly (i.e., refer to `conftest.exe'), while it won't with
2538 for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2548 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2551 See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2555 rm -f conftest$ac_cv_exeext
2556 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2557 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2559 rm -f conftest.$ac_ext
2560 EXEEXT=$ac_cv_exeext
2562 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2564 if test "${ac_cv_objext+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2582 rm -f conftest.o conftest.obj
2583 if { (ac_try="$ac_compile"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 for ac_file in conftest.o conftest.obj conftest.*; do
2594 test -f "$ac_file" || continue;
2596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608 See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2614 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615 echo "${ECHO_T}$ac_cv_objext" >&6; }
2616 OBJEXT=$ac_cv_objext
2618 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (ac_try="$ac_compile"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
2650 grep -v '^ *+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2670 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2672 GCC=`test $ac_compiler_gnu = yes && echo yes`
2673 ac_test_CFLAGS=${CFLAGS+set}
2674 ac_save_CFLAGS=$CFLAGS
2675 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 ac_save_c_werror_flag=$ac_c_werror_flag
2681 ac_c_werror_flag=yes
2684 cat >conftest.$ac_ext <<_ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
2708 grep -v '^ *+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
2718 echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2722 cat >conftest.$ac_ext <<_ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 rm -f conftest.$ac_objext
2738 if { (ac_try="$ac_compile"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2746 grep -v '^ *+' conftest.er1 >conftest.err
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 ac_c_werror_flag=$ac_save_c_werror_flag
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
2795 echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2810 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2812 if test "$ac_test_CFLAGS" = set; then
2813 CFLAGS=$ac_save_CFLAGS
2814 elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2821 if test "$GCC" = yes; then
2827 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2828 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_cc_c89+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 ac_cv_prog_cc_c89=no
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2842 #include <sys/types.h>
2843 #include <sys/stat.h>
2844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845 struct buf { int x; };
2846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847 static char *e (p, i)
2853 static char *f (char * (*g) (char **, int), char **p, ...)
2858 s = g (p, va_arg (v,int));
2863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
2866 as 'x'. The following induces an error, until -std is added to get
2867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
2869 that's true only with -std. */
2870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873 inside strings and character constants. */
2875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2877 int test (int i, double x);
2878 struct s1 {int (*f) (int a);};
2879 struct s2 {int (*f) (double a);};
2880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
2896 if { (ac_try="$ac_compile"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>conftest.er1
2904 grep -v '^ *+' conftest.er1 >conftest.err
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest.$ac_objext; then
2912 ac_cv_prog_cc_c89=$ac_arg
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2920 rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
2923 rm -f conftest.$ac_ext
2928 case "x$ac_cv_prog_cc_c89" in
2930 { echo "$as_me:$LINENO: result: none needed" >&5
2931 echo "${ECHO_T}none needed" >&6; } ;;
2933 { echo "$as_me:$LINENO: result: unsupported" >&5
2934 echo "${ECHO_T}unsupported" >&6; } ;;
2936 CC="$CC $ac_cv_prog_cc_c89"
2937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2954 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2955 # On Suns, sometimes $CPP names a directory.
2956 if test -n "$CPP" && test -d "$CPP"; then
2959 if test -z "$CPP"; then
2960 if test "${ac_cv_prog_CPP+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 # Double quotes because CPP needs to be expanded
2964 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2967 for ac_c_preproc_warn_flag in '' yes
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972 # <limits.h> exists even on freestanding compilers.
2973 # On the NeXT, cc -E runs the code through the compiler's parser,
2974 # not just through cpp. "Syntax error" is here to catch this case.
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2982 # include <limits.h>
2984 # include <assert.h>
2988 if { (ac_try="$ac_cpp conftest.$ac_ext"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null && {
3001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3009 # Broken: fails on valid input.
3013 rm -f conftest.err conftest.$ac_ext
3015 # OK, works on sane cases. Now check whether nonexistent headers
3016 # can be detected and how.
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 #include <ac_nonexistent.h>
3025 if { (ac_try="$ac_cpp conftest.$ac_ext"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null && {
3038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3041 # Broken: success on invalid input.
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 # Passes both tests.
3052 rm -f conftest.err conftest.$ac_ext
3055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056 rm -f conftest.err conftest.$ac_ext
3057 if $ac_preproc_ok; then
3069 { echo "$as_me:$LINENO: result: $CPP" >&5
3070 echo "${ECHO_T}$CPP" >&6; }
3072 for ac_c_preproc_warn_flag in '' yes
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3087 # include <limits.h>
3089 # include <assert.h>
3093 if { (ac_try="$ac_cpp conftest.$ac_ext"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3114 # Broken: fails on valid input.
3118 rm -f conftest.err conftest.$ac_ext
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <ac_nonexistent.h>
3130 if { (ac_try="$ac_cpp conftest.$ac_ext"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3138 grep -v '^ *+' conftest.er1 >conftest.err
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3146 # Broken: success on invalid input.
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Passes both tests.
3157 rm -f conftest.err conftest.$ac_ext
3160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161 rm -f conftest.err conftest.$ac_ext
3162 if $ac_preproc_ok; then
3165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&5
3167 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 # Check whether --with-linker was given.
3180 if test "${with_linker+set}" = set; then
3181 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3182 echo "${ECHO_T}LD=$withval" >&6; }
3185 if test -z "$LD" ; then LD=$CC; fi
3186 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3187 echo "${ECHO_T}LD defaults to $LD" >&6; }
3192 # Check whether --with-ccopts was given.
3193 if test "${with_ccopts+set}" = set; then
3194 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3195 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202 if test "${ac_cv_path_GREP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 # Extract the first word of "grep ggrep" to use in msg output
3206 if test -z "$GREP"; then
3207 set dummy grep ggrep; ac_prog_name=$2
3208 if test "${ac_cv_path_GREP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_path_GREP_found=false
3212 # Loop through the user's path and test for each of PROGNAME-LIST
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3217 test -z "$as_dir" && as_dir=.
3218 for ac_prog in grep ggrep; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3222 # Check for GNU ac_path_GREP and select it if it is found.
3223 # Check for GNU $ac_path_GREP
3224 case `"$ac_path_GREP" --version 2>&1` in
3226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3232 cat "conftest.in" "conftest.in" >"conftest.tmp"
3233 mv "conftest.tmp" "conftest.in"
3234 cp "conftest.in" "conftest.nl"
3235 echo 'GREP' >> "conftest.nl"
3236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238 ac_count=`expr $ac_count + 1`
3239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240 # Best one so far, save it but keep looking for a better one
3241 ac_cv_path_GREP="$ac_path_GREP"
3242 ac_path_GREP_max=$ac_count
3244 # 10*(2^10) chars as input seems more than enough
3245 test $ac_count -gt 10 && break
3247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3251 $ac_path_GREP_found && break 3
3261 GREP="$ac_cv_path_GREP"
3262 if test -z "$GREP"; then
3263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265 { (exit 1); exit 1; }; }
3269 ac_cv_path_GREP=$GREP
3274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
3279 { echo "$as_me:$LINENO: checking for egrep" >&5
3280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281 if test "${ac_cv_path_EGREP+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285 then ac_cv_path_EGREP="$GREP -E"
3287 # Extract the first word of "egrep" to use in msg output
3288 if test -z "$EGREP"; then
3289 set dummy egrep; ac_prog_name=$2
3290 if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 ac_path_EGREP_found=false
3294 # Loop through the user's path and test for each of PROGNAME-LIST
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3299 test -z "$as_dir" && as_dir=.
3300 for ac_prog in egrep; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3304 # Check for GNU ac_path_EGREP and select it if it is found.
3305 # Check for GNU $ac_path_EGREP
3306 case `"$ac_path_EGREP" --version 2>&1` in
3308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
3317 echo 'EGREP' >> "conftest.nl"
3318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_EGREP="$ac_path_EGREP"
3324 ac_path_EGREP_max=$ac_count
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 $ac_path_EGREP_found && break 3
3343 EGREP="$ac_cv_path_EGREP"
3344 if test -z "$EGREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347 { (exit 1); exit 1; }; }
3351 ac_cv_path_EGREP=$EGREP
3357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359 EGREP="$ac_cv_path_EGREP"
3362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3364 if test "${ac_cv_header_stdc+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_cv_header_stdc=yes
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 ac_cv_header_stdc=no
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 if test $ac_cv_header_stdc = yes; then
3414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "memchr" >/dev/null 2>&1; then
3428 ac_cv_header_stdc=no
3434 if test $ac_cv_header_stdc = yes; then
3435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "free" >/dev/null 2>&1; then
3449 ac_cv_header_stdc=no
3455 if test $ac_cv_header_stdc = yes; then
3456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457 if test "$cross_compiling" = yes; then
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3468 #if ((' ' & 0x0FF) == 0x020)
3469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3472 # define ISLOWER(c) \
3473 (('a' <= (c) && (c) <= 'i') \
3474 || ('j' <= (c) && (c) <= 'r') \
3475 || ('s' <= (c) && (c) <= 'z'))
3476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3484 for (i = 0; i < 256; i++)
3485 if (XOR (islower (i), ISLOWER (i))
3486 || toupper (i) != TOUPPER (i))
3491 rm -f conftest$ac_exeext
3492 if { (ac_try="$ac_link"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_link") 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3513 echo "$as_me: program exited with status $ac_status" >&5
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_cv_header_stdc=no
3520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3528 if test $ac_cv_header_stdc = yes; then
3530 cat >>confdefs.h <<\_ACEOF
3531 #define STDC_HEADERS 1
3536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547 inttypes.h stdint.h unistd.h
3549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3563 #include <$ac_header>
3565 rm -f conftest.$ac_objext
3566 if { (ac_try="$ac_compile"
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_compile") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } && {
3579 test -z "$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 } && test -s conftest.$ac_objext; then
3582 eval "$as_ac_Header=yes"
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 eval "$as_ac_Header=no"
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_res=`eval echo '${'$as_ac_Header'}'`
3593 { echo "$as_me:$LINENO: result: $ac_res" >&5
3594 echo "${ECHO_T}$ac_res" >&6; }
3595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3605 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3607 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3612 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3614 # Is the header compilable?
3615 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3616 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3617 cat >conftest.$ac_ext <<_ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 $ac_includes_default
3624 #include <linux/fs.h>
3626 rm -f conftest.$ac_objext
3627 if { (ac_try="$ac_compile"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_compile") 2>conftest.er1
3635 grep -v '^ *+' conftest.er1 >conftest.err
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest.$ac_objext; then
3643 ac_header_compiler=yes
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 ac_header_compiler=no
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3653 echo "${ECHO_T}$ac_header_compiler" >&6; }
3655 # Is the header present?
3656 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3657 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3658 cat >conftest.$ac_ext <<_ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3664 #include <linux/fs.h>
3666 if { (ac_try="$ac_cpp conftest.$ac_ext"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3674 grep -v '^ *+' conftest.er1 >conftest.err
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3682 ac_header_preproc=yes
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 ac_header_preproc=no
3690 rm -f conftest.err conftest.$ac_ext
3691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692 echo "${ECHO_T}$ac_header_preproc" >&6; }
3694 # So? What about this header?
3695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3698 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3700 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3701 ac_header_preproc=yes
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3705 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3707 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3709 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3711 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3713 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3715 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3719 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3720 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3721 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 ac_cv_header_linux_fs_h=$ac_header_preproc
3726 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3727 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3730 if test $ac_cv_header_linux_fs_h = yes; then
3737 if test "$linux_headers" != yes; then
3738 LINUX_INCLUDE='-I$(top_builddir)/include'
3741 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3742 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3743 if test "$GCC" = yes
3746 alpha) addcflags="-mieee" ;;
3749 if test "x$addcflags" != x
3751 { echo "$as_me:$LINENO: result: $addcflags" >&5
3752 echo "${ECHO_T}$addcflags" >&6; }
3753 CFLAGS="$addcflags $CFLAGS"
3755 { echo "$as_me:$LINENO: result: (none)" >&5
3756 echo "${ECHO_T}(none)" >&6; }
3762 # Check whether --with-ldopts was given.
3763 if test "${with_ldopts+set}" = set; then
3764 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3765 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3772 # Check whether --with-root-prefix was given.
3773 if test "${with_root_prefix+set}" = set; then
3774 withval=$with_root_prefix; root_prefix=$withval
3778 # Check whether --enable-maintainer-mode was given.
3779 if test "${enable_maintainer_mode+set}" = set; then
3780 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3783 echo "Disabling maintainer mode"
3786 echo "Enabling maintainer mode"
3791 echo "Disabling maintainer mode by default"
3796 # Check whether --enable-compression was given.
3797 if test "${enable_compression+set}" = set; then
3798 enableval=$enable_compression; if test "$enableval" = "no"
3800 echo "Disabling compression support"
3802 cat >>confdefs.h <<\_ACEOF
3803 #define ENABLE_COMPRESSION 1
3806 echo "Enabling compression support"
3807 echo "WARNING: Compression support is experimental"
3811 echo "Disabling compression support by default"
3815 # Check whether --enable-htree was given.
3816 if test "${enable_htree+set}" = set; then
3817 enableval=$enable_htree; if test "$enableval" = "no"
3820 echo "Disabling htree directory support"
3823 cat >>confdefs.h <<\_ACEOF
3824 #define ENABLE_HTREE 1
3827 echo "Enabling htree directory support"
3832 cat >>confdefs.h <<\_ACEOF
3833 #define ENABLE_HTREE 1
3836 echo "Enabling htree directory support by default"
3841 E2_PKG_CONFIG_STATIC=--static
3842 # Check whether --enable-elf-shlibs was given.
3843 if test "${enable_elf_shlibs+set}" = set; then
3844 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3847 MAKEFILE_ELF=/dev/null
3848 echo "Disabling ELF shared libraries"
3850 E2_PKG_CONFIG_STATIC=
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3860 echo "Enabling ELF shared libraries"
3864 MAKEFILE_ELF=/dev/null
3866 echo "Disabling ELF shared libraries by default"
3872 # Check whether --enable-bsd-shlibs was given.
3873 if test "${enable_bsd_shlibs+set}" = set; then
3874 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3877 MAKEFILE_BSDLIB=/dev/null
3878 echo "Disabling BSD shared libraries"
3880 E2_PKG_CONFIG_STATIC=
3882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3890 echo "Enabling BSD shared libraries"
3894 MAKEFILE_BSDLIB=/dev/null
3896 echo "Disabling BSD shared libraries by default"
3902 # Check whether --enable-profile was given.
3903 if test "${enable_profile+set}" = set; then
3904 enableval=$enable_profile; if test "$enableval" = "no"
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries"
3911 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3912 PROFILED_LIB_EXT=_p.a
3913 echo "Building profiling libraries"
3918 MAKEFILE_PROFILE=/dev/null
3919 echo "Disabling profiling libraries by default"
3925 # Check whether --enable-checker was given.
3926 if test "${enable_checker+set}" = set; then
3927 enableval=$enable_checker; if test "$enableval" = "no"
3930 MAKEFILE_CHECKER=/dev/null
3931 echo "Disabling checker libraries"
3934 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3935 echo "Building checker libraries"
3940 MAKEFILE_CHECKER=/dev/null
3941 echo "Disabling checker libraries by default"
3950 # Check whether --enable-jbd-debug was given.
3951 if test "${enable_jbd_debug+set}" = set; then
3952 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3954 echo "Disabling journal debugging"
3956 cat >>confdefs.h <<\_ACEOF
3957 #define CONFIG_JBD_DEBUG 1
3960 echo "Enabling journal debugging"
3964 echo "Disabling journal debugging by default"
3968 # Check whether --enable-blkid-debug was given.
3969 if test "${enable_blkid_debug+set}" = set; then
3970 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3972 echo "Disabling blkid debugging"
3974 cat >>confdefs.h <<\_ACEOF
3975 #define CONFIG_BLKID_DEBUG 1
3978 echo "Enabling blkid debugging"
3982 echo "Disabling blkid debugging by default"
3986 # Check whether --enable-testio-debug was given.
3987 if test "${enable_testio_debug+set}" = set; then
3988 enableval=$enable_testio_debug; if test "$enableval" = "no"
3990 echo "Disabling testio debugging"
3992 cat >>confdefs.h <<\_ACEOF
3993 #define CONFIG_TESTIO_DEBUG 1
3996 echo "Enabling testio debugging"
4000 echo "Disabling testio debugging by default"
4004 # Check whether --enable-swapfs was given.
4005 if test "${enable_swapfs+set}" = set; then
4006 enableval=$enable_swapfs; if test "$enableval" = "no"
4009 echo "Disabling swapfs support"
4012 cat >>confdefs.h <<\_ACEOF
4013 #define ENABLE_SWAPFS 1
4016 echo "Enabling swapfs support"
4021 echo "Enabling swapfs support by default"
4022 cat >>confdefs.h <<\_ACEOF
4023 #define ENABLE_SWAPFS 1
4030 # Check whether --enable-debugfs was given.
4031 if test "${enable_debugfs+set}" = set; then
4032 enableval=$enable_debugfs; if test "$enableval" = "no"
4034 echo "Disabling debugfs support"
4038 echo "Enabling debugfs support"
4042 echo "Enabling debugfs support by default"
4048 # Check whether --enable-imager was given.
4049 if test "${enable_imager+set}" = set; then
4050 enableval=$enable_imager; if test "$enableval" = "no"
4052 echo "Disabling e2image support"
4056 echo "Enabling e2image support"
4060 echo "Enabling e2image support by default"
4066 # Check whether --enable-resizer was given.
4067 if test "${enable_resizer+set}" = set; then
4068 enableval=$enable_resizer; if test "$enableval" = "no"
4070 echo "Disabling e2resize support"
4074 echo "Enabling e2resize support"
4078 echo "Enabling e2resize support by default"
4084 # Check whether --enable-fsck was given.
4085 if test "${enable_fsck+set}" = set; then
4086 enableval=$enable_fsck; if test "$enableval" = "no"
4088 FSCK_PROG='' FSCK_MAN=''
4089 echo "Not building fsck wrapper"
4091 FSCK_PROG=fsck FSCK_MAN=fsck.8
4092 echo "Building fsck wrapper"
4098 FSCK_PROG='' FSCK_MAN=''
4099 echo "Not building fsck wrapper by default"
4102 FSCK_PROG=fsck FSCK_MAN=fsck.8
4103 echo "Building fsck wrapper by default"
4110 # Check whether --enable-e2initrd-helper was given.
4111 if test "${enable_e2initrd_helper+set}" = set; then
4112 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4114 E2INITRD_PROG='' E2INITRD_MAN=''
4115 echo "Not building e2initrd helper"
4117 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4118 echo "Building e2initrd helper"
4122 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4123 echo "Building e2initrd helper by default"
4129 STATIC_BLKID_DEVMAPPER_LIBS=''
4130 # Check whether --enable-blkid-devmapper was given.
4131 if test "${enable_blkid_devmapper+set}" = set; then
4132 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4134 echo "Disabling device-mapper support"
4137 STATIC_DEVMAPPER_LIBS=''
4139 cat >>confdefs.h <<\_ACEOF
4140 #define HAVE_DEVMAPPER 1
4143 echo "Enabling device-mapper support"
4147 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4150 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4180 if test -n "$PKG_CONFIG"; then
4181 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4182 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4184 { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4190 if test -z "$ac_cv_path_PKG_CONFIG"; then
4191 ac_pt_PKG_CONFIG=$PKG_CONFIG
4192 # Extract the first word of "pkg-config", so it can be a program name with args.
4193 set dummy pkg-config; ac_word=$2
4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 case $ac_pt_PKG_CONFIG in
4201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4223 if test -n "$ac_pt_PKG_CONFIG"; then
4224 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4225 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4227 { echo "$as_me:$LINENO: result: no" >&5
4228 echo "${ECHO_T}no" >&6; }
4231 if test "x$ac_pt_PKG_CONFIG" = x; then
4234 case $cross_compiling:$ac_tool_warned in
4236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4237 whose name does not start with the host triplet. If you think this
4238 configuration is useful to you, please write to autoconf@gnu.org." >&5
4239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4240 whose name does not start with the host triplet. If you think this
4241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4242 ac_tool_warned=yes ;;
4244 PKG_CONFIG=$ac_pt_PKG_CONFIG
4247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4251 if test -n "$PKG_CONFIG"; then
4252 _pkg_min_version=0.9.0
4253 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4254 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4256 { echo "$as_me:$LINENO: result: yes" >&5
4257 echo "${ECHO_T}yes" >&6; }
4259 { echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6; }
4266 if test -z "$PKG_CONFIG"; then
4267 echo "pkg-config not installed; please install it."
4271 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4272 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4273 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 ac_check_lib_save_LIBS=$LIBS
4277 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4278 cat >conftest.$ac_ext <<_ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4285 /* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4291 char dm_tree_create ();
4295 return dm_tree_create ();
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (ac_try="$ac_link"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_link") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest$ac_exeext &&
4317 $as_test_x conftest$ac_exeext; then
4318 ac_cv_lib_devmapper_dm_tree_create=yes
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 ac_cv_lib_devmapper_dm_tree_create=no
4326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327 conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4330 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4331 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4332 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4333 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4334 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4335 DEVMAPPER_REQ="devmapper";
4336 DEVMAPPER_PC_LIBS="-ldevmapper"
4338 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4339 echo "$as_me: error: device-mapper library not found" >&2;}
4340 { (exit 1); exit 1; }; }
4343 # work around stupid devmapper.pc bug in Debian
4344 case "$STATIC_DEVMAPPER_LIBS" in
4348 echo "Working around Debian bug #390243..."
4349 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4352 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4353 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4354 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4359 echo "Disabling device-mapper support by default"
4368 # Check whether --enable-tls was given.
4369 if test "${enable_tls+set}" = set; then
4370 enableval=$enable_tls; if test "$enableval" = "no"
4373 echo "Disabling thread local support"
4376 echo "Enabling thread local support"
4381 echo "Try using thread local support by default"
4385 if test "$try_tls" = "yes"
4388 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4389 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4390 if test "${ac_cv_tls+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 ax_tls_keywords="__thread __declspec(thread) none"
4395 for ax_tls_keyword in $ax_tls_keywords; do
4396 case $ax_tls_keyword in
4397 none) ac_cv_tls=none ; break ;;
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4408 static $ax_tls_keyword int bar;
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest.$ac_objext; then
4436 ac_cv_tls=$ax_tls_keyword ; break
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452 if test "$ac_cv_tls" != "none"; then
4454 cat >>confdefs.h <<_ACEOF
4455 #define TLS $ac_cv_tls
4459 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4460 echo "${ECHO_T}$ac_cv_tls" >&6; }
4463 # Check whether --enable-uuidd was given.
4464 if test "${enable_uuidd+set}" = set; then
4465 enableval=$enable_uuidd; if test "$enableval" = "no"
4467 echo "Not building uuidd"
4470 cat >>confdefs.h <<\_ACEOF
4475 echo "Building uuidd"
4479 cat >>confdefs.h <<\_ACEOF
4484 echo "Building uuidd by default"
4489 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4491 GETTEXT_PACKAGE=e2fsprogs
4493 VERSION="$E2FSPROGS_VERSION"
4495 cat >>confdefs.h <<_ACEOF
4496 #define PACKAGE "$PACKAGE"
4499 cat >>confdefs.h <<_ACEOF
4500 #define VERSION "$VERSION"
4507 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4508 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4509 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 cat >conftest.make <<\_ACEOF
4516 @echo '@@@%%%=$(MAKE)=@@@%%%'
4518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4521 eval ac_cv_prog_make_${ac_make}_set=yes;;
4523 eval ac_cv_prog_make_${ac_make}_set=no;;
4527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4528 { echo "$as_me:$LINENO: result: yes" >&5
4529 echo "${ECHO_T}yes" >&6; }
4532 { echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6; }
4534 SET_MAKE="MAKE=${MAKE-make}"
4537 # Find a good install program. We prefer a C program (faster),
4538 # so one script is as good as another. But avoid the broken or
4539 # incompatible versions:
4540 # SysV /etc/install, /usr/sbin/install
4541 # SunOS /usr/etc/install
4542 # IRIX /sbin/install
4544 # AmigaOS /C/install, which installs bootblocks on floppy discs
4545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4548 # OS/2's system install, which has a completely different semantic
4549 # ./install, which can be erroneously created by make from ./install.sh.
4550 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4551 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4552 if test -z "$INSTALL"; then
4553 if test "${ac_cv_path_install+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 # Account for people who put trailing slashes in PATH elements.
4563 ./ | .// | /cC/* | \
4564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4565 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4568 # OSF1 and SCO ODT 3.0 have their own names for install.
4569 # Don't use installbsd from OSF since it installs stuff as root
4571 for ac_prog in ginstall scoinst install; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4574 if test $ac_prog = install &&
4575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4576 # AIX install. It has an incompatible calling convention.
4578 elif test $ac_prog = install &&
4579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4580 # program-specific install script used by HP pwplus--don't use.
4583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4596 if test "${ac_cv_path_install+set}" = set; then
4597 INSTALL=$ac_cv_path_install
4599 # As a last resort, use the slow shell script. Don't cache a
4600 # value for INSTALL within a source directory, because that will
4601 # break other packages using the cache if that directory is
4602 # removed, or if the value is a relative name.
4603 INSTALL=$ac_install_sh
4606 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4607 echo "${ECHO_T}$INSTALL" >&6; }
4609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4610 # It thinks the first close brace ends the variable substitution.
4611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4615 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4619 if test -n "$ac_aux_dir"; then
4620 case "$ac_aux_dir" in
4621 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4622 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4625 if test -z "$MKINSTALLDIRS"; then
4626 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4631 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4632 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4633 # Check whether --enable-nls was given.
4634 if test "${enable_nls+set}" = set; then
4635 enableval=$enable_nls; USE_NLS=$enableval
4640 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4641 echo "${ECHO_T}$USE_NLS" >&6; }
4648 # Prepare PATH_SEPARATOR.
4649 # The user is always right.
4650 if test "${PATH_SEPARATOR+set}" != set; then
4651 echo "#! /bin/sh" >conf$$.sh
4652 echo "exit 0" >>conf$$.sh
4654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4662 # Find out how to test for executable files. Don't use a zero-byte file,
4663 # as systems may use methods other than mode bits to determine executability.
4664 cat >conf$$.file <<_ASEOF
4668 chmod +x conf$$.file
4669 if test -x conf$$.file >/dev/null 2>&1; then
4670 ac_executable_p="test -x"
4672 ac_executable_p="test -f"
4676 # Extract the first word of "msgfmt", so it can be a program name with args.
4677 set dummy msgfmt; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_path_MSGFMT+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4688 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4689 for ac_dir in $PATH; do
4691 test -z "$ac_dir" && ac_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4694 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4695 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4696 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4703 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4707 MSGFMT="$ac_cv_path_MSGFMT"
4708 if test "$MSGFMT" != ":"; then
4709 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4710 echo "${ECHO_T}$MSGFMT" >&6; }
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4716 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4717 set dummy gmsgfmt; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4735 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4747 GMSGFMT=$ac_cv_path_GMSGFMT
4748 if test -n "$GMSGFMT"; then
4749 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4750 echo "${ECHO_T}$GMSGFMT" >&6; }
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4759 # Prepare PATH_SEPARATOR.
4760 # The user is always right.
4761 if test "${PATH_SEPARATOR+set}" != set; then
4762 echo "#! /bin/sh" >conf$$.sh
4763 echo "exit 0" >>conf$$.sh
4765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4773 # Find out how to test for executable files. Don't use a zero-byte file,
4774 # as systems may use methods other than mode bits to determine executability.
4775 cat >conf$$.file <<_ASEOF
4779 chmod +x conf$$.file
4780 if test -x conf$$.file >/dev/null 2>&1; then
4781 ac_executable_p="test -x"
4783 ac_executable_p="test -f"
4787 # Extract the first word of "xgettext", so it can be a program name with args.
4788 set dummy xgettext; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4800 for ac_dir in $PATH; do
4802 test -z "$ac_dir" && ac_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4805 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4806 (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
4807 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4814 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4818 XGETTEXT="$ac_cv_path_XGETTEXT"
4819 if test "$XGETTEXT" != ":"; then
4820 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4821 echo "${ECHO_T}$XGETTEXT" >&6; }
4823 { echo "$as_me:$LINENO: result: no" >&5
4824 echo "${ECHO_T}no" >&6; }
4830 # Prepare PATH_SEPARATOR.
4831 # The user is always right.
4832 if test "${PATH_SEPARATOR+set}" != set; then
4833 echo "#! /bin/sh" >conf$$.sh
4834 echo "exit 0" >>conf$$.sh
4836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4844 # Find out how to test for executable files. Don't use a zero-byte file,
4845 # as systems may use methods other than mode bits to determine executability.
4846 cat >conf$$.file <<_ASEOF
4850 chmod +x conf$$.file
4851 if test -x conf$$.file >/dev/null 2>&1; then
4852 ac_executable_p="test -x"
4854 ac_executable_p="test -f"
4858 # Extract the first word of "msgmerge", so it can be a program name with args.
4859 set dummy msgmerge; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4870 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4871 for ac_dir in $PATH; do
4873 test -z "$ac_dir" && ac_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4876 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4877 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4884 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4888 MSGMERGE="$ac_cv_path_MSGMERGE"
4889 if test "$MSGMERGE" != ":"; then
4890 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4891 echo "${ECHO_T}$MSGMERGE" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 if test "$GMSGFMT" != ":"; then
4899 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4900 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4903 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4904 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4905 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4910 if test "$XGETTEXT" != ":"; then
4911 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4912 (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
4915 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4916 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4922 ac_config_commands="$ac_config_commands default-1"
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4930 if test "${ac_cv_prog_RANLIB+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 if test -n "$RANLIB"; then
4934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 RANLIB=$ac_cv_prog_RANLIB
4954 if test -n "$RANLIB"; then
4955 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4956 echo "${ECHO_T}$RANLIB" >&6; }
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4964 if test -z "$ac_cv_prog_RANLIB"; then
4965 ac_ct_RANLIB=$RANLIB
4966 # Extract the first word of "ranlib", so it can be a program name with args.
4967 set dummy ranlib; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 if test -n "$ac_ct_RANLIB"; then
4974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_ac_ct_RANLIB="ranlib"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4994 if test -n "$ac_ct_RANLIB"; then
4995 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4996 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4998 { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5002 if test "x$ac_ct_RANLIB" = x; then
5005 case $cross_compiling:$ac_tool_warned in
5007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5008 whose name does not start with the host triplet. If you think this
5009 configuration is useful to you, please write to autoconf@gnu.org." >&5
5010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5011 whose name does not start with the host triplet. If you think this
5012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5013 ac_tool_warned=yes ;;
5015 RANLIB=$ac_ct_RANLIB
5018 RANLIB="$ac_cv_prog_RANLIB"
5022 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5023 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5024 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_check_lib_save_LIBS=$LIBS
5028 LIBS="-lcposix $LIBS"
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 /* Override any GCC internal prototype to avoid an error.
5037 Use char because int might match the return type of a GCC
5038 builtin and then its argument prototype would still apply. */
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>conftest.er1
5060 grep -v '^ *+' conftest.er1 >conftest.err
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest$ac_exeext &&
5068 $as_test_x conftest$ac_exeext; then
5069 ac_cv_lib_cposix_strerror=yes
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 ac_cv_lib_cposix_strerror=no
5077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5078 conftest$ac_exeext conftest.$ac_ext
5079 LIBS=$ac_check_lib_save_LIBS
5081 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5082 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5083 if test $ac_cv_lib_cposix_strerror = yes; then
5084 LIBS="$LIBS -lcposix"
5089 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5090 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5091 if test "${ac_cv_c_const+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5104 /* FIXME: Include the comments suggested by Paul. */
5106 /* Ultrix mips cc rejects this. */
5107 typedef int charset[2];
5109 /* SunOS 4.1.1 cc rejects this. */
5110 char const *const *pcpcc;
5112 /* NEC SVR4.0.2 mips cc rejects this. */
5113 struct point {int x, y;};
5114 static struct point const zero = {0,0};
5115 /* AIX XL C 1.02.0.0 rejects this.
5116 It does not let you subtract one const X* pointer from another in
5117 an arm of an if-expression whose if-part is not a constant
5119 const char *g = "string";
5120 pcpcc = &g + (g ? g-g : 0);
5121 /* HPUX 7.0 cc rejects these. */
5123 ppc = (char**) pcpcc;
5124 pcpcc = (char const *const *) ppc;
5125 { /* SCO 3.2v4 cc rejects this. */
5127 char const *s = 0 ? (char *) 0 : (char const *) 0;
5132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5134 const int *foo = &x[0];
5137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5138 typedef const int *iptr;
5142 { /* AIX XL C 1.02.0.0 rejects this saying
5143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5144 struct s { int j; const int *ap[3]; };
5145 struct s *b; b->j = 5;
5147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5151 return !cs[0] && !zero.x;
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_compile") 2>conftest.er1
5167 grep -v '^ *+' conftest.er1 >conftest.err
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.$ac_objext; then
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5186 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5187 if test $ac_cv_c_const = no; then
5189 cat >>confdefs.h <<\_ACEOF
5196 { echo "$as_me:$LINENO: checking for signed" >&5
5197 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5198 if test "${bh_cv_c_signed+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.$ac_ext <<_ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5216 rm -f conftest.$ac_objext
5217 if { (ac_try="$ac_compile"
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compile") 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && {
5230 test -z "$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 } && test -s conftest.$ac_objext; then
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5243 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5244 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5245 if test $bh_cv_c_signed = no; then
5247 cat >>confdefs.h <<\_ACEOF
5253 { echo "$as_me:$LINENO: checking for inline" >&5
5254 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5255 if test "${ac_cv_c_inline+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 for ac_kw in inline __inline__ __inline; do
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5268 static $ac_kw foo_t static_foo () {return 0; }
5269 $ac_kw foo_t foo () {return 0; }
5273 rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
5290 ac_cv_c_inline=$ac_kw
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 test "$ac_cv_c_inline" != no && break
5303 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5304 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5307 case $ac_cv_c_inline in
5310 case $ac_cv_c_inline in
5312 *) ac_val=$ac_cv_c_inline;;
5314 cat >>confdefs.h <<_ACEOF
5316 #define inline $ac_val
5322 { echo "$as_me:$LINENO: checking for off_t" >&5
5323 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5324 if test "${ac_cv_type_off_t+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5333 $ac_includes_default
5334 typedef off_t ac__type_new_;
5338 if ((ac__type_new_ *) 0)
5340 if (sizeof (ac__type_new_))
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 ac_cv_type_off_t=yes
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5374 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5375 if test $ac_cv_type_off_t = yes; then
5379 cat >>confdefs.h <<_ACEOF
5380 #define off_t long int
5385 { echo "$as_me:$LINENO: checking for size_t" >&5
5386 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5387 if test "${ac_cv_type_size_t+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 cat >conftest.$ac_ext <<_ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 $ac_includes_default
5397 typedef size_t ac__type_new_;
5401 if ((ac__type_new_ *) 0)
5403 if (sizeof (ac__type_new_))
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_compile") 2>conftest.er1
5418 grep -v '^ *+' conftest.er1 >conftest.err
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } && {
5423 test -z "$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5425 } && test -s conftest.$ac_objext; then
5426 ac_cv_type_size_t=yes
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5431 ac_cv_type_size_t=no
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5437 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5438 if test $ac_cv_type_size_t = yes; then
5442 cat >>confdefs.h <<_ACEOF
5443 #define size_t unsigned int
5449 { echo "$as_me:$LINENO: checking for long long" >&5
5450 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5451 if test "${ac_cv_type_long_long+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 long long ll = 1LL; int i = 63;
5464 long long llmax = (long long) -1;
5465 return ll << i | ll >> i | llmax / ll | llmax % ll;
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_link") 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest$ac_exeext &&
5487 $as_test_x conftest$ac_exeext; then
5488 ac_cv_type_long_long=yes
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_cv_type_long_long=no
5496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5497 conftest$ac_exeext conftest.$ac_ext
5499 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5500 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5501 if test $ac_cv_type_long_long = yes; then
5503 cat >>confdefs.h <<\_ACEOF
5504 #define HAVE_LONG_LONG 1
5510 { echo "$as_me:$LINENO: checking for long double" >&5
5511 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5512 if test "${gt_cv_c_long_double+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 if test "$GCC" = yes; then
5516 gt_cv_c_long_double=yes
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5525 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5526 long double foo = 0.0;
5527 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5528 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1 >conftest.err
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 gt_cv_c_long_double=yes
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 gt_cv_c_long_double=no
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5567 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5568 if test $gt_cv_c_long_double = yes; then
5570 cat >>confdefs.h <<\_ACEOF
5571 #define HAVE_LONG_DOUBLE 1
5577 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5578 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5579 if test "${gt_cv_c_wchar_t+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 wchar_t foo = (wchar_t)'\0';
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5626 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5627 if test $gt_cv_c_wchar_t = yes; then
5629 cat >>confdefs.h <<\_ACEOF
5630 #define HAVE_WCHAR_T 1
5636 { echo "$as_me:$LINENO: checking for wint_t" >&5
5637 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5638 if test "${gt_cv_c_wint_t+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5648 wint_t foo = (wchar_t)'\0';
5657 rm -f conftest.$ac_objext
5658 if { (ac_try="$ac_compile"
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_compile") 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest.$ac_objext; then
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5685 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5686 if test $gt_cv_c_wint_t = yes; then
5688 cat >>confdefs.h <<\_ACEOF
5689 #define HAVE_WINT_T 1
5695 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5696 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5697 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #include <sys/types.h>
5707 #include <inttypes.h>
5711 uintmax_t i = (uintmax_t) -1;
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5725 grep -v '^ *+' conftest.er1 >conftest.err
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_c_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
5733 jm_ac_cv_header_inttypes_h=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738 jm_ac_cv_header_inttypes_h=no
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5744 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5745 if test $jm_ac_cv_header_inttypes_h = yes; then
5747 cat >>confdefs.h <<_ACEOF
5748 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5754 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5755 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5756 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 cat >conftest.$ac_ext <<_ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #include <sys/types.h>
5770 uintmax_t i = (uintmax_t) -1;
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5792 jm_ac_cv_header_stdint_h=yes
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 jm_ac_cv_header_stdint_h=no
5800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5803 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5804 if test $jm_ac_cv_header_stdint_h = yes; then
5806 cat >>confdefs.h <<_ACEOF
5807 #define HAVE_STDINT_H_WITH_UINTMAX 1
5815 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5816 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5817 if test "${gt_cv_c_intmax_t+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 cat >conftest.$ac_ext <<_ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5829 #if HAVE_STDINT_H_WITH_UINTMAX
5832 #if HAVE_INTTYPES_H_WITH_UINTMAX
5833 #include <inttypes.h>
5844 rm -f conftest.$ac_objext
5845 if { (ac_try="$ac_compile"
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_compile") 2>conftest.er1
5853 grep -v '^ *+' conftest.er1 >conftest.err
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest.$ac_objext; then
5861 gt_cv_c_intmax_t=yes
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5872 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5873 if test $gt_cv_c_intmax_t = yes; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_INTMAX_T 1
5883 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5884 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5885 if test "${gt_cv_func_printf_posix+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test "$cross_compiling" = yes; then
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5898 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "notposix" >/dev/null 2>&1; then
5905 gt_cv_func_printf_posix="guessing no"
5907 gt_cv_func_printf_posix="guessing yes"
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5922 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5923 dollar expansion (possibly an autoconf bug). */
5924 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5925 static char buf[100];
5928 sprintf (buf, format, 33, 55);
5929 return (strcmp (buf, "55 33") != 0);
5932 rm -f conftest$ac_exeext
5933 if { (ac_try="$ac_link"
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_link") 2>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 gt_cv_func_printf_posix=yes
5954 echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5959 gt_cv_func_printf_posix=no
5961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5968 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5969 case $gt_cv_func_printf_posix in
5972 cat >>confdefs.h <<\_ACEOF
5973 #define HAVE_POSIX_PRINTF 1
5979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5980 # for constant arguments. Useless!
5981 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5982 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5983 if test "${ac_cv_working_alloca_h+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 cat >conftest.$ac_ext <<_ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5996 char *p = (char *) alloca (2 * sizeof (int));
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest$ac_exeext &&
6019 $as_test_x conftest$ac_exeext; then
6020 ac_cv_working_alloca_h=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_cv_working_alloca_h=no
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029 conftest$ac_exeext conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6032 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6033 if test $ac_cv_working_alloca_h = yes; then
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_ALLOCA_H 1
6041 { echo "$as_me:$LINENO: checking for alloca" >&5
6042 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6043 if test "${ac_cv_func_alloca_works+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6053 # define alloca __builtin_alloca
6056 # include <malloc.h>
6057 # define alloca _alloca
6059 # ifdef HAVE_ALLOCA_H
6060 # include <alloca.h>
6065 # ifndef alloca /* predefined by HP cc +Olibcalls */
6076 char *p = (char *) alloca (1);
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (ac_try="$ac_link"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest$ac_exeext &&
6099 $as_test_x conftest$ac_exeext; then
6100 ac_cv_func_alloca_works=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_cv_func_alloca_works=no
6108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109 conftest$ac_exeext conftest.$ac_ext
6111 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6112 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6114 if test $ac_cv_func_alloca_works = yes; then
6116 cat >>confdefs.h <<\_ACEOF
6117 #define HAVE_ALLOCA 1
6121 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6122 # that cause trouble. Some versions do not even contain alloca or
6123 # contain a buggy version. If you still want to use their alloca,
6124 # use ar to extract alloca.o from them instead of compiling alloca.c.
6126 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6128 cat >>confdefs.h <<\_ACEOF
6133 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6134 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6135 if test "${ac_cv_os_cray+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #if defined CRAY && ! defined CRAY2
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "webecray" >/dev/null 2>&1; then
6160 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6161 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6162 if test $ac_cv_os_cray = yes; then
6163 for ac_func in _getb67 GETB67 getb67; do
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6178 #define $ac_func innocuous_$ac_func
6180 /* System header to define __stub macros and hopefully few prototypes,
6181 which can conflict with char $ac_func (); below.
6182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183 <limits.h> exists even on freestanding compilers. */
6186 # include <limits.h>
6188 # include <assert.h>
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6200 /* The GNU C library defines this for functions which it implements
6201 to always fail with ENOSYS. Some functions are actually named
6202 something starting with __ and the normal name is an alias. */
6203 #if defined __stub_$ac_func || defined __stub___$ac_func
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (ac_try="$ac_link"
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_link") 2>conftest.er1
6224 grep -v '^ *+' conftest.er1 >conftest.err
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest$ac_exeext &&
6232 $as_test_x conftest$ac_exeext; then
6233 eval "$as_ac_var=yes"
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 eval "$as_ac_var=no"
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242 conftest$ac_exeext conftest.$ac_ext
6244 ac_res=`eval echo '${'$as_ac_var'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_var'}'` = yes; then
6249 cat >>confdefs.h <<_ACEOF
6250 #define CRAY_STACKSEG_END $ac_func
6259 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6260 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6261 if test "${ac_cv_c_stack_direction+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 if test "$cross_compiling" = yes; then
6265 ac_cv_c_stack_direction=0
6267 cat >conftest.$ac_ext <<_ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6275 find_stack_direction ()
6277 static char *addr = 0;
6282 return find_stack_direction ();
6285 return (&dummy > addr) ? 1 : -1;
6291 return find_stack_direction () < 0;
6294 rm -f conftest$ac_exeext
6295 if { (ac_try="$ac_link"
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_link") 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6305 { (case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_try") 2>&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 ac_cv_c_stack_direction=1
6316 echo "$as_me: program exited with status $ac_status" >&5
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6321 ac_cv_c_stack_direction=-1
6323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6328 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6329 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6331 cat >>confdefs.h <<_ACEOF
6332 #define STACK_DIRECTION $ac_cv_c_stack_direction
6340 for ac_header in stdlib.h unistd.h
6342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 ac_res=`eval echo '${'$as_ac_Header'}'`
6350 { echo "$as_me:$LINENO: result: $ac_res" >&5
6351 echo "${ECHO_T}$ac_res" >&6; }
6353 # Is the header compilable?
6354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6356 cat >conftest.$ac_ext <<_ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 $ac_includes_default
6363 #include <$ac_header>
6365 rm -f conftest.$ac_objext
6366 if { (ac_try="$ac_compile"
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_compile") 2>conftest.er1
6374 grep -v '^ *+' conftest.er1 >conftest.err
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
6382 ac_header_compiler=yes
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6387 ac_header_compiler=no
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6392 echo "${ECHO_T}$ac_header_compiler" >&6; }
6394 # Is the header present?
6395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6397 cat >conftest.$ac_ext <<_ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 #include <$ac_header>
6405 if { (ac_try="$ac_cpp conftest.$ac_ext"
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } >/dev/null && {
6418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6421 ac_header_preproc=yes
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_header_preproc=no
6429 rm -f conftest.err conftest.$ac_ext
6430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6431 echo "${ECHO_T}$ac_header_preproc" >&6; }
6433 # So? What about this header?
6434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6440 ac_header_preproc=yes
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 eval "$as_ac_Header=\$ac_header_preproc"
6465 ac_res=`eval echo '${'$as_ac_Header'}'`
6466 { echo "$as_me:$LINENO: result: $ac_res" >&5
6467 echo "${ECHO_T}$ac_res" >&6; }
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6480 for ac_func in getpagesize
6482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6496 #define $ac_func innocuous_$ac_func
6498 /* System header to define __stub macros and hopefully few prototypes,
6499 which can conflict with char $ac_func (); below.
6500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501 <limits.h> exists even on freestanding compilers. */
6504 # include <limits.h>
6506 # include <assert.h>
6511 /* Override any GCC internal prototype to avoid an error.
6512 Use char because int might match the return type of a GCC
6513 builtin and then its argument prototype would still apply. */
6518 /* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521 #if defined __stub_$ac_func || defined __stub___$ac_func
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1 >conftest.err
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest$ac_exeext &&
6550 $as_test_x conftest$ac_exeext; then
6551 eval "$as_ac_var=yes"
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6556 eval "$as_ac_var=no"
6559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6560 conftest$ac_exeext conftest.$ac_ext
6562 ac_res=`eval echo '${'$as_ac_var'}'`
6563 { echo "$as_me:$LINENO: result: $ac_res" >&5
6564 echo "${ECHO_T}$ac_res" >&6; }
6565 if test `eval echo '${'$as_ac_var'}'` = yes; then
6566 cat >>confdefs.h <<_ACEOF
6567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6573 { echo "$as_me:$LINENO: checking for working mmap" >&5
6574 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6575 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 if test "$cross_compiling" = yes; then
6579 ac_cv_func_mmap_fixed_mapped=no
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6588 /* malloc might have been renamed as rpl_malloc. */
6591 /* Thanks to Mike Haertel and Jim Avera for this test.
6592 Here is a matrix of mmap possibilities:
6593 mmap private not fixed
6594 mmap private fixed at somewhere currently unmapped
6595 mmap private fixed at somewhere already mapped
6596 mmap shared not fixed
6597 mmap shared fixed at somewhere currently unmapped
6598 mmap shared fixed at somewhere already mapped
6599 For private mappings, we should verify that changes cannot be read()
6600 back from the file, nor mmap's back from the file at a different
6601 address. (There have been systems where private was not correctly
6602 implemented like the infamous i386 svr4.0, and systems where the
6603 VM page cache was not coherent with the file system buffer cache
6604 like early versions of FreeBSD and possibly contemporary NetBSD.)
6605 For shared mappings, we should conversely verify that changes get
6606 propagated back to all the places they're supposed to be.
6608 Grep wants private fixed already mapped.
6609 The main things grep needs to know about mmap are:
6610 * does it exist and is it safe to write into the mmap'd area
6611 * how to use it (BSD variants) */
6614 #include <sys/mman.h>
6616 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6620 /* This mess was copied from the GNU getpagesize.h. */
6621 #ifndef HAVE_GETPAGESIZE
6622 /* Assume that all systems that can run configure have sys/param.h. */
6623 # ifndef HAVE_SYS_PARAM_H
6624 # define HAVE_SYS_PARAM_H 1
6627 # ifdef _SC_PAGESIZE
6628 # define getpagesize() sysconf(_SC_PAGESIZE)
6629 # else /* no _SC_PAGESIZE */
6630 # ifdef HAVE_SYS_PARAM_H
6631 # include <sys/param.h>
6632 # ifdef EXEC_PAGESIZE
6633 # define getpagesize() EXEC_PAGESIZE
6634 # else /* no EXEC_PAGESIZE */
6636 # define getpagesize() NBPG * CLSIZE
6639 # endif /* no CLSIZE */
6640 # else /* no NBPG */
6642 # define getpagesize() NBPC
6643 # else /* no NBPC */
6645 # define getpagesize() PAGESIZE
6646 # endif /* PAGESIZE */
6647 # endif /* no NBPC */
6648 # endif /* no NBPG */
6649 # endif /* no EXEC_PAGESIZE */
6650 # else /* no HAVE_SYS_PARAM_H */
6651 # define getpagesize() 8192 /* punt totally */
6652 # endif /* no HAVE_SYS_PARAM_H */
6653 # endif /* no _SC_PAGESIZE */
6655 #endif /* no HAVE_GETPAGESIZE */
6660 char *data, *data2, *data3;
6664 pagesize = getpagesize ();
6666 /* First, make a file with some known garbage in it. */
6667 data = (char *) malloc (pagesize);
6670 for (i = 0; i < pagesize; ++i)
6671 *(data + i) = rand ();
6673 fd = creat ("conftest.mmap", 0600);
6676 if (write (fd, data, pagesize) != pagesize)
6680 /* Next, try to mmap the file at a fixed address which already has
6681 something else allocated at it. If we can, also make sure that
6682 we see the same garbage. */
6683 fd = open ("conftest.mmap", O_RDWR);
6686 data2 = (char *) malloc (2 * pagesize);
6689 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6693 for (i = 0; i < pagesize; ++i)
6694 if (*(data + i) != *(data2 + i))
6697 /* Finally, make sure that changes to the mapped area do not
6698 percolate back to the file as seen by read(). (This is a bug on
6699 some variants of i386 svr4.0.) */
6700 for (i = 0; i < pagesize; ++i)
6701 *(data2 + i) = *(data2 + i) + 1;
6702 data3 = (char *) malloc (pagesize);
6705 if (read (fd, data3, pagesize) != pagesize)
6707 for (i = 0; i < pagesize; ++i)
6708 if (*(data + i) != *(data3 + i))
6714 rm -f conftest$ac_exeext
6715 if { (ac_try="$ac_link"
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_link") 2>&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6725 { (case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_try") 2>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 ac_cv_func_mmap_fixed_mapped=yes
6736 echo "$as_me: program exited with status $ac_status" >&5
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6741 ac_cv_func_mmap_fixed_mapped=no
6743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6749 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6750 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6752 cat >>confdefs.h <<\_ACEOF
6760 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6761 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6762 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6772 #include <features.h>
6773 #ifdef __GNU_LIBRARY__
6774 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6781 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6782 ac_cv_gnu_library_2_1=yes
6784 ac_cv_gnu_library_2_1=no
6791 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6792 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6794 GLIBC21="$ac_cv_gnu_library_2_1"
6799 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6800 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6801 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 if test "$cross_compiling" = yes; then
6807 # Guess based on the CPU.
6809 alpha* | i3456786 | m68k | s390*)
6810 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6812 gt_cv_int_divbyzero_sigfpe="guessing no";;
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6828 sigfpe_handler (int sig)
6830 sigfpe_handler (sig) int sig;
6833 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6834 exit (sig != SIGFPE);
6844 signal (SIGFPE, sigfpe_handler);
6845 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6846 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6847 signal (SIGTRAP, sigfpe_handler);
6849 /* Linux/SPARC yields signal SIGILL. */
6850 #if defined (__sparc__) && defined (__linux__)
6851 signal (SIGILL, sigfpe_handler);
6860 rm -f conftest$ac_exeext
6861 if { (ac_try="$ac_link"
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_try") 2>&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 gt_cv_int_divbyzero_sigfpe=yes
6882 echo "$as_me: program exited with status $ac_status" >&5
6883 echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6887 gt_cv_int_divbyzero_sigfpe=no
6889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6895 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6896 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6897 case "$gt_cv_int_divbyzero_sigfpe" in
6902 cat >>confdefs.h <<_ACEOF
6903 #define INTDIV0_RAISES_SIGFPE $value
6908 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6909 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6910 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 unsigned long long ull = 1ULL; int i = 63;
6923 unsigned long long ullmax = (unsigned long long) -1;
6924 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6929 rm -f conftest.$ac_objext conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
6938 grep -v '^ *+' conftest.er1 >conftest.err
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
6947 ac_cv_type_unsigned_long_long=yes
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6952 ac_cv_type_unsigned_long_long=no
6955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6956 conftest$ac_exeext conftest.$ac_ext
6958 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6959 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6960 if test $ac_cv_type_unsigned_long_long = yes; then
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_UNSIGNED_LONG_LONG 1
6971 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6973 test $ac_cv_type_unsigned_long_long = yes \
6974 && ac_type='unsigned long long' \
6975 || ac_type='unsigned long'
6977 cat >>confdefs.h <<_ACEOF
6978 #define uintmax_t $ac_type
6983 cat >>confdefs.h <<\_ACEOF
6984 #define HAVE_UINTMAX_T 1
6990 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6991 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6992 if test "${gt_cv_header_inttypes_h+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 #include <sys/types.h>
7003 #include <inttypes.h>
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 gt_cv_header_inttypes_h=yes
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 gt_cv_header_inttypes_h=no
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7041 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7042 if test $gt_cv_header_inttypes_h = yes; then
7044 cat >>confdefs.h <<_ACEOF
7045 #define HAVE_INTTYPES_H 1
7052 if test $gt_cv_header_inttypes_h = yes; then
7053 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7054 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7055 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <inttypes.h>
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7087 grep -v '^ *+' conftest.er1 >conftest.err
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.$ac_objext; then
7095 gt_cv_inttypes_pri_broken=no
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 gt_cv_inttypes_pri_broken=yes
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7107 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7109 if test "$gt_cv_inttypes_pri_broken" = yes; then
7111 cat >>confdefs.h <<_ACEOF
7112 #define PRI_MACROS_BROKEN 1
7119 for ac_header in stdint.h
7121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 ac_res=`eval echo '${'$as_ac_Header'}'`
7129 { echo "$as_me:$LINENO: result: $ac_res" >&5
7130 echo "${ECHO_T}$ac_res" >&6; }
7132 # Is the header compilable?
7133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 $ac_includes_default
7142 #include <$ac_header>
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_header_compiler=yes
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 ac_header_compiler=no
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7171 echo "${ECHO_T}$ac_header_compiler" >&6; }
7173 # Is the header present?
7174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7176 cat >conftest.$ac_ext <<_ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 #include <$ac_header>
7184 if { (ac_try="$ac_cpp conftest.$ac_ext"
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7192 grep -v '^ *+' conftest.er1 >conftest.err
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } >/dev/null && {
7197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7200 ac_header_preproc=yes
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 ac_header_preproc=no
7208 rm -f conftest.err conftest.$ac_ext
7209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210 echo "${ECHO_T}$ac_header_preproc" >&6; }
7212 # So? What about this header?
7213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7219 ac_header_preproc=yes
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 eval "$as_ac_Header=\$ac_header_preproc"
7244 ac_res=`eval echo '${'$as_ac_Header'}'`
7245 { echo "$as_me:$LINENO: result: $ac_res" >&5
7246 echo "${ECHO_T}$ac_res" >&6; }
7249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250 cat >>confdefs.h <<_ACEOF
7251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7258 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7259 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7261 cat >conftest.$ac_ext <<_ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 $EGREP "Found it" >/dev/null 2>&1; then
7283 if test -z "$result"; then
7284 if test "$cross_compiling" = yes; then
7285 # Depending upon the size, compute the lo and hi bounds.
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7296 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7312 grep -v '^ *+' conftest.er1 >conftest.err
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7332 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7339 rm -f conftest.$ac_objext
7340 if { (ac_try="$ac_compile"
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 ac_hi=$ac_mid; break
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_lo=`expr $ac_mid + 1`
7362 if test $ac_lo -le $ac_mid; then
7366 ac_mid=`expr 2 '*' $ac_mid + 1`
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 cat >conftest.$ac_ext <<_ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7385 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7421 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compile") 2>conftest.er1
7437 grep -v '^ *+' conftest.er1 >conftest.err
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.$ac_objext; then
7445 ac_lo=$ac_mid; break
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7450 ac_hi=`expr '(' $ac_mid ')' - 1`
7451 if test $ac_mid -le $ac_hi; then
7455 ac_mid=`expr 2 '*' $ac_mid`
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 # Binary search between lo and hi bounds.
7472 while test "x$ac_lo" != "x$ac_hi"; do
7473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7484 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7491 rm -f conftest.$ac_objext
7492 if { (ac_try="$ac_compile"
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 ac_lo=`expr '(' $ac_mid ')' + 1`
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 cat >conftest.$ac_ext <<_ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7530 static long int longval () { return ~(size_t)0 / 10; }
7531 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7538 FILE *f = fopen ("conftest.val", "w");
7541 if ((~(size_t)0 / 10) < 0)
7543 long int i = longval ();
7544 if (i != (~(size_t)0 / 10))
7546 fprintf (f, "%ld\n", i);
7550 unsigned long int i = ulongval ();
7551 if (i != (~(size_t)0 / 10))
7553 fprintf (f, "%lu\n", i);
7555 return ferror (f) || fclose (f) != 0;
7561 rm -f conftest$ac_exeext
7562 if { (ac_try="$ac_link"
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_link") 2>&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7572 { (case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_try") 2>&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 res_hi=`cat conftest.val`
7583 echo "$as_me: program exited with status $ac_status" >&5
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7594 if test "$cross_compiling" = yes; then
7595 # Depending upon the size, compute the lo and hi bounds.
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7606 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7613 rm -f conftest.$ac_objext
7614 if { (ac_try="$ac_compile"
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_compile") 2>conftest.er1
7622 grep -v '^ *+' conftest.er1 >conftest.err
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } && {
7627 test -z "$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 } && test -s conftest.$ac_objext; then
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7642 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_hi=$ac_mid; break
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_lo=`expr $ac_mid + 1`
7672 if test $ac_lo -le $ac_mid; then
7676 ac_mid=`expr 2 '*' $ac_mid + 1`
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7695 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7731 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7738 rm -f conftest.$ac_objext
7739 if { (ac_try="$ac_compile"
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compile") 2>conftest.er1
7747 grep -v '^ *+' conftest.er1 >conftest.err
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && {
7752 test -z "$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then
7755 ac_lo=$ac_mid; break
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_hi=`expr '(' $ac_mid ')' - 1`
7761 if test $ac_mid -le $ac_hi; then
7765 ac_mid=`expr 2 '*' $ac_mid`
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 # Binary search between lo and hi bounds.
7782 while test "x$ac_lo" != "x$ac_hi"; do
7783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7784 cat >conftest.$ac_ext <<_ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7794 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ac_lo=`expr '(' $ac_mid ')' + 1`
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7840 static long int longval () { return ~(size_t)0 % 10; }
7841 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7848 FILE *f = fopen ("conftest.val", "w");
7851 if ((~(size_t)0 % 10) < 0)
7853 long int i = longval ();
7854 if (i != (~(size_t)0 % 10))
7856 fprintf (f, "%ld\n", i);
7860 unsigned long int i = ulongval ();
7861 if (i != (~(size_t)0 % 10))
7863 fprintf (f, "%lu\n", i);
7865 return ferror (f) || fclose (f) != 0;
7871 rm -f conftest$ac_exeext
7872 if { (ac_try="$ac_link"
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 res_lo=`cat conftest.val`
7893 echo "$as_me: program exited with status $ac_status" >&5
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7904 if test "$cross_compiling" = yes; then
7905 # Depending upon the size, compute the lo and hi bounds.
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7916 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7923 rm -f conftest.$ac_objext
7924 if { (ac_try="$ac_compile"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
7932 grep -v '^ *+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7952 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7959 rm -f conftest.$ac_objext
7960 if { (ac_try="$ac_compile"
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
7968 grep -v '^ *+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
7976 ac_hi=$ac_mid; break
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_lo=`expr $ac_mid + 1`
7982 if test $ac_lo -le $ac_mid; then
7986 ac_mid=`expr 2 '*' $ac_mid + 1`
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8005 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8041 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8065 ac_lo=$ac_mid; break
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 ac_hi=`expr '(' $ac_mid ')' - 1`
8071 if test $ac_mid -le $ac_hi; then
8075 ac_mid=`expr 2 '*' $ac_mid`
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 # Binary search between lo and hi bounds.
8092 while test "x$ac_lo" != "x$ac_hi"; do
8093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8104 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8111 rm -f conftest.$ac_objext
8112 if { (ac_try="$ac_compile"
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_compile") 2>conftest.er1
8120 grep -v '^ *+' conftest.er1 >conftest.err
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest.$ac_objext; then
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8133 ac_lo=`expr '(' $ac_mid ')' + 1`
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 ?*) fits_in_uint=$ac_lo;;
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8150 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8151 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8158 FILE *f = fopen ("conftest.val", "w");
8161 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8163 long int i = longval ();
8164 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8166 fprintf (f, "%ld\n", i);
8170 unsigned long int i = ulongval ();
8171 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8173 fprintf (f, "%lu\n", i);
8175 return ferror (f) || fclose (f) != 0;
8181 rm -f conftest$ac_exeext
8182 if { (ac_try="$ac_link"
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_link") 2>&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8192 { (case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_try") 2>&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 fits_in_uint=`cat conftest.val`
8203 echo "$as_me: program exited with status $ac_status" >&5
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8214 if test "$fits_in_uint" = 1; then
8215 cat >conftest.$ac_ext <<_ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8223 extern unsigned long foo;
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260 if test -z "$result"; then
8261 if test "$fits_in_uint" = 1; then
8262 result="$res_hi$res_lo"U
8264 result="$res_hi$res_lo"UL
8270 { echo "$as_me:$LINENO: result: $result" >&5
8271 echo "${ECHO_T}$result" >&6; }
8272 if test "$result" != yes; then
8274 cat >>confdefs.h <<_ACEOF
8275 #define SIZE_MAX $result
8283 for ac_header in stdint.h
8285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 ac_res=`eval echo '${'$as_ac_Header'}'`
8293 { echo "$as_me:$LINENO: result: $ac_res" >&5
8294 echo "${ECHO_T}$ac_res" >&6; }
8296 # Is the header compilable?
8297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 #include <$ac_header>
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8317 grep -v '^ *+' conftest.er1 >conftest.err
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.$ac_objext; then
8325 ac_header_compiler=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 ac_header_compiler=no
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8335 echo "${ECHO_T}$ac_header_compiler" >&6; }
8337 # Is the header present?
8338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8340 cat >conftest.$ac_ext <<_ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8346 #include <$ac_header>
8348 if { (ac_try="$ac_cpp conftest.$ac_ext"
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } >/dev/null && {
8361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8364 ac_header_preproc=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_header_preproc=no
8372 rm -f conftest.err conftest.$ac_ext
8373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8374 echo "${ECHO_T}$ac_header_preproc" >&6; }
8376 # So? What about this header?
8377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8383 ac_header_preproc=yes
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 eval "$as_ac_Header=\$ac_header_preproc"
8408 ac_res=`eval echo '${'$as_ac_Header'}'`
8409 { echo "$as_me:$LINENO: result: $ac_res" >&5
8410 echo "${ECHO_T}$ac_res" >&6; }
8413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8424 if test "X$prefix" = "XNONE"; then
8425 acl_final_prefix="$ac_default_prefix"
8427 acl_final_prefix="$prefix"
8429 if test "X$exec_prefix" = "XNONE"; then
8430 acl_final_exec_prefix='${prefix}'
8432 acl_final_exec_prefix="$exec_prefix"
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8437 prefix="$acl_save_prefix"
8440 # Check whether --with-gnu-ld was given.
8441 if test "${with_gnu_ld+set}" = set; then
8442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8447 # Prepare PATH_SEPARATOR.
8448 # The user is always right.
8449 if test "${PATH_SEPARATOR+set}" != set; then
8450 echo "#! /bin/sh" >conf$$.sh
8451 echo "exit 0" >>conf$$.sh
8453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8461 if test "$GCC" = yes; then
8462 # Check if gcc -print-prog-name=ld gives a path.
8463 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8464 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8467 # gcc leaves a trailing carriage return which upsets mingw
8468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8473 # Accept absolute paths.
8474 [\\/]* | [A-Za-z]:[\\/]*)
8475 re_direlt='/[^/][^/]*/\.\./'
8476 # Canonicalize the path of ld
8477 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8478 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8479 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8481 test -z "$LD" && LD="$ac_prog"
8484 # If it fails, then pretend we aren't using GCC.
8488 # If it is relative, then search for the first ld in PATH.
8492 elif test "$with_gnu_ld" = yes; then
8493 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8494 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8496 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8497 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8499 if test "${acl_cv_path_LD+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 if test -z "$LD"; then
8503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8504 for ac_dir in $PATH; do
8505 test -z "$ac_dir" && ac_dir=.
8506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8507 acl_cv_path_LD="$ac_dir/$ac_prog"
8508 # Check to see if the program is GNU ld. I'd rather use --version,
8509 # but apparently some GNU ld's only accept -v.
8510 # Break only if it was the GNU/non-GNU ld that we prefer.
8511 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8512 *GNU* | *'with BFD'*)
8513 test "$with_gnu_ld" != no && break ;;
8515 test "$with_gnu_ld" != yes && break ;;
8521 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8525 LD="$acl_cv_path_LD"
8526 if test -n "$LD"; then
8527 { echo "$as_me:$LINENO: result: $LD" >&5
8528 echo "${ECHO_T}$LD" >&6; }
8530 { echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6; }
8533 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8534 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8535 { (exit 1); exit 1; }; }
8536 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8537 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8538 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8542 case `$LD -v 2>&1 </dev/null` in
8543 *GNU* | *'with BFD'*)
8544 acl_cv_prog_gnu_ld=yes ;;
8546 acl_cv_prog_gnu_ld=no ;;
8549 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8550 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8551 with_gnu_ld=$acl_cv_prog_gnu_ld
8555 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8556 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8557 if test "${acl_cv_rpath+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8562 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8568 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8569 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8571 libext="$acl_cv_libext"
8572 shlibext="$acl_cv_shlibext"
8573 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8574 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8575 hardcode_direct="$acl_cv_hardcode_direct"
8576 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8577 # Check whether --enable-rpath was given.
8578 if test "${enable_rpath+set}" = set; then
8579 enableval=$enable_rpath; :
8593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
8598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
8601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8605 # Check whether --with-libiconv-prefix was given.
8606 if test "${with_libiconv_prefix+set}" = set; then
8607 withval=$with_libiconv_prefix;
8608 if test "X$withval" = "Xno"; then
8611 if test "X$withval" = "X"; then
8613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
8618 eval additional_includedir=\"$includedir\"
8619 eval additional_libdir=\"$libdir\"
8621 exec_prefix="$acl_save_exec_prefix"
8622 prefix="$acl_save_prefix"
8625 additional_includedir="$withval/include"
8626 additional_libdir="$withval/lib"
8637 names_already_handled=
8638 names_next_round='iconv '
8639 while test -n "$names_next_round"; do
8640 names_this_round="$names_next_round"
8642 for name in $names_this_round; do
8644 for n in $names_already_handled; do
8645 if test "$n" = "$name"; then
8650 if test -z "$already_handled"; then
8651 names_already_handled="$names_already_handled $name"
8652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653 eval value=\"\$HAVE_LIB$uppername\"
8654 if test -n "$value"; then
8655 if test "$value" = yes; then
8656 eval value=\"\$LIB$uppername\"
8657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8658 eval value=\"\$LTLIB$uppername\"
8659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8668 if test $use_additional = yes; then
8669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670 found_dir="$additional_libdir"
8671 found_so="$additional_libdir/lib$name.$shlibext"
8672 if test -f "$additional_libdir/lib$name.la"; then
8673 found_la="$additional_libdir/lib$name.la"
8676 if test -f "$additional_libdir/lib$name.$libext"; then
8677 found_dir="$additional_libdir"
8678 found_a="$additional_libdir/lib$name.$libext"
8679 if test -f "$additional_libdir/lib$name.la"; then
8680 found_la="$additional_libdir/lib$name.la"
8685 if test "X$found_dir" = "X"; then
8686 for x in $LDFLAGS $LTLIBICONV; do
8688 acl_save_prefix="$prefix"
8689 prefix="$acl_final_prefix"
8690 acl_save_exec_prefix="$exec_prefix"
8691 exec_prefix="$acl_final_exec_prefix"
8693 exec_prefix="$acl_save_exec_prefix"
8694 prefix="$acl_save_prefix"
8698 dir=`echo "X$x" | sed -e 's/^X-L//'`
8699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8701 found_so="$dir/lib$name.$shlibext"
8702 if test -f "$dir/lib$name.la"; then
8703 found_la="$dir/lib$name.la"
8706 if test -f "$dir/lib$name.$libext"; then
8708 found_a="$dir/lib$name.$libext"
8709 if test -f "$dir/lib$name.la"; then
8710 found_la="$dir/lib$name.la"
8716 if test "X$found_dir" != "X"; then
8721 if test "X$found_dir" != "X"; then
8722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8723 if test "X$found_so" != "X"; then
8724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8728 for x in $ltrpathdirs; do
8729 if test "X$x" = "X$found_dir"; then
8734 if test -z "$haveit"; then
8735 ltrpathdirs="$ltrpathdirs $found_dir"
8737 if test "$hardcode_direct" = yes; then
8738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8743 for x in $rpathdirs; do
8744 if test "X$x" = "X$found_dir"; then
8749 if test -z "$haveit"; then
8750 rpathdirs="$rpathdirs $found_dir"
8754 for x in $LDFLAGS $LIBICONV; do
8756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8764 if test "X$x" = "X-L$found_dir"; then
8769 if test -z "$haveit"; then
8770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8772 if test "$hardcode_minus_L" != no; then
8773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8781 if test "X$found_a" != "X"; then
8782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8787 additional_includedir=
8788 case "$found_dir" in
8790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791 additional_includedir="$basedir/include"
8794 if test "X$additional_includedir" != "X"; then
8795 if test "X$additional_includedir" != "X/usr/include"; then
8797 if test "X$additional_includedir" = "X/usr/local/include"; then
8798 if test -n "$GCC"; then
8800 linux*) haveit=yes;;
8804 if test -z "$haveit"; then
8805 for x in $CPPFLAGS $INCICONV; do
8807 acl_save_prefix="$prefix"
8808 prefix="$acl_final_prefix"
8809 acl_save_exec_prefix="$exec_prefix"
8810 exec_prefix="$acl_final_exec_prefix"
8812 exec_prefix="$acl_save_exec_prefix"
8813 prefix="$acl_save_prefix"
8815 if test "X$x" = "X-I$additional_includedir"; then
8820 if test -z "$haveit"; then
8821 if test -d "$additional_includedir"; then
8822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8828 if test -n "$found_la"; then
8829 save_libdir="$libdir"
8831 */* | *\\*) . "$found_la" ;;
8832 *) . "./$found_la" ;;
8834 libdir="$save_libdir"
8835 for dep in $dependency_libs; do
8838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839 if test "X$additional_libdir" != "X/usr/lib"; then
8841 if test "X$additional_libdir" = "X/usr/local/lib"; then
8842 if test -n "$GCC"; then
8844 linux*) haveit=yes;;
8848 if test -z "$haveit"; then
8850 for x in $LDFLAGS $LIBICONV; do
8852 acl_save_prefix="$prefix"
8853 prefix="$acl_final_prefix"
8854 acl_save_exec_prefix="$exec_prefix"
8855 exec_prefix="$acl_final_exec_prefix"
8857 exec_prefix="$acl_save_exec_prefix"
8858 prefix="$acl_save_prefix"
8860 if test "X$x" = "X-L$additional_libdir"; then
8865 if test -z "$haveit"; then
8866 if test -d "$additional_libdir"; then
8867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8871 for x in $LDFLAGS $LTLIBICONV; do
8873 acl_save_prefix="$prefix"
8874 prefix="$acl_final_prefix"
8875 acl_save_exec_prefix="$exec_prefix"
8876 exec_prefix="$acl_final_exec_prefix"
8878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8881 if test "X$x" = "X-L$additional_libdir"; then
8886 if test -z "$haveit"; then
8887 if test -d "$additional_libdir"; then
8888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896 if test "$enable_rpath" != no; then
8898 for x in $rpathdirs; do
8899 if test "X$x" = "X$dir"; then
8904 if test -z "$haveit"; then
8905 rpathdirs="$rpathdirs $dir"
8908 for x in $ltrpathdirs; do
8909 if test "X$x" = "X$dir"; then
8914 if test -z "$haveit"; then
8915 ltrpathdirs="$ltrpathdirs $dir"
8920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8940 if test "X$rpathdirs" != "X"; then
8941 if test -n "$hardcode_libdir_separator"; then
8943 for found_dir in $rpathdirs; do
8944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8946 acl_save_libdir="$libdir"
8948 eval flag=\"$hardcode_libdir_flag_spec\"
8949 libdir="$acl_save_libdir"
8950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8952 for found_dir in $rpathdirs; do
8953 acl_save_libdir="$libdir"
8955 eval flag=\"$hardcode_libdir_flag_spec\"
8956 libdir="$acl_save_libdir"
8957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8961 if test "X$ltrpathdirs" != "X"; then
8962 for found_dir in $ltrpathdirs; do
8963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8974 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8975 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8976 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 cat >conftest.$ac_ext <<_ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 $ac_includes_default
8986 typedef ptrdiff_t ac__type_new_;
8990 if ((ac__type_new_ *) 0)
8992 if (sizeof (ac__type_new_))
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
9015 ac_cv_type_ptrdiff_t=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ac_cv_type_ptrdiff_t=no
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9026 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9027 if test $ac_cv_type_ptrdiff_t = yes; then
9031 cat >>confdefs.h <<\_ACEOF
9032 #define ptrdiff_t long
9048 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9049 stdlib.h string.h unistd.h sys/param.h
9051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 ac_res=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060 echo "${ECHO_T}$ac_res" >&6; }
9062 # Is the header compilable?
9063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 $ac_includes_default
9072 #include <$ac_header>
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9083 grep -v '^ *+' conftest.er1 >conftest.err
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 ac_header_compiler=yes
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 ac_header_compiler=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9101 echo "${ECHO_T}$ac_header_compiler" >&6; }
9103 # Is the header present?
9104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9106 cat >conftest.$ac_ext <<_ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 #include <$ac_header>
9114 if { (ac_try="$ac_cpp conftest.$ac_ext"
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9122 grep -v '^ *+' conftest.er1 >conftest.err
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } >/dev/null && {
9127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9130 ac_header_preproc=yes
9132 echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9135 ac_header_preproc=no
9138 rm -f conftest.err conftest.$ac_ext
9139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140 echo "${ECHO_T}$ac_header_preproc" >&6; }
9142 # So? What about this header?
9143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9149 ac_header_preproc=yes
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 eval "$as_ac_Header=\$ac_header_preproc"
9174 ac_res=`eval echo '${'$as_ac_Header'}'`
9175 { echo "$as_me:$LINENO: result: $ac_res" >&5
9176 echo "${ECHO_T}$ac_res" >&6; }
9179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9212 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9213 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9230 #define $ac_func innocuous_$ac_func
9232 /* System header to define __stub macros and hopefully few prototypes,
9233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9238 # include <limits.h>
9240 # include <assert.h>
9245 /* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
9252 /* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
9255 #if defined __stub_$ac_func || defined __stub___$ac_func
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (ac_try="$ac_link"
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest$ac_exeext &&
9284 $as_test_x conftest$ac_exeext; then
9285 eval "$as_ac_var=yes"
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 eval "$as_ac_var=no"
9293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9294 conftest$ac_exeext conftest.$ac_ext
9296 ac_res=`eval echo '${'$as_ac_var'}'`
9297 { echo "$as_me:$LINENO: result: $ac_res" >&5
9298 echo "${ECHO_T}$ac_res" >&6; }
9299 if test `eval echo '${'$as_ac_var'}'` = yes; then
9300 cat >>confdefs.h <<_ACEOF
9301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9309 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9310 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9311 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9326 char *p = (char *) _snprintf;
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_compile") 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest.$ac_objext; then
9350 ac_cv_have_decl__snprintf=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_cv_have_decl__snprintf=no
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9361 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9362 if test $ac_cv_have_decl__snprintf = yes; then
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_DECL__SNPRINTF $gt_value
9374 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9375 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9376 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 cat >conftest.$ac_ext <<_ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9391 char *p = (char *) _snwprintf;
9398 rm -f conftest.$ac_objext
9399 if { (ac_try="$ac_compile"
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
9415 ac_cv_have_decl__snwprintf=yes
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 ac_cv_have_decl__snwprintf=no
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9426 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9427 if test $ac_cv_have_decl__snwprintf = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DECL__SNWPRINTF $gt_value
9440 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9441 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9442 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9456 #ifndef feof_unlocked
9457 char *p = (char *) feof_unlocked;
9464 rm -f conftest.$ac_objext
9465 if { (ac_try="$ac_compile"
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_compile") 2>conftest.er1
9473 grep -v '^ *+' conftest.er1 >conftest.err
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && {
9478 test -z "$ac_c_werror_flag" ||
9479 test ! -s conftest.err
9480 } && test -s conftest.$ac_objext; then
9481 ac_cv_have_decl_feof_unlocked=yes
9483 echo "$as_me: failed program was:" >&5
9484 sed 's/^/| /' conftest.$ac_ext >&5
9486 ac_cv_have_decl_feof_unlocked=no
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9492 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9493 if test $ac_cv_have_decl_feof_unlocked = yes; then
9499 cat >>confdefs.h <<_ACEOF
9500 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9505 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9506 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9507 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9521 #ifndef fgets_unlocked
9522 char *p = (char *) fgets_unlocked;
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1 >conftest.err
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
9546 ac_cv_have_decl_fgets_unlocked=yes
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9551 ac_cv_have_decl_fgets_unlocked=no
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9557 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9558 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9564 cat >>confdefs.h <<_ACEOF
9565 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9570 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9571 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9572 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9586 #ifndef getc_unlocked
9587 char *p = (char *) getc_unlocked;
9594 rm -f conftest.$ac_objext
9595 if { (ac_try="$ac_compile"
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_compile") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
9611 ac_cv_have_decl_getc_unlocked=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_have_decl_getc_unlocked=no
9619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9622 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9623 if test $ac_cv_have_decl_getc_unlocked = yes; then
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9635 case $gt_cv_func_printf_posix in
9636 *yes) HAVE_POSIX_PRINTF=1 ;;
9637 *) HAVE_POSIX_PRINTF=0 ;;
9640 if test "$ac_cv_func_asprintf" = yes; then
9646 if test "$ac_cv_func_snprintf" = yes; then
9652 if test "$ac_cv_func_wprintf" = yes; then
9664 am_save_CPPFLAGS="$CPPFLAGS"
9666 for element in $INCICONV; do
9668 for x in $CPPFLAGS; do
9670 acl_save_prefix="$prefix"
9671 prefix="$acl_final_prefix"
9672 acl_save_exec_prefix="$exec_prefix"
9673 exec_prefix="$acl_final_exec_prefix"
9675 exec_prefix="$acl_save_exec_prefix"
9676 prefix="$acl_save_prefix"
9678 if test "X$x" = "X$element"; then
9683 if test -z "$haveit"; then
9684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9689 { echo "$as_me:$LINENO: checking for iconv" >&5
9690 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9691 if test "${am_cv_func_iconv+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 am_cv_func_iconv="no, consider installing GNU libiconv"
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9708 iconv_t cd = iconv_open("","");
9709 iconv(cd,NULL,NULL,NULL,NULL);
9715 rm -f conftest.$ac_objext conftest$ac_exeext
9716 if { (ac_try="$ac_link"
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
9724 grep -v '^ *+' conftest.er1 >conftest.err
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest$ac_exeext &&
9732 $as_test_x conftest$ac_exeext; then
9733 am_cv_func_iconv=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9742 conftest$ac_exeext conftest.$ac_ext
9743 if test "$am_cv_func_iconv" != yes; then
9744 am_save_LIBS="$LIBS"
9745 LIBS="$LIBS $LIBICONV"
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9757 iconv_t cd = iconv_open("","");
9758 iconv(cd,NULL,NULL,NULL,NULL);
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
9783 am_cv_func_iconv=yes
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792 conftest$ac_exeext conftest.$ac_ext
9793 LIBS="$am_save_LIBS"
9797 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9798 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9799 if test "$am_cv_func_iconv" = yes; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_ICONV 1
9806 if test "$am_cv_lib_iconv" = yes; then
9807 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9808 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9809 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9810 echo "${ECHO_T}$LIBICONV" >&6; }
9812 CPPFLAGS="$am_save_CPPFLAGS"
9819 if test "$am_cv_func_iconv" = yes; then
9820 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9821 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9822 if test "${am_cv_proto_iconv+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9839 #if defined(__STDC__) || defined(__cplusplus)
9840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9853 rm -f conftest.$ac_objext
9854 if { (ac_try="$ac_compile"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
9870 am_cv_proto_iconv_arg1=""
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 am_cv_proto_iconv_arg1="const"
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 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);"
9882 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9883 { echo "$as_me:$LINENO: result: ${ac_t:-
9884 }$am_cv_proto_iconv" >&5
9885 echo "${ECHO_T}${ac_t:-
9886 }$am_cv_proto_iconv" >&6; }
9888 cat >>confdefs.h <<_ACEOF
9889 #define ICONV_CONST $am_cv_proto_iconv_arg1
9895 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9896 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9897 if test "${am_cv_langinfo_codeset+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 #include <langinfo.h>
9910 char* cs = nl_langinfo(CODESET);
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
9933 am_cv_langinfo_codeset=yes
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9938 am_cv_langinfo_codeset=no
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942 conftest$ac_exeext conftest.$ac_ext
9945 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9946 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9947 if test $am_cv_langinfo_codeset = yes; then
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_LANGINFO_CODESET 1
9955 if test $ac_cv_header_locale_h = yes; then
9957 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9958 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9959 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
9986 grep -v '^ *+' conftest.er1 >conftest.err
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext &&
9994 $as_test_x conftest$ac_exeext; then
9995 am_cv_val_LC_MESSAGES=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
10000 am_cv_val_LC_MESSAGES=no
10003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10004 conftest$ac_exeext conftest.$ac_ext
10006 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10007 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10008 if test $am_cv_val_LC_MESSAGES = yes; then
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_LC_MESSAGES 1
10018 for ac_prog in bison
10020 # Extract the first word of "$ac_prog", so it can be a program name with args.
10021 set dummy $ac_prog; ac_word=$2
10022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10024 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 if test -n "$INTLBISON"; then
10028 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10037 ac_cv_prog_INTLBISON="$ac_prog"
10038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 INTLBISON=$ac_cv_prog_INTLBISON
10048 if test -n "$INTLBISON"; then
10049 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10050 echo "${ECHO_T}$INTLBISON" >&6; }
10052 { echo "$as_me:$LINENO: result: no" >&5
10053 echo "${ECHO_T}no" >&6; }
10057 test -n "$INTLBISON" && break
10060 if test -z "$INTLBISON"; then
10063 { echo "$as_me:$LINENO: checking version of bison" >&5
10064 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10065 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10066 case $ac_prog_version in
10067 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10068 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10069 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10070 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10072 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10073 echo "${ECHO_T}$ac_prog_version" >&6; }
10075 if test $ac_verc_fail = yes; then
10094 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10095 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10096 # Check whether --enable-nls was given.
10097 if test "${enable_nls+set}" = set; then
10098 enableval=$enable_nls; USE_NLS=$enableval
10103 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10104 echo "${ECHO_T}$USE_NLS" >&6; }
10109 BUILD_INCLUDED_LIBINTL=no
10110 USE_INCLUDED_LIBINTL=no
10116 if test "$USE_NLS" = "yes"; then
10117 gt_use_preinstalled_gnugettext=no
10119 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10120 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10122 # Check whether --with-included-gettext was given.
10123 if test "${with_included_gettext+set}" = set; then
10124 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10126 nls_cv_force_use_gnu_gettext=no
10129 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10130 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10132 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10133 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10140 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10141 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10142 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 #include <libintl.h>
10152 extern int _nl_msg_cat_cntr;
10153 extern int *_nl_domain_bindings;
10157 bindtextdomain ("", "");
10158 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext &&
10180 $as_test_x conftest$ac_exeext; then
10181 gt_cv_func_gnugettext1_libc=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 gt_cv_func_gnugettext1_libc=no
10189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10190 conftest$ac_exeext conftest.$ac_ext
10192 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10193 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10195 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
10206 eval additional_includedir=\"$includedir\"
10207 eval additional_libdir=\"$libdir\"
10209 exec_prefix="$acl_save_exec_prefix"
10210 prefix="$acl_save_prefix"
10213 # Check whether --with-libintl-prefix was given.
10214 if test "${with_libintl_prefix+set}" = set; then
10215 withval=$with_libintl_prefix;
10216 if test "X$withval" = "Xno"; then
10219 if test "X$withval" = "X"; then
10221 acl_save_prefix="$prefix"
10222 prefix="$acl_final_prefix"
10223 acl_save_exec_prefix="$exec_prefix"
10224 exec_prefix="$acl_final_exec_prefix"
10226 eval additional_includedir=\"$includedir\"
10227 eval additional_libdir=\"$libdir\"
10229 exec_prefix="$acl_save_exec_prefix"
10230 prefix="$acl_save_prefix"
10233 additional_includedir="$withval/include"
10234 additional_libdir="$withval/lib"
10245 names_already_handled=
10246 names_next_round='intl '
10247 while test -n "$names_next_round"; do
10248 names_this_round="$names_next_round"
10250 for name in $names_this_round; do
10252 for n in $names_already_handled; do
10253 if test "$n" = "$name"; then
10254 already_handled=yes
10258 if test -z "$already_handled"; then
10259 names_already_handled="$names_already_handled $name"
10260 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10261 eval value=\"\$HAVE_LIB$uppername\"
10262 if test -n "$value"; then
10263 if test "$value" = yes; then
10264 eval value=\"\$LIB$uppername\"
10265 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10266 eval value=\"\$LTLIB$uppername\"
10267 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10276 if test $use_additional = yes; then
10277 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10278 found_dir="$additional_libdir"
10279 found_so="$additional_libdir/lib$name.$shlibext"
10280 if test -f "$additional_libdir/lib$name.la"; then
10281 found_la="$additional_libdir/lib$name.la"
10284 if test -f "$additional_libdir/lib$name.$libext"; then
10285 found_dir="$additional_libdir"
10286 found_a="$additional_libdir/lib$name.$libext"
10287 if test -f "$additional_libdir/lib$name.la"; then
10288 found_la="$additional_libdir/lib$name.la"
10293 if test "X$found_dir" = "X"; then
10294 for x in $LDFLAGS $LTLIBINTL; do
10296 acl_save_prefix="$prefix"
10297 prefix="$acl_final_prefix"
10298 acl_save_exec_prefix="$exec_prefix"
10299 exec_prefix="$acl_final_exec_prefix"
10301 exec_prefix="$acl_save_exec_prefix"
10302 prefix="$acl_save_prefix"
10306 dir=`echo "X$x" | sed -e 's/^X-L//'`
10307 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10309 found_so="$dir/lib$name.$shlibext"
10310 if test -f "$dir/lib$name.la"; then
10311 found_la="$dir/lib$name.la"
10314 if test -f "$dir/lib$name.$libext"; then
10316 found_a="$dir/lib$name.$libext"
10317 if test -f "$dir/lib$name.la"; then
10318 found_la="$dir/lib$name.la"
10324 if test "X$found_dir" != "X"; then
10329 if test "X$found_dir" != "X"; then
10330 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10331 if test "X$found_so" != "X"; then
10332 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10333 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10336 for x in $ltrpathdirs; do
10337 if test "X$x" = "X$found_dir"; then
10342 if test -z "$haveit"; then
10343 ltrpathdirs="$ltrpathdirs $found_dir"
10345 if test "$hardcode_direct" = yes; then
10346 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10348 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10351 for x in $rpathdirs; do
10352 if test "X$x" = "X$found_dir"; then
10357 if test -z "$haveit"; then
10358 rpathdirs="$rpathdirs $found_dir"
10362 for x in $LDFLAGS $LIBINTL; do
10364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10372 if test "X$x" = "X-L$found_dir"; then
10377 if test -z "$haveit"; then
10378 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10380 if test "$hardcode_minus_L" != no; then
10381 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10383 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10389 if test "X$found_a" != "X"; then
10390 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10392 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10395 additional_includedir=
10396 case "$found_dir" in
10398 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10399 additional_includedir="$basedir/include"
10402 if test "X$additional_includedir" != "X"; then
10403 if test "X$additional_includedir" != "X/usr/include"; then
10405 if test "X$additional_includedir" = "X/usr/local/include"; then
10406 if test -n "$GCC"; then
10408 linux*) haveit=yes;;
10412 if test -z "$haveit"; then
10413 for x in $CPPFLAGS $INCINTL; do
10415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10420 exec_prefix="$acl_save_exec_prefix"
10421 prefix="$acl_save_prefix"
10423 if test "X$x" = "X-I$additional_includedir"; then
10428 if test -z "$haveit"; then
10429 if test -d "$additional_includedir"; then
10430 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10436 if test -n "$found_la"; then
10437 save_libdir="$libdir"
10438 case "$found_la" in
10439 */* | *\\*) . "$found_la" ;;
10440 *) . "./$found_la" ;;
10442 libdir="$save_libdir"
10443 for dep in $dependency_libs; do
10446 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10447 if test "X$additional_libdir" != "X/usr/lib"; then
10449 if test "X$additional_libdir" = "X/usr/local/lib"; then
10450 if test -n "$GCC"; then
10452 linux*) haveit=yes;;
10456 if test -z "$haveit"; then
10458 for x in $LDFLAGS $LIBINTL; do
10460 acl_save_prefix="$prefix"
10461 prefix="$acl_final_prefix"
10462 acl_save_exec_prefix="$exec_prefix"
10463 exec_prefix="$acl_final_exec_prefix"
10465 exec_prefix="$acl_save_exec_prefix"
10466 prefix="$acl_save_prefix"
10468 if test "X$x" = "X-L$additional_libdir"; then
10473 if test -z "$haveit"; then
10474 if test -d "$additional_libdir"; then
10475 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10479 for x in $LDFLAGS $LTLIBINTL; do
10481 acl_save_prefix="$prefix"
10482 prefix="$acl_final_prefix"
10483 acl_save_exec_prefix="$exec_prefix"
10484 exec_prefix="$acl_final_exec_prefix"
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10489 if test "X$x" = "X-L$additional_libdir"; then
10494 if test -z "$haveit"; then
10495 if test -d "$additional_libdir"; then
10496 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10503 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10504 if test "$enable_rpath" != no; then
10506 for x in $rpathdirs; do
10507 if test "X$x" = "X$dir"; then
10512 if test -z "$haveit"; then
10513 rpathdirs="$rpathdirs $dir"
10516 for x in $ltrpathdirs; do
10517 if test "X$x" = "X$dir"; then
10522 if test -z "$haveit"; then
10523 ltrpathdirs="$ltrpathdirs $dir"
10528 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10534 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10535 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10541 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10548 if test "X$rpathdirs" != "X"; then
10549 if test -n "$hardcode_libdir_separator"; then
10551 for found_dir in $rpathdirs; do
10552 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10554 acl_save_libdir="$libdir"
10556 eval flag=\"$hardcode_libdir_flag_spec\"
10557 libdir="$acl_save_libdir"
10558 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10560 for found_dir in $rpathdirs; do
10561 acl_save_libdir="$libdir"
10562 libdir="$found_dir"
10563 eval flag=\"$hardcode_libdir_flag_spec\"
10564 libdir="$acl_save_libdir"
10565 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10569 if test "X$ltrpathdirs" != "X"; then
10570 for found_dir in $ltrpathdirs; do
10571 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10575 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10576 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10577 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 gt_save_CPPFLAGS="$CPPFLAGS"
10581 CPPFLAGS="$CPPFLAGS $INCINTL"
10582 gt_save_LIBS="$LIBS"
10583 LIBS="$LIBS $LIBINTL"
10584 cat >conftest.$ac_ext <<_ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h. */
10590 #include <libintl.h>
10591 extern int _nl_msg_cat_cntr;
10596 const char *_nl_expand_alias ();
10600 bindtextdomain ("", "");
10601 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10606 rm -f conftest.$ac_objext conftest$ac_exeext
10607 if { (ac_try="$ac_link"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1 >conftest.err
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext &&
10623 $as_test_x conftest$ac_exeext; then
10624 gt_cv_func_gnugettext1_libintl=yes
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 gt_cv_func_gnugettext1_libintl=no
10632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10633 conftest$ac_exeext conftest.$ac_ext
10634 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10635 LIBS="$LIBS $LIBICONV"
10636 cat >conftest.$ac_ext <<_ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 #include <libintl.h>
10643 extern int _nl_msg_cat_cntr;
10648 const char *_nl_expand_alias ();
10652 bindtextdomain ("", "");
10653 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_link") 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest$ac_exeext &&
10675 $as_test_x conftest$ac_exeext; then
10676 LIBINTL="$LIBINTL $LIBICONV"
10677 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10678 gt_cv_func_gnugettext1_libintl=yes
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10690 CPPFLAGS="$gt_save_CPPFLAGS"
10691 LIBS="$gt_save_LIBS"
10693 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10694 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10697 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10698 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10699 && test "$PACKAGE" != gettext-runtime \
10700 && test "$PACKAGE" != gettext-tools; }; then
10701 gt_use_preinstalled_gnugettext=yes
10709 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10710 nls_cv_use_gnu_gettext=yes
10714 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10715 BUILD_INCLUDED_LIBINTL=yes
10716 USE_INCLUDED_LIBINTL=yes
10717 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10718 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10719 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10722 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10723 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10728 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10729 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10731 cat >>confdefs.h <<\_ACEOF
10732 #define ENABLE_NLS 1
10740 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10741 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10742 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10743 echo "${ECHO_T}$USE_NLS" >&6; }
10744 if test "$USE_NLS" = "yes"; then
10745 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10746 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10748 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10749 gt_source="external libintl"
10754 gt_source="included intl directory"
10756 { echo "$as_me:$LINENO: result: $gt_source" >&5
10757 echo "${ECHO_T}$gt_source" >&6; }
10760 if test "$USE_NLS" = "yes"; then
10762 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10763 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10764 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10765 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10766 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10767 echo "${ECHO_T}$LIBINTL" >&6; }
10769 for element in $INCINTL; do
10771 for x in $CPPFLAGS; do
10773 acl_save_prefix="$prefix"
10774 prefix="$acl_final_prefix"
10775 acl_save_exec_prefix="$exec_prefix"
10776 exec_prefix="$acl_final_exec_prefix"
10778 exec_prefix="$acl_save_exec_prefix"
10779 prefix="$acl_save_prefix"
10781 if test "X$x" = "X$element"; then
10786 if test -z "$haveit"; then
10787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_GETTEXT 1
10799 cat >>confdefs.h <<\_ACEOF
10800 #define HAVE_DCGETTEXT 1
10809 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10810 BUILD_INCLUDED_LIBINTL=yes
10817 nls_cv_header_intl=
10818 nls_cv_header_libgt=
10829 if test "$USE_INCLUDED_LIBINTL" = yes; then
10830 INTLOBJS="\$(GETTOBJS)"
10834 INTL_LIBTOOL_SUFFIX_PREFIX=
10838 INTLLIBS="$LIBINTL"
10846 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10847 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10848 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 cat >conftest.make <<\_ACEOF
10855 @echo '@@@%%%=$(MAKE)=@@@%%%'
10857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10859 *@@@%%%=?*=@@@%%%*)
10860 eval ac_cv_prog_make_${ac_make}_set=yes;;
10862 eval ac_cv_prog_make_${ac_make}_set=no;;
10864 rm -f conftest.make
10866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10867 { echo "$as_me:$LINENO: result: yes" >&5
10868 echo "${ECHO_T}yes" >&6; }
10871 { echo "$as_me:$LINENO: result: no" >&5
10872 echo "${ECHO_T}no" >&6; }
10873 SET_MAKE="MAKE=${MAKE-make}"
10876 # Extract the first word of "ln", so it can be a program name with args.
10877 set dummy ln; ac_word=$2
10878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10880 if test "${ac_cv_path_LN+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10895 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10908 if test -n "$LN"; then
10909 { echo "$as_me:$LINENO: result: $LN" >&5
10910 echo "${ECHO_T}$LN" >&6; }
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10917 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10920 if test "$LN_S" = "ln -s"; then
10921 { echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6; }
10924 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10925 echo "${ECHO_T}no, using $LN_S" >&6; }
10928 # Extract the first word of "mv", so it can be a program name with args.
10929 set dummy mv; ac_word=$2
10930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_MV+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10960 if test -n "$MV"; then
10961 { echo "$as_me:$LINENO: result: $MV" >&5
10962 echo "${ECHO_T}$MV" >&6; }
10964 { echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6; }
10969 # Extract the first word of "cp", so it can be a program name with args.
10970 set dummy cp; ac_word=$2
10971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10973 if test "${ac_cv_path_CP+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $PATH
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11001 if test -n "$CP"; then
11002 { echo "$as_me:$LINENO: result: $CP" >&5
11003 echo "${ECHO_T}$CP" >&6; }
11005 { echo "$as_me:$LINENO: result: no" >&5
11006 echo "${ECHO_T}no" >&6; }
11010 # Extract the first word of "rm", so it can be a program name with args.
11011 set dummy rm; ac_word=$2
11012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11014 if test "${ac_cv_path_RM+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
11019 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023 for as_dir in $PATH
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11029 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11037 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11042 if test -n "$RM"; then
11043 { echo "$as_me:$LINENO: result: $RM" >&5
11044 echo "${ECHO_T}$RM" >&6; }
11046 { echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6; }
11051 # Extract the first word of "chmod", so it can be a program name with args.
11052 set dummy chmod; ac_word=$2
11053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11055 if test "${ac_cv_path_CHMOD+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11060 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11070 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11078 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11082 CHMOD=$ac_cv_path_CHMOD
11083 if test -n "$CHMOD"; then
11084 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11085 echo "${ECHO_T}$CHMOD" >&6; }
11087 { echo "$as_me:$LINENO: result: no" >&5
11088 echo "${ECHO_T}no" >&6; }
11092 for ac_prog in gawk mawk nawk awk
11094 # Extract the first word of "$ac_prog", so it can be a program name with args.
11095 set dummy $ac_prog; ac_word=$2
11096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11098 if test "${ac_cv_prog_AWK+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 if test -n "$AWK"; then
11102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_prog_AWK="$ac_prog"
11112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 AWK=$ac_cv_prog_AWK
11122 if test -n "$AWK"; then
11123 { echo "$as_me:$LINENO: result: $AWK" >&5
11124 echo "${ECHO_T}$AWK" >&6; }
11126 { echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6; }
11131 test -n "$AWK" && break
11134 { echo "$as_me:$LINENO: checking for egrep" >&5
11135 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11136 if test "${ac_cv_path_EGREP+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11140 then ac_cv_path_EGREP="$GREP -E"
11142 # Extract the first word of "egrep" to use in msg output
11143 if test -z "$EGREP"; then
11144 set dummy egrep; ac_prog_name=$2
11145 if test "${ac_cv_path_EGREP+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 ac_path_EGREP_found=false
11149 # Loop through the user's path and test for each of PROGNAME-LIST
11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11154 test -z "$as_dir" && as_dir=.
11155 for ac_prog in egrep; do
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11159 # Check for GNU ac_path_EGREP and select it if it is found.
11160 # Check for GNU $ac_path_EGREP
11161 case `"$ac_path_EGREP" --version 2>&1` in
11163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11166 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11169 cat "conftest.in" "conftest.in" >"conftest.tmp"
11170 mv "conftest.tmp" "conftest.in"
11171 cp "conftest.in" "conftest.nl"
11172 echo 'EGREP' >> "conftest.nl"
11173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11175 ac_count=`expr $ac_count + 1`
11176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11177 # Best one so far, save it but keep looking for a better one
11178 ac_cv_path_EGREP="$ac_path_EGREP"
11179 ac_path_EGREP_max=$ac_count
11181 # 10*(2^10) chars as input seems more than enough
11182 test $ac_count -gt 10 && break
11184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11188 $ac_path_EGREP_found && break 3
11198 EGREP="$ac_cv_path_EGREP"
11199 if test -z "$EGREP"; then
11200 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11201 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11202 { (exit 1); exit 1; }; }
11206 ac_cv_path_EGREP=$EGREP
11212 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11213 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11214 EGREP="$ac_cv_path_EGREP"
11217 # Extract the first word of "sed", so it can be a program name with args.
11218 set dummy sed; ac_word=$2
11219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11221 if test "${ac_cv_path_SED+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11248 SED=$ac_cv_path_SED
11249 if test -n "$SED"; then
11250 { echo "$as_me:$LINENO: result: $SED" >&5
11251 echo "${ECHO_T}$SED" >&6; }
11253 { echo "$as_me:$LINENO: result: no" >&5
11254 echo "${ECHO_T}no" >&6; }
11258 # Extract the first word of "perl", so it can be a program name with args.
11259 set dummy perl; ac_word=$2
11260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11262 if test "${ac_cv_path_PERL+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271 for as_dir in $PATH
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11277 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11289 PERL=$ac_cv_path_PERL
11290 if test -n "$PERL"; then
11291 { echo "$as_me:$LINENO: result: $PERL" >&5
11292 echo "${ECHO_T}$PERL" >&6; }
11294 { echo "$as_me:$LINENO: result: no" >&5
11295 echo "${ECHO_T}no" >&6; }
11299 # Extract the first word of "ldconfig", so it can be a program name with args.
11300 set dummy ldconfig; ac_word=$2
11301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11303 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11318 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11330 LDCONFIG=$ac_cv_path_LDCONFIG
11331 if test -n "$LDCONFIG"; then
11332 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11333 echo "${ECHO_T}$LDCONFIG" >&6; }
11335 { echo "$as_me:$LINENO: result: no" >&5
11336 echo "${ECHO_T}no" >&6; }
11340 if test -n "$ac_tool_prefix"; then
11341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11342 set dummy ${ac_tool_prefix}ar; ac_word=$2
11343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11345 if test "${ac_cv_prog_AR+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 if test -n "$AR"; then
11349 ac_cv_prog_AR="$AR" # Let the user override the test.
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_prog_AR="${ac_tool_prefix}ar"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11369 if test -n "$AR"; then
11370 { echo "$as_me:$LINENO: result: $AR" >&5
11371 echo "${ECHO_T}$AR" >&6; }
11373 { echo "$as_me:$LINENO: result: no" >&5
11374 echo "${ECHO_T}no" >&6; }
11379 if test -z "$ac_cv_prog_AR"; then
11381 # Extract the first word of "ar", so it can be a program name with args.
11382 set dummy ar; ac_word=$2
11383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 if test -n "$ac_ct_AR"; then
11389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_ac_ct_AR="ar"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11409 if test -n "$ac_ct_AR"; then
11410 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11411 echo "${ECHO_T}$ac_ct_AR" >&6; }
11413 { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11417 if test "x$ac_ct_AR" = x; then
11420 case $cross_compiling:$ac_tool_warned in
11422 { echo "$as_me:$LINENO: 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." >&5
11425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11426 whose name does not start with the host triplet. If you think this
11427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11428 ac_tool_warned=yes ;;
11433 AR="$ac_cv_prog_AR"
11436 if test -n "$ac_tool_prefix"; then
11437 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11441 if test "${ac_cv_prog_RANLIB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 if test -n "$RANLIB"; then
11445 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 RANLIB=$ac_cv_prog_RANLIB
11465 if test -n "$RANLIB"; then
11466 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11467 echo "${ECHO_T}$RANLIB" >&6; }
11469 { echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6; }
11475 if test -z "$ac_cv_prog_RANLIB"; then
11476 ac_ct_RANLIB=$RANLIB
11477 # Extract the first word of "ranlib", so it can be a program name with args.
11478 set dummy ranlib; ac_word=$2
11479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11481 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 if test -n "$ac_ct_RANLIB"; then
11485 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494 ac_cv_prog_ac_ct_RANLIB="ranlib"
11495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11505 if test -n "$ac_ct_RANLIB"; then
11506 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11507 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11509 { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11513 if test "x$ac_ct_RANLIB" = x; then
11516 case $cross_compiling:$ac_tool_warned in
11518 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11519 whose name does not start with the host triplet. If you think this
11520 configuration is useful to you, please write to autoconf@gnu.org." >&5
11521 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11522 whose name does not start with the host triplet. If you think this
11523 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11524 ac_tool_warned=yes ;;
11526 RANLIB=$ac_ct_RANLIB
11529 RANLIB="$ac_cv_prog_RANLIB"
11532 if test -n "$ac_tool_prefix"; then
11533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11534 set dummy ${ac_tool_prefix}strip; ac_word=$2
11535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11537 if test "${ac_cv_prog_STRIP+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 if test -n "$STRIP"; then
11541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 STRIP=$ac_cv_prog_STRIP
11561 if test -n "$STRIP"; then
11562 { echo "$as_me:$LINENO: result: $STRIP" >&5
11563 echo "${ECHO_T}$STRIP" >&6; }
11565 { echo "$as_me:$LINENO: result: no" >&5
11566 echo "${ECHO_T}no" >&6; }
11571 if test -z "$ac_cv_prog_STRIP"; then
11573 # Extract the first word of "strip", so it can be a program name with args.
11574 set dummy strip; ac_word=$2
11575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11577 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 if test -n "$ac_ct_STRIP"; then
11581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_prog_ac_ct_STRIP="strip"
11591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11601 if test -n "$ac_ct_STRIP"; then
11602 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11603 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11605 { echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6; }
11609 if test "x$ac_ct_STRIP" = x; then
11612 case $cross_compiling:$ac_tool_warned in
11614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11615 whose name does not start with the host triplet. If you think this
11616 configuration is useful to you, please write to autoconf@gnu.org." >&5
11617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11618 whose name does not start with the host triplet. If you think this
11619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11620 ac_tool_warned=yes ;;
11625 STRIP="$ac_cv_prog_STRIP"
11628 # Extract the first word of "makeinfo", so it can be a program name with args.
11629 set dummy makeinfo; ac_word=$2
11630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11632 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 if test -n "$MAKEINFO"; then
11636 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645 ac_cv_prog_MAKEINFO="makeinfo"
11646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 MAKEINFO=$ac_cv_prog_MAKEINFO
11656 if test -n "$MAKEINFO"; then
11657 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11658 echo "${ECHO_T}$MAKEINFO" >&6; }
11660 { echo "$as_me:$LINENO: result: no" >&5
11661 echo "${ECHO_T}no" >&6; }
11665 if test "_$MAKEINFO" = "_"; then
11666 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11668 case "$MAKEINFO" in
11670 { echo "$as_me:$LINENO: WARNING:
11671 *** Makeinfo is missing. Info documentation will not be built." >&5
11672 echo "$as_me: WARNING:
11673 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11680 # Find a good install program. We prefer a C program (faster),
11681 # so one script is as good as another. But avoid the broken or
11682 # incompatible versions:
11683 # SysV /etc/install, /usr/sbin/install
11684 # SunOS /usr/etc/install
11685 # IRIX /sbin/install
11687 # AmigaOS /C/install, which installs bootblocks on floppy discs
11688 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11689 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11690 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11691 # OS/2's system install, which has a completely different semantic
11692 # ./install, which can be erroneously created by make from ./install.sh.
11693 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11694 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11695 if test -z "$INSTALL"; then
11696 if test "${ac_cv_path_install+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700 for as_dir in $PATH
11703 test -z "$as_dir" && as_dir=.
11704 # Account for people who put trailing slashes in PATH elements.
11706 ./ | .// | /cC/* | \
11707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11708 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11711 # OSF1 and SCO ODT 3.0 have their own names for install.
11712 # Don't use installbsd from OSF since it installs stuff as root
11714 for ac_prog in ginstall scoinst install; do
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11717 if test $ac_prog = install &&
11718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11719 # AIX install. It has an incompatible calling convention.
11721 elif test $ac_prog = install &&
11722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11723 # program-specific install script used by HP pwplus--don't use.
11726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11739 if test "${ac_cv_path_install+set}" = set; then
11740 INSTALL=$ac_cv_path_install
11742 # As a last resort, use the slow shell script. Don't cache a
11743 # value for INSTALL within a source directory, because that will
11744 # break other packages using the cache if that directory is
11745 # removed, or if the value is a relative name.
11746 INSTALL=$ac_install_sh
11749 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11750 echo "${ECHO_T}$INSTALL" >&6; }
11752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11753 # It thinks the first close brace ends the variable substitution.
11754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11760 # See if we need a separate native compiler.
11761 if test $cross_compiling = no; then
11765 for ac_prog in gcc cc
11767 # Extract the first word of "$ac_prog", so it can be a program name with args.
11768 set dummy $ac_prog; ac_word=$2
11769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11771 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11774 if test -n "$BUILD_CC"; then
11775 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784 ac_cv_prog_BUILD_CC="$ac_prog"
11785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 BUILD_CC=$ac_cv_prog_BUILD_CC
11795 if test -n "$BUILD_CC"; then
11796 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11797 echo "${ECHO_T}$BUILD_CC" >&6; }
11799 { echo "$as_me:$LINENO: result: no" >&5
11800 echo "${ECHO_T}no" >&6; }
11804 test -n "$BUILD_CC" && break
11843 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 ac_res=`eval echo '${'$as_ac_Header'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11856 # Is the header compilable?
11857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 #include <$ac_header>
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest.$ac_objext; then
11885 ac_header_compiler=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_header_compiler=no
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895 echo "${ECHO_T}$ac_header_compiler" >&6; }
11897 # Is the header present?
11898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 #include <$ac_header>
11908 if { (ac_try="$ac_cpp conftest.$ac_ext"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11916 grep -v '^ *+' conftest.er1 >conftest.err
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } >/dev/null && {
11921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11924 ac_header_preproc=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_header_preproc=no
11932 rm -f conftest.err conftest.$ac_ext
11933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11934 echo "${ECHO_T}$ac_header_preproc" >&6; }
11936 # So? What about this header?
11937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11943 ac_header_preproc=yes
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 eval "$as_ac_Header=\$ac_header_preproc"
11968 ac_res=`eval echo '${'$as_ac_Header'}'`
11969 { echo "$as_me:$LINENO: result: $ac_res" >&5
11970 echo "${ECHO_T}$ac_res" >&6; }
11973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11974 cat >>confdefs.h <<_ACEOF
11975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11984 for ac_header in sys/disk.h sys/mount.h
11986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 cat >conftest.$ac_ext <<_ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11999 #if HAVE_SYS_QUEUE_H
12000 #include <sys/queue.h>
12004 #include <$ac_header>
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12015 grep -v '^ *+' conftest.er1 >conftest.err
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
12023 eval "$as_ac_Header=yes"
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 eval "$as_ac_Header=no"
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 ac_res=`eval echo '${'$as_ac_Header'}'`
12034 { echo "$as_me:$LINENO: result: $ac_res" >&5
12035 echo "${ECHO_T}$ac_res" >&6; }
12036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12046 for ac_header in net/if.h
12048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 #if HAVE_SYS_TYPES_H
12062 #include <sys/types.h>
12064 #if HAVE_SYS_SOCKET
12065 #include <sys/socket.h>
12069 #include <$ac_header>
12071 rm -f conftest.$ac_objext
12072 if { (ac_try="$ac_compile"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12080 grep -v '^ *+' conftest.er1 >conftest.err
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12088 eval "$as_ac_Header=yes"
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 eval "$as_ac_Header=no"
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100 echo "${ECHO_T}$ac_res" >&6; }
12101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12111 for ac_func in vprintf
12113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127 #define $ac_func innocuous_$ac_func
12129 /* System header to define __stub macros and hopefully few prototypes,
12130 which can conflict with char $ac_func (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12135 # include <limits.h>
12137 # include <assert.h>
12142 /* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
12149 /* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
12152 #if defined __stub_$ac_func || defined __stub___$ac_func
12159 return $ac_func ();
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
12182 eval "$as_ac_var=yes"
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 eval "$as_ac_var=no"
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12193 ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195 echo "${ECHO_T}$ac_res" >&6; }
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12202 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12203 if test "${ac_cv_func__doprnt+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12214 #define _doprnt innocuous__doprnt
12216 /* System header to define __stub macros and hopefully few prototypes,
12217 which can conflict with char _doprnt (); below.
12218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12219 <limits.h> exists even on freestanding compilers. */
12222 # include <limits.h>
12224 # include <assert.h>
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12236 /* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
12239 #if defined __stub__doprnt || defined __stub____doprnt
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } && {
12265 test -z "$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 } && test -s conftest$ac_exeext &&
12268 $as_test_x conftest$ac_exeext; then
12269 ac_cv_func__doprnt=yes
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_func__doprnt=no
12277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12278 conftest$ac_exeext conftest.$ac_ext
12280 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12281 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12282 if test $ac_cv_func__doprnt = yes; then
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_DOPRNT 1
12294 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12295 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12296 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 cat >conftest.$ac_ext <<_ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h. */
12305 #include <dirent.h>
12310 static struct dirent ac_aggr;
12311 if (ac_aggr.d_reclen)
12317 rm -f conftest.$ac_objext
12318 if { (ac_try="$ac_compile"
12319 case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_compile") 2>conftest.er1
12326 grep -v '^ *+' conftest.er1 >conftest.err
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest.$ac_objext; then
12334 ac_cv_member_struct_dirent_d_reclen=yes
12336 echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 #include <dirent.h>
12350 static struct dirent ac_aggr;
12351 if (sizeof ac_aggr.d_reclen)
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 ac_cv_member_struct_dirent_d_reclen=yes
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 ac_cv_member_struct_dirent_d_reclen=no
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12388 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12389 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_RECLEN_DIRENT 1
12396 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12397 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12398 if test "${ac_cv_type_ssize_t+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <sys/types.h>
12409 typedef ssize_t ac__type_new_;
12413 if ((ac__type_new_ *) 0)
12415 if (sizeof (ac__type_new_))
12421 rm -f conftest.$ac_objext
12422 if { (ac_try="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
12438 ac_cv_type_ssize_t=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_cv_type_ssize_t=no
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12449 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12450 if test $ac_cv_type_ssize_t = yes; then
12451 cat >>confdefs.h <<\_ACEOF
12452 #define HAVE_TYPE_SSIZE_T 1
12457 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12458 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12459 if test "${ac_cv_have_decl_llseek+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 cat >conftest.$ac_ext <<_ACEOF
12465 cat confdefs.h >>conftest.$ac_ext
12466 cat >>conftest.$ac_ext <<_ACEOF
12467 /* end confdefs.h. */
12468 #include <unistd.h>
12481 rm -f conftest.$ac_objext
12482 if { (ac_try="$ac_compile"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_compile") 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && {
12495 test -z "$ac_c_werror_flag" ||
12496 test ! -s conftest.err
12497 } && test -s conftest.$ac_objext; then
12498 ac_cv_have_decl_llseek=yes
12500 echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12503 ac_cv_have_decl_llseek=no
12506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12509 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12510 if test $ac_cv_have_decl_llseek = yes; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_LLSEEK_PROTOTYPE 1
12517 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12518 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12519 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 cat >conftest.$ac_ext <<_ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 #define _LARGEFILE_SOURCE
12529 #define _LARGEFILE64_SOURCE
12530 #include <unistd.h>
12543 rm -f conftest.$ac_objext
12544 if { (ac_try="$ac_compile"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_compile") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1 >conftest.err
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest.$ac_objext; then
12560 ac_cv_have_decl_lseek64=yes
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_cv_have_decl_lseek64=no
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12571 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12572 if test $ac_cv_have_decl_lseek64 = yes; then
12573 cat >>confdefs.h <<\_ACEOF
12574 #define HAVE_LSEEK64_PROTOTYPE 1
12579 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12580 # if cross-compiling, with no cached values, just assume something common.
12581 ac_cv_sizeof_short=2
12583 ac_cv_sizeof_long=4
12584 ac_cv_sizeof_long_long=8
12585 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12586 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12588 { echo "$as_me:$LINENO: checking for short" >&5
12589 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12590 if test "${ac_cv_type_short+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 cat >conftest.$ac_ext <<_ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 $ac_includes_default
12600 typedef short ac__type_new_;
12604 if ((ac__type_new_ *) 0)
12606 if (sizeof (ac__type_new_))
12612 rm -f conftest.$ac_objext
12613 if { (ac_try="$ac_compile"
12614 case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_compile") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest.$ac_objext; then
12629 ac_cv_type_short=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 ac_cv_type_short=no
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12640 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12642 # The cast to long int works around a bug in the HP C Compiler
12643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12645 # This bug is HP SR number 8606223364.
12646 { echo "$as_me:$LINENO: checking size of short" >&5
12647 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12648 if test "${ac_cv_sizeof_short+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 if test "$cross_compiling" = yes; then
12652 # Depending upon the size, compute the lo and hi bounds.
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12660 typedef short ac__type_sizeof_;
12664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12671 rm -f conftest.$ac_objext
12672 if { (ac_try="$ac_compile"
12673 case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12680 grep -v '^ *+' conftest.er1 >conftest.err
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 typedef short ac__type_sizeof_;
12701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12708 rm -f conftest.$ac_objext
12709 if { (ac_try="$ac_compile"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.$ac_objext; then
12725 ac_hi=$ac_mid; break
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12730 ac_lo=`expr $ac_mid + 1`
12731 if test $ac_lo -le $ac_mid; then
12735 ac_mid=`expr 2 '*' $ac_mid + 1`
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12744 cat >conftest.$ac_ext <<_ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h. */
12750 $ac_includes_default
12751 typedef short ac__type_sizeof_;
12755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12762 rm -f conftest.$ac_objext
12763 if { (ac_try="$ac_compile"
12764 case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12769 (eval "$ac_compile") 2>conftest.er1
12771 grep -v '^ *+' conftest.er1 >conftest.err
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } && {
12776 test -z "$ac_c_werror_flag" ||
12777 test ! -s conftest.err
12778 } && test -s conftest.$ac_objext; then
12781 cat >conftest.$ac_ext <<_ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 $ac_includes_default
12788 typedef short ac__type_sizeof_;
12792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12799 rm -f conftest.$ac_objext
12800 if { (ac_try="$ac_compile"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_compile") 2>conftest.er1
12808 grep -v '^ *+' conftest.er1 >conftest.err
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } && {
12813 test -z "$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 } && test -s conftest.$ac_objext; then
12816 ac_lo=$ac_mid; break
12818 echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12821 ac_hi=`expr '(' $ac_mid ')' - 1`
12822 if test $ac_mid -le $ac_hi; then
12826 ac_mid=`expr 2 '*' $ac_mid`
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 # Binary search between lo and hi bounds.
12843 while test "x$ac_lo" != "x$ac_hi"; do
12844 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12845 cat >conftest.$ac_ext <<_ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 $ac_includes_default
12852 typedef short ac__type_sizeof_;
12856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12863 rm -f conftest.$ac_objext
12864 if { (ac_try="$ac_compile"
12865 case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_compile") 2>conftest.er1
12872 grep -v '^ *+' conftest.er1 >conftest.err
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } && {
12877 test -z "$ac_c_werror_flag" ||
12878 test ! -s conftest.err
12879 } && test -s conftest.$ac_objext; then
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885 ac_lo=`expr '(' $ac_mid ')' + 1`
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 ?*) ac_cv_sizeof_short=$ac_lo;;
12892 '') if test "$ac_cv_type_short" = yes; then
12893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12894 See \`config.log' for more details." >&5
12895 echo "$as_me: error: cannot compute sizeof (short)
12896 See \`config.log' for more details." >&2;}
12897 { (exit 77); exit 77; }; }
12899 ac_cv_sizeof_short=0
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 $ac_includes_default
12910 typedef short ac__type_sizeof_;
12911 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12912 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12914 #include <stdlib.h>
12919 FILE *f = fopen ("conftest.val", "w");
12922 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12924 long int i = longval ();
12925 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12927 fprintf (f, "%ld\n", i);
12931 unsigned long int i = ulongval ();
12932 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12934 fprintf (f, "%lu\n", i);
12936 return ferror (f) || fclose (f) != 0;
12942 rm -f conftest$ac_exeext
12943 if { (ac_try="$ac_link"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_link") 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_sizeof_short=`cat conftest.val`
12964 echo "$as_me: program exited with status $ac_status" >&5
12965 echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12968 ( exit $ac_status )
12969 if test "$ac_cv_type_short" = yes; then
12970 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12971 See \`config.log' for more details." >&5
12972 echo "$as_me: error: cannot compute sizeof (short)
12973 See \`config.log' for more details." >&2;}
12974 { (exit 77); exit 77; }; }
12976 ac_cv_sizeof_short=0
12979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12983 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12984 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12988 cat >>confdefs.h <<_ACEOF
12989 #define SIZEOF_SHORT $ac_cv_sizeof_short
12993 { echo "$as_me:$LINENO: checking for int" >&5
12994 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12995 if test "${ac_cv_type_int+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 cat >conftest.$ac_ext <<_ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 $ac_includes_default
13005 typedef int ac__type_new_;
13009 if ((ac__type_new_ *) 0)
13011 if (sizeof (ac__type_new_))
13017 rm -f conftest.$ac_objext
13018 if { (ac_try="$ac_compile"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_compile") 2>conftest.er1
13026 grep -v '^ *+' conftest.er1 >conftest.err
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest.$ac_objext; then
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
13044 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13045 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13047 # The cast to long int works around a bug in the HP C Compiler
13048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13050 # This bug is HP SR number 8606223364.
13051 { echo "$as_me:$LINENO: checking size of int" >&5
13052 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13053 if test "${ac_cv_sizeof_int+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13056 if test "$cross_compiling" = yes; then
13057 # Depending upon the size, compute the lo and hi bounds.
13058 cat >conftest.$ac_ext <<_ACEOF
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 $ac_includes_default
13065 typedef int ac__type_sizeof_;
13069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13076 rm -f conftest.$ac_objext
13077 if { (ac_try="$ac_compile"
13078 case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
13095 cat >conftest.$ac_ext <<_ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 $ac_includes_default
13102 typedef int ac__type_sizeof_;
13106 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_compile") 2>conftest.er1
13122 grep -v '^ *+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && {
13127 test -z "$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13129 } && test -s conftest.$ac_objext; then
13130 ac_hi=$ac_mid; break
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13135 ac_lo=`expr $ac_mid + 1`
13136 if test $ac_lo -le $ac_mid; then
13140 ac_mid=`expr 2 '*' $ac_mid + 1`
13143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13156 typedef int ac__type_sizeof_;
13160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13167 rm -f conftest.$ac_objext
13168 if { (ac_try="$ac_compile"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compile") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest.$ac_objext; then
13186 cat >conftest.$ac_ext <<_ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 $ac_includes_default
13193 typedef int ac__type_sizeof_;
13197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13204 rm -f conftest.$ac_objext
13205 if { (ac_try="$ac_compile"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_compile") 2>conftest.er1
13213 grep -v '^ *+' conftest.er1 >conftest.err
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && {
13218 test -z "$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13220 } && test -s conftest.$ac_objext; then
13221 ac_lo=$ac_mid; break
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_hi=`expr '(' $ac_mid ')' - 1`
13227 if test $ac_mid -le $ac_hi; then
13231 ac_mid=`expr 2 '*' $ac_mid`
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 # Binary search between lo and hi bounds.
13248 while test "x$ac_lo" != "x$ac_hi"; do
13249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13250 cat >conftest.$ac_ext <<_ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 typedef int ac__type_sizeof_;
13261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13268 rm -f conftest.$ac_objext
13269 if { (ac_try="$ac_compile"
13270 case "(($ac_try" in
13271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272 *) ac_try_echo=$ac_try;;
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275 (eval "$ac_compile") 2>conftest.er1
13277 grep -v '^ *+' conftest.er1 >conftest.err
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } && {
13282 test -z "$ac_c_werror_flag" ||
13283 test ! -s conftest.err
13284 } && test -s conftest.$ac_objext; then
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 ac_lo=`expr '(' $ac_mid ')' + 1`
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 ?*) ac_cv_sizeof_int=$ac_lo;;
13297 '') if test "$ac_cv_type_int" = yes; then
13298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13299 See \`config.log' for more details." >&5
13300 echo "$as_me: error: cannot compute sizeof (int)
13301 See \`config.log' for more details." >&2;}
13302 { (exit 77); exit 77; }; }
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 $ac_includes_default
13315 typedef int ac__type_sizeof_;
13316 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13317 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13319 #include <stdlib.h>
13324 FILE *f = fopen ("conftest.val", "w");
13327 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13329 long int i = longval ();
13330 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13332 fprintf (f, "%ld\n", i);
13336 unsigned long int i = ulongval ();
13337 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13339 fprintf (f, "%lu\n", i);
13341 return ferror (f) || fclose (f) != 0;
13347 rm -f conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_sizeof_int=`cat conftest.val`
13369 echo "$as_me: program exited with status $ac_status" >&5
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 ( exit $ac_status )
13374 if test "$ac_cv_type_int" = yes; then
13375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13376 See \`config.log' for more details." >&5
13377 echo "$as_me: error: cannot compute sizeof (int)
13378 See \`config.log' for more details." >&2;}
13379 { (exit 77); exit 77; }; }
13384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13388 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13389 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13393 cat >>confdefs.h <<_ACEOF
13394 #define SIZEOF_INT $ac_cv_sizeof_int
13398 { echo "$as_me:$LINENO: checking for long" >&5
13399 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13400 if test "${ac_cv_type_long+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 cat >conftest.$ac_ext <<_ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 $ac_includes_default
13410 typedef long ac__type_new_;
13414 if ((ac__type_new_ *) 0)
13416 if (sizeof (ac__type_new_))
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_compile") 2>conftest.er1
13431 grep -v '^ *+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_c_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest.$ac_objext; then
13439 ac_cv_type_long=yes
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
13449 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13450 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13452 # The cast to long int works around a bug in the HP C Compiler
13453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13455 # This bug is HP SR number 8606223364.
13456 { echo "$as_me:$LINENO: checking size of long" >&5
13457 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13458 if test "${ac_cv_sizeof_long+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 if test "$cross_compiling" = yes; then
13462 # Depending upon the size, compute the lo and hi bounds.
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 $ac_includes_default
13470 typedef long ac__type_sizeof_;
13474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13481 rm -f conftest.$ac_objext
13482 if { (ac_try="$ac_compile"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_compile") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } && {
13495 test -z "$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13497 } && test -s conftest.$ac_objext; then
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 $ac_includes_default
13507 typedef long ac__type_sizeof_;
13511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13518 rm -f conftest.$ac_objext
13519 if { (ac_try="$ac_compile"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_compile") 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest.$ac_objext; then
13535 ac_hi=$ac_mid; break
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ac_lo=`expr $ac_mid + 1`
13541 if test $ac_lo -le $ac_mid; then
13545 ac_mid=`expr 2 '*' $ac_mid + 1`
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 typedef long ac__type_sizeof_;
13565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13572 rm -f conftest.$ac_objext
13573 if { (ac_try="$ac_compile"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13581 grep -v '^ *+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 $ac_includes_default
13598 typedef long ac__type_sizeof_;
13602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_compile") 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest.$ac_objext; then
13626 ac_lo=$ac_mid; break
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13631 ac_hi=`expr '(' $ac_mid ')' - 1`
13632 if test $ac_mid -le $ac_hi; then
13636 ac_mid=`expr 2 '*' $ac_mid`
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13652 # Binary search between lo and hi bounds.
13653 while test "x$ac_lo" != "x$ac_hi"; do
13654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13655 cat >conftest.$ac_ext <<_ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 $ac_includes_default
13662 typedef long ac__type_sizeof_;
13666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 ac_lo=`expr '(' $ac_mid ')' + 1`
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 ?*) ac_cv_sizeof_long=$ac_lo;;
13702 '') if test "$ac_cv_type_long" = yes; then
13703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13704 See \`config.log' for more details." >&5
13705 echo "$as_me: error: cannot compute sizeof (long)
13706 See \`config.log' for more details." >&2;}
13707 { (exit 77); exit 77; }; }
13709 ac_cv_sizeof_long=0
13713 cat >conftest.$ac_ext <<_ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 $ac_includes_default
13720 typedef long ac__type_sizeof_;
13721 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13722 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13724 #include <stdlib.h>
13729 FILE *f = fopen ("conftest.val", "w");
13732 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13734 long int i = longval ();
13735 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13737 fprintf (f, "%ld\n", i);
13741 unsigned long int i = ulongval ();
13742 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13744 fprintf (f, "%lu\n", i);
13746 return ferror (f) || fclose (f) != 0;
13752 rm -f conftest$ac_exeext
13753 if { (ac_try="$ac_link"
13754 case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_link") 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_cv_sizeof_long=`cat conftest.val`
13774 echo "$as_me: program exited with status $ac_status" >&5
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ( exit $ac_status )
13779 if test "$ac_cv_type_long" = yes; then
13780 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13781 See \`config.log' for more details." >&5
13782 echo "$as_me: error: cannot compute sizeof (long)
13783 See \`config.log' for more details." >&2;}
13784 { (exit 77); exit 77; }; }
13786 ac_cv_sizeof_long=0
13789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13793 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13794 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13798 cat >>confdefs.h <<_ACEOF
13799 #define SIZEOF_LONG $ac_cv_sizeof_long
13803 { echo "$as_me:$LINENO: checking for long long" >&5
13804 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13805 if test "${ac_cv_type_long_long+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 cat >conftest.$ac_ext <<_ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814 $ac_includes_default
13815 typedef long long ac__type_new_;
13819 if ((ac__type_new_ *) 0)
13821 if (sizeof (ac__type_new_))
13827 rm -f conftest.$ac_objext
13828 if { (ac_try="$ac_compile"
13829 case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_compile") 2>conftest.er1
13836 grep -v '^ *+' conftest.er1 >conftest.err
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } && {
13841 test -z "$ac_c_werror_flag" ||
13842 test ! -s conftest.err
13843 } && test -s conftest.$ac_objext; then
13844 ac_cv_type_long_long=yes
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13849 ac_cv_type_long_long=no
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13855 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13857 # The cast to long int works around a bug in the HP C Compiler
13858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13860 # This bug is HP SR number 8606223364.
13861 { echo "$as_me:$LINENO: checking size of long long" >&5
13862 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13863 if test "${ac_cv_sizeof_long_long+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 if test "$cross_compiling" = yes; then
13867 # Depending upon the size, compute the lo and hi bounds.
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13875 typedef long long ac__type_sizeof_;
13879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13886 rm -f conftest.$ac_objext
13887 if { (ac_try="$ac_compile"
13888 case "(($ac_try" in
13889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890 *) ac_try_echo=$ac_try;;
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893 (eval "$ac_compile") 2>conftest.er1
13895 grep -v '^ *+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest.$ac_objext; then
13905 cat >conftest.$ac_ext <<_ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911 $ac_includes_default
13912 typedef long long ac__type_sizeof_;
13916 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13940 ac_hi=$ac_mid; break
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_lo=`expr $ac_mid + 1`
13946 if test $ac_lo -le $ac_mid; then
13950 ac_mid=`expr 2 '*' $ac_mid + 1`
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 cat >conftest.$ac_ext <<_ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 $ac_includes_default
13966 typedef long long ac__type_sizeof_;
13970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13977 rm -f conftest.$ac_objext
13978 if { (ac_try="$ac_compile"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_compile") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && {
13991 test -z "$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13993 } && test -s conftest.$ac_objext; then
13996 cat >conftest.$ac_ext <<_ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 $ac_includes_default
14003 typedef long long ac__type_sizeof_;
14007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14014 rm -f conftest.$ac_objext
14015 if { (ac_try="$ac_compile"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_compile") 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest.$ac_objext; then
14031 ac_lo=$ac_mid; break
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_hi=`expr '(' $ac_mid ')' - 1`
14037 if test $ac_mid -le $ac_hi; then
14041 ac_mid=`expr 2 '*' $ac_mid`
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 # Binary search between lo and hi bounds.
14058 while test "x$ac_lo" != "x$ac_hi"; do
14059 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 typedef long long ac__type_sizeof_;
14071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ac_lo=`expr '(' $ac_mid ')' + 1`
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14107 '') if test "$ac_cv_type_long_long" = yes; then
14108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14109 See \`config.log' for more details." >&5
14110 echo "$as_me: error: cannot compute sizeof (long long)
14111 See \`config.log' for more details." >&2;}
14112 { (exit 77); exit 77; }; }
14114 ac_cv_sizeof_long_long=0
14118 cat >conftest.$ac_ext <<_ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 $ac_includes_default
14125 typedef long long ac__type_sizeof_;
14126 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14127 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14129 #include <stdlib.h>
14134 FILE *f = fopen ("conftest.val", "w");
14137 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14139 long int i = longval ();
14140 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14142 fprintf (f, "%ld\n", i);
14146 unsigned long int i = ulongval ();
14147 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14149 fprintf (f, "%lu\n", i);
14151 return ferror (f) || fclose (f) != 0;
14157 rm -f conftest$ac_exeext
14158 if { (ac_try="$ac_link"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_link") 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; }; then
14177 ac_cv_sizeof_long_long=`cat conftest.val`
14179 echo "$as_me: program exited with status $ac_status" >&5
14180 echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14183 ( exit $ac_status )
14184 if test "$ac_cv_type_long_long" = yes; then
14185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14186 See \`config.log' for more details." >&5
14187 echo "$as_me: error: cannot compute sizeof (long long)
14188 See \`config.log' for more details." >&2;}
14189 { (exit 77); exit 77; }; }
14191 ac_cv_sizeof_long_long=0
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14198 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14199 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14203 cat >>confdefs.h <<_ACEOF
14204 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14208 SIZEOF_SHORT=$ac_cv_sizeof_short
14209 SIZEOF_INT=$ac_cv_sizeof_int
14210 SIZEOF_LONG=$ac_cv_sizeof_long
14211 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14216 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14217 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14218 if test "${ac_cv_c_bigendian+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 # See if sys/param.h defines the BYTE_ORDER macro.
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 #include <sys/types.h>
14229 #include <sys/param.h>
14234 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14235 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14236 bogus endian macros
14243 rm -f conftest.$ac_objext
14244 if { (ac_try="$ac_compile"
14245 case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_compile") 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest.$ac_objext; then
14260 # It does; now see whether it defined to BIG_ENDIAN or not.
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <sys/types.h>
14268 #include <sys/param.h>
14273 #if BYTE_ORDER != BIG_ENDIAN
14281 rm -f conftest.$ac_objext
14282 if { (ac_try="$ac_compile"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_compile") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest.$ac_objext; then
14298 ac_cv_c_bigendian=yes
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_cv_c_bigendian=no
14306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 # It does not; compile a test program.
14312 if test "$cross_compiling" = yes; then
14313 # try to guess the endianness by grepping values into an object file
14314 ac_cv_c_bigendian=unknown
14315 cat >conftest.$ac_ext <<_ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14322 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14323 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14324 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14325 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14326 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14330 _ascii (); _ebcdic ();
14335 rm -f conftest.$ac_objext
14336 if { (ac_try="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest.$ac_objext; then
14352 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14353 ac_cv_c_bigendian=yes
14355 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14356 if test "$ac_cv_c_bigendian" = unknown; then
14357 ac_cv_c_bigendian=no
14359 # finding both strings is unlikely to happen, but who knows?
14360 ac_cv_c_bigendian=unknown
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 $ac_includes_default
14383 /* Are we little or big endian? From Harbison&Steele. */
14387 char c[sizeof (long int)];
14390 return u.c[sizeof (long int) - 1] == 1;
14396 rm -f conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14407 { (case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_try") 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14416 ac_cv_c_bigendian=no
14418 echo "$as_me: program exited with status $ac_status" >&5
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ( exit $ac_status )
14423 ac_cv_c_bigendian=yes
14425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14434 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14435 case $ac_cv_c_bigendian in
14438 cat >>confdefs.h <<\_ACEOF
14439 #define WORDS_BIGENDIAN 1
14445 { { echo "$as_me:$LINENO: error: unknown endianness
14446 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14447 echo "$as_me: error: unknown endianness
14448 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14449 { (exit 1); exit 1; }; } ;;
14452 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14453 ASM_TYPES_HEADER=./asm_types.h
14456 for ac_header in inttypes.h
14458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 ac_res=`eval echo '${'$as_ac_Header'}'`
14466 { echo "$as_me:$LINENO: result: $ac_res" >&5
14467 echo "${ECHO_T}$ac_res" >&6; }
14469 # Is the header compilable?
14470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 #include <$ac_header>
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14498 ac_header_compiler=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_header_compiler=no
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14508 echo "${ECHO_T}$ac_header_compiler" >&6; }
14510 # Is the header present?
14511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14513 cat >conftest.$ac_ext <<_ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 #include <$ac_header>
14521 if { (ac_try="$ac_cpp conftest.$ac_ext"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } >/dev/null && {
14534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14537 ac_header_preproc=yes
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_header_preproc=no
14545 rm -f conftest.err conftest.$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547 echo "${ECHO_T}$ac_header_preproc" >&6; }
14549 # So? What about this header?
14550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14556 ac_header_preproc=yes
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 eval "$as_ac_Header=\$ac_header_preproc"
14581 ac_res=`eval echo '${'$as_ac_Header'}'`
14582 { echo "$as_me:$LINENO: result: $ac_res" >&5
14583 echo "${ECHO_T}$ac_res" >&6; }
14586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14587 cat >>confdefs.h <<_ACEOF
14588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14595 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14596 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14597 if test "${ac_cv_type_intptr_t+set}" = set; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 cat >conftest.$ac_ext <<_ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 $ac_includes_default
14607 typedef intptr_t ac__type_new_;
14611 if ((ac__type_new_ *) 0)
14613 if (sizeof (ac__type_new_))
14619 rm -f conftest.$ac_objext
14620 if { (ac_try="$ac_compile"
14621 case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_compile") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1 >conftest.err
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest.$ac_objext; then
14636 ac_cv_type_intptr_t=yes
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 ac_cv_type_intptr_t=no
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14647 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14648 if test $ac_cv_type_intptr_t = yes; then
14650 cat >>confdefs.h <<_ACEOF
14651 #define HAVE_INTPTR_T 1
14657 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14658 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14659 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 cat >conftest.$ac_ext <<_ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <sys/stat.h>
14672 struct stat stat; stat.st_flags = 0;
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_compile") 2>conftest.er1
14686 grep -v '^ *+' conftest.er1 >conftest.err
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest.$ac_objext; then
14694 e2fsprogs_cv_struct_st_flags=yes
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 e2fsprogs_cv_struct_st_flags=no
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14706 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14707 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14708 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14709 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14710 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #include <sys/stat.h>
14723 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14728 rm -f conftest.$ac_objext
14729 if { (ac_try="$ac_compile"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_compile") 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && {
14742 test -z "$ac_c_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest.$ac_objext; then
14745 e2fsprogs_cv_struct_st_flags_immut=yes
14747 echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14750 e2fsprogs_cv_struct_st_flags_immut=no
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14757 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14758 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14759 cat >>confdefs.h <<\_ACEOF
14760 #define HAVE_STAT_FLAGS 1
14765 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14766 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14767 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 #include <sys/types.h>
14777 #include <sys/socket.h>
14782 static struct sockaddr ac_aggr;
14783 if (ac_aggr.sa_len)
14789 rm -f conftest.$ac_objext
14790 if { (ac_try="$ac_compile"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_compile") 2>conftest.er1
14798 grep -v '^ *+' conftest.er1 >conftest.err
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest.$ac_objext; then
14806 ac_cv_member_struct_sockaddr_sa_len=yes
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <sys/types.h>
14818 #include <sys/socket.h>
14823 static struct sockaddr ac_aggr;
14824 if (sizeof ac_aggr.sa_len)
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_compile") 2>conftest.er1
14839 grep -v '^ *+' conftest.er1 >conftest.err
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest.$ac_objext; then
14847 ac_cv_member_struct_sockaddr_sa_len=yes
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_cv_member_struct_sockaddr_sa_len=no
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14861 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14862 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_SA_LEN 1
14899 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
14901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h. */
14913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14915 #define $ac_func innocuous_$ac_func
14917 /* System header to define __stub macros and hopefully few prototypes,
14918 which can conflict with char $ac_func (); below.
14919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14920 <limits.h> exists even on freestanding compilers. */
14923 # include <limits.h>
14925 # include <assert.h>
14930 /* Override any GCC internal prototype to avoid an error.
14931 Use char because int might match the return type of a GCC
14932 builtin and then its argument prototype would still apply. */
14937 /* The GNU C library defines this for functions which it implements
14938 to always fail with ENOSYS. Some functions are actually named
14939 something starting with __ and the normal name is an alias. */
14940 #if defined __stub_$ac_func || defined __stub___$ac_func
14947 return $ac_func ();
14952 rm -f conftest.$ac_objext conftest$ac_exeext
14953 if { (ac_try="$ac_link"
14954 case "(($ac_try" in
14955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14956 *) ac_try_echo=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>conftest.er1
14961 grep -v '^ *+' conftest.er1 >conftest.err
14963 cat conftest.err >&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); } && {
14966 test -z "$ac_c_werror_flag" ||
14967 test ! -s conftest.err
14968 } && test -s conftest$ac_exeext &&
14969 $as_test_x conftest$ac_exeext; then
14970 eval "$as_ac_var=yes"
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 eval "$as_ac_var=no"
14978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14979 conftest$ac_exeext conftest.$ac_ext
14981 ac_res=`eval echo '${'$as_ac_var'}'`
14982 { echo "$as_me:$LINENO: result: $ac_res" >&5
14983 echo "${ECHO_T}$ac_res" >&6; }
14984 if test `eval echo '${'$as_ac_var'}'` = yes; then
14985 cat >>confdefs.h <<_ACEOF
14986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14993 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14994 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14995 if test "${ac_cv_lib_socket_socket+set}" = set; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 ac_check_lib_save_LIBS=$LIBS
14999 LIBS="-lsocket $LIBS"
15000 cat >conftest.$ac_ext <<_ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15007 /* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_link") 2>conftest.er1
15031 grep -v '^ *+' conftest.er1 >conftest.err
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest$ac_exeext &&
15039 $as_test_x conftest$ac_exeext; then
15040 ac_cv_lib_socket_socket=yes
15042 echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.$ac_ext >&5
15045 ac_cv_lib_socket_socket=no
15048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15052 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15053 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15054 if test $ac_cv_lib_socket_socket = yes; then
15055 SOCKET_LIB=-lsocket
15060 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15061 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15062 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 ac_check_lib_save_LIBS=$LIBS
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15074 /* Override any GCC internal prototype to avoid an error.
15075 Use char because int might match the return type of a GCC
15076 builtin and then its argument prototype would still apply. */
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_link") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && {
15103 test -z "$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 } && test -s conftest$ac_exeext &&
15106 $as_test_x conftest$ac_exeext; then
15107 ac_cv_lib_dl_dlopen=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ac_cv_lib_dl_dlopen=no
15115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15121 if test $ac_cv_lib_dl_dlopen = yes; then
15123 cat >>confdefs.h <<\_ACEOF
15124 #define HAVE_DLOPEN 1
15130 { echo "$as_me:$LINENO: checking for optreset" >&5
15131 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15132 if test "${ac_cv_have_optreset+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <unistd.h>
15144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145 $EGREP "optreset" >/dev/null 2>&1; then
15146 ac_cv_have_optreset=yes
15148 ac_cv_have_optreset=no
15153 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15154 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15155 if test $ac_cv_have_optreset = yes; then
15156 cat >>confdefs.h <<\_ACEOF
15157 #define HAVE_OPTRESET 1
15161 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15162 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15163 if diff -u $0 $0 > /dev/null 2>&1 ; then
15168 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15169 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_EXT2_IOCTLS 1
15195 linux* | gnu* | k*bsd*-gnu)
15196 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15198 echo "On $host_os systems, root_prefix defaults to ''"
15203 linux* | gnu* | k*bsd*-gnu)
15204 if test "$prefix" = NONE ; then
15206 echo "On $host_os systems, prefix defaults to /usr"
15207 if test "$mandir" = '${prefix}/man' ; then
15208 echo "...and mandir defaults to /usr/share/man"
15209 mandir=/usr/share/man
15214 if test "$root_prefix" = NONE ; then
15215 if test "$prefix" = NONE ; then
15216 root_prefix="$ac_default_prefix"
15218 root_prefix="$prefix"
15220 root_bindir=$bindir
15221 root_sbindir=$sbindir
15222 root_libdir=$libdir
15223 root_sysconfdir=$sysconfdir
15225 root_bindir='${root_prefix}/bin'
15226 root_sbindir='${root_prefix}/sbin'
15227 root_libdir='${root_prefix}/lib'
15228 root_sysconfdir='${root_prefix}/etc'
15230 if test "$bindir" != '${exec_prefix}/bin'; then
15231 root_bindir=$bindir
15232 echo "Setting root_bindir to $root_bindir"
15234 if test "$sbindir" != '${exec_prefix}/sbin'; then
15235 root_sbindir=$sbindir
15236 echo "Setting root_sbindir to $root_sbindir"
15238 if test "$libdir" != '${exec_prefix}/lib'; then
15239 root_libdir=$libdir
15240 echo "Setting root_libdir to $root_libdir"
15242 if test "$sysconfdir" != '${prefix}/etc'; then
15243 root_sysconfdir=$sysconfdir
15244 echo "Setting root_sysconfdir to $root_sysconfdir"
15251 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15252 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15253 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15257 cat >conftest.$ac_ext <<_ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 ac_cv_e2fsprogs_use_static=yes
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 ac_cv_e2fsprogs_use_static=no
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LDFLAGS=$SAVE_LDFLAGS
15305 ac_cv_e2fsprogs_use_static=no
15308 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15309 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15311 if test $ac_cv_e2fsprogs_use_static = yes; then
15312 LDFLAG_STATIC=-static
15317 echo "Using Apple Darwin / GNU libintl workaround"
15318 cat >>confdefs.h <<\_ACEOF
15319 #define _INTL_REDIRECT_MACROS 1
15324 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15325 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15328 if test "$cross_compiling" = yes ; then
15331 DO_TEST_SUITE=check
15335 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15336 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15339 if test $cross_compiling = no; then
15340 BUILD_CFLAGS="$CFLAGS"
15341 BUILD_LDFLAGS="$LDFLAGS"
15348 test -d lib || mkdir lib
15349 test -d include || mkdir include
15350 test -d include/linux || mkdir include/linux
15351 test -d include/asm || mkdir include/asm
15352 for i in MCONFIG Makefile e2fsprogs.spec \
15353 util/Makefile util/subst.conf util/gen-tarball \
15354 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15355 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15356 lib/uuid/Makefile lib/uuid/uuid_types.h \
15357 lib/blkid/Makefile lib/blkid/blkid_types.h \
15358 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15359 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15360 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15361 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15362 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15363 if test -d `dirname ${srcdir}/$i` ; then
15364 outlist="$outlist $i"
15367 ac_config_files="$ac_config_files $outlist"
15369 cat >confcache <<\_ACEOF
15370 # This file is a shell script that caches the results of configure
15371 # tests run on this system so they can be shared between configure
15372 # scripts and configure runs, see configure's option --config-cache.
15373 # It is not useful on other systems. If it contains results you don't
15374 # want to keep, you may remove or edit it.
15376 # config.status only pays attention to the cache file if you give it
15377 # the --recheck option to rerun configure.
15379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15381 # following values.
15385 # The following way of writing the cache mishandles newlines in values,
15386 # but we know of no workaround that is simple, portable, and efficient.
15387 # So, we kill variables containing newlines.
15388 # Ultrix sh set writes to stderr and can't be redirected directly,
15389 # and sets the high bit in the cache file unless we assign to the vars.
15391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15392 eval ac_val=\$$ac_var
15396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15397 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15400 _ | IFS | as_nl) ;; #(
15401 *) $as_unset $ac_var ;;
15407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15408 *${as_nl}ac_space=\ *)
15409 # `set' does not quote correctly, so add quotes (double-quote
15410 # substitution turns \\\\ into \\, and sed turns \\ into \).
15413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15416 # `set' quotes correctly as required by POSIX, so do not add quotes.
15417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15431 if test -w "$cache_file"; then
15432 test "x$cache_file" != "x/dev/null" &&
15433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15434 echo "$as_me: updating cache $cache_file" >&6;}
15435 cat confcache >$cache_file
15437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15438 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15444 # Let make expand exec_prefix.
15445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15447 # Transform confdefs.h into DEFS.
15448 # Protect against shell expansion while executing Makefile rules.
15449 # Protect against Makefile macro expansion.
15451 # If the first sed substitution is executed (which looks for macros that
15452 # take arguments), then branch to the quote section. Otherwise,
15453 # look for a macro that doesn't take arguments.
15457 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15459 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15463 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15476 DEFS=`sed -n "$ac_script" confdefs.h`
15481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15482 # 1. Remove the extension, and $U if already installed.
15483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15484 ac_i=`echo "$ac_i" | sed "$ac_script"`
15485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15486 # will be set to the directory where LIBOBJS objects are built.
15487 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15488 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15490 LIBOBJS=$ac_libobjs
15492 LTLIBOBJS=$ac_ltlibobjs
15496 : ${CONFIG_STATUS=./config.status}
15497 ac_clean_files_save=$ac_clean_files
15498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15499 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15500 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15501 cat >$CONFIG_STATUS <<_ACEOF
15503 # Generated by $as_me.
15504 # Run this file to recreate the current configuration.
15505 # Compiler output produced by configure, useful for debugging
15506 # configure, is in config.log if it exists.
15509 ac_cs_recheck=false
15511 SHELL=\${CONFIG_SHELL-$SHELL}
15514 cat >>$CONFIG_STATUS <<\_ACEOF
15515 ## --------------------- ##
15516 ## M4sh Initialization. ##
15517 ## --------------------- ##
15519 # Be more Bourne compatible
15520 DUALCASE=1; export DUALCASE # for MKS sh
15521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15525 # is contrary to our usage. Disable this feature.
15526 alias -g '${1+"$@"}'='"$@"'
15527 setopt NO_GLOB_SUBST
15529 case `(set -o) 2>/dev/null` in
15530 *posix*) set -o posix ;;
15539 # Avoid depending upon Character Ranges.
15540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15543 as_cr_digits='0123456789'
15544 as_cr_alnum=$as_cr_Letters$as_cr_digits
15546 # The user is always right.
15547 if test "${PATH_SEPARATOR+set}" != set; then
15548 echo "#! /bin/sh" >conf$$.sh
15549 echo "exit 0" >>conf$$.sh
15551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15559 # Support unset when possible.
15560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15568 # We need space, tab and new line, in precisely that order. Quoting is
15569 # there to prevent editors from complaining about space-tab.
15570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15571 # splitting by setting IFS to empty value.)
15576 # Find who we are. Look in the path if we contain no directory separator.
15578 *[\\/]* ) as_myself=$0 ;;
15579 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15583 test -z "$as_dir" && as_dir=.
15584 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15590 # We did not find ourselves, most probably we were run as `sh COMMAND'
15591 # in which case we are not to be found in the path.
15592 if test "x$as_myself" = x; then
15595 if test ! -f "$as_myself"; then
15596 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15597 { (exit 1); exit 1; }
15600 # Work around bugs in pre-3.0 UWIN ksh.
15601 for as_var in ENV MAIL MAILPATH
15602 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15610 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15611 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15612 LC_TELEPHONE LC_TIME
15614 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15615 eval $as_var=C; export $as_var
15617 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15621 # Required to use basename.
15622 if expr a : '\(a\)' >/dev/null 2>&1 &&
15623 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15629 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15630 as_basename=basename
15636 # Name of the executable.
15637 as_me=`$as_basename -- "$0" ||
15638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15639 X"$0" : 'X\(//\)$' \| \
15640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15642 sed '/^.*\/\([^/][^/]*\)\/*$/{
15661 as_lineno_1=$LINENO
15662 as_lineno_2=$LINENO
15663 test "x$as_lineno_1" != "x$as_lineno_2" &&
15664 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15666 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15667 # uniformly replaced by the line number. The first 'sed' inserts a
15668 # line-number line after each line using $LINENO; the second 'sed'
15669 # does the real work. The second script uses 'N' to pair each
15670 # line-number line with the line containing $LINENO, and appends
15671 # trailing '-' during substitution so that $LINENO is not a special
15672 # case at line end.
15673 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15674 # scripts with optimization help from Paolo Bonzini. Blame Lee
15675 # E. McMahon (1931-1989) for sed's syntax. :-)
15687 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15690 ' >$as_me.lineno &&
15691 chmod +x "$as_me.lineno" ||
15692 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15693 { (exit 1); exit 1; }; }
15695 # Don't try to exec as it changes $[0], causing all sort of problems
15696 # (the dirname of $[0] is not the place where we might find the
15697 # original and so on. Autoconf is especially sensitive to this).
15698 . "./$as_me.lineno"
15699 # Exit status is that of the last command.
15704 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15710 ECHO_C= ECHO_N= ECHO_T=
15711 case `echo -n x` in
15713 case `echo 'x\c'` in
15714 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15721 if expr a : '\(a\)' >/dev/null 2>&1 &&
15722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15728 rm -f conf$$ conf$$.exe conf$$.file
15729 if test -d conf$$.dir; then
15730 rm -f conf$$.dir/conf$$.file
15736 if ln -s conf$$.file conf$$ 2>/dev/null; then
15738 # ... but there are two gotchas:
15739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15741 # In both cases, we have to default to `cp -p'.
15742 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15744 elif ln conf$$.file conf$$ 2>/dev/null; then
15749 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15750 rmdir conf$$.dir 2>/dev/null
15752 if mkdir -p . 2>/dev/null; then
15755 test -d ./-p && rmdir ./-p
15759 if test -x / >/dev/null 2>&1; then
15760 as_test_x='test -x'
15762 if ls -dL / >/dev/null 2>&1; then
15769 if test -d "$1"; then
15775 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15776 ???[sx]*):;;*)false;;esac;fi
15780 as_executable_p=$as_test_x
15782 # Sed expression to map a string onto a valid CPP name.
15783 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15785 # Sed expression to map a string onto a valid variable name.
15786 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15791 # Save the log message, to keep $[0] and so on meaningful, and to
15792 # report actual input values of CONFIG_FILES etc. instead of their
15793 # values after options handling.
15795 This file was extended by $as_me, which was
15796 generated by GNU Autoconf 2.61. Invocation command line was
15798 CONFIG_FILES = $CONFIG_FILES
15799 CONFIG_HEADERS = $CONFIG_HEADERS
15800 CONFIG_LINKS = $CONFIG_LINKS
15801 CONFIG_COMMANDS = $CONFIG_COMMANDS
15804 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15809 cat >>$CONFIG_STATUS <<_ACEOF
15810 # Files that config.status was made for.
15811 config_files="$ac_config_files"
15812 config_commands="$ac_config_commands"
15816 cat >>$CONFIG_STATUS <<\_ACEOF
15818 \`$as_me' instantiates files from templates according to the
15819 current configuration.
15821 Usage: $0 [OPTIONS] [FILE]...
15823 -h, --help print this help, then exit
15824 -V, --version print version number and configuration settings, then exit
15825 -q, --quiet do not print progress messages
15826 -d, --debug don't remove temporary files
15827 --recheck update $as_me by reconfiguring in the same conditions
15828 --file=FILE[:TEMPLATE]
15829 instantiate the configuration file FILE
15831 Configuration files:
15834 Configuration commands:
15837 Report bugs to <bug-autoconf@gnu.org>."
15840 cat >>$CONFIG_STATUS <<_ACEOF
15843 configured by $0, generated by GNU Autoconf 2.61,
15844 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15846 Copyright (C) 2006 Free Software Foundation, Inc.
15847 This config.status script is free software; the Free Software Foundation
15848 gives unlimited permission to copy, distribute and modify it."
15855 cat >>$CONFIG_STATUS <<\_ACEOF
15856 # If no file are specified by the user, then we need to provide default
15857 # value. By we need to know if files were specified by the user.
15863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15875 # Handling of the options.
15876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15879 echo "$ac_cs_version"; exit ;;
15880 --debug | --debu | --deb | --de | --d | -d )
15882 --file | --fil | --fi | --f )
15884 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15885 ac_need_defaults=false;;
15886 --he | --h | --help | --hel | -h )
15887 echo "$ac_cs_usage"; exit ;;
15888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15892 # This is an error.
15893 -*) { echo "$as_me: error: unrecognized option: $1
15894 Try \`$0 --help' for more information." >&2
15895 { (exit 1); exit 1; }; } ;;
15897 *) ac_config_targets="$ac_config_targets $1"
15898 ac_need_defaults=false ;;
15904 ac_configure_extra_args=
15906 if $ac_cs_silent; then
15908 ac_configure_extra_args="$ac_configure_extra_args --silent"
15912 cat >>$CONFIG_STATUS <<_ACEOF
15913 if \$ac_cs_recheck; then
15914 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15915 CONFIG_SHELL=$SHELL
15916 export CONFIG_SHELL
15917 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15921 cat >>$CONFIG_STATUS <<\_ACEOF
15925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15926 ## Running $as_me. ##
15932 cat >>$CONFIG_STATUS <<_ACEOF
15936 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15937 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15939 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15940 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15941 LINGUAS="${LINGUAS-%UNSET%}"
15946 cat >>$CONFIG_STATUS <<\_ACEOF
15948 # Handling of arguments.
15949 for ac_config_target in $ac_config_targets
15951 case $ac_config_target in
15952 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15953 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15955 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15956 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15957 { (exit 1); exit 1; }; };;
15962 # If the user did not use the arguments to specify the items to instantiate,
15963 # then the envvar interface is used. Set only those that are not.
15964 # We use the long form for the default assignment because of an extremely
15965 # bizarre bug on SunOS 4.1.3.
15966 if $ac_need_defaults; then
15967 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15971 # Have a temporary directory for convenience. Make it in the build tree
15972 # simply because there is no reason against having it here, and in addition,
15973 # creating and moving files from /tmp can sometimes cause problems.
15974 # Hook for its removal unless debugging.
15975 # Note that there is a small window in which the directory will not be cleaned:
15976 # after its creation but before its name has been assigned to `$tmp'.
15980 trap 'exit_status=$?
15981 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15983 trap '{ (exit 1); exit 1; }' 1 2 13 15
15985 # Create a (secure) tmp directory for tmp files.
15988 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15989 test -n "$tmp" && test -d "$tmp"
15992 tmp=./conf$$-$RANDOM
15993 (umask 077 && mkdir "$tmp")
15996 echo "$me: cannot create a temporary directory in ." >&2
15997 { (exit 1); exit 1; }
16001 # Set up the sed scripts for CONFIG_FILES section.
16004 # No need to generate the scripts if there are no CONFIG_FILES.
16005 # This happens for instance when ./config.status config.h
16006 if test -n "$CONFIG_FILES"; then
16010 # Create sed commands to just substitute file output variables.
16012 # Remaining file output variables are in a fragment that also has non-file
16018 for ac_last_try in false false false false false :; do
16019 cat >conf$$subs.sed <<_ACEOF
16020 SHELL!$SHELL$ac_delim
16021 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16022 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16023 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16024 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16025 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16026 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16027 exec_prefix!$exec_prefix$ac_delim
16028 prefix!$prefix$ac_delim
16029 program_transform_name!$program_transform_name$ac_delim
16030 bindir!$bindir$ac_delim
16031 sbindir!$sbindir$ac_delim
16032 libexecdir!$libexecdir$ac_delim
16033 datarootdir!$datarootdir$ac_delim
16034 datadir!$datadir$ac_delim
16035 sysconfdir!$sysconfdir$ac_delim
16036 sharedstatedir!$sharedstatedir$ac_delim
16037 localstatedir!$localstatedir$ac_delim
16038 includedir!$includedir$ac_delim
16039 oldincludedir!$oldincludedir$ac_delim
16040 docdir!$docdir$ac_delim
16041 infodir!$infodir$ac_delim
16042 htmldir!$htmldir$ac_delim
16043 dvidir!$dvidir$ac_delim
16044 pdfdir!$pdfdir$ac_delim
16045 psdir!$psdir$ac_delim
16046 libdir!$libdir$ac_delim
16047 localedir!$localedir$ac_delim
16048 mandir!$mandir$ac_delim
16049 DEFS!$DEFS$ac_delim
16050 ECHO_C!$ECHO_C$ac_delim
16051 ECHO_N!$ECHO_N$ac_delim
16052 ECHO_T!$ECHO_T$ac_delim
16053 LIBS!$LIBS$ac_delim
16054 build_alias!$build_alias$ac_delim
16055 host_alias!$host_alias$ac_delim
16056 target_alias!$target_alias$ac_delim
16057 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16058 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16059 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16060 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16061 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16062 build!$build$ac_delim
16063 build_cpu!$build_cpu$ac_delim
16064 build_vendor!$build_vendor$ac_delim
16065 build_os!$build_os$ac_delim
16066 host!$host$ac_delim
16067 host_cpu!$host_cpu$ac_delim
16068 host_vendor!$host_vendor$ac_delim
16069 host_os!$host_os$ac_delim
16071 CFLAGS!$CFLAGS$ac_delim
16072 LDFLAGS!$LDFLAGS$ac_delim
16073 CPPFLAGS!$CPPFLAGS$ac_delim
16074 ac_ct_CC!$ac_ct_CC$ac_delim
16075 EXEEXT!$EXEEXT$ac_delim
16076 OBJEXT!$OBJEXT$ac_delim
16079 GREP!$GREP$ac_delim
16080 EGREP!$EGREP$ac_delim
16081 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16082 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16083 HTREE_CMT!$HTREE_CMT$ac_delim
16084 ELF_CMT!$ELF_CMT$ac_delim
16085 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16086 PROFILE_CMT!$PROFILE_CMT$ac_delim
16087 CHECKER_CMT!$CHECKER_CMT$ac_delim
16088 LIB_EXT!$LIB_EXT$ac_delim
16089 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16090 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16091 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16092 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16093 IMAGER_CMT!$IMAGER_CMT$ac_delim
16094 RESIZER_CMT!$RESIZER_CMT$ac_delim
16095 FSCK_PROG!$FSCK_PROG$ac_delim
16098 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16100 elif $ac_last_try; then
16101 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16102 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16103 { (exit 1); exit 1; }; }
16105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16109 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16110 if test -n "$ac_eof"; then
16111 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16112 ac_eof=`expr $ac_eof + 1`
16115 cat >>$CONFIG_STATUS <<_ACEOF
16116 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16118 /^[ ]*@MCONFIG@[ ]*$/{
16122 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16126 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16130 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16131 r $MAKEFILE_PROFILE
16134 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16135 r $MAKEFILE_CHECKER
16138 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16139 r $MAKEFILE_LIBRARY
16142 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16143 r $ASM_TYPES_HEADER
16148 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16149 s/^/s,@/; s/!/@,|#_!!_#|/
16152 s/'"$ac_delim"'$/,g/; t
16154 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16155 ' >>$CONFIG_STATUS <conf$$subs.sed
16156 rm -f conf$$subs.sed
16157 cat >>$CONFIG_STATUS <<_ACEOF
16163 for ac_last_try in false false false false false :; do
16164 cat >conf$$subs.sed <<_ACEOF
16165 FSCK_MAN!$FSCK_MAN$ac_delim
16166 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16167 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16168 PKG_CONFIG!$PKG_CONFIG$ac_delim
16169 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16170 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16171 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16172 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16173 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16174 UUIDD_CMT!$UUIDD_CMT$ac_delim
16175 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16176 PACKAGE!$PACKAGE$ac_delim
16177 VERSION!$VERSION$ac_delim
16178 SET_MAKE!$SET_MAKE$ac_delim
16179 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16180 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16181 INSTALL_DATA!$INSTALL_DATA$ac_delim
16182 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16183 USE_NLS!$USE_NLS$ac_delim
16184 MSGFMT!$MSGFMT$ac_delim
16185 GMSGFMT!$GMSGFMT$ac_delim
16186 XGETTEXT!$XGETTEXT$ac_delim
16187 MSGMERGE!$MSGMERGE$ac_delim
16188 RANLIB!$RANLIB$ac_delim
16189 ALLOCA!$ALLOCA$ac_delim
16190 GLIBC21!$GLIBC21$ac_delim
16191 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16192 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16193 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16194 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16195 LIBICONV!$LIBICONV$ac_delim
16196 LTLIBICONV!$LTLIBICONV$ac_delim
16197 INTLBISON!$INTLBISON$ac_delim
16198 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16199 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16200 CATOBJEXT!$CATOBJEXT$ac_delim
16201 DATADIRNAME!$DATADIRNAME$ac_delim
16202 INSTOBJEXT!$INSTOBJEXT$ac_delim
16203 GENCAT!$GENCAT$ac_delim
16204 INTLOBJS!$INTLOBJS$ac_delim
16205 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16206 INTLLIBS!$INTLLIBS$ac_delim
16207 LIBINTL!$LIBINTL$ac_delim
16208 LTLIBINTL!$LTLIBINTL$ac_delim
16209 POSUB!$POSUB$ac_delim
16210 BINARY_TYPE!$BINARY_TYPE$ac_delim
16212 LN_S!$LN_S$ac_delim
16216 CHMOD!$CHMOD$ac_delim
16219 PERL!$PERL$ac_delim
16220 LDCONFIG!$LDCONFIG$ac_delim
16222 STRIP!$STRIP$ac_delim
16223 MAKEINFO!$MAKEINFO$ac_delim
16224 BUILD_CC!$BUILD_CC$ac_delim
16225 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16226 SIZEOF_INT!$SIZEOF_INT$ac_delim
16227 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16228 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16229 SOCKET_LIB!$SOCKET_LIB$ac_delim
16230 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16231 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16232 LINUX_CMT!$LINUX_CMT$ac_delim
16233 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16234 UNIX_CMT!$UNIX_CMT$ac_delim
16235 root_prefix!$root_prefix$ac_delim
16236 root_bindir!$root_bindir$ac_delim
16237 root_sbindir!$root_sbindir$ac_delim
16238 root_libdir!$root_libdir$ac_delim
16239 root_sysconfdir!$root_sysconfdir$ac_delim
16240 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16241 SS_DIR!$SS_DIR$ac_delim
16242 ET_DIR!$ET_DIR$ac_delim
16243 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16244 INTL_FLAGS!$INTL_FLAGS$ac_delim
16245 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16246 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16247 LIBOBJS!$LIBOBJS$ac_delim
16248 LTLIBOBJS!$LTLIBOBJS$ac_delim
16251 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
16253 elif $ac_last_try; then
16254 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16255 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16256 { (exit 1); exit 1; }; }
16258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16262 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16263 if test -n "$ac_eof"; then
16264 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16265 ac_eof=`expr $ac_eof + 1`
16268 cat >>$CONFIG_STATUS <<_ACEOF
16269 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16273 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16274 s/^/s,@/; s/!/@,|#_!!_#|/
16277 s/'"$ac_delim"'$/,g/; t
16279 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16280 ' >>$CONFIG_STATUS <conf$$subs.sed
16281 rm -f conf$$subs.sed
16282 cat >>$CONFIG_STATUS <<_ACEOF
16289 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16290 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16291 # trailing colons and then remove the whole line if VPATH becomes empty
16292 # (actually we leave an empty line to preserve line numbers).
16293 if test "x$srcdir" = x.; then
16294 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16295 s/:*\$(srcdir):*/:/
16296 s/:*\${srcdir}:*/:/
16298 s/^\([^=]*=[ ]*\):*/\1/
16304 cat >>$CONFIG_STATUS <<\_ACEOF
16305 fi # test -n "$CONFIG_FILES"
16308 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16311 :[FHLC]) ac_mode=$ac_tag; continue;;
16313 case $ac_mode$ac_tag in
16315 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16316 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16317 { (exit 1); exit 1; }; };;
16318 :[FH]-) ac_tag=-:-;;
16319 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16336 -) ac_f="$tmp/stdin";;
16337 *) # Look for the file first in the build tree, then in the source tree
16338 # (if the path is not absolute). The absolute path cannot be DOS-style,
16339 # because $ac_f cannot contain `:'.
16343 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16345 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16346 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16347 { (exit 1); exit 1; }; };;
16349 ac_file_inputs="$ac_file_inputs $ac_f"
16352 # Let's still pretend it is `configure' which instantiates (i.e., don't
16353 # use $as_me), people would be surprised to read:
16354 # /* config.h. Generated by config.status. */
16355 configure_input="Generated from "`IFS=:
16356 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16357 if test x"$ac_file" != x-; then
16358 configure_input="$ac_file. $configure_input"
16359 { echo "$as_me:$LINENO: creating $ac_file" >&5
16360 echo "$as_me: creating $ac_file" >&6;}
16364 *:-:* | *:-) cat >"$tmp/stdin";;
16369 ac_dir=`$as_dirname -- "$ac_file" ||
16370 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$ac_file" : 'X\(//\)[^/]' \| \
16372 X"$ac_file" : 'X\(//\)$' \| \
16373 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16379 /^X\(\/\/\)[^/].*/{
16394 -*) as_dir=./$as_dir;;
16396 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16400 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16401 *) as_qdir=$as_dir;;
16403 as_dirs="'$as_qdir' $as_dirs"
16404 as_dir=`$as_dirname -- "$as_dir" ||
16405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16406 X"$as_dir" : 'X\(//\)[^/]' \| \
16407 X"$as_dir" : 'X\(//\)$' \| \
16408 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16414 /^X\(\/\/\)[^/].*/{
16427 test -d "$as_dir" && break
16429 test -z "$as_dirs" || eval "mkdir $as_dirs"
16430 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16431 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16432 { (exit 1); exit 1; }; }; }
16436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16438 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16439 # A ".." for each directory in $ac_dir_suffix.
16440 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16441 case $ac_top_builddir_sub in
16442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16446 ac_abs_top_builddir=$ac_pwd
16447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16448 # for backward compatibility:
16449 ac_top_builddir=$ac_top_build_prefix
16452 .) # We are building in place.
16454 ac_top_srcdir=$ac_top_builddir_sub
16455 ac_abs_top_srcdir=$ac_pwd ;;
16456 [\\/]* | ?:[\\/]* ) # Absolute name.
16457 ac_srcdir=$srcdir$ac_dir_suffix;
16458 ac_top_srcdir=$srcdir
16459 ac_abs_top_srcdir=$srcdir ;;
16460 *) # Relative name.
16461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16462 ac_top_srcdir=$ac_top_build_prefix$srcdir
16463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16480 cat >>$CONFIG_STATUS <<\_ACEOF
16481 # If the template does not know about datarootdir, expand it.
16482 # FIXME: This hack should be removed a few years after 2.60.
16483 ac_datarootdir_hack=; ac_datarootdir_seen=
16485 case `sed -n '/datarootdir/ {
16494 ' $ac_file_inputs` in
16495 *datarootdir*) ac_datarootdir_seen=yes;;
16496 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16497 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16498 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16500 cat >>$CONFIG_STATUS <<_ACEOF
16501 ac_datarootdir_hack='
16502 s&@datadir@&$datadir&g
16503 s&@docdir@&$docdir&g
16504 s&@infodir@&$infodir&g
16505 s&@localedir@&$localedir&g
16506 s&@mandir@&$mandir&g
16507 s&\\\${datarootdir}&$datarootdir&g' ;;
16511 # Neutralize VPATH when `$srcdir' = `.'.
16512 # Shell code in configure.ac might set extrasub.
16513 # FIXME: do we really want to maintain this feature?
16514 cat >>$CONFIG_STATUS <<_ACEOF
16518 cat >>$CONFIG_STATUS <<\_ACEOF
16520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16521 s&@configure_input@&$configure_input&;t t
16522 s&@top_builddir@&$ac_top_builddir_sub&;t t
16523 s&@srcdir@&$ac_srcdir&;t t
16524 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16525 s&@top_srcdir@&$ac_top_srcdir&;t t
16526 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16527 s&@builddir@&$ac_builddir&;t t
16528 s&@abs_builddir@&$ac_abs_builddir&;t t
16529 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16530 s&@INSTALL@&$ac_INSTALL&;t t
16531 $ac_datarootdir_hack
16532 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16534 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16535 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16536 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16537 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16538 which seems to be undefined. Please make sure it is defined." >&5
16539 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540 which seems to be undefined. Please make sure it is defined." >&2;}
16544 -) cat "$tmp/out"; rm -f "$tmp/out";;
16545 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16550 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16551 echo "$as_me: executing $ac_file commands" >&6;}
16556 case $ac_file$ac_mode in
16558 for ac_file in $CONFIG_FILES; do
16559 # Support "outfile[:infile[:infile...]]"
16561 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16563 # PO directories have a Makefile.in generated from Makefile.in.in.
16564 case "$ac_file" in */Makefile.in)
16565 # Adjust a relative srcdir.
16566 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16567 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16568 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16569 # In autoconf-2.13 it is called $ac_given_srcdir.
16570 # In autoconf-2.50 it is called $srcdir.
16571 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16572 case "$ac_given_srcdir" in
16573 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16574 /*) top_srcdir="$ac_given_srcdir" ;;
16575 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16577 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16578 rm -f "$ac_dir/POTFILES"
16579 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16580 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16581 POMAKEFILEDEPS="POTFILES.in"
16582 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16583 # on $ac_dir but don't depend on user-specified configuration
16585 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16586 # The LINGUAS file contains the set of available languages.
16587 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16588 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16590 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16591 # Hide the ALL_LINGUAS assigment from automake.
16592 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16593 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16595 # The set of available languages was given in configure.in.
16596 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16599 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16600 # Compute UPDATEPOFILES
16601 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16602 # Compute DUMMYPOFILES
16603 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16605 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16606 case "$ac_given_srcdir" in
16608 *) srcdirpre='$(srcdir)/' ;;
16614 for lang in $ALL_LINGUAS; do
16615 POFILES="$POFILES $srcdirpre$lang.po"
16616 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16617 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16618 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16620 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16621 # environment variable.
16623 if test -n "$ALL_LINGUAS"; then
16624 for presentlang in $ALL_LINGUAS; do
16626 if test "%UNSET%" != "$LINGUAS"; then
16627 desiredlanguages="$LINGUAS"
16629 desiredlanguages="$ALL_LINGUAS"
16631 for desiredlang in $desiredlanguages; do
16632 # Use the presentlang catalog if desiredlang is
16633 # a. equal to presentlang, or
16634 # b. a variant of presentlang (because in this case,
16635 # presentlang can be used as a fallback for messages
16636 # which are not translated in the desiredlang catalog).
16637 case "$desiredlang" in
16638 "$presentlang"*) useit=yes;;
16641 if test $useit = yes; then
16642 INST_LINGUAS="$INST_LINGUAS $presentlang"
16647 if test -n "$INST_LINGUAS"; then
16648 for lang in $INST_LINGUAS; do
16649 CATALOGS="$CATALOGS $lang.gmo"
16652 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16653 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"
16654 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16655 if test -f "$f"; then
16657 *.orig | *.bak | *~) ;;
16658 *) cat "$f" >> "$ac_dir/Makefile" ;;
16671 { (exit 0); exit 0; }
16673 chmod +x $CONFIG_STATUS
16674 ac_clean_files=$ac_clean_files_save
16677 # configure is writing to config.log, and then calls config.status.
16678 # config.status does its own redirection, appending to config.log.
16679 # Unfortunately, on DOS this fails, as config.log is still kept open
16680 # by configure, so config.status won't be able to write to it; its
16681 # output is simply discarded. So we exec the FD to /dev/null,
16682 # effectively closing config.log, so it can be properly (re)opened and
16683 # appended to by config.status. When coming back to configure, we
16684 # need to make the FD available again.
16685 if test "$no_create" != yes; then
16687 ac_config_status_args=
16688 test "$silent" = yes &&
16689 ac_config_status_args="$ac_config_status_args --quiet"
16691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16694 # would make configure fail if this is the last instruction.
16695 $ac_cs_success || { (exit 1); exit 1; }
16698 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi