2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
721 BUILD_INCLUDED_LIBINTL
728 INTL_LIBTOOL_SUFFIX_PREFIX
772 ac_subst_files='MCONFIG
779 PUBLIC_CONFIG_HEADER'
780 ac_precious_vars='build_alias
791 # Initialize some variables set by options.
793 ac_init_version=false
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
895 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
896 { (exit 1); exit 1; }; }
897 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
898 eval enable_$ac_feature=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 -enable-* | --enable-*)
911 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
914 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
915 { (exit 1); exit 1; }; }
916 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
917 eval enable_$ac_feature=\$ac_optarg ;;
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
932 -help | --help | --hel | --he | -h)
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 htmldir=$ac_optarg ;;
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
962 -libdir | --libdir | --libdi | --libd)
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
974 -localedir | --localedir | --localedi | --localed | --locale)
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 # Obsolete; use --without-fp.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1053 -psdir | --psdir | --psdi | --psd | --ps)
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 sbindir=$ac_optarg ;;
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 sharedstatedir=$ac_optarg ;;
1079 -site | --site | --sit)
1081 -site=* | --site=* | --sit=*)
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1108 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid package name: $ac_package" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1114 eval with_$ac_package=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid package name: $ac_package" >&2
1121 { (exit 1); exit 1; }; }
1122 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1123 eval with_$ac_package=no ;;
1126 # Obsolete; use --with-x.
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) { echo "$as_me: error: unrecognized option: $ac_option
1144 Try \`$0 --help' for more information." >&2
1145 { (exit 1); exit 1; }; }
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153 { (exit 1); exit 1; }; }
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 { echo "$as_me: error: missing argument to $ac_option" >&2
1171 { (exit 1); exit 1; }; }
1174 # Be sure to have absolute directory names.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1186 { (exit 1); exit 1; }; }
1189 # There might be people who depend on the old broken behavior: `$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1194 target=$target_alias
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x; then
1198 if test "x$build_alias" = x; then
1199 cross_compiling=maybe
1200 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201 If a cross compiler is detected then cross compile mode will be used." >&2
1202 elif test "x$build_alias" != "x$host_alias"; then
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210 test "$silent" = yes && exec 6>/dev/null
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 { echo "$as_me: error: Working directory cannot be determined" >&2
1217 { (exit 1); exit 1; }; }
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 { echo "$as_me: error: pwd does not report name of working directory" >&2
1220 { (exit 1); exit 1; }; }
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$0" ||
1228 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$0" : 'X\(//\)[^/]' \| \
1230 X"$0" : 'X\(//\)$' \| \
1231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1255 ac_srcdir_defaulted=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1260 { (exit 1); exit 1; }; }
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1265 { (exit 1); exit 1; }; }
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures this package to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 if test -n "$ac_init_help"; then
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --enable-maintainer-mode enable makefile rules useful for maintainers
1362 --enable-compression enable EXPERIMENTAL compression support
1363 --enable-htree enable EXPERIMENTAL htree directory support
1364 --enable-elf-shlibs select ELF shared libraries
1365 --enable-bsd-shlibs select BSD shared libraries
1366 --enable-profile build profiling libraries
1367 --enable-checker build checker libraries
1368 --enable-jbd-debug enable journal debugging
1369 --enable-blkid-debug enable blkid debugging
1370 --disable-testio-debug disable the use of the test I/O manager for debugging
1371 --disable-debugfs disable support of debugfs program
1372 --disable-imager disable support of e2image program
1373 --disable-resizer disable support of e2resize program
1374 --enable-fsck build fsck wrapper program
1375 --enable-e2initrd-helper build e2initrd-helper program
1376 --disable-tls disable use of thread local support
1377 --disable-uuidd disable building the uuid daemon
1378 --disable-nls do not use Native Language Support
1379 --disable-rpath do not hardcode runtime library paths
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1384 --with-diet-libc use diet libc
1385 --with-cc=COMPILER select compiler to use
1386 --with-linker=LINKER select linker to use
1387 --with-ccopts=CCOPTS select compiler command line options
1388 --with-ldopts=LDOPTS select linker command line options
1389 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1390 --with-gnu-ld assume the C compiler uses GNU ld default=no
1391 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1392 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1393 --with-included-gettext use the GNU gettext library included here
1394 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1395 --without-libintl-prefix don't search for libintl in includedir and libdir
1397 Some influential environment variables:
1398 CC C compiler command
1399 CFLAGS C compiler flags
1400 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1401 nonstandard directory <lib dir>
1402 LIBS libraries to pass to the linker, e.g. -l<library>
1403 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404 you have headers in a nonstandard directory <include dir>
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" || continue
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1437 .) # We are building in place.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1461 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1471 generated by GNU Autoconf 2.61
1473 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1474 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1480 cat >config.log <<_ACEOF
1481 This file contains any messages produced by compilers while
1482 running configure, to aid debugging if configure makes a mistake.
1484 It was created by $as_me, which was
1485 generated by GNU Autoconf 2.61. Invocation command line was
1497 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1498 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1499 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1500 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1501 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1503 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1504 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1506 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1508 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1509 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1510 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1511 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1512 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 test -z "$as_dir" && as_dir=.
1521 echo "PATH: $as_dir"
1537 # Keep a trace of the command line.
1538 # Strip out --no-create and --no-recursion so they do not pile up.
1539 # Strip out --silent because we don't want to record it for future runs.
1540 # Also quote any args containing shell meta-characters.
1541 # Make two passes to allow for proper duplicate-argument suppression.
1545 ac_must_keep_next=false
1551 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1553 | -silent | --silent | --silen | --sile | --sil)
1556 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1559 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1561 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1562 if test $ac_must_keep_next = true; then
1563 ac_must_keep_next=false # Got value, back to normal.
1566 *=* | --config-cache | -C | -disable-* | --disable-* \
1567 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1568 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1569 | -with-* | --with-* | -without-* | --without-* | --x)
1570 case "$ac_configure_args0 " in
1571 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1574 -* ) ac_must_keep_next=true ;;
1577 ac_configure_args="$ac_configure_args '$ac_arg'"
1582 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1583 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1585 # When interrupted or exit'd, cleanup temporary files, and complete
1586 # config.log. We remove comments because anyway the quotes in there
1587 # would cause problems or look ugly.
1588 # WARNING: Use '\'' to represent an apostrophe within the trap.
1589 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1590 trap 'exit_status=$?
1591 # Save into config.log some information that might help in debugging.
1596 ## ---------------- ##
1597 ## Cache variables. ##
1598 ## ---------------- ##
1601 # The following way of writing the cache mishandles newlines in values,
1603 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1604 eval ac_val=\$$ac_var
1608 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1609 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1612 _ | IFS | as_nl) ;; #(
1613 *) $as_unset $ac_var ;;
1618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1619 *${as_nl}ac_space=\ *)
1621 "s/'\''/'\''\\\\'\'''\''/g;
1622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633 ## ----------------- ##
1634 ## Output variables. ##
1635 ## ----------------- ##
1638 for ac_var in $ac_subst_vars
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 echo "$ac_var='\''$ac_val'\''"
1648 if test -n "$ac_subst_files"; then
1650 ## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##
1655 for ac_var in $ac_subst_files
1657 eval ac_val=\$$ac_var
1659 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661 echo "$ac_var='\''$ac_val'\''"
1666 if test -s confdefs.h; then
1676 test "$ac_signal" != 0 &&
1677 echo "$as_me: caught signal $ac_signal"
1678 echo "$as_me: exit $exit_status"
1680 rm -f core *.core core.conftest.* &&
1681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1684 for ac_signal in 1 2 13 15; do
1685 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 rm -f -r conftest* confdefs.h
1692 # Predefined preprocessor variables.
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_NAME "$PACKAGE_NAME"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1719 # Let the site file select an alternate cache file if it wants to.
1720 # Prefer explicitly selected file to automatically selected ones.
1721 if test -n "$CONFIG_SITE"; then
1722 set x "$CONFIG_SITE"
1723 elif test "x$prefix" != xNONE; then
1724 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1726 set x "$ac_default_prefix/share/config.site" \
1727 "$ac_default_prefix/etc/config.site"
1732 if test -r "$ac_site_file"; then
1733 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1734 echo "$as_me: loading site script $ac_site_file" >&6;}
1735 sed 's/^/| /' "$ac_site_file" >&5
1740 if test -r "$cache_file"; then
1741 # Some versions of bash will fail to source /dev/null (special
1742 # files actually), so we avoid doing that.
1743 if test -f "$cache_file"; then
1744 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1745 echo "$as_me: loading cache $cache_file" >&6;}
1747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1748 *) . "./$cache_file";;
1752 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1753 echo "$as_me: creating cache $cache_file" >&6;}
1757 # Check that the precious variables saved in the cache have kept the same
1759 ac_cache_corrupted=false
1760 for ac_var in $ac_precious_vars; do
1761 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1762 eval ac_new_set=\$ac_env_${ac_var}_set
1763 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1764 eval ac_new_val=\$ac_env_${ac_var}_value
1765 case $ac_old_set,$ac_new_set in
1767 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1768 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1769 ac_cache_corrupted=: ;;
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1772 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1776 if test "x$ac_old_val" != "x$ac_new_val"; then
1777 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1778 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1779 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1780 echo "$as_me: former value: $ac_old_val" >&2;}
1781 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1782 echo "$as_me: current value: $ac_new_val" >&2;}
1783 ac_cache_corrupted=:
1786 # Pass precious variables to config.status.
1787 if test "$ac_new_set" = set; then
1789 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1790 *) ac_arg=$ac_var=$ac_new_val ;;
1792 case " $ac_configure_args " in
1793 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1794 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1798 if $ac_cache_corrupted; then
1799 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1800 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1801 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1802 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1803 { (exit 1); exit 1; }; }
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 for ac_dir in config "$srcdir"/config; do
1832 if test -f "$ac_dir/install-sh"; then
1834 ac_install_sh="$ac_aux_dir/install-sh -c"
1836 elif test -f "$ac_dir/install.sh"; then
1838 ac_install_sh="$ac_aux_dir/install.sh -c"
1840 elif test -f "$ac_dir/shtool"; then
1842 ac_install_sh="$ac_aux_dir/shtool install -c"
1846 if test -z "$ac_aux_dir"; then
1847 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1848 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1849 { (exit 1); exit 1; }; }
1852 # These three variables are undocumented and unsupported,
1853 # and are intended to be withdrawn in a future Autoconf release.
1854 # They can cause serious problems if a builder's source tree is in a directory
1855 # whose full name contains unusual characters.
1856 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1857 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1858 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1864 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1865 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1866 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1868 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1869 MONTH=`echo $DATE | awk -F- '{print $2}'`
1870 YEAR=`echo $DATE | awk -F- '{print $3}'`
1872 if expr $YEAR ">" 1900 > /dev/null ; then
1873 E2FSPROGS_YEAR=$YEAR
1874 elif expr $YEAR ">" 90 >/dev/null ; then
1875 E2FSPROGS_YEAR=19$YEAR
1877 E2FSPROGS_YEAR=20$YEAR
1881 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1882 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1883 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1884 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1885 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1886 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1887 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1888 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1889 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1890 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1891 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1892 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1893 *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1894 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1897 base_ver=`echo $E2FSPROGS_VERSION | \
1898 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1900 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1902 case $E2FSPROGS_VERSION in
1904 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1907 E2FSPROGS_PKGVER="$base_ver"
1911 unset DATE MONTH YEAR base_ver pre_vers date_spec
1912 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1913 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1914 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1915 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1921 # Make sure we can run config.sub.
1922 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1923 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1924 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1925 { (exit 1); exit 1; }; }
1927 { echo "$as_me:$LINENO: checking build system type" >&5
1928 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1929 if test "${ac_cv_build+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 ac_build_alias=$build_alias
1933 test "x$ac_build_alias" = x &&
1934 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1935 test "x$ac_build_alias" = x &&
1936 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1937 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1938 { (exit 1); exit 1; }; }
1939 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1940 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1941 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1942 { (exit 1); exit 1; }; }
1945 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1946 echo "${ECHO_T}$ac_cv_build" >&6; }
1947 case $ac_cv_build in
1949 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1950 echo "$as_me: error: invalid value of canonical build" >&2;}
1951 { (exit 1); exit 1; }; };;
1954 ac_save_IFS=$IFS; IFS='-'
1960 # Remember, the first character of IFS is used to create $*,
1961 # except with old shells:
1964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1967 { echo "$as_me:$LINENO: checking host system type" >&5
1968 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1969 if test "${ac_cv_host+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 if test "x$host_alias" = x; then
1973 ac_cv_host=$ac_cv_build
1975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1976 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1977 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1978 { (exit 1); exit 1; }; }
1982 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1983 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1987 echo "$as_me: error: invalid value of canonical host" >&2;}
1988 { (exit 1); exit 1; }; };;
1991 ac_save_IFS=$IFS; IFS='-'
1997 # Remember, the first character of IFS is used to create $*,
1998 # except with old shells:
2001 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2006 # Check whether --with-diet-libc was given.
2007 if test "${with_diet_libc+set}" = set; then
2008 withval=$with_diet_libc; CC="diet cc -nostdinc"
2010 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2011 echo "${ECHO_T}CC=$CC" >&6; }
2014 # Check whether --with-cc was given.
2015 if test "${with_cc+set}" = set; then
2016 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2017 echo "${ECHO_T}CC=$withval" >&6; }
2020 if test -z "$CC" ; then CC=cc; fi
2021 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2022 echo "${ECHO_T}CC defaults to $CC" >&6; }
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2031 if test -n "$ac_tool_prefix"; then
2032 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2033 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2070 if test -z "$ac_cv_prog_CC"; then
2072 # Extract the first word of "gcc", so it can be a program name with args.
2073 set dummy gcc; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$ac_ct_CC"; then
2080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_ac_ct_CC="gcc"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2100 if test -n "$ac_ct_CC"; then
2101 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2102 echo "${ECHO_T}$ac_ct_CC" >&6; }
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2108 if test "x$ac_ct_CC" = x; then
2111 case $cross_compiling:$ac_tool_warned in
2113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&5
2116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2117 whose name does not start with the host triplet. If you think this
2118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2119 ac_tool_warned=yes ;;
2127 if test -z "$CC"; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}cc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_CC="${ac_tool_prefix}cc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test -n "$CC"; then
2158 { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test $ac_prog_rejected = yes; then
2200 # We found a bogon in the path, so make sure we never use it.
2201 set dummy $ac_cv_prog_CC
2203 if test $# != 0; then
2204 # We chose a different compiler from the bogus one.
2205 # However, it has the same basename, so the bogon will be chosen
2206 # first if we set CC to just the basename; use the full file name.
2208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2214 if test -n "$CC"; then
2215 { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2218 { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2224 if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2226 for ac_prog in cl.exe
2228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 if test -n "$CC"; then
2257 { echo "$as_me:$LINENO: result: $CC" >&5
2258 echo "${ECHO_T}$CC" >&6; }
2260 { echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6; }
2265 test -n "$CC" && break
2268 if test -z "$CC"; then
2270 for ac_prog in cl.exe
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$ac_ct_CC"; then
2280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_ac_ct_CC="$ac_prog"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2300 if test -n "$ac_ct_CC"; then
2301 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2302 echo "${ECHO_T}$ac_ct_CC" >&6; }
2304 { echo "$as_me:$LINENO: result: no" >&5
2305 echo "${ECHO_T}no" >&6; }
2309 test -n "$ac_ct_CC" && break
2312 if test "x$ac_ct_CC" = x; then
2315 case $cross_compiling:$ac_tool_warned in
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2332 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: no acceptable C compiler found in \$PATH
2335 See \`config.log' for more details." >&2;}
2336 { (exit 1); exit 1; }; }
2338 # Provide some information about the compiler.
2339 echo "$as_me:$LINENO: checking for C compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (ac_try="$ac_compiler --version >&5"
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compiler --version >&5") 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351 { (ac_try="$ac_compiler -v >&5"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compiler -v >&5") 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (ac_try="$ac_compiler -V >&5"
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2392 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2394 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # List of possible output files, starting from the most likely.
2397 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2398 # only as a last resort. b.out is created by i960 compilers.
2399 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2401 # The IRIX 6 linker writes into existing files which may not be
2402 # executable, retaining their permissions. Remove them first so a
2403 # subsequent execution test works.
2405 for ac_file in $ac_files
2408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2409 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2414 if { (ac_try="$ac_link_default"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420 (eval "$ac_link_default") 2>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; then
2424 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2425 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2426 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2427 # so that the user can short-circuit this test for compilers unknown to
2429 for ac_file in $ac_files ''
2431 test -f "$ac_file" || continue
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2436 # We found the default executable, but exeext='' is most
2440 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2442 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2444 # We set ac_cv_exeext here because the later test for it is not
2445 # safe: cross compilers may not add the suffix if given an `-o'
2446 # argument, so we may need to know it at that point already.
2447 # Even if this section looks crufty: it has the advantage of
2454 test "$ac_cv_exeext" = no && ac_cv_exeext=
2460 { echo "$as_me:$LINENO: result: $ac_file" >&5
2461 echo "${ECHO_T}$ac_file" >&6; }
2462 if test -z "$ac_file"; then
2463 echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2466 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: C compiler cannot create executables
2469 See \`config.log' for more details." >&2;}
2470 { (exit 77); exit 77; }; }
2473 ac_exeext=$ac_cv_exeext
2475 # Check that the compiler produces executables we can run. If not, either
2476 # the compiler is broken, or we cross compile.
2477 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2478 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2479 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2480 # If not cross compiling, check that we can run a simple program.
2481 if test "$cross_compiling" != yes; then
2482 if { ac_try='./$ac_file'
2483 { (case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488 (eval "$ac_try") 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }; }; then
2494 if test "$cross_compiling" = maybe; then
2497 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: cannot run C compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details." >&2;}
2503 { (exit 1); exit 1; }; }
2507 { echo "$as_me:$LINENO: result: yes" >&5
2508 echo "${ECHO_T}yes" >&6; }
2510 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2511 ac_clean_files=$ac_clean_files_save
2512 # Check that the compiler produces executables we can run. If not, either
2513 # the compiler is broken, or we cross compile.
2514 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2515 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2516 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2517 echo "${ECHO_T}$cross_compiling" >&6; }
2519 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2520 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2521 if { (ac_try="$ac_link"
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_link") 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; then
2531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2532 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2533 # work properly (i.e., refer to `conftest.exe'), while it won't with
2535 for ac_file in conftest.exe conftest conftest.*; do
2536 test -f "$ac_file" || continue
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2545 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2548 See \`config.log' for more details." >&2;}
2549 { (exit 1); exit 1; }; }
2552 rm -f conftest$ac_cv_exeext
2553 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2554 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2556 rm -f conftest.$ac_ext
2557 EXEEXT=$ac_cv_exeext
2559 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2560 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2561 if test "${ac_cv_objext+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 cat >conftest.$ac_ext <<_ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2579 rm -f conftest.o conftest.obj
2580 if { (ac_try="$ac_compile"
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586 (eval "$ac_compile") 2>&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; then
2590 for ac_file in conftest.o conftest.obj conftest.*; do
2591 test -f "$ac_file" || continue;
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details." >&2;}
2606 { (exit 1); exit 1; }; }
2609 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2612 echo "${ECHO_T}$ac_cv_objext" >&6; }
2613 OBJEXT=$ac_cv_objext
2615 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2616 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2617 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2638 rm -f conftest.$ac_objext
2639 if { (ac_try="$ac_compile"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compile") 2>conftest.er1
2647 grep -v '^ *+' conftest.er1 >conftest.err
2649 cat conftest.err >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest.$ac_objext; then
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2667 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2669 GCC=`test $ac_compiler_gnu = yes && echo yes`
2670 ac_test_CFLAGS=${CFLAGS+set}
2671 ac_save_CFLAGS=$CFLAGS
2672 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2673 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2674 if test "${ac_cv_prog_cc_g+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 ac_save_c_werror_flag=$ac_c_werror_flag
2678 ac_c_werror_flag=yes
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2719 cat >conftest.$ac_ext <<_ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2734 rm -f conftest.$ac_objext
2735 if { (ac_try="$ac_compile"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compile") 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } && {
2748 test -z "$ac_c_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest.$ac_objext; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2773 rm -f conftest.$ac_objext
2774 if { (ac_try="$ac_compile"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_compile") 2>conftest.er1
2782 grep -v '^ *+' conftest.er1 >conftest.err
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } && {
2787 test -z "$ac_c_werror_flag" ||
2788 test ! -s conftest.err
2789 } && test -s conftest.$ac_objext; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2807 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2808 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2809 if test "$ac_test_CFLAGS" = set; then
2810 CFLAGS=$ac_save_CFLAGS
2811 elif test $ac_cv_prog_cc_g = yes; then
2812 if test "$GCC" = yes; then
2818 if test "$GCC" = yes; then
2824 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2825 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_cc_c89+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 ac_cv_prog_cc_c89=no
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2839 #include <sys/types.h>
2840 #include <sys/stat.h>
2841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2842 struct buf { int x; };
2843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2844 static char *e (p, i)
2850 static char *f (char * (*g) (char **, int), char **p, ...)
2855 s = g (p, va_arg (v,int));
2860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2861 function prototypes and stuff, but not '\xHH' hex character constants.
2862 These don't provoke an error unfortunately, instead are silently treated
2863 as 'x'. The following induces an error, until -std is added to get
2864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2865 array size at least. It's necessary to write '\x00'==0 to get something
2866 that's true only with -std. */
2867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2870 inside strings and character constants. */
2872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2891 CC="$ac_save_CC $ac_arg"
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.$ac_objext; then
2909 ac_cv_prog_cc_c89=$ac_arg
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2917 rm -f core conftest.err conftest.$ac_objext
2918 test "x$ac_cv_prog_cc_c89" != "xno" && break
2920 rm -f conftest.$ac_ext
2925 case "x$ac_cv_prog_cc_c89" in
2927 { echo "$as_me:$LINENO: result: none needed" >&5
2928 echo "${ECHO_T}none needed" >&6; } ;;
2930 { echo "$as_me:$LINENO: result: unsupported" >&5
2931 echo "${ECHO_T}unsupported" >&6; } ;;
2933 CC="$CC $ac_cv_prog_cc_c89"
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2950 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2952 # On Suns, sometimes $CPP names a directory.
2953 if test -n "$CPP" && test -d "$CPP"; then
2956 if test -z "$CPP"; then
2957 if test "${ac_cv_prog_CPP+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 # Double quotes because CPP needs to be expanded
2961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2964 for ac_c_preproc_warn_flag in '' yes
2966 # Use a header file that comes with gcc, so configuring glibc
2967 # with a fresh cross-compiler works.
2968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969 # <limits.h> exists even on freestanding compilers.
2970 # On the NeXT, cc -E runs the code through the compiler's parser,
2971 # not just through cpp. "Syntax error" is here to catch this case.
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2979 # include <limits.h>
2981 # include <assert.h>
2985 if { (ac_try="$ac_cpp conftest.$ac_ext"
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2993 grep -v '^ *+' conftest.er1 >conftest.err
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } >/dev/null && {
2998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Broken: fails on valid input.
3010 rm -f conftest.err conftest.$ac_ext
3012 # OK, works on sane cases. Now check whether nonexistent headers
3013 # can be detected and how.
3014 cat >conftest.$ac_ext <<_ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <ac_nonexistent.h>
3022 if { (ac_try="$ac_cpp conftest.$ac_ext"
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3038 # Broken: success on invalid input.
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Passes both tests.
3049 rm -f conftest.err conftest.$ac_ext
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3066 { echo "$as_me:$LINENO: result: $CPP" >&5
3067 echo "${ECHO_T}$CPP" >&6; }
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3084 # include <limits.h>
3086 # include <assert.h>
3090 if { (ac_try="$ac_cpp conftest.$ac_ext"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null && {
3103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 # Broken: fails on valid input.
3115 rm -f conftest.err conftest.$ac_ext
3117 # OK, works on sane cases. Now check whether nonexistent headers
3118 # can be detected and how.
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125 #include <ac_nonexistent.h>
3127 if { (ac_try="$ac_cpp conftest.$ac_ext"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3143 # Broken: success on invalid input.
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 # Passes both tests.
3154 rm -f conftest.err conftest.$ac_ext
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.$ac_ext
3159 if $ac_preproc_ok; then
3162 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&2;}
3166 { (exit 1); exit 1; }; }
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176 # Check whether --with-linker was given.
3177 if test "${with_linker+set}" = set; then
3178 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3179 echo "${ECHO_T}LD=$withval" >&6; }
3182 if test -z "$LD" ; then LD=$CC; fi
3183 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3184 echo "${ECHO_T}LD defaults to $LD" >&6; }
3189 # Check whether --with-ccopts was given.
3190 if test "${with_ccopts+set}" = set; then
3191 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3192 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3197 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3199 if test "${ac_cv_path_GREP+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 # Extract the first word of "grep ggrep" to use in msg output
3203 if test -z "$GREP"; then
3204 set dummy grep ggrep; ac_prog_name=$2
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 ac_path_GREP_found=false
3209 # Loop through the user's path and test for each of PROGNAME-LIST
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in grep ggrep; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3218 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3219 # Check for GNU ac_path_GREP and select it if it is found.
3220 # Check for GNU $ac_path_GREP
3221 case `"$ac_path_GREP" --version 2>&1` in
3223 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3229 cat "conftest.in" "conftest.in" >"conftest.tmp"
3230 mv "conftest.tmp" "conftest.in"
3231 cp "conftest.in" "conftest.nl"
3232 echo 'GREP' >> "conftest.nl"
3233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235 ac_count=`expr $ac_count + 1`
3236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3237 # Best one so far, save it but keep looking for a better one
3238 ac_cv_path_GREP="$ac_path_GREP"
3239 ac_path_GREP_max=$ac_count
3241 # 10*(2^10) chars as input seems more than enough
3242 test $ac_count -gt 10 && break
3244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248 $ac_path_GREP_found && break 3
3258 GREP="$ac_cv_path_GREP"
3259 if test -z "$GREP"; then
3260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262 { (exit 1); exit 1; }; }
3266 ac_cv_path_GREP=$GREP
3271 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3272 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3273 GREP="$ac_cv_path_GREP"
3276 { echo "$as_me:$LINENO: checking for egrep" >&5
3277 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3278 if test "${ac_cv_path_EGREP+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3282 then ac_cv_path_EGREP="$GREP -E"
3284 # Extract the first word of "egrep" to use in msg output
3285 if test -z "$EGREP"; then
3286 set dummy egrep; ac_prog_name=$2
3287 if test "${ac_cv_path_EGREP+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 ac_path_EGREP_found=false
3291 # Loop through the user's path and test for each of PROGNAME-LIST
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3296 test -z "$as_dir" && as_dir=.
3297 for ac_prog in egrep; do
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3300 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3301 # Check for GNU ac_path_EGREP and select it if it is found.
3302 # Check for GNU $ac_path_EGREP
3303 case `"$ac_path_EGREP" --version 2>&1` in
3305 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3308 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3311 cat "conftest.in" "conftest.in" >"conftest.tmp"
3312 mv "conftest.tmp" "conftest.in"
3313 cp "conftest.in" "conftest.nl"
3314 echo 'EGREP' >> "conftest.nl"
3315 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3317 ac_count=`expr $ac_count + 1`
3318 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3319 # Best one so far, save it but keep looking for a better one
3320 ac_cv_path_EGREP="$ac_path_EGREP"
3321 ac_path_EGREP_max=$ac_count
3323 # 10*(2^10) chars as input seems more than enough
3324 test $ac_count -gt 10 && break
3326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330 $ac_path_EGREP_found && break 3
3340 EGREP="$ac_cv_path_EGREP"
3341 if test -z "$EGREP"; then
3342 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344 { (exit 1); exit 1; }; }
3348 ac_cv_path_EGREP=$EGREP
3354 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3355 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3356 EGREP="$ac_cv_path_EGREP"
3359 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3360 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3361 if test "${ac_cv_header_stdc+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3383 rm -f conftest.$ac_objext
3384 if { (ac_try="$ac_compile"
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_header_stdc=yes
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3405 ac_cv_header_stdc=no
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 if test $ac_cv_header_stdc = yes; then
3411 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 $EGREP "memchr" >/dev/null 2>&1; then
3425 ac_cv_header_stdc=no
3431 if test $ac_cv_header_stdc = yes; then
3432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3433 cat >conftest.$ac_ext <<_ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3443 $EGREP "free" >/dev/null 2>&1; then
3446 ac_cv_header_stdc=no
3452 if test $ac_cv_header_stdc = yes; then
3453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3454 if test "$cross_compiling" = yes; then
3457 cat >conftest.$ac_ext <<_ACEOF
3460 cat confdefs.h >>conftest.$ac_ext
3461 cat >>conftest.$ac_ext <<_ACEOF
3462 /* end confdefs.h. */
3465 #if ((' ' & 0x0FF) == 0x020)
3466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3469 # define ISLOWER(c) \
3470 (('a' <= (c) && (c) <= 'i') \
3471 || ('j' <= (c) && (c) <= 'r') \
3472 || ('s' <= (c) && (c) <= 'z'))
3473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3481 for (i = 0; i < 256; i++)
3482 if (XOR (islower (i), ISLOWER (i))
3483 || toupper (i) != TOUPPER (i))
3488 rm -f conftest$ac_exeext
3489 if { (ac_try="$ac_link"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_link") 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3499 { (case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_try") 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3510 echo "$as_me: program exited with status $ac_status" >&5
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3515 ac_cv_header_stdc=no
3517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3523 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3524 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3525 if test $ac_cv_header_stdc = yes; then
3527 cat >>confdefs.h <<\_ACEOF
3528 #define STDC_HEADERS 1
3533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3544 inttypes.h stdint.h unistd.h
3546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 $ac_includes_default
3560 #include <$ac_header>
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compile") 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } && {
3576 test -z "$ac_c_werror_flag" ||
3577 test ! -s conftest.err
3578 } && test -s conftest.$ac_objext; then
3579 eval "$as_ac_Header=yes"
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 eval "$as_ac_Header=no"
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_res=`eval echo '${'$as_ac_Header'}'`
3590 { echo "$as_me:$LINENO: result: $ac_res" >&5
3591 echo "${ECHO_T}$ac_res" >&6; }
3592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3593 cat >>confdefs.h <<_ACEOF
3594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3602 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3603 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3604 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3605 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3609 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3611 # Is the header compilable?
3612 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3613 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3620 $ac_includes_default
3621 #include <linux/fs.h>
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_header_compiler=yes
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3645 ac_header_compiler=no
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3650 echo "${ECHO_T}$ac_header_compiler" >&6; }
3652 # Is the header present?
3653 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3654 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #include <linux/fs.h>
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3679 ac_header_preproc=yes
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 ac_header_preproc=no
3687 rm -f conftest.err conftest.$ac_ext
3688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3689 echo "${ECHO_T}$ac_header_preproc" >&6; }
3691 # So? What about this header?
3692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3694 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3695 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3697 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3698 ac_header_preproc=yes
3701 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3702 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3704 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3706 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3708 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3710 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3712 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3716 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3717 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3718 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 ac_cv_header_linux_fs_h=$ac_header_preproc
3723 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3724 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3727 if test $ac_cv_header_linux_fs_h = yes; then
3734 if test "$linux_headers" != yes; then
3735 LINUX_INCLUDE='-I$(top_builddir)/include'
3738 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3739 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3740 if test "$GCC" = yes
3743 alpha) addcflags="-mieee" ;;
3746 if test "x$addcflags" != x
3748 { echo "$as_me:$LINENO: result: $addcflags" >&5
3749 echo "${ECHO_T}$addcflags" >&6; }
3750 CFLAGS="$addcflags $CFLAGS"
3752 { echo "$as_me:$LINENO: result: (none)" >&5
3753 echo "${ECHO_T}(none)" >&6; }
3759 # Check whether --with-ldopts was given.
3760 if test "${with_ldopts+set}" = set; then
3761 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3762 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3767 # Check whether --with-root-prefix was given.
3768 if test "${with_root_prefix+set}" = set; then
3769 withval=$with_root_prefix; root_prefix=$withval
3773 # Check whether --enable-maintainer-mode was given.
3774 if test "${enable_maintainer_mode+set}" = set; then
3775 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3778 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3779 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3782 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3783 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3788 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3789 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3794 # Check whether --enable-compression was given.
3795 if test "${enable_compression+set}" = set; then
3796 enableval=$enable_compression; if test "$enableval" = "no"
3798 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3799 echo "${ECHO_T}Disabling compression support" >&6; }
3801 cat >>confdefs.h <<\_ACEOF
3802 #define ENABLE_COMPRESSION 1
3805 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3806 echo "${ECHO_T}Enabling compression support" >&6; }
3807 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3808 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3812 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3813 echo "${ECHO_T}Disabling compression support by default" >&6; }
3817 # Check whether --enable-htree was given.
3818 if test "${enable_htree+set}" = set; then
3819 enableval=$enable_htree; if test "$enableval" = "no"
3822 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3823 echo "${ECHO_T}Disabling htree directory support" >&6; }
3826 cat >>confdefs.h <<\_ACEOF
3827 #define ENABLE_HTREE 1
3830 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3831 echo "${ECHO_T}Enabling htree directory support" >&6; }
3836 cat >>confdefs.h <<\_ACEOF
3837 #define ENABLE_HTREE 1
3840 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3841 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3846 E2_PKG_CONFIG_STATIC=--static
3849 # Check whether --enable-elf-shlibs was given.
3850 if test "${enable_elf_shlibs+set}" = set; then
3851 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3854 MAKEFILE_ELF=/dev/null
3855 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3856 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3858 E2_PKG_CONFIG_STATIC=
3860 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3863 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3869 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
3870 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3871 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3875 MAKEFILE_ELF=/dev/null
3877 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3878 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3884 # Check whether --enable-bsd-shlibs was given.
3885 if test "${enable_bsd_shlibs+set}" = set; then
3886 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3889 MAKEFILE_BSDLIB=/dev/null
3890 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3891 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3893 E2_PKG_CONFIG_STATIC=
3895 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3899 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3903 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3904 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3908 MAKEFILE_BSDLIB=/dev/null
3910 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3911 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3917 # Check whether --enable-profile was given.
3918 if test "${enable_profile+set}" = set; then
3919 enableval=$enable_profile; if test "$enableval" = "no"
3922 MAKEFILE_PROFILE=/dev/null
3923 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3924 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3927 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3928 PROFILED_LIB_EXT=_p.a
3929 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3930 echo "${ECHO_T}Building profiling libraries" >&6; }
3935 MAKEFILE_PROFILE=/dev/null
3936 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3937 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3943 # Check whether --enable-checker was given.
3944 if test "${enable_checker+set}" = set; then
3945 enableval=$enable_checker; if test "$enableval" = "no"
3948 MAKEFILE_CHECKER=/dev/null
3949 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3950 echo "${ECHO_T}Disabling checker libraries" >&6; }
3953 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3954 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3955 echo "${ECHO_T}Building checker libraries" >&6; }
3960 MAKEFILE_CHECKER=/dev/null
3961 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3962 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3973 # Check whether --enable-jbd-debug was given.
3974 if test "${enable_jbd_debug+set}" = set; then
3975 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3977 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3978 echo "${ECHO_T}Disabling journal debugging" >&6; }
3980 cat >>confdefs.h <<\_ACEOF
3981 #define CONFIG_JBD_DEBUG 1
3984 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3985 echo "${ECHO_T}Enabling journal debugging" >&6; }
3989 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3990 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3994 # Check whether --enable-blkid-debug was given.
3995 if test "${enable_blkid_debug+set}" = set; then
3996 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3998 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3999 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4001 cat >>confdefs.h <<\_ACEOF
4002 #define CONFIG_BLKID_DEBUG 1
4005 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4006 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4010 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4011 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4015 # Check whether --enable-testio-debug was given.
4016 if test "${enable_testio_debug+set}" = set; then
4017 enableval=$enable_testio_debug; if test "$enableval" = "no"
4019 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4020 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: Enabling testio debugging by default" >&5
4034 echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4035 cat >>confdefs.h <<\_ACEOF
4036 #define CONFIG_TESTIO_DEBUG 1
4044 # Check whether --enable-debugfs was given.
4045 if test "${enable_debugfs+set}" = set; then
4046 enableval=$enable_debugfs; if test "$enableval" = "no"
4048 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4049 echo "${ECHO_T}Disabling debugfs support" >&6; }
4053 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4054 echo "${ECHO_T}Enabling debugfs support" >&6; }
4058 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4059 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4065 # Check whether --enable-imager was given.
4066 if test "${enable_imager+set}" = set; then
4067 enableval=$enable_imager; if test "$enableval" = "no"
4069 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4070 echo "${ECHO_T}Disabling e2image support" >&6; }
4074 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4075 echo "${ECHO_T}Enabling e2image support" >&6; }
4079 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4080 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4086 # Check whether --enable-resizer was given.
4087 if test "${enable_resizer+set}" = set; then
4088 enableval=$enable_resizer; if test "$enableval" = "no"
4090 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4091 echo "${ECHO_T}Disabling e2resize support" >&6; }
4095 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4096 echo "${ECHO_T}Enabling e2resize support" >&6; }
4100 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4101 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4107 # Check whether --enable-fsck was given.
4108 if test "${enable_fsck+set}" = set; then
4109 enableval=$enable_fsck; if test "$enableval" = "no"
4111 FSCK_PROG='' FSCK_MAN=''
4112 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4113 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4115 FSCK_PROG=fsck FSCK_MAN=fsck.8
4116 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4117 echo "${ECHO_T}Building fsck wrapper" >&6; }
4123 FSCK_PROG='' FSCK_MAN=''
4124 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4125 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4128 FSCK_PROG=fsck FSCK_MAN=fsck.8
4129 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4130 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4137 # Check whether --enable-e2initrd-helper was given.
4138 if test "${enable_e2initrd_helper+set}" = set; then
4139 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4141 E2INITRD_PROG='' E2INITRD_MAN=''
4142 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4143 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4145 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4146 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4147 echo "${ECHO_T}Building e2initrd helper" >&6; }
4151 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4152 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4153 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4159 # Check whether --enable-tls was given.
4160 if test "${enable_tls+set}" = set; then
4161 enableval=$enable_tls; if test "$enableval" = "no"
4164 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4165 echo "${ECHO_T}Disabling thread local support" >&6; }
4168 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4169 echo "${ECHO_T}Enabling thread local support" >&6; }
4173 if test -n "$WITH_DIET_LIBC"
4176 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4177 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4180 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4181 echo "${ECHO_T}Try using thread local support by default" >&6; }
4186 if test "$try_tls" = "yes"
4189 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4190 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4191 if test "${ac_cv_tls+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 ax_tls_keywords="__thread __declspec(thread) none"
4196 for ax_tls_keyword in $ax_tls_keywords; do
4197 case $ax_tls_keyword in
4198 none) ac_cv_tls=none ; break ;;
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4209 static $ax_tls_keyword int bar;
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_compile") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest.$ac_objext; then
4237 ac_cv_tls=$ax_tls_keyword ; break
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 if test "$ac_cv_tls" != "none"; then
4255 cat >>confdefs.h <<_ACEOF
4256 #define TLS $ac_cv_tls
4260 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4261 echo "${ECHO_T}$ac_cv_tls" >&6; }
4264 # Check whether --enable-uuidd was given.
4265 if test "${enable_uuidd+set}" = set; then
4266 enableval=$enable_uuidd; if test "$enableval" = "no"
4268 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4269 echo "${ECHO_T}Not building uuidd" >&6; }
4272 cat >>confdefs.h <<\_ACEOF
4277 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4278 echo "${ECHO_T}Building uuidd" >&6; }
4282 cat >>confdefs.h <<\_ACEOF
4287 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4288 echo "${ECHO_T}Building uuidd by default" >&6; }
4293 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4295 GETTEXT_PACKAGE=e2fsprogs
4297 VERSION="$E2FSPROGS_VERSION"
4299 cat >>confdefs.h <<_ACEOF
4300 #define PACKAGE "$PACKAGE"
4303 cat >>confdefs.h <<_ACEOF
4304 #define VERSION "$VERSION"
4311 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4312 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4313 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4314 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 cat >conftest.make <<\_ACEOF
4320 @echo '@@@%%%=$(MAKE)=@@@%%%'
4322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4325 eval ac_cv_prog_make_${ac_make}_set=yes;;
4327 eval ac_cv_prog_make_${ac_make}_set=no;;
4331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4332 { echo "$as_me:$LINENO: result: yes" >&5
4333 echo "${ECHO_T}yes" >&6; }
4336 { echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6; }
4338 SET_MAKE="MAKE=${MAKE-make}"
4341 # Find a good install program. We prefer a C program (faster),
4342 # so one script is as good as another. But avoid the broken or
4343 # incompatible versions:
4344 # SysV /etc/install, /usr/sbin/install
4345 # SunOS /usr/etc/install
4346 # IRIX /sbin/install
4348 # AmigaOS /C/install, which installs bootblocks on floppy discs
4349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4352 # OS/2's system install, which has a completely different semantic
4353 # ./install, which can be erroneously created by make from ./install.sh.
4354 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4356 if test -z "$INSTALL"; then
4357 if test "${ac_cv_path_install+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 # Account for people who put trailing slashes in PATH elements.
4367 ./ | .// | /cC/* | \
4368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4372 # OSF1 and SCO ODT 3.0 have their own names for install.
4373 # Don't use installbsd from OSF since it installs stuff as root
4375 for ac_prog in ginstall scoinst install; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4378 if test $ac_prog = install &&
4379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4380 # AIX install. It has an incompatible calling convention.
4382 elif test $ac_prog = install &&
4383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4384 # program-specific install script used by HP pwplus--don't use.
4387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4400 if test "${ac_cv_path_install+set}" = set; then
4401 INSTALL=$ac_cv_path_install
4403 # As a last resort, use the slow shell script. Don't cache a
4404 # value for INSTALL within a source directory, because that will
4405 # break other packages using the cache if that directory is
4406 # removed, or if the value is a relative name.
4407 INSTALL=$ac_install_sh
4410 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4411 echo "${ECHO_T}$INSTALL" >&6; }
4413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4414 # It thinks the first close brace ends the variable substitution.
4415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4417 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4419 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4423 if test -n "$ac_aux_dir"; then
4424 case "$ac_aux_dir" in
4425 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4426 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4429 if test -z "$MKINSTALLDIRS"; then
4430 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4435 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4436 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4437 # Check whether --enable-nls was given.
4438 if test "${enable_nls+set}" = set; then
4439 enableval=$enable_nls; USE_NLS=$enableval
4444 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4445 echo "${ECHO_T}$USE_NLS" >&6; }
4452 # Prepare PATH_SEPARATOR.
4453 # The user is always right.
4454 if test "${PATH_SEPARATOR+set}" != set; then
4455 echo "#! /bin/sh" >conf$$.sh
4456 echo "exit 0" >>conf$$.sh
4458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4466 # Find out how to test for executable files. Don't use a zero-byte file,
4467 # as systems may use methods other than mode bits to determine executability.
4468 cat >conf$$.file <<_ASEOF
4472 chmod +x conf$$.file
4473 if test -x conf$$.file >/dev/null 2>&1; then
4474 ac_executable_p="test -x"
4476 ac_executable_p="test -f"
4480 # Extract the first word of "msgfmt", so it can be a program name with args.
4481 set dummy msgfmt; ac_word=$2
4482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484 if test "${ac_cv_path_MSGFMT+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4492 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4493 for ac_dir in $PATH; do
4495 test -z "$ac_dir" && ac_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4498 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4499 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4500 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4507 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4511 MSGFMT="$ac_cv_path_MSGFMT"
4512 if test "$MSGFMT" != ":"; then
4513 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4514 echo "${ECHO_T}$MSGFMT" >&6; }
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4520 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4521 set dummy gmsgfmt; ac_word=$2
4522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4551 GMSGFMT=$ac_cv_path_GMSGFMT
4552 if test -n "$GMSGFMT"; then
4553 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4554 echo "${ECHO_T}$GMSGFMT" >&6; }
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4563 # Prepare PATH_SEPARATOR.
4564 # The user is always right.
4565 if test "${PATH_SEPARATOR+set}" != set; then
4566 echo "#! /bin/sh" >conf$$.sh
4567 echo "exit 0" >>conf$$.sh
4569 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4577 # Find out how to test for executable files. Don't use a zero-byte file,
4578 # as systems may use methods other than mode bits to determine executability.
4579 cat >conf$$.file <<_ASEOF
4583 chmod +x conf$$.file
4584 if test -x conf$$.file >/dev/null 2>&1; then
4585 ac_executable_p="test -x"
4587 ac_executable_p="test -f"
4591 # Extract the first word of "xgettext", so it can be a program name with args.
4592 set dummy xgettext; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4603 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4604 for ac_dir in $PATH; do
4606 test -z "$ac_dir" && ac_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4609 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4610 (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
4611 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4618 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4622 XGETTEXT="$ac_cv_path_XGETTEXT"
4623 if test "$XGETTEXT" != ":"; then
4624 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4625 echo "${ECHO_T}$XGETTEXT" >&6; }
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4634 # Prepare PATH_SEPARATOR.
4635 # The user is always right.
4636 if test "${PATH_SEPARATOR+set}" != set; then
4637 echo "#! /bin/sh" >conf$$.sh
4638 echo "exit 0" >>conf$$.sh
4640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4648 # Find out how to test for executable files. Don't use a zero-byte file,
4649 # as systems may use methods other than mode bits to determine executability.
4650 cat >conf$$.file <<_ASEOF
4654 chmod +x conf$$.file
4655 if test -x conf$$.file >/dev/null 2>&1; then
4656 ac_executable_p="test -x"
4658 ac_executable_p="test -f"
4662 # Extract the first word of "msgmerge", so it can be a program name with args.
4663 set dummy msgmerge; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4675 for ac_dir in $PATH; do
4677 test -z "$ac_dir" && ac_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4680 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4681 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4688 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4692 MSGMERGE="$ac_cv_path_MSGMERGE"
4693 if test "$MSGMERGE" != ":"; then
4694 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4695 echo "${ECHO_T}$MSGMERGE" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4702 if test "$GMSGFMT" != ":"; then
4703 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4704 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4707 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4708 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4709 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4714 if test "$XGETTEXT" != ":"; then
4715 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4716 (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
4719 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4720 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4726 ac_config_commands="$ac_config_commands default-1"
4729 if test -n "$ac_tool_prefix"; then
4730 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_prog_RANLIB+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 if test -n "$RANLIB"; then
4738 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 RANLIB=$ac_cv_prog_RANLIB
4758 if test -n "$RANLIB"; then
4759 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4760 echo "${ECHO_T}$RANLIB" >&6; }
4762 { echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6; }
4768 if test -z "$ac_cv_prog_RANLIB"; then
4769 ac_ct_RANLIB=$RANLIB
4770 # Extract the first word of "ranlib", so it can be a program name with args.
4771 set dummy ranlib; ac_word=$2
4772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 if test -n "$ac_ct_RANLIB"; then
4778 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_ac_ct_RANLIB="ranlib"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4798 if test -n "$ac_ct_RANLIB"; then
4799 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4800 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4802 { echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6; }
4806 if test "x$ac_ct_RANLIB" = x; then
4809 case $cross_compiling:$ac_tool_warned in
4811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4812 whose name does not start with the host triplet. If you think this
4813 configuration is useful to you, please write to autoconf@gnu.org." >&5
4814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4815 whose name does not start with the host triplet. If you think this
4816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4817 ac_tool_warned=yes ;;
4819 RANLIB=$ac_ct_RANLIB
4822 RANLIB="$ac_cv_prog_RANLIB"
4826 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4827 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4828 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_check_lib_save_LIBS=$LIBS
4832 LIBS="-lcposix $LIBS"
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4840 /* Override any GCC internal prototype to avoid an error.
4841 Use char because int might match the return type of a GCC
4842 builtin and then its argument prototype would still apply. */
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_link") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest$ac_exeext &&
4872 $as_test_x conftest$ac_exeext; then
4873 ac_cv_lib_cposix_strerror=yes
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_cv_lib_cposix_strerror=no
4881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4882 conftest$ac_exeext conftest.$ac_ext
4883 LIBS=$ac_check_lib_save_LIBS
4885 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4886 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4887 if test $ac_cv_lib_cposix_strerror = yes; then
4888 LIBS="$LIBS -lcposix"
4893 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4894 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4895 if test "${ac_cv_c_const+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4908 /* FIXME: Include the comments suggested by Paul. */
4910 /* Ultrix mips cc rejects this. */
4911 typedef int charset[2];
4913 /* SunOS 4.1.1 cc rejects this. */
4914 char const *const *pcpcc;
4916 /* NEC SVR4.0.2 mips cc rejects this. */
4917 struct point {int x, y;};
4918 static struct point const zero = {0,0};
4919 /* AIX XL C 1.02.0.0 rejects this.
4920 It does not let you subtract one const X* pointer from another in
4921 an arm of an if-expression whose if-part is not a constant
4923 const char *g = "string";
4924 pcpcc = &g + (g ? g-g : 0);
4925 /* HPUX 7.0 cc rejects these. */
4927 ppc = (char**) pcpcc;
4928 pcpcc = (char const *const *) ppc;
4929 { /* SCO 3.2v4 cc rejects this. */
4931 char const *s = 0 ? (char *) 0 : (char const *) 0;
4936 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4938 const int *foo = &x[0];
4941 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4942 typedef const int *iptr;
4946 { /* AIX XL C 1.02.0.0 rejects this saying
4947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4948 struct s { int j; const int *ap[3]; };
4949 struct s *b; b->j = 5;
4951 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4955 return !cs[0] && !zero.x;
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4990 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4991 if test $ac_cv_c_const = no; then
4993 cat >>confdefs.h <<\_ACEOF
5000 { echo "$as_me:$LINENO: checking for signed" >&5
5001 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5002 if test "${bh_cv_c_signed+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5039 echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5048 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5049 if test $bh_cv_c_signed = no; then
5051 cat >>confdefs.h <<\_ACEOF
5057 { echo "$as_me:$LINENO: checking for inline" >&5
5058 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5059 if test "${ac_cv_c_inline+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 for ac_kw in inline __inline__ __inline; do
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5072 static $ac_kw foo_t static_foo () {return 0; }
5073 $ac_kw foo_t foo () {return 0; }
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_compile") 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest.$ac_objext; then
5094 ac_cv_c_inline=$ac_kw
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103 test "$ac_cv_c_inline" != no && break
5107 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5108 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5111 case $ac_cv_c_inline in
5114 case $ac_cv_c_inline in
5116 *) ac_val=$ac_cv_c_inline;;
5118 cat >>confdefs.h <<_ACEOF
5120 #define inline $ac_val
5126 { echo "$as_me:$LINENO: checking for off_t" >&5
5127 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5128 if test "${ac_cv_type_off_t+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 cat >conftest.$ac_ext <<_ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 $ac_includes_default
5138 typedef off_t ac__type_new_;
5142 if ((ac__type_new_ *) 0)
5144 if (sizeof (ac__type_new_))
5150 rm -f conftest.$ac_objext
5151 if { (ac_try="$ac_compile"
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_compile") 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } && {
5164 test -z "$ac_c_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest.$ac_objext; then
5167 ac_cv_type_off_t=yes
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5178 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5179 if test $ac_cv_type_off_t = yes; then
5183 cat >>confdefs.h <<_ACEOF
5184 #define off_t long int
5189 { echo "$as_me:$LINENO: checking for size_t" >&5
5190 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5191 if test "${ac_cv_type_size_t+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 cat >conftest.$ac_ext <<_ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 $ac_includes_default
5201 typedef size_t ac__type_new_;
5205 if ((ac__type_new_ *) 0)
5207 if (sizeof (ac__type_new_))
5213 rm -f conftest.$ac_objext
5214 if { (ac_try="$ac_compile"
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compile") 2>conftest.er1
5222 grep -v '^ *+' conftest.er1 >conftest.err
5224 cat conftest.err >&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } && {
5227 test -z "$ac_c_werror_flag" ||
5228 test ! -s conftest.err
5229 } && test -s conftest.$ac_objext; then
5230 ac_cv_type_size_t=yes
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 ac_cv_type_size_t=no
5238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5241 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5242 if test $ac_cv_type_size_t = yes; then
5246 cat >>confdefs.h <<_ACEOF
5247 #define size_t unsigned int
5253 { echo "$as_me:$LINENO: checking for long long" >&5
5254 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5255 if test "${ac_cv_type_long_long+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 cat >conftest.$ac_ext <<_ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264 long long ll = 1LL; int i = 63;
5268 long long llmax = (long long) -1;
5269 return ll << i | ll >> i | llmax / ll | llmax % ll;
5274 rm -f conftest.$ac_objext conftest$ac_exeext
5275 if { (ac_try="$ac_link"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } && {
5288 test -z "$ac_c_werror_flag" ||
5289 test ! -s conftest.err
5290 } && test -s conftest$ac_exeext &&
5291 $as_test_x conftest$ac_exeext; then
5292 ac_cv_type_long_long=yes
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 ac_cv_type_long_long=no
5300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5301 conftest$ac_exeext conftest.$ac_ext
5303 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5304 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5305 if test $ac_cv_type_long_long = yes; then
5307 cat >>confdefs.h <<\_ACEOF
5308 #define HAVE_LONG_LONG 1
5314 { echo "$as_me:$LINENO: checking for long double" >&5
5315 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5316 if test "${gt_cv_c_long_double+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test "$GCC" = yes; then
5320 gt_cv_c_long_double=yes
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5329 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5330 long double foo = 0.0;
5331 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5332 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 gt_cv_c_long_double=yes
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 gt_cv_c_long_double=no
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5371 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5372 if test $gt_cv_c_long_double = yes; then
5374 cat >>confdefs.h <<\_ACEOF
5375 #define HAVE_LONG_DOUBLE 1
5381 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5382 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5383 if test "${gt_cv_c_wchar_t+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5393 wchar_t foo = (wchar_t)'\0';
5402 rm -f conftest.$ac_objext
5403 if { (ac_try="$ac_compile"
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compile") 2>conftest.er1
5411 grep -v '^ *+' conftest.er1 >conftest.err
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && {
5416 test -z "$ac_c_werror_flag" ||
5417 test ! -s conftest.err
5418 } && test -s conftest.$ac_objext; then
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5430 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5431 if test $gt_cv_c_wchar_t = yes; then
5433 cat >>confdefs.h <<\_ACEOF
5434 #define HAVE_WCHAR_T 1
5440 { echo "$as_me:$LINENO: checking for wint_t" >&5
5441 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5442 if test "${gt_cv_c_wint_t+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5452 wint_t foo = (wchar_t)'\0';
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5489 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5490 if test $gt_cv_c_wint_t = yes; then
5492 cat >>confdefs.h <<\_ACEOF
5493 #define HAVE_WINT_T 1
5499 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5500 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5501 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <sys/types.h>
5511 #include <inttypes.h>
5515 uintmax_t i = (uintmax_t) -1;
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compile") 2>conftest.er1
5529 grep -v '^ *+' conftest.er1 >conftest.err
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } && {
5534 test -z "$ac_c_werror_flag" ||
5535 test ! -s conftest.err
5536 } && test -s conftest.$ac_objext; then
5537 jm_ac_cv_header_inttypes_h=yes
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 jm_ac_cv_header_inttypes_h=no
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5548 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5549 if test $jm_ac_cv_header_inttypes_h = yes; then
5551 cat >>confdefs.h <<_ACEOF
5552 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5558 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5559 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5560 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.$ac_ext <<_ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 #include <sys/types.h>
5574 uintmax_t i = (uintmax_t) -1;
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5588 grep -v '^ *+' conftest.er1 >conftest.err
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5596 jm_ac_cv_header_stdint_h=yes
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5601 jm_ac_cv_header_stdint_h=no
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5607 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5608 if test $jm_ac_cv_header_stdint_h = yes; then
5610 cat >>confdefs.h <<_ACEOF
5611 #define HAVE_STDINT_H_WITH_UINTMAX 1
5619 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5620 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5621 if test "${gt_cv_c_intmax_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. */
5633 #if HAVE_STDINT_H_WITH_UINTMAX
5636 #if HAVE_INTTYPES_H_WITH_UINTMAX
5637 #include <inttypes.h>
5648 rm -f conftest.$ac_objext
5649 if { (ac_try="$ac_compile"
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 gt_cv_c_intmax_t=yes
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5676 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5677 if test $gt_cv_c_intmax_t = yes; then
5679 cat >>confdefs.h <<\_ACEOF
5680 #define HAVE_INTMAX_T 1
5687 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5688 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5689 if test "${gt_cv_func_printf_posix+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 if test "$cross_compiling" = yes; then
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "notposix" >/dev/null 2>&1; then
5709 gt_cv_func_printf_posix="guessing no"
5711 gt_cv_func_printf_posix="guessing yes"
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5726 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5727 dollar expansion (possibly an autoconf bug). */
5728 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5729 static char buf[100];
5732 sprintf (buf, format, 33, 55);
5733 return (strcmp (buf, "55 33") != 0);
5736 rm -f conftest$ac_exeext
5737 if { (ac_try="$ac_link"
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_link") 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5747 { (case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_try") 2>&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 gt_cv_func_printf_posix=yes
5758 echo "$as_me: program exited with status $ac_status" >&5
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5763 gt_cv_func_printf_posix=no
5765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5771 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5772 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5773 case $gt_cv_func_printf_posix in
5776 cat >>confdefs.h <<\_ACEOF
5777 #define HAVE_POSIX_PRINTF 1
5783 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5784 # for constant arguments. Useless!
5785 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5786 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5787 if test "${ac_cv_working_alloca_h+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5800 char *p = (char *) alloca (2 * sizeof (int));
5806 rm -f conftest.$ac_objext conftest$ac_exeext
5807 if { (ac_try="$ac_link"
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813 (eval "$ac_link") 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } && {
5820 test -z "$ac_c_werror_flag" ||
5821 test ! -s conftest.err
5822 } && test -s conftest$ac_exeext &&
5823 $as_test_x conftest$ac_exeext; then
5824 ac_cv_working_alloca_h=yes
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 ac_cv_working_alloca_h=no
5832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5833 conftest$ac_exeext conftest.$ac_ext
5835 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5836 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5837 if test $ac_cv_working_alloca_h = yes; then
5839 cat >>confdefs.h <<\_ACEOF
5840 #define HAVE_ALLOCA_H 1
5845 { echo "$as_me:$LINENO: checking for alloca" >&5
5846 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5847 if test "${ac_cv_func_alloca_works+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 # define alloca __builtin_alloca
5860 # include <malloc.h>
5861 # define alloca _alloca
5863 # ifdef HAVE_ALLOCA_H
5864 # include <alloca.h>
5869 # ifndef alloca /* predefined by HP cc +Olibcalls */
5880 char *p = (char *) alloca (1);
5886 rm -f conftest.$ac_objext conftest$ac_exeext
5887 if { (ac_try="$ac_link"
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_link") 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_exeext &&
5903 $as_test_x conftest$ac_exeext; then
5904 ac_cv_func_alloca_works=yes
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_cv_func_alloca_works=no
5912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5913 conftest$ac_exeext conftest.$ac_ext
5915 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5916 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5918 if test $ac_cv_func_alloca_works = yes; then
5920 cat >>confdefs.h <<\_ACEOF
5921 #define HAVE_ALLOCA 1
5925 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5926 # that cause trouble. Some versions do not even contain alloca or
5927 # contain a buggy version. If you still want to use their alloca,
5928 # use ar to extract alloca.o from them instead of compiling alloca.c.
5930 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5932 cat >>confdefs.h <<\_ACEOF
5937 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5938 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5939 if test "${ac_cv_os_cray+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 cat >conftest.$ac_ext <<_ACEOF
5945 cat confdefs.h >>conftest.$ac_ext
5946 cat >>conftest.$ac_ext <<_ACEOF
5947 /* end confdefs.h. */
5948 #if defined CRAY && ! defined CRAY2
5955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956 $EGREP "webecray" >/dev/null 2>&1; then
5964 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5965 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5966 if test $ac_cv_os_cray = yes; then
5967 for ac_func in _getb67 GETB67 getb67; do
5968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5982 #define $ac_func innocuous_$ac_func
5984 /* System header to define __stub macros and hopefully few prototypes,
5985 which can conflict with char $ac_func (); below.
5986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 <limits.h> exists even on freestanding compilers. */
5990 # include <limits.h>
5992 # include <assert.h>
5997 /* Override any GCC internal prototype to avoid an error.
5998 Use char because int might match the return type of a GCC
5999 builtin and then its argument prototype would still apply. */
6004 /* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
6007 #if defined __stub_$ac_func || defined __stub___$ac_func
6019 rm -f conftest.$ac_objext conftest$ac_exeext
6020 if { (ac_try="$ac_link"
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_link") 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest$ac_exeext &&
6036 $as_test_x conftest$ac_exeext; then
6037 eval "$as_ac_var=yes"
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6042 eval "$as_ac_var=no"
6045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6046 conftest$ac_exeext conftest.$ac_ext
6048 ac_res=`eval echo '${'$as_ac_var'}'`
6049 { echo "$as_me:$LINENO: result: $ac_res" >&5
6050 echo "${ECHO_T}$ac_res" >&6; }
6051 if test `eval echo '${'$as_ac_var'}'` = yes; then
6053 cat >>confdefs.h <<_ACEOF
6054 #define CRAY_STACKSEG_END $ac_func
6063 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6064 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6065 if test "${ac_cv_c_stack_direction+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 if test "$cross_compiling" = yes; then
6069 ac_cv_c_stack_direction=0
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 $ac_includes_default
6079 find_stack_direction ()
6081 static char *addr = 0;
6086 return find_stack_direction ();
6089 return (&dummy > addr) ? 1 : -1;
6095 return find_stack_direction () < 0;
6098 rm -f conftest$ac_exeext
6099 if { (ac_try="$ac_link"
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_link") 2>&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6109 { (case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_try") 2>&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_c_stack_direction=1
6120 echo "$as_me: program exited with status $ac_status" >&5
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_c_stack_direction=-1
6127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6133 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6135 cat >>confdefs.h <<_ACEOF
6136 #define STACK_DIRECTION $ac_cv_c_stack_direction
6144 for ac_header in stdlib.h unistd.h
6146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_res=`eval echo '${'$as_ac_Header'}'`
6154 { echo "$as_me:$LINENO: result: $ac_res" >&5
6155 echo "${ECHO_T}$ac_res" >&6; }
6157 # Is the header compilable?
6158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6166 $ac_includes_default
6167 #include <$ac_header>
6169 rm -f conftest.$ac_objext
6170 if { (ac_try="$ac_compile"
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_compile") 2>conftest.er1
6178 grep -v '^ *+' conftest.er1 >conftest.err
6180 cat conftest.err >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest.$ac_objext; then
6186 ac_header_compiler=yes
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.$ac_ext >&5
6191 ac_header_compiler=no
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6196 echo "${ECHO_T}$ac_header_compiler" >&6; }
6198 # Is the header present?
6199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <$ac_header>
6209 if { (ac_try="$ac_cpp conftest.$ac_ext"
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } >/dev/null && {
6222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6223 test ! -s conftest.err
6225 ac_header_preproc=yes
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_header_preproc=no
6233 rm -f conftest.err conftest.$ac_ext
6234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6235 echo "${ECHO_T}$ac_header_preproc" >&6; }
6237 # So? What about this header?
6238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6244 ac_header_preproc=yes
6247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 eval "$as_ac_Header=\$ac_header_preproc"
6269 ac_res=`eval echo '${'$as_ac_Header'}'`
6270 { echo "$as_me:$LINENO: result: $ac_res" >&5
6271 echo "${ECHO_T}$ac_res" >&6; }
6274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6275 cat >>confdefs.h <<_ACEOF
6276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6284 for ac_func in getpagesize
6286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6300 #define $ac_func innocuous_$ac_func
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char $ac_func (); below.
6304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305 <limits.h> exists even on freestanding compilers. */
6308 # include <limits.h>
6310 # include <assert.h>
6315 /* Override any GCC internal prototype to avoid an error.
6316 Use char because int might match the return type of a GCC
6317 builtin and then its argument prototype would still apply. */
6322 /* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
6325 #if defined __stub_$ac_func || defined __stub___$ac_func
6337 rm -f conftest.$ac_objext conftest$ac_exeext
6338 if { (ac_try="$ac_link"
6340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6341 *) ac_try_echo=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_link") 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && {
6351 test -z "$ac_c_werror_flag" ||
6352 test ! -s conftest.err
6353 } && test -s conftest$ac_exeext &&
6354 $as_test_x conftest$ac_exeext; then
6355 eval "$as_ac_var=yes"
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 eval "$as_ac_var=no"
6363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6364 conftest$ac_exeext conftest.$ac_ext
6366 ac_res=`eval echo '${'$as_ac_var'}'`
6367 { echo "$as_me:$LINENO: result: $ac_res" >&5
6368 echo "${ECHO_T}$ac_res" >&6; }
6369 if test `eval echo '${'$as_ac_var'}'` = yes; then
6370 cat >>confdefs.h <<_ACEOF
6371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6377 { echo "$as_me:$LINENO: checking for working mmap" >&5
6378 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6379 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 if test "$cross_compiling" = yes; then
6383 ac_cv_func_mmap_fixed_mapped=no
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 $ac_includes_default
6392 /* malloc might have been renamed as rpl_malloc. */
6395 /* Thanks to Mike Haertel and Jim Avera for this test.
6396 Here is a matrix of mmap possibilities:
6397 mmap private not fixed
6398 mmap private fixed at somewhere currently unmapped
6399 mmap private fixed at somewhere already mapped
6400 mmap shared not fixed
6401 mmap shared fixed at somewhere currently unmapped
6402 mmap shared fixed at somewhere already mapped
6403 For private mappings, we should verify that changes cannot be read()
6404 back from the file, nor mmap's back from the file at a different
6405 address. (There have been systems where private was not correctly
6406 implemented like the infamous i386 svr4.0, and systems where the
6407 VM page cache was not coherent with the file system buffer cache
6408 like early versions of FreeBSD and possibly contemporary NetBSD.)
6409 For shared mappings, we should conversely verify that changes get
6410 propagated back to all the places they're supposed to be.
6412 Grep wants private fixed already mapped.
6413 The main things grep needs to know about mmap are:
6414 * does it exist and is it safe to write into the mmap'd area
6415 * how to use it (BSD variants) */
6418 #include <sys/mman.h>
6420 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6424 /* This mess was copied from the GNU getpagesize.h. */
6425 #ifndef HAVE_GETPAGESIZE
6426 /* Assume that all systems that can run configure have sys/param.h. */
6427 # ifndef HAVE_SYS_PARAM_H
6428 # define HAVE_SYS_PARAM_H 1
6431 # ifdef _SC_PAGESIZE
6432 # define getpagesize() sysconf(_SC_PAGESIZE)
6433 # else /* no _SC_PAGESIZE */
6434 # ifdef HAVE_SYS_PARAM_H
6435 # include <sys/param.h>
6436 # ifdef EXEC_PAGESIZE
6437 # define getpagesize() EXEC_PAGESIZE
6438 # else /* no EXEC_PAGESIZE */
6440 # define getpagesize() NBPG * CLSIZE
6443 # endif /* no CLSIZE */
6444 # else /* no NBPG */
6446 # define getpagesize() NBPC
6447 # else /* no NBPC */
6449 # define getpagesize() PAGESIZE
6450 # endif /* PAGESIZE */
6451 # endif /* no NBPC */
6452 # endif /* no NBPG */
6453 # endif /* no EXEC_PAGESIZE */
6454 # else /* no HAVE_SYS_PARAM_H */
6455 # define getpagesize() 8192 /* punt totally */
6456 # endif /* no HAVE_SYS_PARAM_H */
6457 # endif /* no _SC_PAGESIZE */
6459 #endif /* no HAVE_GETPAGESIZE */
6464 char *data, *data2, *data3;
6468 pagesize = getpagesize ();
6470 /* First, make a file with some known garbage in it. */
6471 data = (char *) malloc (pagesize);
6474 for (i = 0; i < pagesize; ++i)
6475 *(data + i) = rand ();
6477 fd = creat ("conftest.mmap", 0600);
6480 if (write (fd, data, pagesize) != pagesize)
6484 /* Next, try to mmap the file at a fixed address which already has
6485 something else allocated at it. If we can, also make sure that
6486 we see the same garbage. */
6487 fd = open ("conftest.mmap", O_RDWR);
6490 data2 = (char *) malloc (2 * pagesize);
6493 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6494 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6495 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6497 for (i = 0; i < pagesize; ++i)
6498 if (*(data + i) != *(data2 + i))
6501 /* Finally, make sure that changes to the mapped area do not
6502 percolate back to the file as seen by read(). (This is a bug on
6503 some variants of i386 svr4.0.) */
6504 for (i = 0; i < pagesize; ++i)
6505 *(data2 + i) = *(data2 + i) + 1;
6506 data3 = (char *) malloc (pagesize);
6509 if (read (fd, data3, pagesize) != pagesize)
6511 for (i = 0; i < pagesize; ++i)
6512 if (*(data + i) != *(data3 + i))
6518 rm -f conftest$ac_exeext
6519 if { (ac_try="$ac_link"
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_link") 2>&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6529 { (case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_try") 2>&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 ac_cv_func_mmap_fixed_mapped=yes
6540 echo "$as_me: program exited with status $ac_status" >&5
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6545 ac_cv_func_mmap_fixed_mapped=no
6547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6552 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6553 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6554 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6556 cat >>confdefs.h <<\_ACEOF
6564 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6565 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6566 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 cat >conftest.$ac_ext <<_ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6576 #include <features.h>
6577 #ifdef __GNU_LIBRARY__
6578 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6586 ac_cv_gnu_library_2_1=yes
6588 ac_cv_gnu_library_2_1=no
6595 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6596 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6598 GLIBC21="$ac_cv_gnu_library_2_1"
6603 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6604 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6605 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 if test "$cross_compiling" = yes; then
6611 # Guess based on the CPU.
6613 alpha* | i3456786 | m68k | s390*)
6614 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6616 gt_cv_int_divbyzero_sigfpe="guessing no";;
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6632 sigfpe_handler (int sig)
6634 sigfpe_handler (sig) int sig;
6637 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6638 exit (sig != SIGFPE);
6648 signal (SIGFPE, sigfpe_handler);
6649 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6650 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6651 signal (SIGTRAP, sigfpe_handler);
6653 /* Linux/SPARC yields signal SIGILL. */
6654 #if defined (__sparc__) && defined (__linux__)
6655 signal (SIGILL, sigfpe_handler);
6664 rm -f conftest$ac_exeext
6665 if { (ac_try="$ac_link"
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_link") 2>&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6675 { (case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_try") 2>&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6684 gt_cv_int_divbyzero_sigfpe=yes
6686 echo "$as_me: program exited with status $ac_status" >&5
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6691 gt_cv_int_divbyzero_sigfpe=no
6693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6699 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6700 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6701 case "$gt_cv_int_divbyzero_sigfpe" in
6706 cat >>confdefs.h <<_ACEOF
6707 #define INTDIV0_RAISES_SIGFPE $value
6712 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6713 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6714 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.$ac_ext <<_ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 unsigned long long ull = 1ULL; int i = 63;
6727 unsigned long long ullmax = (unsigned long long) -1;
6728 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (ac_try="$ac_link"
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_link") 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } && {
6747 test -z "$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest$ac_exeext &&
6750 $as_test_x conftest$ac_exeext; then
6751 ac_cv_type_unsigned_long_long=yes
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6756 ac_cv_type_unsigned_long_long=no
6759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6760 conftest$ac_exeext conftest.$ac_ext
6762 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6763 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6764 if test $ac_cv_type_unsigned_long_long = yes; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_UNSIGNED_LONG_LONG 1
6775 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6777 test $ac_cv_type_unsigned_long_long = yes \
6778 && ac_type='unsigned long long' \
6779 || ac_type='unsigned long'
6781 cat >>confdefs.h <<_ACEOF
6782 #define uintmax_t $ac_type
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_UINTMAX_T 1
6794 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6795 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6796 if test "${gt_cv_header_inttypes_h+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <sys/types.h>
6807 #include <inttypes.h>
6816 rm -f conftest.$ac_objext
6817 if { (ac_try="$ac_compile"
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_compile") 2>conftest.er1
6825 grep -v '^ *+' conftest.er1 >conftest.err
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } && {
6830 test -z "$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 } && test -s conftest.$ac_objext; then
6833 gt_cv_header_inttypes_h=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 gt_cv_header_inttypes_h=no
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6845 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6846 if test $gt_cv_header_inttypes_h = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849 #define HAVE_INTTYPES_H 1
6856 if test $gt_cv_header_inttypes_h = yes; then
6857 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6858 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6859 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 cat >conftest.$ac_ext <<_ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 #include <inttypes.h>
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_compile") 2>conftest.er1
6891 grep -v '^ *+' conftest.er1 >conftest.err
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && {
6896 test -z "$ac_c_werror_flag" ||
6897 test ! -s conftest.err
6898 } && test -s conftest.$ac_objext; then
6899 gt_cv_inttypes_pri_broken=no
6901 echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6904 gt_cv_inttypes_pri_broken=yes
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6911 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6913 if test "$gt_cv_inttypes_pri_broken" = yes; then
6915 cat >>confdefs.h <<_ACEOF
6916 #define PRI_MACROS_BROKEN 1
6923 for ac_header in stdint.h
6925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 ac_res=`eval echo '${'$as_ac_Header'}'`
6933 { echo "$as_me:$LINENO: result: $ac_res" >&5
6934 echo "${ECHO_T}$ac_res" >&6; }
6936 # Is the header compilable?
6937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 $ac_includes_default
6946 #include <$ac_header>
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_header_compiler=yes
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_header_compiler=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6975 echo "${ECHO_T}$ac_header_compiler" >&6; }
6977 # Is the header present?
6978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 #include <$ac_header>
6988 if { (ac_try="$ac_cpp conftest.$ac_ext"
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } >/dev/null && {
7001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7004 ac_header_preproc=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_header_preproc=no
7012 rm -f conftest.err conftest.$ac_ext
7013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7014 echo "${ECHO_T}$ac_header_preproc" >&6; }
7016 # So? What about this header?
7017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7023 ac_header_preproc=yes
7026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 eval "$as_ac_Header=\$ac_header_preproc"
7048 ac_res=`eval echo '${'$as_ac_Header'}'`
7049 { echo "$as_me:$LINENO: result: $ac_res" >&5
7050 echo "${ECHO_T}$ac_res" >&6; }
7053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7054 cat >>confdefs.h <<_ACEOF
7055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7062 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7063 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7082 $EGREP "Found it" >/dev/null 2>&1; then
7087 if test -z "$result"; then
7088 if test "$cross_compiling" = yes; then
7089 # Depending upon the size, compute the lo and hi bounds.
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7100 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7107 rm -f conftest.$ac_objext
7108 if { (ac_try="$ac_compile"
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7116 grep -v '^ *+' conftest.er1 >conftest.err
7118 cat conftest.err >&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
7126 cat >conftest.$ac_ext <<_ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7136 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_hi=$ac_mid; break
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_lo=`expr $ac_mid + 1`
7166 if test $ac_lo -le $ac_mid; then
7170 ac_mid=`expr 2 '*' $ac_mid + 1`
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7179 cat >conftest.$ac_ext <<_ACEOF
7182 cat confdefs.h >>conftest.$ac_ext
7183 cat >>conftest.$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7189 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7205 grep -v '^ *+' conftest.er1 >conftest.err
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7225 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7232 rm -f conftest.$ac_objext
7233 if { (ac_try="$ac_compile"
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7239 (eval "$ac_compile") 2>conftest.er1
7241 grep -v '^ *+' conftest.er1 >conftest.err
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } && {
7246 test -z "$ac_c_werror_flag" ||
7247 test ! -s conftest.err
7248 } && test -s conftest.$ac_objext; then
7249 ac_lo=$ac_mid; break
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 ac_hi=`expr '(' $ac_mid ')' - 1`
7255 if test $ac_mid -le $ac_hi; then
7259 ac_mid=`expr 2 '*' $ac_mid`
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 # Binary search between lo and hi bounds.
7276 while test "x$ac_lo" != "x$ac_hi"; do
7277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7288 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_lo=`expr '(' $ac_mid ')' + 1`
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7334 static long int longval () { return ~(size_t)0 / 10; }
7335 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7342 FILE *f = fopen ("conftest.val", "w");
7345 if ((~(size_t)0 / 10) < 0)
7347 long int i = longval ();
7348 if (i != (~(size_t)0 / 10))
7350 fprintf (f, "%ld\n", i);
7354 unsigned long int i = ulongval ();
7355 if (i != (~(size_t)0 / 10))
7357 fprintf (f, "%lu\n", i);
7359 return ferror (f) || fclose (f) != 0;
7365 rm -f conftest$ac_exeext
7366 if { (ac_try="$ac_link"
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_link") 2>&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7376 { (case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_try") 2>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); }; }; then
7385 res_hi=`cat conftest.val`
7387 echo "$as_me: program exited with status $ac_status" >&5
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7398 if test "$cross_compiling" = yes; then
7399 # Depending upon the size, compute the lo and hi bounds.
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7410 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7417 rm -f conftest.$ac_objext
7418 if { (ac_try="$ac_compile"
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424 (eval "$ac_compile") 2>conftest.er1
7426 grep -v '^ *+' conftest.er1 >conftest.err
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
7436 cat >conftest.$ac_ext <<_ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7446 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_compile") 2>conftest.er1
7462 grep -v '^ *+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } && {
7467 test -z "$ac_c_werror_flag" ||
7468 test ! -s conftest.err
7469 } && test -s conftest.$ac_objext; then
7470 ac_hi=$ac_mid; break
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_lo=`expr $ac_mid + 1`
7476 if test $ac_lo -le $ac_mid; then
7480 ac_mid=`expr 2 '*' $ac_mid + 1`
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7489 cat >conftest.$ac_ext <<_ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7499 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_compile") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest.$ac_objext; then
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7535 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7542 rm -f conftest.$ac_objext
7543 if { (ac_try="$ac_compile"
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_compile") 2>conftest.er1
7551 grep -v '^ *+' conftest.er1 >conftest.err
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest.$ac_objext; then
7559 ac_lo=$ac_mid; break
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7564 ac_hi=`expr '(' $ac_mid ')' - 1`
7565 if test $ac_mid -le $ac_hi; then
7569 ac_mid=`expr 2 '*' $ac_mid`
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 # Binary search between lo and hi bounds.
7586 while test "x$ac_lo" != "x$ac_hi"; do
7587 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7598 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7605 rm -f conftest.$ac_objext
7606 if { (ac_try="$ac_compile"
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612 (eval "$ac_compile") 2>conftest.er1
7614 grep -v '^ *+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 ac_lo=`expr '(' $ac_mid ')' + 1`
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7644 static long int longval () { return ~(size_t)0 % 10; }
7645 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7652 FILE *f = fopen ("conftest.val", "w");
7655 if ((~(size_t)0 % 10) < 0)
7657 long int i = longval ();
7658 if (i != (~(size_t)0 % 10))
7660 fprintf (f, "%ld\n", i);
7664 unsigned long int i = ulongval ();
7665 if (i != (~(size_t)0 % 10))
7667 fprintf (f, "%lu\n", i);
7669 return ferror (f) || fclose (f) != 0;
7675 rm -f conftest$ac_exeext
7676 if { (ac_try="$ac_link"
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_link") 2>&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7686 { (case "(($ac_try" in
7687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 *) ac_try_echo=$ac_try;;
7690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 (eval "$ac_try") 2>&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 res_lo=`cat conftest.val`
7697 echo "$as_me: program exited with status $ac_status" >&5
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7708 if test "$cross_compiling" = yes; then
7709 # Depending upon the size, compute the lo and hi bounds.
7710 cat >conftest.$ac_ext <<_ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7720 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7727 rm -f conftest.$ac_objext
7728 if { (ac_try="$ac_compile"
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_compile") 2>conftest.er1
7736 grep -v '^ *+' conftest.er1 >conftest.err
7738 cat conftest.err >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.$ac_objext; then
7746 cat >conftest.$ac_ext <<_ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7756 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7772 grep -v '^ *+' conftest.er1 >conftest.err
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 ac_hi=$ac_mid; break
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_lo=`expr $ac_mid + 1`
7786 if test $ac_lo -le $ac_mid; then
7790 ac_mid=`expr 2 '*' $ac_mid + 1`
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7799 cat >conftest.$ac_ext <<_ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7809 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7825 grep -v '^ *+' conftest.er1 >conftest.err
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7845 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7852 rm -f conftest.$ac_objext
7853 if { (ac_try="$ac_compile"
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_compile") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest.$ac_objext; then
7869 ac_lo=$ac_mid; break
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 ac_hi=`expr '(' $ac_mid ')' - 1`
7875 if test $ac_mid -le $ac_hi; then
7879 ac_mid=`expr 2 '*' $ac_mid`
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 # Binary search between lo and hi bounds.
7896 while test "x$ac_lo" != "x$ac_hi"; do
7897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7898 cat >conftest.$ac_ext <<_ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7908 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_lo=`expr '(' $ac_mid ')' + 1`
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 ?*) fits_in_uint=$ac_lo;;
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7954 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7955 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7962 FILE *f = fopen ("conftest.val", "w");
7965 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7967 long int i = longval ();
7968 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7970 fprintf (f, "%ld\n", i);
7974 unsigned long int i = ulongval ();
7975 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7977 fprintf (f, "%lu\n", i);
7979 return ferror (f) || fclose (f) != 0;
7985 rm -f conftest$ac_exeext
7986 if { (ac_try="$ac_link"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_link") 2>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7996 { (case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_try") 2>&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 fits_in_uint=`cat conftest.val`
8007 echo "$as_me: program exited with status $ac_status" >&5
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8018 if test "$fits_in_uint" = 1; then
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8027 extern unsigned long foo;
8037 rm -f conftest.$ac_objext
8038 if { (ac_try="$ac_compile"
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 if test -z "$result"; then
8065 if test "$fits_in_uint" = 1; then
8066 result="$res_hi$res_lo"U
8068 result="$res_hi$res_lo"UL
8074 { echo "$as_me:$LINENO: result: $result" >&5
8075 echo "${ECHO_T}$result" >&6; }
8076 if test "$result" != yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define SIZE_MAX $result
8087 for ac_header in stdint.h
8089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 ac_res=`eval echo '${'$as_ac_Header'}'`
8097 { echo "$as_me:$LINENO: result: $ac_res" >&5
8098 echo "${ECHO_T}$ac_res" >&6; }
8100 # Is the header compilable?
8101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8103 cat >conftest.$ac_ext <<_ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 #include <$ac_header>
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8121 grep -v '^ *+' conftest.er1 >conftest.err
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
8129 ac_header_compiler=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_header_compiler=no
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8139 echo "${ECHO_T}$ac_header_compiler" >&6; }
8141 # Is the header present?
8142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 #include <$ac_header>
8152 if { (ac_try="$ac_cpp conftest.$ac_ext"
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } >/dev/null && {
8165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8168 ac_header_preproc=yes
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_header_preproc=no
8176 rm -f conftest.err conftest.$ac_ext
8177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8178 echo "${ECHO_T}$ac_header_preproc" >&6; }
8180 # So? What about this header?
8181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8187 ac_header_preproc=yes
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 eval "$as_ac_Header=\$ac_header_preproc"
8212 ac_res=`eval echo '${'$as_ac_Header'}'`
8213 { echo "$as_me:$LINENO: result: $ac_res" >&5
8214 echo "${ECHO_T}$ac_res" >&6; }
8217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8218 cat >>confdefs.h <<_ACEOF
8219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8228 if test "X$prefix" = "XNONE"; then
8229 acl_final_prefix="$ac_default_prefix"
8231 acl_final_prefix="$prefix"
8233 if test "X$exec_prefix" = "XNONE"; then
8234 acl_final_exec_prefix='${prefix}'
8236 acl_final_exec_prefix="$exec_prefix"
8238 acl_save_prefix="$prefix"
8239 prefix="$acl_final_prefix"
8240 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8241 prefix="$acl_save_prefix"
8244 # Check whether --with-gnu-ld was given.
8245 if test "${with_gnu_ld+set}" = set; then
8246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8251 # Prepare PATH_SEPARATOR.
8252 # The user is always right.
8253 if test "${PATH_SEPARATOR+set}" != set; then
8254 echo "#! /bin/sh" >conf$$.sh
8255 echo "exit 0" >>conf$$.sh
8257 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8265 if test "$GCC" = yes; then
8266 # Check if gcc -print-prog-name=ld gives a path.
8267 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8268 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8271 # gcc leaves a trailing carriage return which upsets mingw
8272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8277 # Accept absolute paths.
8278 [\\/]* | [A-Za-z]:[\\/]*)
8279 re_direlt='/[^/][^/]*/\.\./'
8280 # Canonicalize the path of ld
8281 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8282 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8283 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8285 test -z "$LD" && LD="$ac_prog"
8288 # If it fails, then pretend we aren't using GCC.
8292 # If it is relative, then search for the first ld in PATH.
8296 elif test "$with_gnu_ld" = yes; then
8297 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8300 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8303 if test "${acl_cv_path_LD+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 if test -z "$LD"; then
8307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8308 for ac_dir in $PATH; do
8309 test -z "$ac_dir" && ac_dir=.
8310 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8311 acl_cv_path_LD="$ac_dir/$ac_prog"
8312 # Check to see if the program is GNU ld. I'd rather use --version,
8313 # but apparently some GNU ld's only accept -v.
8314 # Break only if it was the GNU/non-GNU ld that we prefer.
8315 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8316 *GNU* | *'with BFD'*)
8317 test "$with_gnu_ld" != no && break ;;
8319 test "$with_gnu_ld" != yes && break ;;
8325 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8329 LD="$acl_cv_path_LD"
8330 if test -n "$LD"; then
8331 { echo "$as_me:$LINENO: result: $LD" >&5
8332 echo "${ECHO_T}$LD" >&6; }
8334 { echo "$as_me:$LINENO: result: no" >&5
8335 echo "${ECHO_T}no" >&6; }
8337 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8338 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8339 { (exit 1); exit 1; }; }
8340 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8341 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8342 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8346 case `$LD -v 2>&1 </dev/null` in
8347 *GNU* | *'with BFD'*)
8348 acl_cv_prog_gnu_ld=yes ;;
8350 acl_cv_prog_gnu_ld=no ;;
8353 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8354 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8355 with_gnu_ld=$acl_cv_prog_gnu_ld
8359 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8360 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8361 if test "${acl_cv_rpath+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8366 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8372 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8373 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8375 libext="$acl_cv_libext"
8376 shlibext="$acl_cv_shlibext"
8377 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8378 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8379 hardcode_direct="$acl_cv_hardcode_direct"
8380 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8381 # Check whether --enable-rpath was given.
8382 if test "${enable_rpath+set}" = set; then
8383 enableval=$enable_rpath; :
8397 acl_save_prefix="$prefix"
8398 prefix="$acl_final_prefix"
8399 acl_save_exec_prefix="$exec_prefix"
8400 exec_prefix="$acl_final_exec_prefix"
8402 eval additional_includedir=\"$includedir\"
8403 eval additional_libdir=\"$libdir\"
8405 exec_prefix="$acl_save_exec_prefix"
8406 prefix="$acl_save_prefix"
8409 # Check whether --with-libiconv-prefix was given.
8410 if test "${with_libiconv_prefix+set}" = set; then
8411 withval=$with_libiconv_prefix;
8412 if test "X$withval" = "Xno"; then
8415 if test "X$withval" = "X"; then
8417 acl_save_prefix="$prefix"
8418 prefix="$acl_final_prefix"
8419 acl_save_exec_prefix="$exec_prefix"
8420 exec_prefix="$acl_final_exec_prefix"
8422 eval additional_includedir=\"$includedir\"
8423 eval additional_libdir=\"$libdir\"
8425 exec_prefix="$acl_save_exec_prefix"
8426 prefix="$acl_save_prefix"
8429 additional_includedir="$withval/include"
8430 additional_libdir="$withval/lib"
8441 names_already_handled=
8442 names_next_round='iconv '
8443 while test -n "$names_next_round"; do
8444 names_this_round="$names_next_round"
8446 for name in $names_this_round; do
8448 for n in $names_already_handled; do
8449 if test "$n" = "$name"; then
8454 if test -z "$already_handled"; then
8455 names_already_handled="$names_already_handled $name"
8456 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8457 eval value=\"\$HAVE_LIB$uppername\"
8458 if test -n "$value"; then
8459 if test "$value" = yes; then
8460 eval value=\"\$LIB$uppername\"
8461 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8462 eval value=\"\$LTLIB$uppername\"
8463 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8472 if test $use_additional = yes; then
8473 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8474 found_dir="$additional_libdir"
8475 found_so="$additional_libdir/lib$name.$shlibext"
8476 if test -f "$additional_libdir/lib$name.la"; then
8477 found_la="$additional_libdir/lib$name.la"
8480 if test -f "$additional_libdir/lib$name.$libext"; then
8481 found_dir="$additional_libdir"
8482 found_a="$additional_libdir/lib$name.$libext"
8483 if test -f "$additional_libdir/lib$name.la"; then
8484 found_la="$additional_libdir/lib$name.la"
8489 if test "X$found_dir" = "X"; then
8490 for x in $LDFLAGS $LTLIBICONV; do
8492 acl_save_prefix="$prefix"
8493 prefix="$acl_final_prefix"
8494 acl_save_exec_prefix="$exec_prefix"
8495 exec_prefix="$acl_final_exec_prefix"
8497 exec_prefix="$acl_save_exec_prefix"
8498 prefix="$acl_save_prefix"
8502 dir=`echo "X$x" | sed -e 's/^X-L//'`
8503 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8505 found_so="$dir/lib$name.$shlibext"
8506 if test -f "$dir/lib$name.la"; then
8507 found_la="$dir/lib$name.la"
8510 if test -f "$dir/lib$name.$libext"; then
8512 found_a="$dir/lib$name.$libext"
8513 if test -f "$dir/lib$name.la"; then
8514 found_la="$dir/lib$name.la"
8520 if test "X$found_dir" != "X"; then
8525 if test "X$found_dir" != "X"; then
8526 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8527 if test "X$found_so" != "X"; then
8528 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8529 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8532 for x in $ltrpathdirs; do
8533 if test "X$x" = "X$found_dir"; then
8538 if test -z "$haveit"; then
8539 ltrpathdirs="$ltrpathdirs $found_dir"
8541 if test "$hardcode_direct" = yes; then
8542 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8544 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8545 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8547 for x in $rpathdirs; do
8548 if test "X$x" = "X$found_dir"; then
8553 if test -z "$haveit"; then
8554 rpathdirs="$rpathdirs $found_dir"
8558 for x in $LDFLAGS $LIBICONV; do
8560 acl_save_prefix="$prefix"
8561 prefix="$acl_final_prefix"
8562 acl_save_exec_prefix="$exec_prefix"
8563 exec_prefix="$acl_final_exec_prefix"
8565 exec_prefix="$acl_save_exec_prefix"
8566 prefix="$acl_save_prefix"
8568 if test "X$x" = "X-L$found_dir"; then
8573 if test -z "$haveit"; then
8574 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8576 if test "$hardcode_minus_L" != no; then
8577 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8579 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8585 if test "X$found_a" != "X"; then
8586 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8588 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8591 additional_includedir=
8592 case "$found_dir" in
8594 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8595 additional_includedir="$basedir/include"
8598 if test "X$additional_includedir" != "X"; then
8599 if test "X$additional_includedir" != "X/usr/include"; then
8601 if test "X$additional_includedir" = "X/usr/local/include"; then
8602 if test -n "$GCC"; then
8604 linux*) haveit=yes;;
8608 if test -z "$haveit"; then
8609 for x in $CPPFLAGS $INCICONV; do
8611 acl_save_prefix="$prefix"
8612 prefix="$acl_final_prefix"
8613 acl_save_exec_prefix="$exec_prefix"
8614 exec_prefix="$acl_final_exec_prefix"
8616 exec_prefix="$acl_save_exec_prefix"
8617 prefix="$acl_save_prefix"
8619 if test "X$x" = "X-I$additional_includedir"; then
8624 if test -z "$haveit"; then
8625 if test -d "$additional_includedir"; then
8626 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8632 if test -n "$found_la"; then
8633 save_libdir="$libdir"
8635 */* | *\\*) . "$found_la" ;;
8636 *) . "./$found_la" ;;
8638 libdir="$save_libdir"
8639 for dep in $dependency_libs; do
8642 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8643 if test "X$additional_libdir" != "X/usr/lib"; then
8645 if test "X$additional_libdir" = "X/usr/local/lib"; then
8646 if test -n "$GCC"; then
8648 linux*) haveit=yes;;
8652 if test -z "$haveit"; then
8654 for x in $LDFLAGS $LIBICONV; do
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8664 if test "X$x" = "X-L$additional_libdir"; then
8669 if test -z "$haveit"; then
8670 if test -d "$additional_libdir"; then
8671 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8675 for x in $LDFLAGS $LTLIBICONV; do
8677 acl_save_prefix="$prefix"
8678 prefix="$acl_final_prefix"
8679 acl_save_exec_prefix="$exec_prefix"
8680 exec_prefix="$acl_final_exec_prefix"
8682 exec_prefix="$acl_save_exec_prefix"
8683 prefix="$acl_save_prefix"
8685 if test "X$x" = "X-L$additional_libdir"; then
8690 if test -z "$haveit"; then
8691 if test -d "$additional_libdir"; then
8692 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8699 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8700 if test "$enable_rpath" != no; then
8702 for x in $rpathdirs; do
8703 if test "X$x" = "X$dir"; then
8708 if test -z "$haveit"; then
8709 rpathdirs="$rpathdirs $dir"
8712 for x in $ltrpathdirs; do
8713 if test "X$x" = "X$dir"; then
8718 if test -z "$haveit"; then
8719 ltrpathdirs="$ltrpathdirs $dir"
8724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8727 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8730 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8731 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8737 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8744 if test "X$rpathdirs" != "X"; then
8745 if test -n "$hardcode_libdir_separator"; then
8747 for found_dir in $rpathdirs; do
8748 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8750 acl_save_libdir="$libdir"
8752 eval flag=\"$hardcode_libdir_flag_spec\"
8753 libdir="$acl_save_libdir"
8754 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8756 for found_dir in $rpathdirs; do
8757 acl_save_libdir="$libdir"
8759 eval flag=\"$hardcode_libdir_flag_spec\"
8760 libdir="$acl_save_libdir"
8761 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8765 if test "X$ltrpathdirs" != "X"; then
8766 for found_dir in $ltrpathdirs; do
8767 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8778 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8779 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8780 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 cat >conftest.$ac_ext <<_ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 $ac_includes_default
8790 typedef ptrdiff_t ac__type_new_;
8794 if ((ac__type_new_ *) 0)
8796 if (sizeof (ac__type_new_))
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1 >conftest.err
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
8819 ac_cv_type_ptrdiff_t=yes
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 ac_cv_type_ptrdiff_t=no
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8830 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8831 if test $ac_cv_type_ptrdiff_t = yes; then
8835 cat >>confdefs.h <<\_ACEOF
8836 #define ptrdiff_t long
8852 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8853 stdlib.h string.h unistd.h sys/param.h
8855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 ac_res=`eval echo '${'$as_ac_Header'}'`
8863 { echo "$as_me:$LINENO: result: $ac_res" >&5
8864 echo "${ECHO_T}$ac_res" >&6; }
8866 # Is the header compilable?
8867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 $ac_includes_default
8876 #include <$ac_header>
8878 rm -f conftest.$ac_objext
8879 if { (ac_try="$ac_compile"
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8887 grep -v '^ *+' conftest.er1 >conftest.err
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_header_compiler=yes
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 ac_header_compiler=no
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8905 echo "${ECHO_T}$ac_header_compiler" >&6; }
8907 # Is the header present?
8908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8910 cat >conftest.$ac_ext <<_ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 #include <$ac_header>
8918 if { (ac_try="$ac_cpp conftest.$ac_ext"
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } >/dev/null && {
8931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8934 ac_header_preproc=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_header_preproc=no
8942 rm -f conftest.err conftest.$ac_ext
8943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8944 echo "${ECHO_T}$ac_header_preproc" >&6; }
8946 # So? What about this header?
8947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8953 ac_header_preproc=yes
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 eval "$as_ac_Header=\$ac_header_preproc"
8978 ac_res=`eval echo '${'$as_ac_Header'}'`
8979 { echo "$as_me:$LINENO: result: $ac_res" >&5
8980 echo "${ECHO_T}$ac_res" >&6; }
8983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8984 cat >>confdefs.h <<_ACEOF
8985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9015 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9016 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9017 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9034 #define $ac_func innocuous_$ac_func
9036 /* System header to define __stub macros and hopefully few prototypes,
9037 which can conflict with char $ac_func (); below.
9038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039 <limits.h> exists even on freestanding compilers. */
9042 # include <limits.h>
9044 # include <assert.h>
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9056 /* The GNU C library defines this for functions which it implements
9057 to always fail with ENOSYS. Some functions are actually named
9058 something starting with __ and the normal name is an alias. */
9059 #if defined __stub_$ac_func || defined __stub___$ac_func
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
9080 grep -v '^ *+' conftest.er1 >conftest.err
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest$ac_exeext &&
9088 $as_test_x conftest$ac_exeext; then
9089 eval "$as_ac_var=yes"
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 eval "$as_ac_var=no"
9097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9098 conftest$ac_exeext conftest.$ac_ext
9100 ac_res=`eval echo '${'$as_ac_var'}'`
9101 { echo "$as_me:$LINENO: result: $ac_res" >&5
9102 echo "${ECHO_T}$ac_res" >&6; }
9103 if test `eval echo '${'$as_ac_var'}'` = yes; then
9104 cat >>confdefs.h <<_ACEOF
9105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9113 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9114 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9115 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9130 char *p = (char *) _snprintf;
9137 rm -f conftest.$ac_objext
9138 if { (ac_try="$ac_compile"
9140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141 *) ac_try_echo=$ac_try;;
9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144 (eval "$ac_compile") 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } && {
9151 test -z "$ac_c_werror_flag" ||
9152 test ! -s conftest.err
9153 } && test -s conftest.$ac_objext; then
9154 ac_cv_have_decl__snprintf=yes
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 ac_cv_have_decl__snprintf=no
9162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9165 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9166 if test $ac_cv_have_decl__snprintf = yes; then
9172 cat >>confdefs.h <<_ACEOF
9173 #define HAVE_DECL__SNPRINTF $gt_value
9178 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9179 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9180 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9195 char *p = (char *) _snwprintf;
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9211 grep -v '^ *+' conftest.er1 >conftest.err
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.$ac_objext; then
9219 ac_cv_have_decl__snwprintf=yes
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_cv_have_decl__snwprintf=no
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9230 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9231 if test $ac_cv_have_decl__snwprintf = yes; then
9237 cat >>confdefs.h <<_ACEOF
9238 #define HAVE_DECL__SNWPRINTF $gt_value
9244 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9245 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9246 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9247 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 cat >conftest.$ac_ext <<_ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9260 #ifndef feof_unlocked
9261 char *p = (char *) feof_unlocked;
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9285 ac_cv_have_decl_feof_unlocked=yes
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9290 ac_cv_have_decl_feof_unlocked=no
9293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9296 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9297 if test $ac_cv_have_decl_feof_unlocked = yes; then
9303 cat >>confdefs.h <<_ACEOF
9304 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9309 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9310 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9311 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9325 #ifndef fgets_unlocked
9326 char *p = (char *) fgets_unlocked;
9333 rm -f conftest.$ac_objext
9334 if { (ac_try="$ac_compile"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_compile") 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest.$ac_objext; then
9350 ac_cv_have_decl_fgets_unlocked=yes
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9355 ac_cv_have_decl_fgets_unlocked=no
9358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9361 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9362 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9368 cat >>confdefs.h <<_ACEOF
9369 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9374 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9375 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9376 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 cat >conftest.$ac_ext <<_ACEOF
9382 cat confdefs.h >>conftest.$ac_ext
9383 cat >>conftest.$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9390 #ifndef getc_unlocked
9391 char *p = (char *) getc_unlocked;
9398 rm -f conftest.$ac_objext
9399 if { (ac_try="$ac_compile"
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
9415 ac_cv_have_decl_getc_unlocked=yes
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 ac_cv_have_decl_getc_unlocked=no
9423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9426 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9427 if test $ac_cv_have_decl_getc_unlocked = yes; then
9433 cat >>confdefs.h <<_ACEOF
9434 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9439 case $gt_cv_func_printf_posix in
9440 *yes) HAVE_POSIX_PRINTF=1 ;;
9441 *) HAVE_POSIX_PRINTF=0 ;;
9444 if test "$ac_cv_func_asprintf" = yes; then
9450 if test "$ac_cv_func_snprintf" = yes; then
9456 if test "$ac_cv_func_wprintf" = yes; then
9468 am_save_CPPFLAGS="$CPPFLAGS"
9470 for element in $INCICONV; do
9472 for x in $CPPFLAGS; do
9474 acl_save_prefix="$prefix"
9475 prefix="$acl_final_prefix"
9476 acl_save_exec_prefix="$exec_prefix"
9477 exec_prefix="$acl_final_exec_prefix"
9479 exec_prefix="$acl_save_exec_prefix"
9480 prefix="$acl_save_prefix"
9482 if test "X$x" = "X$element"; then
9487 if test -z "$haveit"; then
9488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9493 { echo "$as_me:$LINENO: checking for iconv" >&5
9494 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9495 if test "${am_cv_func_iconv+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 am_cv_func_iconv="no, consider installing GNU libiconv"
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9512 iconv_t cd = iconv_open("","");
9513 iconv(cd,NULL,NULL,NULL,NULL);
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (ac_try="$ac_link"
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526 (eval "$ac_link") 2>conftest.er1
9528 grep -v '^ *+' conftest.er1 >conftest.err
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest$ac_exeext &&
9536 $as_test_x conftest$ac_exeext; then
9537 am_cv_func_iconv=yes
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9546 conftest$ac_exeext conftest.$ac_ext
9547 if test "$am_cv_func_iconv" != yes; then
9548 am_save_LIBS="$LIBS"
9549 LIBS="$LIBS $LIBICONV"
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9561 iconv_t cd = iconv_open("","");
9562 iconv(cd,NULL,NULL,NULL,NULL);
9568 rm -f conftest.$ac_objext conftest$ac_exeext
9569 if { (ac_try="$ac_link"
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_link") 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && {
9582 test -z "$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 } && test -s conftest$ac_exeext &&
9585 $as_test_x conftest$ac_exeext; then
9587 am_cv_func_iconv=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9596 conftest$ac_exeext conftest.$ac_ext
9597 LIBS="$am_save_LIBS"
9601 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9602 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9603 if test "$am_cv_func_iconv" = yes; then
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_ICONV 1
9610 if test "$am_cv_lib_iconv" = yes; then
9611 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9612 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9613 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9614 echo "${ECHO_T}$LIBICONV" >&6; }
9616 CPPFLAGS="$am_save_CPPFLAGS"
9623 if test "$am_cv_func_iconv" = yes; then
9624 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9625 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9626 if test "${am_cv_proto_iconv+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 cat >conftest.$ac_ext <<_ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h. */
9643 #if defined(__STDC__) || defined(__cplusplus)
9644 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9657 rm -f conftest.$ac_objext
9658 if { (ac_try="$ac_compile"
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_compile") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1 >conftest.err
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest.$ac_objext; then
9674 am_cv_proto_iconv_arg1=""
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 am_cv_proto_iconv_arg1="const"
9682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683 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);"
9686 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9687 { echo "$as_me:$LINENO: result: ${ac_t:-
9688 }$am_cv_proto_iconv" >&5
9689 echo "${ECHO_T}${ac_t:-
9690 }$am_cv_proto_iconv" >&6; }
9692 cat >>confdefs.h <<_ACEOF
9693 #define ICONV_CONST $am_cv_proto_iconv_arg1
9699 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9700 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9701 if test "${am_cv_langinfo_codeset+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 #include <langinfo.h>
9714 char* cs = nl_langinfo(CODESET);
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 am_cv_langinfo_codeset=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 am_cv_langinfo_codeset=no
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 conftest$ac_exeext conftest.$ac_ext
9749 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9750 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9751 if test $am_cv_langinfo_codeset = yes; then
9753 cat >>confdefs.h <<\_ACEOF
9754 #define HAVE_LANGINFO_CODESET 1
9759 if test $ac_cv_header_locale_h = yes; then
9761 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9762 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9763 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_link") 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } && {
9795 test -z "$ac_c_werror_flag" ||
9796 test ! -s conftest.err
9797 } && test -s conftest$ac_exeext &&
9798 $as_test_x conftest$ac_exeext; then
9799 am_cv_val_LC_MESSAGES=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 am_cv_val_LC_MESSAGES=no
9807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808 conftest$ac_exeext conftest.$ac_ext
9810 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9811 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9812 if test $am_cv_val_LC_MESSAGES = yes; then
9814 cat >>confdefs.h <<\_ACEOF
9815 #define HAVE_LC_MESSAGES 1
9822 for ac_prog in bison
9824 # Extract the first word of "$ac_prog", so it can be a program name with args.
9825 set dummy $ac_prog; ac_word=$2
9826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9828 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 if test -n "$INTLBISON"; then
9832 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_INTLBISON="$ac_prog"
9842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 INTLBISON=$ac_cv_prog_INTLBISON
9852 if test -n "$INTLBISON"; then
9853 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9854 echo "${ECHO_T}$INTLBISON" >&6; }
9856 { echo "$as_me:$LINENO: result: no" >&5
9857 echo "${ECHO_T}no" >&6; }
9861 test -n "$INTLBISON" && break
9864 if test -z "$INTLBISON"; then
9867 { echo "$as_me:$LINENO: checking version of bison" >&5
9868 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9869 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9870 case $ac_prog_version in
9871 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9872 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9873 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9874 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9876 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9877 echo "${ECHO_T}$ac_prog_version" >&6; }
9879 if test $ac_verc_fail = yes; then
9898 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9899 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9900 # Check whether --enable-nls was given.
9901 if test "${enable_nls+set}" = set; then
9902 enableval=$enable_nls; USE_NLS=$enableval
9907 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9908 echo "${ECHO_T}$USE_NLS" >&6; }
9913 BUILD_INCLUDED_LIBINTL=no
9914 USE_INCLUDED_LIBINTL=no
9920 if test "$USE_NLS" = "yes"; then
9921 gt_use_preinstalled_gnugettext=no
9923 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9924 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9926 # Check whether --with-included-gettext was given.
9927 if test "${with_included_gettext+set}" = set; then
9928 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9930 nls_cv_force_use_gnu_gettext=no
9933 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9934 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9936 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9937 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9944 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9945 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9946 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9955 #include <libintl.h>
9956 extern int _nl_msg_cat_cntr;
9957 extern int *_nl_domain_bindings;
9961 bindtextdomain ("", "");
9962 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>conftest.er1
9976 grep -v '^ *+' conftest.er1 >conftest.err
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && {
9981 test -z "$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9983 } && test -s conftest$ac_exeext &&
9984 $as_test_x conftest$ac_exeext; then
9985 gt_cv_func_gnugettext1_libc=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 gt_cv_func_gnugettext1_libc=no
9993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9994 conftest$ac_exeext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9997 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9999 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10005 acl_save_prefix="$prefix"
10006 prefix="$acl_final_prefix"
10007 acl_save_exec_prefix="$exec_prefix"
10008 exec_prefix="$acl_final_exec_prefix"
10010 eval additional_includedir=\"$includedir\"
10011 eval additional_libdir=\"$libdir\"
10013 exec_prefix="$acl_save_exec_prefix"
10014 prefix="$acl_save_prefix"
10017 # Check whether --with-libintl-prefix was given.
10018 if test "${with_libintl_prefix+set}" = set; then
10019 withval=$with_libintl_prefix;
10020 if test "X$withval" = "Xno"; then
10023 if test "X$withval" = "X"; then
10025 acl_save_prefix="$prefix"
10026 prefix="$acl_final_prefix"
10027 acl_save_exec_prefix="$exec_prefix"
10028 exec_prefix="$acl_final_exec_prefix"
10030 eval additional_includedir=\"$includedir\"
10031 eval additional_libdir=\"$libdir\"
10033 exec_prefix="$acl_save_exec_prefix"
10034 prefix="$acl_save_prefix"
10037 additional_includedir="$withval/include"
10038 additional_libdir="$withval/lib"
10049 names_already_handled=
10050 names_next_round='intl '
10051 while test -n "$names_next_round"; do
10052 names_this_round="$names_next_round"
10054 for name in $names_this_round; do
10056 for n in $names_already_handled; do
10057 if test "$n" = "$name"; then
10058 already_handled=yes
10062 if test -z "$already_handled"; then
10063 names_already_handled="$names_already_handled $name"
10064 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10065 eval value=\"\$HAVE_LIB$uppername\"
10066 if test -n "$value"; then
10067 if test "$value" = yes; then
10068 eval value=\"\$LIB$uppername\"
10069 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10070 eval value=\"\$LTLIB$uppername\"
10071 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10080 if test $use_additional = yes; then
10081 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10082 found_dir="$additional_libdir"
10083 found_so="$additional_libdir/lib$name.$shlibext"
10084 if test -f "$additional_libdir/lib$name.la"; then
10085 found_la="$additional_libdir/lib$name.la"
10088 if test -f "$additional_libdir/lib$name.$libext"; then
10089 found_dir="$additional_libdir"
10090 found_a="$additional_libdir/lib$name.$libext"
10091 if test -f "$additional_libdir/lib$name.la"; then
10092 found_la="$additional_libdir/lib$name.la"
10097 if test "X$found_dir" = "X"; then
10098 for x in $LDFLAGS $LTLIBINTL; do
10100 acl_save_prefix="$prefix"
10101 prefix="$acl_final_prefix"
10102 acl_save_exec_prefix="$exec_prefix"
10103 exec_prefix="$acl_final_exec_prefix"
10105 exec_prefix="$acl_save_exec_prefix"
10106 prefix="$acl_save_prefix"
10110 dir=`echo "X$x" | sed -e 's/^X-L//'`
10111 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10113 found_so="$dir/lib$name.$shlibext"
10114 if test -f "$dir/lib$name.la"; then
10115 found_la="$dir/lib$name.la"
10118 if test -f "$dir/lib$name.$libext"; then
10120 found_a="$dir/lib$name.$libext"
10121 if test -f "$dir/lib$name.la"; then
10122 found_la="$dir/lib$name.la"
10128 if test "X$found_dir" != "X"; then
10133 if test "X$found_dir" != "X"; then
10134 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10135 if test "X$found_so" != "X"; then
10136 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10140 for x in $ltrpathdirs; do
10141 if test "X$x" = "X$found_dir"; then
10146 if test -z "$haveit"; then
10147 ltrpathdirs="$ltrpathdirs $found_dir"
10149 if test "$hardcode_direct" = yes; then
10150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10152 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10155 for x in $rpathdirs; do
10156 if test "X$x" = "X$found_dir"; then
10161 if test -z "$haveit"; then
10162 rpathdirs="$rpathdirs $found_dir"
10166 for x in $LDFLAGS $LIBINTL; do
10168 acl_save_prefix="$prefix"
10169 prefix="$acl_final_prefix"
10170 acl_save_exec_prefix="$exec_prefix"
10171 exec_prefix="$acl_final_exec_prefix"
10173 exec_prefix="$acl_save_exec_prefix"
10174 prefix="$acl_save_prefix"
10176 if test "X$x" = "X-L$found_dir"; then
10181 if test -z "$haveit"; then
10182 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10184 if test "$hardcode_minus_L" != no; then
10185 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10187 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10193 if test "X$found_a" != "X"; then
10194 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10196 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10199 additional_includedir=
10200 case "$found_dir" in
10202 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10203 additional_includedir="$basedir/include"
10206 if test "X$additional_includedir" != "X"; then
10207 if test "X$additional_includedir" != "X/usr/include"; then
10209 if test "X$additional_includedir" = "X/usr/local/include"; then
10210 if test -n "$GCC"; then
10212 linux*) haveit=yes;;
10216 if test -z "$haveit"; then
10217 for x in $CPPFLAGS $INCINTL; do
10219 acl_save_prefix="$prefix"
10220 prefix="$acl_final_prefix"
10221 acl_save_exec_prefix="$exec_prefix"
10222 exec_prefix="$acl_final_exec_prefix"
10224 exec_prefix="$acl_save_exec_prefix"
10225 prefix="$acl_save_prefix"
10227 if test "X$x" = "X-I$additional_includedir"; then
10232 if test -z "$haveit"; then
10233 if test -d "$additional_includedir"; then
10234 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10240 if test -n "$found_la"; then
10241 save_libdir="$libdir"
10242 case "$found_la" in
10243 */* | *\\*) . "$found_la" ;;
10244 *) . "./$found_la" ;;
10246 libdir="$save_libdir"
10247 for dep in $dependency_libs; do
10250 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10251 if test "X$additional_libdir" != "X/usr/lib"; then
10253 if test "X$additional_libdir" = "X/usr/local/lib"; then
10254 if test -n "$GCC"; then
10256 linux*) haveit=yes;;
10260 if test -z "$haveit"; then
10262 for x in $LDFLAGS $LIBINTL; do
10264 acl_save_prefix="$prefix"
10265 prefix="$acl_final_prefix"
10266 acl_save_exec_prefix="$exec_prefix"
10267 exec_prefix="$acl_final_exec_prefix"
10269 exec_prefix="$acl_save_exec_prefix"
10270 prefix="$acl_save_prefix"
10272 if test "X$x" = "X-L$additional_libdir"; then
10277 if test -z "$haveit"; then
10278 if test -d "$additional_libdir"; then
10279 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10283 for x in $LDFLAGS $LTLIBINTL; do
10285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
10290 exec_prefix="$acl_save_exec_prefix"
10291 prefix="$acl_save_prefix"
10293 if test "X$x" = "X-L$additional_libdir"; then
10298 if test -z "$haveit"; then
10299 if test -d "$additional_libdir"; then
10300 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10307 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10308 if test "$enable_rpath" != no; then
10310 for x in $rpathdirs; do
10311 if test "X$x" = "X$dir"; then
10316 if test -z "$haveit"; then
10317 rpathdirs="$rpathdirs $dir"
10320 for x in $ltrpathdirs; do
10321 if test "X$x" = "X$dir"; then
10326 if test -z "$haveit"; then
10327 ltrpathdirs="$ltrpathdirs $dir"
10332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10338 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10345 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10346 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10352 if test "X$rpathdirs" != "X"; then
10353 if test -n "$hardcode_libdir_separator"; then
10355 for found_dir in $rpathdirs; do
10356 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10358 acl_save_libdir="$libdir"
10360 eval flag=\"$hardcode_libdir_flag_spec\"
10361 libdir="$acl_save_libdir"
10362 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10364 for found_dir in $rpathdirs; do
10365 acl_save_libdir="$libdir"
10366 libdir="$found_dir"
10367 eval flag=\"$hardcode_libdir_flag_spec\"
10368 libdir="$acl_save_libdir"
10369 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10373 if test "X$ltrpathdirs" != "X"; then
10374 for found_dir in $ltrpathdirs; do
10375 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10379 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10380 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10381 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 gt_save_CPPFLAGS="$CPPFLAGS"
10385 CPPFLAGS="$CPPFLAGS $INCINTL"
10386 gt_save_LIBS="$LIBS"
10387 LIBS="$LIBS $LIBINTL"
10388 cat >conftest.$ac_ext <<_ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h. */
10394 #include <libintl.h>
10395 extern int _nl_msg_cat_cntr;
10400 const char *_nl_expand_alias ();
10404 bindtextdomain ("", "");
10405 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10410 rm -f conftest.$ac_objext conftest$ac_exeext
10411 if { (ac_try="$ac_link"
10412 case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_link") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1 >conftest.err
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest$ac_exeext &&
10427 $as_test_x conftest$ac_exeext; then
10428 gt_cv_func_gnugettext1_libintl=yes
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 gt_cv_func_gnugettext1_libintl=no
10436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10437 conftest$ac_exeext conftest.$ac_ext
10438 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10439 LIBS="$LIBS $LIBICONV"
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 #include <libintl.h>
10447 extern int _nl_msg_cat_cntr;
10452 const char *_nl_expand_alias ();
10456 bindtextdomain ("", "");
10457 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest$ac_exeext &&
10479 $as_test_x conftest$ac_exeext; then
10480 LIBINTL="$LIBINTL $LIBICONV"
10481 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10482 gt_cv_func_gnugettext1_libintl=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10492 conftest$ac_exeext conftest.$ac_ext
10494 CPPFLAGS="$gt_save_CPPFLAGS"
10495 LIBS="$gt_save_LIBS"
10497 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10498 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10501 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10502 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10503 && test "$PACKAGE" != gettext-runtime \
10504 && test "$PACKAGE" != gettext-tools; }; then
10505 gt_use_preinstalled_gnugettext=yes
10513 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10514 nls_cv_use_gnu_gettext=yes
10518 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10519 BUILD_INCLUDED_LIBINTL=yes
10520 USE_INCLUDED_LIBINTL=yes
10521 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10522 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10523 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10526 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10527 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10532 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10533 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10535 cat >>confdefs.h <<\_ACEOF
10536 #define ENABLE_NLS 1
10544 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10545 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10546 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10547 echo "${ECHO_T}$USE_NLS" >&6; }
10548 if test "$USE_NLS" = "yes"; then
10549 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10550 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10551 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10552 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10553 gt_source="external libintl"
10558 gt_source="included intl directory"
10560 { echo "$as_me:$LINENO: result: $gt_source" >&5
10561 echo "${ECHO_T}$gt_source" >&6; }
10564 if test "$USE_NLS" = "yes"; then
10566 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10567 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10568 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10569 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10570 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10571 echo "${ECHO_T}$LIBINTL" >&6; }
10573 for element in $INCINTL; do
10575 for x in $CPPFLAGS; do
10577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10582 exec_prefix="$acl_save_exec_prefix"
10583 prefix="$acl_save_prefix"
10585 if test "X$x" = "X$element"; then
10590 if test -z "$haveit"; then
10591 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10598 cat >>confdefs.h <<\_ACEOF
10599 #define HAVE_GETTEXT 1
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_DCGETTEXT 1
10613 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10614 BUILD_INCLUDED_LIBINTL=yes
10621 nls_cv_header_intl=
10622 nls_cv_header_libgt=
10633 if test "$USE_INCLUDED_LIBINTL" = yes; then
10634 INTLOBJS="\$(GETTOBJS)"
10638 INTL_LIBTOOL_SUFFIX_PREFIX=
10642 INTLLIBS="$LIBINTL"
10650 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10651 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10652 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10653 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 cat >conftest.make <<\_ACEOF
10659 @echo '@@@%%%=$(MAKE)=@@@%%%'
10661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10662 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10663 *@@@%%%=?*=@@@%%%*)
10664 eval ac_cv_prog_make_${ac_make}_set=yes;;
10666 eval ac_cv_prog_make_${ac_make}_set=no;;
10668 rm -f conftest.make
10670 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10671 { echo "$as_me:$LINENO: result: yes" >&5
10672 echo "${ECHO_T}yes" >&6; }
10675 { echo "$as_me:$LINENO: result: no" >&5
10676 echo "${ECHO_T}no" >&6; }
10677 SET_MAKE="MAKE=${MAKE-make}"
10680 # Extract the first word of "ln", so it can be a program name with args.
10681 set dummy ln; ac_word=$2
10682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10684 if test "${ac_cv_path_LN+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10699 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10712 if test -n "$LN"; then
10713 { echo "$as_me:$LINENO: result: $LN" >&5
10714 echo "${ECHO_T}$LN" >&6; }
10716 { echo "$as_me:$LINENO: result: no" >&5
10717 echo "${ECHO_T}no" >&6; }
10721 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10722 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10724 if test "$LN_S" = "ln -s"; then
10725 { echo "$as_me:$LINENO: result: yes" >&5
10726 echo "${ECHO_T}yes" >&6; }
10728 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10729 echo "${ECHO_T}no, using $LN_S" >&6; }
10732 # Extract the first word of "mv", so it can be a program name with args.
10733 set dummy mv; ac_word=$2
10734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10736 if test "${ac_cv_path_MV+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745 for as_dir in $PATH
10748 test -z "$as_dir" && as_dir=.
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10751 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10759 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10764 if test -n "$MV"; then
10765 { echo "$as_me:$LINENO: result: $MV" >&5
10766 echo "${ECHO_T}$MV" >&6; }
10768 { echo "$as_me:$LINENO: result: no" >&5
10769 echo "${ECHO_T}no" >&6; }
10773 # Extract the first word of "cp", so it can be a program name with args.
10774 set dummy cp; ac_word=$2
10775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10777 if test "${ac_cv_path_CP+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10805 if test -n "$CP"; then
10806 { echo "$as_me:$LINENO: result: $CP" >&5
10807 echo "${ECHO_T}$CP" >&6; }
10809 { echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6; }
10814 # Extract the first word of "rm", so it can be a program name with args.
10815 set dummy rm; ac_word=$2
10816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10818 if test "${ac_cv_path_RM+set}" = set; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10823 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10846 if test -n "$RM"; then
10847 { echo "$as_me:$LINENO: result: $RM" >&5
10848 echo "${ECHO_T}$RM" >&6; }
10850 { echo "$as_me:$LINENO: result: no" >&5
10851 echo "${ECHO_T}no" >&6; }
10855 # Extract the first word of "chmod", so it can be a program name with args.
10856 set dummy chmod; ac_word=$2
10857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10859 if test "${ac_cv_path_CHMOD+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10874 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10882 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10886 CHMOD=$ac_cv_path_CHMOD
10887 if test -n "$CHMOD"; then
10888 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10889 echo "${ECHO_T}$CHMOD" >&6; }
10891 { echo "$as_me:$LINENO: result: no" >&5
10892 echo "${ECHO_T}no" >&6; }
10896 for ac_prog in gawk mawk nawk awk
10898 # Extract the first word of "$ac_prog", so it can be a program name with args.
10899 set dummy $ac_prog; ac_word=$2
10900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10902 if test "${ac_cv_prog_AWK+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 if test -n "$AWK"; then
10906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10915 ac_cv_prog_AWK="$ac_prog"
10916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 AWK=$ac_cv_prog_AWK
10926 if test -n "$AWK"; then
10927 { echo "$as_me:$LINENO: result: $AWK" >&5
10928 echo "${ECHO_T}$AWK" >&6; }
10930 { echo "$as_me:$LINENO: result: no" >&5
10931 echo "${ECHO_T}no" >&6; }
10935 test -n "$AWK" && break
10938 { echo "$as_me:$LINENO: checking for egrep" >&5
10939 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10940 if test "${ac_cv_path_EGREP+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10944 then ac_cv_path_EGREP="$GREP -E"
10946 # Extract the first word of "egrep" to use in msg output
10947 if test -z "$EGREP"; then
10948 set dummy egrep; ac_prog_name=$2
10949 if test "${ac_cv_path_EGREP+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 ac_path_EGREP_found=false
10953 # Loop through the user's path and test for each of PROGNAME-LIST
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10958 test -z "$as_dir" && as_dir=.
10959 for ac_prog in egrep; do
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10963 # Check for GNU ac_path_EGREP and select it if it is found.
10964 # Check for GNU $ac_path_EGREP
10965 case `"$ac_path_EGREP" --version 2>&1` in
10967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10970 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10973 cat "conftest.in" "conftest.in" >"conftest.tmp"
10974 mv "conftest.tmp" "conftest.in"
10975 cp "conftest.in" "conftest.nl"
10976 echo 'EGREP' >> "conftest.nl"
10977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10979 ac_count=`expr $ac_count + 1`
10980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10981 # Best one so far, save it but keep looking for a better one
10982 ac_cv_path_EGREP="$ac_path_EGREP"
10983 ac_path_EGREP_max=$ac_count
10985 # 10*(2^10) chars as input seems more than enough
10986 test $ac_count -gt 10 && break
10988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10992 $ac_path_EGREP_found && break 3
11002 EGREP="$ac_cv_path_EGREP"
11003 if test -z "$EGREP"; then
11004 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11005 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11006 { (exit 1); exit 1; }; }
11010 ac_cv_path_EGREP=$EGREP
11016 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11017 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11018 EGREP="$ac_cv_path_EGREP"
11021 # Extract the first word of "sed", so it can be a program name with args.
11022 set dummy sed; ac_word=$2
11023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11025 if test "${ac_cv_path_SED+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034 for as_dir in $PATH
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11040 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11052 SED=$ac_cv_path_SED
11053 if test -n "$SED"; then
11054 { echo "$as_me:$LINENO: result: $SED" >&5
11055 echo "${ECHO_T}$SED" >&6; }
11057 { echo "$as_me:$LINENO: result: no" >&5
11058 echo "${ECHO_T}no" >&6; }
11062 # Extract the first word of "perl", so it can be a program name with args.
11063 set dummy perl; ac_word=$2
11064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11066 if test "${ac_cv_path_PERL+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11075 for as_dir in $PATH
11078 test -z "$as_dir" && as_dir=.
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11081 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11093 PERL=$ac_cv_path_PERL
11094 if test -n "$PERL"; then
11095 { echo "$as_me:$LINENO: result: $PERL" >&5
11096 echo "${ECHO_T}$PERL" >&6; }
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11103 # Extract the first word of "ldconfig", so it can be a program name with args.
11104 set dummy ldconfig; ac_word=$2
11105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11107 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11134 LDCONFIG=$ac_cv_path_LDCONFIG
11135 if test -n "$LDCONFIG"; then
11136 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11137 echo "${ECHO_T}$LDCONFIG" >&6; }
11139 { echo "$as_me:$LINENO: result: no" >&5
11140 echo "${ECHO_T}no" >&6; }
11144 if test -n "$ac_tool_prefix"; then
11145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11146 set dummy ${ac_tool_prefix}ar; ac_word=$2
11147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11149 if test "${ac_cv_prog_AR+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 if test -n "$AR"; then
11153 ac_cv_prog_AR="$AR" # Let the user override the test.
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162 ac_cv_prog_AR="${ac_tool_prefix}ar"
11163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 if test -n "$AR"; then
11174 { echo "$as_me:$LINENO: result: $AR" >&5
11175 echo "${ECHO_T}$AR" >&6; }
11177 { echo "$as_me:$LINENO: result: no" >&5
11178 echo "${ECHO_T}no" >&6; }
11183 if test -z "$ac_cv_prog_AR"; then
11185 # Extract the first word of "ar", so it can be a program name with args.
11186 set dummy ar; ac_word=$2
11187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 if test -n "$ac_ct_AR"; then
11193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202 ac_cv_prog_ac_ct_AR="ar"
11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11213 if test -n "$ac_ct_AR"; then
11214 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11215 echo "${ECHO_T}$ac_ct_AR" >&6; }
11217 { echo "$as_me:$LINENO: result: no" >&5
11218 echo "${ECHO_T}no" >&6; }
11221 if test "x$ac_ct_AR" = x; then
11224 case $cross_compiling:$ac_tool_warned in
11226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11227 whose name does not start with the host triplet. If you think this
11228 configuration is useful to you, please write to autoconf@gnu.org." >&5
11229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11230 whose name does not start with the host triplet. If you think this
11231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11232 ac_tool_warned=yes ;;
11237 AR="$ac_cv_prog_AR"
11240 if test -n "$ac_tool_prefix"; then
11241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11245 if test "${ac_cv_prog_RANLIB+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 if test -n "$RANLIB"; then
11249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252 for as_dir in $PATH
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
11257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11268 RANLIB=$ac_cv_prog_RANLIB
11269 if test -n "$RANLIB"; then
11270 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11271 echo "${ECHO_T}$RANLIB" >&6; }
11273 { echo "$as_me:$LINENO: result: no" >&5
11274 echo "${ECHO_T}no" >&6; }
11279 if test -z "$ac_cv_prog_RANLIB"; then
11280 ac_ct_RANLIB=$RANLIB
11281 # Extract the first word of "ranlib", so it can be a program name with args.
11282 set dummy ranlib; ac_word=$2
11283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 if test -n "$ac_ct_RANLIB"; then
11289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298 ac_cv_prog_ac_ct_RANLIB="ranlib"
11299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11309 if test -n "$ac_ct_RANLIB"; then
11310 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11311 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11313 { echo "$as_me:$LINENO: result: no" >&5
11314 echo "${ECHO_T}no" >&6; }
11317 if test "x$ac_ct_RANLIB" = x; then
11320 case $cross_compiling:$ac_tool_warned in
11322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11323 whose name does not start with the host triplet. If you think this
11324 configuration is useful to you, please write to autoconf@gnu.org." >&5
11325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11326 whose name does not start with the host triplet. If you think this
11327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11328 ac_tool_warned=yes ;;
11330 RANLIB=$ac_ct_RANLIB
11333 RANLIB="$ac_cv_prog_RANLIB"
11336 if test -n "$ac_tool_prefix"; then
11337 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11338 set dummy ${ac_tool_prefix}strip; ac_word=$2
11339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11341 if test "${ac_cv_prog_STRIP+set}" = set; then
11342 echo $ECHO_N "(cached) $ECHO_C" >&6
11344 if test -n "$STRIP"; then
11345 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 STRIP=$ac_cv_prog_STRIP
11365 if test -n "$STRIP"; then
11366 { echo "$as_me:$LINENO: result: $STRIP" >&5
11367 echo "${ECHO_T}$STRIP" >&6; }
11369 { echo "$as_me:$LINENO: result: no" >&5
11370 echo "${ECHO_T}no" >&6; }
11375 if test -z "$ac_cv_prog_STRIP"; then
11377 # Extract the first word of "strip", so it can be a program name with args.
11378 set dummy strip; ac_word=$2
11379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 if test -n "$ac_ct_STRIP"; then
11385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394 ac_cv_prog_ac_ct_STRIP="strip"
11395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11405 if test -n "$ac_ct_STRIP"; then
11406 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11407 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11409 { echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6; }
11413 if test "x$ac_ct_STRIP" = x; then
11416 case $cross_compiling:$ac_tool_warned in
11418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11419 whose name does not start with the host triplet. If you think this
11420 configuration is useful to you, please write to autoconf@gnu.org." >&5
11421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11422 whose name does not start with the host triplet. If you think this
11423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11424 ac_tool_warned=yes ;;
11429 STRIP="$ac_cv_prog_STRIP"
11432 # Extract the first word of "makeinfo", so it can be a program name with args.
11433 set dummy makeinfo; ac_word=$2
11434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11436 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 if test -n "$MAKEINFO"; then
11440 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449 ac_cv_prog_MAKEINFO="makeinfo"
11450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11459 MAKEINFO=$ac_cv_prog_MAKEINFO
11460 if test -n "$MAKEINFO"; then
11461 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11462 echo "${ECHO_T}$MAKEINFO" >&6; }
11464 { echo "$as_me:$LINENO: result: no" >&5
11465 echo "${ECHO_T}no" >&6; }
11469 if test "_$MAKEINFO" = "_"; then
11470 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11472 case "$MAKEINFO" in
11474 { echo "$as_me:$LINENO: WARNING:
11475 *** Makeinfo is missing. Info documentation will not be built." >&5
11476 echo "$as_me: WARNING:
11477 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11484 # Find a good install program. We prefer a C program (faster),
11485 # so one script is as good as another. But avoid the broken or
11486 # incompatible versions:
11487 # SysV /etc/install, /usr/sbin/install
11488 # SunOS /usr/etc/install
11489 # IRIX /sbin/install
11491 # AmigaOS /C/install, which installs bootblocks on floppy discs
11492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11495 # OS/2's system install, which has a completely different semantic
11496 # ./install, which can be erroneously created by make from ./install.sh.
11497 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11498 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11499 if test -z "$INSTALL"; then
11500 if test "${ac_cv_path_install+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11507 test -z "$as_dir" && as_dir=.
11508 # Account for people who put trailing slashes in PATH elements.
11510 ./ | .// | /cC/* | \
11511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11512 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11515 # OSF1 and SCO ODT 3.0 have their own names for install.
11516 # Don't use installbsd from OSF since it installs stuff as root
11518 for ac_prog in ginstall scoinst install; do
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11521 if test $ac_prog = install &&
11522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11523 # AIX install. It has an incompatible calling convention.
11525 elif test $ac_prog = install &&
11526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11527 # program-specific install script used by HP pwplus--don't use.
11530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11543 if test "${ac_cv_path_install+set}" = set; then
11544 INSTALL=$ac_cv_path_install
11546 # As a last resort, use the slow shell script. Don't cache a
11547 # value for INSTALL within a source directory, because that will
11548 # break other packages using the cache if that directory is
11549 # removed, or if the value is a relative name.
11550 INSTALL=$ac_install_sh
11553 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11554 echo "${ECHO_T}$INSTALL" >&6; }
11556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11557 # It thinks the first close brace ends the variable substitution.
11558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11564 # See if we need a separate native compiler.
11565 if test $cross_compiling = no; then
11569 for ac_prog in gcc cc
11571 # Extract the first word of "$ac_prog", so it can be a program name with args.
11572 set dummy $ac_prog; ac_word=$2
11573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11575 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 if test -n "$BUILD_CC"; then
11579 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582 for as_dir in $PATH
11585 test -z "$as_dir" && as_dir=.
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11588 ac_cv_prog_BUILD_CC="$ac_prog"
11589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 BUILD_CC=$ac_cv_prog_BUILD_CC
11599 if test -n "$BUILD_CC"; then
11600 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11601 echo "${ECHO_T}$BUILD_CC" >&6; }
11603 { echo "$as_me:$LINENO: result: no" >&5
11604 echo "${ECHO_T}no" >&6; }
11608 test -n "$BUILD_CC" && break
11649 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/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 ac_res=`eval echo '${'$as_ac_Header'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660 echo "${ECHO_T}$ac_res" >&6; }
11662 # Is the header compilable?
11663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 $ac_includes_default
11672 #include <$ac_header>
11674 rm -f conftest.$ac_objext
11675 if { (ac_try="$ac_compile"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_compile") 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } && {
11688 test -z "$ac_c_werror_flag" ||
11689 test ! -s conftest.err
11690 } && test -s conftest.$ac_objext; then
11691 ac_header_compiler=yes
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 ac_header_compiler=no
11699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11701 echo "${ECHO_T}$ac_header_compiler" >&6; }
11703 # Is the header present?
11704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11706 cat >conftest.$ac_ext <<_ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11712 #include <$ac_header>
11714 if { (ac_try="$ac_cpp conftest.$ac_ext"
11715 case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11722 grep -v '^ *+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } >/dev/null && {
11727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11730 ac_header_preproc=yes
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11735 ac_header_preproc=no
11738 rm -f conftest.err conftest.$ac_ext
11739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11740 echo "${ECHO_T}$ac_header_preproc" >&6; }
11742 # So? What about this header?
11743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11749 ac_header_preproc=yes
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 eval "$as_ac_Header=\$ac_header_preproc"
11774 ac_res=`eval echo '${'$as_ac_Header'}'`
11775 { echo "$as_me:$LINENO: result: $ac_res" >&5
11776 echo "${ECHO_T}$ac_res" >&6; }
11779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11790 for ac_header in sys/disk.h sys/mount.h
11792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 cat >conftest.$ac_ext <<_ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11805 #if HAVE_SYS_QUEUE_H
11806 #include <sys/queue.h>
11810 #include <$ac_header>
11812 rm -f conftest.$ac_objext
11813 if { (ac_try="$ac_compile"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_compile") 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } && {
11826 test -z "$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11828 } && test -s conftest.$ac_objext; then
11829 eval "$as_ac_Header=yes"
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11834 eval "$as_ac_Header=no"
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11839 ac_res=`eval echo '${'$as_ac_Header'}'`
11840 { echo "$as_me:$LINENO: result: $ac_res" >&5
11841 echo "${ECHO_T}$ac_res" >&6; }
11842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11843 cat >>confdefs.h <<_ACEOF
11844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11852 for ac_header in net/if.h
11854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.$ac_ext <<_ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11867 #if HAVE_SYS_TYPES_H
11868 #include <sys/types.h>
11870 #if HAVE_SYS_SOCKET
11871 #include <sys/socket.h>
11875 #include <$ac_header>
11877 rm -f conftest.$ac_objext
11878 if { (ac_try="$ac_compile"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_compile") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.$ac_objext; then
11894 eval "$as_ac_Header=yes"
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 eval "$as_ac_Header=no"
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 ac_res=`eval echo '${'$as_ac_Header'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906 echo "${ECHO_T}$ac_res" >&6; }
11907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11917 for ac_func in vprintf
11919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 cat >conftest.$ac_ext <<_ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11933 #define $ac_func innocuous_$ac_func
11935 /* System header to define __stub macros and hopefully few prototypes,
11936 which can conflict with char $ac_func (); below.
11937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11938 <limits.h> exists even on freestanding compilers. */
11941 # include <limits.h>
11943 # include <assert.h>
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11955 /* The GNU C library defines this for functions which it implements
11956 to always fail with ENOSYS. Some functions are actually named
11957 something starting with __ and the normal name is an alias. */
11958 #if defined __stub_$ac_func || defined __stub___$ac_func
11965 return $ac_func ();
11970 rm -f conftest.$ac_objext conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext &&
11987 $as_test_x conftest$ac_exeext; then
11988 eval "$as_ac_var=yes"
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 eval "$as_ac_var=no"
11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997 conftest$ac_exeext conftest.$ac_ext
11999 ac_res=`eval echo '${'$as_ac_var'}'`
12000 { echo "$as_me:$LINENO: result: $ac_res" >&5
12001 echo "${ECHO_T}$ac_res" >&6; }
12002 if test `eval echo '${'$as_ac_var'}'` = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12007 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12008 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12009 if test "${ac_cv_func__doprnt+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12012 cat >conftest.$ac_ext <<_ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12020 #define _doprnt innocuous__doprnt
12022 /* System header to define __stub macros and hopefully few prototypes,
12023 which can conflict with char _doprnt (); below.
12024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12025 <limits.h> exists even on freestanding compilers. */
12028 # include <limits.h>
12030 # include <assert.h>
12035 /* Override any GCC internal prototype to avoid an error.
12036 Use char because int might match the return type of a GCC
12037 builtin and then its argument prototype would still apply. */
12042 /* The GNU C library defines this for functions which it implements
12043 to always fail with ENOSYS. Some functions are actually named
12044 something starting with __ and the normal name is an alias. */
12045 #if defined __stub__doprnt || defined __stub____doprnt
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (ac_try="$ac_link"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_link") 2>conftest.er1
12066 grep -v '^ *+' conftest.er1 >conftest.err
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest$ac_exeext &&
12074 $as_test_x conftest$ac_exeext; then
12075 ac_cv_func__doprnt=yes
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_cv_func__doprnt=no
12083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12084 conftest$ac_exeext conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12087 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12088 if test $ac_cv_func__doprnt = yes; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define HAVE_DOPRNT 1
12100 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12101 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12102 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 cat >conftest.$ac_ext <<_ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 #include <dirent.h>
12116 static struct dirent ac_aggr;
12117 if (ac_aggr.d_reclen)
12123 rm -f conftest.$ac_objext
12124 if { (ac_try="$ac_compile"
12125 case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_compile") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest.$ac_objext; then
12140 ac_cv_member_struct_dirent_d_reclen=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 cat >conftest.$ac_ext <<_ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 #include <dirent.h>
12156 static struct dirent ac_aggr;
12157 if (sizeof ac_aggr.d_reclen)
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167 *) ac_try_echo=$ac_try;;
12169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12170 (eval "$ac_compile") 2>conftest.er1
12172 grep -v '^ *+' conftest.er1 >conftest.err
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } && {
12177 test -z "$ac_c_werror_flag" ||
12178 test ! -s conftest.err
12179 } && test -s conftest.$ac_objext; then
12180 ac_cv_member_struct_dirent_d_reclen=yes
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 ac_cv_member_struct_dirent_d_reclen=no
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12194 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12195 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_RECLEN_DIRENT 1
12202 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12203 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12204 if test "${ac_cv_type_ssize_t+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 #include <sys/types.h>
12215 typedef ssize_t ac__type_new_;
12219 if ((ac__type_new_ *) 0)
12221 if (sizeof (ac__type_new_))
12227 rm -f conftest.$ac_objext
12228 if { (ac_try="$ac_compile"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12236 grep -v '^ *+' conftest.er1 >conftest.err
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 ac_cv_type_ssize_t=yes
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_type_ssize_t=no
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12255 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12256 if test $ac_cv_type_ssize_t = yes; then
12257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_TYPE_SSIZE_T 1
12263 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12264 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12265 if test "${ac_cv_have_decl_llseek+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 cat >conftest.$ac_ext <<_ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 #include <unistd.h>
12287 rm -f conftest.$ac_objext
12288 if { (ac_try="$ac_compile"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_compile") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest.$ac_objext; then
12304 ac_cv_have_decl_llseek=yes
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_have_decl_llseek=no
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12315 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12316 if test $ac_cv_have_decl_llseek = yes; then
12317 cat >>confdefs.h <<\_ACEOF
12318 #define HAVE_LLSEEK_PROTOTYPE 1
12323 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12324 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12325 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 #define _LARGEFILE_SOURCE
12335 #define _LARGEFILE64_SOURCE
12336 #include <unistd.h>
12349 rm -f conftest.$ac_objext
12350 if { (ac_try="$ac_compile"
12351 case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_compile") 2>conftest.er1
12358 grep -v '^ *+' conftest.er1 >conftest.err
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } && {
12363 test -z "$ac_c_werror_flag" ||
12364 test ! -s conftest.err
12365 } && test -s conftest.$ac_objext; then
12366 ac_cv_have_decl_lseek64=yes
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.$ac_ext >&5
12371 ac_cv_have_decl_lseek64=no
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12377 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12378 if test $ac_cv_have_decl_lseek64 = yes; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAVE_LSEEK64_PROTOTYPE 1
12385 { echo "$as_me:$LINENO: checking for short" >&5
12386 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12387 if test "${ac_cv_type_short+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12390 cat >conftest.$ac_ext <<_ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 $ac_includes_default
12397 typedef short ac__type_new_;
12401 if ((ac__type_new_ *) 0)
12403 if (sizeof (ac__type_new_))
12409 rm -f conftest.$ac_objext
12410 if { (ac_try="$ac_compile"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_compile") 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest.$ac_objext; then
12426 ac_cv_type_short=yes
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12431 ac_cv_type_short=no
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12437 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12439 # The cast to long int works around a bug in the HP C Compiler
12440 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12441 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12442 # This bug is HP SR number 8606223364.
12443 { echo "$as_me:$LINENO: checking size of short" >&5
12444 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12445 if test "${ac_cv_sizeof_short+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 if test "$cross_compiling" = yes; then
12449 # Depending upon the size, compute the lo and hi bounds.
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 typedef short ac__type_sizeof_;
12461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12468 rm -f conftest.$ac_objext
12469 if { (ac_try="$ac_compile"
12470 case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_compile") 2>conftest.er1
12477 grep -v '^ *+' conftest.er1 >conftest.err
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } && {
12482 test -z "$ac_c_werror_flag" ||
12483 test ! -s conftest.err
12484 } && test -s conftest.$ac_objext; then
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 $ac_includes_default
12494 typedef short ac__type_sizeof_;
12498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12505 rm -f conftest.$ac_objext
12506 if { (ac_try="$ac_compile"
12507 case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_compile") 2>conftest.er1
12514 grep -v '^ *+' conftest.er1 >conftest.err
12516 cat conftest.err >&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest.$ac_objext; then
12522 ac_hi=$ac_mid; break
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 ac_lo=`expr $ac_mid + 1`
12528 if test $ac_lo -le $ac_mid; then
12532 ac_mid=`expr 2 '*' $ac_mid + 1`
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12547 $ac_includes_default
12548 typedef short ac__type_sizeof_;
12552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12559 rm -f conftest.$ac_objext
12560 if { (ac_try="$ac_compile"
12561 case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_compile") 2>conftest.er1
12568 grep -v '^ *+' conftest.er1 >conftest.err
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } && {
12573 test -z "$ac_c_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest.$ac_objext; then
12578 cat >conftest.$ac_ext <<_ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 $ac_includes_default
12585 typedef short ac__type_sizeof_;
12589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12596 rm -f conftest.$ac_objext
12597 if { (ac_try="$ac_compile"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_compile") 2>conftest.er1
12605 grep -v '^ *+' conftest.er1 >conftest.err
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } && {
12610 test -z "$ac_c_werror_flag" ||
12611 test ! -s conftest.err
12612 } && test -s conftest.$ac_objext; then
12613 ac_lo=$ac_mid; break
12615 echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12618 ac_hi=`expr '(' $ac_mid ')' - 1`
12619 if test $ac_mid -le $ac_hi; then
12623 ac_mid=`expr 2 '*' $ac_mid`
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639 # Binary search between lo and hi bounds.
12640 while test "x$ac_lo" != "x$ac_hi"; do
12641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12642 cat >conftest.$ac_ext <<_ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12648 $ac_includes_default
12649 typedef short ac__type_sizeof_;
12653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12660 rm -f conftest.$ac_objext
12661 if { (ac_try="$ac_compile"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_compile") 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && {
12674 test -z "$ac_c_werror_flag" ||
12675 test ! -s conftest.err
12676 } && test -s conftest.$ac_objext; then
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12682 ac_lo=`expr '(' $ac_mid ')' + 1`
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 ?*) ac_cv_sizeof_short=$ac_lo;;
12689 '') if test "$ac_cv_type_short" = yes; then
12690 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12691 See \`config.log' for more details." >&5
12692 echo "$as_me: error: cannot compute sizeof (short)
12693 See \`config.log' for more details." >&2;}
12694 { (exit 77); exit 77; }; }
12696 ac_cv_sizeof_short=0
12700 cat >conftest.$ac_ext <<_ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 typedef short ac__type_sizeof_;
12708 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12709 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12711 #include <stdlib.h>
12716 FILE *f = fopen ("conftest.val", "w");
12719 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12721 long int i = longval ();
12722 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12724 fprintf (f, "%ld\n", i);
12728 unsigned long int i = ulongval ();
12729 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12731 fprintf (f, "%lu\n", i);
12733 return ferror (f) || fclose (f) != 0;
12739 rm -f conftest$ac_exeext
12740 if { (ac_try="$ac_link"
12741 case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_link") 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12750 { (case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_try") 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_cv_sizeof_short=`cat conftest.val`
12761 echo "$as_me: program exited with status $ac_status" >&5
12762 echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ( exit $ac_status )
12766 if test "$ac_cv_type_short" = yes; then
12767 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12768 See \`config.log' for more details." >&5
12769 echo "$as_me: error: cannot compute sizeof (short)
12770 See \`config.log' for more details." >&2;}
12771 { (exit 77); exit 77; }; }
12773 ac_cv_sizeof_short=0
12776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12780 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12781 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12785 cat >>confdefs.h <<_ACEOF
12786 #define SIZEOF_SHORT $ac_cv_sizeof_short
12790 { echo "$as_me:$LINENO: checking for int" >&5
12791 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12792 if test "${ac_cv_type_int+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12802 typedef int ac__type_new_;
12806 if ((ac__type_new_ *) 0)
12808 if (sizeof (ac__type_new_))
12814 rm -f conftest.$ac_objext
12815 if { (ac_try="$ac_compile"
12816 case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_compile") 2>conftest.er1
12823 grep -v '^ *+' conftest.er1 >conftest.err
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest.$ac_objext; then
12833 echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12842 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12844 # The cast to long int works around a bug in the HP C Compiler
12845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12847 # This bug is HP SR number 8606223364.
12848 { echo "$as_me:$LINENO: checking size of int" >&5
12849 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12850 if test "${ac_cv_sizeof_int+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 if test "$cross_compiling" = yes; then
12854 # Depending upon the size, compute the lo and hi bounds.
12855 cat >conftest.$ac_ext <<_ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 $ac_includes_default
12862 typedef int ac__type_sizeof_;
12866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12873 rm -f conftest.$ac_objext
12874 if { (ac_try="$ac_compile"
12875 case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_compile") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest.$ac_objext; then
12892 cat >conftest.$ac_ext <<_ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898 $ac_includes_default
12899 typedef int ac__type_sizeof_;
12903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12910 rm -f conftest.$ac_objext
12911 if { (ac_try="$ac_compile"
12912 case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_compile") 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && {
12924 test -z "$ac_c_werror_flag" ||
12925 test ! -s conftest.err
12926 } && test -s conftest.$ac_objext; then
12927 ac_hi=$ac_mid; break
12929 echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12932 ac_lo=`expr $ac_mid + 1`
12933 if test $ac_lo -le $ac_mid; then
12937 ac_mid=`expr 2 '*' $ac_mid + 1`
12940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12953 typedef int ac__type_sizeof_;
12957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12964 rm -f conftest.$ac_objext
12965 if { (ac_try="$ac_compile"
12966 case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_compile") 2>conftest.er1
12973 grep -v '^ *+' conftest.er1 >conftest.err
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } && {
12978 test -z "$ac_c_werror_flag" ||
12979 test ! -s conftest.err
12980 } && test -s conftest.$ac_objext; then
12983 cat >conftest.$ac_ext <<_ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 $ac_includes_default
12990 typedef int ac__type_sizeof_;
12994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13001 rm -f conftest.$ac_objext
13002 if { (ac_try="$ac_compile"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_compile") 2>conftest.er1
13010 grep -v '^ *+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest.$ac_objext; then
13018 ac_lo=$ac_mid; break
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 ac_hi=`expr '(' $ac_mid ')' - 1`
13024 if test $ac_mid -le $ac_hi; then
13028 ac_mid=`expr 2 '*' $ac_mid`
13031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 # Binary search between lo and hi bounds.
13045 while test "x$ac_lo" != "x$ac_hi"; do
13046 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13047 cat >conftest.$ac_ext <<_ACEOF
13050 cat confdefs.h >>conftest.$ac_ext
13051 cat >>conftest.$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13053 $ac_includes_default
13054 typedef int ac__type_sizeof_;
13058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13065 rm -f conftest.$ac_objext
13066 if { (ac_try="$ac_compile"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compile") 2>conftest.er1
13074 grep -v '^ *+' conftest.er1 >conftest.err
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.$ac_objext; then
13084 echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13087 ac_lo=`expr '(' $ac_mid ')' + 1`
13090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093 ?*) ac_cv_sizeof_int=$ac_lo;;
13094 '') if test "$ac_cv_type_int" = yes; then
13095 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13096 See \`config.log' for more details." >&5
13097 echo "$as_me: error: cannot compute sizeof (int)
13098 See \`config.log' for more details." >&2;}
13099 { (exit 77); exit 77; }; }
13105 cat >conftest.$ac_ext <<_ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111 $ac_includes_default
13112 typedef int ac__type_sizeof_;
13113 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13114 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13116 #include <stdlib.h>
13121 FILE *f = fopen ("conftest.val", "w");
13124 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13126 long int i = longval ();
13127 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13129 fprintf (f, "%ld\n", i);
13133 unsigned long int i = ulongval ();
13134 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13136 fprintf (f, "%lu\n", i);
13138 return ferror (f) || fclose (f) != 0;
13144 rm -f conftest$ac_exeext
13145 if { (ac_try="$ac_link"
13146 case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_link") 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13155 { (case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_try") 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_cv_sizeof_int=`cat conftest.val`
13166 echo "$as_me: program exited with status $ac_status" >&5
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ( exit $ac_status )
13171 if test "$ac_cv_type_int" = yes; then
13172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13173 See \`config.log' for more details." >&5
13174 echo "$as_me: error: cannot compute sizeof (int)
13175 See \`config.log' for more details." >&2;}
13176 { (exit 77); exit 77; }; }
13181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13186 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13190 cat >>confdefs.h <<_ACEOF
13191 #define SIZEOF_INT $ac_cv_sizeof_int
13195 { echo "$as_me:$LINENO: checking for long" >&5
13196 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13197 if test "${ac_cv_type_long+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13203 cat confdefs.h >>conftest.$ac_ext
13204 cat >>conftest.$ac_ext <<_ACEOF
13205 /* end confdefs.h. */
13206 $ac_includes_default
13207 typedef long ac__type_new_;
13211 if ((ac__type_new_ *) 0)
13213 if (sizeof (ac__type_new_))
13219 rm -f conftest.$ac_objext
13220 if { (ac_try="$ac_compile"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 ac_cv_type_long=yes
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13247 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13249 # The cast to long int works around a bug in the HP C Compiler
13250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13252 # This bug is HP SR number 8606223364.
13253 { echo "$as_me:$LINENO: checking size of long" >&5
13254 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13255 if test "${ac_cv_sizeof_long+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 if test "$cross_compiling" = yes; then
13259 # Depending upon the size, compute the lo and hi bounds.
13260 cat >conftest.$ac_ext <<_ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13267 typedef long ac__type_sizeof_;
13271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } && {
13292 test -z "$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13294 } && test -s conftest.$ac_objext; then
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13303 $ac_includes_default
13304 typedef long ac__type_sizeof_;
13308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_compile") 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest.$ac_objext; then
13332 ac_hi=$ac_mid; break
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13337 ac_lo=`expr $ac_mid + 1`
13338 if test $ac_lo -le $ac_mid; then
13342 ac_mid=`expr 2 '*' $ac_mid + 1`
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 cat >conftest.$ac_ext <<_ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 typedef long ac__type_sizeof_;
13362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13369 rm -f conftest.$ac_objext
13370 if { (ac_try="$ac_compile"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_compile") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest.$ac_objext; then
13388 cat >conftest.$ac_ext <<_ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 $ac_includes_default
13395 typedef long ac__type_sizeof_;
13399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13406 rm -f conftest.$ac_objext
13407 if { (ac_try="$ac_compile"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_compile") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } && {
13420 test -z "$ac_c_werror_flag" ||
13421 test ! -s conftest.err
13422 } && test -s conftest.$ac_objext; then
13423 ac_lo=$ac_mid; break
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13428 ac_hi=`expr '(' $ac_mid ')' - 1`
13429 if test $ac_mid -le $ac_hi; then
13433 ac_mid=`expr 2 '*' $ac_mid`
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449 # Binary search between lo and hi bounds.
13450 while test "x$ac_lo" != "x$ac_hi"; do
13451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13452 cat >conftest.$ac_ext <<_ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 $ac_includes_default
13459 typedef long ac__type_sizeof_;
13463 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13470 rm -f conftest.$ac_objext
13471 if { (ac_try="$ac_compile"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_compile") 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } && {
13484 test -z "$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13486 } && test -s conftest.$ac_objext; then
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_lo=`expr '(' $ac_mid ')' + 1`
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 ?*) ac_cv_sizeof_long=$ac_lo;;
13499 '') if test "$ac_cv_type_long" = yes; then
13500 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13501 See \`config.log' for more details." >&5
13502 echo "$as_me: error: cannot compute sizeof (long)
13503 See \`config.log' for more details." >&2;}
13504 { (exit 77); exit 77; }; }
13506 ac_cv_sizeof_long=0
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 $ac_includes_default
13517 typedef long ac__type_sizeof_;
13518 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13519 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13521 #include <stdlib.h>
13526 FILE *f = fopen ("conftest.val", "w");
13529 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13531 long int i = longval ();
13532 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13534 fprintf (f, "%ld\n", i);
13538 unsigned long int i = ulongval ();
13539 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13541 fprintf (f, "%lu\n", i);
13543 return ferror (f) || fclose (f) != 0;
13549 rm -f conftest$ac_exeext
13550 if { (ac_try="$ac_link"
13551 case "(($ac_try" in
13552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553 *) ac_try_echo=$ac_try;;
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556 (eval "$ac_link") 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13560 { (case "(($ac_try" in
13561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565 (eval "$ac_try") 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_sizeof_long=`cat conftest.val`
13571 echo "$as_me: program exited with status $ac_status" >&5
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ( exit $ac_status )
13576 if test "$ac_cv_type_long" = yes; then
13577 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13578 See \`config.log' for more details." >&5
13579 echo "$as_me: error: cannot compute sizeof (long)
13580 See \`config.log' for more details." >&2;}
13581 { (exit 77); exit 77; }; }
13583 ac_cv_sizeof_long=0
13586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13590 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13591 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13595 cat >>confdefs.h <<_ACEOF
13596 #define SIZEOF_LONG $ac_cv_sizeof_long
13600 { echo "$as_me:$LINENO: checking for long long" >&5
13601 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13602 if test "${ac_cv_type_long_long+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 $ac_includes_default
13612 typedef long long ac__type_new_;
13616 if ((ac__type_new_ *) 0)
13618 if (sizeof (ac__type_new_))
13624 rm -f conftest.$ac_objext
13625 if { (ac_try="$ac_compile"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_compile") 2>conftest.er1
13633 grep -v '^ *+' conftest.er1 >conftest.err
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest.$ac_objext; then
13641 ac_cv_type_long_long=yes
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ac_cv_type_long_long=no
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13652 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13654 # The cast to long int works around a bug in the HP C Compiler
13655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13657 # This bug is HP SR number 8606223364.
13658 { echo "$as_me:$LINENO: checking size of long long" >&5
13659 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13660 if test "${ac_cv_sizeof_long_long+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 if test "$cross_compiling" = yes; then
13664 # Depending upon the size, compute the lo and hi bounds.
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 $ac_includes_default
13672 typedef long long ac__type_sizeof_;
13676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13683 rm -f conftest.$ac_objext
13684 if { (ac_try="$ac_compile"
13685 case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_compile") 2>conftest.er1
13692 grep -v '^ *+' conftest.er1 >conftest.err
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } && {
13697 test -z "$ac_c_werror_flag" ||
13698 test ! -s conftest.err
13699 } && test -s conftest.$ac_objext; then
13702 cat >conftest.$ac_ext <<_ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13708 $ac_includes_default
13709 typedef long long ac__type_sizeof_;
13713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_compile") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest.$ac_objext; then
13737 ac_hi=$ac_mid; break
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_lo=`expr $ac_mid + 1`
13743 if test $ac_lo -le $ac_mid; then
13747 ac_mid=`expr 2 '*' $ac_mid + 1`
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13762 $ac_includes_default
13763 typedef long long ac__type_sizeof_;
13767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13774 rm -f conftest.$ac_objext
13775 if { (ac_try="$ac_compile"
13776 case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_compile") 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest.$ac_objext; then
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13800 typedef long long ac__type_sizeof_;
13804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13811 rm -f conftest.$ac_objext
13812 if { (ac_try="$ac_compile"
13813 case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_compile") 2>conftest.er1
13820 grep -v '^ *+' conftest.er1 >conftest.err
13822 cat conftest.err >&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && {
13825 test -z "$ac_c_werror_flag" ||
13826 test ! -s conftest.err
13827 } && test -s conftest.$ac_objext; then
13828 ac_lo=$ac_mid; break
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ac_hi=`expr '(' $ac_mid ')' - 1`
13834 if test $ac_mid -le $ac_hi; then
13838 ac_mid=`expr 2 '*' $ac_mid`
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 # Binary search between lo and hi bounds.
13855 while test "x$ac_lo" != "x$ac_hi"; do
13856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13857 cat >conftest.$ac_ext <<_ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h. */
13863 $ac_includes_default
13864 typedef long long ac__type_sizeof_;
13868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13875 rm -f conftest.$ac_objext
13876 if { (ac_try="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_lo=`expr '(' $ac_mid ')' + 1`
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13904 '') if test "$ac_cv_type_long_long" = yes; then
13905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13906 See \`config.log' for more details." >&5
13907 echo "$as_me: error: cannot compute sizeof (long long)
13908 See \`config.log' for more details." >&2;}
13909 { (exit 77); exit 77; }; }
13911 ac_cv_sizeof_long_long=0
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13921 $ac_includes_default
13922 typedef long long ac__type_sizeof_;
13923 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13924 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13926 #include <stdlib.h>
13931 FILE *f = fopen ("conftest.val", "w");
13934 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13936 long int i = longval ();
13937 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13939 fprintf (f, "%ld\n", i);
13943 unsigned long int i = ulongval ();
13944 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13946 fprintf (f, "%lu\n", i);
13948 return ferror (f) || fclose (f) != 0;
13954 rm -f conftest$ac_exeext
13955 if { (ac_try="$ac_link"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_link") 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13965 { (case "(($ac_try" in
13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967 *) ac_try_echo=$ac_try;;
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_try") 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_cv_sizeof_long_long=`cat conftest.val`
13976 echo "$as_me: program exited with status $ac_status" >&5
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ( exit $ac_status )
13981 if test "$ac_cv_type_long_long" = yes; then
13982 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13983 See \`config.log' for more details." >&5
13984 echo "$as_me: error: cannot compute sizeof (long long)
13985 See \`config.log' for more details." >&2;}
13986 { (exit 77); exit 77; }; }
13988 ac_cv_sizeof_long_long=0
13991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13995 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13996 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14000 cat >>confdefs.h <<_ACEOF
14001 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14005 SIZEOF_SHORT=$ac_cv_sizeof_short
14006 SIZEOF_INT=$ac_cv_sizeof_int
14007 SIZEOF_LONG=$ac_cv_sizeof_long
14008 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14013 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14014 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14015 if test "${ac_cv_c_bigendian+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 # See if sys/param.h defines the BYTE_ORDER macro.
14019 cat >conftest.$ac_ext <<_ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025 #include <sys/types.h>
14026 #include <sys/param.h>
14031 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14032 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14033 bogus endian macros
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14049 grep -v '^ *+' conftest.er1 >conftest.err
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 # It does; now see whether it defined to BIG_ENDIAN or not.
14058 cat >conftest.$ac_ext <<_ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <sys/types.h>
14065 #include <sys/param.h>
14070 #if BYTE_ORDER != BIG_ENDIAN
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
14095 ac_cv_c_bigendian=yes
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ac_cv_c_bigendian=no
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 # It does not; compile a test program.
14109 if test "$cross_compiling" = yes; then
14110 # try to guess the endianness by grepping values into an object file
14111 ac_cv_c_bigendian=unknown
14112 cat >conftest.$ac_ext <<_ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h. */
14118 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14119 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14120 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14121 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14122 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14123 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14127 _ascii (); _ebcdic ();
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14141 grep -v '^ *+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14150 ac_cv_c_bigendian=yes
14152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14153 if test "$ac_cv_c_bigendian" = unknown; then
14154 ac_cv_c_bigendian=no
14156 # finding both strings is unlikely to happen, but who knows?
14157 ac_cv_c_bigendian=unknown
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 $ac_includes_default
14180 /* Are we little or big endian? From Harbison&Steele. */
14184 char c[sizeof (long int)];
14187 return u.c[sizeof (long int) - 1] == 1;
14193 rm -f conftest$ac_exeext
14194 if { (ac_try="$ac_link"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_cv_c_bigendian=no
14215 echo "$as_me: program exited with status $ac_status" >&5
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 ( exit $ac_status )
14220 ac_cv_c_bigendian=yes
14222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14231 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14232 case $ac_cv_c_bigendian in
14235 cat >>confdefs.h <<\_ACEOF
14236 #define WORDS_BIGENDIAN 1
14242 { { echo "$as_me:$LINENO: error: unknown endianness
14243 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14244 echo "$as_me: error: unknown endianness
14245 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14246 { (exit 1); exit 1; }; } ;;
14249 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14250 ASM_TYPES_HEADER=./asm_types.h
14252 echo "/* These defines are needed for the public ext2fs.h header file */" \
14254 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14255 uniq tmp_config.$$ >> public_config.h
14257 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14259 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14260 uniq tmp_config.$$ >> public_config.h
14262 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14264 rm -f tmp_config.$$
14265 PUBLIC_CONFIG_HEADER=./public_config.h
14268 for ac_header in inttypes.h
14270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 ac_res=`eval echo '${'$as_ac_Header'}'`
14278 { echo "$as_me:$LINENO: result: $ac_res" >&5
14279 echo "${ECHO_T}$ac_res" >&6; }
14281 # Is the header compilable?
14282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14284 cat >conftest.$ac_ext <<_ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290 $ac_includes_default
14291 #include <$ac_header>
14293 rm -f conftest.$ac_objext
14294 if { (ac_try="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
14310 ac_header_compiler=yes
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_header_compiler=no
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14320 echo "${ECHO_T}$ac_header_compiler" >&6; }
14322 # Is the header present?
14323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14325 cat >conftest.$ac_ext <<_ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14331 #include <$ac_header>
14333 if { (ac_try="$ac_cpp conftest.$ac_ext"
14334 case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14341 grep -v '^ *+' conftest.er1 >conftest.err
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } >/dev/null && {
14346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14349 ac_header_preproc=yes
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_header_preproc=no
14357 rm -f conftest.err conftest.$ac_ext
14358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14359 echo "${ECHO_T}$ac_header_preproc" >&6; }
14361 # So? What about this header?
14362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14368 ac_header_preproc=yes
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 eval "$as_ac_Header=\$ac_header_preproc"
14393 ac_res=`eval echo '${'$as_ac_Header'}'`
14394 { echo "$as_me:$LINENO: result: $ac_res" >&5
14395 echo "${ECHO_T}$ac_res" >&6; }
14398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399 cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14407 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14408 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14409 if test "${ac_cv_type_intptr_t+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 cat >conftest.$ac_ext <<_ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 $ac_includes_default
14419 typedef intptr_t ac__type_new_;
14423 if ((ac__type_new_ *) 0)
14425 if (sizeof (ac__type_new_))
14431 rm -f conftest.$ac_objext
14432 if { (ac_try="$ac_compile"
14433 case "(($ac_try" in
14434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14435 *) ac_try_echo=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_compile") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } && {
14445 test -z "$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14447 } && test -s conftest.$ac_objext; then
14448 ac_cv_type_intptr_t=yes
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14453 ac_cv_type_intptr_t=no
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14459 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14460 if test $ac_cv_type_intptr_t = yes; then
14462 cat >>confdefs.h <<_ACEOF
14463 #define HAVE_INTPTR_T 1
14469 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14470 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14471 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14474 cat >conftest.$ac_ext <<_ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #include <sys/stat.h>
14484 struct stat stat; stat.st_flags = 0;
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_compile") 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest.$ac_objext; then
14506 e2fsprogs_cv_struct_st_flags=yes
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 e2fsprogs_cv_struct_st_flags=no
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14518 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14519 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14520 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14521 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14522 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 cat >conftest.$ac_ext <<_ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 #include <sys/stat.h>
14535 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14540 rm -f conftest.$ac_objext
14541 if { (ac_try="$ac_compile"
14542 case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_compile") 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest.$ac_objext; then
14557 e2fsprogs_cv_struct_st_flags_immut=yes
14559 echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 e2fsprogs_cv_struct_st_flags_immut=no
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14569 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14570 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_STAT_FLAGS 1
14577 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14578 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14579 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 #include <sys/types.h>
14589 #include <sys/socket.h>
14594 static struct sockaddr ac_aggr;
14595 if (ac_aggr.sa_len)
14601 rm -f conftest.$ac_objext
14602 if { (ac_try="$ac_compile"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_compile") 2>conftest.er1
14610 grep -v '^ *+' conftest.er1 >conftest.err
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } && {
14615 test -z "$ac_c_werror_flag" ||
14616 test ! -s conftest.err
14617 } && test -s conftest.$ac_objext; then
14618 ac_cv_member_struct_sockaddr_sa_len=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 cat >conftest.$ac_ext <<_ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 #include <sys/types.h>
14630 #include <sys/socket.h>
14635 static struct sockaddr ac_aggr;
14636 if (sizeof ac_aggr.sa_len)
14642 rm -f conftest.$ac_objext
14643 if { (ac_try="$ac_compile"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest.$ac_objext; then
14659 ac_cv_member_struct_sockaddr_sa_len=yes
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 ac_cv_member_struct_sockaddr_sa_len=no
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14672 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14673 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14674 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14676 cat >>confdefs.h <<_ACEOF
14677 #define HAVE_SA_LEN 1
14713 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
14715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 cat >conftest.$ac_ext <<_ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14729 #define $ac_func innocuous_$ac_func
14731 /* System header to define __stub macros and hopefully few prototypes,
14732 which can conflict with char $ac_func (); below.
14733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14734 <limits.h> exists even on freestanding compilers. */
14737 # include <limits.h>
14739 # include <assert.h>
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14751 /* The GNU C library defines this for functions which it implements
14752 to always fail with ENOSYS. Some functions are actually named
14753 something starting with __ and the normal name is an alias. */
14754 #if defined __stub_$ac_func || defined __stub___$ac_func
14761 return $ac_func ();
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>conftest.er1
14775 grep -v '^ *+' conftest.er1 >conftest.err
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
14782 } && test -s conftest$ac_exeext &&
14783 $as_test_x conftest$ac_exeext; then
14784 eval "$as_ac_var=yes"
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 eval "$as_ac_var=no"
14792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14793 conftest$ac_exeext conftest.$ac_ext
14795 ac_res=`eval echo '${'$as_ac_var'}'`
14796 { echo "$as_me:$LINENO: result: $ac_res" >&5
14797 echo "${ECHO_T}$ac_res" >&6; }
14798 if test `eval echo '${'$as_ac_var'}'` = yes; then
14799 cat >>confdefs.h <<_ACEOF
14800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14807 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14808 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14809 if test "${ac_cv_lib_socket_socket+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 ac_check_lib_save_LIBS=$LIBS
14813 LIBS="-lsocket $LIBS"
14814 cat >conftest.$ac_ext <<_ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h. */
14821 /* Override any GCC internal prototype to avoid an error.
14822 Use char because int might match the return type of a GCC
14823 builtin and then its argument prototype would still apply. */
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (ac_try="$ac_link"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_link") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } && {
14850 test -z "$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest$ac_exeext &&
14853 $as_test_x conftest$ac_exeext; then
14854 ac_cv_lib_socket_socket=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 ac_cv_lib_socket_socket=no
14862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14863 conftest$ac_exeext conftest.$ac_ext
14864 LIBS=$ac_check_lib_save_LIBS
14866 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14867 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14868 if test $ac_cv_lib_socket_socket = yes; then
14869 SOCKET_LIB=-lsocket
14874 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 ac_check_lib_save_LIBS=$LIBS
14881 cat >conftest.$ac_ext <<_ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14903 rm -f conftest.$ac_objext conftest$ac_exeext
14904 if { (ac_try="$ac_link"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_link") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest$ac_exeext &&
14920 $as_test_x conftest$ac_exeext; then
14921 ac_cv_lib_dl_dlopen=yes
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ac_cv_lib_dl_dlopen=no
14929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14935 if test $ac_cv_lib_dl_dlopen = yes; then
14937 cat >>confdefs.h <<\_ACEOF
14938 #define HAVE_DLOPEN 1
14944 { echo "$as_me:$LINENO: checking for optreset" >&5
14945 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14946 if test "${ac_cv_have_optreset+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 cat >conftest.$ac_ext <<_ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14955 #include <unistd.h>
14958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14959 $EGREP "optreset" >/dev/null 2>&1; then
14960 ac_cv_have_optreset=yes
14962 ac_cv_have_optreset=no
14967 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14968 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14969 if test $ac_cv_have_optreset = yes; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_OPTRESET 1
14975 { echo "$as_me:$LINENO: checking for unified diff option" >&5
14976 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
14977 if diff -u $0 $0 > /dev/null 2>&1 ; then
14982 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14983 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
14987 cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_EXT2_IOCTLS 1
15009 linux* | gnu* | k*bsd*-gnu)
15010 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15012 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15013 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15018 linux* | gnu* | k*bsd*-gnu)
15019 if test "$prefix" = NONE ; then
15021 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15022 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15023 if test "$mandir" = '${prefix}/man' ; then
15024 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15025 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15026 mandir=/usr/share/man
15031 if test "$root_prefix" = NONE ; then
15032 if test "$prefix" = NONE ; then
15033 root_prefix="$ac_default_prefix"
15035 root_prefix="$prefix"
15037 root_bindir=$bindir
15038 root_sbindir=$sbindir
15039 root_libdir=$libdir
15040 root_sysconfdir=$sysconfdir
15042 root_bindir='${root_prefix}/bin'
15043 root_sbindir='${root_prefix}/sbin'
15044 root_libdir='${root_prefix}/lib'
15045 root_sysconfdir='${root_prefix}/etc'
15047 if test "$bindir" != '${exec_prefix}/bin'; then
15048 root_bindir=$bindir
15049 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15050 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15052 if test "$sbindir" != '${exec_prefix}/sbin'; then
15053 root_sbindir=$sbindir
15054 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15055 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15057 if test "$libdir" != '${exec_prefix}/lib'; then
15058 root_libdir=$libdir
15059 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15060 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15062 if test "$sysconfdir" != '${prefix}/etc'; then
15063 root_sysconfdir=$sysconfdir
15064 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15065 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15072 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15073 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15074 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15078 cat >conftest.$ac_ext <<_ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15093 rm -f conftest.$ac_objext conftest$ac_exeext
15094 if { (ac_try="$ac_link"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_link") 2>conftest.er1
15102 grep -v '^ *+' conftest.er1 >conftest.err
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest$ac_exeext &&
15110 $as_test_x conftest$ac_exeext; then
15111 ac_cv_e2fsprogs_use_static=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 ac_cv_e2fsprogs_use_static=no
15119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LDFLAGS=$SAVE_LDFLAGS
15126 ac_cv_e2fsprogs_use_static=no
15129 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15130 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15132 if test $ac_cv_e2fsprogs_use_static = yes; then
15133 LDFLAG_STATIC=-static
15138 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15139 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15140 cat >>confdefs.h <<\_ACEOF
15141 #define _INTL_REDIRECT_MACROS 1
15146 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15147 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15150 if test "$cross_compiling" = yes ; then
15153 DO_TEST_SUITE=check
15157 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15158 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15161 if test $cross_compiling = no; then
15162 BUILD_CFLAGS="$CFLAGS"
15163 BUILD_LDFLAGS="$LDFLAGS"
15170 test -d lib || mkdir lib
15171 test -d include || mkdir include
15172 test -d include/linux || mkdir include/linux
15173 test -d include/asm || mkdir include/asm
15174 for i in MCONFIG Makefile e2fsprogs.spec \
15175 util/Makefile util/subst.conf util/gen-tarball \
15176 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15177 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15178 lib/uuid/Makefile lib/uuid/uuid_types.h \
15179 lib/blkid/Makefile lib/blkid/blkid_types.h \
15180 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15181 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15182 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15183 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15184 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15185 if test -d `dirname ${srcdir}/$i` ; then
15186 outlist="$outlist $i"
15189 ac_config_files="$ac_config_files $outlist"
15191 cat >confcache <<\_ACEOF
15192 # This file is a shell script that caches the results of configure
15193 # tests run on this system so they can be shared between configure
15194 # scripts and configure runs, see configure's option --config-cache.
15195 # It is not useful on other systems. If it contains results you don't
15196 # want to keep, you may remove or edit it.
15198 # config.status only pays attention to the cache file if you give it
15199 # the --recheck option to rerun configure.
15201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15203 # following values.
15207 # The following way of writing the cache mishandles newlines in values,
15208 # but we know of no workaround that is simple, portable, and efficient.
15209 # So, we kill variables containing newlines.
15210 # Ultrix sh set writes to stderr and can't be redirected directly,
15211 # and sets the high bit in the cache file unless we assign to the vars.
15213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15214 eval ac_val=\$$ac_var
15218 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15219 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15222 _ | IFS | as_nl) ;; #(
15223 *) $as_unset $ac_var ;;
15229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15230 *${as_nl}ac_space=\ *)
15231 # `set' does not quote correctly, so add quotes (double-quote
15232 # substitution turns \\\\ into \\, and sed turns \\ into \).
15235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15238 # `set' quotes correctly as required by POSIX, so do not add quotes.
15239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15253 if test -w "$cache_file"; then
15254 test "x$cache_file" != "x/dev/null" &&
15255 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15256 echo "$as_me: updating cache $cache_file" >&6;}
15257 cat confcache >$cache_file
15259 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15260 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15266 # Let make expand exec_prefix.
15267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15269 # Transform confdefs.h into DEFS.
15270 # Protect against shell expansion while executing Makefile rules.
15271 # Protect against Makefile macro expansion.
15273 # If the first sed substitution is executed (which looks for macros that
15274 # take arguments), then branch to the quote section. Otherwise,
15275 # look for a macro that doesn't take arguments.
15279 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15281 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15285 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15298 DEFS=`sed -n "$ac_script" confdefs.h`
15303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15304 # 1. Remove the extension, and $U if already installed.
15305 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15306 ac_i=`echo "$ac_i" | sed "$ac_script"`
15307 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15308 # will be set to the directory where LIBOBJS objects are built.
15309 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15310 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15312 LIBOBJS=$ac_libobjs
15314 LTLIBOBJS=$ac_ltlibobjs
15318 : ${CONFIG_STATUS=./config.status}
15319 ac_clean_files_save=$ac_clean_files
15320 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15321 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15322 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15323 cat >$CONFIG_STATUS <<_ACEOF
15325 # Generated by $as_me.
15326 # Run this file to recreate the current configuration.
15327 # Compiler output produced by configure, useful for debugging
15328 # configure, is in config.log if it exists.
15331 ac_cs_recheck=false
15333 SHELL=\${CONFIG_SHELL-$SHELL}
15336 cat >>$CONFIG_STATUS <<\_ACEOF
15337 ## --------------------- ##
15338 ## M4sh Initialization. ##
15339 ## --------------------- ##
15341 # Be more Bourne compatible
15342 DUALCASE=1; export DUALCASE # for MKS sh
15343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15346 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15347 # is contrary to our usage. Disable this feature.
15348 alias -g '${1+"$@"}'='"$@"'
15349 setopt NO_GLOB_SUBST
15351 case `(set -o) 2>/dev/null` in
15352 *posix*) set -o posix ;;
15361 # Avoid depending upon Character Ranges.
15362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15365 as_cr_digits='0123456789'
15366 as_cr_alnum=$as_cr_Letters$as_cr_digits
15368 # The user is always right.
15369 if test "${PATH_SEPARATOR+set}" != set; then
15370 echo "#! /bin/sh" >conf$$.sh
15371 echo "exit 0" >>conf$$.sh
15373 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15381 # Support unset when possible.
15382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15390 # We need space, tab and new line, in precisely that order. Quoting is
15391 # there to prevent editors from complaining about space-tab.
15392 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15393 # splitting by setting IFS to empty value.)
15398 # Find who we are. Look in the path if we contain no directory separator.
15400 *[\\/]* ) as_myself=$0 ;;
15401 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15402 for as_dir in $PATH
15405 test -z "$as_dir" && as_dir=.
15406 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15412 # We did not find ourselves, most probably we were run as `sh COMMAND'
15413 # in which case we are not to be found in the path.
15414 if test "x$as_myself" = x; then
15417 if test ! -f "$as_myself"; then
15418 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15419 { (exit 1); exit 1; }
15422 # Work around bugs in pre-3.0 UWIN ksh.
15423 for as_var in ENV MAIL MAILPATH
15424 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15432 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15433 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15434 LC_TELEPHONE LC_TIME
15436 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15437 eval $as_var=C; export $as_var
15439 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15443 # Required to use basename.
15444 if expr a : '\(a\)' >/dev/null 2>&1 &&
15445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15451 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15452 as_basename=basename
15458 # Name of the executable.
15459 as_me=`$as_basename -- "$0" ||
15460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15461 X"$0" : 'X\(//\)$' \| \
15462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15464 sed '/^.*\/\([^/][^/]*\)\/*$/{
15483 as_lineno_1=$LINENO
15484 as_lineno_2=$LINENO
15485 test "x$as_lineno_1" != "x$as_lineno_2" &&
15486 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15488 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15489 # uniformly replaced by the line number. The first 'sed' inserts a
15490 # line-number line after each line using $LINENO; the second 'sed'
15491 # does the real work. The second script uses 'N' to pair each
15492 # line-number line with the line containing $LINENO, and appends
15493 # trailing '-' during substitution so that $LINENO is not a special
15494 # case at line end.
15495 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15496 # scripts with optimization help from Paolo Bonzini. Blame Lee
15497 # E. McMahon (1931-1989) for sed's syntax. :-)
15509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15512 ' >$as_me.lineno &&
15513 chmod +x "$as_me.lineno" ||
15514 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15515 { (exit 1); exit 1; }; }
15517 # Don't try to exec as it changes $[0], causing all sort of problems
15518 # (the dirname of $[0] is not the place where we might find the
15519 # original and so on. Autoconf is especially sensitive to this).
15520 . "./$as_me.lineno"
15521 # Exit status is that of the last command.
15526 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15532 ECHO_C= ECHO_N= ECHO_T=
15533 case `echo -n x` in
15535 case `echo 'x\c'` in
15536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15543 if expr a : '\(a\)' >/dev/null 2>&1 &&
15544 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15550 rm -f conf$$ conf$$.exe conf$$.file
15551 if test -d conf$$.dir; then
15552 rm -f conf$$.dir/conf$$.file
15558 if ln -s conf$$.file conf$$ 2>/dev/null; then
15560 # ... but there are two gotchas:
15561 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15562 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15563 # In both cases, we have to default to `cp -p'.
15564 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15566 elif ln conf$$.file conf$$ 2>/dev/null; then
15571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15572 rmdir conf$$.dir 2>/dev/null
15574 if mkdir -p . 2>/dev/null; then
15577 test -d ./-p && rmdir ./-p
15581 if test -x / >/dev/null 2>&1; then
15582 as_test_x='test -x'
15584 if ls -dL / >/dev/null 2>&1; then
15591 if test -d "$1"; then
15597 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15598 ???[sx]*):;;*)false;;esac;fi
15602 as_executable_p=$as_test_x
15604 # Sed expression to map a string onto a valid CPP name.
15605 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15607 # Sed expression to map a string onto a valid variable name.
15608 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15613 # Save the log message, to keep $[0] and so on meaningful, and to
15614 # report actual input values of CONFIG_FILES etc. instead of their
15615 # values after options handling.
15617 This file was extended by $as_me, which was
15618 generated by GNU Autoconf 2.61. Invocation command line was
15620 CONFIG_FILES = $CONFIG_FILES
15621 CONFIG_HEADERS = $CONFIG_HEADERS
15622 CONFIG_LINKS = $CONFIG_LINKS
15623 CONFIG_COMMANDS = $CONFIG_COMMANDS
15626 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15631 cat >>$CONFIG_STATUS <<_ACEOF
15632 # Files that config.status was made for.
15633 config_files="$ac_config_files"
15634 config_commands="$ac_config_commands"
15638 cat >>$CONFIG_STATUS <<\_ACEOF
15640 \`$as_me' instantiates files from templates according to the
15641 current configuration.
15643 Usage: $0 [OPTIONS] [FILE]...
15645 -h, --help print this help, then exit
15646 -V, --version print version number and configuration settings, then exit
15647 -q, --quiet do not print progress messages
15648 -d, --debug don't remove temporary files
15649 --recheck update $as_me by reconfiguring in the same conditions
15650 --file=FILE[:TEMPLATE]
15651 instantiate the configuration file FILE
15653 Configuration files:
15656 Configuration commands:
15659 Report bugs to <bug-autoconf@gnu.org>."
15662 cat >>$CONFIG_STATUS <<_ACEOF
15665 configured by $0, generated by GNU Autoconf 2.61,
15666 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15668 Copyright (C) 2006 Free Software Foundation, Inc.
15669 This config.status script is free software; the Free Software Foundation
15670 gives unlimited permission to copy, distribute and modify it."
15677 cat >>$CONFIG_STATUS <<\_ACEOF
15678 # If no file are specified by the user, then we need to provide default
15679 # value. By we need to know if files were specified by the user.
15685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15686 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15697 # Handling of the options.
15698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15701 echo "$ac_cs_version"; exit ;;
15702 --debug | --debu | --deb | --de | --d | -d )
15704 --file | --fil | --fi | --f )
15706 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15707 ac_need_defaults=false;;
15708 --he | --h | --help | --hel | -h )
15709 echo "$ac_cs_usage"; exit ;;
15710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15711 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15714 # This is an error.
15715 -*) { echo "$as_me: error: unrecognized option: $1
15716 Try \`$0 --help' for more information." >&2
15717 { (exit 1); exit 1; }; } ;;
15719 *) ac_config_targets="$ac_config_targets $1"
15720 ac_need_defaults=false ;;
15726 ac_configure_extra_args=
15728 if $ac_cs_silent; then
15730 ac_configure_extra_args="$ac_configure_extra_args --silent"
15734 cat >>$CONFIG_STATUS <<_ACEOF
15735 if \$ac_cs_recheck; then
15736 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15737 CONFIG_SHELL=$SHELL
15738 export CONFIG_SHELL
15739 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15743 cat >>$CONFIG_STATUS <<\_ACEOF
15747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15748 ## Running $as_me. ##
15754 cat >>$CONFIG_STATUS <<_ACEOF
15758 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15759 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15761 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15762 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15763 LINGUAS="${LINGUAS-%UNSET%}"
15768 cat >>$CONFIG_STATUS <<\_ACEOF
15770 # Handling of arguments.
15771 for ac_config_target in $ac_config_targets
15773 case $ac_config_target in
15774 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15775 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15777 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15778 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15779 { (exit 1); exit 1; }; };;
15784 # If the user did not use the arguments to specify the items to instantiate,
15785 # then the envvar interface is used. Set only those that are not.
15786 # We use the long form for the default assignment because of an extremely
15787 # bizarre bug on SunOS 4.1.3.
15788 if $ac_need_defaults; then
15789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15790 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15793 # Have a temporary directory for convenience. Make it in the build tree
15794 # simply because there is no reason against having it here, and in addition,
15795 # creating and moving files from /tmp can sometimes cause problems.
15796 # Hook for its removal unless debugging.
15797 # Note that there is a small window in which the directory will not be cleaned:
15798 # after its creation but before its name has been assigned to `$tmp'.
15802 trap 'exit_status=$?
15803 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15805 trap '{ (exit 1); exit 1; }' 1 2 13 15
15807 # Create a (secure) tmp directory for tmp files.
15810 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15811 test -n "$tmp" && test -d "$tmp"
15814 tmp=./conf$$-$RANDOM
15815 (umask 077 && mkdir "$tmp")
15818 echo "$me: cannot create a temporary directory in ." >&2
15819 { (exit 1); exit 1; }
15823 # Set up the sed scripts for CONFIG_FILES section.
15826 # No need to generate the scripts if there are no CONFIG_FILES.
15827 # This happens for instance when ./config.status config.h
15828 if test -n "$CONFIG_FILES"; then
15832 # Create sed commands to just substitute file output variables.
15834 # Remaining file output variables are in a fragment that also has non-file
15840 for ac_last_try in false false false false false :; do
15841 cat >conf$$subs.sed <<_ACEOF
15842 SHELL!$SHELL$ac_delim
15843 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15844 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15845 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15846 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15847 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15848 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15849 exec_prefix!$exec_prefix$ac_delim
15850 prefix!$prefix$ac_delim
15851 program_transform_name!$program_transform_name$ac_delim
15852 bindir!$bindir$ac_delim
15853 sbindir!$sbindir$ac_delim
15854 libexecdir!$libexecdir$ac_delim
15855 datarootdir!$datarootdir$ac_delim
15856 datadir!$datadir$ac_delim
15857 sysconfdir!$sysconfdir$ac_delim
15858 sharedstatedir!$sharedstatedir$ac_delim
15859 localstatedir!$localstatedir$ac_delim
15860 includedir!$includedir$ac_delim
15861 oldincludedir!$oldincludedir$ac_delim
15862 docdir!$docdir$ac_delim
15863 infodir!$infodir$ac_delim
15864 htmldir!$htmldir$ac_delim
15865 dvidir!$dvidir$ac_delim
15866 pdfdir!$pdfdir$ac_delim
15867 psdir!$psdir$ac_delim
15868 libdir!$libdir$ac_delim
15869 localedir!$localedir$ac_delim
15870 mandir!$mandir$ac_delim
15871 DEFS!$DEFS$ac_delim
15872 ECHO_C!$ECHO_C$ac_delim
15873 ECHO_N!$ECHO_N$ac_delim
15874 ECHO_T!$ECHO_T$ac_delim
15875 LIBS!$LIBS$ac_delim
15876 build_alias!$build_alias$ac_delim
15877 host_alias!$host_alias$ac_delim
15878 target_alias!$target_alias$ac_delim
15879 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15880 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15881 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15882 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15883 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15884 build!$build$ac_delim
15885 build_cpu!$build_cpu$ac_delim
15886 build_vendor!$build_vendor$ac_delim
15887 build_os!$build_os$ac_delim
15888 host!$host$ac_delim
15889 host_cpu!$host_cpu$ac_delim
15890 host_vendor!$host_vendor$ac_delim
15891 host_os!$host_os$ac_delim
15893 CFLAGS!$CFLAGS$ac_delim
15894 LDFLAGS!$LDFLAGS$ac_delim
15895 CPPFLAGS!$CPPFLAGS$ac_delim
15896 ac_ct_CC!$ac_ct_CC$ac_delim
15897 EXEEXT!$EXEEXT$ac_delim
15898 OBJEXT!$OBJEXT$ac_delim
15901 GREP!$GREP$ac_delim
15902 EGREP!$EGREP$ac_delim
15903 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15904 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15905 HTREE_CMT!$HTREE_CMT$ac_delim
15906 ELF_CMT!$ELF_CMT$ac_delim
15907 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15908 PROFILE_CMT!$PROFILE_CMT$ac_delim
15909 CHECKER_CMT!$CHECKER_CMT$ac_delim
15910 LIB_EXT!$LIB_EXT$ac_delim
15911 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15912 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15913 LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim
15914 PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim
15917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
15919 elif $ac_last_try; then
15920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15921 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15922 { (exit 1); exit 1; }; }
15924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15928 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15929 if test -n "$ac_eof"; then
15930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15931 ac_eof=`expr $ac_eof + 1`
15934 cat >>$CONFIG_STATUS <<_ACEOF
15935 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15937 /^[ ]*@MCONFIG@[ ]*$/{
15941 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
15945 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15949 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15950 r $MAKEFILE_PROFILE
15953 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15954 r $MAKEFILE_CHECKER
15957 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15958 r $MAKEFILE_LIBRARY
15961 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15962 r $ASM_TYPES_HEADER
15965 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
15966 r $PUBLIC_CONFIG_HEADER
15971 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15972 s/^/s,@/; s/!/@,|#_!!_#|/
15975 s/'"$ac_delim"'$/,g/; t
15977 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15978 ' >>$CONFIG_STATUS <conf$$subs.sed
15979 rm -f conf$$subs.sed
15980 cat >>$CONFIG_STATUS <<_ACEOF
15986 for ac_last_try in false false false false false :; do
15987 cat >conf$$subs.sed <<_ACEOF
15988 TEST_IO_CMT!$TEST_IO_CMT$ac_delim
15989 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15990 IMAGER_CMT!$IMAGER_CMT$ac_delim
15991 RESIZER_CMT!$RESIZER_CMT$ac_delim
15992 FSCK_PROG!$FSCK_PROG$ac_delim
15993 FSCK_MAN!$FSCK_MAN$ac_delim
15994 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15995 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15996 UUIDD_CMT!$UUIDD_CMT$ac_delim
15997 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15998 PACKAGE!$PACKAGE$ac_delim
15999 VERSION!$VERSION$ac_delim
16000 SET_MAKE!$SET_MAKE$ac_delim
16001 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16002 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16003 INSTALL_DATA!$INSTALL_DATA$ac_delim
16004 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16005 USE_NLS!$USE_NLS$ac_delim
16006 MSGFMT!$MSGFMT$ac_delim
16007 GMSGFMT!$GMSGFMT$ac_delim
16008 XGETTEXT!$XGETTEXT$ac_delim
16009 MSGMERGE!$MSGMERGE$ac_delim
16010 RANLIB!$RANLIB$ac_delim
16011 ALLOCA!$ALLOCA$ac_delim
16012 GLIBC21!$GLIBC21$ac_delim
16013 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16014 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16015 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16016 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16017 LIBICONV!$LIBICONV$ac_delim
16018 LTLIBICONV!$LTLIBICONV$ac_delim
16019 INTLBISON!$INTLBISON$ac_delim
16020 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16021 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16022 CATOBJEXT!$CATOBJEXT$ac_delim
16023 DATADIRNAME!$DATADIRNAME$ac_delim
16024 INSTOBJEXT!$INSTOBJEXT$ac_delim
16025 GENCAT!$GENCAT$ac_delim
16026 INTLOBJS!$INTLOBJS$ac_delim
16027 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16028 INTLLIBS!$INTLLIBS$ac_delim
16029 LIBINTL!$LIBINTL$ac_delim
16030 LTLIBINTL!$LTLIBINTL$ac_delim
16031 POSUB!$POSUB$ac_delim
16032 BINARY_TYPE!$BINARY_TYPE$ac_delim
16034 LN_S!$LN_S$ac_delim
16038 CHMOD!$CHMOD$ac_delim
16041 PERL!$PERL$ac_delim
16042 LDCONFIG!$LDCONFIG$ac_delim
16044 STRIP!$STRIP$ac_delim
16045 MAKEINFO!$MAKEINFO$ac_delim
16046 BUILD_CC!$BUILD_CC$ac_delim
16047 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16048 SIZEOF_INT!$SIZEOF_INT$ac_delim
16049 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16050 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16051 SOCKET_LIB!$SOCKET_LIB$ac_delim
16052 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16053 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16054 LINUX_CMT!$LINUX_CMT$ac_delim
16055 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16056 UNIX_CMT!$UNIX_CMT$ac_delim
16057 root_prefix!$root_prefix$ac_delim
16058 root_bindir!$root_bindir$ac_delim
16059 root_sbindir!$root_sbindir$ac_delim
16060 root_libdir!$root_libdir$ac_delim
16061 root_sysconfdir!$root_sysconfdir$ac_delim
16062 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16063 SS_DIR!$SS_DIR$ac_delim
16064 ET_DIR!$ET_DIR$ac_delim
16065 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16066 INTL_FLAGS!$INTL_FLAGS$ac_delim
16067 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16068 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16069 LIBOBJS!$LIBOBJS$ac_delim
16070 LTLIBOBJS!$LTLIBOBJS$ac_delim
16073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
16075 elif $ac_last_try; then
16076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16078 { (exit 1); exit 1; }; }
16080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16085 if test -n "$ac_eof"; then
16086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16087 ac_eof=`expr $ac_eof + 1`
16090 cat >>$CONFIG_STATUS <<_ACEOF
16091 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16096 s/^/s,@/; s/!/@,|#_!!_#|/
16099 s/'"$ac_delim"'$/,g/; t
16101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16102 ' >>$CONFIG_STATUS <conf$$subs.sed
16103 rm -f conf$$subs.sed
16104 cat >>$CONFIG_STATUS <<_ACEOF
16111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16113 # trailing colons and then remove the whole line if VPATH becomes empty
16114 # (actually we leave an empty line to preserve line numbers).
16115 if test "x$srcdir" = x.; then
16116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16117 s/:*\$(srcdir):*/:/
16118 s/:*\${srcdir}:*/:/
16120 s/^\([^=]*=[ ]*\):*/\1/
16126 cat >>$CONFIG_STATUS <<\_ACEOF
16127 fi # test -n "$CONFIG_FILES"
16130 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16133 :[FHLC]) ac_mode=$ac_tag; continue;;
16135 case $ac_mode$ac_tag in
16137 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16138 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16139 { (exit 1); exit 1; }; };;
16140 :[FH]-) ac_tag=-:-;;
16141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16158 -) ac_f="$tmp/stdin";;
16159 *) # Look for the file first in the build tree, then in the source tree
16160 # (if the path is not absolute). The absolute path cannot be DOS-style,
16161 # because $ac_f cannot contain `:'.
16165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16167 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16168 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16169 { (exit 1); exit 1; }; };;
16171 ac_file_inputs="$ac_file_inputs $ac_f"
16174 # Let's still pretend it is `configure' which instantiates (i.e., don't
16175 # use $as_me), people would be surprised to read:
16176 # /* config.h. Generated by config.status. */
16177 configure_input="Generated from "`IFS=:
16178 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16179 if test x"$ac_file" != x-; then
16180 configure_input="$ac_file. $configure_input"
16181 { echo "$as_me:$LINENO: creating $ac_file" >&5
16182 echo "$as_me: creating $ac_file" >&6;}
16186 *:-:* | *:-) cat >"$tmp/stdin";;
16191 ac_dir=`$as_dirname -- "$ac_file" ||
16192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16193 X"$ac_file" : 'X\(//\)[^/]' \| \
16194 X"$ac_file" : 'X\(//\)$' \| \
16195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16201 /^X\(\/\/\)[^/].*/{
16216 -*) as_dir=./$as_dir;;
16218 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16222 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16223 *) as_qdir=$as_dir;;
16225 as_dirs="'$as_qdir' $as_dirs"
16226 as_dir=`$as_dirname -- "$as_dir" ||
16227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16228 X"$as_dir" : 'X\(//\)[^/]' \| \
16229 X"$as_dir" : 'X\(//\)$' \| \
16230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16236 /^X\(\/\/\)[^/].*/{
16249 test -d "$as_dir" && break
16251 test -z "$as_dirs" || eval "mkdir $as_dirs"
16252 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16253 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16254 { (exit 1); exit 1; }; }; }
16258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16261 # A ".." for each directory in $ac_dir_suffix.
16262 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16263 case $ac_top_builddir_sub in
16264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16268 ac_abs_top_builddir=$ac_pwd
16269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16270 # for backward compatibility:
16271 ac_top_builddir=$ac_top_build_prefix
16274 .) # We are building in place.
16276 ac_top_srcdir=$ac_top_builddir_sub
16277 ac_abs_top_srcdir=$ac_pwd ;;
16278 [\\/]* | ?:[\\/]* ) # Absolute name.
16279 ac_srcdir=$srcdir$ac_dir_suffix;
16280 ac_top_srcdir=$srcdir
16281 ac_abs_top_srcdir=$srcdir ;;
16282 *) # Relative name.
16283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16284 ac_top_srcdir=$ac_top_build_prefix$srcdir
16285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16302 cat >>$CONFIG_STATUS <<\_ACEOF
16303 # If the template does not know about datarootdir, expand it.
16304 # FIXME: This hack should be removed a few years after 2.60.
16305 ac_datarootdir_hack=; ac_datarootdir_seen=
16307 case `sed -n '/datarootdir/ {
16316 ' $ac_file_inputs` in
16317 *datarootdir*) ac_datarootdir_seen=yes;;
16318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16319 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16320 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16322 cat >>$CONFIG_STATUS <<_ACEOF
16323 ac_datarootdir_hack='
16324 s&@datadir@&$datadir&g
16325 s&@docdir@&$docdir&g
16326 s&@infodir@&$infodir&g
16327 s&@localedir@&$localedir&g
16328 s&@mandir@&$mandir&g
16329 s&\\\${datarootdir}&$datarootdir&g' ;;
16333 # Neutralize VPATH when `$srcdir' = `.'.
16334 # Shell code in configure.ac might set extrasub.
16335 # FIXME: do we really want to maintain this feature?
16336 cat >>$CONFIG_STATUS <<_ACEOF
16340 cat >>$CONFIG_STATUS <<\_ACEOF
16342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16343 s&@configure_input@&$configure_input&;t t
16344 s&@top_builddir@&$ac_top_builddir_sub&;t t
16345 s&@srcdir@&$ac_srcdir&;t t
16346 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16347 s&@top_srcdir@&$ac_top_srcdir&;t t
16348 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16349 s&@builddir@&$ac_builddir&;t t
16350 s&@abs_builddir@&$ac_abs_builddir&;t t
16351 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16352 s&@INSTALL@&$ac_INSTALL&;t t
16353 $ac_datarootdir_hack
16354 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16356 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16357 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16358 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16359 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16360 which seems to be undefined. Please make sure it is defined." >&5
16361 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16362 which seems to be undefined. Please make sure it is defined." >&2;}
16366 -) cat "$tmp/out"; rm -f "$tmp/out";;
16367 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16372 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16373 echo "$as_me: executing $ac_file commands" >&6;}
16378 case $ac_file$ac_mode in
16380 for ac_file in $CONFIG_FILES; do
16381 # Support "outfile[:infile[:infile...]]"
16383 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16385 # PO directories have a Makefile.in generated from Makefile.in.in.
16386 case "$ac_file" in */Makefile.in)
16387 # Adjust a relative srcdir.
16388 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16389 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16390 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16391 # In autoconf-2.13 it is called $ac_given_srcdir.
16392 # In autoconf-2.50 it is called $srcdir.
16393 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16394 case "$ac_given_srcdir" in
16395 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16396 /*) top_srcdir="$ac_given_srcdir" ;;
16397 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16399 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16400 rm -f "$ac_dir/POTFILES"
16401 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16402 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16403 POMAKEFILEDEPS="POTFILES.in"
16404 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16405 # on $ac_dir but don't depend on user-specified configuration
16407 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16408 # The LINGUAS file contains the set of available languages.
16409 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16410 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16412 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16413 # Hide the ALL_LINGUAS assigment from automake.
16414 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16415 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16417 # The set of available languages was given in configure.in.
16418 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16421 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16422 # Compute UPDATEPOFILES
16423 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16424 # Compute DUMMYPOFILES
16425 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16427 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16428 case "$ac_given_srcdir" in
16430 *) srcdirpre='$(srcdir)/' ;;
16436 for lang in $ALL_LINGUAS; do
16437 POFILES="$POFILES $srcdirpre$lang.po"
16438 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16439 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16440 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16442 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16443 # environment variable.
16445 if test -n "$ALL_LINGUAS"; then
16446 for presentlang in $ALL_LINGUAS; do
16448 if test "%UNSET%" != "$LINGUAS"; then
16449 desiredlanguages="$LINGUAS"
16451 desiredlanguages="$ALL_LINGUAS"
16453 for desiredlang in $desiredlanguages; do
16454 # Use the presentlang catalog if desiredlang is
16455 # a. equal to presentlang, or
16456 # b. a variant of presentlang (because in this case,
16457 # presentlang can be used as a fallback for messages
16458 # which are not translated in the desiredlang catalog).
16459 case "$desiredlang" in
16460 "$presentlang"*) useit=yes;;
16463 if test $useit = yes; then
16464 INST_LINGUAS="$INST_LINGUAS $presentlang"
16469 if test -n "$INST_LINGUAS"; then
16470 for lang in $INST_LINGUAS; do
16471 CATALOGS="$CATALOGS $lang.gmo"
16474 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16475 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"
16476 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16477 if test -f "$f"; then
16479 *.orig | *.bak | *~) ;;
16480 *) cat "$f" >> "$ac_dir/Makefile" ;;
16493 { (exit 0); exit 0; }
16495 chmod +x $CONFIG_STATUS
16496 ac_clean_files=$ac_clean_files_save
16499 # configure is writing to config.log, and then calls config.status.
16500 # config.status does its own redirection, appending to config.log.
16501 # Unfortunately, on DOS this fails, as config.log is still kept open
16502 # by configure, so config.status won't be able to write to it; its
16503 # output is simply discarded. So we exec the FD to /dev/null,
16504 # effectively closing config.log, so it can be properly (re)opened and
16505 # appended to by config.status. When coming back to configure, we
16506 # need to make the FD available again.
16507 if test "$no_create" != yes; then
16509 ac_config_status_args=
16510 test "$silent" = yes &&
16511 ac_config_status_args="$ac_config_status_args --quiet"
16513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16516 # would make configure fail if this is the last instruction.
16517 $ac_cs_success || { (exit 1); exit 1; }
16520 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi