2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
698 STATIC_DEVMAPPER_LIBS
699 STATIC_BLKID_DEVMAPPER_LIBS
724 BUILD_INCLUDED_LIBINTL
731 INTL_LIBTOOL_SUFFIX_PREFIX
775 ac_subst_files='MCONFIG
782 PUBLIC_CONFIG_HEADER'
783 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1358 if test -n "$ac_init_help"; then
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-maintainer-mode enable makefile rules useful for maintainers
1366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
1368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
1375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
1378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
1380 --enable-blkid-devmapper build with device-mapper support
1381 --disable-tls disable use of thread local support
1382 --disable-uuidd disable building the uuid daemon
1383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1389 --with-diet-libc use diet libc
1390 --with-cc=COMPILER select compiler to use
1391 --with-linker=LINKER select linker to use
1392 --with-ccopts=CCOPTS select compiler command line options
1393 --with-ldopts=LDOPTS select linker command line options
1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default=no
1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search for libintl in includedir and libdir
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1411 PKG_CONFIG path to pkg-config utility
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" || continue
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1477 generated by GNU Autoconf 2.61
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by $as_me, which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_must_keep_next=false
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 -* ) ac_must_keep_next=true ;;
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 echo "$ac_var='\''$ac_val'\''"
1654 if test -n "$ac_subst_files"; then
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 echo "$ac_var='\''$ac_val'\''"
1672 if test -s confdefs.h; then
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1763 # Check that the precious variables saved in the cache have kept the same
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786 echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788 echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837 for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 elif test -f "$ac_dir/install.sh"; then
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 elif test -f "$ac_dir/shtool"; then
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1852 if test -z "$ac_aux_dir"; then
1853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1855 { (exit 1); exit 1; }; }
1858 # These three variables are undocumented and unsupported,
1859 # and are intended to be withdrawn in a future Autoconf release.
1860 # They can cause serious problems if a builder's source tree is in a directory
1861 # whose full name contains unusual characters.
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1870 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1872 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1874 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1875 MONTH=`echo $DATE | awk -F- '{print $2}'`
1876 YEAR=`echo $DATE | awk -F- '{print $3}'`
1878 if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880 elif expr $YEAR ">" 90 >/dev/null ; then
1881 E2FSPROGS_YEAR=19$YEAR
1883 E2FSPROGS_YEAR=20$YEAR
1887 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1899 *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1900 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
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 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1913 E2FSPROGS_PKGVER="$base_ver"
1917 unset DATE MONTH YEAR base_ver pre_vers date_spec
1918 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1919 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1920 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1921 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1927 # Make sure we can run config.sub.
1928 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1931 { (exit 1); exit 1; }; }
1933 { echo "$as_me:$LINENO: checking build system type" >&5
1934 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_build+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 ac_build_alias=$build_alias
1939 test "x$ac_build_alias" = x &&
1940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941 test "x$ac_build_alias" = x &&
1942 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944 { (exit 1); exit 1; }; }
1945 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1951 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952 echo "${ECHO_T}$ac_cv_build" >&6; }
1953 case $ac_cv_build in
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956 echo "$as_me: error: invalid value of canonical build" >&2;}
1957 { (exit 1); exit 1; }; };;
1960 ac_save_IFS=$IFS; IFS='-'
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1973 { echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1975 if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test "x$host_alias" = x; then
1979 ac_cv_host=$ac_cv_build
1981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989 echo "${ECHO_T}$ac_cv_host" >&6; }
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993 echo "$as_me: error: invalid value of canonical host" >&2;}
1994 { (exit 1); exit 1; }; };;
1997 ac_save_IFS=$IFS; IFS='-'
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2007 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2012 # Check whether --with-diet-libc was given.
2013 if test "${with_diet_libc+set}" = set; then
2014 withval=$with_diet_libc; CC="diet cc -nostdinc"
2016 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2017 echo "${ECHO_T}CC=$CC" >&6; }
2020 # Check whether --with-cc was given.
2021 if test "${with_cc+set}" = set; then
2022 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2023 echo "${ECHO_T}CC=$withval" >&6; }
2026 if test -z "$CC" ; then CC=cc; fi
2027 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2028 echo "${ECHO_T}CC defaults to $CC" >&6; }
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 if test -n "$ac_tool_prefix"; then
2038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2039 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$CC"; then
2046 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 if test -n "$CC"; then
2067 { echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2076 if test -z "$ac_cv_prog_CC"; then
2078 # Extract the first word of "gcc", so it can be a program name with args.
2079 set dummy gcc; ac_word=$2
2080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test -n "$ac_ct_CC"; then
2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095 ac_cv_prog_ac_ct_CC="gcc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6; }
2110 { echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6; }
2114 if test "x$ac_ct_CC" = x; then
2117 case $cross_compiling:$ac_tool_warned in
2119 { echo "$as_me:$LINENO: 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." >&5
2122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2123 whose name does not start with the host triplet. If you think this
2124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2125 ac_tool_warned=yes ;;
2133 if test -z "$CC"; then
2134 if test -n "$ac_tool_prefix"; then
2135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2136 set dummy ${ac_tool_prefix}cc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_prog_CC="${ac_tool_prefix}cc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 if test -n "$CC"; then
2164 { echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6; }
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2174 if test -z "$CC"; then
2175 # Extract the first word of "cc", so it can be a program name with args.
2176 set dummy cc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194 ac_prog_rejected=yes
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 if test $ac_prog_rejected = yes; then
2206 # We found a bogon in the path, so make sure we never use it.
2207 set dummy $ac_cv_prog_CC
2209 if test $# != 0; then
2210 # We chose a different compiler from the bogus one.
2211 # However, it has the same basename, so the bogon will be chosen
2212 # first if we set CC to just the basename; use the full file name.
2214 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2230 if test -z "$CC"; then
2231 if test -n "$ac_tool_prefix"; then
2232 for ac_prog in cl.exe
2234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test -n "$CC"; then
2263 { echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6; }
2266 { echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6; }
2271 test -n "$CC" && break
2274 if test -z "$CC"; then
2276 for ac_prog in cl.exe
2278 # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$ac_ct_CC"; then
2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_prog_ac_ct_CC="$ac_prog"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2306 if test -n "$ac_ct_CC"; then
2307 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2308 echo "${ECHO_T}$ac_ct_CC" >&6; }
2310 { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2315 test -n "$ac_ct_CC" && break
2318 if test "x$ac_ct_CC" = x; then
2321 case $cross_compiling:$ac_tool_warned in
2323 { echo "$as_me:$LINENO: 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." >&5
2326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet. If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329 ac_tool_warned=yes ;;
2338 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: no acceptable C compiler found in \$PATH
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2344 # Provide some information about the compiler.
2345 echo "$as_me:$LINENO: checking for C compiler version" >&5
2346 ac_compiler=`set X $ac_compile; echo $2`
2347 { (ac_try="$ac_compiler --version >&5"
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compiler --version >&5") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
2357 { (ac_try="$ac_compiler -v >&5"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compiler -v >&5") 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (ac_try="$ac_compiler -V >&5"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compiler -V >&5") 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2398 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2402 # List of possible output files, starting from the most likely.
2403 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2404 # only as a last resort. b.out is created by i960 compilers.
2405 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2407 # The IRIX 6 linker writes into existing files which may not be
2408 # executable, retaining their permissions. Remove them first so a
2409 # subsequent execution test works.
2411 for ac_file in $ac_files
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2420 if { (ac_try="$ac_link_default"
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_link_default") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; then
2430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2432 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2433 # so that the user can short-circuit this test for compilers unknown to
2435 for ac_file in $ac_files ''
2437 test -f "$ac_file" || continue
2439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2442 # We found the default executable, but exeext='' is most
2446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2450 # We set ac_cv_exeext here because the later test for it is not
2451 # safe: cross compilers may not add the suffix if given an `-o'
2452 # argument, so we may need to know it at that point already.
2453 # Even if this section looks crufty: it has the advantage of
2460 test "$ac_cv_exeext" = no && ac_cv_exeext=
2466 { echo "$as_me:$LINENO: result: $ac_file" >&5
2467 echo "${ECHO_T}$ac_file" >&6; }
2468 if test -z "$ac_file"; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2472 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&2;}
2476 { (exit 77); exit 77; }; }
2479 ac_exeext=$ac_cv_exeext
2481 # Check that the compiler produces executables we can run. If not, either
2482 # the compiler is broken, or we cross compile.
2483 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488 if { ac_try='./$ac_file'
2489 { (case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_try") 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2500 if test "$cross_compiling" = maybe; then
2503 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2513 { echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6; }
2516 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2517 ac_clean_files=$ac_clean_files_save
2518 # Check that the compiler produces executables we can run. If not, either
2519 # the compiler is broken, or we cross compile.
2520 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2522 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2523 echo "${ECHO_T}$cross_compiling" >&6; }
2525 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2526 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2527 if { (ac_try="$ac_link"
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_link") 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2541 for ac_file in conftest.exe conftest conftest.*; do
2542 test -f "$ac_file" || continue
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2551 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&2;}
2555 { (exit 1); exit 1; }; }
2558 rm -f conftest$ac_cv_exeext
2559 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2560 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2562 rm -f conftest.$ac_ext
2563 EXEEXT=$ac_cv_exeext
2565 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2566 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2567 if test "${ac_cv_objext+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2585 rm -f conftest.o conftest.obj
2586 if { (ac_try="$ac_compile"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compile") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 for ac_file in conftest.o conftest.obj conftest.*; do
2597 test -f "$ac_file" || continue;
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2608 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2611 See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2617 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2618 echo "${ECHO_T}$ac_cv_objext" >&6; }
2619 OBJEXT=$ac_cv_objext
2621 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2622 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2623 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (ac_try="$ac_compile"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compile") 2>conftest.er1
2653 grep -v '^ *+' conftest.er1 >conftest.err
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } && {
2658 test -z "$ac_c_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest.$ac_objext; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2673 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2674 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2675 GCC=`test $ac_compiler_gnu = yes && echo yes`
2676 ac_test_CFLAGS=${CFLAGS+set}
2677 ac_save_CFLAGS=$CFLAGS
2678 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_cc_g+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 ac_save_c_werror_flag=$ac_c_werror_flag
2684 ac_c_werror_flag=yes
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } && {
2716 test -z "$ac_c_werror_flag" ||
2717 test ! -s conftest.err
2718 } && test -s conftest.$ac_objext; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 rm -f conftest.$ac_objext
2741 if { (ac_try="$ac_compile"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compile") 2>conftest.er1
2749 grep -v '^ *+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } && {
2754 test -z "$ac_c_werror_flag" ||
2755 test ! -s conftest.err
2756 } && test -s conftest.$ac_objext; then
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2762 ac_c_werror_flag=$ac_save_c_werror_flag
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } && {
2793 test -z "$ac_c_werror_flag" ||
2794 test ! -s conftest.err
2795 } && test -s conftest.$ac_objext; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_c_werror_flag=$ac_save_c_werror_flag
2813 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2815 if test "$ac_test_CFLAGS" = set; then
2816 CFLAGS=$ac_save_CFLAGS
2817 elif test $ac_cv_prog_cc_g = yes; then
2818 if test "$GCC" = yes; then
2824 if test "$GCC" = yes; then
2830 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2831 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_cc_c89+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 ac_cv_prog_cc_c89=no
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2848 struct buf { int x; };
2849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2850 static char *e (p, i)
2856 static char *f (char * (*g) (char **, int), char **p, ...)
2861 s = g (p, va_arg (v,int));
2866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2867 function prototypes and stuff, but not '\xHH' hex character constants.
2868 These don't provoke an error unfortunately, instead are silently treated
2869 as 'x'. The following induces an error, until -std is added to get
2870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2871 array size at least. It's necessary to write '\x00'==0 to get something
2872 that's true only with -std. */
2873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2876 inside strings and character constants. */
2878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2880 int test (int i, double x);
2881 struct s1 {int (*f) (int a);};
2882 struct s2 {int (*f) (double a);};
2883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2897 CC="$ac_save_CC $ac_arg"
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2915 ac_cv_prog_cc_c89=$ac_arg
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f core conftest.err conftest.$ac_objext
2924 test "x$ac_cv_prog_cc_c89" != "xno" && break
2926 rm -f conftest.$ac_ext
2931 case "x$ac_cv_prog_cc_c89" in
2933 { echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6; } ;;
2936 { echo "$as_me:$LINENO: result: unsupported" >&5
2937 echo "${ECHO_T}unsupported" >&6; } ;;
2939 CC="$CC $ac_cv_prog_cc_c89"
2940 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2958 # On Suns, sometimes $CPP names a directory.
2959 if test -n "$CPP" && test -d "$CPP"; then
2962 if test -z "$CPP"; then
2963 if test "${ac_cv_prog_CPP+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 # Double quotes because CPP needs to be expanded
2967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2970 for ac_c_preproc_warn_flag in '' yes
2972 # Use a header file that comes with gcc, so configuring glibc
2973 # with a fresh cross-compiler works.
2974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975 # <limits.h> exists even on freestanding compilers.
2976 # On the NeXT, cc -E runs the code through the compiler's parser,
2977 # not just through cpp. "Syntax error" is here to catch this case.
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2985 # include <limits.h>
2987 # include <assert.h>
2991 if { (ac_try="$ac_cpp conftest.$ac_ext"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2999 grep -v '^ *+' conftest.er1 >conftest.err
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } >/dev/null && {
3004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3005 test ! -s conftest.err
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 # Broken: fails on valid input.
3016 rm -f conftest.err conftest.$ac_ext
3018 # OK, works on sane cases. Now check whether nonexistent headers
3019 # can be detected and how.
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026 #include <ac_nonexistent.h>
3028 if { (ac_try="$ac_cpp conftest.$ac_ext"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null && {
3041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3044 # Broken: success on invalid input.
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 # Passes both tests.
3055 rm -f conftest.err conftest.$ac_ext
3058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3059 rm -f conftest.err conftest.$ac_ext
3060 if $ac_preproc_ok; then
3072 { echo "$as_me:$LINENO: result: $CPP" >&5
3073 echo "${ECHO_T}$CPP" >&6; }
3075 for ac_c_preproc_warn_flag in '' yes
3077 # Use a header file that comes with gcc, so configuring glibc
3078 # with a fresh cross-compiler works.
3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080 # <limits.h> exists even on freestanding compilers.
3081 # On the NeXT, cc -E runs the code through the compiler's parser,
3082 # not just through cpp. "Syntax error" is here to catch this case.
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3090 # include <limits.h>
3092 # include <assert.h>
3096 if { (ac_try="$ac_cpp conftest.$ac_ext"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null && {
3109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 # Broken: fails on valid input.
3121 rm -f conftest.err conftest.$ac_ext
3123 # OK, works on sane cases. Now check whether nonexistent headers
3124 # can be detected and how.
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #include <ac_nonexistent.h>
3133 if { (ac_try="$ac_cpp conftest.$ac_ext"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null && {
3146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3149 # Broken: success on invalid input.
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 # Passes both tests.
3160 rm -f conftest.err conftest.$ac_ext
3163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164 rm -f conftest.err conftest.$ac_ext
3165 if $ac_preproc_ok; then
3168 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3171 See \`config.log' for more details." >&2;}
3172 { (exit 1); exit 1; }; }
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 # Check whether --with-linker was given.
3183 if test "${with_linker+set}" = set; then
3184 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3185 echo "${ECHO_T}LD=$withval" >&6; }
3188 if test -z "$LD" ; then LD=$CC; fi
3189 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3190 echo "${ECHO_T}LD defaults to $LD" >&6; }
3195 # Check whether --with-ccopts was given.
3196 if test "${with_ccopts+set}" = set; then
3197 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3198 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3203 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 # Extract the first word of "grep ggrep" to use in msg output
3209 if test -z "$GREP"; then
3210 set dummy grep ggrep; ac_prog_name=$2
3211 if test "${ac_cv_path_GREP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 ac_path_GREP_found=false
3215 # Loop through the user's path and test for each of PROGNAME-LIST
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3220 test -z "$as_dir" && as_dir=.
3221 for ac_prog in grep ggrep; do
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3225 # Check for GNU ac_path_GREP and select it if it is found.
3226 # Check for GNU $ac_path_GREP
3227 case `"$ac_path_GREP" --version 2>&1` in
3229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3232 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3235 cat "conftest.in" "conftest.in" >"conftest.tmp"
3236 mv "conftest.tmp" "conftest.in"
3237 cp "conftest.in" "conftest.nl"
3238 echo 'GREP' >> "conftest.nl"
3239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241 ac_count=`expr $ac_count + 1`
3242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243 # Best one so far, save it but keep looking for a better one
3244 ac_cv_path_GREP="$ac_path_GREP"
3245 ac_path_GREP_max=$ac_count
3247 # 10*(2^10) chars as input seems more than enough
3248 test $ac_count -gt 10 && break
3250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3254 $ac_path_GREP_found && break 3
3264 GREP="$ac_cv_path_GREP"
3265 if test -z "$GREP"; then
3266 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268 { (exit 1); exit 1; }; }
3272 ac_cv_path_GREP=$GREP
3277 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279 GREP="$ac_cv_path_GREP"
3282 { echo "$as_me:$LINENO: checking for egrep" >&5
3283 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284 if test "${ac_cv_path_EGREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288 then ac_cv_path_EGREP="$GREP -E"
3290 # Extract the first word of "egrep" to use in msg output
3291 if test -z "$EGREP"; then
3292 set dummy egrep; ac_prog_name=$2
3293 if test "${ac_cv_path_EGREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_path_EGREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in egrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307 # Check for GNU ac_path_EGREP and select it if it is found.
3308 # Check for GNU $ac_path_EGREP
3309 case `"$ac_path_EGREP" --version 2>&1` in
3311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'EGREP' >> "conftest.nl"
3321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_EGREP="$ac_path_EGREP"
3327 ac_path_EGREP_max=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336 $ac_path_EGREP_found && break 3
3346 EGREP="$ac_cv_path_EGREP"
3347 if test -z "$EGREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3354 ac_cv_path_EGREP=$EGREP
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362 EGREP="$ac_cv_path_EGREP"
3365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3367 if test "${ac_cv_header_stdc+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } && {
3403 test -z "$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 } && test -s conftest.$ac_objext; then
3406 ac_cv_header_stdc=yes
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_cv_header_stdc=no
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 if test $ac_cv_header_stdc = yes; then
3417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 $EGREP "memchr" >/dev/null 2>&1; then
3431 ac_cv_header_stdc=no
3437 if test $ac_cv_header_stdc = yes; then
3438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 $EGREP "free" >/dev/null 2>&1; then
3452 ac_cv_header_stdc=no
3458 if test $ac_cv_header_stdc = yes; then
3459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3460 if test "$cross_compiling" = yes; then
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3471 #if ((' ' & 0x0FF) == 0x020)
3472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3475 # define ISLOWER(c) \
3476 (('a' <= (c) && (c) <= 'i') \
3477 || ('j' <= (c) && (c) <= 'r') \
3478 || ('s' <= (c) && (c) <= 'z'))
3479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3487 for (i = 0; i < 256; i++)
3488 if (XOR (islower (i), ISLOWER (i))
3489 || toupper (i) != TOUPPER (i))
3494 rm -f conftest$ac_exeext
3495 if { (ac_try="$ac_link"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_link") 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3505 { (case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_try") 2>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3516 echo "$as_me: program exited with status $ac_status" >&5
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3521 ac_cv_header_stdc=no
3523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3529 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3530 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3531 if test $ac_cv_header_stdc = yes; then
3533 cat >>confdefs.h <<\_ACEOF
3534 #define STDC_HEADERS 1
3539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3550 inttypes.h stdint.h unistd.h
3552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 $ac_includes_default
3566 #include <$ac_header>
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3585 eval "$as_ac_Header=yes"
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 eval "$as_ac_Header=no"
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_res=`eval echo '${'$as_ac_Header'}'`
3596 { echo "$as_me:$LINENO: result: $ac_res" >&5
3597 echo "${ECHO_T}$ac_res" >&6; }
3598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599 cat >>confdefs.h <<_ACEOF
3600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3610 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3611 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3615 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3617 # Is the header compilable?
3618 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3619 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 $ac_includes_default
3627 #include <linux/fs.h>
3629 rm -f conftest.$ac_objext
3630 if { (ac_try="$ac_compile"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_compile") 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest.$ac_objext; then
3646 ac_header_compiler=yes
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_header_compiler=no
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3656 echo "${ECHO_T}$ac_header_compiler" >&6; }
3658 # Is the header present?
3659 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3660 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include <linux/fs.h>
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } >/dev/null && {
3682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3685 ac_header_preproc=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_header_preproc=no
3693 rm -f conftest.err conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3695 echo "${ECHO_T}$ac_header_preproc" >&6; }
3697 # So? What about this header?
3698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3701 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3703 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3704 ac_header_preproc=yes
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3708 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3710 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3712 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3714 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3716 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3718 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3722 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3723 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3724 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 ac_cv_header_linux_fs_h=$ac_header_preproc
3729 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3730 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3733 if test $ac_cv_header_linux_fs_h = yes; then
3740 if test "$linux_headers" != yes; then
3741 LINUX_INCLUDE='-I$(top_builddir)/include'
3744 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3745 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3746 if test "$GCC" = yes
3749 alpha) addcflags="-mieee" ;;
3752 if test "x$addcflags" != x
3754 { echo "$as_me:$LINENO: result: $addcflags" >&5
3755 echo "${ECHO_T}$addcflags" >&6; }
3756 CFLAGS="$addcflags $CFLAGS"
3758 { echo "$as_me:$LINENO: result: (none)" >&5
3759 echo "${ECHO_T}(none)" >&6; }
3765 # Check whether --with-ldopts was given.
3766 if test "${with_ldopts+set}" = set; then
3767 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3768 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3775 # Check whether --with-root-prefix was given.
3776 if test "${with_root_prefix+set}" = set; then
3777 withval=$with_root_prefix; root_prefix=$withval
3781 # Check whether --enable-maintainer-mode was given.
3782 if test "${enable_maintainer_mode+set}" = set; then
3783 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3786 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3787 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3790 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3791 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3796 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3797 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3802 # Check whether --enable-compression was given.
3803 if test "${enable_compression+set}" = set; then
3804 enableval=$enable_compression; if test "$enableval" = "no"
3806 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3807 echo "${ECHO_T}Disabling compression support" >&6; }
3809 cat >>confdefs.h <<\_ACEOF
3810 #define ENABLE_COMPRESSION 1
3813 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3814 echo "${ECHO_T}Enabling compression support" >&6; }
3815 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3816 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3820 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3821 echo "${ECHO_T}Disabling compression support by default" >&6; }
3825 # Check whether --enable-htree was given.
3826 if test "${enable_htree+set}" = set; then
3827 enableval=$enable_htree; if test "$enableval" = "no"
3830 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3831 echo "${ECHO_T}Disabling htree directory support" >&6; }
3834 cat >>confdefs.h <<\_ACEOF
3835 #define ENABLE_HTREE 1
3838 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3839 echo "${ECHO_T}Enabling htree directory support" >&6; }
3844 cat >>confdefs.h <<\_ACEOF
3845 #define ENABLE_HTREE 1
3848 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3849 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3854 E2_PKG_CONFIG_STATIC=--static
3855 # Check whether --enable-elf-shlibs was given.
3856 if test "${enable_elf_shlibs+set}" = set; then
3857 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3860 MAKEFILE_ELF=/dev/null
3861 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3862 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3864 E2_PKG_CONFIG_STATIC=
3866 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3869 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3874 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3875 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3879 MAKEFILE_ELF=/dev/null
3881 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3882 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3888 # Check whether --enable-bsd-shlibs was given.
3889 if test "${enable_bsd_shlibs+set}" = set; then
3890 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3893 MAKEFILE_BSDLIB=/dev/null
3894 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3895 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3897 E2_PKG_CONFIG_STATIC=
3899 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3903 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3907 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3908 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3912 MAKEFILE_BSDLIB=/dev/null
3914 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3915 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3921 # Check whether --enable-profile was given.
3922 if test "${enable_profile+set}" = set; then
3923 enableval=$enable_profile; if test "$enableval" = "no"
3926 MAKEFILE_PROFILE=/dev/null
3927 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3928 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3931 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3932 PROFILED_LIB_EXT=_p.a
3933 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3934 echo "${ECHO_T}Building profiling libraries" >&6; }
3939 MAKEFILE_PROFILE=/dev/null
3940 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3941 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3947 # Check whether --enable-checker was given.
3948 if test "${enable_checker+set}" = set; then
3949 enableval=$enable_checker; if test "$enableval" = "no"
3952 MAKEFILE_CHECKER=/dev/null
3953 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3954 echo "${ECHO_T}Disabling checker libraries" >&6; }
3957 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3958 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3959 echo "${ECHO_T}Building checker libraries" >&6; }
3964 MAKEFILE_CHECKER=/dev/null
3965 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3966 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3975 # Check whether --enable-jbd-debug was given.
3976 if test "${enable_jbd_debug+set}" = set; then
3977 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3979 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3980 echo "${ECHO_T}Disabling journal debugging" >&6; }
3982 cat >>confdefs.h <<\_ACEOF
3983 #define CONFIG_JBD_DEBUG 1
3986 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3987 echo "${ECHO_T}Enabling journal debugging" >&6; }
3991 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3992 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3996 # Check whether --enable-blkid-debug was given.
3997 if test "${enable_blkid_debug+set}" = set; then
3998 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4000 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4001 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4003 cat >>confdefs.h <<\_ACEOF
4004 #define CONFIG_BLKID_DEBUG 1
4007 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4008 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4012 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4013 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4017 # Check whether --enable-testio-debug was given.
4018 if test "${enable_testio_debug+set}" = set; then
4019 enableval=$enable_testio_debug; if test "$enableval" = "no"
4021 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4022 echo "${ECHO_T}Disabling testio debugging" >&6; }
4024 cat >>confdefs.h <<\_ACEOF
4025 #define CONFIG_TESTIO_DEBUG 1
4028 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4029 echo "${ECHO_T}Enabling testio debugging" >&6; }
4033 { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5
4034 echo "${ECHO_T}Disabling testio debugging by default" >&6; }
4038 # Check whether --enable-debugfs was given.
4039 if test "${enable_debugfs+set}" = set; then
4040 enableval=$enable_debugfs; if test "$enableval" = "no"
4042 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4043 echo "${ECHO_T}Disabling debugfs support" >&6; }
4047 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4048 echo "${ECHO_T}Enabling debugfs support" >&6; }
4052 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4053 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4059 # Check whether --enable-imager was given.
4060 if test "${enable_imager+set}" = set; then
4061 enableval=$enable_imager; if test "$enableval" = "no"
4063 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4064 echo "${ECHO_T}Disabling e2image support" >&6; }
4068 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4069 echo "${ECHO_T}Enabling e2image support" >&6; }
4073 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4074 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4080 # Check whether --enable-resizer was given.
4081 if test "${enable_resizer+set}" = set; then
4082 enableval=$enable_resizer; if test "$enableval" = "no"
4084 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4085 echo "${ECHO_T}Disabling e2resize support" >&6; }
4089 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4090 echo "${ECHO_T}Enabling e2resize support" >&6; }
4094 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4095 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4101 # Check whether --enable-fsck was given.
4102 if test "${enable_fsck+set}" = set; then
4103 enableval=$enable_fsck; if test "$enableval" = "no"
4105 FSCK_PROG='' FSCK_MAN=''
4106 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4107 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4109 FSCK_PROG=fsck FSCK_MAN=fsck.8
4110 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4111 echo "${ECHO_T}Building fsck wrapper" >&6; }
4117 FSCK_PROG='' FSCK_MAN=''
4118 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4119 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4122 FSCK_PROG=fsck FSCK_MAN=fsck.8
4123 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4124 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4131 # Check whether --enable-e2initrd-helper was given.
4132 if test "${enable_e2initrd_helper+set}" = set; then
4133 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4135 E2INITRD_PROG='' E2INITRD_MAN=''
4136 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4137 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4139 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4140 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4141 echo "${ECHO_T}Building e2initrd helper" >&6; }
4145 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4146 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4147 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4153 STATIC_BLKID_DEVMAPPER_LIBS=''
4154 # Check whether --enable-blkid-devmapper was given.
4155 if test "${enable_blkid_devmapper+set}" = set; then
4156 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4158 { echo "$as_me:$LINENO: result: Disabling device-mapper support" >&5
4159 echo "${ECHO_T}Disabling device-mapper support" >&6; }
4162 STATIC_DEVMAPPER_LIBS=''
4164 cat >>confdefs.h <<\_ACEOF
4165 #define HAVE_DEVMAPPER 1
4168 { echo "$as_me:$LINENO: result: Enabling device-mapper support" >&5
4169 echo "${ECHO_T}Enabling device-mapper support" >&6; }
4173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4179 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir=.
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4206 if test -n "$PKG_CONFIG"; then
4207 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4208 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4210 { echo "$as_me:$LINENO: result: no" >&5
4211 echo "${ECHO_T}no" >&6; }
4216 if test -z "$ac_cv_path_PKG_CONFIG"; then
4217 ac_pt_PKG_CONFIG=$PKG_CONFIG
4218 # Extract the first word of "pkg-config", so it can be a program name with args.
4219 set dummy pkg-config; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 case $ac_pt_PKG_CONFIG in
4227 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4249 if test -n "$ac_pt_PKG_CONFIG"; then
4250 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4251 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4253 { echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6; }
4257 if test "x$ac_pt_PKG_CONFIG" = x; then
4260 case $cross_compiling:$ac_tool_warned in
4262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4263 whose name does not start with the host triplet. If you think this
4264 configuration is useful to you, please write to autoconf@gnu.org." >&5
4265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4266 whose name does not start with the host triplet. If you think this
4267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4268 ac_tool_warned=yes ;;
4270 PKG_CONFIG=$ac_pt_PKG_CONFIG
4273 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4277 if test -n "$PKG_CONFIG"; then
4278 _pkg_min_version=0.9.0
4279 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4280 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4281 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4282 { echo "$as_me:$LINENO: result: yes" >&5
4283 echo "${ECHO_T}yes" >&6; }
4285 { echo "$as_me:$LINENO: result: no" >&5
4286 echo "${ECHO_T}no" >&6; }
4292 if test -z "$PKG_CONFIG"; then
4293 { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4294 echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4295 { (exit 1); exit 1; }; }
4298 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4299 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4300 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 ac_check_lib_save_LIBS=$LIBS
4304 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4312 /* Override any GCC internal prototype to avoid an error.
4313 Use char because int might match the return type of a GCC
4314 builtin and then its argument prototype would still apply. */
4318 char dm_tree_create ();
4322 return dm_tree_create ();
4327 rm -f conftest.$ac_objext conftest$ac_exeext
4328 if { (ac_try="$ac_link"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } && {
4341 test -z "$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 } && test -s conftest$ac_exeext &&
4344 $as_test_x conftest$ac_exeext; then
4345 ac_cv_lib_devmapper_dm_tree_create=yes
4347 echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 ac_cv_lib_devmapper_dm_tree_create=no
4353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4354 conftest$ac_exeext conftest.$ac_ext
4355 LIBS=$ac_check_lib_save_LIBS
4357 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4358 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4359 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4360 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4361 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4362 DEVMAPPER_REQ="devmapper";
4363 DEVMAPPER_PC_LIBS="-ldevmapper"
4365 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4366 echo "$as_me: error: device-mapper library not found" >&2;}
4367 { (exit 1); exit 1; }; }
4370 # work around stupid devmapper.pc bug in Debian
4371 case "$STATIC_DEVMAPPER_LIBS" in
4375 { echo "$as_me:$LINENO: WARNING: Working around Debian bug 390243..." >&5
4376 echo "$as_me: WARNING: Working around Debian bug 390243..." >&2;}
4377 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4380 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4381 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4382 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4387 { echo "$as_me:$LINENO: result: Disabling device-mapper support by default" >&5
4388 echo "${ECHO_T}Disabling device-mapper support by default" >&6; }
4397 # Check whether --enable-tls was given.
4398 if test "${enable_tls+set}" = set; then
4399 enableval=$enable_tls; if test "$enableval" = "no"
4402 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4403 echo "${ECHO_T}Disabling thread local support" >&6; }
4406 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4407 echo "${ECHO_T}Enabling thread local support" >&6; }
4411 if test -n "$WITH_DIET_LIBC"
4414 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4415 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4418 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4419 echo "${ECHO_T}Try using thread local support by default" >&6; }
4424 if test "$try_tls" = "yes"
4427 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4428 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4429 if test "${ac_cv_tls+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 ax_tls_keywords="__thread __declspec(thread) none"
4434 for ax_tls_keyword in $ax_tls_keywords; do
4435 case $ax_tls_keyword in
4436 none) ac_cv_tls=none ; break ;;
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4447 static $ax_tls_keyword int bar;
4458 rm -f conftest.$ac_objext
4459 if { (ac_try="$ac_compile"
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_cv_tls=$ax_tls_keyword ; break
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 if test "$ac_cv_tls" != "none"; then
4493 cat >>confdefs.h <<_ACEOF
4494 #define TLS $ac_cv_tls
4498 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4499 echo "${ECHO_T}$ac_cv_tls" >&6; }
4502 # Check whether --enable-uuidd was given.
4503 if test "${enable_uuidd+set}" = set; then
4504 enableval=$enable_uuidd; if test "$enableval" = "no"
4506 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4507 echo "${ECHO_T}Not building uuidd" >&6; }
4510 cat >>confdefs.h <<\_ACEOF
4515 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4516 echo "${ECHO_T}Building uuidd" >&6; }
4520 cat >>confdefs.h <<\_ACEOF
4525 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4526 echo "${ECHO_T}Building uuidd by default" >&6; }
4531 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4533 GETTEXT_PACKAGE=e2fsprogs
4535 VERSION="$E2FSPROGS_VERSION"
4537 cat >>confdefs.h <<_ACEOF
4538 #define PACKAGE "$PACKAGE"
4541 cat >>confdefs.h <<_ACEOF
4542 #define VERSION "$VERSION"
4549 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4550 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4551 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4552 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 cat >conftest.make <<\_ACEOF
4558 @echo '@@@%%%=$(MAKE)=@@@%%%'
4560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4561 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4563 eval ac_cv_prog_make_${ac_make}_set=yes;;
4565 eval ac_cv_prog_make_${ac_make}_set=no;;
4569 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4570 { echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6; }
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4576 SET_MAKE="MAKE=${MAKE-make}"
4579 # Find a good install program. We prefer a C program (faster),
4580 # so one script is as good as another. But avoid the broken or
4581 # incompatible versions:
4582 # SysV /etc/install, /usr/sbin/install
4583 # SunOS /usr/etc/install
4584 # IRIX /sbin/install
4586 # AmigaOS /C/install, which installs bootblocks on floppy discs
4587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4590 # OS/2's system install, which has a completely different semantic
4591 # ./install, which can be erroneously created by make from ./install.sh.
4592 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4594 if test -z "$INSTALL"; then
4595 if test "${ac_cv_path_install+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 # Account for people who put trailing slashes in PATH elements.
4605 ./ | .// | /cC/* | \
4606 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4607 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4610 # OSF1 and SCO ODT 3.0 have their own names for install.
4611 # Don't use installbsd from OSF since it installs stuff as root
4613 for ac_prog in ginstall scoinst install; do
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4616 if test $ac_prog = install &&
4617 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4618 # AIX install. It has an incompatible calling convention.
4620 elif test $ac_prog = install &&
4621 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4622 # program-specific install script used by HP pwplus--don't use.
4625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4638 if test "${ac_cv_path_install+set}" = set; then
4639 INSTALL=$ac_cv_path_install
4641 # As a last resort, use the slow shell script. Don't cache a
4642 # value for INSTALL within a source directory, because that will
4643 # break other packages using the cache if that directory is
4644 # removed, or if the value is a relative name.
4645 INSTALL=$ac_install_sh
4648 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4649 echo "${ECHO_T}$INSTALL" >&6; }
4651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4652 # It thinks the first close brace ends the variable substitution.
4653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4661 if test -n "$ac_aux_dir"; then
4662 case "$ac_aux_dir" in
4663 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4664 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4667 if test -z "$MKINSTALLDIRS"; then
4668 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4673 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4674 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4675 # Check whether --enable-nls was given.
4676 if test "${enable_nls+set}" = set; then
4677 enableval=$enable_nls; USE_NLS=$enableval
4682 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4683 echo "${ECHO_T}$USE_NLS" >&6; }
4690 # Prepare PATH_SEPARATOR.
4691 # The user is always right.
4692 if test "${PATH_SEPARATOR+set}" != set; then
4693 echo "#! /bin/sh" >conf$$.sh
4694 echo "exit 0" >>conf$$.sh
4696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4704 # Find out how to test for executable files. Don't use a zero-byte file,
4705 # as systems may use methods other than mode bits to determine executability.
4706 cat >conf$$.file <<_ASEOF
4710 chmod +x conf$$.file
4711 if test -x conf$$.file >/dev/null 2>&1; then
4712 ac_executable_p="test -x"
4714 ac_executable_p="test -f"
4718 # Extract the first word of "msgfmt", so it can be a program name with args.
4719 set dummy msgfmt; ac_word=$2
4720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4722 if test "${ac_cv_path_MSGFMT+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4730 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4731 for ac_dir in $PATH; do
4733 test -z "$ac_dir" && ac_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4736 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4737 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4738 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4745 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4749 MSGFMT="$ac_cv_path_MSGFMT"
4750 if test "$MSGFMT" != ":"; then
4751 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4752 echo "${ECHO_T}$MSGFMT" >&6; }
4754 { echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6; }
4758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4759 set dummy gmsgfmt; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4789 GMSGFMT=$ac_cv_path_GMSGFMT
4790 if test -n "$GMSGFMT"; then
4791 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4792 echo "${ECHO_T}$GMSGFMT" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4801 # Prepare PATH_SEPARATOR.
4802 # The user is always right.
4803 if test "${PATH_SEPARATOR+set}" != set; then
4804 echo "#! /bin/sh" >conf$$.sh
4805 echo "exit 0" >>conf$$.sh
4807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4815 # Find out how to test for executable files. Don't use a zero-byte file,
4816 # as systems may use methods other than mode bits to determine executability.
4817 cat >conf$$.file <<_ASEOF
4821 chmod +x conf$$.file
4822 if test -x conf$$.file >/dev/null 2>&1; then
4823 ac_executable_p="test -x"
4825 ac_executable_p="test -f"
4829 # Extract the first word of "xgettext", so it can be a program name with args.
4830 set dummy xgettext; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4842 for ac_dir in $PATH; do
4844 test -z "$ac_dir" && ac_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4847 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4848 (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
4849 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4856 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4860 XGETTEXT="$ac_cv_path_XGETTEXT"
4861 if test "$XGETTEXT" != ":"; then
4862 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4863 echo "${ECHO_T}$XGETTEXT" >&6; }
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875 echo "#! /bin/sh" >conf$$.sh
4876 echo "exit 0" >>conf$$.sh
4878 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894 ac_executable_p="test -x"
4896 ac_executable_p="test -f"
4900 # Extract the first word of "msgmerge", so it can be a program name with args.
4901 set dummy msgmerge; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4912 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913 for ac_dir in $PATH; do
4915 test -z "$ac_dir" && ac_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4919 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4926 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4930 MSGMERGE="$ac_cv_path_MSGMERGE"
4931 if test "$MSGMERGE" != ":"; then
4932 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4933 echo "${ECHO_T}$MSGMERGE" >&6; }
4935 { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4940 if test "$GMSGFMT" != ":"; then
4941 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4942 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4945 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4946 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4947 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4952 if test "$XGETTEXT" != ":"; then
4953 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4954 (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
4957 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4958 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4964 ac_config_commands="$ac_config_commands default-1"
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test -n "$RANLIB"; then
4976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 RANLIB=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4998 echo "${ECHO_T}$RANLIB" >&6; }
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5006 if test -z "$ac_cv_prog_RANLIB"; then
5007 ac_ct_RANLIB=$RANLIB
5008 # Extract the first word of "ranlib", so it can be a program name with args.
5009 set dummy ranlib; ac_word=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 if test -n "$ac_ct_RANLIB"; then
5016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_ac_ct_RANLIB="ranlib"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5036 if test -n "$ac_ct_RANLIB"; then
5037 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5038 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5040 { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5044 if test "x$ac_ct_RANLIB" = x; then
5047 case $cross_compiling:$ac_tool_warned in
5049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet. If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&5
5052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5053 whose name does not start with the host triplet. If you think this
5054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5055 ac_tool_warned=yes ;;
5057 RANLIB=$ac_ct_RANLIB
5060 RANLIB="$ac_cv_prog_RANLIB"
5064 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5065 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5066 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_check_lib_save_LIBS=$LIBS
5070 LIBS="-lcposix $LIBS"
5071 cat >conftest.$ac_ext <<_ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5078 /* Override any GCC internal prototype to avoid an error.
5079 Use char because int might match the return type of a GCC
5080 builtin and then its argument prototype would still apply. */
5093 rm -f conftest.$ac_objext conftest$ac_exeext
5094 if { (ac_try="$ac_link"
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100 (eval "$ac_link") 2>conftest.er1
5102 grep -v '^ *+' conftest.er1 >conftest.err
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } && {
5107 test -z "$ac_c_werror_flag" ||
5108 test ! -s conftest.err
5109 } && test -s conftest$ac_exeext &&
5110 $as_test_x conftest$ac_exeext; then
5111 ac_cv_lib_cposix_strerror=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_cv_lib_cposix_strerror=no
5119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5120 conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5123 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5124 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5125 if test $ac_cv_lib_cposix_strerror = yes; then
5126 LIBS="$LIBS -lcposix"
5131 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5132 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5133 if test "${ac_cv_c_const+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5146 /* FIXME: Include the comments suggested by Paul. */
5148 /* Ultrix mips cc rejects this. */
5149 typedef int charset[2];
5151 /* SunOS 4.1.1 cc rejects this. */
5152 char const *const *pcpcc;
5154 /* NEC SVR4.0.2 mips cc rejects this. */
5155 struct point {int x, y;};
5156 static struct point const zero = {0,0};
5157 /* AIX XL C 1.02.0.0 rejects this.
5158 It does not let you subtract one const X* pointer from another in
5159 an arm of an if-expression whose if-part is not a constant
5161 const char *g = "string";
5162 pcpcc = &g + (g ? g-g : 0);
5163 /* HPUX 7.0 cc rejects these. */
5165 ppc = (char**) pcpcc;
5166 pcpcc = (char const *const *) ppc;
5167 { /* SCO 3.2v4 cc rejects this. */
5169 char const *s = 0 ? (char *) 0 : (char const *) 0;
5174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5176 const int *foo = &x[0];
5179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5180 typedef const int *iptr;
5184 { /* AIX XL C 1.02.0.0 rejects this saying
5185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5186 struct s { int j; const int *ap[3]; };
5187 struct s *b; b->j = 5;
5189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5193 return !cs[0] && !zero.x;
5200 rm -f conftest.$ac_objext
5201 if { (ac_try="$ac_compile"
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_compile") 2>conftest.er1
5209 grep -v '^ *+' conftest.er1 >conftest.err
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest.$ac_objext; then
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5228 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5229 if test $ac_cv_c_const = no; then
5231 cat >>confdefs.h <<\_ACEOF
5238 { echo "$as_me:$LINENO: checking for signed" >&5
5239 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5240 if test "${bh_cv_c_signed+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest.$ac_objext; then
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5286 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5287 if test $bh_cv_c_signed = no; then
5289 cat >>confdefs.h <<\_ACEOF
5295 { echo "$as_me:$LINENO: checking for inline" >&5
5296 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5297 if test "${ac_cv_c_inline+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 for ac_kw in inline __inline__ __inline; do
5302 cat >conftest.$ac_ext <<_ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5310 static $ac_kw foo_t static_foo () {return 0; }
5311 $ac_kw foo_t foo () {return 0; }
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_compile") 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } && {
5329 test -z "$ac_c_werror_flag" ||
5330 test ! -s conftest.err
5331 } && test -s conftest.$ac_objext; then
5332 ac_cv_c_inline=$ac_kw
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 test "$ac_cv_c_inline" != no && break
5345 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5346 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5349 case $ac_cv_c_inline in
5352 case $ac_cv_c_inline in
5354 *) ac_val=$ac_cv_c_inline;;
5356 cat >>confdefs.h <<_ACEOF
5358 #define inline $ac_val
5364 { echo "$as_me:$LINENO: checking for off_t" >&5
5365 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5366 if test "${ac_cv_type_off_t+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5375 $ac_includes_default
5376 typedef off_t ac__type_new_;
5380 if ((ac__type_new_ *) 0)
5382 if (sizeof (ac__type_new_))
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5405 ac_cv_type_off_t=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5416 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5417 if test $ac_cv_type_off_t = yes; then
5421 cat >>confdefs.h <<_ACEOF
5422 #define off_t long int
5427 { echo "$as_me:$LINENO: checking for size_t" >&5
5428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5429 if test "${ac_cv_type_size_t+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 typedef size_t ac__type_new_;
5443 if ((ac__type_new_ *) 0)
5445 if (sizeof (ac__type_new_))
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_compile") 2>conftest.er1
5460 grep -v '^ *+' conftest.er1 >conftest.err
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } && {
5465 test -z "$ac_c_werror_flag" ||
5466 test ! -s conftest.err
5467 } && test -s conftest.$ac_objext; then
5468 ac_cv_type_size_t=yes
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_cv_type_size_t=no
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5479 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5480 if test $ac_cv_type_size_t = yes; then
5484 cat >>confdefs.h <<_ACEOF
5485 #define size_t unsigned int
5491 { echo "$as_me:$LINENO: checking for long long" >&5
5492 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5493 if test "${ac_cv_type_long_long+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 long long ll = 1LL; int i = 63;
5506 long long llmax = (long long) -1;
5507 return ll << i | ll >> i | llmax / ll | llmax % ll;
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (ac_try="$ac_link"
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_link") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest$ac_exeext &&
5529 $as_test_x conftest$ac_exeext; then
5530 ac_cv_type_long_long=yes
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 ac_cv_type_long_long=no
5538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5539 conftest$ac_exeext conftest.$ac_ext
5541 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5542 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5543 if test $ac_cv_type_long_long = yes; then
5545 cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_LONG_LONG 1
5552 { echo "$as_me:$LINENO: checking for long double" >&5
5553 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5554 if test "${gt_cv_c_long_double+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5557 if test "$GCC" = yes; then
5558 gt_cv_c_long_double=yes
5560 cat >conftest.$ac_ext <<_ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h. */
5567 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5568 long double foo = 0.0;
5569 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5570 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 gt_cv_c_long_double=yes
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 gt_cv_c_long_double=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5609 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5610 if test $gt_cv_c_long_double = yes; then
5612 cat >>confdefs.h <<\_ACEOF
5613 #define HAVE_LONG_DOUBLE 1
5619 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5620 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5621 if test "${gt_cv_c_wchar_t+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 cat >conftest.$ac_ext <<_ACEOF
5627 cat confdefs.h >>conftest.$ac_ext
5628 cat >>conftest.$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5631 wchar_t foo = (wchar_t)'\0';
5640 rm -f conftest.$ac_objext
5641 if { (ac_try="$ac_compile"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compile") 2>conftest.er1
5649 grep -v '^ *+' conftest.er1 >conftest.err
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } && {
5654 test -z "$ac_c_werror_flag" ||
5655 test ! -s conftest.err
5656 } && test -s conftest.$ac_objext; then
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5668 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5669 if test $gt_cv_c_wchar_t = yes; then
5671 cat >>confdefs.h <<\_ACEOF
5672 #define HAVE_WCHAR_T 1
5678 { echo "$as_me:$LINENO: checking for wint_t" >&5
5679 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5680 if test "${gt_cv_c_wint_t+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5690 wint_t foo = (wchar_t)'\0';
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } && {
5713 test -z "$ac_c_werror_flag" ||
5714 test ! -s conftest.err
5715 } && test -s conftest.$ac_objext; then
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5727 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5728 if test $gt_cv_c_wint_t = yes; then
5730 cat >>confdefs.h <<\_ACEOF
5731 #define HAVE_WINT_T 1
5737 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5738 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5739 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 cat >conftest.$ac_ext <<_ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 #include <inttypes.h>
5753 uintmax_t i = (uintmax_t) -1;
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5767 grep -v '^ *+' conftest.er1 >conftest.err
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } && {
5772 test -z "$ac_c_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
5775 jm_ac_cv_header_inttypes_h=yes
5777 echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5780 jm_ac_cv_header_inttypes_h=no
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5786 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5787 if test $jm_ac_cv_header_inttypes_h = yes; then
5789 cat >>confdefs.h <<_ACEOF
5790 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5796 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5797 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5798 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 cat >conftest.$ac_ext <<_ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <sys/types.h>
5812 uintmax_t i = (uintmax_t) -1;
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5826 grep -v '^ *+' conftest.er1 >conftest.err
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.$ac_objext; then
5834 jm_ac_cv_header_stdint_h=yes
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.$ac_ext >&5
5839 jm_ac_cv_header_stdint_h=no
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5845 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5846 if test $jm_ac_cv_header_stdint_h = yes; then
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_STDINT_H_WITH_UINTMAX 1
5857 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5858 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5859 if test "${gt_cv_c_intmax_t+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5871 #if HAVE_STDINT_H_WITH_UINTMAX
5874 #if HAVE_INTTYPES_H_WITH_UINTMAX
5875 #include <inttypes.h>
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 gt_cv_c_intmax_t=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5914 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5915 if test $gt_cv_c_intmax_t = yes; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_INTMAX_T 1
5925 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5926 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5927 if test "${gt_cv_func_printf_posix+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 if test "$cross_compiling" = yes; then
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5940 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "notposix" >/dev/null 2>&1; then
5947 gt_cv_func_printf_posix="guessing no"
5949 gt_cv_func_printf_posix="guessing yes"
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5964 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5965 dollar expansion (possibly an autoconf bug). */
5966 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5967 static char buf[100];
5970 sprintf (buf, format, 33, 55);
5971 return (strcmp (buf, "55 33") != 0);
5974 rm -f conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 gt_cv_func_printf_posix=yes
5996 echo "$as_me: program exited with status $ac_status" >&5
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6001 gt_cv_func_printf_posix=no
6003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6009 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6010 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6011 case $gt_cv_func_printf_posix in
6014 cat >>confdefs.h <<\_ACEOF
6015 #define HAVE_POSIX_PRINTF 1
6021 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6022 # for constant arguments. Useless!
6023 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6024 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6025 if test "${ac_cv_working_alloca_h+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6038 char *p = (char *) alloca (2 * sizeof (int));
6044 rm -f conftest.$ac_objext conftest$ac_exeext
6045 if { (ac_try="$ac_link"
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_link") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest$ac_exeext &&
6061 $as_test_x conftest$ac_exeext; then
6062 ac_cv_working_alloca_h=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_cv_working_alloca_h=no
6070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6071 conftest$ac_exeext conftest.$ac_ext
6073 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6074 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6075 if test $ac_cv_working_alloca_h = yes; then
6077 cat >>confdefs.h <<\_ACEOF
6078 #define HAVE_ALLOCA_H 1
6083 { echo "$as_me:$LINENO: checking for alloca" >&5
6084 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6085 if test "${ac_cv_func_alloca_works+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6095 # define alloca __builtin_alloca
6098 # include <malloc.h>
6099 # define alloca _alloca
6101 # ifdef HAVE_ALLOCA_H
6102 # include <alloca.h>
6107 # ifndef alloca /* predefined by HP cc +Olibcalls */
6118 char *p = (char *) alloca (1);
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (ac_try="$ac_link"
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_link") 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest$ac_exeext &&
6141 $as_test_x conftest$ac_exeext; then
6142 ac_cv_func_alloca_works=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_func_alloca_works=no
6150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6151 conftest$ac_exeext conftest.$ac_ext
6153 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6154 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6156 if test $ac_cv_func_alloca_works = yes; then
6158 cat >>confdefs.h <<\_ACEOF
6159 #define HAVE_ALLOCA 1
6163 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6164 # that cause trouble. Some versions do not even contain alloca or
6165 # contain a buggy version. If you still want to use their alloca,
6166 # use ar to extract alloca.o from them instead of compiling alloca.c.
6168 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6170 cat >>confdefs.h <<\_ACEOF
6175 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6176 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6177 if test "${ac_cv_os_cray+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #if defined CRAY && ! defined CRAY2
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 $EGREP "webecray" >/dev/null 2>&1; then
6202 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6203 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6204 if test $ac_cv_os_cray = yes; then
6205 for ac_func in _getb67 GETB67 getb67; do
6206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6220 #define $ac_func innocuous_$ac_func
6222 /* System header to define __stub macros and hopefully few prototypes,
6223 which can conflict with char $ac_func (); below.
6224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225 <limits.h> exists even on freestanding compilers. */
6228 # include <limits.h>
6230 # include <assert.h>
6235 /* Override any GCC internal prototype to avoid an error.
6236 Use char because int might match the return type of a GCC
6237 builtin and then its argument prototype would still apply. */
6242 /* The GNU C library defines this for functions which it implements
6243 to always fail with ENOSYS. Some functions are actually named
6244 something starting with __ and the normal name is an alias. */
6245 #if defined __stub_$ac_func || defined __stub___$ac_func
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (ac_try="$ac_link"
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_link") 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest$ac_exeext &&
6274 $as_test_x conftest$ac_exeext; then
6275 eval "$as_ac_var=yes"
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 eval "$as_ac_var=no"
6283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6284 conftest$ac_exeext conftest.$ac_ext
6286 ac_res=`eval echo '${'$as_ac_var'}'`
6287 { echo "$as_me:$LINENO: result: $ac_res" >&5
6288 echo "${ECHO_T}$ac_res" >&6; }
6289 if test `eval echo '${'$as_ac_var'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292 #define CRAY_STACKSEG_END $ac_func
6301 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6302 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6303 if test "${ac_cv_c_stack_direction+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 if test "$cross_compiling" = yes; then
6307 ac_cv_c_stack_direction=0
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 $ac_includes_default
6317 find_stack_direction ()
6319 static char *addr = 0;
6324 return find_stack_direction ();
6327 return (&dummy > addr) ? 1 : -1;
6333 return find_stack_direction () < 0;
6336 rm -f conftest$ac_exeext
6337 if { (ac_try="$ac_link"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_link") 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_c_stack_direction=1
6358 echo "$as_me: program exited with status $ac_status" >&5
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6363 ac_cv_c_stack_direction=-1
6365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6370 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6371 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6373 cat >>confdefs.h <<_ACEOF
6374 #define STACK_DIRECTION $ac_cv_c_stack_direction
6382 for ac_header in stdlib.h unistd.h
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 ac_res=`eval echo '${'$as_ac_Header'}'`
6392 { echo "$as_me:$LINENO: result: $ac_res" >&5
6393 echo "${ECHO_T}$ac_res" >&6; }
6395 # Is the header compilable?
6396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6404 $ac_includes_default
6405 #include <$ac_header>
6407 rm -f conftest.$ac_objext
6408 if { (ac_try="$ac_compile"
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compile") 2>conftest.er1
6416 grep -v '^ *+' conftest.er1 >conftest.err
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } && {
6421 test -z "$ac_c_werror_flag" ||
6422 test ! -s conftest.err
6423 } && test -s conftest.$ac_objext; then
6424 ac_header_compiler=yes
6426 echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.$ac_ext >&5
6429 ac_header_compiler=no
6432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6434 echo "${ECHO_T}$ac_header_compiler" >&6; }
6436 # Is the header present?
6437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 #include <$ac_header>
6447 if { (ac_try="$ac_cpp conftest.$ac_ext"
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } >/dev/null && {
6460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6463 ac_header_preproc=yes
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 ac_header_preproc=no
6471 rm -f conftest.err conftest.$ac_ext
6472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6473 echo "${ECHO_T}$ac_header_preproc" >&6; }
6475 # So? What about this header?
6476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6482 ac_header_preproc=yes
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 eval "$as_ac_Header=\$ac_header_preproc"
6507 ac_res=`eval echo '${'$as_ac_Header'}'`
6508 { echo "$as_me:$LINENO: result: $ac_res" >&5
6509 echo "${ECHO_T}$ac_res" >&6; }
6512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6522 for ac_func in getpagesize
6524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6538 #define $ac_func innocuous_$ac_func
6540 /* System header to define __stub macros and hopefully few prototypes,
6541 which can conflict with char $ac_func (); below.
6542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6543 <limits.h> exists even on freestanding compilers. */
6546 # include <limits.h>
6548 # include <assert.h>
6553 /* Override any GCC internal prototype to avoid an error.
6554 Use char because int might match the return type of a GCC
6555 builtin and then its argument prototype would still apply. */
6560 /* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
6563 #if defined __stub_$ac_func || defined __stub___$ac_func
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (ac_try="$ac_link"
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_link") 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest$ac_exeext &&
6592 $as_test_x conftest$ac_exeext; then
6593 eval "$as_ac_var=yes"
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6598 eval "$as_ac_var=no"
6601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6602 conftest$ac_exeext conftest.$ac_ext
6604 ac_res=`eval echo '${'$as_ac_var'}'`
6605 { echo "$as_me:$LINENO: result: $ac_res" >&5
6606 echo "${ECHO_T}$ac_res" >&6; }
6607 if test `eval echo '${'$as_ac_var'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6615 { echo "$as_me:$LINENO: checking for working mmap" >&5
6616 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6617 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 if test "$cross_compiling" = yes; then
6621 ac_cv_func_mmap_fixed_mapped=no
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6630 /* malloc might have been renamed as rpl_malloc. */
6633 /* Thanks to Mike Haertel and Jim Avera for this test.
6634 Here is a matrix of mmap possibilities:
6635 mmap private not fixed
6636 mmap private fixed at somewhere currently unmapped
6637 mmap private fixed at somewhere already mapped
6638 mmap shared not fixed
6639 mmap shared fixed at somewhere currently unmapped
6640 mmap shared fixed at somewhere already mapped
6641 For private mappings, we should verify that changes cannot be read()
6642 back from the file, nor mmap's back from the file at a different
6643 address. (There have been systems where private was not correctly
6644 implemented like the infamous i386 svr4.0, and systems where the
6645 VM page cache was not coherent with the file system buffer cache
6646 like early versions of FreeBSD and possibly contemporary NetBSD.)
6647 For shared mappings, we should conversely verify that changes get
6648 propagated back to all the places they're supposed to be.
6650 Grep wants private fixed already mapped.
6651 The main things grep needs to know about mmap are:
6652 * does it exist and is it safe to write into the mmap'd area
6653 * how to use it (BSD variants) */
6656 #include <sys/mman.h>
6658 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6662 /* This mess was copied from the GNU getpagesize.h. */
6663 #ifndef HAVE_GETPAGESIZE
6664 /* Assume that all systems that can run configure have sys/param.h. */
6665 # ifndef HAVE_SYS_PARAM_H
6666 # define HAVE_SYS_PARAM_H 1
6669 # ifdef _SC_PAGESIZE
6670 # define getpagesize() sysconf(_SC_PAGESIZE)
6671 # else /* no _SC_PAGESIZE */
6672 # ifdef HAVE_SYS_PARAM_H
6673 # include <sys/param.h>
6674 # ifdef EXEC_PAGESIZE
6675 # define getpagesize() EXEC_PAGESIZE
6676 # else /* no EXEC_PAGESIZE */
6678 # define getpagesize() NBPG * CLSIZE
6681 # endif /* no CLSIZE */
6682 # else /* no NBPG */
6684 # define getpagesize() NBPC
6685 # else /* no NBPC */
6687 # define getpagesize() PAGESIZE
6688 # endif /* PAGESIZE */
6689 # endif /* no NBPC */
6690 # endif /* no NBPG */
6691 # endif /* no EXEC_PAGESIZE */
6692 # else /* no HAVE_SYS_PARAM_H */
6693 # define getpagesize() 8192 /* punt totally */
6694 # endif /* no HAVE_SYS_PARAM_H */
6695 # endif /* no _SC_PAGESIZE */
6697 #endif /* no HAVE_GETPAGESIZE */
6702 char *data, *data2, *data3;
6706 pagesize = getpagesize ();
6708 /* First, make a file with some known garbage in it. */
6709 data = (char *) malloc (pagesize);
6712 for (i = 0; i < pagesize; ++i)
6713 *(data + i) = rand ();
6715 fd = creat ("conftest.mmap", 0600);
6718 if (write (fd, data, pagesize) != pagesize)
6722 /* Next, try to mmap the file at a fixed address which already has
6723 something else allocated at it. If we can, also make sure that
6724 we see the same garbage. */
6725 fd = open ("conftest.mmap", O_RDWR);
6728 data2 = (char *) malloc (2 * pagesize);
6731 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6732 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6733 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6735 for (i = 0; i < pagesize; ++i)
6736 if (*(data + i) != *(data2 + i))
6739 /* Finally, make sure that changes to the mapped area do not
6740 percolate back to the file as seen by read(). (This is a bug on
6741 some variants of i386 svr4.0.) */
6742 for (i = 0; i < pagesize; ++i)
6743 *(data2 + i) = *(data2 + i) + 1;
6744 data3 = (char *) malloc (pagesize);
6747 if (read (fd, data3, pagesize) != pagesize)
6749 for (i = 0; i < pagesize; ++i)
6750 if (*(data + i) != *(data3 + i))
6756 rm -f conftest$ac_exeext
6757 if { (ac_try="$ac_link"
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_link") 2>&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6767 { (case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_try") 2>&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_func_mmap_fixed_mapped=yes
6778 echo "$as_me: program exited with status $ac_status" >&5
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_func_mmap_fixed_mapped=no
6785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6791 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6792 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6794 cat >>confdefs.h <<\_ACEOF
6802 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6803 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6804 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 cat >conftest.$ac_ext <<_ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6814 #include <features.h>
6815 #ifdef __GNU_LIBRARY__
6816 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6823 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6824 ac_cv_gnu_library_2_1=yes
6826 ac_cv_gnu_library_2_1=no
6833 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6834 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6836 GLIBC21="$ac_cv_gnu_library_2_1"
6841 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6842 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6843 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 if test "$cross_compiling" = yes; then
6849 # Guess based on the CPU.
6851 alpha* | i3456786 | m68k | s390*)
6852 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6854 gt_cv_int_divbyzero_sigfpe="guessing no";;
6858 cat >conftest.$ac_ext <<_ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6870 sigfpe_handler (int sig)
6872 sigfpe_handler (sig) int sig;
6875 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6876 exit (sig != SIGFPE);
6886 signal (SIGFPE, sigfpe_handler);
6887 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6888 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6889 signal (SIGTRAP, sigfpe_handler);
6891 /* Linux/SPARC yields signal SIGILL. */
6892 #if defined (__sparc__) && defined (__linux__)
6893 signal (SIGILL, sigfpe_handler);
6902 rm -f conftest$ac_exeext
6903 if { (ac_try="$ac_link"
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909 (eval "$ac_link") 2>&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6913 { (case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_try") 2>&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 gt_cv_int_divbyzero_sigfpe=yes
6924 echo "$as_me: program exited with status $ac_status" >&5
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6929 gt_cv_int_divbyzero_sigfpe=no
6931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6937 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6938 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6939 case "$gt_cv_int_divbyzero_sigfpe" in
6944 cat >>confdefs.h <<_ACEOF
6945 #define INTDIV0_RAISES_SIGFPE $value
6950 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6951 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6952 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 cat >conftest.$ac_ext <<_ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 unsigned long long ull = 1ULL; int i = 63;
6965 unsigned long long ullmax = (unsigned long long) -1;
6966 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (ac_try="$ac_link"
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_link") 2>conftest.er1
6980 grep -v '^ *+' conftest.er1 >conftest.err
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest$ac_exeext &&
6988 $as_test_x conftest$ac_exeext; then
6989 ac_cv_type_unsigned_long_long=yes
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_cv_type_unsigned_long_long=no
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998 conftest$ac_exeext conftest.$ac_ext
7000 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7001 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7002 if test $ac_cv_type_unsigned_long_long = yes; then
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_UNSIGNED_LONG_LONG 1
7013 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7015 test $ac_cv_type_unsigned_long_long = yes \
7016 && ac_type='unsigned long long' \
7017 || ac_type='unsigned long'
7019 cat >>confdefs.h <<_ACEOF
7020 #define uintmax_t $ac_type
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_UINTMAX_T 1
7032 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7033 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7034 if test "${gt_cv_header_inttypes_h+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 #include <sys/types.h>
7045 #include <inttypes.h>
7054 rm -f conftest.$ac_objext
7055 if { (ac_try="$ac_compile"
7057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058 *) ac_try_echo=$ac_try;;
7060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061 (eval "$ac_compile") 2>conftest.er1
7063 grep -v '^ *+' conftest.er1 >conftest.err
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } && {
7068 test -z "$ac_c_werror_flag" ||
7069 test ! -s conftest.err
7070 } && test -s conftest.$ac_objext; then
7071 gt_cv_header_inttypes_h=yes
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7076 gt_cv_header_inttypes_h=no
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7083 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7084 if test $gt_cv_header_inttypes_h = yes; then
7086 cat >>confdefs.h <<_ACEOF
7087 #define HAVE_INTTYPES_H 1
7094 if test $gt_cv_header_inttypes_h = yes; then
7095 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7096 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7097 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 #include <inttypes.h>
7120 rm -f conftest.$ac_objext
7121 if { (ac_try="$ac_compile"
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127 (eval "$ac_compile") 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest.$ac_objext; then
7137 gt_cv_inttypes_pri_broken=no
7139 echo "$as_me: failed program was:" >&5
7140 sed 's/^/| /' conftest.$ac_ext >&5
7142 gt_cv_inttypes_pri_broken=yes
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7149 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7151 if test "$gt_cv_inttypes_pri_broken" = yes; then
7153 cat >>confdefs.h <<_ACEOF
7154 #define PRI_MACROS_BROKEN 1
7161 for ac_header in stdint.h
7163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_res=`eval echo '${'$as_ac_Header'}'`
7171 { echo "$as_me:$LINENO: result: $ac_res" >&5
7172 echo "${ECHO_T}$ac_res" >&6; }
7174 # Is the header compilable?
7175 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7177 cat >conftest.$ac_ext <<_ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7184 #include <$ac_header>
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 ac_header_compiler=yes
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 ac_header_compiler=no
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7213 echo "${ECHO_T}$ac_header_compiler" >&6; }
7215 # Is the header present?
7216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7218 cat >conftest.$ac_ext <<_ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 #include <$ac_header>
7226 if { (ac_try="$ac_cpp conftest.$ac_ext"
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } >/dev/null && {
7239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7242 ac_header_preproc=yes
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_header_preproc=no
7250 rm -f conftest.err conftest.$ac_ext
7251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7252 echo "${ECHO_T}$ac_header_preproc" >&6; }
7254 # So? What about this header?
7255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7258 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7260 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7261 ac_header_preproc=yes
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7269 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7271 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7273 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7275 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 eval "$as_ac_Header=\$ac_header_preproc"
7286 ac_res=`eval echo '${'$as_ac_Header'}'`
7287 { echo "$as_me:$LINENO: result: $ac_res" >&5
7288 echo "${ECHO_T}$ac_res" >&6; }
7291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7292 cat >>confdefs.h <<_ACEOF
7293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7301 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7320 $EGREP "Found it" >/dev/null 2>&1; then
7325 if test -z "$result"; then
7326 if test "$cross_compiling" = yes; then
7327 # Depending upon the size, compute the lo and hi bounds.
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7338 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352 (eval "$ac_compile") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest.$ac_objext; then
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7374 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1 >conftest.err
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_hi=$ac_mid; break
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_lo=`expr $ac_mid + 1`
7404 if test $ac_lo -le $ac_mid; then
7408 ac_mid=`expr 2 '*' $ac_mid + 1`
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7427 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_compile") 2>conftest.er1
7443 grep -v '^ *+' conftest.er1 >conftest.err
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest.$ac_objext; then
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7463 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 ac_lo=$ac_mid; break
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ac_hi=`expr '(' $ac_mid ')' - 1`
7493 if test $ac_mid -le $ac_hi; then
7497 ac_mid=`expr 2 '*' $ac_mid`
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 # Binary search between lo and hi bounds.
7514 while test "x$ac_lo" != "x$ac_hi"; do
7515 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7526 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1 >conftest.err
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_lo=`expr '(' $ac_mid ')' + 1`
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565 cat >conftest.$ac_ext <<_ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7572 static long int longval () { return ~(size_t)0 / 10; }
7573 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7580 FILE *f = fopen ("conftest.val", "w");
7583 if ((~(size_t)0 / 10) < 0)
7585 long int i = longval ();
7586 if (i != (~(size_t)0 / 10))
7588 fprintf (f, "%ld\n", i);
7592 unsigned long int i = ulongval ();
7593 if (i != (~(size_t)0 / 10))
7595 fprintf (f, "%lu\n", i);
7597 return ferror (f) || fclose (f) != 0;
7603 rm -f conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_link") 2>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7614 { (case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_try") 2>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 res_hi=`cat conftest.val`
7625 echo "$as_me: program exited with status $ac_status" >&5
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7636 if test "$cross_compiling" = yes; then
7637 # Depending upon the size, compute the lo and hi bounds.
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7648 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7655 rm -f conftest.$ac_objext
7656 if { (ac_try="$ac_compile"
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_compile") 2>conftest.er1
7664 grep -v '^ *+' conftest.er1 >conftest.err
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && {
7669 test -z "$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 } && test -s conftest.$ac_objext; then
7674 cat >conftest.$ac_ext <<_ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7684 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 ac_hi=$ac_mid; break
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7713 ac_lo=`expr $ac_mid + 1`
7714 if test $ac_lo -le $ac_mid; then
7718 ac_mid=`expr 2 '*' $ac_mid + 1`
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7727 cat >conftest.$ac_ext <<_ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7737 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7744 rm -f conftest.$ac_objext
7745 if { (ac_try="$ac_compile"
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_compile") 2>conftest.er1
7753 grep -v '^ *+' conftest.er1 >conftest.err
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest.$ac_objext; then
7763 cat >conftest.$ac_ext <<_ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7773 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7780 rm -f conftest.$ac_objext
7781 if { (ac_try="$ac_compile"
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_compile") 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && {
7794 test -z "$ac_c_werror_flag" ||
7795 test ! -s conftest.err
7796 } && test -s conftest.$ac_objext; then
7797 ac_lo=$ac_mid; break
7799 echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7802 ac_hi=`expr '(' $ac_mid ')' - 1`
7803 if test $ac_mid -le $ac_hi; then
7807 ac_mid=`expr 2 '*' $ac_mid`
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 # Binary search between lo and hi bounds.
7824 while test "x$ac_lo" != "x$ac_hi"; do
7825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7836 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7843 rm -f conftest.$ac_objext
7844 if { (ac_try="$ac_compile"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_compile") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } && {
7857 test -z "$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7859 } && test -s conftest.$ac_objext; then
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_lo=`expr '(' $ac_mid ')' + 1`
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 cat >conftest.$ac_ext <<_ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7882 static long int longval () { return ~(size_t)0 % 10; }
7883 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7890 FILE *f = fopen ("conftest.val", "w");
7893 if ((~(size_t)0 % 10) < 0)
7895 long int i = longval ();
7896 if (i != (~(size_t)0 % 10))
7898 fprintf (f, "%ld\n", i);
7902 unsigned long int i = ulongval ();
7903 if (i != (~(size_t)0 % 10))
7905 fprintf (f, "%lu\n", i);
7907 return ferror (f) || fclose (f) != 0;
7913 rm -f conftest$ac_exeext
7914 if { (ac_try="$ac_link"
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_link") 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7924 { (case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_try") 2>&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 res_lo=`cat conftest.val`
7935 echo "$as_me: program exited with status $ac_status" >&5
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7946 if test "$cross_compiling" = yes; then
7947 # Depending upon the size, compute the lo and hi bounds.
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7958 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
7984 cat >conftest.$ac_ext <<_ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7994 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_hi=$ac_mid; break
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 ac_lo=`expr $ac_mid + 1`
8024 if test $ac_lo -le $ac_mid; then
8028 ac_mid=`expr 2 '*' $ac_mid + 1`
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8047 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8073 cat >conftest.$ac_ext <<_ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8083 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_lo=$ac_mid; break
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_hi=`expr '(' $ac_mid ')' - 1`
8113 if test $ac_mid -le $ac_hi; then
8117 ac_mid=`expr 2 '*' $ac_mid`
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 # Binary search between lo and hi bounds.
8134 while test "x$ac_lo" != "x$ac_hi"; do
8135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8146 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8153 rm -f conftest.$ac_objext
8154 if { (ac_try="$ac_compile"
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_compile") 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } && {
8167 test -z "$ac_c_werror_flag" ||
8168 test ! -s conftest.err
8169 } && test -s conftest.$ac_objext; then
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_lo=`expr '(' $ac_mid ')' + 1`
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 ?*) fits_in_uint=$ac_lo;;
8185 cat >conftest.$ac_ext <<_ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8192 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8193 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8200 FILE *f = fopen ("conftest.val", "w");
8203 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8205 long int i = longval ();
8206 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8208 fprintf (f, "%ld\n", i);
8212 unsigned long int i = ulongval ();
8213 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8215 fprintf (f, "%lu\n", i);
8217 return ferror (f) || fclose (f) != 0;
8223 rm -f conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8234 { (case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_try") 2>&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8243 fits_in_uint=`cat conftest.val`
8245 echo "$as_me: program exited with status $ac_status" >&5
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8256 if test "$fits_in_uint" = 1; then
8257 cat >conftest.$ac_ext <<_ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8265 extern unsigned long foo;
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest.$ac_objext; then
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 if test -z "$result"; then
8303 if test "$fits_in_uint" = 1; then
8304 result="$res_hi$res_lo"U
8306 result="$res_hi$res_lo"UL
8312 { echo "$as_me:$LINENO: result: $result" >&5
8313 echo "${ECHO_T}$result" >&6; }
8314 if test "$result" != yes; then
8316 cat >>confdefs.h <<_ACEOF
8317 #define SIZE_MAX $result
8325 for ac_header in stdint.h
8327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 ac_res=`eval echo '${'$as_ac_Header'}'`
8335 { echo "$as_me:$LINENO: result: $ac_res" >&5
8336 echo "${ECHO_T}$ac_res" >&6; }
8338 # Is the header compilable?
8339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 #include <$ac_header>
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_compile") 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest.$ac_objext; then
8367 ac_header_compiler=yes
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8372 ac_header_compiler=no
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8377 echo "${ECHO_T}$ac_header_compiler" >&6; }
8379 # Is the header present?
8380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8382 cat >conftest.$ac_ext <<_ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 #include <$ac_header>
8390 if { (ac_try="$ac_cpp conftest.$ac_ext"
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev/null && {
8403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8406 ac_header_preproc=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_header_preproc=no
8414 rm -f conftest.err conftest.$ac_ext
8415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416 echo "${ECHO_T}$ac_header_preproc" >&6; }
8418 # So? What about this header?
8419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8425 ac_header_preproc=yes
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 eval "$as_ac_Header=\$ac_header_preproc"
8450 ac_res=`eval echo '${'$as_ac_Header'}'`
8451 { echo "$as_me:$LINENO: result: $ac_res" >&5
8452 echo "${ECHO_T}$ac_res" >&6; }
8455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8466 if test "X$prefix" = "XNONE"; then
8467 acl_final_prefix="$ac_default_prefix"
8469 acl_final_prefix="$prefix"
8471 if test "X$exec_prefix" = "XNONE"; then
8472 acl_final_exec_prefix='${prefix}'
8474 acl_final_exec_prefix="$exec_prefix"
8476 acl_save_prefix="$prefix"
8477 prefix="$acl_final_prefix"
8478 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8479 prefix="$acl_save_prefix"
8482 # Check whether --with-gnu-ld was given.
8483 if test "${with_gnu_ld+set}" = set; then
8484 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8489 # Prepare PATH_SEPARATOR.
8490 # The user is always right.
8491 if test "${PATH_SEPARATOR+set}" != set; then
8492 echo "#! /bin/sh" >conf$$.sh
8493 echo "exit 0" >>conf$$.sh
8495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8503 if test "$GCC" = yes; then
8504 # Check if gcc -print-prog-name=ld gives a path.
8505 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8506 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8509 # gcc leaves a trailing carriage return which upsets mingw
8510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8515 # Accept absolute paths.
8516 [\\/]* | [A-Za-z]:[\\/]*)
8517 re_direlt='/[^/][^/]*/\.\./'
8518 # Canonicalize the path of ld
8519 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8520 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8521 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8523 test -z "$LD" && LD="$ac_prog"
8526 # If it fails, then pretend we aren't using GCC.
8530 # If it is relative, then search for the first ld in PATH.
8534 elif test "$with_gnu_ld" = yes; then
8535 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8536 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8538 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8539 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8541 if test "${acl_cv_path_LD+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 if test -z "$LD"; then
8545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8546 for ac_dir in $PATH; do
8547 test -z "$ac_dir" && ac_dir=.
8548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8549 acl_cv_path_LD="$ac_dir/$ac_prog"
8550 # Check to see if the program is GNU ld. I'd rather use --version,
8551 # but apparently some GNU ld's only accept -v.
8552 # Break only if it was the GNU/non-GNU ld that we prefer.
8553 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8554 *GNU* | *'with BFD'*)
8555 test "$with_gnu_ld" != no && break ;;
8557 test "$with_gnu_ld" != yes && break ;;
8563 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8567 LD="$acl_cv_path_LD"
8568 if test -n "$LD"; then
8569 { echo "$as_me:$LINENO: result: $LD" >&5
8570 echo "${ECHO_T}$LD" >&6; }
8572 { echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6; }
8575 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8576 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8577 { (exit 1); exit 1; }; }
8578 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8580 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8584 case `$LD -v 2>&1 </dev/null` in
8585 *GNU* | *'with BFD'*)
8586 acl_cv_prog_gnu_ld=yes ;;
8588 acl_cv_prog_gnu_ld=no ;;
8591 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8592 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8593 with_gnu_ld=$acl_cv_prog_gnu_ld
8597 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8598 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8599 if test "${acl_cv_rpath+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8604 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8610 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8611 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8613 libext="$acl_cv_libext"
8614 shlibext="$acl_cv_shlibext"
8615 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8616 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8617 hardcode_direct="$acl_cv_hardcode_direct"
8618 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8619 # Check whether --enable-rpath was given.
8620 if test "${enable_rpath+set}" = set; then
8621 enableval=$enable_rpath; :
8635 acl_save_prefix="$prefix"
8636 prefix="$acl_final_prefix"
8637 acl_save_exec_prefix="$exec_prefix"
8638 exec_prefix="$acl_final_exec_prefix"
8640 eval additional_includedir=\"$includedir\"
8641 eval additional_libdir=\"$libdir\"
8643 exec_prefix="$acl_save_exec_prefix"
8644 prefix="$acl_save_prefix"
8647 # Check whether --with-libiconv-prefix was given.
8648 if test "${with_libiconv_prefix+set}" = set; then
8649 withval=$with_libiconv_prefix;
8650 if test "X$withval" = "Xno"; then
8653 if test "X$withval" = "X"; then
8655 acl_save_prefix="$prefix"
8656 prefix="$acl_final_prefix"
8657 acl_save_exec_prefix="$exec_prefix"
8658 exec_prefix="$acl_final_exec_prefix"
8660 eval additional_includedir=\"$includedir\"
8661 eval additional_libdir=\"$libdir\"
8663 exec_prefix="$acl_save_exec_prefix"
8664 prefix="$acl_save_prefix"
8667 additional_includedir="$withval/include"
8668 additional_libdir="$withval/lib"
8679 names_already_handled=
8680 names_next_round='iconv '
8681 while test -n "$names_next_round"; do
8682 names_this_round="$names_next_round"
8684 for name in $names_this_round; do
8686 for n in $names_already_handled; do
8687 if test "$n" = "$name"; then
8692 if test -z "$already_handled"; then
8693 names_already_handled="$names_already_handled $name"
8694 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8695 eval value=\"\$HAVE_LIB$uppername\"
8696 if test -n "$value"; then
8697 if test "$value" = yes; then
8698 eval value=\"\$LIB$uppername\"
8699 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8700 eval value=\"\$LTLIB$uppername\"
8701 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8710 if test $use_additional = yes; then
8711 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8712 found_dir="$additional_libdir"
8713 found_so="$additional_libdir/lib$name.$shlibext"
8714 if test -f "$additional_libdir/lib$name.la"; then
8715 found_la="$additional_libdir/lib$name.la"
8718 if test -f "$additional_libdir/lib$name.$libext"; then
8719 found_dir="$additional_libdir"
8720 found_a="$additional_libdir/lib$name.$libext"
8721 if test -f "$additional_libdir/lib$name.la"; then
8722 found_la="$additional_libdir/lib$name.la"
8727 if test "X$found_dir" = "X"; then
8728 for x in $LDFLAGS $LTLIBICONV; do
8730 acl_save_prefix="$prefix"
8731 prefix="$acl_final_prefix"
8732 acl_save_exec_prefix="$exec_prefix"
8733 exec_prefix="$acl_final_exec_prefix"
8735 exec_prefix="$acl_save_exec_prefix"
8736 prefix="$acl_save_prefix"
8740 dir=`echo "X$x" | sed -e 's/^X-L//'`
8741 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8743 found_so="$dir/lib$name.$shlibext"
8744 if test -f "$dir/lib$name.la"; then
8745 found_la="$dir/lib$name.la"
8748 if test -f "$dir/lib$name.$libext"; then
8750 found_a="$dir/lib$name.$libext"
8751 if test -f "$dir/lib$name.la"; then
8752 found_la="$dir/lib$name.la"
8758 if test "X$found_dir" != "X"; then
8763 if test "X$found_dir" != "X"; then
8764 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8765 if test "X$found_so" != "X"; then
8766 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8767 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8770 for x in $ltrpathdirs; do
8771 if test "X$x" = "X$found_dir"; then
8776 if test -z "$haveit"; then
8777 ltrpathdirs="$ltrpathdirs $found_dir"
8779 if test "$hardcode_direct" = yes; then
8780 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8782 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8785 for x in $rpathdirs; do
8786 if test "X$x" = "X$found_dir"; then
8791 if test -z "$haveit"; then
8792 rpathdirs="$rpathdirs $found_dir"
8796 for x in $LDFLAGS $LIBICONV; do
8798 acl_save_prefix="$prefix"
8799 prefix="$acl_final_prefix"
8800 acl_save_exec_prefix="$exec_prefix"
8801 exec_prefix="$acl_final_exec_prefix"
8803 exec_prefix="$acl_save_exec_prefix"
8804 prefix="$acl_save_prefix"
8806 if test "X$x" = "X-L$found_dir"; then
8811 if test -z "$haveit"; then
8812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8814 if test "$hardcode_minus_L" != no; then
8815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8817 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8823 if test "X$found_a" != "X"; then
8824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8826 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8829 additional_includedir=
8830 case "$found_dir" in
8832 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8833 additional_includedir="$basedir/include"
8836 if test "X$additional_includedir" != "X"; then
8837 if test "X$additional_includedir" != "X/usr/include"; then
8839 if test "X$additional_includedir" = "X/usr/local/include"; then
8840 if test -n "$GCC"; then
8842 linux*) haveit=yes;;
8846 if test -z "$haveit"; then
8847 for x in $CPPFLAGS $INCICONV; do
8849 acl_save_prefix="$prefix"
8850 prefix="$acl_final_prefix"
8851 acl_save_exec_prefix="$exec_prefix"
8852 exec_prefix="$acl_final_exec_prefix"
8854 exec_prefix="$acl_save_exec_prefix"
8855 prefix="$acl_save_prefix"
8857 if test "X$x" = "X-I$additional_includedir"; then
8862 if test -z "$haveit"; then
8863 if test -d "$additional_includedir"; then
8864 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8870 if test -n "$found_la"; then
8871 save_libdir="$libdir"
8873 */* | *\\*) . "$found_la" ;;
8874 *) . "./$found_la" ;;
8876 libdir="$save_libdir"
8877 for dep in $dependency_libs; do
8880 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8881 if test "X$additional_libdir" != "X/usr/lib"; then
8883 if test "X$additional_libdir" = "X/usr/local/lib"; then
8884 if test -n "$GCC"; then
8886 linux*) haveit=yes;;
8890 if test -z "$haveit"; then
8892 for x in $LDFLAGS $LIBICONV; do
8894 acl_save_prefix="$prefix"
8895 prefix="$acl_final_prefix"
8896 acl_save_exec_prefix="$exec_prefix"
8897 exec_prefix="$acl_final_exec_prefix"
8899 exec_prefix="$acl_save_exec_prefix"
8900 prefix="$acl_save_prefix"
8902 if test "X$x" = "X-L$additional_libdir"; then
8907 if test -z "$haveit"; then
8908 if test -d "$additional_libdir"; then
8909 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8913 for x in $LDFLAGS $LTLIBICONV; do
8915 acl_save_prefix="$prefix"
8916 prefix="$acl_final_prefix"
8917 acl_save_exec_prefix="$exec_prefix"
8918 exec_prefix="$acl_final_exec_prefix"
8920 exec_prefix="$acl_save_exec_prefix"
8921 prefix="$acl_save_prefix"
8923 if test "X$x" = "X-L$additional_libdir"; then
8928 if test -z "$haveit"; then
8929 if test -d "$additional_libdir"; then
8930 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8937 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8938 if test "$enable_rpath" != no; then
8940 for x in $rpathdirs; do
8941 if test "X$x" = "X$dir"; then
8946 if test -z "$haveit"; then
8947 rpathdirs="$rpathdirs $dir"
8950 for x in $ltrpathdirs; do
8951 if test "X$x" = "X$dir"; then
8956 if test -z "$haveit"; then
8957 ltrpathdirs="$ltrpathdirs $dir"
8962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8965 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8968 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8975 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8982 if test "X$rpathdirs" != "X"; then
8983 if test -n "$hardcode_libdir_separator"; then
8985 for found_dir in $rpathdirs; do
8986 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8988 acl_save_libdir="$libdir"
8990 eval flag=\"$hardcode_libdir_flag_spec\"
8991 libdir="$acl_save_libdir"
8992 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8994 for found_dir in $rpathdirs; do
8995 acl_save_libdir="$libdir"
8997 eval flag=\"$hardcode_libdir_flag_spec\"
8998 libdir="$acl_save_libdir"
8999 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9003 if test "X$ltrpathdirs" != "X"; then
9004 for found_dir in $ltrpathdirs; do
9005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9016 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9017 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9018 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 $ac_includes_default
9028 typedef ptrdiff_t ac__type_new_;
9032 if ((ac__type_new_ *) 0)
9034 if (sizeof (ac__type_new_))
9040 rm -f conftest.$ac_objext
9041 if { (ac_try="$ac_compile"
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_compile") 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } && {
9054 test -z "$ac_c_werror_flag" ||
9055 test ! -s conftest.err
9056 } && test -s conftest.$ac_objext; then
9057 ac_cv_type_ptrdiff_t=yes
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9062 ac_cv_type_ptrdiff_t=no
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9067 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9068 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9069 if test $ac_cv_type_ptrdiff_t = yes; then
9073 cat >>confdefs.h <<\_ACEOF
9074 #define ptrdiff_t long
9090 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9091 stdlib.h string.h unistd.h sys/param.h
9093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 ac_res=`eval echo '${'$as_ac_Header'}'`
9101 { echo "$as_me:$LINENO: result: $ac_res" >&5
9102 echo "${ECHO_T}$ac_res" >&6; }
9104 # Is the header compilable?
9105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 $ac_includes_default
9114 #include <$ac_header>
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9133 ac_header_compiler=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_header_compiler=no
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9143 echo "${ECHO_T}$ac_header_compiler" >&6; }
9145 # Is the header present?
9146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9148 cat >conftest.$ac_ext <<_ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 #include <$ac_header>
9156 if { (ac_try="$ac_cpp conftest.$ac_ext"
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9164 grep -v '^ *+' conftest.er1 >conftest.err
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } >/dev/null && {
9169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9172 ac_header_preproc=yes
9174 echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9177 ac_header_preproc=no
9180 rm -f conftest.err conftest.$ac_ext
9181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9182 echo "${ECHO_T}$ac_header_preproc" >&6; }
9184 # So? What about this header?
9185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9191 ac_header_preproc=yes
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 eval "$as_ac_Header=\$ac_header_preproc"
9216 ac_res=`eval echo '${'$as_ac_Header'}'`
9217 { echo "$as_me:$LINENO: result: $ac_res" >&5
9218 echo "${ECHO_T}$ac_res" >&6; }
9221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222 cat >>confdefs.h <<_ACEOF
9223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9254 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9255 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9272 #define $ac_func innocuous_$ac_func
9274 /* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func (); below.
9276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9277 <limits.h> exists even on freestanding compilers. */
9280 # include <limits.h>
9282 # include <assert.h>
9287 /* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9294 /* The GNU C library defines this for functions which it implements
9295 to always fail with ENOSYS. Some functions are actually named
9296 something starting with __ and the normal name is an alias. */
9297 #if defined __stub_$ac_func || defined __stub___$ac_func
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_link") 2>conftest.er1
9318 grep -v '^ *+' conftest.er1 >conftest.err
9320 cat conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest$ac_exeext &&
9326 $as_test_x conftest$ac_exeext; then
9327 eval "$as_ac_var=yes"
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9332 eval "$as_ac_var=no"
9335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9336 conftest$ac_exeext conftest.$ac_ext
9338 ac_res=`eval echo '${'$as_ac_var'}'`
9339 { echo "$as_me:$LINENO: result: $ac_res" >&5
9340 echo "${ECHO_T}$ac_res" >&6; }
9341 if test `eval echo '${'$as_ac_var'}'` = yes; then
9342 cat >>confdefs.h <<_ACEOF
9343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9351 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9352 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9353 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9368 char *p = (char *) _snprintf;
9375 rm -f conftest.$ac_objext
9376 if { (ac_try="$ac_compile"
9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379 *) ac_try_echo=$ac_try;;
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382 (eval "$ac_compile") 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && {
9389 test -z "$ac_c_werror_flag" ||
9390 test ! -s conftest.err
9391 } && test -s conftest.$ac_objext; then
9392 ac_cv_have_decl__snprintf=yes
9394 echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9397 ac_cv_have_decl__snprintf=no
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9403 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9404 if test $ac_cv_have_decl__snprintf = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define HAVE_DECL__SNPRINTF $gt_value
9416 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9417 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9418 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9433 char *p = (char *) _snwprintf;
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_compile") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest.$ac_objext; then
9457 ac_cv_have_decl__snwprintf=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_cv_have_decl__snwprintf=no
9465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9468 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9469 if test $ac_cv_have_decl__snwprintf = yes; then
9475 cat >>confdefs.h <<_ACEOF
9476 #define HAVE_DECL__SNWPRINTF $gt_value
9482 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9483 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9484 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9498 #ifndef feof_unlocked
9499 char *p = (char *) feof_unlocked;
9506 rm -f conftest.$ac_objext
9507 if { (ac_try="$ac_compile"
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_compile") 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest.$ac_objext; then
9523 ac_cv_have_decl_feof_unlocked=yes
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ac_cv_have_decl_feof_unlocked=no
9531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9534 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9535 if test $ac_cv_have_decl_feof_unlocked = yes; then
9541 cat >>confdefs.h <<_ACEOF
9542 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9547 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9548 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9549 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9563 #ifndef fgets_unlocked
9564 char *p = (char *) fgets_unlocked;
9571 rm -f conftest.$ac_objext
9572 if { (ac_try="$ac_compile"
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_compile") 2>conftest.er1
9580 grep -v '^ *+' conftest.er1 >conftest.err
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } && {
9585 test -z "$ac_c_werror_flag" ||
9586 test ! -s conftest.err
9587 } && test -s conftest.$ac_objext; then
9588 ac_cv_have_decl_fgets_unlocked=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_cv_have_decl_fgets_unlocked=no
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9599 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9600 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9606 cat >>confdefs.h <<_ACEOF
9607 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9612 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9613 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9614 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 cat >conftest.$ac_ext <<_ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9628 #ifndef getc_unlocked
9629 char *p = (char *) getc_unlocked;
9636 rm -f conftest.$ac_objext
9637 if { (ac_try="$ac_compile"
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1 >conftest.err
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest.$ac_objext; then
9653 ac_cv_have_decl_getc_unlocked=yes
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 ac_cv_have_decl_getc_unlocked=no
9661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9664 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9665 if test $ac_cv_have_decl_getc_unlocked = yes; then
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9677 case $gt_cv_func_printf_posix in
9678 *yes) HAVE_POSIX_PRINTF=1 ;;
9679 *) HAVE_POSIX_PRINTF=0 ;;
9682 if test "$ac_cv_func_asprintf" = yes; then
9688 if test "$ac_cv_func_snprintf" = yes; then
9694 if test "$ac_cv_func_wprintf" = yes; then
9706 am_save_CPPFLAGS="$CPPFLAGS"
9708 for element in $INCICONV; do
9710 for x in $CPPFLAGS; do
9712 acl_save_prefix="$prefix"
9713 prefix="$acl_final_prefix"
9714 acl_save_exec_prefix="$exec_prefix"
9715 exec_prefix="$acl_final_exec_prefix"
9717 exec_prefix="$acl_save_exec_prefix"
9718 prefix="$acl_save_prefix"
9720 if test "X$x" = "X$element"; then
9725 if test -z "$haveit"; then
9726 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9731 { echo "$as_me:$LINENO: checking for iconv" >&5
9732 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9733 if test "${am_cv_func_iconv+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 am_cv_func_iconv="no, consider installing GNU libiconv"
9739 cat >conftest.$ac_ext <<_ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9750 iconv_t cd = iconv_open("","");
9751 iconv(cd,NULL,NULL,NULL,NULL);
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest$ac_exeext &&
9774 $as_test_x conftest$ac_exeext; then
9775 am_cv_func_iconv=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784 conftest$ac_exeext conftest.$ac_ext
9785 if test "$am_cv_func_iconv" != yes; then
9786 am_save_LIBS="$LIBS"
9787 LIBS="$LIBS $LIBICONV"
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9799 iconv_t cd = iconv_open("","");
9800 iconv(cd,NULL,NULL,NULL,NULL);
9806 rm -f conftest.$ac_objext conftest$ac_exeext
9807 if { (ac_try="$ac_link"
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
9815 grep -v '^ *+' conftest.er1 >conftest.err
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest$ac_exeext &&
9823 $as_test_x conftest$ac_exeext; then
9825 am_cv_func_iconv=yes
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LIBS="$am_save_LIBS"
9839 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9840 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9841 if test "$am_cv_func_iconv" = yes; then
9843 cat >>confdefs.h <<\_ACEOF
9844 #define HAVE_ICONV 1
9848 if test "$am_cv_lib_iconv" = yes; then
9849 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9850 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9851 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9852 echo "${ECHO_T}$LIBICONV" >&6; }
9854 CPPFLAGS="$am_save_CPPFLAGS"
9861 if test "$am_cv_func_iconv" = yes; then
9862 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9863 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9864 if test "${am_cv_proto_iconv+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9881 #if defined(__STDC__) || defined(__cplusplus)
9882 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9895 rm -f conftest.$ac_objext
9896 if { (ac_try="$ac_compile"
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_compile") 2>conftest.er1
9904 grep -v '^ *+' conftest.er1 >conftest.err
9906 cat conftest.err >&5
9907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908 (exit $ac_status); } && {
9909 test -z "$ac_c_werror_flag" ||
9910 test ! -s conftest.err
9911 } && test -s conftest.$ac_objext; then
9912 am_cv_proto_iconv_arg1=""
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 am_cv_proto_iconv_arg1="const"
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921 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);"
9924 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9925 { echo "$as_me:$LINENO: result: ${ac_t:-
9926 }$am_cv_proto_iconv" >&5
9927 echo "${ECHO_T}${ac_t:-
9928 }$am_cv_proto_iconv" >&6; }
9930 cat >>confdefs.h <<_ACEOF
9931 #define ICONV_CONST $am_cv_proto_iconv_arg1
9937 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9938 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9939 if test "${am_cv_langinfo_codeset+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 cat >conftest.$ac_ext <<_ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948 #include <langinfo.h>
9952 char* cs = nl_langinfo(CODESET);
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_link") 2>conftest.er1
9966 grep -v '^ *+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && {
9971 test -z "$ac_c_werror_flag" ||
9972 test ! -s conftest.err
9973 } && test -s conftest$ac_exeext &&
9974 $as_test_x conftest$ac_exeext; then
9975 am_cv_langinfo_codeset=yes
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 am_cv_langinfo_codeset=no
9983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984 conftest$ac_exeext conftest.$ac_ext
9987 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9988 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9989 if test $am_cv_langinfo_codeset = yes; then
9991 cat >>confdefs.h <<\_ACEOF
9992 #define HAVE_LANGINFO_CODESET 1
9997 if test $ac_cv_header_locale_h = yes; then
9999 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10000 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10001 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 cat >conftest.$ac_ext <<_ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <locale.h>
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (ac_try="$ac_link"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_link") 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest$ac_exeext &&
10036 $as_test_x conftest$ac_exeext; then
10037 am_cv_val_LC_MESSAGES=yes
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 am_cv_val_LC_MESSAGES=no
10045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10046 conftest$ac_exeext conftest.$ac_ext
10048 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10049 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10050 if test $am_cv_val_LC_MESSAGES = yes; then
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_LC_MESSAGES 1
10060 for ac_prog in bison
10062 # Extract the first word of "$ac_prog", so it can be a program name with args.
10063 set dummy $ac_prog; ac_word=$2
10064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10066 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10069 if test -n "$INTLBISON"; then
10070 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079 ac_cv_prog_INTLBISON="$ac_prog"
10080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 INTLBISON=$ac_cv_prog_INTLBISON
10090 if test -n "$INTLBISON"; then
10091 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10092 echo "${ECHO_T}$INTLBISON" >&6; }
10094 { echo "$as_me:$LINENO: result: no" >&5
10095 echo "${ECHO_T}no" >&6; }
10099 test -n "$INTLBISON" && break
10102 if test -z "$INTLBISON"; then
10105 { echo "$as_me:$LINENO: checking version of bison" >&5
10106 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10107 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10108 case $ac_prog_version in
10109 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10110 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10111 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10112 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10114 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10115 echo "${ECHO_T}$ac_prog_version" >&6; }
10117 if test $ac_verc_fail = yes; then
10136 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10137 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10138 # Check whether --enable-nls was given.
10139 if test "${enable_nls+set}" = set; then
10140 enableval=$enable_nls; USE_NLS=$enableval
10145 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10146 echo "${ECHO_T}$USE_NLS" >&6; }
10151 BUILD_INCLUDED_LIBINTL=no
10152 USE_INCLUDED_LIBINTL=no
10158 if test "$USE_NLS" = "yes"; then
10159 gt_use_preinstalled_gnugettext=no
10161 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10162 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10164 # Check whether --with-included-gettext was given.
10165 if test "${with_included_gettext+set}" = set; then
10166 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10168 nls_cv_force_use_gnu_gettext=no
10171 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10172 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10174 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10175 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10182 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10183 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10184 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 cat >conftest.$ac_ext <<_ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h. */
10193 #include <libintl.h>
10194 extern int _nl_msg_cat_cntr;
10195 extern int *_nl_domain_bindings;
10199 bindtextdomain ("", "");
10200 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 gt_cv_func_gnugettext1_libc=yes
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 gt_cv_func_gnugettext1_libc=no
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10234 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10235 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10237 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10243 acl_save_prefix="$prefix"
10244 prefix="$acl_final_prefix"
10245 acl_save_exec_prefix="$exec_prefix"
10246 exec_prefix="$acl_final_exec_prefix"
10248 eval additional_includedir=\"$includedir\"
10249 eval additional_libdir=\"$libdir\"
10251 exec_prefix="$acl_save_exec_prefix"
10252 prefix="$acl_save_prefix"
10255 # Check whether --with-libintl-prefix was given.
10256 if test "${with_libintl_prefix+set}" = set; then
10257 withval=$with_libintl_prefix;
10258 if test "X$withval" = "Xno"; then
10261 if test "X$withval" = "X"; then
10263 acl_save_prefix="$prefix"
10264 prefix="$acl_final_prefix"
10265 acl_save_exec_prefix="$exec_prefix"
10266 exec_prefix="$acl_final_exec_prefix"
10268 eval additional_includedir=\"$includedir\"
10269 eval additional_libdir=\"$libdir\"
10271 exec_prefix="$acl_save_exec_prefix"
10272 prefix="$acl_save_prefix"
10275 additional_includedir="$withval/include"
10276 additional_libdir="$withval/lib"
10287 names_already_handled=
10288 names_next_round='intl '
10289 while test -n "$names_next_round"; do
10290 names_this_round="$names_next_round"
10292 for name in $names_this_round; do
10294 for n in $names_already_handled; do
10295 if test "$n" = "$name"; then
10296 already_handled=yes
10300 if test -z "$already_handled"; then
10301 names_already_handled="$names_already_handled $name"
10302 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10303 eval value=\"\$HAVE_LIB$uppername\"
10304 if test -n "$value"; then
10305 if test "$value" = yes; then
10306 eval value=\"\$LIB$uppername\"
10307 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10308 eval value=\"\$LTLIB$uppername\"
10309 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10318 if test $use_additional = yes; then
10319 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10320 found_dir="$additional_libdir"
10321 found_so="$additional_libdir/lib$name.$shlibext"
10322 if test -f "$additional_libdir/lib$name.la"; then
10323 found_la="$additional_libdir/lib$name.la"
10326 if test -f "$additional_libdir/lib$name.$libext"; then
10327 found_dir="$additional_libdir"
10328 found_a="$additional_libdir/lib$name.$libext"
10329 if test -f "$additional_libdir/lib$name.la"; then
10330 found_la="$additional_libdir/lib$name.la"
10335 if test "X$found_dir" = "X"; then
10336 for x in $LDFLAGS $LTLIBINTL; do
10338 acl_save_prefix="$prefix"
10339 prefix="$acl_final_prefix"
10340 acl_save_exec_prefix="$exec_prefix"
10341 exec_prefix="$acl_final_exec_prefix"
10343 exec_prefix="$acl_save_exec_prefix"
10344 prefix="$acl_save_prefix"
10348 dir=`echo "X$x" | sed -e 's/^X-L//'`
10349 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10351 found_so="$dir/lib$name.$shlibext"
10352 if test -f "$dir/lib$name.la"; then
10353 found_la="$dir/lib$name.la"
10356 if test -f "$dir/lib$name.$libext"; then
10358 found_a="$dir/lib$name.$libext"
10359 if test -f "$dir/lib$name.la"; then
10360 found_la="$dir/lib$name.la"
10366 if test "X$found_dir" != "X"; then
10371 if test "X$found_dir" != "X"; then
10372 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10373 if test "X$found_so" != "X"; then
10374 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10375 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10378 for x in $ltrpathdirs; do
10379 if test "X$x" = "X$found_dir"; then
10384 if test -z "$haveit"; then
10385 ltrpathdirs="$ltrpathdirs $found_dir"
10387 if test "$hardcode_direct" = yes; then
10388 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10390 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10391 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10393 for x in $rpathdirs; do
10394 if test "X$x" = "X$found_dir"; then
10399 if test -z "$haveit"; then
10400 rpathdirs="$rpathdirs $found_dir"
10404 for x in $LDFLAGS $LIBINTL; do
10406 acl_save_prefix="$prefix"
10407 prefix="$acl_final_prefix"
10408 acl_save_exec_prefix="$exec_prefix"
10409 exec_prefix="$acl_final_exec_prefix"
10411 exec_prefix="$acl_save_exec_prefix"
10412 prefix="$acl_save_prefix"
10414 if test "X$x" = "X-L$found_dir"; then
10419 if test -z "$haveit"; then
10420 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10422 if test "$hardcode_minus_L" != no; then
10423 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10425 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10431 if test "X$found_a" != "X"; then
10432 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10434 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10437 additional_includedir=
10438 case "$found_dir" in
10440 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10441 additional_includedir="$basedir/include"
10444 if test "X$additional_includedir" != "X"; then
10445 if test "X$additional_includedir" != "X/usr/include"; then
10447 if test "X$additional_includedir" = "X/usr/local/include"; then
10448 if test -n "$GCC"; then
10450 linux*) haveit=yes;;
10454 if test -z "$haveit"; then
10455 for x in $CPPFLAGS $INCINTL; do
10457 acl_save_prefix="$prefix"
10458 prefix="$acl_final_prefix"
10459 acl_save_exec_prefix="$exec_prefix"
10460 exec_prefix="$acl_final_exec_prefix"
10462 exec_prefix="$acl_save_exec_prefix"
10463 prefix="$acl_save_prefix"
10465 if test "X$x" = "X-I$additional_includedir"; then
10470 if test -z "$haveit"; then
10471 if test -d "$additional_includedir"; then
10472 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10478 if test -n "$found_la"; then
10479 save_libdir="$libdir"
10480 case "$found_la" in
10481 */* | *\\*) . "$found_la" ;;
10482 *) . "./$found_la" ;;
10484 libdir="$save_libdir"
10485 for dep in $dependency_libs; do
10488 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10489 if test "X$additional_libdir" != "X/usr/lib"; then
10491 if test "X$additional_libdir" = "X/usr/local/lib"; then
10492 if test -n "$GCC"; then
10494 linux*) haveit=yes;;
10498 if test -z "$haveit"; then
10500 for x in $LDFLAGS $LIBINTL; do
10502 acl_save_prefix="$prefix"
10503 prefix="$acl_final_prefix"
10504 acl_save_exec_prefix="$exec_prefix"
10505 exec_prefix="$acl_final_exec_prefix"
10507 exec_prefix="$acl_save_exec_prefix"
10508 prefix="$acl_save_prefix"
10510 if test "X$x" = "X-L$additional_libdir"; then
10515 if test -z "$haveit"; then
10516 if test -d "$additional_libdir"; then
10517 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10521 for x in $LDFLAGS $LTLIBINTL; do
10523 acl_save_prefix="$prefix"
10524 prefix="$acl_final_prefix"
10525 acl_save_exec_prefix="$exec_prefix"
10526 exec_prefix="$acl_final_exec_prefix"
10528 exec_prefix="$acl_save_exec_prefix"
10529 prefix="$acl_save_prefix"
10531 if test "X$x" = "X-L$additional_libdir"; then
10536 if test -z "$haveit"; then
10537 if test -d "$additional_libdir"; then
10538 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10545 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10546 if test "$enable_rpath" != no; then
10548 for x in $rpathdirs; do
10549 if test "X$x" = "X$dir"; then
10554 if test -z "$haveit"; then
10555 rpathdirs="$rpathdirs $dir"
10558 for x in $ltrpathdirs; do
10559 if test "X$x" = "X$dir"; then
10564 if test -z "$haveit"; then
10565 ltrpathdirs="$ltrpathdirs $dir"
10570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10573 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10576 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10577 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10583 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10584 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10590 if test "X$rpathdirs" != "X"; then
10591 if test -n "$hardcode_libdir_separator"; then
10593 for found_dir in $rpathdirs; do
10594 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10596 acl_save_libdir="$libdir"
10598 eval flag=\"$hardcode_libdir_flag_spec\"
10599 libdir="$acl_save_libdir"
10600 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10602 for found_dir in $rpathdirs; do
10603 acl_save_libdir="$libdir"
10604 libdir="$found_dir"
10605 eval flag=\"$hardcode_libdir_flag_spec\"
10606 libdir="$acl_save_libdir"
10607 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10611 if test "X$ltrpathdirs" != "X"; then
10612 for found_dir in $ltrpathdirs; do
10613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10617 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10618 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10619 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 gt_save_CPPFLAGS="$CPPFLAGS"
10623 CPPFLAGS="$CPPFLAGS $INCINTL"
10624 gt_save_LIBS="$LIBS"
10625 LIBS="$LIBS $LIBINTL"
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 #include <libintl.h>
10633 extern int _nl_msg_cat_cntr;
10638 const char *_nl_expand_alias ();
10642 bindtextdomain ("", "");
10643 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_link") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest$ac_exeext &&
10665 $as_test_x conftest$ac_exeext; then
10666 gt_cv_func_gnugettext1_libintl=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 gt_cv_func_gnugettext1_libintl=no
10674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10675 conftest$ac_exeext conftest.$ac_ext
10676 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10677 LIBS="$LIBS $LIBICONV"
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 #include <libintl.h>
10685 extern int _nl_msg_cat_cntr;
10690 const char *_nl_expand_alias ();
10694 bindtextdomain ("", "");
10695 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10700 rm -f conftest.$ac_objext conftest$ac_exeext
10701 if { (ac_try="$ac_link"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_link") 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest$ac_exeext &&
10717 $as_test_x conftest$ac_exeext; then
10718 LIBINTL="$LIBINTL $LIBICONV"
10719 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10720 gt_cv_func_gnugettext1_libintl=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10730 conftest$ac_exeext conftest.$ac_ext
10732 CPPFLAGS="$gt_save_CPPFLAGS"
10733 LIBS="$gt_save_LIBS"
10735 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10736 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10739 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10740 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10741 && test "$PACKAGE" != gettext-runtime \
10742 && test "$PACKAGE" != gettext-tools; }; then
10743 gt_use_preinstalled_gnugettext=yes
10751 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10752 nls_cv_use_gnu_gettext=yes
10756 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10757 BUILD_INCLUDED_LIBINTL=yes
10758 USE_INCLUDED_LIBINTL=yes
10759 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10760 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10761 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10764 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10765 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10770 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10771 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10773 cat >>confdefs.h <<\_ACEOF
10774 #define ENABLE_NLS 1
10782 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10783 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10784 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10785 echo "${ECHO_T}$USE_NLS" >&6; }
10786 if test "$USE_NLS" = "yes"; then
10787 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10788 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10789 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10790 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10791 gt_source="external libintl"
10796 gt_source="included intl directory"
10798 { echo "$as_me:$LINENO: result: $gt_source" >&5
10799 echo "${ECHO_T}$gt_source" >&6; }
10802 if test "$USE_NLS" = "yes"; then
10804 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10805 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10806 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10807 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10808 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10809 echo "${ECHO_T}$LIBINTL" >&6; }
10811 for element in $INCINTL; do
10813 for x in $CPPFLAGS; do
10815 acl_save_prefix="$prefix"
10816 prefix="$acl_final_prefix"
10817 acl_save_exec_prefix="$exec_prefix"
10818 exec_prefix="$acl_final_exec_prefix"
10820 exec_prefix="$acl_save_exec_prefix"
10821 prefix="$acl_save_prefix"
10823 if test "X$x" = "X$element"; then
10828 if test -z "$haveit"; then
10829 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_GETTEXT 1
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_DCGETTEXT 1
10851 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10852 BUILD_INCLUDED_LIBINTL=yes
10859 nls_cv_header_intl=
10860 nls_cv_header_libgt=
10871 if test "$USE_INCLUDED_LIBINTL" = yes; then
10872 INTLOBJS="\$(GETTOBJS)"
10876 INTL_LIBTOOL_SUFFIX_PREFIX=
10880 INTLLIBS="$LIBINTL"
10888 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10889 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10890 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10891 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.make <<\_ACEOF
10897 @echo '@@@%%%=$(MAKE)=@@@%%%'
10899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10900 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10901 *@@@%%%=?*=@@@%%%*)
10902 eval ac_cv_prog_make_${ac_make}_set=yes;;
10904 eval ac_cv_prog_make_${ac_make}_set=no;;
10906 rm -f conftest.make
10908 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10909 { echo "$as_me:$LINENO: result: yes" >&5
10910 echo "${ECHO_T}yes" >&6; }
10913 { echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6; }
10915 SET_MAKE="MAKE=${MAKE-make}"
10918 # Extract the first word of "ln", so it can be a program name with args.
10919 set dummy ln; ac_word=$2
10920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10922 if test "${ac_cv_path_LN+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10937 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10950 if test -n "$LN"; then
10951 { echo "$as_me:$LINENO: result: $LN" >&5
10952 echo "${ECHO_T}$LN" >&6; }
10954 { echo "$as_me:$LINENO: result: no" >&5
10955 echo "${ECHO_T}no" >&6; }
10959 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10960 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10962 if test "$LN_S" = "ln -s"; then
10963 { echo "$as_me:$LINENO: result: yes" >&5
10964 echo "${ECHO_T}yes" >&6; }
10966 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10967 echo "${ECHO_T}no, using $LN_S" >&6; }
10970 # Extract the first word of "mv", so it can be a program name with args.
10971 set dummy mv; ac_word=$2
10972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10974 if test "${ac_cv_path_MV+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10989 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10997 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11002 if test -n "$MV"; then
11003 { echo "$as_me:$LINENO: result: $MV" >&5
11004 echo "${ECHO_T}$MV" >&6; }
11006 { echo "$as_me:$LINENO: result: no" >&5
11007 echo "${ECHO_T}no" >&6; }
11011 # Extract the first word of "cp", so it can be a program name with args.
11012 set dummy cp; ac_word=$2
11013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11015 if test "${ac_cv_path_CP+set}" = set; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11020 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11030 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11043 if test -n "$CP"; then
11044 { echo "$as_me:$LINENO: result: $CP" >&5
11045 echo "${ECHO_T}$CP" >&6; }
11047 { echo "$as_me:$LINENO: result: no" >&5
11048 echo "${ECHO_T}no" >&6; }
11052 # Extract the first word of "rm", so it can be a program name with args.
11053 set dummy rm; ac_word=$2
11054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11056 if test "${ac_cv_path_RM+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11084 if test -n "$RM"; then
11085 { echo "$as_me:$LINENO: result: $RM" >&5
11086 echo "${ECHO_T}$RM" >&6; }
11088 { echo "$as_me:$LINENO: result: no" >&5
11089 echo "${ECHO_T}no" >&6; }
11093 # Extract the first word of "chmod", so it can be a program name with args.
11094 set dummy chmod; ac_word=$2
11095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11097 if test "${ac_cv_path_CHMOD+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106 for as_dir in $PATH
11109 test -z "$as_dir" && as_dir=.
11110 for ac_exec_ext in '' $ac_executable_extensions; do
11111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11112 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11124 CHMOD=$ac_cv_path_CHMOD
11125 if test -n "$CHMOD"; then
11126 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11127 echo "${ECHO_T}$CHMOD" >&6; }
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11134 for ac_prog in gawk mawk nawk awk
11136 # Extract the first word of "$ac_prog", so it can be a program name with args.
11137 set dummy $ac_prog; ac_word=$2
11138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11140 if test "${ac_cv_prog_AWK+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 if test -n "$AWK"; then
11144 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147 for as_dir in $PATH
11150 test -z "$as_dir" && as_dir=.
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153 ac_cv_prog_AWK="$ac_prog"
11154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11163 AWK=$ac_cv_prog_AWK
11164 if test -n "$AWK"; then
11165 { echo "$as_me:$LINENO: result: $AWK" >&5
11166 echo "${ECHO_T}$AWK" >&6; }
11168 { echo "$as_me:$LINENO: result: no" >&5
11169 echo "${ECHO_T}no" >&6; }
11173 test -n "$AWK" && break
11176 { echo "$as_me:$LINENO: checking for egrep" >&5
11177 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11178 if test "${ac_cv_path_EGREP+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11181 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11182 then ac_cv_path_EGREP="$GREP -E"
11184 # Extract the first word of "egrep" to use in msg output
11185 if test -z "$EGREP"; then
11186 set dummy egrep; ac_prog_name=$2
11187 if test "${ac_cv_path_EGREP+set}" = set; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 ac_path_EGREP_found=false
11191 # Loop through the user's path and test for each of PROGNAME-LIST
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11196 test -z "$as_dir" && as_dir=.
11197 for ac_prog in egrep; do
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11200 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11201 # Check for GNU ac_path_EGREP and select it if it is found.
11202 # Check for GNU $ac_path_EGREP
11203 case `"$ac_path_EGREP" --version 2>&1` in
11205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11208 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11211 cat "conftest.in" "conftest.in" >"conftest.tmp"
11212 mv "conftest.tmp" "conftest.in"
11213 cp "conftest.in" "conftest.nl"
11214 echo 'EGREP' >> "conftest.nl"
11215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11217 ac_count=`expr $ac_count + 1`
11218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11219 # Best one so far, save it but keep looking for a better one
11220 ac_cv_path_EGREP="$ac_path_EGREP"
11221 ac_path_EGREP_max=$ac_count
11223 # 10*(2^10) chars as input seems more than enough
11224 test $ac_count -gt 10 && break
11226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11230 $ac_path_EGREP_found && break 3
11240 EGREP="$ac_cv_path_EGREP"
11241 if test -z "$EGREP"; then
11242 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11243 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11244 { (exit 1); exit 1; }; }
11248 ac_cv_path_EGREP=$EGREP
11254 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11255 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11256 EGREP="$ac_cv_path_EGREP"
11259 # Extract the first word of "sed", so it can be a program name with args.
11260 set dummy sed; ac_word=$2
11261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11263 if test "${ac_cv_path_SED+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272 for as_dir in $PATH
11275 test -z "$as_dir" && as_dir=.
11276 for ac_exec_ext in '' $ac_executable_extensions; do
11277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11290 SED=$ac_cv_path_SED
11291 if test -n "$SED"; then
11292 { echo "$as_me:$LINENO: result: $SED" >&5
11293 echo "${ECHO_T}$SED" >&6; }
11295 { echo "$as_me:$LINENO: result: no" >&5
11296 echo "${ECHO_T}no" >&6; }
11300 # Extract the first word of "perl", so it can be a program name with args.
11301 set dummy perl; ac_word=$2
11302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11304 if test "${ac_cv_path_PERL+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11313 for as_dir in $PATH
11316 test -z "$as_dir" && as_dir=.
11317 for ac_exec_ext in '' $ac_executable_extensions; do
11318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11319 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11331 PERL=$ac_cv_path_PERL
11332 if test -n "$PERL"; then
11333 { echo "$as_me:$LINENO: result: $PERL" >&5
11334 echo "${ECHO_T}$PERL" >&6; }
11336 { echo "$as_me:$LINENO: result: no" >&5
11337 echo "${ECHO_T}no" >&6; }
11341 # Extract the first word of "ldconfig", so it can be a program name with args.
11342 set dummy ldconfig; 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_path_LDCONFIG+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354 for as_dir in $PATH
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
11359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11360 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11372 LDCONFIG=$ac_cv_path_LDCONFIG
11373 if test -n "$LDCONFIG"; then
11374 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11375 echo "${ECHO_T}$LDCONFIG" >&6; }
11377 { echo "$as_me:$LINENO: result: no" >&5
11378 echo "${ECHO_T}no" >&6; }
11382 if test -n "$ac_tool_prefix"; then
11383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11384 set dummy ${ac_tool_prefix}ar; ac_word=$2
11385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11387 if test "${ac_cv_prog_AR+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 if test -n "$AR"; then
11391 ac_cv_prog_AR="$AR" # Let the user override the test.
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11400 ac_cv_prog_AR="${ac_tool_prefix}ar"
11401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11411 if test -n "$AR"; then
11412 { echo "$as_me:$LINENO: result: $AR" >&5
11413 echo "${ECHO_T}$AR" >&6; }
11415 { echo "$as_me:$LINENO: result: no" >&5
11416 echo "${ECHO_T}no" >&6; }
11421 if test -z "$ac_cv_prog_AR"; then
11423 # Extract the first word of "ar", so it can be a program name with args.
11424 set dummy ar; ac_word=$2
11425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11427 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
11430 if test -n "$ac_ct_AR"; then
11431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_prog_ac_ct_AR="ar"
11441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11451 if test -n "$ac_ct_AR"; then
11452 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11453 echo "${ECHO_T}$ac_ct_AR" >&6; }
11455 { echo "$as_me:$LINENO: result: no" >&5
11456 echo "${ECHO_T}no" >&6; }
11459 if test "x$ac_ct_AR" = x; then
11462 case $cross_compiling:$ac_tool_warned in
11464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11465 whose name does not start with the host triplet. If you think this
11466 configuration is useful to you, please write to autoconf@gnu.org." >&5
11467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11468 whose name does not start with the host triplet. If you think this
11469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11470 ac_tool_warned=yes ;;
11475 AR="$ac_cv_prog_AR"
11478 if test -n "$ac_tool_prefix"; then
11479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11483 if test "${ac_cv_prog_RANLIB+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 if test -n "$RANLIB"; then
11487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 RANLIB=$ac_cv_prog_RANLIB
11507 if test -n "$RANLIB"; then
11508 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11509 echo "${ECHO_T}$RANLIB" >&6; }
11511 { echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6; }
11517 if test -z "$ac_cv_prog_RANLIB"; then
11518 ac_ct_RANLIB=$RANLIB
11519 # Extract the first word of "ranlib", so it can be a program name with args.
11520 set dummy ranlib; ac_word=$2
11521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 if test -n "$ac_ct_RANLIB"; then
11527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11533 test -z "$as_dir" && as_dir=.
11534 for ac_exec_ext in '' $ac_executable_extensions; do
11535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11536 ac_cv_prog_ac_ct_RANLIB="ranlib"
11537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11547 if test -n "$ac_ct_RANLIB"; then
11548 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11549 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11551 { echo "$as_me:$LINENO: result: no" >&5
11552 echo "${ECHO_T}no" >&6; }
11555 if test "x$ac_ct_RANLIB" = x; then
11558 case $cross_compiling:$ac_tool_warned in
11560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11561 whose name does not start with the host triplet. If you think this
11562 configuration is useful to you, please write to autoconf@gnu.org." >&5
11563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11564 whose name does not start with the host triplet. If you think this
11565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11566 ac_tool_warned=yes ;;
11568 RANLIB=$ac_ct_RANLIB
11571 RANLIB="$ac_cv_prog_RANLIB"
11574 if test -n "$ac_tool_prefix"; then
11575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11576 set dummy ${ac_tool_prefix}strip; ac_word=$2
11577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11579 if test "${ac_cv_prog_STRIP+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 if test -n "$STRIP"; then
11583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 STRIP=$ac_cv_prog_STRIP
11603 if test -n "$STRIP"; then
11604 { echo "$as_me:$LINENO: result: $STRIP" >&5
11605 echo "${ECHO_T}$STRIP" >&6; }
11607 { echo "$as_me:$LINENO: result: no" >&5
11608 echo "${ECHO_T}no" >&6; }
11613 if test -z "$ac_cv_prog_STRIP"; then
11615 # Extract the first word of "strip", so it can be a program name with args.
11616 set dummy strip; ac_word=$2
11617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 if test -n "$ac_ct_STRIP"; then
11623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11629 test -z "$as_dir" && as_dir=.
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11632 ac_cv_prog_ac_ct_STRIP="strip"
11633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11643 if test -n "$ac_ct_STRIP"; then
11644 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11647 { echo "$as_me:$LINENO: result: no" >&5
11648 echo "${ECHO_T}no" >&6; }
11651 if test "x$ac_ct_STRIP" = x; then
11654 case $cross_compiling:$ac_tool_warned in
11656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11657 whose name does not start with the host triplet. If you think this
11658 configuration is useful to you, please write to autoconf@gnu.org." >&5
11659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11660 whose name does not start with the host triplet. If you think this
11661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11662 ac_tool_warned=yes ;;
11667 STRIP="$ac_cv_prog_STRIP"
11670 # Extract the first word of "makeinfo", so it can be a program name with args.
11671 set dummy makeinfo; ac_word=$2
11672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11674 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 if test -n "$MAKEINFO"; then
11678 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11684 test -z "$as_dir" && as_dir=.
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11687 ac_cv_prog_MAKEINFO="makeinfo"
11688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 MAKEINFO=$ac_cv_prog_MAKEINFO
11698 if test -n "$MAKEINFO"; then
11699 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11700 echo "${ECHO_T}$MAKEINFO" >&6; }
11702 { echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6; }
11707 if test "_$MAKEINFO" = "_"; then
11708 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11710 case "$MAKEINFO" in
11712 { echo "$as_me:$LINENO: WARNING:
11713 *** Makeinfo is missing. Info documentation will not be built." >&5
11714 echo "$as_me: WARNING:
11715 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11722 # Find a good install program. We prefer a C program (faster),
11723 # so one script is as good as another. But avoid the broken or
11724 # incompatible versions:
11725 # SysV /etc/install, /usr/sbin/install
11726 # SunOS /usr/etc/install
11727 # IRIX /sbin/install
11729 # AmigaOS /C/install, which installs bootblocks on floppy discs
11730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11733 # OS/2's system install, which has a completely different semantic
11734 # ./install, which can be erroneously created by make from ./install.sh.
11735 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11736 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11737 if test -z "$INSTALL"; then
11738 if test "${ac_cv_path_install+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11745 test -z "$as_dir" && as_dir=.
11746 # Account for people who put trailing slashes in PATH elements.
11748 ./ | .// | /cC/* | \
11749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11750 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11753 # OSF1 and SCO ODT 3.0 have their own names for install.
11754 # Don't use installbsd from OSF since it installs stuff as root
11756 for ac_prog in ginstall scoinst install; do
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11759 if test $ac_prog = install &&
11760 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11761 # AIX install. It has an incompatible calling convention.
11763 elif test $ac_prog = install &&
11764 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11765 # program-specific install script used by HP pwplus--don't use.
11768 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11781 if test "${ac_cv_path_install+set}" = set; then
11782 INSTALL=$ac_cv_path_install
11784 # As a last resort, use the slow shell script. Don't cache a
11785 # value for INSTALL within a source directory, because that will
11786 # break other packages using the cache if that directory is
11787 # removed, or if the value is a relative name.
11788 INSTALL=$ac_install_sh
11791 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11792 echo "${ECHO_T}$INSTALL" >&6; }
11794 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11795 # It thinks the first close brace ends the variable substitution.
11796 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11798 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11802 # See if we need a separate native compiler.
11803 if test $cross_compiling = no; then
11807 for ac_prog in gcc cc
11809 # Extract the first word of "$ac_prog", so it can be a program name with args.
11810 set dummy $ac_prog; ac_word=$2
11811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11813 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 if test -n "$BUILD_CC"; then
11817 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_prog_BUILD_CC="$ac_prog"
11827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 BUILD_CC=$ac_cv_prog_BUILD_CC
11837 if test -n "$BUILD_CC"; then
11838 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11839 echo "${ECHO_T}$BUILD_CC" >&6; }
11841 { echo "$as_me:$LINENO: result: no" >&5
11842 echo "${ECHO_T}no" >&6; }
11846 test -n "$BUILD_CC" && break
11886 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_res=`eval echo '${'$as_ac_Header'}'`
11896 { echo "$as_me:$LINENO: result: $ac_res" >&5
11897 echo "${ECHO_T}$ac_res" >&6; }
11899 # Is the header compilable?
11900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 #include <$ac_header>
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
11920 grep -v '^ *+' conftest.er1 >conftest.err
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest.$ac_objext; then
11928 ac_header_compiler=yes
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_header_compiler=no
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6; }
11940 # Is the header present?
11941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <$ac_header>
11951 if { (ac_try="$ac_cpp conftest.$ac_ext"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } >/dev/null && {
11964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11967 ac_header_preproc=yes
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 ac_header_preproc=no
11975 rm -f conftest.err conftest.$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6; }
11979 # So? What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc=yes
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 eval "$as_ac_Header=\$ac_header_preproc"
12011 ac_res=`eval echo '${'$as_ac_Header'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12017 cat >>confdefs.h <<_ACEOF
12018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 for ac_header in sys/disk.h sys/mount.h
12029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12042 #if HAVE_SYS_QUEUE_H
12043 #include <sys/queue.h>
12047 #include <$ac_header>
12049 rm -f conftest.$ac_objext
12050 if { (ac_try="$ac_compile"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_compile") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest.$ac_objext; then
12066 eval "$as_ac_Header=yes"
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12071 eval "$as_ac_Header=no"
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12076 ac_res=`eval echo '${'$as_ac_Header'}'`
12077 { echo "$as_me:$LINENO: result: $ac_res" >&5
12078 echo "${ECHO_T}$ac_res" >&6; }
12079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12080 cat >>confdefs.h <<_ACEOF
12081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12089 for ac_header in net/if.h
12091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12104 #if HAVE_SYS_TYPES_H
12105 #include <sys/types.h>
12107 #if HAVE_SYS_SOCKET
12108 #include <sys/socket.h>
12112 #include <$ac_header>
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12131 eval "$as_ac_Header=yes"
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12136 eval "$as_ac_Header=no"
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 ac_res=`eval echo '${'$as_ac_Header'}'`
12142 { echo "$as_me:$LINENO: result: $ac_res" >&5
12143 echo "${ECHO_T}$ac_res" >&6; }
12144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12154 for ac_func in vprintf
12156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 cat >conftest.$ac_ext <<_ACEOF
12165 cat confdefs.h >>conftest.$ac_ext
12166 cat >>conftest.$ac_ext <<_ACEOF
12167 /* end confdefs.h. */
12168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12170 #define $ac_func innocuous_$ac_func
12172 /* System header to define __stub macros and hopefully few prototypes,
12173 which can conflict with char $ac_func (); below.
12174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12175 <limits.h> exists even on freestanding compilers. */
12178 # include <limits.h>
12180 # include <assert.h>
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12192 /* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195 #if defined __stub_$ac_func || defined __stub___$ac_func
12202 return $ac_func ();
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (ac_try="$ac_link"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_link") 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest$ac_exeext &&
12224 $as_test_x conftest$ac_exeext; then
12225 eval "$as_ac_var=yes"
12227 echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12230 eval "$as_ac_var=no"
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234 conftest$ac_exeext conftest.$ac_ext
12236 ac_res=`eval echo '${'$as_ac_var'}'`
12237 { echo "$as_me:$LINENO: result: $ac_res" >&5
12238 echo "${ECHO_T}$ac_res" >&6; }
12239 if test `eval echo '${'$as_ac_var'}'` = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12245 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12246 if test "${ac_cv_func__doprnt+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 cat >conftest.$ac_ext <<_ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12257 #define _doprnt innocuous__doprnt
12259 /* System header to define __stub macros and hopefully few prototypes,
12260 which can conflict with char _doprnt (); below.
12261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12262 <limits.h> exists even on freestanding compilers. */
12265 # include <limits.h>
12267 # include <assert.h>
12272 /* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12279 /* The GNU C library defines this for functions which it implements
12280 to always fail with ENOSYS. Some functions are actually named
12281 something starting with __ and the normal name is an alias. */
12282 #if defined __stub__doprnt || defined __stub____doprnt
12294 rm -f conftest.$ac_objext conftest$ac_exeext
12295 if { (ac_try="$ac_link"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_link") 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest$ac_exeext &&
12311 $as_test_x conftest$ac_exeext; then
12312 ac_cv_func__doprnt=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_func__doprnt=no
12320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12321 conftest$ac_exeext conftest.$ac_ext
12323 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12324 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12325 if test $ac_cv_func__doprnt = yes; then
12327 cat >>confdefs.h <<\_ACEOF
12328 #define HAVE_DOPRNT 1
12337 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12338 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12339 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 cat >conftest.$ac_ext <<_ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 #include <dirent.h>
12353 static struct dirent ac_aggr;
12354 if (ac_aggr.d_reclen)
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.$ac_objext; then
12377 ac_cv_member_struct_dirent_d_reclen=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 #include <dirent.h>
12393 static struct dirent ac_aggr;
12394 if (sizeof ac_aggr.d_reclen)
12400 rm -f conftest.$ac_objext
12401 if { (ac_try="$ac_compile"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407 (eval "$ac_compile") 2>conftest.er1
12409 grep -v '^ *+' conftest.er1 >conftest.err
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
12416 } && test -s conftest.$ac_objext; then
12417 ac_cv_member_struct_dirent_d_reclen=yes
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 ac_cv_member_struct_dirent_d_reclen=no
12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12431 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12432 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_RECLEN_DIRENT 1
12439 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12440 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12441 if test "${ac_cv_type_ssize_t+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 cat >conftest.$ac_ext <<_ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <sys/types.h>
12452 typedef ssize_t ac__type_new_;
12456 if ((ac__type_new_ *) 0)
12458 if (sizeof (ac__type_new_))
12464 rm -f conftest.$ac_objext
12465 if { (ac_try="$ac_compile"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_compile") 2>conftest.er1
12473 grep -v '^ *+' conftest.er1 >conftest.err
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } && {
12478 test -z "$ac_c_werror_flag" ||
12479 test ! -s conftest.err
12480 } && test -s conftest.$ac_objext; then
12481 ac_cv_type_ssize_t=yes
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_cv_type_ssize_t=no
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12492 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12493 if test $ac_cv_type_ssize_t = yes; then
12494 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_TYPE_SSIZE_T 1
12500 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12501 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12502 if test "${ac_cv_have_decl_llseek+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12511 #include <unistd.h>
12524 rm -f conftest.$ac_objext
12525 if { (ac_try="$ac_compile"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12531 (eval "$ac_compile") 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } && {
12538 test -z "$ac_c_werror_flag" ||
12539 test ! -s conftest.err
12540 } && test -s conftest.$ac_objext; then
12541 ac_cv_have_decl_llseek=yes
12543 echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12546 ac_cv_have_decl_llseek=no
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12552 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12553 if test $ac_cv_have_decl_llseek = yes; then
12554 cat >>confdefs.h <<\_ACEOF
12555 #define HAVE_LLSEEK_PROTOTYPE 1
12560 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12561 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12562 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 #define _LARGEFILE_SOURCE
12572 #define _LARGEFILE64_SOURCE
12573 #include <unistd.h>
12586 rm -f conftest.$ac_objext
12587 if { (ac_try="$ac_compile"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compile") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
12603 ac_cv_have_decl_lseek64=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_cv_have_decl_lseek64=no
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12614 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12615 if test $ac_cv_have_decl_lseek64 = yes; then
12616 cat >>confdefs.h <<\_ACEOF
12617 #define HAVE_LSEEK64_PROTOTYPE 1
12622 { echo "$as_me:$LINENO: checking for short" >&5
12623 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12624 if test "${ac_cv_type_short+set}" = set; then
12625 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12633 $ac_includes_default
12634 typedef short ac__type_new_;
12638 if ((ac__type_new_ *) 0)
12640 if (sizeof (ac__type_new_))
12646 rm -f conftest.$ac_objext
12647 if { (ac_try="$ac_compile"
12648 case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_compile") 2>conftest.er1
12655 grep -v '^ *+' conftest.er1 >conftest.err
12657 cat conftest.err >&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
12663 ac_cv_type_short=yes
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_cv_type_short=no
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12674 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12676 # The cast to long int works around a bug in the HP C Compiler
12677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12679 # This bug is HP SR number 8606223364.
12680 { echo "$as_me:$LINENO: checking size of short" >&5
12681 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12682 if test "${ac_cv_sizeof_short+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 if test "$cross_compiling" = yes; then
12686 # Depending upon the size, compute the lo and hi bounds.
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12693 $ac_includes_default
12694 typedef short ac__type_sizeof_;
12698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12709 *) ac_try_echo=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_compile") 2>conftest.er1
12714 grep -v '^ *+' conftest.er1 >conftest.err
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest.$ac_objext; then
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 typedef short ac__type_sizeof_;
12735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12742 rm -f conftest.$ac_objext
12743 if { (ac_try="$ac_compile"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_compile") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } && {
12756 test -z "$ac_c_werror_flag" ||
12757 test ! -s conftest.err
12758 } && test -s conftest.$ac_objext; then
12759 ac_hi=$ac_mid; break
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_lo=`expr $ac_mid + 1`
12765 if test $ac_lo -le $ac_mid; then
12769 ac_mid=`expr 2 '*' $ac_mid + 1`
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 $ac_includes_default
12785 typedef short ac__type_sizeof_;
12789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12796 rm -f conftest.$ac_objext
12797 if { (ac_try="$ac_compile"
12798 case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_compile") 2>conftest.er1
12805 grep -v '^ *+' conftest.er1 >conftest.err
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } && {
12810 test -z "$ac_c_werror_flag" ||
12811 test ! -s conftest.err
12812 } && test -s conftest.$ac_objext; then
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821 $ac_includes_default
12822 typedef short ac__type_sizeof_;
12826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest.$ac_objext; then
12850 ac_lo=$ac_mid; break
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 ac_hi=`expr '(' $ac_mid ')' - 1`
12856 if test $ac_mid -le $ac_hi; then
12860 ac_mid=`expr 2 '*' $ac_mid`
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 # Binary search between lo and hi bounds.
12877 while test "x$ac_lo" != "x$ac_hi"; do
12878 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12879 cat >conftest.$ac_ext <<_ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 $ac_includes_default
12886 typedef short ac__type_sizeof_;
12890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12897 rm -f conftest.$ac_objext
12898 if { (ac_try="$ac_compile"
12899 case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_compile") 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest.$ac_objext; then
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 ac_lo=`expr '(' $ac_mid ')' + 1`
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 ?*) ac_cv_sizeof_short=$ac_lo;;
12926 '') if test "$ac_cv_type_short" = yes; then
12927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12928 See \`config.log' for more details." >&5
12929 echo "$as_me: error: cannot compute sizeof (short)
12930 See \`config.log' for more details." >&2;}
12931 { (exit 77); exit 77; }; }
12933 ac_cv_sizeof_short=0
12937 cat >conftest.$ac_ext <<_ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 $ac_includes_default
12944 typedef short ac__type_sizeof_;
12945 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12946 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12948 #include <stdlib.h>
12953 FILE *f = fopen ("conftest.val", "w");
12956 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12958 long int i = longval ();
12959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12961 fprintf (f, "%ld\n", i);
12965 unsigned long int i = ulongval ();
12966 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12968 fprintf (f, "%lu\n", i);
12970 return ferror (f) || fclose (f) != 0;
12976 rm -f conftest$ac_exeext
12977 if { (ac_try="$ac_link"
12978 case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_link") 2>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12996 ac_cv_sizeof_short=`cat conftest.val`
12998 echo "$as_me: program exited with status $ac_status" >&5
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ( exit $ac_status )
13003 if test "$ac_cv_type_short" = yes; then
13004 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13005 See \`config.log' for more details." >&5
13006 echo "$as_me: error: cannot compute sizeof (short)
13007 See \`config.log' for more details." >&2;}
13008 { (exit 77); exit 77; }; }
13010 ac_cv_sizeof_short=0
13013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13018 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13022 cat >>confdefs.h <<_ACEOF
13023 #define SIZEOF_SHORT $ac_cv_sizeof_short
13027 { echo "$as_me:$LINENO: checking for int" >&5
13028 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13029 if test "${ac_cv_type_int+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 cat >conftest.$ac_ext <<_ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 $ac_includes_default
13039 typedef int ac__type_new_;
13043 if ((ac__type_new_ *) 0)
13045 if (sizeof (ac__type_new_))
13051 rm -f conftest.$ac_objext
13052 if { (ac_try="$ac_compile"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_compile") 2>conftest.er1
13060 grep -v '^ *+' conftest.er1 >conftest.err
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } && {
13065 test -z "$ac_c_werror_flag" ||
13066 test ! -s conftest.err
13067 } && test -s conftest.$ac_objext; then
13070 echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13079 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13081 # The cast to long int works around a bug in the HP C Compiler
13082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13084 # This bug is HP SR number 8606223364.
13085 { echo "$as_me:$LINENO: checking size of int" >&5
13086 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13087 if test "${ac_cv_sizeof_int+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 if test "$cross_compiling" = yes; then
13091 # Depending upon the size, compute the lo and hi bounds.
13092 cat >conftest.$ac_ext <<_ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 $ac_includes_default
13099 typedef int ac__type_sizeof_;
13103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13110 rm -f conftest.$ac_objext
13111 if { (ac_try="$ac_compile"
13112 case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_compile") 2>conftest.er1
13119 grep -v '^ *+' conftest.er1 >conftest.err
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } && {
13124 test -z "$ac_c_werror_flag" ||
13125 test ! -s conftest.err
13126 } && test -s conftest.$ac_objext; then
13129 cat >conftest.$ac_ext <<_ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h. */
13135 $ac_includes_default
13136 typedef int ac__type_sizeof_;
13140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compile") 2>conftest.er1
13156 grep -v '^ *+' conftest.er1 >conftest.err
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && {
13161 test -z "$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 } && test -s conftest.$ac_objext; then
13164 ac_hi=$ac_mid; break
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_lo=`expr $ac_mid + 1`
13170 if test $ac_lo -le $ac_mid; then
13174 ac_mid=`expr 2 '*' $ac_mid + 1`
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13190 typedef int ac__type_sizeof_;
13194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13201 rm -f conftest.$ac_objext
13202 if { (ac_try="$ac_compile"
13203 case "(($ac_try" in
13204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13208 (eval "$ac_compile") 2>conftest.er1
13210 grep -v '^ *+' conftest.er1 >conftest.err
13212 cat conftest.err >&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } && {
13215 test -z "$ac_c_werror_flag" ||
13216 test ! -s conftest.err
13217 } && test -s conftest.$ac_objext; then
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 $ac_includes_default
13227 typedef int ac__type_sizeof_;
13231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13238 rm -f conftest.$ac_objext
13239 if { (ac_try="$ac_compile"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_compile") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1 >conftest.err
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest.$ac_objext; then
13255 ac_lo=$ac_mid; break
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_hi=`expr '(' $ac_mid ')' - 1`
13261 if test $ac_mid -le $ac_hi; then
13265 ac_mid=`expr 2 '*' $ac_mid`
13268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 # Binary search between lo and hi bounds.
13282 while test "x$ac_lo" != "x$ac_hi"; do
13283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 $ac_includes_default
13291 typedef int ac__type_sizeof_;
13295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13302 rm -f conftest.$ac_objext
13303 if { (ac_try="$ac_compile"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_compile") 2>conftest.er1
13311 grep -v '^ *+' conftest.er1 >conftest.err
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && {
13316 test -z "$ac_c_werror_flag" ||
13317 test ! -s conftest.err
13318 } && test -s conftest.$ac_objext; then
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 ac_lo=`expr '(' $ac_mid ')' + 1`
13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 ?*) ac_cv_sizeof_int=$ac_lo;;
13331 '') if test "$ac_cv_type_int" = yes; then
13332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13333 See \`config.log' for more details." >&5
13334 echo "$as_me: error: cannot compute sizeof (int)
13335 See \`config.log' for more details." >&2;}
13336 { (exit 77); exit 77; }; }
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 $ac_includes_default
13349 typedef int ac__type_sizeof_;
13350 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13351 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13353 #include <stdlib.h>
13358 FILE *f = fopen ("conftest.val", "w");
13361 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13363 long int i = longval ();
13364 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13366 fprintf (f, "%ld\n", i);
13370 unsigned long int i = ulongval ();
13371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13373 fprintf (f, "%lu\n", i);
13375 return ferror (f) || fclose (f) != 0;
13381 rm -f conftest$ac_exeext
13382 if { (ac_try="$ac_link"
13383 case "(($ac_try" in
13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_link") 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13392 { (case "(($ac_try" in
13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394 *) ac_try_echo=$ac_try;;
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397 (eval "$ac_try") 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_cv_sizeof_int=`cat conftest.val`
13403 echo "$as_me: program exited with status $ac_status" >&5
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 ( exit $ac_status )
13408 if test "$ac_cv_type_int" = yes; then
13409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13410 See \`config.log' for more details." >&5
13411 echo "$as_me: error: cannot compute sizeof (int)
13412 See \`config.log' for more details." >&2;}
13413 { (exit 77); exit 77; }; }
13418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13422 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13423 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13427 cat >>confdefs.h <<_ACEOF
13428 #define SIZEOF_INT $ac_cv_sizeof_int
13432 { echo "$as_me:$LINENO: checking for long" >&5
13433 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13434 if test "${ac_cv_type_long+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 cat >conftest.$ac_ext <<_ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13443 $ac_includes_default
13444 typedef long ac__type_new_;
13448 if ((ac__type_new_ *) 0)
13450 if (sizeof (ac__type_new_))
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_compile") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest.$ac_objext; then
13473 ac_cv_type_long=yes
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13484 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13486 # The cast to long int works around a bug in the HP C Compiler
13487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13489 # This bug is HP SR number 8606223364.
13490 { echo "$as_me:$LINENO: checking size of long" >&5
13491 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13492 if test "${ac_cv_sizeof_long+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 if test "$cross_compiling" = yes; then
13496 # Depending upon the size, compute the lo and hi bounds.
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 $ac_includes_default
13504 typedef long ac__type_sizeof_;
13508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 $ac_includes_default
13541 typedef long ac__type_sizeof_;
13545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13552 rm -f conftest.$ac_objext
13553 if { (ac_try="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559 (eval "$ac_compile") 2>conftest.er1
13561 grep -v '^ *+' conftest.er1 >conftest.err
13563 cat conftest.err >&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest.$ac_objext; then
13569 ac_hi=$ac_mid; break
13571 echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13574 ac_lo=`expr $ac_mid + 1`
13575 if test $ac_lo -le $ac_mid; then
13579 ac_mid=`expr 2 '*' $ac_mid + 1`
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 $ac_includes_default
13595 typedef long ac__type_sizeof_;
13599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13606 rm -f conftest.$ac_objext
13607 if { (ac_try="$ac_compile"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_compile") 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } && {
13620 test -z "$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 } && test -s conftest.$ac_objext; then
13625 cat >conftest.$ac_ext <<_ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13631 $ac_includes_default
13632 typedef long ac__type_sizeof_;
13636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13643 rm -f conftest.$ac_objext
13644 if { (ac_try="$ac_compile"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_compile") 2>conftest.er1
13652 grep -v '^ *+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } && {
13657 test -z "$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 } && test -s conftest.$ac_objext; then
13660 ac_lo=$ac_mid; break
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 ac_hi=`expr '(' $ac_mid ')' - 1`
13666 if test $ac_mid -le $ac_hi; then
13670 ac_mid=`expr 2 '*' $ac_mid`
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 # Binary search between lo and hi bounds.
13687 while test "x$ac_lo" != "x$ac_hi"; do
13688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13689 cat >conftest.$ac_ext <<_ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13696 typedef long ac__type_sizeof_;
13700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13707 rm -f conftest.$ac_objext
13708 if { (ac_try="$ac_compile"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_compile") 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && {
13721 test -z "$ac_c_werror_flag" ||
13722 test ! -s conftest.err
13723 } && test -s conftest.$ac_objext; then
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ac_lo=`expr '(' $ac_mid ')' + 1`
13732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 ?*) ac_cv_sizeof_long=$ac_lo;;
13736 '') if test "$ac_cv_type_long" = yes; then
13737 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13738 See \`config.log' for more details." >&5
13739 echo "$as_me: error: cannot compute sizeof (long)
13740 See \`config.log' for more details." >&2;}
13741 { (exit 77); exit 77; }; }
13743 ac_cv_sizeof_long=0
13747 cat >conftest.$ac_ext <<_ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 $ac_includes_default
13754 typedef long ac__type_sizeof_;
13755 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13756 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13758 #include <stdlib.h>
13763 FILE *f = fopen ("conftest.val", "w");
13766 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13768 long int i = longval ();
13769 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13771 fprintf (f, "%ld\n", i);
13775 unsigned long int i = ulongval ();
13776 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13778 fprintf (f, "%lu\n", i);
13780 return ferror (f) || fclose (f) != 0;
13786 rm -f conftest$ac_exeext
13787 if { (ac_try="$ac_link"
13788 case "(($ac_try" in
13789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790 *) ac_try_echo=$ac_try;;
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793 (eval "$ac_link") 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13797 { (case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_try") 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_sizeof_long=`cat conftest.val`
13808 echo "$as_me: program exited with status $ac_status" >&5
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ( exit $ac_status )
13813 if test "$ac_cv_type_long" = yes; then
13814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13815 See \`config.log' for more details." >&5
13816 echo "$as_me: error: cannot compute sizeof (long)
13817 See \`config.log' for more details." >&2;}
13818 { (exit 77); exit 77; }; }
13820 ac_cv_sizeof_long=0
13823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13828 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13832 cat >>confdefs.h <<_ACEOF
13833 #define SIZEOF_LONG $ac_cv_sizeof_long
13837 { echo "$as_me:$LINENO: checking for long long" >&5
13838 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13839 if test "${ac_cv_type_long_long+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 cat >conftest.$ac_ext <<_ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 $ac_includes_default
13849 typedef long long ac__type_new_;
13853 if ((ac__type_new_ *) 0)
13855 if (sizeof (ac__type_new_))
13861 rm -f conftest.$ac_objext
13862 if { (ac_try="$ac_compile"
13863 case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_compile") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest.$ac_objext; then
13878 ac_cv_type_long_long=yes
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 ac_cv_type_long_long=no
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13889 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13891 # The cast to long int works around a bug in the HP C Compiler
13892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13894 # This bug is HP SR number 8606223364.
13895 { echo "$as_me:$LINENO: checking size of long long" >&5
13896 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13897 if test "${ac_cv_sizeof_long_long+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 if test "$cross_compiling" = yes; then
13901 # Depending upon the size, compute the lo and hi bounds.
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 $ac_includes_default
13909 typedef long long ac__type_sizeof_;
13913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13920 rm -f conftest.$ac_objext
13921 if { (ac_try="$ac_compile"
13922 case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_compile") 2>conftest.er1
13929 grep -v '^ *+' conftest.er1 >conftest.err
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } && {
13934 test -z "$ac_c_werror_flag" ||
13935 test ! -s conftest.err
13936 } && test -s conftest.$ac_objext; then
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 $ac_includes_default
13946 typedef long long ac__type_sizeof_;
13950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13966 grep -v '^ *+' conftest.er1 >conftest.err
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_hi=$ac_mid; break
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_lo=`expr $ac_mid + 1`
13980 if test $ac_lo -le $ac_mid; then
13984 ac_mid=`expr 2 '*' $ac_mid + 1`
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 $ac_includes_default
14000 typedef long long ac__type_sizeof_;
14004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14011 rm -f conftest.$ac_objext
14012 if { (ac_try="$ac_compile"
14013 case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_compile") 2>conftest.er1
14020 grep -v '^ *+' conftest.er1 >conftest.err
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest.$ac_objext; then
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14036 $ac_includes_default
14037 typedef long long ac__type_sizeof_;
14041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14048 rm -f conftest.$ac_objext
14049 if { (ac_try="$ac_compile"
14050 case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_compile") 2>conftest.er1
14057 grep -v '^ *+' conftest.er1 >conftest.err
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } && {
14062 test -z "$ac_c_werror_flag" ||
14063 test ! -s conftest.err
14064 } && test -s conftest.$ac_objext; then
14065 ac_lo=$ac_mid; break
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14070 ac_hi=`expr '(' $ac_mid ')' - 1`
14071 if test $ac_mid -le $ac_hi; then
14075 ac_mid=`expr 2 '*' $ac_mid`
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 # Binary search between lo and hi bounds.
14092 while test "x$ac_lo" != "x$ac_hi"; do
14093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14094 cat >conftest.$ac_ext <<_ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 $ac_includes_default
14101 typedef long long ac__type_sizeof_;
14105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14112 rm -f conftest.$ac_objext
14113 if { (ac_try="$ac_compile"
14114 case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_compile") 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest.$ac_objext; then
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_lo=`expr '(' $ac_mid ')' + 1`
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14141 '') if test "$ac_cv_type_long_long" = yes; then
14142 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14143 See \`config.log' for more details." >&5
14144 echo "$as_me: error: cannot compute sizeof (long long)
14145 See \`config.log' for more details." >&2;}
14146 { (exit 77); exit 77; }; }
14148 ac_cv_sizeof_long_long=0
14152 cat >conftest.$ac_ext <<_ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 $ac_includes_default
14159 typedef long long ac__type_sizeof_;
14160 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14161 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14163 #include <stdlib.h>
14168 FILE *f = fopen ("conftest.val", "w");
14171 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14173 long int i = longval ();
14174 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14176 fprintf (f, "%ld\n", i);
14180 unsigned long int i = ulongval ();
14181 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14183 fprintf (f, "%lu\n", i);
14185 return ferror (f) || fclose (f) != 0;
14191 rm -f conftest$ac_exeext
14192 if { (ac_try="$ac_link"
14193 case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_link") 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14202 { (case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_try") 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 ac_cv_sizeof_long_long=`cat conftest.val`
14213 echo "$as_me: program exited with status $ac_status" >&5
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 ( exit $ac_status )
14218 if test "$ac_cv_type_long_long" = yes; then
14219 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14220 See \`config.log' for more details." >&5
14221 echo "$as_me: error: cannot compute sizeof (long long)
14222 See \`config.log' for more details." >&2;}
14223 { (exit 77); exit 77; }; }
14225 ac_cv_sizeof_long_long=0
14228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14232 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14233 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14237 cat >>confdefs.h <<_ACEOF
14238 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14242 SIZEOF_SHORT=$ac_cv_sizeof_short
14243 SIZEOF_INT=$ac_cv_sizeof_int
14244 SIZEOF_LONG=$ac_cv_sizeof_long
14245 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14250 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14251 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14252 if test "${ac_cv_c_bigendian+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 # See if sys/param.h defines the BYTE_ORDER macro.
14256 cat >conftest.$ac_ext <<_ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 #include <sys/types.h>
14263 #include <sys/param.h>
14268 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14269 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14270 bogus endian macros
14277 rm -f conftest.$ac_objext
14278 if { (ac_try="$ac_compile"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_compile") 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest.$ac_objext; then
14294 # It does; now see whether it defined to BIG_ENDIAN or not.
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 #include <sys/types.h>
14302 #include <sys/param.h>
14307 #if BYTE_ORDER != BIG_ENDIAN
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest.$ac_objext; then
14332 ac_cv_c_bigendian=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_cv_c_bigendian=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 # It does not; compile a test program.
14346 if test "$cross_compiling" = yes; then
14347 # try to guess the endianness by grepping values into an object file
14348 ac_cv_c_bigendian=unknown
14349 cat >conftest.$ac_ext <<_ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h. */
14355 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14356 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14357 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14358 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14359 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14360 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14364 _ascii (); _ebcdic ();
14369 rm -f conftest.$ac_objext
14370 if { (ac_try="$ac_compile"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_compile") 2>conftest.er1
14378 grep -v '^ *+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } && {
14383 test -z "$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14385 } && test -s conftest.$ac_objext; then
14386 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14387 ac_cv_c_bigendian=yes
14389 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14390 if test "$ac_cv_c_bigendian" = unknown; then
14391 ac_cv_c_bigendian=no
14393 # finding both strings is unlikely to happen, but who knows?
14394 ac_cv_c_bigendian=unknown
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 $ac_includes_default
14417 /* Are we little or big endian? From Harbison&Steele. */
14421 char c[sizeof (long int)];
14424 return u.c[sizeof (long int) - 1] == 1;
14430 rm -f conftest$ac_exeext
14431 if { (ac_try="$ac_link"
14432 case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_link") 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14441 { (case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_try") 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_c_bigendian=no
14452 echo "$as_me: program exited with status $ac_status" >&5
14453 echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14456 ( exit $ac_status )
14457 ac_cv_c_bigendian=yes
14459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14468 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14469 case $ac_cv_c_bigendian in
14472 cat >>confdefs.h <<\_ACEOF
14473 #define WORDS_BIGENDIAN 1
14479 { { echo "$as_me:$LINENO: error: unknown endianness
14480 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14481 echo "$as_me: error: unknown endianness
14482 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14483 { (exit 1); exit 1; }; } ;;
14486 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14487 ASM_TYPES_HEADER=./asm_types.h
14489 echo "/* These defines are needed for the public ext2fs.h header file */" \
14491 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14492 uniq tmp_config.$$ >> public_config.h
14494 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14496 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14497 uniq tmp_config.$$ >> public_config.h
14499 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14501 rm -f tmp_config.$$
14502 PUBLIC_CONFIG_HEADER=./public_config.h
14505 for ac_header in inttypes.h
14507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 ac_res=`eval echo '${'$as_ac_Header'}'`
14515 { echo "$as_me:$LINENO: result: $ac_res" >&5
14516 echo "${ECHO_T}$ac_res" >&6; }
14518 # Is the header compilable?
14519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14521 cat >conftest.$ac_ext <<_ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527 $ac_includes_default
14528 #include <$ac_header>
14530 rm -f conftest.$ac_objext
14531 if { (ac_try="$ac_compile"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_compile") 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } && {
14544 test -z "$ac_c_werror_flag" ||
14545 test ! -s conftest.err
14546 } && test -s conftest.$ac_objext; then
14547 ac_header_compiler=yes
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 ac_header_compiler=no
14555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14557 echo "${ECHO_T}$ac_header_compiler" >&6; }
14559 # Is the header present?
14560 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14561 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <$ac_header>
14570 if { (ac_try="$ac_cpp conftest.$ac_ext"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14578 grep -v '^ *+' conftest.er1 >conftest.err
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } >/dev/null && {
14583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14586 ac_header_preproc=yes
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_header_preproc=no
14594 rm -f conftest.err conftest.$ac_ext
14595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14596 echo "${ECHO_T}$ac_header_preproc" >&6; }
14598 # So? What about this header?
14599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14602 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14604 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14605 ac_header_preproc=yes
14608 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14609 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14611 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14613 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14615 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14617 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14618 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14619 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14628 eval "$as_ac_Header=\$ac_header_preproc"
14630 ac_res=`eval echo '${'$as_ac_Header'}'`
14631 { echo "$as_me:$LINENO: result: $ac_res" >&5
14632 echo "${ECHO_T}$ac_res" >&6; }
14635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14636 cat >>confdefs.h <<_ACEOF
14637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14644 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14645 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14646 if test "${ac_cv_type_intptr_t+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 $ac_includes_default
14656 typedef intptr_t ac__type_new_;
14660 if ((ac__type_new_ *) 0)
14662 if (sizeof (ac__type_new_))
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_compile") 2>conftest.er1
14677 grep -v '^ *+' conftest.er1 >conftest.err
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); } && {
14682 test -z "$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 } && test -s conftest.$ac_objext; then
14685 ac_cv_type_intptr_t=yes
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 ac_cv_type_intptr_t=no
14693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14695 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14696 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14697 if test $ac_cv_type_intptr_t = yes; then
14699 cat >>confdefs.h <<_ACEOF
14700 #define HAVE_INTPTR_T 1
14706 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14707 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14708 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 cat >conftest.$ac_ext <<_ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 #include <sys/stat.h>
14721 struct stat stat; stat.st_flags = 0;
14726 rm -f conftest.$ac_objext
14727 if { (ac_try="$ac_compile"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_compile") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest.$ac_objext; then
14743 e2fsprogs_cv_struct_st_flags=yes
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 e2fsprogs_cv_struct_st_flags=no
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14755 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14756 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14757 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14758 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14759 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 cat >conftest.$ac_ext <<_ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <sys/stat.h>
14772 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } && {
14791 test -z "$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 } && test -s conftest.$ac_objext; then
14794 e2fsprogs_cv_struct_st_flags_immut=yes
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 e2fsprogs_cv_struct_st_flags_immut=no
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14806 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14807 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14808 cat >>confdefs.h <<\_ACEOF
14809 #define HAVE_STAT_FLAGS 1
14814 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14815 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14816 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <sys/types.h>
14826 #include <sys/socket.h>
14831 static struct sockaddr ac_aggr;
14832 if (ac_aggr.sa_len)
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.$ac_objext; then
14855 ac_cv_member_struct_sockaddr_sa_len=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 #include <sys/types.h>
14867 #include <sys/socket.h>
14872 static struct sockaddr ac_aggr;
14873 if (sizeof ac_aggr.sa_len)
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_compile") 2>conftest.er1
14888 grep -v '^ *+' conftest.er1 >conftest.err
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest.$ac_objext; then
14896 ac_cv_member_struct_sockaddr_sa_len=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_cv_member_struct_sockaddr_sa_len=no
14904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14910 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14911 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14913 cat >>confdefs.h <<_ACEOF
14914 #define HAVE_SA_LEN 1
14950 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
14952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14966 #define $ac_func innocuous_$ac_func
14968 /* System header to define __stub macros and hopefully few prototypes,
14969 which can conflict with char $ac_func (); below.
14970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14971 <limits.h> exists even on freestanding compilers. */
14974 # include <limits.h>
14976 # include <assert.h>
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14988 /* The GNU C library defines this for functions which it implements
14989 to always fail with ENOSYS. Some functions are actually named
14990 something starting with __ and the normal name is an alias. */
14991 #if defined __stub_$ac_func || defined __stub___$ac_func
14998 return $ac_func ();
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } && {
15017 test -z "$ac_c_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest$ac_exeext &&
15020 $as_test_x conftest$ac_exeext; then
15021 eval "$as_ac_var=yes"
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 eval "$as_ac_var=no"
15029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15030 conftest$ac_exeext conftest.$ac_ext
15032 ac_res=`eval echo '${'$as_ac_var'}'`
15033 { echo "$as_me:$LINENO: result: $ac_res" >&5
15034 echo "${ECHO_T}$ac_res" >&6; }
15035 if test `eval echo '${'$as_ac_var'}'` = yes; then
15036 cat >>confdefs.h <<_ACEOF
15037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15044 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15045 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15046 if test "${ac_cv_lib_socket_socket+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 ac_check_lib_save_LIBS=$LIBS
15050 LIBS="-lsocket $LIBS"
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15058 /* Override any GCC internal prototype to avoid an error.
15059 Use char because int might match the return type of a GCC
15060 builtin and then its argument prototype would still apply. */
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (ac_try="$ac_link"
15075 case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_link") 2>conftest.er1
15082 grep -v '^ *+' conftest.er1 >conftest.err
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } && {
15087 test -z "$ac_c_werror_flag" ||
15088 test ! -s conftest.err
15089 } && test -s conftest$ac_exeext &&
15090 $as_test_x conftest$ac_exeext; then
15091 ac_cv_lib_socket_socket=yes
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 ac_cv_lib_socket_socket=no
15099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_check_lib_save_LIBS
15103 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15104 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15105 if test $ac_cv_lib_socket_socket = yes; then
15106 SOCKET_LIB=-lsocket
15111 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15112 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 ac_check_lib_save_LIBS=$LIBS
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15125 /* Override any GCC internal prototype to avoid an error.
15126 Use char because int might match the return type of a GCC
15127 builtin and then its argument prototype would still apply. */
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (ac_try="$ac_link"
15142 case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_link") 2>conftest.er1
15149 grep -v '^ *+' conftest.er1 >conftest.err
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } && {
15154 test -z "$ac_c_werror_flag" ||
15155 test ! -s conftest.err
15156 } && test -s conftest$ac_exeext &&
15157 $as_test_x conftest$ac_exeext; then
15158 ac_cv_lib_dl_dlopen=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_cv_lib_dl_dlopen=no
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_check_lib_save_LIBS
15170 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15172 if test $ac_cv_lib_dl_dlopen = yes; then
15174 cat >>confdefs.h <<\_ACEOF
15175 #define HAVE_DLOPEN 1
15181 { echo "$as_me:$LINENO: checking for optreset" >&5
15182 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15183 if test "${ac_cv_have_optreset+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <unistd.h>
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 $EGREP "optreset" >/dev/null 2>&1; then
15197 ac_cv_have_optreset=yes
15199 ac_cv_have_optreset=no
15204 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15205 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15206 if test $ac_cv_have_optreset = yes; then
15207 cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_OPTRESET 1
15212 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15213 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15214 if diff -u $0 $0 > /dev/null 2>&1 ; then
15219 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15220 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15224 cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_EXT2_IOCTLS 1
15246 linux* | gnu* | k*bsd*-gnu)
15247 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15249 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15250 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15255 linux* | gnu* | k*bsd*-gnu)
15256 if test "$prefix" = NONE ; then
15258 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15259 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15260 if test "$mandir" = '${prefix}/man' ; then
15261 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15262 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15263 mandir=/usr/share/man
15268 if test "$root_prefix" = NONE ; then
15269 if test "$prefix" = NONE ; then
15270 root_prefix="$ac_default_prefix"
15272 root_prefix="$prefix"
15274 root_bindir=$bindir
15275 root_sbindir=$sbindir
15276 root_libdir=$libdir
15277 root_sysconfdir=$sysconfdir
15279 root_bindir='${root_prefix}/bin'
15280 root_sbindir='${root_prefix}/sbin'
15281 root_libdir='${root_prefix}/lib'
15282 root_sysconfdir='${root_prefix}/etc'
15284 if test "$bindir" != '${exec_prefix}/bin'; then
15285 root_bindir=$bindir
15286 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15287 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15289 if test "$sbindir" != '${exec_prefix}/sbin'; then
15290 root_sbindir=$sbindir
15291 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15292 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15294 if test "$libdir" != '${exec_prefix}/lib'; then
15295 root_libdir=$libdir
15296 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15297 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15299 if test "$sysconfdir" != '${prefix}/etc'; then
15300 root_sysconfdir=$sysconfdir
15301 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15302 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15309 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15310 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15311 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15315 cat >conftest.$ac_ext <<_ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (ac_try="$ac_link"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_link") 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest$ac_exeext &&
15347 $as_test_x conftest$ac_exeext; then
15348 ac_cv_e2fsprogs_use_static=yes
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15353 ac_cv_e2fsprogs_use_static=no
15356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15357 conftest$ac_exeext conftest.$ac_ext
15358 LDFLAGS=$SAVE_LDFLAGS
15363 ac_cv_e2fsprogs_use_static=no
15366 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15367 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15369 if test $ac_cv_e2fsprogs_use_static = yes; then
15370 LDFLAG_STATIC=-static
15375 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15376 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15377 cat >>confdefs.h <<\_ACEOF
15378 #define _INTL_REDIRECT_MACROS 1
15383 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15384 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15387 if test "$cross_compiling" = yes ; then
15390 DO_TEST_SUITE=check
15394 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15395 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15398 if test $cross_compiling = no; then
15399 BUILD_CFLAGS="$CFLAGS"
15400 BUILD_LDFLAGS="$LDFLAGS"
15407 test -d lib || mkdir lib
15408 test -d include || mkdir include
15409 test -d include/linux || mkdir include/linux
15410 test -d include/asm || mkdir include/asm
15411 for i in MCONFIG Makefile e2fsprogs.spec \
15412 util/Makefile util/subst.conf util/gen-tarball \
15413 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15414 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15415 lib/uuid/Makefile lib/uuid/uuid_types.h \
15416 lib/blkid/Makefile lib/blkid/blkid_types.h \
15417 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15418 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15419 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15420 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15421 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15422 if test -d `dirname ${srcdir}/$i` ; then
15423 outlist="$outlist $i"
15426 ac_config_files="$ac_config_files $outlist"
15428 cat >confcache <<\_ACEOF
15429 # This file is a shell script that caches the results of configure
15430 # tests run on this system so they can be shared between configure
15431 # scripts and configure runs, see configure's option --config-cache.
15432 # It is not useful on other systems. If it contains results you don't
15433 # want to keep, you may remove or edit it.
15435 # config.status only pays attention to the cache file if you give it
15436 # the --recheck option to rerun configure.
15438 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15439 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15440 # following values.
15444 # The following way of writing the cache mishandles newlines in values,
15445 # but we know of no workaround that is simple, portable, and efficient.
15446 # So, we kill variables containing newlines.
15447 # Ultrix sh set writes to stderr and can't be redirected directly,
15448 # and sets the high bit in the cache file unless we assign to the vars.
15450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15451 eval ac_val=\$$ac_var
15455 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15456 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15459 _ | IFS | as_nl) ;; #(
15460 *) $as_unset $ac_var ;;
15466 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15467 *${as_nl}ac_space=\ *)
15468 # `set' does not quote correctly, so add quotes (double-quote
15469 # substitution turns \\\\ into \\, and sed turns \\ into \).
15472 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15475 # `set' quotes correctly as required by POSIX, so do not add quotes.
15476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15485 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15487 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15489 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15490 if test -w "$cache_file"; then
15491 test "x$cache_file" != "x/dev/null" &&
15492 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15493 echo "$as_me: updating cache $cache_file" >&6;}
15494 cat confcache >$cache_file
15496 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15497 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15503 # Let make expand exec_prefix.
15504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15506 # Transform confdefs.h into DEFS.
15507 # Protect against shell expansion while executing Makefile rules.
15508 # Protect against Makefile macro expansion.
15510 # If the first sed substitution is executed (which looks for macros that
15511 # take arguments), then branch to the quote section. Otherwise,
15512 # look for a macro that doesn't take arguments.
15516 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15518 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15522 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15535 DEFS=`sed -n "$ac_script" confdefs.h`
15540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15541 # 1. Remove the extension, and $U if already installed.
15542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15543 ac_i=`echo "$ac_i" | sed "$ac_script"`
15544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15545 # will be set to the directory where LIBOBJS objects are built.
15546 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15547 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15549 LIBOBJS=$ac_libobjs
15551 LTLIBOBJS=$ac_ltlibobjs
15555 : ${CONFIG_STATUS=./config.status}
15556 ac_clean_files_save=$ac_clean_files
15557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15558 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15559 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15560 cat >$CONFIG_STATUS <<_ACEOF
15562 # Generated by $as_me.
15563 # Run this file to recreate the current configuration.
15564 # Compiler output produced by configure, useful for debugging
15565 # configure, is in config.log if it exists.
15568 ac_cs_recheck=false
15570 SHELL=\${CONFIG_SHELL-$SHELL}
15573 cat >>$CONFIG_STATUS <<\_ACEOF
15574 ## --------------------- ##
15575 ## M4sh Initialization. ##
15576 ## --------------------- ##
15578 # Be more Bourne compatible
15579 DUALCASE=1; export DUALCASE # for MKS sh
15580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15583 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15584 # is contrary to our usage. Disable this feature.
15585 alias -g '${1+"$@"}'='"$@"'
15586 setopt NO_GLOB_SUBST
15588 case `(set -o) 2>/dev/null` in
15589 *posix*) set -o posix ;;
15598 # Avoid depending upon Character Ranges.
15599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15602 as_cr_digits='0123456789'
15603 as_cr_alnum=$as_cr_Letters$as_cr_digits
15605 # The user is always right.
15606 if test "${PATH_SEPARATOR+set}" != set; then
15607 echo "#! /bin/sh" >conf$$.sh
15608 echo "exit 0" >>conf$$.sh
15610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15618 # Support unset when possible.
15619 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15627 # We need space, tab and new line, in precisely that order. Quoting is
15628 # there to prevent editors from complaining about space-tab.
15629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15630 # splitting by setting IFS to empty value.)
15635 # Find who we are. Look in the path if we contain no directory separator.
15637 *[\\/]* ) as_myself=$0 ;;
15638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15639 for as_dir in $PATH
15642 test -z "$as_dir" && as_dir=.
15643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15649 # We did not find ourselves, most probably we were run as `sh COMMAND'
15650 # in which case we are not to be found in the path.
15651 if test "x$as_myself" = x; then
15654 if test ! -f "$as_myself"; then
15655 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15656 { (exit 1); exit 1; }
15659 # Work around bugs in pre-3.0 UWIN ksh.
15660 for as_var in ENV MAIL MAILPATH
15661 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15669 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15670 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15671 LC_TELEPHONE LC_TIME
15673 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15674 eval $as_var=C; export $as_var
15676 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15680 # Required to use basename.
15681 if expr a : '\(a\)' >/dev/null 2>&1 &&
15682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15688 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15689 as_basename=basename
15695 # Name of the executable.
15696 as_me=`$as_basename -- "$0" ||
15697 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15698 X"$0" : 'X\(//\)$' \| \
15699 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15701 sed '/^.*\/\([^/][^/]*\)\/*$/{
15720 as_lineno_1=$LINENO
15721 as_lineno_2=$LINENO
15722 test "x$as_lineno_1" != "x$as_lineno_2" &&
15723 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15726 # uniformly replaced by the line number. The first 'sed' inserts a
15727 # line-number line after each line using $LINENO; the second 'sed'
15728 # does the real work. The second script uses 'N' to pair each
15729 # line-number line with the line containing $LINENO, and appends
15730 # trailing '-' during substitution so that $LINENO is not a special
15731 # case at line end.
15732 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15733 # scripts with optimization help from Paolo Bonzini. Blame Lee
15734 # E. McMahon (1931-1989) for sed's syntax. :-)
15746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15749 ' >$as_me.lineno &&
15750 chmod +x "$as_me.lineno" ||
15751 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15752 { (exit 1); exit 1; }; }
15754 # Don't try to exec as it changes $[0], causing all sort of problems
15755 # (the dirname of $[0] is not the place where we might find the
15756 # original and so on. Autoconf is especially sensitive to this).
15757 . "./$as_me.lineno"
15758 # Exit status is that of the last command.
15763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15769 ECHO_C= ECHO_N= ECHO_T=
15770 case `echo -n x` in
15772 case `echo 'x\c'` in
15773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15780 if expr a : '\(a\)' >/dev/null 2>&1 &&
15781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15787 rm -f conf$$ conf$$.exe conf$$.file
15788 if test -d conf$$.dir; then
15789 rm -f conf$$.dir/conf$$.file
15795 if ln -s conf$$.file conf$$ 2>/dev/null; then
15797 # ... but there are two gotchas:
15798 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15799 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15800 # In both cases, we have to default to `cp -p'.
15801 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15803 elif ln conf$$.file conf$$ 2>/dev/null; then
15808 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15809 rmdir conf$$.dir 2>/dev/null
15811 if mkdir -p . 2>/dev/null; then
15814 test -d ./-p && rmdir ./-p
15818 if test -x / >/dev/null 2>&1; then
15819 as_test_x='test -x'
15821 if ls -dL / >/dev/null 2>&1; then
15828 if test -d "$1"; then
15834 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15835 ???[sx]*):;;*)false;;esac;fi
15839 as_executable_p=$as_test_x
15841 # Sed expression to map a string onto a valid CPP name.
15842 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15844 # Sed expression to map a string onto a valid variable name.
15845 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15850 # Save the log message, to keep $[0] and so on meaningful, and to
15851 # report actual input values of CONFIG_FILES etc. instead of their
15852 # values after options handling.
15854 This file was extended by $as_me, which was
15855 generated by GNU Autoconf 2.61. Invocation command line was
15857 CONFIG_FILES = $CONFIG_FILES
15858 CONFIG_HEADERS = $CONFIG_HEADERS
15859 CONFIG_LINKS = $CONFIG_LINKS
15860 CONFIG_COMMANDS = $CONFIG_COMMANDS
15863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15868 cat >>$CONFIG_STATUS <<_ACEOF
15869 # Files that config.status was made for.
15870 config_files="$ac_config_files"
15871 config_commands="$ac_config_commands"
15875 cat >>$CONFIG_STATUS <<\_ACEOF
15877 \`$as_me' instantiates files from templates according to the
15878 current configuration.
15880 Usage: $0 [OPTIONS] [FILE]...
15882 -h, --help print this help, then exit
15883 -V, --version print version number and configuration settings, then exit
15884 -q, --quiet do not print progress messages
15885 -d, --debug don't remove temporary files
15886 --recheck update $as_me by reconfiguring in the same conditions
15887 --file=FILE[:TEMPLATE]
15888 instantiate the configuration file FILE
15890 Configuration files:
15893 Configuration commands:
15896 Report bugs to <bug-autoconf@gnu.org>."
15899 cat >>$CONFIG_STATUS <<_ACEOF
15902 configured by $0, generated by GNU Autoconf 2.61,
15903 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15905 Copyright (C) 2006 Free Software Foundation, Inc.
15906 This config.status script is free software; the Free Software Foundation
15907 gives unlimited permission to copy, distribute and modify it."
15914 cat >>$CONFIG_STATUS <<\_ACEOF
15915 # If no file are specified by the user, then we need to provide default
15916 # value. By we need to know if files were specified by the user.
15922 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15923 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15934 # Handling of the options.
15935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15938 echo "$ac_cs_version"; exit ;;
15939 --debug | --debu | --deb | --de | --d | -d )
15941 --file | --fil | --fi | --f )
15943 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15944 ac_need_defaults=false;;
15945 --he | --h | --help | --hel | -h )
15946 echo "$ac_cs_usage"; exit ;;
15947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15948 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15951 # This is an error.
15952 -*) { echo "$as_me: error: unrecognized option: $1
15953 Try \`$0 --help' for more information." >&2
15954 { (exit 1); exit 1; }; } ;;
15956 *) ac_config_targets="$ac_config_targets $1"
15957 ac_need_defaults=false ;;
15963 ac_configure_extra_args=
15965 if $ac_cs_silent; then
15967 ac_configure_extra_args="$ac_configure_extra_args --silent"
15971 cat >>$CONFIG_STATUS <<_ACEOF
15972 if \$ac_cs_recheck; then
15973 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15974 CONFIG_SHELL=$SHELL
15975 export CONFIG_SHELL
15976 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15980 cat >>$CONFIG_STATUS <<\_ACEOF
15984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15985 ## Running $as_me. ##
15991 cat >>$CONFIG_STATUS <<_ACEOF
15995 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15996 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15998 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15999 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16000 LINGUAS="${LINGUAS-%UNSET%}"
16005 cat >>$CONFIG_STATUS <<\_ACEOF
16007 # Handling of arguments.
16008 for ac_config_target in $ac_config_targets
16010 case $ac_config_target in
16011 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16012 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16016 { (exit 1); exit 1; }; };;
16021 # If the user did not use the arguments to specify the items to instantiate,
16022 # then the envvar interface is used. Set only those that are not.
16023 # We use the long form for the default assignment because of an extremely
16024 # bizarre bug on SunOS 4.1.3.
16025 if $ac_need_defaults; then
16026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16027 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16030 # Have a temporary directory for convenience. Make it in the build tree
16031 # simply because there is no reason against having it here, and in addition,
16032 # creating and moving files from /tmp can sometimes cause problems.
16033 # Hook for its removal unless debugging.
16034 # Note that there is a small window in which the directory will not be cleaned:
16035 # after its creation but before its name has been assigned to `$tmp'.
16039 trap 'exit_status=$?
16040 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16042 trap '{ (exit 1); exit 1; }' 1 2 13 15
16044 # Create a (secure) tmp directory for tmp files.
16047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16048 test -n "$tmp" && test -d "$tmp"
16051 tmp=./conf$$-$RANDOM
16052 (umask 077 && mkdir "$tmp")
16055 echo "$me: cannot create a temporary directory in ." >&2
16056 { (exit 1); exit 1; }
16060 # Set up the sed scripts for CONFIG_FILES section.
16063 # No need to generate the scripts if there are no CONFIG_FILES.
16064 # This happens for instance when ./config.status config.h
16065 if test -n "$CONFIG_FILES"; then
16069 # Create sed commands to just substitute file output variables.
16071 # Remaining file output variables are in a fragment that also has non-file
16077 for ac_last_try in false false false false false :; do
16078 cat >conf$$subs.sed <<_ACEOF
16079 SHELL!$SHELL$ac_delim
16080 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16081 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16082 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16083 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16084 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16085 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16086 exec_prefix!$exec_prefix$ac_delim
16087 prefix!$prefix$ac_delim
16088 program_transform_name!$program_transform_name$ac_delim
16089 bindir!$bindir$ac_delim
16090 sbindir!$sbindir$ac_delim
16091 libexecdir!$libexecdir$ac_delim
16092 datarootdir!$datarootdir$ac_delim
16093 datadir!$datadir$ac_delim
16094 sysconfdir!$sysconfdir$ac_delim
16095 sharedstatedir!$sharedstatedir$ac_delim
16096 localstatedir!$localstatedir$ac_delim
16097 includedir!$includedir$ac_delim
16098 oldincludedir!$oldincludedir$ac_delim
16099 docdir!$docdir$ac_delim
16100 infodir!$infodir$ac_delim
16101 htmldir!$htmldir$ac_delim
16102 dvidir!$dvidir$ac_delim
16103 pdfdir!$pdfdir$ac_delim
16104 psdir!$psdir$ac_delim
16105 libdir!$libdir$ac_delim
16106 localedir!$localedir$ac_delim
16107 mandir!$mandir$ac_delim
16108 DEFS!$DEFS$ac_delim
16109 ECHO_C!$ECHO_C$ac_delim
16110 ECHO_N!$ECHO_N$ac_delim
16111 ECHO_T!$ECHO_T$ac_delim
16112 LIBS!$LIBS$ac_delim
16113 build_alias!$build_alias$ac_delim
16114 host_alias!$host_alias$ac_delim
16115 target_alias!$target_alias$ac_delim
16116 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16117 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16118 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16119 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16120 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16121 build!$build$ac_delim
16122 build_cpu!$build_cpu$ac_delim
16123 build_vendor!$build_vendor$ac_delim
16124 build_os!$build_os$ac_delim
16125 host!$host$ac_delim
16126 host_cpu!$host_cpu$ac_delim
16127 host_vendor!$host_vendor$ac_delim
16128 host_os!$host_os$ac_delim
16130 CFLAGS!$CFLAGS$ac_delim
16131 LDFLAGS!$LDFLAGS$ac_delim
16132 CPPFLAGS!$CPPFLAGS$ac_delim
16133 ac_ct_CC!$ac_ct_CC$ac_delim
16134 EXEEXT!$EXEEXT$ac_delim
16135 OBJEXT!$OBJEXT$ac_delim
16138 GREP!$GREP$ac_delim
16139 EGREP!$EGREP$ac_delim
16140 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16141 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16142 HTREE_CMT!$HTREE_CMT$ac_delim
16143 ELF_CMT!$ELF_CMT$ac_delim
16144 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16145 PROFILE_CMT!$PROFILE_CMT$ac_delim
16146 CHECKER_CMT!$CHECKER_CMT$ac_delim
16147 LIB_EXT!$LIB_EXT$ac_delim
16148 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16149 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16150 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16151 IMAGER_CMT!$IMAGER_CMT$ac_delim
16154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16156 elif $ac_last_try; then
16157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16159 { (exit 1); exit 1; }; }
16161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16166 if test -n "$ac_eof"; then
16167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16168 ac_eof=`expr $ac_eof + 1`
16171 cat >>$CONFIG_STATUS <<_ACEOF
16172 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16174 /^[ ]*@MCONFIG@[ ]*$/{
16178 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16182 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16186 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16187 r $MAKEFILE_PROFILE
16190 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16191 r $MAKEFILE_CHECKER
16194 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16195 r $MAKEFILE_LIBRARY
16198 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16199 r $ASM_TYPES_HEADER
16202 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16203 r $PUBLIC_CONFIG_HEADER
16208 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16209 s/^/s,@/; s/!/@,|#_!!_#|/
16212 s/'"$ac_delim"'$/,g/; t
16214 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16215 ' >>$CONFIG_STATUS <conf$$subs.sed
16216 rm -f conf$$subs.sed
16217 cat >>$CONFIG_STATUS <<_ACEOF
16223 for ac_last_try in false false false false false :; do
16224 cat >conf$$subs.sed <<_ACEOF
16225 RESIZER_CMT!$RESIZER_CMT$ac_delim
16226 FSCK_PROG!$FSCK_PROG$ac_delim
16227 FSCK_MAN!$FSCK_MAN$ac_delim
16228 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16229 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16230 PKG_CONFIG!$PKG_CONFIG$ac_delim
16231 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16232 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16233 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16234 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16235 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16236 UUIDD_CMT!$UUIDD_CMT$ac_delim
16237 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16238 PACKAGE!$PACKAGE$ac_delim
16239 VERSION!$VERSION$ac_delim
16240 SET_MAKE!$SET_MAKE$ac_delim
16241 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16242 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16243 INSTALL_DATA!$INSTALL_DATA$ac_delim
16244 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16245 USE_NLS!$USE_NLS$ac_delim
16246 MSGFMT!$MSGFMT$ac_delim
16247 GMSGFMT!$GMSGFMT$ac_delim
16248 XGETTEXT!$XGETTEXT$ac_delim
16249 MSGMERGE!$MSGMERGE$ac_delim
16250 RANLIB!$RANLIB$ac_delim
16251 ALLOCA!$ALLOCA$ac_delim
16252 GLIBC21!$GLIBC21$ac_delim
16253 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16254 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16255 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16256 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16257 LIBICONV!$LIBICONV$ac_delim
16258 LTLIBICONV!$LTLIBICONV$ac_delim
16259 INTLBISON!$INTLBISON$ac_delim
16260 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16261 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16262 CATOBJEXT!$CATOBJEXT$ac_delim
16263 DATADIRNAME!$DATADIRNAME$ac_delim
16264 INSTOBJEXT!$INSTOBJEXT$ac_delim
16265 GENCAT!$GENCAT$ac_delim
16266 INTLOBJS!$INTLOBJS$ac_delim
16267 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16268 INTLLIBS!$INTLLIBS$ac_delim
16269 LIBINTL!$LIBINTL$ac_delim
16270 LTLIBINTL!$LTLIBINTL$ac_delim
16271 POSUB!$POSUB$ac_delim
16272 BINARY_TYPE!$BINARY_TYPE$ac_delim
16274 LN_S!$LN_S$ac_delim
16278 CHMOD!$CHMOD$ac_delim
16281 PERL!$PERL$ac_delim
16282 LDCONFIG!$LDCONFIG$ac_delim
16284 STRIP!$STRIP$ac_delim
16285 MAKEINFO!$MAKEINFO$ac_delim
16286 BUILD_CC!$BUILD_CC$ac_delim
16287 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16288 SIZEOF_INT!$SIZEOF_INT$ac_delim
16289 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16290 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16291 SOCKET_LIB!$SOCKET_LIB$ac_delim
16292 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16293 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16294 LINUX_CMT!$LINUX_CMT$ac_delim
16295 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16296 UNIX_CMT!$UNIX_CMT$ac_delim
16297 root_prefix!$root_prefix$ac_delim
16298 root_bindir!$root_bindir$ac_delim
16299 root_sbindir!$root_sbindir$ac_delim
16300 root_libdir!$root_libdir$ac_delim
16301 root_sysconfdir!$root_sysconfdir$ac_delim
16302 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16303 SS_DIR!$SS_DIR$ac_delim
16304 ET_DIR!$ET_DIR$ac_delim
16305 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16306 INTL_FLAGS!$INTL_FLAGS$ac_delim
16307 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16308 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16309 LIBOBJS!$LIBOBJS$ac_delim
16310 LTLIBOBJS!$LTLIBOBJS$ac_delim
16313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16315 elif $ac_last_try; then
16316 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16317 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16318 { (exit 1); exit 1; }; }
16320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16324 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16325 if test -n "$ac_eof"; then
16326 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16327 ac_eof=`expr $ac_eof + 1`
16330 cat >>$CONFIG_STATUS <<_ACEOF
16331 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16335 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16336 s/^/s,@/; s/!/@,|#_!!_#|/
16339 s/'"$ac_delim"'$/,g/; t
16341 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16342 ' >>$CONFIG_STATUS <conf$$subs.sed
16343 rm -f conf$$subs.sed
16344 cat >>$CONFIG_STATUS <<_ACEOF
16351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16353 # trailing colons and then remove the whole line if VPATH becomes empty
16354 # (actually we leave an empty line to preserve line numbers).
16355 if test "x$srcdir" = x.; then
16356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16357 s/:*\$(srcdir):*/:/
16358 s/:*\${srcdir}:*/:/
16360 s/^\([^=]*=[ ]*\):*/\1/
16366 cat >>$CONFIG_STATUS <<\_ACEOF
16367 fi # test -n "$CONFIG_FILES"
16370 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16373 :[FHLC]) ac_mode=$ac_tag; continue;;
16375 case $ac_mode$ac_tag in
16377 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16378 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16379 { (exit 1); exit 1; }; };;
16380 :[FH]-) ac_tag=-:-;;
16381 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16398 -) ac_f="$tmp/stdin";;
16399 *) # Look for the file first in the build tree, then in the source tree
16400 # (if the path is not absolute). The absolute path cannot be DOS-style,
16401 # because $ac_f cannot contain `:'.
16405 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16407 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16408 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16409 { (exit 1); exit 1; }; };;
16411 ac_file_inputs="$ac_file_inputs $ac_f"
16414 # Let's still pretend it is `configure' which instantiates (i.e., don't
16415 # use $as_me), people would be surprised to read:
16416 # /* config.h. Generated by config.status. */
16417 configure_input="Generated from "`IFS=:
16418 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16419 if test x"$ac_file" != x-; then
16420 configure_input="$ac_file. $configure_input"
16421 { echo "$as_me:$LINENO: creating $ac_file" >&5
16422 echo "$as_me: creating $ac_file" >&6;}
16426 *:-:* | *:-) cat >"$tmp/stdin";;
16431 ac_dir=`$as_dirname -- "$ac_file" ||
16432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16433 X"$ac_file" : 'X\(//\)[^/]' \| \
16434 X"$ac_file" : 'X\(//\)$' \| \
16435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16441 /^X\(\/\/\)[^/].*/{
16456 -*) as_dir=./$as_dir;;
16458 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16462 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16463 *) as_qdir=$as_dir;;
16465 as_dirs="'$as_qdir' $as_dirs"
16466 as_dir=`$as_dirname -- "$as_dir" ||
16467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468 X"$as_dir" : 'X\(//\)[^/]' \| \
16469 X"$as_dir" : 'X\(//\)$' \| \
16470 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16476 /^X\(\/\/\)[^/].*/{
16489 test -d "$as_dir" && break
16491 test -z "$as_dirs" || eval "mkdir $as_dirs"
16492 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16493 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16494 { (exit 1); exit 1; }; }; }
16498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16501 # A ".." for each directory in $ac_dir_suffix.
16502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16503 case $ac_top_builddir_sub in
16504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16508 ac_abs_top_builddir=$ac_pwd
16509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16510 # for backward compatibility:
16511 ac_top_builddir=$ac_top_build_prefix
16514 .) # We are building in place.
16516 ac_top_srcdir=$ac_top_builddir_sub
16517 ac_abs_top_srcdir=$ac_pwd ;;
16518 [\\/]* | ?:[\\/]* ) # Absolute name.
16519 ac_srcdir=$srcdir$ac_dir_suffix;
16520 ac_top_srcdir=$srcdir
16521 ac_abs_top_srcdir=$srcdir ;;
16522 *) # Relative name.
16523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16524 ac_top_srcdir=$ac_top_build_prefix$srcdir
16525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16537 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16538 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16542 cat >>$CONFIG_STATUS <<\_ACEOF
16543 # If the template does not know about datarootdir, expand it.
16544 # FIXME: This hack should be removed a few years after 2.60.
16545 ac_datarootdir_hack=; ac_datarootdir_seen=
16547 case `sed -n '/datarootdir/ {
16556 ' $ac_file_inputs` in
16557 *datarootdir*) ac_datarootdir_seen=yes;;
16558 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16559 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16560 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16562 cat >>$CONFIG_STATUS <<_ACEOF
16563 ac_datarootdir_hack='
16564 s&@datadir@&$datadir&g
16565 s&@docdir@&$docdir&g
16566 s&@infodir@&$infodir&g
16567 s&@localedir@&$localedir&g
16568 s&@mandir@&$mandir&g
16569 s&\\\${datarootdir}&$datarootdir&g' ;;
16573 # Neutralize VPATH when `$srcdir' = `.'.
16574 # Shell code in configure.ac might set extrasub.
16575 # FIXME: do we really want to maintain this feature?
16576 cat >>$CONFIG_STATUS <<_ACEOF
16580 cat >>$CONFIG_STATUS <<\_ACEOF
16582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16583 s&@configure_input@&$configure_input&;t t
16584 s&@top_builddir@&$ac_top_builddir_sub&;t t
16585 s&@srcdir@&$ac_srcdir&;t t
16586 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16587 s&@top_srcdir@&$ac_top_srcdir&;t t
16588 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16589 s&@builddir@&$ac_builddir&;t t
16590 s&@abs_builddir@&$ac_abs_builddir&;t t
16591 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16592 s&@INSTALL@&$ac_INSTALL&;t t
16593 $ac_datarootdir_hack
16594 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16596 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16597 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16598 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16599 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16600 which seems to be undefined. Please make sure it is defined." >&5
16601 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16602 which seems to be undefined. Please make sure it is defined." >&2;}
16606 -) cat "$tmp/out"; rm -f "$tmp/out";;
16607 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16612 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16613 echo "$as_me: executing $ac_file commands" >&6;}
16618 case $ac_file$ac_mode in
16620 for ac_file in $CONFIG_FILES; do
16621 # Support "outfile[:infile[:infile...]]"
16623 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16625 # PO directories have a Makefile.in generated from Makefile.in.in.
16626 case "$ac_file" in */Makefile.in)
16627 # Adjust a relative srcdir.
16628 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16629 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16630 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16631 # In autoconf-2.13 it is called $ac_given_srcdir.
16632 # In autoconf-2.50 it is called $srcdir.
16633 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16634 case "$ac_given_srcdir" in
16635 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16636 /*) top_srcdir="$ac_given_srcdir" ;;
16637 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16639 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16640 rm -f "$ac_dir/POTFILES"
16641 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16642 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16643 POMAKEFILEDEPS="POTFILES.in"
16644 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16645 # on $ac_dir but don't depend on user-specified configuration
16647 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16648 # The LINGUAS file contains the set of available languages.
16649 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16650 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16652 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16653 # Hide the ALL_LINGUAS assigment from automake.
16654 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16655 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16657 # The set of available languages was given in configure.in.
16658 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16661 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16662 # Compute UPDATEPOFILES
16663 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16664 # Compute DUMMYPOFILES
16665 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16667 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16668 case "$ac_given_srcdir" in
16670 *) srcdirpre='$(srcdir)/' ;;
16676 for lang in $ALL_LINGUAS; do
16677 POFILES="$POFILES $srcdirpre$lang.po"
16678 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16679 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16680 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16682 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16683 # environment variable.
16685 if test -n "$ALL_LINGUAS"; then
16686 for presentlang in $ALL_LINGUAS; do
16688 if test "%UNSET%" != "$LINGUAS"; then
16689 desiredlanguages="$LINGUAS"
16691 desiredlanguages="$ALL_LINGUAS"
16693 for desiredlang in $desiredlanguages; do
16694 # Use the presentlang catalog if desiredlang is
16695 # a. equal to presentlang, or
16696 # b. a variant of presentlang (because in this case,
16697 # presentlang can be used as a fallback for messages
16698 # which are not translated in the desiredlang catalog).
16699 case "$desiredlang" in
16700 "$presentlang"*) useit=yes;;
16703 if test $useit = yes; then
16704 INST_LINGUAS="$INST_LINGUAS $presentlang"
16709 if test -n "$INST_LINGUAS"; then
16710 for lang in $INST_LINGUAS; do
16711 CATALOGS="$CATALOGS $lang.gmo"
16714 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16715 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"
16716 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16717 if test -f "$f"; then
16719 *.orig | *.bak | *~) ;;
16720 *) cat "$f" >> "$ac_dir/Makefile" ;;
16733 { (exit 0); exit 0; }
16735 chmod +x $CONFIG_STATUS
16736 ac_clean_files=$ac_clean_files_save
16739 # configure is writing to config.log, and then calls config.status.
16740 # config.status does its own redirection, appending to config.log.
16741 # Unfortunately, on DOS this fails, as config.log is still kept open
16742 # by configure, so config.status won't be able to write to it; its
16743 # output is simply discarded. So we exec the FD to /dev/null,
16744 # effectively closing config.log, so it can be properly (re)opened and
16745 # appended to by config.status. When coming back to configure, we
16746 # need to make the FD available again.
16747 if test "$no_create" != yes; then
16749 ac_config_status_args=
16750 test "$silent" = yes &&
16751 ac_config_status_args="$ac_config_status_args --quiet"
16753 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16755 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16756 # would make configure fail if this is the last instruction.
16757 $ac_cs_success || { (exit 1); exit 1; }
16760 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi