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
719 BUILD_INCLUDED_LIBINTL
726 INTL_LIBTOOL_SUFFIX_PREFIX
770 ac_subst_files='MCONFIG
777 PUBLIC_CONFIG_HEADER'
778 ac_precious_vars='build_alias
789 # Initialize some variables set by options.
791 ac_init_version=false
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
801 program_transform_name=s,x,x,
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 includedir='${prefix}/include'
824 oldincludedir='/usr/include'
825 docdir='${datarootdir}/doc/${PACKAGE}'
826 infodir='${datarootdir}/info'
831 libdir='${exec_prefix}/lib'
832 localedir='${datarootdir}/locale'
833 mandir='${datarootdir}/man'
839 # If the previous option needs an argument, assign it.
840 if test -n "$ac_prev"; then
841 eval $ac_prev=\$ac_option
847 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
893 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
894 { (exit 1); exit 1; }; }
895 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
896 eval enable_$ac_feature=no ;;
898 -docdir | --docdir | --docdi | --doc | --do)
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 -enable-* | --enable-*)
909 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
912 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
913 { (exit 1); exit 1; }; }
914 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
915 eval enable_$ac_feature=\$ac_optarg ;;
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
930 -help | --help | --hel | --he | -h)
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 htmldir=$ac_optarg ;;
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
960 -libdir | --libdir | --libdi | --libd)
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
972 -localedir | --localedir | --localedi | --localed | --locale)
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 # Obsolete; use --without-fp.
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1051 -psdir | --psdir | --psdi | --psd | --ps)
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 sbindir=$ac_optarg ;;
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 sharedstatedir=$ac_optarg ;;
1077 -site | --site | --sit)
1079 -site=* | --site=* | --sit=*)
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1106 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1112 eval with_$ac_package=\$ac_optarg ;;
1114 -without-* | --without-*)
1115 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid package name: $ac_package" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1121 eval with_$ac_package=no ;;
1124 # Obsolete; use --with-x.
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1141 -*) { echo "$as_me: error: unrecognized option: $ac_option
1142 Try \`$0 --help' for more information." >&2
1143 { (exit 1); exit 1; }; }
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1151 { (exit 1); exit 1; }; }
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 { echo "$as_me: error: missing argument to $ac_option" >&2
1169 { (exit 1); exit 1; }; }
1172 # Be sure to have absolute directory names.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val=\$$ac_var
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1184 { (exit 1); exit 1; }; }
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1192 target=$target_alias
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used." >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208 test "$silent" = yes && exec 6>/dev/null
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 { echo "$as_me: error: Working directory cannot be determined" >&2
1215 { (exit 1); exit 1; }; }
1216 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1217 { echo "$as_me: error: pwd does not report name of working directory" >&2
1218 { (exit 1); exit 1; }; }
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$0" ||
1226 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$0" : 'X\(//\)[^/]' \| \
1228 X"$0" : 'X\(//\)$' \| \
1229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1253 ac_srcdir_defaulted=no
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1258 { (exit 1); exit 1; }; }
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1263 { (exit 1); exit 1; }; }
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 for ac_var in $ac_precious_vars; do
1276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_env_${ac_var}_value=\$${ac_var}
1278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1289 \`configure' configures this package to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1347 --build=BUILD configure for building on BUILD [guessed]
1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1352 if test -n "$ac_init_help"; then
1357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1359 --enable-maintainer-mode enable makefile rules useful for maintainers
1360 --enable-compression enable EXPERIMENTAL compression support
1361 --enable-htree enable EXPERIMENTAL htree directory support
1362 --enable-elf-shlibs select ELF shared libraries
1363 --enable-bsd-shlibs select BSD shared libraries
1364 --enable-profile build profiling libraries
1365 --enable-checker build checker libraries
1366 --enable-jbd-debug enable journal debugging
1367 --enable-blkid-debug enable blkid debugging
1368 --disable-testio-debug disable the use of the test I/O manager for debugging
1369 --disable-debugfs disable support of debugfs program
1370 --disable-imager disable support of e2image program
1371 --disable-resizer disable support of e2resize program
1372 --enable-fsck build fsck wrapper program
1373 --enable-e2initrd-helper build e2initrd-helper program
1374 --disable-tls disable use of thread local support
1375 --disable-uuidd disable building the uuid daemon
1376 --disable-nls do not use Native Language Support
1377 --disable-rpath do not hardcode runtime library paths
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1382 --with-diet-libc use diet libc
1383 --with-cc=COMPILER select compiler to use
1384 --with-linker=LINKER select linker to use
1385 --with-ccopts=CCOPTS select compiler command line options
1386 --with-ldopts=LDOPTS select linker command line options
1387 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1388 --with-gnu-ld assume the C compiler uses GNU ld default=no
1389 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1390 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1391 --with-included-gettext use the GNU gettext library included here
1392 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1393 --without-libintl-prefix don't search for libintl in includedir and libdir
1395 Some influential environment variables:
1396 CC C compiler command
1397 CFLAGS C compiler flags
1398 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1399 nonstandard directory <lib dir>
1400 LIBS libraries to pass to the linker, e.g. -l<library>
1401 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1402 you have headers in a nonstandard directory <include dir>
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" || continue
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1435 .) # We are building in place.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1459 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1469 generated by GNU Autoconf 2.61
1471 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1472 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1478 cat >config.log <<_ACEOF
1479 This file contains any messages produced by compilers while
1480 running configure, to aid debugging if configure makes a mistake.
1482 It was created by $as_me, which was
1483 generated by GNU Autoconf 2.61. Invocation command line was
1495 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1496 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1497 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1498 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1499 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1502 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1504 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1505 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1507 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1508 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1510 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir=.
1519 echo "PATH: $as_dir"
1535 # Keep a trace of the command line.
1536 # Strip out --no-create and --no-recursion so they do not pile up.
1537 # Strip out --silent because we don't want to record it for future runs.
1538 # Also quote any args containing shell meta-characters.
1539 # Make two passes to allow for proper duplicate-argument suppression.
1543 ac_must_keep_next=false
1549 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1551 | -silent | --silent | --silen | --sile | --sil)
1554 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1557 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1560 if test $ac_must_keep_next = true; then
1561 ac_must_keep_next=false # Got value, back to normal.
1564 *=* | --config-cache | -C | -disable-* | --disable-* \
1565 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1566 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1567 | -with-* | --with-* | -without-* | --without-* | --x)
1568 case "$ac_configure_args0 " in
1569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1572 -* ) ac_must_keep_next=true ;;
1575 ac_configure_args="$ac_configure_args '$ac_arg'"
1580 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1581 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583 # When interrupted or exit'd, cleanup temporary files, and complete
1584 # config.log. We remove comments because anyway the quotes in there
1585 # would cause problems or look ugly.
1586 # WARNING: Use '\'' to represent an apostrophe within the trap.
1587 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1588 trap 'exit_status=$?
1589 # Save into config.log some information that might help in debugging.
1594 ## ---------------- ##
1595 ## Cache variables. ##
1596 ## ---------------- ##
1599 # The following way of writing the cache mishandles newlines in values,
1601 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1602 eval ac_val=\$$ac_var
1606 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1607 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1610 _ | IFS | as_nl) ;; #(
1611 *) $as_unset $ac_var ;;
1616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1617 *${as_nl}ac_space=\ *)
1619 "s/'\''/'\''\\\\'\'''\''/g;
1620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631 ## ----------------- ##
1632 ## Output variables. ##
1633 ## ----------------- ##
1636 for ac_var in $ac_subst_vars
1638 eval ac_val=\$$ac_var
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 echo "$ac_var='\''$ac_val'\''"
1646 if test -n "$ac_subst_files"; then
1648 ## ------------------- ##
1649 ## File substitutions. ##
1650 ## ------------------- ##
1653 for ac_var in $ac_subst_files
1655 eval ac_val=\$$ac_var
1657 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 echo "$ac_var='\''$ac_val'\''"
1664 if test -s confdefs.h; then
1674 test "$ac_signal" != 0 &&
1675 echo "$as_me: caught signal $ac_signal"
1676 echo "$as_me: exit $exit_status"
1678 rm -f core *.core core.conftest.* &&
1679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1682 for ac_signal in 1 2 13 15; do
1683 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1687 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1688 rm -f -r conftest* confdefs.h
1690 # Predefined preprocessor variables.
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_NAME "$PACKAGE_NAME"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_STRING "$PACKAGE_STRING"
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1717 # Let the site file select an alternate cache file if it wants to.
1718 # Prefer explicitly selected file to automatically selected ones.
1719 if test -n "$CONFIG_SITE"; then
1720 set x "$CONFIG_SITE"
1721 elif test "x$prefix" != xNONE; then
1722 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1724 set x "$ac_default_prefix/share/config.site" \
1725 "$ac_default_prefix/etc/config.site"
1730 if test -r "$ac_site_file"; then
1731 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732 echo "$as_me: loading site script $ac_site_file" >&6;}
1733 sed 's/^/| /' "$ac_site_file" >&5
1738 if test -r "$cache_file"; then
1739 # Some versions of bash will fail to source /dev/null (special
1740 # files actually), so we avoid doing that.
1741 if test -f "$cache_file"; then
1742 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743 echo "$as_me: loading cache $cache_file" >&6;}
1745 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746 *) . "./$cache_file";;
1750 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751 echo "$as_me: creating cache $cache_file" >&6;}
1755 # Check that the precious variables saved in the cache have kept the same
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1778 echo "$as_me: former value: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1780 echo "$as_me: current value: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 for ac_dir in config "$srcdir"/config; do
1830 if test -f "$ac_dir/install-sh"; then
1832 ac_install_sh="$ac_aux_dir/install-sh -c"
1834 elif test -f "$ac_dir/install.sh"; then
1836 ac_install_sh="$ac_aux_dir/install.sh -c"
1838 elif test -f "$ac_dir/shtool"; then
1840 ac_install_sh="$ac_aux_dir/shtool install -c"
1844 if test -z "$ac_aux_dir"; then
1845 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1846 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1847 { (exit 1); exit 1; }; }
1850 # These three variables are undocumented and unsupported,
1851 # and are intended to be withdrawn in a future Autoconf release.
1852 # They can cause serious problems if a builder's source tree is in a directory
1853 # whose full name contains unusual characters.
1854 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1855 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1856 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1862 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1863 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1864 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1866 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1867 MONTH=`echo $DATE | awk -F- '{print $2}'`
1868 YEAR=`echo $DATE | awk -F- '{print $3}'`
1870 if expr $YEAR ">" 1900 > /dev/null ; then
1871 E2FSPROGS_YEAR=$YEAR
1872 elif expr $YEAR ">" 90 >/dev/null ; then
1873 E2FSPROGS_YEAR=19$YEAR
1875 E2FSPROGS_YEAR=20$YEAR
1879 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1880 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1881 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1882 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1883 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1884 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1885 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1886 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1887 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1888 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1889 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1890 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1891 *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1892 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1895 base_ver=`echo $E2FSPROGS_VERSION | \
1896 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1898 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1900 case $E2FSPROGS_VERSION in
1902 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1905 E2FSPROGS_PKGVER="$base_ver"
1909 unset DATE MONTH YEAR base_ver pre_vers date_spec
1910 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1911 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1912 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1913 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1919 # Make sure we can run config.sub.
1920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1921 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1922 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1923 { (exit 1); exit 1; }; }
1925 { echo "$as_me:$LINENO: checking build system type" >&5
1926 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1927 if test "${ac_cv_build+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 ac_build_alias=$build_alias
1931 test "x$ac_build_alias" = x &&
1932 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1933 test "x$ac_build_alias" = x &&
1934 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1935 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1936 { (exit 1); exit 1; }; }
1937 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1938 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1939 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1940 { (exit 1); exit 1; }; }
1943 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1944 echo "${ECHO_T}$ac_cv_build" >&6; }
1945 case $ac_cv_build in
1947 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1948 echo "$as_me: error: invalid value of canonical build" >&2;}
1949 { (exit 1); exit 1; }; };;
1952 ac_save_IFS=$IFS; IFS='-'
1958 # Remember, the first character of IFS is used to create $*,
1959 # except with old shells:
1962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1965 { echo "$as_me:$LINENO: checking host system type" >&5
1966 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1967 if test "${ac_cv_host+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test "x$host_alias" = x; then
1971 ac_cv_host=$ac_cv_build
1973 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1974 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1975 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1976 { (exit 1); exit 1; }; }
1980 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1981 echo "${ECHO_T}$ac_cv_host" >&6; }
1984 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1985 echo "$as_me: error: invalid value of canonical host" >&2;}
1986 { (exit 1); exit 1; }; };;
1989 ac_save_IFS=$IFS; IFS='-'
1995 # Remember, the first character of IFS is used to create $*,
1996 # except with old shells:
1999 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2004 # Check whether --with-diet-libc was given.
2005 if test "${with_diet_libc+set}" = set; then
2006 withval=$with_diet_libc; CC="diet cc -nostdinc"
2008 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2009 echo "${ECHO_T}CC=$CC" >&6; }
2012 # Check whether --with-cc was given.
2013 if test "${with_cc+set}" = set; then
2014 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2015 echo "${ECHO_T}CC=$withval" >&6; }
2018 if test -z "$CC" ; then CC=cc; fi
2019 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2020 echo "${ECHO_T}CC defaults to $CC" >&6; }
2025 ac_cpp='$CPP $CPPFLAGS'
2026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029 if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 if test -n "$CC"; then
2059 { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2062 { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2068 if test -z "$ac_cv_prog_CC"; then
2070 # Extract the first word of "gcc", so it can be a program name with args.
2071 set dummy gcc; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test -n "$ac_ct_CC"; then
2078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
2086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2087 ac_cv_prog_ac_ct_CC="gcc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6; }
2102 { echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6; }
2106 if test "x$ac_ct_CC" = x; then
2109 case $cross_compiling:$ac_tool_warned in
2111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2112 whose name does not start with the host triplet. If you think this
2113 configuration is useful to you, please write to autoconf@gnu.org." >&5
2114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2115 whose name does not start with the host triplet. If you think this
2116 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2117 ac_tool_warned=yes ;;
2125 if test -z "$CC"; then
2126 if test -n "$ac_tool_prefix"; then
2127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}cc; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144 ac_cv_prog_CC="${ac_tool_prefix}cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 if test -n "$CC"; then
2156 { echo "$as_me:$LINENO: result: $CC" >&5
2157 echo "${ECHO_T}$CC" >&6; }
2159 { echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6; }
2166 if test -z "$CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2186 ac_prog_rejected=yes
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2201 if test $# != 0; then
2202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 if test -n "$CC"; then
2213 { echo "$as_me:$LINENO: result: $CC" >&5
2214 echo "${ECHO_T}$CC" >&6; }
2216 { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl.exe
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 if test -n "$CC"; then
2255 { echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6; }
2258 { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2263 test -n "$CC" && break
2266 if test -z "$CC"; then
2268 for ac_prog in cl.exe
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271 set dummy $ac_prog; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6; }
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2307 test -n "$ac_ct_CC" && break
2310 if test "x$ac_ct_CC" = x; then
2313 case $cross_compiling:$ac_tool_warned in
2315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2316 whose name does not start with the host triplet. If you think this
2317 configuration is useful to you, please write to autoconf@gnu.org." >&5
2318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet. If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2321 ac_tool_warned=yes ;;
2330 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: no acceptable C compiler found in \$PATH
2333 See \`config.log' for more details." >&2;}
2334 { (exit 1); exit 1; }; }
2336 # Provide some information about the compiler.
2337 echo "$as_me:$LINENO: checking for C compiler version" >&5
2338 ac_compiler=`set X $ac_compile; echo $2`
2339 { (ac_try="$ac_compiler --version >&5"
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_compiler --version >&5") 2>&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (ac_try="$ac_compiler -v >&5"
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compiler -v >&5") 2>&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }
2359 { (ac_try="$ac_compiler -V >&5"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compiler -V >&5") 2>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }
2370 cat >conftest.$ac_ext <<_ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2385 ac_clean_files_save=$ac_clean_files
2386 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2387 # Try to create an executable without -o first, disregard a.out.
2388 # It will help us diagnose broken compilers, and finding out an intuition
2390 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2391 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2392 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 # List of possible output files, starting from the most likely.
2395 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2396 # only as a last resort. b.out is created by i960 compilers.
2397 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2399 # The IRIX 6 linker writes into existing files which may not be
2400 # executable, retaining their permissions. Remove them first so a
2401 # subsequent execution test works.
2403 for ac_file in $ac_files
2406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2407 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2412 if { (ac_try="$ac_link_default"
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_link_default") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; then
2422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2423 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2424 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2425 # so that the user can short-circuit this test for compilers unknown to
2427 for ac_file in $ac_files ''
2429 test -f "$ac_file" || continue
2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2434 # We found the default executable, but exeext='' is most
2438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2442 # We set ac_cv_exeext here because the later test for it is not
2443 # safe: cross compilers may not add the suffix if given an `-o'
2444 # argument, so we may need to know it at that point already.
2445 # Even if this section looks crufty: it has the advantage of
2452 test "$ac_cv_exeext" = no && ac_cv_exeext=
2458 { echo "$as_me:$LINENO: result: $ac_file" >&5
2459 echo "${ECHO_T}$ac_file" >&6; }
2460 if test -z "$ac_file"; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2464 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&5
2466 echo "$as_me: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&2;}
2468 { (exit 77); exit 77; }; }
2471 ac_exeext=$ac_cv_exeext
2473 # Check that the compiler produces executables we can run. If not, either
2474 # the compiler is broken, or we cross compile.
2475 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2476 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2478 # If not cross compiling, check that we can run a simple program.
2479 if test "$cross_compiling" != yes; then
2480 if { ac_try='./$ac_file'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2492 if test "$cross_compiling" = maybe; then
2495 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2496 If you meant to cross compile, use \`--host'.
2497 See \`config.log' for more details." >&5
2498 echo "$as_me: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&2;}
2501 { (exit 1); exit 1; }; }
2505 { echo "$as_me:$LINENO: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6; }
2508 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2509 ac_clean_files=$ac_clean_files_save
2510 # Check that the compiler produces executables we can run. If not, either
2511 # the compiler is broken, or we cross compile.
2512 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2513 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2514 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2515 echo "${ECHO_T}$cross_compiling" >&6; }
2517 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2518 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2519 if { (ac_try="$ac_link"
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_link") 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2531 # work properly (i.e., refer to `conftest.exe'), while it won't with
2533 for ac_file in conftest.exe conftest conftest.*; do
2534 test -f "$ac_file" || continue
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2543 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2550 rm -f conftest$ac_cv_exeext
2551 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2554 rm -f conftest.$ac_ext
2555 EXEEXT=$ac_cv_exeext
2557 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2559 if test "${ac_cv_objext+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 cat >conftest.$ac_ext <<_ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.o conftest.obj
2578 if { (ac_try="$ac_compile"
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; then
2588 for ac_file in conftest.o conftest.obj conftest.*; do
2589 test -f "$ac_file" || continue;
2591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2597 echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2601 See \`config.log' for more details." >&5
2602 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2603 See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }
2607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2609 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2610 echo "${ECHO_T}$ac_cv_objext" >&6; }
2611 OBJEXT=$ac_cv_objext
2613 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2614 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2615 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2636 rm -f conftest.$ac_objext
2637 if { (ac_try="$ac_compile"
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>conftest.er1
2645 grep -v '^ *+' conftest.er1 >conftest.err
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } && {
2650 test -z "$ac_c_werror_flag" ||
2651 test ! -s conftest.err
2652 } && test -s conftest.$ac_objext; then
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2665 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2666 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2667 GCC=`test $ac_compiler_gnu = yes && echo yes`
2668 ac_test_CFLAGS=${CFLAGS+set}
2669 ac_save_CFLAGS=$CFLAGS
2670 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2671 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_cc_g+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 ac_save_c_werror_flag=$ac_c_werror_flag
2676 ac_c_werror_flag=yes
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
2703 grep -v '^ *+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } && {
2708 test -z "$ac_c_werror_flag" ||
2709 test ! -s conftest.err
2710 } && test -s conftest.$ac_objext; then
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2717 cat >conftest.$ac_ext <<_ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2732 rm -f conftest.$ac_objext
2733 if { (ac_try="$ac_compile"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compile") 2>conftest.er1
2741 grep -v '^ *+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } && {
2746 test -z "$ac_c_werror_flag" ||
2747 test ! -s conftest.err
2748 } && test -s conftest.$ac_objext; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 ac_c_werror_flag=$ac_save_c_werror_flag
2756 cat >conftest.$ac_ext <<_ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2771 rm -f conftest.$ac_objext
2772 if { (ac_try="$ac_compile"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2780 grep -v '^ *+' conftest.er1 >conftest.err
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_c_werror_flag=$ac_save_c_werror_flag
2805 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2807 if test "$ac_test_CFLAGS" = set; then
2808 CFLAGS=$ac_save_CFLAGS
2809 elif test $ac_cv_prog_cc_g = yes; then
2810 if test "$GCC" = yes; then
2816 if test "$GCC" = yes; then
2822 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2823 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_cc_c89+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 ac_cv_prog_cc_c89=no
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2837 #include <sys/types.h>
2838 #include <sys/stat.h>
2839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2840 struct buf { int x; };
2841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2842 static char *e (p, i)
2848 static char *f (char * (*g) (char **, int), char **p, ...)
2853 s = g (p, va_arg (v,int));
2858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2859 function prototypes and stuff, but not '\xHH' hex character constants.
2860 These don't provoke an error unfortunately, instead are silently treated
2861 as 'x'. The following induces an error, until -std is added to get
2862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2863 array size at least. It's necessary to write '\x00'==0 to get something
2864 that's true only with -std. */
2865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2868 inside strings and character constants. */
2870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2889 CC="$ac_save_CC $ac_arg"
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && {
2904 test -z "$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
2907 ac_cv_prog_cc_c89=$ac_arg
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f core conftest.err conftest.$ac_objext
2916 test "x$ac_cv_prog_cc_c89" != "xno" && break
2918 rm -f conftest.$ac_ext
2923 case "x$ac_cv_prog_cc_c89" in
2925 { echo "$as_me:$LINENO: result: none needed" >&5
2926 echo "${ECHO_T}none needed" >&6; } ;;
2928 { echo "$as_me:$LINENO: result: unsupported" >&5
2929 echo "${ECHO_T}unsupported" >&6; } ;;
2931 CC="$CC $ac_cv_prog_cc_c89"
2932 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2933 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2954 if test -z "$CPP"; then
2955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 for ac_c_preproc_warn_flag in '' yes
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
2968 # On the NeXT, cc -E runs the code through the compiler's parser,
2969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2977 # include <limits.h>
2979 # include <assert.h>
2983 if { (ac_try="$ac_cpp conftest.$ac_ext"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } >/dev/null && {
2996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2997 test ! -s conftest.err
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Broken: fails on valid input.
3008 rm -f conftest.err conftest.$ac_ext
3010 # OK, works on sane cases. Now check whether nonexistent headers
3011 # can be detected and how.
3012 cat >conftest.$ac_ext <<_ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018 #include <ac_nonexistent.h>
3020 if { (ac_try="$ac_cpp conftest.$ac_ext"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } >/dev/null && {
3033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3036 # Broken: success on invalid input.
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 # Passes both tests.
3047 rm -f conftest.err conftest.$ac_ext
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3064 { echo "$as_me:$LINENO: result: $CPP" >&5
3065 echo "${ECHO_T}$CPP" >&6; }
3067 for ac_c_preproc_warn_flag in '' yes
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3082 # include <limits.h>
3084 # include <assert.h>
3088 if { (ac_try="$ac_cpp conftest.$ac_ext"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } >/dev/null && {
3101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 # Broken: fails on valid input.
3113 rm -f conftest.err conftest.$ac_ext
3115 # OK, works on sane cases. Now check whether nonexistent headers
3116 # can be detected and how.
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123 #include <ac_nonexistent.h>
3125 if { (ac_try="$ac_cpp conftest.$ac_ext"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } >/dev/null && {
3138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3141 # Broken: success on invalid input.
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 # Passes both tests.
3152 rm -f conftest.err conftest.$ac_ext
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then
3160 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 # Check whether --with-linker was given.
3175 if test "${with_linker+set}" = set; then
3176 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3177 echo "${ECHO_T}LD=$withval" >&6; }
3180 if test -z "$LD" ; then LD=$CC; fi
3181 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3182 echo "${ECHO_T}LD defaults to $LD" >&6; }
3187 # Check whether --with-ccopts was given.
3188 if test "${with_ccopts+set}" = set; then
3189 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3190 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3195 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3196 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3197 if test "${ac_cv_path_GREP+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 # Extract the first word of "grep ggrep" to use in msg output
3201 if test -z "$GREP"; then
3202 set dummy grep ggrep; ac_prog_name=$2
3203 if test "${ac_cv_path_GREP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 ac_path_GREP_found=false
3207 # Loop through the user's path and test for each of PROGNAME-LIST
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3212 test -z "$as_dir" && as_dir=.
3213 for ac_prog in grep ggrep; do
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3216 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3217 # Check for GNU ac_path_GREP and select it if it is found.
3218 # Check for GNU $ac_path_GREP
3219 case `"$ac_path_GREP" --version 2>&1` in
3221 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3224 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3227 cat "conftest.in" "conftest.in" >"conftest.tmp"
3228 mv "conftest.tmp" "conftest.in"
3229 cp "conftest.in" "conftest.nl"
3230 echo 'GREP' >> "conftest.nl"
3231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3233 ac_count=`expr $ac_count + 1`
3234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3235 # Best one so far, save it but keep looking for a better one
3236 ac_cv_path_GREP="$ac_path_GREP"
3237 ac_path_GREP_max=$ac_count
3239 # 10*(2^10) chars as input seems more than enough
3240 test $ac_count -gt 10 && break
3242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246 $ac_path_GREP_found && break 3
3256 GREP="$ac_cv_path_GREP"
3257 if test -z "$GREP"; then
3258 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3259 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3260 { (exit 1); exit 1; }; }
3264 ac_cv_path_GREP=$GREP
3269 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3270 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3271 GREP="$ac_cv_path_GREP"
3274 { echo "$as_me:$LINENO: checking for egrep" >&5
3275 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3276 if test "${ac_cv_path_EGREP+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3280 then ac_cv_path_EGREP="$GREP -E"
3282 # Extract the first word of "egrep" to use in msg output
3283 if test -z "$EGREP"; then
3284 set dummy egrep; ac_prog_name=$2
3285 if test "${ac_cv_path_EGREP+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 ac_path_EGREP_found=false
3289 # Loop through the user's path and test for each of PROGNAME-LIST
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3294 test -z "$as_dir" && as_dir=.
3295 for ac_prog in egrep; do
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3299 # Check for GNU ac_path_EGREP and select it if it is found.
3300 # Check for GNU $ac_path_EGREP
3301 case `"$ac_path_EGREP" --version 2>&1` in
3303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3306 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3309 cat "conftest.in" "conftest.in" >"conftest.tmp"
3310 mv "conftest.tmp" "conftest.in"
3311 cp "conftest.in" "conftest.nl"
3312 echo 'EGREP' >> "conftest.nl"
3313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3315 ac_count=`expr $ac_count + 1`
3316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3317 # Best one so far, save it but keep looking for a better one
3318 ac_cv_path_EGREP="$ac_path_EGREP"
3319 ac_path_EGREP_max=$ac_count
3321 # 10*(2^10) chars as input seems more than enough
3322 test $ac_count -gt 10 && break
3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3328 $ac_path_EGREP_found && break 3
3338 EGREP="$ac_cv_path_EGREP"
3339 if test -z "$EGREP"; then
3340 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3341 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3342 { (exit 1); exit 1; }; }
3346 ac_cv_path_EGREP=$EGREP
3352 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3353 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3354 EGREP="$ac_cv_path_EGREP"
3357 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3359 if test "${ac_cv_header_stdc+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3381 rm -f conftest.$ac_objext
3382 if { (ac_try="$ac_compile"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && {
3395 test -z "$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 } && test -s conftest.$ac_objext; then
3398 ac_cv_header_stdc=yes
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 ac_cv_header_stdc=no
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 if test $ac_cv_header_stdc = yes; then
3409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 $EGREP "memchr" >/dev/null 2>&1; then
3423 ac_cv_header_stdc=no
3429 if test $ac_cv_header_stdc = yes; then
3430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3441 $EGREP "free" >/dev/null 2>&1; then
3444 ac_cv_header_stdc=no
3450 if test $ac_cv_header_stdc = yes; then
3451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3452 if test "$cross_compiling" = yes; then
3455 cat >conftest.$ac_ext <<_ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3463 #if ((' ' & 0x0FF) == 0x020)
3464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3467 # define ISLOWER(c) \
3468 (('a' <= (c) && (c) <= 'i') \
3469 || ('j' <= (c) && (c) <= 'r') \
3470 || ('s' <= (c) && (c) <= 'z'))
3471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3479 for (i = 0; i < 256; i++)
3480 if (XOR (islower (i), ISLOWER (i))
3481 || toupper (i) != TOUPPER (i))
3486 rm -f conftest$ac_exeext
3487 if { (ac_try="$ac_link"
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_link") 2>&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3497 { (case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_try") 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; }; then
3508 echo "$as_me: program exited with status $ac_status" >&5
3509 echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3513 ac_cv_header_stdc=no
3515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3522 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3523 if test $ac_cv_header_stdc = yes; then
3525 cat >>confdefs.h <<\_ACEOF
3526 #define STDC_HEADERS 1
3531 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3541 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3542 inttypes.h stdint.h unistd.h
3544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 $ac_includes_default
3558 #include <$ac_header>
3560 rm -f conftest.$ac_objext
3561 if { (ac_try="$ac_compile"
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_compile") 2>conftest.er1
3569 grep -v '^ *+' conftest.er1 >conftest.err
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } && {
3574 test -z "$ac_c_werror_flag" ||
3575 test ! -s conftest.err
3576 } && test -s conftest.$ac_objext; then
3577 eval "$as_ac_Header=yes"
3579 echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 eval "$as_ac_Header=no"
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_res=`eval echo '${'$as_ac_Header'}'`
3588 { echo "$as_me:$LINENO: result: $ac_res" >&5
3589 echo "${ECHO_T}$ac_res" >&6; }
3590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3591 cat >>confdefs.h <<_ACEOF
3592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3600 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3601 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3602 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3603 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3607 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3609 # Is the header compilable?
3610 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3611 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3612 cat >conftest.$ac_ext <<_ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3619 #include <linux/fs.h>
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3630 grep -v '^ *+' conftest.er1 >conftest.err
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3638 ac_header_compiler=yes
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 ac_header_compiler=no
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3648 echo "${ECHO_T}$ac_header_compiler" >&6; }
3650 # Is the header present?
3651 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3652 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3653 cat >conftest.$ac_ext <<_ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 #include <linux/fs.h>
3661 if { (ac_try="$ac_cpp conftest.$ac_ext"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } >/dev/null && {
3674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3677 ac_header_preproc=yes
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3682 ac_header_preproc=no
3685 rm -f conftest.err conftest.$ac_ext
3686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3687 echo "${ECHO_T}$ac_header_preproc" >&6; }
3689 # So? What about this header?
3690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3692 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3693 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3694 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3695 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3696 ac_header_preproc=yes
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3700 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3702 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3704 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3706 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3708 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3710 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3714 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3715 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3716 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 ac_cv_header_linux_fs_h=$ac_header_preproc
3721 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3722 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3725 if test $ac_cv_header_linux_fs_h = yes; then
3732 if test "$linux_headers" != yes; then
3733 LINUX_INCLUDE='-I$(top_builddir)/include'
3736 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3737 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3738 if test "$GCC" = yes
3741 alpha) addcflags="-mieee" ;;
3744 if test "x$addcflags" != x
3746 { echo "$as_me:$LINENO: result: $addcflags" >&5
3747 echo "${ECHO_T}$addcflags" >&6; }
3748 CFLAGS="$addcflags $CFLAGS"
3750 { echo "$as_me:$LINENO: result: (none)" >&5
3751 echo "${ECHO_T}(none)" >&6; }
3757 # Check whether --with-ldopts was given.
3758 if test "${with_ldopts+set}" = set; then
3759 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3760 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3765 # Check whether --with-root-prefix was given.
3766 if test "${with_root_prefix+set}" = set; then
3767 withval=$with_root_prefix; root_prefix=$withval
3771 # Check whether --enable-maintainer-mode was given.
3772 if test "${enable_maintainer_mode+set}" = set; then
3773 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3776 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3777 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3780 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3781 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3786 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3787 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3792 # Check whether --enable-compression was given.
3793 if test "${enable_compression+set}" = set; then
3794 enableval=$enable_compression; if test "$enableval" = "no"
3796 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3797 echo "${ECHO_T}Disabling compression support" >&6; }
3799 cat >>confdefs.h <<\_ACEOF
3800 #define ENABLE_COMPRESSION 1
3803 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3804 echo "${ECHO_T}Enabling compression support" >&6; }
3805 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3806 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3810 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3811 echo "${ECHO_T}Disabling compression support by default" >&6; }
3815 # Check whether --enable-htree was given.
3816 if test "${enable_htree+set}" = set; then
3817 enableval=$enable_htree; if test "$enableval" = "no"
3820 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3821 echo "${ECHO_T}Disabling htree directory support" >&6; }
3824 cat >>confdefs.h <<\_ACEOF
3825 #define ENABLE_HTREE 1
3828 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3829 echo "${ECHO_T}Enabling htree directory support" >&6; }
3834 cat >>confdefs.h <<\_ACEOF
3835 #define ENABLE_HTREE 1
3838 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3839 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3844 E2_PKG_CONFIG_STATIC=--static
3845 # Check whether --enable-elf-shlibs was given.
3846 if test "${enable_elf_shlibs+set}" = set; then
3847 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3850 MAKEFILE_ELF=/dev/null
3851 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3852 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3854 E2_PKG_CONFIG_STATIC=
3856 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3859 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3864 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3865 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3869 MAKEFILE_ELF=/dev/null
3871 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3872 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3878 # Check whether --enable-bsd-shlibs was given.
3879 if test "${enable_bsd_shlibs+set}" = set; then
3880 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3883 MAKEFILE_BSDLIB=/dev/null
3884 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3885 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3887 E2_PKG_CONFIG_STATIC=
3889 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3893 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3897 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3898 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3902 MAKEFILE_BSDLIB=/dev/null
3904 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3905 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3911 # Check whether --enable-profile was given.
3912 if test "${enable_profile+set}" = set; then
3913 enableval=$enable_profile; if test "$enableval" = "no"
3916 MAKEFILE_PROFILE=/dev/null
3917 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3918 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3921 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3922 PROFILED_LIB_EXT=_p.a
3923 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3924 echo "${ECHO_T}Building profiling libraries" >&6; }
3929 MAKEFILE_PROFILE=/dev/null
3930 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3931 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3937 # Check whether --enable-checker was given.
3938 if test "${enable_checker+set}" = set; then
3939 enableval=$enable_checker; if test "$enableval" = "no"
3942 MAKEFILE_CHECKER=/dev/null
3943 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3944 echo "${ECHO_T}Disabling checker libraries" >&6; }
3947 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3948 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3949 echo "${ECHO_T}Building checker libraries" >&6; }
3954 MAKEFILE_CHECKER=/dev/null
3955 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3956 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3965 # Check whether --enable-jbd-debug was given.
3966 if test "${enable_jbd_debug+set}" = set; then
3967 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3969 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3970 echo "${ECHO_T}Disabling journal debugging" >&6; }
3972 cat >>confdefs.h <<\_ACEOF
3973 #define CONFIG_JBD_DEBUG 1
3976 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3977 echo "${ECHO_T}Enabling journal debugging" >&6; }
3981 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3982 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3986 # Check whether --enable-blkid-debug was given.
3987 if test "${enable_blkid_debug+set}" = set; then
3988 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3990 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3991 echo "${ECHO_T}Disabling blkid debugging" >&6; }
3993 cat >>confdefs.h <<\_ACEOF
3994 #define CONFIG_BLKID_DEBUG 1
3997 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
3998 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4002 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4003 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4007 # Check whether --enable-testio-debug was given.
4008 if test "${enable_testio_debug+set}" = set; then
4009 enableval=$enable_testio_debug; if test "$enableval" = "no"
4011 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4012 echo "${ECHO_T}Disabling testio debugging" >&6; }
4016 cat >>confdefs.h <<\_ACEOF
4017 #define CONFIG_TESTIO_DEBUG 1
4020 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4021 echo "${ECHO_T}Enabling testio debugging" >&6; }
4025 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4026 echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4027 cat >>confdefs.h <<\_ACEOF
4028 #define CONFIG_TESTIO_DEBUG 1
4036 # Check whether --enable-debugfs was given.
4037 if test "${enable_debugfs+set}" = set; then
4038 enableval=$enable_debugfs; if test "$enableval" = "no"
4040 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4041 echo "${ECHO_T}Disabling debugfs support" >&6; }
4045 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4046 echo "${ECHO_T}Enabling debugfs support" >&6; }
4050 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4051 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4057 # Check whether --enable-imager was given.
4058 if test "${enable_imager+set}" = set; then
4059 enableval=$enable_imager; if test "$enableval" = "no"
4061 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4062 echo "${ECHO_T}Disabling e2image support" >&6; }
4066 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4067 echo "${ECHO_T}Enabling e2image support" >&6; }
4071 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4072 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4078 # Check whether --enable-resizer was given.
4079 if test "${enable_resizer+set}" = set; then
4080 enableval=$enable_resizer; if test "$enableval" = "no"
4082 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4083 echo "${ECHO_T}Disabling e2resize support" >&6; }
4087 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4088 echo "${ECHO_T}Enabling e2resize support" >&6; }
4092 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4093 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4099 # Check whether --enable-fsck was given.
4100 if test "${enable_fsck+set}" = set; then
4101 enableval=$enable_fsck; if test "$enableval" = "no"
4103 FSCK_PROG='' FSCK_MAN=''
4104 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4105 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4107 FSCK_PROG=fsck FSCK_MAN=fsck.8
4108 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4109 echo "${ECHO_T}Building fsck wrapper" >&6; }
4115 FSCK_PROG='' FSCK_MAN=''
4116 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4117 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4120 FSCK_PROG=fsck FSCK_MAN=fsck.8
4121 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4122 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4129 # Check whether --enable-e2initrd-helper was given.
4130 if test "${enable_e2initrd_helper+set}" = set; then
4131 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4133 E2INITRD_PROG='' E2INITRD_MAN=''
4134 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4135 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4137 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4138 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4139 echo "${ECHO_T}Building e2initrd helper" >&6; }
4143 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4144 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4145 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4151 # Check whether --enable-tls was given.
4152 if test "${enable_tls+set}" = set; then
4153 enableval=$enable_tls; if test "$enableval" = "no"
4156 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4157 echo "${ECHO_T}Disabling thread local support" >&6; }
4160 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4161 echo "${ECHO_T}Enabling thread local support" >&6; }
4165 if test -n "$WITH_DIET_LIBC"
4168 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4169 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4172 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4173 echo "${ECHO_T}Try using thread local support by default" >&6; }
4178 if test "$try_tls" = "yes"
4181 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4182 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4183 if test "${ac_cv_tls+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ax_tls_keywords="__thread __declspec(thread) none"
4188 for ax_tls_keyword in $ax_tls_keywords; do
4189 case $ax_tls_keyword in
4190 none) ac_cv_tls=none ; break ;;
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4201 static $ax_tls_keyword int bar;
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 ac_cv_tls=$ax_tls_keyword ; break
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 if test "$ac_cv_tls" != "none"; then
4247 cat >>confdefs.h <<_ACEOF
4248 #define TLS $ac_cv_tls
4252 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4253 echo "${ECHO_T}$ac_cv_tls" >&6; }
4256 # Check whether --enable-uuidd was given.
4257 if test "${enable_uuidd+set}" = set; then
4258 enableval=$enable_uuidd; if test "$enableval" = "no"
4260 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4261 echo "${ECHO_T}Not building uuidd" >&6; }
4264 cat >>confdefs.h <<\_ACEOF
4269 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4270 echo "${ECHO_T}Building uuidd" >&6; }
4274 cat >>confdefs.h <<\_ACEOF
4279 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4280 echo "${ECHO_T}Building uuidd by default" >&6; }
4285 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4287 GETTEXT_PACKAGE=e2fsprogs
4289 VERSION="$E2FSPROGS_VERSION"
4291 cat >>confdefs.h <<_ACEOF
4292 #define PACKAGE "$PACKAGE"
4295 cat >>confdefs.h <<_ACEOF
4296 #define VERSION "$VERSION"
4303 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4304 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4305 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4306 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 cat >conftest.make <<\_ACEOF
4312 @echo '@@@%%%=$(MAKE)=@@@%%%'
4314 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4315 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4317 eval ac_cv_prog_make_${ac_make}_set=yes;;
4319 eval ac_cv_prog_make_${ac_make}_set=no;;
4323 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4324 { echo "$as_me:$LINENO: result: yes" >&5
4325 echo "${ECHO_T}yes" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4330 SET_MAKE="MAKE=${MAKE-make}"
4333 # Find a good install program. We prefer a C program (faster),
4334 # so one script is as good as another. But avoid the broken or
4335 # incompatible versions:
4336 # SysV /etc/install, /usr/sbin/install
4337 # SunOS /usr/etc/install
4338 # IRIX /sbin/install
4340 # AmigaOS /C/install, which installs bootblocks on floppy discs
4341 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4342 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4343 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4344 # OS/2's system install, which has a completely different semantic
4345 # ./install, which can be erroneously created by make from ./install.sh.
4346 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4347 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4348 if test -z "$INSTALL"; then
4349 if test "${ac_cv_path_install+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 # Account for people who put trailing slashes in PATH elements.
4359 ./ | .// | /cC/* | \
4360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4361 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4364 # OSF1 and SCO ODT 3.0 have their own names for install.
4365 # Don't use installbsd from OSF since it installs stuff as root
4367 for ac_prog in ginstall scoinst install; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4370 if test $ac_prog = install &&
4371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4372 # AIX install. It has an incompatible calling convention.
4374 elif test $ac_prog = install &&
4375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4376 # program-specific install script used by HP pwplus--don't use.
4379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4392 if test "${ac_cv_path_install+set}" = set; then
4393 INSTALL=$ac_cv_path_install
4395 # As a last resort, use the slow shell script. Don't cache a
4396 # value for INSTALL within a source directory, because that will
4397 # break other packages using the cache if that directory is
4398 # removed, or if the value is a relative name.
4399 INSTALL=$ac_install_sh
4402 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4403 echo "${ECHO_T}$INSTALL" >&6; }
4405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4406 # It thinks the first close brace ends the variable substitution.
4407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4415 if test -n "$ac_aux_dir"; then
4416 case "$ac_aux_dir" in
4417 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4418 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4421 if test -z "$MKINSTALLDIRS"; then
4422 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4427 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4428 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4429 # Check whether --enable-nls was given.
4430 if test "${enable_nls+set}" = set; then
4431 enableval=$enable_nls; USE_NLS=$enableval
4436 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4437 echo "${ECHO_T}$USE_NLS" >&6; }
4444 # Prepare PATH_SEPARATOR.
4445 # The user is always right.
4446 if test "${PATH_SEPARATOR+set}" != set; then
4447 echo "#! /bin/sh" >conf$$.sh
4448 echo "exit 0" >>conf$$.sh
4450 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4458 # Find out how to test for executable files. Don't use a zero-byte file,
4459 # as systems may use methods other than mode bits to determine executability.
4460 cat >conf$$.file <<_ASEOF
4464 chmod +x conf$$.file
4465 if test -x conf$$.file >/dev/null 2>&1; then
4466 ac_executable_p="test -x"
4468 ac_executable_p="test -f"
4472 # Extract the first word of "msgfmt", so it can be a program name with args.
4473 set dummy msgfmt; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_path_MSGFMT+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4484 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4485 for ac_dir in $PATH; do
4487 test -z "$ac_dir" && ac_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4490 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4491 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4492 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4499 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4503 MSGFMT="$ac_cv_path_MSGFMT"
4504 if test "$MSGFMT" != ":"; then
4505 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4506 echo "${ECHO_T}$MSGFMT" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4512 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4513 set dummy gmsgfmt; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4543 GMSGFMT=$ac_cv_path_GMSGFMT
4544 if test -n "$GMSGFMT"; then
4545 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4546 echo "${ECHO_T}$GMSGFMT" >&6; }
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4555 # Prepare PATH_SEPARATOR.
4556 # The user is always right.
4557 if test "${PATH_SEPARATOR+set}" != set; then
4558 echo "#! /bin/sh" >conf$$.sh
4559 echo "exit 0" >>conf$$.sh
4561 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4569 # Find out how to test for executable files. Don't use a zero-byte file,
4570 # as systems may use methods other than mode bits to determine executability.
4571 cat >conf$$.file <<_ASEOF
4575 chmod +x conf$$.file
4576 if test -x conf$$.file >/dev/null 2>&1; then
4577 ac_executable_p="test -x"
4579 ac_executable_p="test -f"
4583 # Extract the first word of "xgettext", so it can be a program name with args.
4584 set dummy xgettext; ac_word=$2
4585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4587 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4595 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4596 for ac_dir in $PATH; do
4598 test -z "$ac_dir" && ac_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4601 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4602 (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
4603 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4610 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4614 XGETTEXT="$ac_cv_path_XGETTEXT"
4615 if test "$XGETTEXT" != ":"; then
4616 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4617 echo "${ECHO_T}$XGETTEXT" >&6; }
4619 { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4626 # Prepare PATH_SEPARATOR.
4627 # The user is always right.
4628 if test "${PATH_SEPARATOR+set}" != set; then
4629 echo "#! /bin/sh" >conf$$.sh
4630 echo "exit 0" >>conf$$.sh
4632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4640 # Find out how to test for executable files. Don't use a zero-byte file,
4641 # as systems may use methods other than mode bits to determine executability.
4642 cat >conf$$.file <<_ASEOF
4646 chmod +x conf$$.file
4647 if test -x conf$$.file >/dev/null 2>&1; then
4648 ac_executable_p="test -x"
4650 ac_executable_p="test -f"
4654 # Extract the first word of "msgmerge", so it can be a program name with args.
4655 set dummy msgmerge; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4666 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4667 for ac_dir in $PATH; do
4669 test -z "$ac_dir" && ac_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4672 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4673 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4680 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4684 MSGMERGE="$ac_cv_path_MSGMERGE"
4685 if test "$MSGMERGE" != ":"; then
4686 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4687 echo "${ECHO_T}$MSGMERGE" >&6; }
4689 { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4694 if test "$GMSGFMT" != ":"; then
4695 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4696 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4699 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4700 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4701 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4706 if test "$XGETTEXT" != ":"; then
4707 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4708 (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
4711 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4712 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4718 ac_config_commands="$ac_config_commands default-1"
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_prog_RANLIB+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 if test -n "$RANLIB"; then
4730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 RANLIB=$ac_cv_prog_RANLIB
4750 if test -n "$RANLIB"; then
4751 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4752 echo "${ECHO_T}$RANLIB" >&6; }
4754 { echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6; }
4760 if test -z "$ac_cv_prog_RANLIB"; then
4761 ac_ct_RANLIB=$RANLIB
4762 # Extract the first word of "ranlib", so it can be a program name with args.
4763 set dummy ranlib; ac_word=$2
4764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4766 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$ac_ct_RANLIB"; then
4770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ac_ct_RANLIB="ranlib"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4790 if test -n "$ac_ct_RANLIB"; then
4791 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4792 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4798 if test "x$ac_ct_RANLIB" = x; then
4801 case $cross_compiling:$ac_tool_warned in
4803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4804 whose name does not start with the host triplet. If you think this
4805 configuration is useful to you, please write to autoconf@gnu.org." >&5
4806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4807 whose name does not start with the host triplet. If you think this
4808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4809 ac_tool_warned=yes ;;
4811 RANLIB=$ac_ct_RANLIB
4814 RANLIB="$ac_cv_prog_RANLIB"
4818 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4819 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4820 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 ac_check_lib_save_LIBS=$LIBS
4824 LIBS="-lcposix $LIBS"
4825 cat >conftest.$ac_ext <<_ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 /* Override any GCC internal prototype to avoid an error.
4833 Use char because int might match the return type of a GCC
4834 builtin and then its argument prototype would still apply. */
4847 rm -f conftest.$ac_objext conftest$ac_exeext
4848 if { (ac_try="$ac_link"
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_link") 2>conftest.er1
4856 grep -v '^ *+' conftest.er1 >conftest.err
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest$ac_exeext &&
4864 $as_test_x conftest$ac_exeext; then
4865 ac_cv_lib_cposix_strerror=yes
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4870 ac_cv_lib_cposix_strerror=no
4873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4874 conftest$ac_exeext conftest.$ac_ext
4875 LIBS=$ac_check_lib_save_LIBS
4877 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4878 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4879 if test $ac_cv_lib_cposix_strerror = yes; then
4880 LIBS="$LIBS -lcposix"
4885 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4886 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4887 if test "${ac_cv_c_const+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4900 /* FIXME: Include the comments suggested by Paul. */
4902 /* Ultrix mips cc rejects this. */
4903 typedef int charset[2];
4905 /* SunOS 4.1.1 cc rejects this. */
4906 char const *const *pcpcc;
4908 /* NEC SVR4.0.2 mips cc rejects this. */
4909 struct point {int x, y;};
4910 static struct point const zero = {0,0};
4911 /* AIX XL C 1.02.0.0 rejects this.
4912 It does not let you subtract one const X* pointer from another in
4913 an arm of an if-expression whose if-part is not a constant
4915 const char *g = "string";
4916 pcpcc = &g + (g ? g-g : 0);
4917 /* HPUX 7.0 cc rejects these. */
4919 ppc = (char**) pcpcc;
4920 pcpcc = (char const *const *) ppc;
4921 { /* SCO 3.2v4 cc rejects this. */
4923 char const *s = 0 ? (char *) 0 : (char const *) 0;
4928 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4930 const int *foo = &x[0];
4933 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4934 typedef const int *iptr;
4938 { /* AIX XL C 1.02.0.0 rejects this saying
4939 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4940 struct s { int j; const int *ap[3]; };
4941 struct s *b; b->j = 5;
4943 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4947 return !cs[0] && !zero.x;
4954 rm -f conftest.$ac_objext
4955 if { (ac_try="$ac_compile"
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_compile") 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.$ac_objext; then
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4982 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4983 if test $ac_cv_c_const = no; then
4985 cat >>confdefs.h <<\_ACEOF
4992 { echo "$as_me:$LINENO: checking for signed" >&5
4993 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4994 if test "${bh_cv_c_signed+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5012 rm -f conftest.$ac_objext
5013 if { (ac_try="$ac_compile"
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_compile") 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } && {
5026 test -z "$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5028 } && test -s conftest.$ac_objext; then
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5040 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5041 if test $bh_cv_c_signed = no; then
5043 cat >>confdefs.h <<\_ACEOF
5049 { echo "$as_me:$LINENO: checking for inline" >&5
5050 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5051 if test "${ac_cv_c_inline+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 for ac_kw in inline __inline__ __inline; do
5056 cat >conftest.$ac_ext <<_ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h. */
5064 static $ac_kw foo_t static_foo () {return 0; }
5065 $ac_kw foo_t foo () {return 0; }
5069 rm -f conftest.$ac_objext
5070 if { (ac_try="$ac_compile"
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
5078 grep -v '^ *+' conftest.er1 >conftest.err
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
5086 ac_cv_c_inline=$ac_kw
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 test "$ac_cv_c_inline" != no && break
5099 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5100 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5103 case $ac_cv_c_inline in
5106 case $ac_cv_c_inline in
5108 *) ac_val=$ac_cv_c_inline;;
5110 cat >>confdefs.h <<_ACEOF
5112 #define inline $ac_val
5118 { echo "$as_me:$LINENO: checking for off_t" >&5
5119 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5120 if test "${ac_cv_type_off_t+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 $ac_includes_default
5130 typedef off_t ac__type_new_;
5134 if ((ac__type_new_ *) 0)
5136 if (sizeof (ac__type_new_))
5142 rm -f conftest.$ac_objext
5143 if { (ac_try="$ac_compile"
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_compile") 2>conftest.er1
5151 grep -v '^ *+' conftest.er1 >conftest.err
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } && {
5156 test -z "$ac_c_werror_flag" ||
5157 test ! -s conftest.err
5158 } && test -s conftest.$ac_objext; then
5159 ac_cv_type_off_t=yes
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5170 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5171 if test $ac_cv_type_off_t = yes; then
5175 cat >>confdefs.h <<_ACEOF
5176 #define off_t long int
5181 { echo "$as_me:$LINENO: checking for size_t" >&5
5182 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5183 if test "${ac_cv_type_size_t+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 cat >conftest.$ac_ext <<_ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h. */
5192 $ac_includes_default
5193 typedef size_t ac__type_new_;
5197 if ((ac__type_new_ *) 0)
5199 if (sizeof (ac__type_new_))
5205 rm -f conftest.$ac_objext
5206 if { (ac_try="$ac_compile"
5208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_compile") 2>conftest.er1
5214 grep -v '^ *+' conftest.er1 >conftest.err
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } && {
5219 test -z "$ac_c_werror_flag" ||
5220 test ! -s conftest.err
5221 } && test -s conftest.$ac_objext; then
5222 ac_cv_type_size_t=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 ac_cv_type_size_t=no
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5233 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5234 if test $ac_cv_type_size_t = yes; then
5238 cat >>confdefs.h <<_ACEOF
5239 #define size_t unsigned int
5245 { echo "$as_me:$LINENO: checking for long long" >&5
5246 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5247 if test "${ac_cv_type_long_long+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 long long ll = 1LL; int i = 63;
5260 long long llmax = (long long) -1;
5261 return ll << i | ll >> i | llmax / ll | llmax % ll;
5266 rm -f conftest.$ac_objext conftest$ac_exeext
5267 if { (ac_try="$ac_link"
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_link") 2>conftest.er1
5275 grep -v '^ *+' conftest.er1 >conftest.err
5277 cat conftest.err >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && {
5280 test -z "$ac_c_werror_flag" ||
5281 test ! -s conftest.err
5282 } && test -s conftest$ac_exeext &&
5283 $as_test_x conftest$ac_exeext; then
5284 ac_cv_type_long_long=yes
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 ac_cv_type_long_long=no
5292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5293 conftest$ac_exeext conftest.$ac_ext
5295 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5296 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5297 if test $ac_cv_type_long_long = yes; then
5299 cat >>confdefs.h <<\_ACEOF
5300 #define HAVE_LONG_LONG 1
5306 { echo "$as_me:$LINENO: checking for long double" >&5
5307 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5308 if test "${gt_cv_c_long_double+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 if test "$GCC" = yes; then
5312 gt_cv_c_long_double=yes
5314 cat >conftest.$ac_ext <<_ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5321 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5322 long double foo = 0.0;
5323 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5324 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5351 gt_cv_c_long_double=yes
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 gt_cv_c_long_double=no
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5363 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5364 if test $gt_cv_c_long_double = yes; then
5366 cat >>confdefs.h <<\_ACEOF
5367 #define HAVE_LONG_DOUBLE 1
5373 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5374 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5375 if test "${gt_cv_c_wchar_t+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 wchar_t foo = (wchar_t)'\0';
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compile") 2>conftest.er1
5403 grep -v '^ *+' conftest.er1 >conftest.err
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_c_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5422 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5423 if test $gt_cv_c_wchar_t = yes; then
5425 cat >>confdefs.h <<\_ACEOF
5426 #define HAVE_WCHAR_T 1
5432 { echo "$as_me:$LINENO: checking for wint_t" >&5
5433 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5434 if test "${gt_cv_c_wint_t+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5444 wint_t foo = (wchar_t)'\0';
5453 rm -f conftest.$ac_objext
5454 if { (ac_try="$ac_compile"
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5460 (eval "$ac_compile") 2>conftest.er1
5462 grep -v '^ *+' conftest.er1 >conftest.err
5464 cat conftest.err >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } && {
5467 test -z "$ac_c_werror_flag" ||
5468 test ! -s conftest.err
5469 } && test -s conftest.$ac_objext; then
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5481 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5482 if test $gt_cv_c_wint_t = yes; then
5484 cat >>confdefs.h <<\_ACEOF
5485 #define HAVE_WINT_T 1
5491 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5492 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5493 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 #include <sys/types.h>
5503 #include <inttypes.h>
5507 uintmax_t i = (uintmax_t) -1;
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
5529 jm_ac_cv_header_inttypes_h=yes
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 jm_ac_cv_header_inttypes_h=no
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5540 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5541 if test $jm_ac_cv_header_inttypes_h = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5550 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5551 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5552 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #include <sys/types.h>
5566 uintmax_t i = (uintmax_t) -1;
5571 rm -f conftest.$ac_objext
5572 if { (ac_try="$ac_compile"
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_compile") 2>conftest.er1
5580 grep -v '^ *+' conftest.er1 >conftest.err
5582 cat conftest.err >&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } && {
5585 test -z "$ac_c_werror_flag" ||
5586 test ! -s conftest.err
5587 } && test -s conftest.$ac_objext; then
5588 jm_ac_cv_header_stdint_h=yes
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5593 jm_ac_cv_header_stdint_h=no
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5599 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5600 if test $jm_ac_cv_header_stdint_h = yes; then
5602 cat >>confdefs.h <<_ACEOF
5603 #define HAVE_STDINT_H_WITH_UINTMAX 1
5611 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5612 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5613 if test "${gt_cv_c_intmax_t+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5625 #if HAVE_STDINT_H_WITH_UINTMAX
5628 #if HAVE_INTTYPES_H_WITH_UINTMAX
5629 #include <inttypes.h>
5640 rm -f conftest.$ac_objext
5641 if { (ac_try="$ac_compile"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_compile") 2>conftest.er1
5649 grep -v '^ *+' conftest.er1 >conftest.err
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } && {
5654 test -z "$ac_c_werror_flag" ||
5655 test ! -s conftest.err
5656 } && test -s conftest.$ac_objext; then
5657 gt_cv_c_intmax_t=yes
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5668 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5669 if test $gt_cv_c_intmax_t = yes; then
5671 cat >>confdefs.h <<\_ACEOF
5672 #define HAVE_INTMAX_T 1
5679 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5680 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5681 if test "${gt_cv_func_printf_posix+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 if test "$cross_compiling" = yes; then
5687 cat >conftest.$ac_ext <<_ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5694 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5700 $EGREP "notposix" >/dev/null 2>&1; then
5701 gt_cv_func_printf_posix="guessing no"
5703 gt_cv_func_printf_posix="guessing yes"
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5718 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5719 dollar expansion (possibly an autoconf bug). */
5720 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5721 static char buf[100];
5724 sprintf (buf, format, 33, 55);
5725 return (strcmp (buf, "55 33") != 0);
5728 rm -f conftest$ac_exeext
5729 if { (ac_try="$ac_link"
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_link") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 gt_cv_func_printf_posix=yes
5750 echo "$as_me: program exited with status $ac_status" >&5
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5755 gt_cv_func_printf_posix=no
5757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5763 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5764 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5765 case $gt_cv_func_printf_posix in
5768 cat >>confdefs.h <<\_ACEOF
5769 #define HAVE_POSIX_PRINTF 1
5775 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5776 # for constant arguments. Useless!
5777 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5778 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5779 if test "${ac_cv_working_alloca_h+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5792 char *p = (char *) alloca (2 * sizeof (int));
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (ac_try="$ac_link"
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_link") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest$ac_exeext &&
5815 $as_test_x conftest$ac_exeext; then
5816 ac_cv_working_alloca_h=yes
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5821 ac_cv_working_alloca_h=no
5824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5825 conftest$ac_exeext conftest.$ac_ext
5827 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5828 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5829 if test $ac_cv_working_alloca_h = yes; then
5831 cat >>confdefs.h <<\_ACEOF
5832 #define HAVE_ALLOCA_H 1
5837 { echo "$as_me:$LINENO: checking for alloca" >&5
5838 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5839 if test "${ac_cv_func_alloca_works+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5849 # define alloca __builtin_alloca
5852 # include <malloc.h>
5853 # define alloca _alloca
5855 # ifdef HAVE_ALLOCA_H
5856 # include <alloca.h>
5861 # ifndef alloca /* predefined by HP cc +Olibcalls */
5872 char *p = (char *) alloca (1);
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (ac_try="$ac_link"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_link") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest$ac_exeext &&
5895 $as_test_x conftest$ac_exeext; then
5896 ac_cv_func_alloca_works=yes
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 ac_cv_func_alloca_works=no
5904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5905 conftest$ac_exeext conftest.$ac_ext
5907 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5908 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5910 if test $ac_cv_func_alloca_works = yes; then
5912 cat >>confdefs.h <<\_ACEOF
5913 #define HAVE_ALLOCA 1
5917 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5918 # that cause trouble. Some versions do not even contain alloca or
5919 # contain a buggy version. If you still want to use their alloca,
5920 # use ar to extract alloca.o from them instead of compiling alloca.c.
5922 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5924 cat >>confdefs.h <<\_ACEOF
5929 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5930 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5931 if test "${ac_cv_os_cray+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #if defined CRAY && ! defined CRAY2
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "webecray" >/dev/null 2>&1; then
5956 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5957 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5958 if test $ac_cv_os_cray = yes; then
5959 for ac_func in _getb67 GETB67 getb67; do
5960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5974 #define $ac_func innocuous_$ac_func
5976 /* System header to define __stub macros and hopefully few prototypes,
5977 which can conflict with char $ac_func (); below.
5978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 <limits.h> exists even on freestanding compilers. */
5982 # include <limits.h>
5984 # include <assert.h>
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5996 /* The GNU C library defines this for functions which it implements
5997 to always fail with ENOSYS. Some functions are actually named
5998 something starting with __ and the normal name is an alias. */
5999 #if defined __stub_$ac_func || defined __stub___$ac_func
6011 rm -f conftest.$ac_objext conftest$ac_exeext
6012 if { (ac_try="$ac_link"
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_link") 2>conftest.er1
6020 grep -v '^ *+' conftest.er1 >conftest.err
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest$ac_exeext &&
6028 $as_test_x conftest$ac_exeext; then
6029 eval "$as_ac_var=yes"
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 eval "$as_ac_var=no"
6037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6038 conftest$ac_exeext conftest.$ac_ext
6040 ac_res=`eval echo '${'$as_ac_var'}'`
6041 { echo "$as_me:$LINENO: result: $ac_res" >&5
6042 echo "${ECHO_T}$ac_res" >&6; }
6043 if test `eval echo '${'$as_ac_var'}'` = yes; then
6045 cat >>confdefs.h <<_ACEOF
6046 #define CRAY_STACKSEG_END $ac_func
6055 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6056 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6057 if test "${ac_cv_c_stack_direction+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 if test "$cross_compiling" = yes; then
6061 ac_cv_c_stack_direction=0
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 $ac_includes_default
6071 find_stack_direction ()
6073 static char *addr = 0;
6078 return find_stack_direction ();
6081 return (&dummy > addr) ? 1 : -1;
6087 return find_stack_direction () < 0;
6090 rm -f conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_link") 2>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_c_stack_direction=1
6112 echo "$as_me: program exited with status $ac_status" >&5
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_cv_c_stack_direction=-1
6119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6124 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6125 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6127 cat >>confdefs.h <<_ACEOF
6128 #define STACK_DIRECTION $ac_cv_c_stack_direction
6136 for ac_header in stdlib.h unistd.h
6138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6145 ac_res=`eval echo '${'$as_ac_Header'}'`
6146 { echo "$as_me:$LINENO: result: $ac_res" >&5
6147 echo "${ECHO_T}$ac_res" >&6; }
6149 # Is the header compilable?
6150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6152 cat >conftest.$ac_ext <<_ACEOF
6155 cat confdefs.h >>conftest.$ac_ext
6156 cat >>conftest.$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6158 $ac_includes_default
6159 #include <$ac_header>
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 ac_header_compiler=yes
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 ac_header_compiler=no
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6188 echo "${ECHO_T}$ac_header_compiler" >&6; }
6190 # Is the header present?
6191 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6192 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 #include <$ac_header>
6201 if { (ac_try="$ac_cpp conftest.$ac_ext"
6203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204 *) ac_try_echo=$ac_try;;
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } >/dev/null && {
6214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6217 ac_header_preproc=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 ac_header_preproc=no
6225 rm -f conftest.err conftest.$ac_ext
6226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6227 echo "${ECHO_T}$ac_header_preproc" >&6; }
6229 # So? What about this header?
6230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6236 ac_header_preproc=yes
6239 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6242 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6246 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6249 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 eval "$as_ac_Header=\$ac_header_preproc"
6261 ac_res=`eval echo '${'$as_ac_Header'}'`
6262 { echo "$as_me:$LINENO: result: $ac_res" >&5
6263 echo "${ECHO_T}$ac_res" >&6; }
6266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6276 for ac_func in getpagesize
6278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 cat >conftest.$ac_ext <<_ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6292 #define $ac_func innocuous_$ac_func
6294 /* System header to define __stub macros and hopefully few prototypes,
6295 which can conflict with char $ac_func (); below.
6296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6297 <limits.h> exists even on freestanding compilers. */
6300 # include <limits.h>
6302 # include <assert.h>
6307 /* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6314 /* The GNU C library defines this for functions which it implements
6315 to always fail with ENOSYS. Some functions are actually named
6316 something starting with __ and the normal name is an alias. */
6317 #if defined __stub_$ac_func || defined __stub___$ac_func
6329 rm -f conftest.$ac_objext conftest$ac_exeext
6330 if { (ac_try="$ac_link"
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_link") 2>conftest.er1
6338 grep -v '^ *+' conftest.er1 >conftest.err
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest$ac_exeext &&
6346 $as_test_x conftest$ac_exeext; then
6347 eval "$as_ac_var=yes"
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 eval "$as_ac_var=no"
6355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6356 conftest$ac_exeext conftest.$ac_ext
6358 ac_res=`eval echo '${'$as_ac_var'}'`
6359 { echo "$as_me:$LINENO: result: $ac_res" >&5
6360 echo "${ECHO_T}$ac_res" >&6; }
6361 if test `eval echo '${'$as_ac_var'}'` = yes; then
6362 cat >>confdefs.h <<_ACEOF
6363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6369 { echo "$as_me:$LINENO: checking for working mmap" >&5
6370 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6371 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 if test "$cross_compiling" = yes; then
6375 ac_cv_func_mmap_fixed_mapped=no
6377 cat >conftest.$ac_ext <<_ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6384 /* malloc might have been renamed as rpl_malloc. */
6387 /* Thanks to Mike Haertel and Jim Avera for this test.
6388 Here is a matrix of mmap possibilities:
6389 mmap private not fixed
6390 mmap private fixed at somewhere currently unmapped
6391 mmap private fixed at somewhere already mapped
6392 mmap shared not fixed
6393 mmap shared fixed at somewhere currently unmapped
6394 mmap shared fixed at somewhere already mapped
6395 For private mappings, we should verify that changes cannot be read()
6396 back from the file, nor mmap's back from the file at a different
6397 address. (There have been systems where private was not correctly
6398 implemented like the infamous i386 svr4.0, and systems where the
6399 VM page cache was not coherent with the file system buffer cache
6400 like early versions of FreeBSD and possibly contemporary NetBSD.)
6401 For shared mappings, we should conversely verify that changes get
6402 propagated back to all the places they're supposed to be.
6404 Grep wants private fixed already mapped.
6405 The main things grep needs to know about mmap are:
6406 * does it exist and is it safe to write into the mmap'd area
6407 * how to use it (BSD variants) */
6410 #include <sys/mman.h>
6412 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6416 /* This mess was copied from the GNU getpagesize.h. */
6417 #ifndef HAVE_GETPAGESIZE
6418 /* Assume that all systems that can run configure have sys/param.h. */
6419 # ifndef HAVE_SYS_PARAM_H
6420 # define HAVE_SYS_PARAM_H 1
6423 # ifdef _SC_PAGESIZE
6424 # define getpagesize() sysconf(_SC_PAGESIZE)
6425 # else /* no _SC_PAGESIZE */
6426 # ifdef HAVE_SYS_PARAM_H
6427 # include <sys/param.h>
6428 # ifdef EXEC_PAGESIZE
6429 # define getpagesize() EXEC_PAGESIZE
6430 # else /* no EXEC_PAGESIZE */
6432 # define getpagesize() NBPG * CLSIZE
6435 # endif /* no CLSIZE */
6436 # else /* no NBPG */
6438 # define getpagesize() NBPC
6439 # else /* no NBPC */
6441 # define getpagesize() PAGESIZE
6442 # endif /* PAGESIZE */
6443 # endif /* no NBPC */
6444 # endif /* no NBPG */
6445 # endif /* no EXEC_PAGESIZE */
6446 # else /* no HAVE_SYS_PARAM_H */
6447 # define getpagesize() 8192 /* punt totally */
6448 # endif /* no HAVE_SYS_PARAM_H */
6449 # endif /* no _SC_PAGESIZE */
6451 #endif /* no HAVE_GETPAGESIZE */
6456 char *data, *data2, *data3;
6460 pagesize = getpagesize ();
6462 /* First, make a file with some known garbage in it. */
6463 data = (char *) malloc (pagesize);
6466 for (i = 0; i < pagesize; ++i)
6467 *(data + i) = rand ();
6469 fd = creat ("conftest.mmap", 0600);
6472 if (write (fd, data, pagesize) != pagesize)
6476 /* Next, try to mmap the file at a fixed address which already has
6477 something else allocated at it. If we can, also make sure that
6478 we see the same garbage. */
6479 fd = open ("conftest.mmap", O_RDWR);
6482 data2 = (char *) malloc (2 * pagesize);
6485 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6486 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6487 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6489 for (i = 0; i < pagesize; ++i)
6490 if (*(data + i) != *(data2 + i))
6493 /* Finally, make sure that changes to the mapped area do not
6494 percolate back to the file as seen by read(). (This is a bug on
6495 some variants of i386 svr4.0.) */
6496 for (i = 0; i < pagesize; ++i)
6497 *(data2 + i) = *(data2 + i) + 1;
6498 data3 = (char *) malloc (pagesize);
6501 if (read (fd, data3, pagesize) != pagesize)
6503 for (i = 0; i < pagesize; ++i)
6504 if (*(data + i) != *(data3 + i))
6510 rm -f conftest$ac_exeext
6511 if { (ac_try="$ac_link"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_link") 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6530 ac_cv_func_mmap_fixed_mapped=yes
6532 echo "$as_me: program exited with status $ac_status" >&5
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_cv_func_mmap_fixed_mapped=no
6539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6544 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6545 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6546 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6548 cat >>confdefs.h <<\_ACEOF
6556 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6557 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6558 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6568 #include <features.h>
6569 #ifdef __GNU_LIBRARY__
6570 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6578 ac_cv_gnu_library_2_1=yes
6580 ac_cv_gnu_library_2_1=no
6587 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6588 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6590 GLIBC21="$ac_cv_gnu_library_2_1"
6595 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6596 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6597 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 if test "$cross_compiling" = yes; then
6603 # Guess based on the CPU.
6605 alpha* | i3456786 | m68k | s390*)
6606 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6608 gt_cv_int_divbyzero_sigfpe="guessing no";;
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6624 sigfpe_handler (int sig)
6626 sigfpe_handler (sig) int sig;
6629 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6630 exit (sig != SIGFPE);
6640 signal (SIGFPE, sigfpe_handler);
6641 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6642 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6643 signal (SIGTRAP, sigfpe_handler);
6645 /* Linux/SPARC yields signal SIGILL. */
6646 #if defined (__sparc__) && defined (__linux__)
6647 signal (SIGILL, sigfpe_handler);
6656 rm -f conftest$ac_exeext
6657 if { (ac_try="$ac_link"
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6667 { (case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_try") 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 gt_cv_int_divbyzero_sigfpe=yes
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6683 gt_cv_int_divbyzero_sigfpe=no
6685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6692 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6693 case "$gt_cv_int_divbyzero_sigfpe" in
6698 cat >>confdefs.h <<_ACEOF
6699 #define INTDIV0_RAISES_SIGFPE $value
6704 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6705 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6706 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 cat >conftest.$ac_ext <<_ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 unsigned long long ull = 1ULL; int i = 63;
6719 unsigned long long ullmax = (unsigned long long) -1;
6720 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (ac_try="$ac_link"
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_link") 2>conftest.er1
6734 grep -v '^ *+' conftest.er1 >conftest.err
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest$ac_exeext &&
6742 $as_test_x conftest$ac_exeext; then
6743 ac_cv_type_unsigned_long_long=yes
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_cv_type_unsigned_long_long=no
6751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6752 conftest$ac_exeext conftest.$ac_ext
6754 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6755 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6756 if test $ac_cv_type_unsigned_long_long = yes; then
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_UNSIGNED_LONG_LONG 1
6767 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6769 test $ac_cv_type_unsigned_long_long = yes \
6770 && ac_type='unsigned long long' \
6771 || ac_type='unsigned long'
6773 cat >>confdefs.h <<_ACEOF
6774 #define uintmax_t $ac_type
6779 cat >>confdefs.h <<\_ACEOF
6780 #define HAVE_UINTMAX_T 1
6786 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6787 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6788 if test "${gt_cv_header_inttypes_h+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <sys/types.h>
6799 #include <inttypes.h>
6808 rm -f conftest.$ac_objext
6809 if { (ac_try="$ac_compile"
6811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815 (eval "$ac_compile") 2>conftest.er1
6817 grep -v '^ *+' conftest.er1 >conftest.err
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest.$ac_objext; then
6825 gt_cv_header_inttypes_h=yes
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 gt_cv_header_inttypes_h=no
6833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6837 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6838 if test $gt_cv_header_inttypes_h = yes; then
6840 cat >>confdefs.h <<_ACEOF
6841 #define HAVE_INTTYPES_H 1
6848 if test $gt_cv_header_inttypes_h = yes; then
6849 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6850 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6851 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 cat >conftest.$ac_ext <<_ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h. */
6861 #include <inttypes.h>
6874 rm -f conftest.$ac_objext
6875 if { (ac_try="$ac_compile"
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_compile") 2>conftest.er1
6883 grep -v '^ *+' conftest.er1 >conftest.err
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && {
6888 test -z "$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 } && test -s conftest.$ac_objext; then
6891 gt_cv_inttypes_pri_broken=no
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 gt_cv_inttypes_pri_broken=yes
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6903 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6905 if test "$gt_cv_inttypes_pri_broken" = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define PRI_MACROS_BROKEN 1
6915 for ac_header in stdint.h
6917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 ac_res=`eval echo '${'$as_ac_Header'}'`
6925 { echo "$as_me:$LINENO: result: $ac_res" >&5
6926 echo "${ECHO_T}$ac_res" >&6; }
6928 # Is the header compilable?
6929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6931 cat >conftest.$ac_ext <<_ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 $ac_includes_default
6938 #include <$ac_header>
6940 rm -f conftest.$ac_objext
6941 if { (ac_try="$ac_compile"
6943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944 *) ac_try_echo=$ac_try;;
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6949 grep -v '^ *+' conftest.er1 >conftest.err
6951 cat conftest.err >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.$ac_objext; then
6957 ac_header_compiler=yes
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_header_compiler=no
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 echo "${ECHO_T}$ac_header_compiler" >&6; }
6969 # Is the header present?
6970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6972 cat >conftest.$ac_ext <<_ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 #include <$ac_header>
6980 if { (ac_try="$ac_cpp conftest.$ac_ext"
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } >/dev/null && {
6993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6996 ac_header_preproc=yes
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_header_preproc=no
7004 rm -f conftest.err conftest.$ac_ext
7005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7006 echo "${ECHO_T}$ac_header_preproc" >&6; }
7008 # So? What about this header?
7009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7015 ac_header_preproc=yes
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 eval "$as_ac_Header=\$ac_header_preproc"
7040 ac_res=`eval echo '${'$as_ac_Header'}'`
7041 { echo "$as_me:$LINENO: result: $ac_res" >&5
7042 echo "${ECHO_T}$ac_res" >&6; }
7045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7046 cat >>confdefs.h <<_ACEOF
7047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7054 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7055 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7057 cat >conftest.$ac_ext <<_ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074 $EGREP "Found it" >/dev/null 2>&1; then
7079 if test -z "$result"; then
7080 if test "$cross_compiling" = yes; then
7081 # Depending upon the size, compute the lo and hi bounds.
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7092 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7099 rm -f conftest.$ac_objext
7100 if { (ac_try="$ac_compile"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_compile") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } && {
7113 test -z "$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7115 } && test -s conftest.$ac_objext; then
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7128 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7144 grep -v '^ *+' conftest.er1 >conftest.err
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7152 ac_hi=$ac_mid; break
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 ac_lo=`expr $ac_mid + 1`
7158 if test $ac_lo -le $ac_mid; then
7162 ac_mid=`expr 2 '*' $ac_mid + 1`
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7181 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7188 rm -f conftest.$ac_objext
7189 if { (ac_try="$ac_compile"
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
7207 cat >conftest.$ac_ext <<_ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7217 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7241 ac_lo=$ac_mid; break
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_hi=`expr '(' $ac_mid ')' - 1`
7247 if test $ac_mid -le $ac_hi; then
7251 ac_mid=`expr 2 '*' $ac_mid`
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 # Binary search between lo and hi bounds.
7268 while test "x$ac_lo" != "x$ac_hi"; do
7269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7280 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 ac_lo=`expr '(' $ac_mid ')' + 1`
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 static long int longval () { return ~(size_t)0 / 10; }
7327 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7334 FILE *f = fopen ("conftest.val", "w");
7337 if ((~(size_t)0 / 10) < 0)
7339 long int i = longval ();
7340 if (i != (~(size_t)0 / 10))
7342 fprintf (f, "%ld\n", i);
7346 unsigned long int i = ulongval ();
7347 if (i != (~(size_t)0 / 10))
7349 fprintf (f, "%lu\n", i);
7351 return ferror (f) || fclose (f) != 0;
7357 rm -f conftest$ac_exeext
7358 if { (ac_try="$ac_link"
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_link") 2>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7368 { (case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_try") 2>&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 res_hi=`cat conftest.val`
7379 echo "$as_me: program exited with status $ac_status" >&5
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7390 if test "$cross_compiling" = yes; then
7391 # Depending upon the size, compute the lo and hi bounds.
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7402 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7438 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7445 rm -f conftest.$ac_objext
7446 if { (ac_try="$ac_compile"
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_compile") 2>conftest.er1
7454 grep -v '^ *+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
7462 ac_hi=$ac_mid; break
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 ac_lo=`expr $ac_mid + 1`
7468 if test $ac_lo -le $ac_mid; then
7472 ac_mid=`expr 2 '*' $ac_mid + 1`
7475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 cat >conftest.$ac_ext <<_ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7491 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7517 cat >conftest.$ac_ext <<_ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7527 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 ac_lo=$ac_mid; break
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 ac_hi=`expr '(' $ac_mid ')' - 1`
7557 if test $ac_mid -le $ac_hi; then
7561 ac_mid=`expr 2 '*' $ac_mid`
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 # Binary search between lo and hi bounds.
7578 while test "x$ac_lo" != "x$ac_hi"; do
7579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7580 cat >conftest.$ac_ext <<_ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7590 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7597 rm -f conftest.$ac_objext
7598 if { (ac_try="$ac_compile"
7600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7601 *) ac_try_echo=$ac_try;;
7603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7604 (eval "$ac_compile") 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } && {
7611 test -z "$ac_c_werror_flag" ||
7612 test ! -s conftest.err
7613 } && test -s conftest.$ac_objext; then
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_lo=`expr '(' $ac_mid ')' + 1`
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7636 static long int longval () { return ~(size_t)0 % 10; }
7637 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7644 FILE *f = fopen ("conftest.val", "w");
7647 if ((~(size_t)0 % 10) < 0)
7649 long int i = longval ();
7650 if (i != (~(size_t)0 % 10))
7652 fprintf (f, "%ld\n", i);
7656 unsigned long int i = ulongval ();
7657 if (i != (~(size_t)0 % 10))
7659 fprintf (f, "%lu\n", i);
7661 return ferror (f) || fclose (f) != 0;
7667 rm -f conftest$ac_exeext
7668 if { (ac_try="$ac_link"
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_link") 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7678 { (case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_try") 2>&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 res_lo=`cat conftest.val`
7689 echo "$as_me: program exited with status $ac_status" >&5
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7700 if test "$cross_compiling" = yes; then
7701 # Depending upon the size, compute the lo and hi bounds.
7702 cat >conftest.$ac_ext <<_ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7712 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7728 grep -v '^ *+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7748 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
7772 ac_hi=$ac_mid; break
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 ac_lo=`expr $ac_mid + 1`
7778 if test $ac_lo -le $ac_mid; then
7782 ac_mid=`expr 2 '*' $ac_mid + 1`
7785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7791 cat >conftest.$ac_ext <<_ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7801 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7808 rm -f conftest.$ac_objext
7809 if { (ac_try="$ac_compile"
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7815 (eval "$ac_compile") 2>conftest.er1
7817 grep -v '^ *+' conftest.er1 >conftest.err
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } && {
7822 test -z "$ac_c_werror_flag" ||
7823 test ! -s conftest.err
7824 } && test -s conftest.$ac_objext; then
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7837 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_compile") 2>conftest.er1
7853 grep -v '^ *+' conftest.er1 >conftest.err
7855 cat conftest.err >&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } && {
7858 test -z "$ac_c_werror_flag" ||
7859 test ! -s conftest.err
7860 } && test -s conftest.$ac_objext; then
7861 ac_lo=$ac_mid; break
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 ac_hi=`expr '(' $ac_mid ')' - 1`
7867 if test $ac_mid -le $ac_hi; then
7871 ac_mid=`expr 2 '*' $ac_mid`
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 # Binary search between lo and hi bounds.
7888 while test "x$ac_lo" != "x$ac_hi"; do
7889 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7900 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_lo=`expr '(' $ac_mid ')' + 1`
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 ?*) fits_in_uint=$ac_lo;;
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7946 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7947 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7954 FILE *f = fopen ("conftest.val", "w");
7957 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7959 long int i = longval ();
7960 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7962 fprintf (f, "%ld\n", i);
7966 unsigned long int i = ulongval ();
7967 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7969 fprintf (f, "%lu\n", i);
7971 return ferror (f) || fclose (f) != 0;
7977 rm -f conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_link") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7988 { (case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_try") 2>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 fits_in_uint=`cat conftest.val`
7999 echo "$as_me: program exited with status $ac_status" >&5
8000 echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8010 if test "$fits_in_uint" = 1; then
8011 cat >conftest.$ac_ext <<_ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8019 extern unsigned long foo;
8029 rm -f conftest.$ac_objext
8030 if { (ac_try="$ac_compile"
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1 >conftest.err
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest.$ac_objext; then
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 if test -z "$result"; then
8057 if test "$fits_in_uint" = 1; then
8058 result="$res_hi$res_lo"U
8060 result="$res_hi$res_lo"UL
8066 { echo "$as_me:$LINENO: result: $result" >&5
8067 echo "${ECHO_T}$result" >&6; }
8068 if test "$result" != yes; then
8070 cat >>confdefs.h <<_ACEOF
8071 #define SIZE_MAX $result
8079 for ac_header in stdint.h
8081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 ac_res=`eval echo '${'$as_ac_Header'}'`
8089 { echo "$as_me:$LINENO: result: $ac_res" >&5
8090 echo "${ECHO_T}$ac_res" >&6; }
8092 # Is the header compilable?
8093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8095 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #include <$ac_header>
8104 rm -f conftest.$ac_objext
8105 if { (ac_try="$ac_compile"
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_compile") 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } && {
8118 test -z "$ac_c_werror_flag" ||
8119 test ! -s conftest.err
8120 } && test -s conftest.$ac_objext; then
8121 ac_header_compiler=yes
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 ac_header_compiler=no
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8131 echo "${ECHO_T}$ac_header_compiler" >&6; }
8133 # Is the header present?
8134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 #include <$ac_header>
8144 if { (ac_try="$ac_cpp conftest.$ac_ext"
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } >/dev/null && {
8157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8160 ac_header_preproc=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 ac_header_preproc=no
8168 rm -f conftest.err conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170 echo "${ECHO_T}$ac_header_preproc" >&6; }
8172 # So? What about this header?
8173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179 ac_header_preproc=yes
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 eval "$as_ac_Header=\$ac_header_preproc"
8204 ac_res=`eval echo '${'$as_ac_Header'}'`
8205 { echo "$as_me:$LINENO: result: $ac_res" >&5
8206 echo "${ECHO_T}$ac_res" >&6; }
8209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8220 if test "X$prefix" = "XNONE"; then
8221 acl_final_prefix="$ac_default_prefix"
8223 acl_final_prefix="$prefix"
8225 if test "X$exec_prefix" = "XNONE"; then
8226 acl_final_exec_prefix='${prefix}'
8228 acl_final_exec_prefix="$exec_prefix"
8230 acl_save_prefix="$prefix"
8231 prefix="$acl_final_prefix"
8232 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8233 prefix="$acl_save_prefix"
8236 # Check whether --with-gnu-ld was given.
8237 if test "${with_gnu_ld+set}" = set; then
8238 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8243 # Prepare PATH_SEPARATOR.
8244 # The user is always right.
8245 if test "${PATH_SEPARATOR+set}" != set; then
8246 echo "#! /bin/sh" >conf$$.sh
8247 echo "exit 0" >>conf$$.sh
8249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8257 if test "$GCC" = yes; then
8258 # Check if gcc -print-prog-name=ld gives a path.
8259 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8260 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8263 # gcc leaves a trailing carriage return which upsets mingw
8264 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8266 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8269 # Accept absolute paths.
8270 [\\/]* | [A-Za-z]:[\\/]*)
8271 re_direlt='/[^/][^/]*/\.\./'
8272 # Canonicalize the path of ld
8273 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8274 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8275 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8277 test -z "$LD" && LD="$ac_prog"
8280 # If it fails, then pretend we aren't using GCC.
8284 # If it is relative, then search for the first ld in PATH.
8288 elif test "$with_gnu_ld" = yes; then
8289 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8290 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8292 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8293 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8295 if test "${acl_cv_path_LD+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 if test -z "$LD"; then
8299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8300 for ac_dir in $PATH; do
8301 test -z "$ac_dir" && ac_dir=.
8302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8303 acl_cv_path_LD="$ac_dir/$ac_prog"
8304 # Check to see if the program is GNU ld. I'd rather use --version,
8305 # but apparently some GNU ld's only accept -v.
8306 # Break only if it was the GNU/non-GNU ld that we prefer.
8307 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8308 *GNU* | *'with BFD'*)
8309 test "$with_gnu_ld" != no && break ;;
8311 test "$with_gnu_ld" != yes && break ;;
8317 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8321 LD="$acl_cv_path_LD"
8322 if test -n "$LD"; then
8323 { echo "$as_me:$LINENO: result: $LD" >&5
8324 echo "${ECHO_T}$LD" >&6; }
8326 { echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; }
8329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8331 { (exit 1); exit 1; }; }
8332 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8334 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8338 case `$LD -v 2>&1 </dev/null` in
8339 *GNU* | *'with BFD'*)
8340 acl_cv_prog_gnu_ld=yes ;;
8342 acl_cv_prog_gnu_ld=no ;;
8345 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8346 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8347 with_gnu_ld=$acl_cv_prog_gnu_ld
8351 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8352 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8353 if test "${acl_cv_rpath+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8358 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8364 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8365 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8367 libext="$acl_cv_libext"
8368 shlibext="$acl_cv_shlibext"
8369 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8370 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8371 hardcode_direct="$acl_cv_hardcode_direct"
8372 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8373 # Check whether --enable-rpath was given.
8374 if test "${enable_rpath+set}" = set; then
8375 enableval=$enable_rpath; :
8389 acl_save_prefix="$prefix"
8390 prefix="$acl_final_prefix"
8391 acl_save_exec_prefix="$exec_prefix"
8392 exec_prefix="$acl_final_exec_prefix"
8394 eval additional_includedir=\"$includedir\"
8395 eval additional_libdir=\"$libdir\"
8397 exec_prefix="$acl_save_exec_prefix"
8398 prefix="$acl_save_prefix"
8401 # Check whether --with-libiconv-prefix was given.
8402 if test "${with_libiconv_prefix+set}" = set; then
8403 withval=$with_libiconv_prefix;
8404 if test "X$withval" = "Xno"; then
8407 if test "X$withval" = "X"; then
8409 acl_save_prefix="$prefix"
8410 prefix="$acl_final_prefix"
8411 acl_save_exec_prefix="$exec_prefix"
8412 exec_prefix="$acl_final_exec_prefix"
8414 eval additional_includedir=\"$includedir\"
8415 eval additional_libdir=\"$libdir\"
8417 exec_prefix="$acl_save_exec_prefix"
8418 prefix="$acl_save_prefix"
8421 additional_includedir="$withval/include"
8422 additional_libdir="$withval/lib"
8433 names_already_handled=
8434 names_next_round='iconv '
8435 while test -n "$names_next_round"; do
8436 names_this_round="$names_next_round"
8438 for name in $names_this_round; do
8440 for n in $names_already_handled; do
8441 if test "$n" = "$name"; then
8446 if test -z "$already_handled"; then
8447 names_already_handled="$names_already_handled $name"
8448 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8449 eval value=\"\$HAVE_LIB$uppername\"
8450 if test -n "$value"; then
8451 if test "$value" = yes; then
8452 eval value=\"\$LIB$uppername\"
8453 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8454 eval value=\"\$LTLIB$uppername\"
8455 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8464 if test $use_additional = yes; then
8465 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8466 found_dir="$additional_libdir"
8467 found_so="$additional_libdir/lib$name.$shlibext"
8468 if test -f "$additional_libdir/lib$name.la"; then
8469 found_la="$additional_libdir/lib$name.la"
8472 if test -f "$additional_libdir/lib$name.$libext"; then
8473 found_dir="$additional_libdir"
8474 found_a="$additional_libdir/lib$name.$libext"
8475 if test -f "$additional_libdir/lib$name.la"; then
8476 found_la="$additional_libdir/lib$name.la"
8481 if test "X$found_dir" = "X"; then
8482 for x in $LDFLAGS $LTLIBICONV; do
8484 acl_save_prefix="$prefix"
8485 prefix="$acl_final_prefix"
8486 acl_save_exec_prefix="$exec_prefix"
8487 exec_prefix="$acl_final_exec_prefix"
8489 exec_prefix="$acl_save_exec_prefix"
8490 prefix="$acl_save_prefix"
8494 dir=`echo "X$x" | sed -e 's/^X-L//'`
8495 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8497 found_so="$dir/lib$name.$shlibext"
8498 if test -f "$dir/lib$name.la"; then
8499 found_la="$dir/lib$name.la"
8502 if test -f "$dir/lib$name.$libext"; then
8504 found_a="$dir/lib$name.$libext"
8505 if test -f "$dir/lib$name.la"; then
8506 found_la="$dir/lib$name.la"
8512 if test "X$found_dir" != "X"; then
8517 if test "X$found_dir" != "X"; then
8518 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8519 if test "X$found_so" != "X"; then
8520 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8521 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8524 for x in $ltrpathdirs; do
8525 if test "X$x" = "X$found_dir"; then
8530 if test -z "$haveit"; then
8531 ltrpathdirs="$ltrpathdirs $found_dir"
8533 if test "$hardcode_direct" = yes; then
8534 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8536 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8539 for x in $rpathdirs; do
8540 if test "X$x" = "X$found_dir"; then
8545 if test -z "$haveit"; then
8546 rpathdirs="$rpathdirs $found_dir"
8550 for x in $LDFLAGS $LIBICONV; do
8552 acl_save_prefix="$prefix"
8553 prefix="$acl_final_prefix"
8554 acl_save_exec_prefix="$exec_prefix"
8555 exec_prefix="$acl_final_exec_prefix"
8557 exec_prefix="$acl_save_exec_prefix"
8558 prefix="$acl_save_prefix"
8560 if test "X$x" = "X-L$found_dir"; then
8565 if test -z "$haveit"; then
8566 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8568 if test "$hardcode_minus_L" != no; then
8569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8571 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8577 if test "X$found_a" != "X"; then
8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8580 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8583 additional_includedir=
8584 case "$found_dir" in
8586 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8587 additional_includedir="$basedir/include"
8590 if test "X$additional_includedir" != "X"; then
8591 if test "X$additional_includedir" != "X/usr/include"; then
8593 if test "X$additional_includedir" = "X/usr/local/include"; then
8594 if test -n "$GCC"; then
8596 linux*) haveit=yes;;
8600 if test -z "$haveit"; then
8601 for x in $CPPFLAGS $INCICONV; do
8603 acl_save_prefix="$prefix"
8604 prefix="$acl_final_prefix"
8605 acl_save_exec_prefix="$exec_prefix"
8606 exec_prefix="$acl_final_exec_prefix"
8608 exec_prefix="$acl_save_exec_prefix"
8609 prefix="$acl_save_prefix"
8611 if test "X$x" = "X-I$additional_includedir"; then
8616 if test -z "$haveit"; then
8617 if test -d "$additional_includedir"; then
8618 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8624 if test -n "$found_la"; then
8625 save_libdir="$libdir"
8627 */* | *\\*) . "$found_la" ;;
8628 *) . "./$found_la" ;;
8630 libdir="$save_libdir"
8631 for dep in $dependency_libs; do
8634 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8635 if test "X$additional_libdir" != "X/usr/lib"; then
8637 if test "X$additional_libdir" = "X/usr/local/lib"; then
8638 if test -n "$GCC"; then
8640 linux*) haveit=yes;;
8644 if test -z "$haveit"; then
8646 for x in $LDFLAGS $LIBICONV; do
8648 acl_save_prefix="$prefix"
8649 prefix="$acl_final_prefix"
8650 acl_save_exec_prefix="$exec_prefix"
8651 exec_prefix="$acl_final_exec_prefix"
8653 exec_prefix="$acl_save_exec_prefix"
8654 prefix="$acl_save_prefix"
8656 if test "X$x" = "X-L$additional_libdir"; then
8661 if test -z "$haveit"; then
8662 if test -d "$additional_libdir"; then
8663 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8667 for x in $LDFLAGS $LTLIBICONV; do
8669 acl_save_prefix="$prefix"
8670 prefix="$acl_final_prefix"
8671 acl_save_exec_prefix="$exec_prefix"
8672 exec_prefix="$acl_final_exec_prefix"
8674 exec_prefix="$acl_save_exec_prefix"
8675 prefix="$acl_save_prefix"
8677 if test "X$x" = "X-L$additional_libdir"; then
8682 if test -z "$haveit"; then
8683 if test -d "$additional_libdir"; then
8684 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8691 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8692 if test "$enable_rpath" != no; then
8694 for x in $rpathdirs; do
8695 if test "X$x" = "X$dir"; then
8700 if test -z "$haveit"; then
8701 rpathdirs="$rpathdirs $dir"
8704 for x in $ltrpathdirs; do
8705 if test "X$x" = "X$dir"; then
8710 if test -z "$haveit"; then
8711 ltrpathdirs="$ltrpathdirs $dir"
8716 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8719 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8722 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8723 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8729 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8730 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8736 if test "X$rpathdirs" != "X"; then
8737 if test -n "$hardcode_libdir_separator"; then
8739 for found_dir in $rpathdirs; do
8740 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8742 acl_save_libdir="$libdir"
8744 eval flag=\"$hardcode_libdir_flag_spec\"
8745 libdir="$acl_save_libdir"
8746 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8748 for found_dir in $rpathdirs; do
8749 acl_save_libdir="$libdir"
8751 eval flag=\"$hardcode_libdir_flag_spec\"
8752 libdir="$acl_save_libdir"
8753 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8757 if test "X$ltrpathdirs" != "X"; then
8758 for found_dir in $ltrpathdirs; do
8759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8770 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8771 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8772 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 $ac_includes_default
8782 typedef ptrdiff_t ac__type_new_;
8786 if ((ac__type_new_ *) 0)
8788 if (sizeof (ac__type_new_))
8794 rm -f conftest.$ac_objext
8795 if { (ac_try="$ac_compile"
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_compile") 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
8811 ac_cv_type_ptrdiff_t=yes
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_cv_type_ptrdiff_t=no
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8822 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8823 if test $ac_cv_type_ptrdiff_t = yes; then
8827 cat >>confdefs.h <<\_ACEOF
8828 #define ptrdiff_t long
8844 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8845 stdlib.h string.h unistd.h sys/param.h
8847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 ac_res=`eval echo '${'$as_ac_Header'}'`
8855 { echo "$as_me:$LINENO: result: $ac_res" >&5
8856 echo "${ECHO_T}$ac_res" >&6; }
8858 # Is the header compilable?
8859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8861 cat >conftest.$ac_ext <<_ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8867 $ac_includes_default
8868 #include <$ac_header>
8870 rm -f conftest.$ac_objext
8871 if { (ac_try="$ac_compile"
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_compile") 2>conftest.er1
8879 grep -v '^ *+' conftest.er1 >conftest.err
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest.$ac_objext; then
8887 ac_header_compiler=yes
8889 echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8892 ac_header_compiler=no
8895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8897 echo "${ECHO_T}$ac_header_compiler" >&6; }
8899 # Is the header present?
8900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8908 #include <$ac_header>
8910 if { (ac_try="$ac_cpp conftest.$ac_ext"
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } >/dev/null && {
8923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8926 ac_header_preproc=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_header_preproc=no
8934 rm -f conftest.err conftest.$ac_ext
8935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8936 echo "${ECHO_T}$ac_header_preproc" >&6; }
8938 # So? What about this header?
8939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8945 ac_header_preproc=yes
8948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 eval "$as_ac_Header=\$ac_header_preproc"
8970 ac_res=`eval echo '${'$as_ac_Header'}'`
8971 { echo "$as_me:$LINENO: result: $ac_res" >&5
8972 echo "${ECHO_T}$ac_res" >&6; }
8975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8976 cat >>confdefs.h <<_ACEOF
8977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9007 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9008 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9009 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 cat >conftest.$ac_ext <<_ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9026 #define $ac_func innocuous_$ac_func
9028 /* System header to define __stub macros and hopefully few prototypes,
9029 which can conflict with char $ac_func (); below.
9030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9031 <limits.h> exists even on freestanding compilers. */
9034 # include <limits.h>
9036 # include <assert.h>
9041 /* Override any GCC internal prototype to avoid an error.
9042 Use char because int might match the return type of a GCC
9043 builtin and then its argument prototype would still apply. */
9048 /* The GNU C library defines this for functions which it implements
9049 to always fail with ENOSYS. Some functions are actually named
9050 something starting with __ and the normal name is an alias. */
9051 #if defined __stub_$ac_func || defined __stub___$ac_func
9063 rm -f conftest.$ac_objext conftest$ac_exeext
9064 if { (ac_try="$ac_link"
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_link") 2>conftest.er1
9072 grep -v '^ *+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } && {
9077 test -z "$ac_c_werror_flag" ||
9078 test ! -s conftest.err
9079 } && test -s conftest$ac_exeext &&
9080 $as_test_x conftest$ac_exeext; then
9081 eval "$as_ac_var=yes"
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9086 eval "$as_ac_var=no"
9089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090 conftest$ac_exeext conftest.$ac_ext
9092 ac_res=`eval echo '${'$as_ac_var'}'`
9093 { echo "$as_me:$LINENO: result: $ac_res" >&5
9094 echo "${ECHO_T}$ac_res" >&6; }
9095 if test `eval echo '${'$as_ac_var'}'` = yes; then
9096 cat >>confdefs.h <<_ACEOF
9097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9105 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9106 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9107 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9122 char *p = (char *) _snprintf;
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_compile") 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && {
9143 test -z "$ac_c_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest.$ac_objext; then
9146 ac_cv_have_decl__snprintf=yes
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_cv_have_decl__snprintf=no
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9157 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9158 if test $ac_cv_have_decl__snprintf = yes; then
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_DECL__SNPRINTF $gt_value
9170 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9171 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9172 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 cat >conftest.$ac_ext <<_ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9187 char *p = (char *) _snwprintf;
9194 rm -f conftest.$ac_objext
9195 if { (ac_try="$ac_compile"
9197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198 *) ac_try_echo=$ac_try;;
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_compile") 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest.$ac_objext; then
9211 ac_cv_have_decl__snwprintf=yes
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 ac_cv_have_decl__snwprintf=no
9219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9222 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9223 if test $ac_cv_have_decl__snwprintf = yes; then
9229 cat >>confdefs.h <<_ACEOF
9230 #define HAVE_DECL__SNWPRINTF $gt_value
9236 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9237 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9238 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9252 #ifndef feof_unlocked
9253 char *p = (char *) feof_unlocked;
9260 rm -f conftest.$ac_objext
9261 if { (ac_try="$ac_compile"
9263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264 *) ac_try_echo=$ac_try;;
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267 (eval "$ac_compile") 2>conftest.er1
9269 grep -v '^ *+' conftest.er1 >conftest.err
9271 cat conftest.err >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && {
9274 test -z "$ac_c_werror_flag" ||
9275 test ! -s conftest.err
9276 } && test -s conftest.$ac_objext; then
9277 ac_cv_have_decl_feof_unlocked=yes
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 ac_cv_have_decl_feof_unlocked=no
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9287 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9288 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9289 if test $ac_cv_have_decl_feof_unlocked = yes; then
9295 cat >>confdefs.h <<_ACEOF
9296 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9301 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9302 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9303 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9317 #ifndef fgets_unlocked
9318 char *p = (char *) fgets_unlocked;
9325 rm -f conftest.$ac_objext
9326 if { (ac_try="$ac_compile"
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_compile") 2>conftest.er1
9334 grep -v '^ *+' conftest.er1 >conftest.err
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && {
9339 test -z "$ac_c_werror_flag" ||
9340 test ! -s conftest.err
9341 } && test -s conftest.$ac_objext; then
9342 ac_cv_have_decl_fgets_unlocked=yes
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 ac_cv_have_decl_fgets_unlocked=no
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9353 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9354 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9366 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9367 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9368 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 cat >conftest.$ac_ext <<_ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9382 #ifndef getc_unlocked
9383 char *p = (char *) getc_unlocked;
9390 rm -f conftest.$ac_objext
9391 if { (ac_try="$ac_compile"
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_compile") 2>conftest.er1
9399 grep -v '^ *+' conftest.er1 >conftest.err
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } && {
9404 test -z "$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 } && test -s conftest.$ac_objext; then
9407 ac_cv_have_decl_getc_unlocked=yes
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ac_cv_have_decl_getc_unlocked=no
9415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9418 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9419 if test $ac_cv_have_decl_getc_unlocked = yes; then
9425 cat >>confdefs.h <<_ACEOF
9426 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9431 case $gt_cv_func_printf_posix in
9432 *yes) HAVE_POSIX_PRINTF=1 ;;
9433 *) HAVE_POSIX_PRINTF=0 ;;
9436 if test "$ac_cv_func_asprintf" = yes; then
9442 if test "$ac_cv_func_snprintf" = yes; then
9448 if test "$ac_cv_func_wprintf" = yes; then
9460 am_save_CPPFLAGS="$CPPFLAGS"
9462 for element in $INCICONV; do
9464 for x in $CPPFLAGS; do
9466 acl_save_prefix="$prefix"
9467 prefix="$acl_final_prefix"
9468 acl_save_exec_prefix="$exec_prefix"
9469 exec_prefix="$acl_final_exec_prefix"
9471 exec_prefix="$acl_save_exec_prefix"
9472 prefix="$acl_save_prefix"
9474 if test "X$x" = "X$element"; then
9479 if test -z "$haveit"; then
9480 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9485 { echo "$as_me:$LINENO: checking for iconv" >&5
9486 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9487 if test "${am_cv_func_iconv+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 am_cv_func_iconv="no, consider installing GNU libiconv"
9493 cat >conftest.$ac_ext <<_ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9504 iconv_t cd = iconv_open("","");
9505 iconv(cd,NULL,NULL,NULL,NULL);
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (ac_try="$ac_link"
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_link") 2>conftest.er1
9520 grep -v '^ *+' conftest.er1 >conftest.err
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest$ac_exeext &&
9528 $as_test_x conftest$ac_exeext; then
9529 am_cv_func_iconv=yes
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9538 conftest$ac_exeext conftest.$ac_ext
9539 if test "$am_cv_func_iconv" != yes; then
9540 am_save_LIBS="$LIBS"
9541 LIBS="$LIBS $LIBICONV"
9542 cat >conftest.$ac_ext <<_ACEOF
9545 cat confdefs.h >>conftest.$ac_ext
9546 cat >>conftest.$ac_ext <<_ACEOF
9547 /* end confdefs.h. */
9553 iconv_t cd = iconv_open("","");
9554 iconv(cd,NULL,NULL,NULL,NULL);
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564 *) ac_try_echo=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
9569 grep -v '^ *+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext &&
9577 $as_test_x conftest$ac_exeext; then
9579 am_cv_func_iconv=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LIBS="$am_save_LIBS"
9593 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9594 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9595 if test "$am_cv_func_iconv" = yes; then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_ICONV 1
9602 if test "$am_cv_lib_iconv" = yes; then
9603 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9604 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9605 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9606 echo "${ECHO_T}$LIBICONV" >&6; }
9608 CPPFLAGS="$am_save_CPPFLAGS"
9615 if test "$am_cv_func_iconv" = yes; then
9616 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9617 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9618 if test "${am_cv_proto_iconv+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9635 #if defined(__STDC__) || defined(__cplusplus)
9636 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9649 rm -f conftest.$ac_objext
9650 if { (ac_try="$ac_compile"
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_compile") 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest.$ac_objext; then
9666 am_cv_proto_iconv_arg1=""
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 am_cv_proto_iconv_arg1="const"
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 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);"
9678 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9679 { echo "$as_me:$LINENO: result: ${ac_t:-
9680 }$am_cv_proto_iconv" >&5
9681 echo "${ECHO_T}${ac_t:-
9682 }$am_cv_proto_iconv" >&6; }
9684 cat >>confdefs.h <<_ACEOF
9685 #define ICONV_CONST $am_cv_proto_iconv_arg1
9691 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9692 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9693 if test "${am_cv_langinfo_codeset+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702 #include <langinfo.h>
9706 char* cs = nl_langinfo(CODESET);
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext &&
9728 $as_test_x conftest$ac_exeext; then
9729 am_cv_langinfo_codeset=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 am_cv_langinfo_codeset=no
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738 conftest$ac_exeext conftest.$ac_ext
9741 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9742 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9743 if test $am_cv_langinfo_codeset = yes; then
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_LANGINFO_CODESET 1
9751 if test $ac_cv_header_locale_h = yes; then
9753 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9754 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9755 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_link") 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest$ac_exeext &&
9790 $as_test_x conftest$ac_exeext; then
9791 am_cv_val_LC_MESSAGES=yes
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 am_cv_val_LC_MESSAGES=no
9799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9800 conftest$ac_exeext conftest.$ac_ext
9802 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9803 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9804 if test $am_cv_val_LC_MESSAGES = yes; then
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_LC_MESSAGES 1
9814 for ac_prog in bison
9816 # Extract the first word of "$ac_prog", so it can be a program name with args.
9817 set dummy $ac_prog; ac_word=$2
9818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9820 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 if test -n "$INTLBISON"; then
9824 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833 ac_cv_prog_INTLBISON="$ac_prog"
9834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 INTLBISON=$ac_cv_prog_INTLBISON
9844 if test -n "$INTLBISON"; then
9845 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9846 echo "${ECHO_T}$INTLBISON" >&6; }
9848 { echo "$as_me:$LINENO: result: no" >&5
9849 echo "${ECHO_T}no" >&6; }
9853 test -n "$INTLBISON" && break
9856 if test -z "$INTLBISON"; then
9859 { echo "$as_me:$LINENO: checking version of bison" >&5
9860 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9861 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9862 case $ac_prog_version in
9863 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9864 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9865 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9866 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9868 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9869 echo "${ECHO_T}$ac_prog_version" >&6; }
9871 if test $ac_verc_fail = yes; then
9890 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9891 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9892 # Check whether --enable-nls was given.
9893 if test "${enable_nls+set}" = set; then
9894 enableval=$enable_nls; USE_NLS=$enableval
9899 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9900 echo "${ECHO_T}$USE_NLS" >&6; }
9905 BUILD_INCLUDED_LIBINTL=no
9906 USE_INCLUDED_LIBINTL=no
9912 if test "$USE_NLS" = "yes"; then
9913 gt_use_preinstalled_gnugettext=no
9915 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9916 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9918 # Check whether --with-included-gettext was given.
9919 if test "${with_included_gettext+set}" = set; then
9920 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9922 nls_cv_force_use_gnu_gettext=no
9925 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9926 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9928 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9929 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9936 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9937 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9938 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 cat >conftest.$ac_ext <<_ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 #include <libintl.h>
9948 extern int _nl_msg_cat_cntr;
9949 extern int *_nl_domain_bindings;
9953 bindtextdomain ("", "");
9954 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9959 rm -f conftest.$ac_objext conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>conftest.er1
9968 grep -v '^ *+' conftest.er1 >conftest.err
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } && {
9973 test -z "$ac_c_werror_flag" ||
9974 test ! -s conftest.err
9975 } && test -s conftest$ac_exeext &&
9976 $as_test_x conftest$ac_exeext; then
9977 gt_cv_func_gnugettext1_libc=yes
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 gt_cv_func_gnugettext1_libc=no
9985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9986 conftest$ac_exeext conftest.$ac_ext
9988 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9989 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9991 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9997 acl_save_prefix="$prefix"
9998 prefix="$acl_final_prefix"
9999 acl_save_exec_prefix="$exec_prefix"
10000 exec_prefix="$acl_final_exec_prefix"
10002 eval additional_includedir=\"$includedir\"
10003 eval additional_libdir=\"$libdir\"
10005 exec_prefix="$acl_save_exec_prefix"
10006 prefix="$acl_save_prefix"
10009 # Check whether --with-libintl-prefix was given.
10010 if test "${with_libintl_prefix+set}" = set; then
10011 withval=$with_libintl_prefix;
10012 if test "X$withval" = "Xno"; then
10015 if test "X$withval" = "X"; then
10017 acl_save_prefix="$prefix"
10018 prefix="$acl_final_prefix"
10019 acl_save_exec_prefix="$exec_prefix"
10020 exec_prefix="$acl_final_exec_prefix"
10022 eval additional_includedir=\"$includedir\"
10023 eval additional_libdir=\"$libdir\"
10025 exec_prefix="$acl_save_exec_prefix"
10026 prefix="$acl_save_prefix"
10029 additional_includedir="$withval/include"
10030 additional_libdir="$withval/lib"
10041 names_already_handled=
10042 names_next_round='intl '
10043 while test -n "$names_next_round"; do
10044 names_this_round="$names_next_round"
10046 for name in $names_this_round; do
10048 for n in $names_already_handled; do
10049 if test "$n" = "$name"; then
10050 already_handled=yes
10054 if test -z "$already_handled"; then
10055 names_already_handled="$names_already_handled $name"
10056 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10057 eval value=\"\$HAVE_LIB$uppername\"
10058 if test -n "$value"; then
10059 if test "$value" = yes; then
10060 eval value=\"\$LIB$uppername\"
10061 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10062 eval value=\"\$LTLIB$uppername\"
10063 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10072 if test $use_additional = yes; then
10073 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10074 found_dir="$additional_libdir"
10075 found_so="$additional_libdir/lib$name.$shlibext"
10076 if test -f "$additional_libdir/lib$name.la"; then
10077 found_la="$additional_libdir/lib$name.la"
10080 if test -f "$additional_libdir/lib$name.$libext"; then
10081 found_dir="$additional_libdir"
10082 found_a="$additional_libdir/lib$name.$libext"
10083 if test -f "$additional_libdir/lib$name.la"; then
10084 found_la="$additional_libdir/lib$name.la"
10089 if test "X$found_dir" = "X"; then
10090 for x in $LDFLAGS $LTLIBINTL; do
10092 acl_save_prefix="$prefix"
10093 prefix="$acl_final_prefix"
10094 acl_save_exec_prefix="$exec_prefix"
10095 exec_prefix="$acl_final_exec_prefix"
10097 exec_prefix="$acl_save_exec_prefix"
10098 prefix="$acl_save_prefix"
10102 dir=`echo "X$x" | sed -e 's/^X-L//'`
10103 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10105 found_so="$dir/lib$name.$shlibext"
10106 if test -f "$dir/lib$name.la"; then
10107 found_la="$dir/lib$name.la"
10110 if test -f "$dir/lib$name.$libext"; then
10112 found_a="$dir/lib$name.$libext"
10113 if test -f "$dir/lib$name.la"; then
10114 found_la="$dir/lib$name.la"
10120 if test "X$found_dir" != "X"; then
10125 if test "X$found_dir" != "X"; then
10126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10127 if test "X$found_so" != "X"; then
10128 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10129 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10132 for x in $ltrpathdirs; do
10133 if test "X$x" = "X$found_dir"; then
10138 if test -z "$haveit"; then
10139 ltrpathdirs="$ltrpathdirs $found_dir"
10141 if test "$hardcode_direct" = yes; then
10142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10144 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10145 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10147 for x in $rpathdirs; do
10148 if test "X$x" = "X$found_dir"; then
10153 if test -z "$haveit"; then
10154 rpathdirs="$rpathdirs $found_dir"
10158 for x in $LDFLAGS $LIBINTL; do
10160 acl_save_prefix="$prefix"
10161 prefix="$acl_final_prefix"
10162 acl_save_exec_prefix="$exec_prefix"
10163 exec_prefix="$acl_final_exec_prefix"
10165 exec_prefix="$acl_save_exec_prefix"
10166 prefix="$acl_save_prefix"
10168 if test "X$x" = "X-L$found_dir"; then
10173 if test -z "$haveit"; then
10174 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10176 if test "$hardcode_minus_L" != no; then
10177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10179 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10185 if test "X$found_a" != "X"; then
10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10191 additional_includedir=
10192 case "$found_dir" in
10194 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10195 additional_includedir="$basedir/include"
10198 if test "X$additional_includedir" != "X"; then
10199 if test "X$additional_includedir" != "X/usr/include"; then
10201 if test "X$additional_includedir" = "X/usr/local/include"; then
10202 if test -n "$GCC"; then
10204 linux*) haveit=yes;;
10208 if test -z "$haveit"; then
10209 for x in $CPPFLAGS $INCINTL; do
10211 acl_save_prefix="$prefix"
10212 prefix="$acl_final_prefix"
10213 acl_save_exec_prefix="$exec_prefix"
10214 exec_prefix="$acl_final_exec_prefix"
10216 exec_prefix="$acl_save_exec_prefix"
10217 prefix="$acl_save_prefix"
10219 if test "X$x" = "X-I$additional_includedir"; then
10224 if test -z "$haveit"; then
10225 if test -d "$additional_includedir"; then
10226 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10232 if test -n "$found_la"; then
10233 save_libdir="$libdir"
10234 case "$found_la" in
10235 */* | *\\*) . "$found_la" ;;
10236 *) . "./$found_la" ;;
10238 libdir="$save_libdir"
10239 for dep in $dependency_libs; do
10242 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10243 if test "X$additional_libdir" != "X/usr/lib"; then
10245 if test "X$additional_libdir" = "X/usr/local/lib"; then
10246 if test -n "$GCC"; then
10248 linux*) haveit=yes;;
10252 if test -z "$haveit"; then
10254 for x in $LDFLAGS $LIBINTL; do
10256 acl_save_prefix="$prefix"
10257 prefix="$acl_final_prefix"
10258 acl_save_exec_prefix="$exec_prefix"
10259 exec_prefix="$acl_final_exec_prefix"
10261 exec_prefix="$acl_save_exec_prefix"
10262 prefix="$acl_save_prefix"
10264 if test "X$x" = "X-L$additional_libdir"; then
10269 if test -z "$haveit"; then
10270 if test -d "$additional_libdir"; then
10271 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10275 for x in $LDFLAGS $LTLIBINTL; do
10277 acl_save_prefix="$prefix"
10278 prefix="$acl_final_prefix"
10279 acl_save_exec_prefix="$exec_prefix"
10280 exec_prefix="$acl_final_exec_prefix"
10282 exec_prefix="$acl_save_exec_prefix"
10283 prefix="$acl_save_prefix"
10285 if test "X$x" = "X-L$additional_libdir"; then
10290 if test -z "$haveit"; then
10291 if test -d "$additional_libdir"; then
10292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10299 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10300 if test "$enable_rpath" != no; then
10302 for x in $rpathdirs; do
10303 if test "X$x" = "X$dir"; then
10308 if test -z "$haveit"; then
10309 rpathdirs="$rpathdirs $dir"
10312 for x in $ltrpathdirs; do
10313 if test "X$x" = "X$dir"; then
10318 if test -z "$haveit"; then
10319 ltrpathdirs="$ltrpathdirs $dir"
10324 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10327 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10330 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10331 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10337 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10338 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10344 if test "X$rpathdirs" != "X"; then
10345 if test -n "$hardcode_libdir_separator"; then
10347 for found_dir in $rpathdirs; do
10348 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10350 acl_save_libdir="$libdir"
10352 eval flag=\"$hardcode_libdir_flag_spec\"
10353 libdir="$acl_save_libdir"
10354 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10356 for found_dir in $rpathdirs; do
10357 acl_save_libdir="$libdir"
10358 libdir="$found_dir"
10359 eval flag=\"$hardcode_libdir_flag_spec\"
10360 libdir="$acl_save_libdir"
10361 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10365 if test "X$ltrpathdirs" != "X"; then
10366 for found_dir in $ltrpathdirs; do
10367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10371 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10372 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10373 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 gt_save_CPPFLAGS="$CPPFLAGS"
10377 CPPFLAGS="$CPPFLAGS $INCINTL"
10378 gt_save_LIBS="$LIBS"
10379 LIBS="$LIBS $LIBINTL"
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 #include <libintl.h>
10387 extern int _nl_msg_cat_cntr;
10392 const char *_nl_expand_alias ();
10396 bindtextdomain ("", "");
10397 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10420 gt_cv_func_gnugettext1_libintl=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 gt_cv_func_gnugettext1_libintl=no
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10430 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10431 LIBS="$LIBS $LIBICONV"
10432 cat >conftest.$ac_ext <<_ACEOF
10435 cat confdefs.h >>conftest.$ac_ext
10436 cat >>conftest.$ac_ext <<_ACEOF
10437 /* end confdefs.h. */
10438 #include <libintl.h>
10439 extern int _nl_msg_cat_cntr;
10444 const char *_nl_expand_alias ();
10448 bindtextdomain ("", "");
10449 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10454 rm -f conftest.$ac_objext conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest$ac_exeext &&
10471 $as_test_x conftest$ac_exeext; then
10472 LIBINTL="$LIBINTL $LIBICONV"
10473 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10474 gt_cv_func_gnugettext1_libintl=yes
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484 conftest$ac_exeext conftest.$ac_ext
10486 CPPFLAGS="$gt_save_CPPFLAGS"
10487 LIBS="$gt_save_LIBS"
10489 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10493 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10494 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10495 && test "$PACKAGE" != gettext-runtime \
10496 && test "$PACKAGE" != gettext-tools; }; then
10497 gt_use_preinstalled_gnugettext=yes
10505 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10506 nls_cv_use_gnu_gettext=yes
10510 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10511 BUILD_INCLUDED_LIBINTL=yes
10512 USE_INCLUDED_LIBINTL=yes
10513 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10514 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10515 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10518 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10519 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10524 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10525 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define ENABLE_NLS 1
10536 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10537 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10538 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10539 echo "${ECHO_T}$USE_NLS" >&6; }
10540 if test "$USE_NLS" = "yes"; then
10541 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10542 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10543 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10544 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10545 gt_source="external libintl"
10550 gt_source="included intl directory"
10552 { echo "$as_me:$LINENO: result: $gt_source" >&5
10553 echo "${ECHO_T}$gt_source" >&6; }
10556 if test "$USE_NLS" = "yes"; then
10558 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10559 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10560 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10561 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10562 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10563 echo "${ECHO_T}$LIBINTL" >&6; }
10565 for element in $INCINTL; do
10567 for x in $CPPFLAGS; do
10569 acl_save_prefix="$prefix"
10570 prefix="$acl_final_prefix"
10571 acl_save_exec_prefix="$exec_prefix"
10572 exec_prefix="$acl_final_exec_prefix"
10574 exec_prefix="$acl_save_exec_prefix"
10575 prefix="$acl_save_prefix"
10577 if test "X$x" = "X$element"; then
10582 if test -z "$haveit"; then
10583 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_GETTEXT 1
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_DCGETTEXT 1
10605 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10606 BUILD_INCLUDED_LIBINTL=yes
10613 nls_cv_header_intl=
10614 nls_cv_header_libgt=
10625 if test "$USE_INCLUDED_LIBINTL" = yes; then
10626 INTLOBJS="\$(GETTOBJS)"
10630 INTL_LIBTOOL_SUFFIX_PREFIX=
10634 INTLLIBS="$LIBINTL"
10642 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10643 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10644 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10645 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 cat >conftest.make <<\_ACEOF
10651 @echo '@@@%%%=$(MAKE)=@@@%%%'
10653 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10654 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10655 *@@@%%%=?*=@@@%%%*)
10656 eval ac_cv_prog_make_${ac_make}_set=yes;;
10658 eval ac_cv_prog_make_${ac_make}_set=no;;
10660 rm -f conftest.make
10662 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10663 { echo "$as_me:$LINENO: result: yes" >&5
10664 echo "${ECHO_T}yes" >&6; }
10667 { echo "$as_me:$LINENO: result: no" >&5
10668 echo "${ECHO_T}no" >&6; }
10669 SET_MAKE="MAKE=${MAKE-make}"
10672 # Extract the first word of "ln", so it can be a program name with args.
10673 set dummy ln; ac_word=$2
10674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10676 if test "${ac_cv_path_LN+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10691 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10699 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10704 if test -n "$LN"; then
10705 { echo "$as_me:$LINENO: result: $LN" >&5
10706 echo "${ECHO_T}$LN" >&6; }
10708 { echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6; }
10713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10716 if test "$LN_S" = "ln -s"; then
10717 { echo "$as_me:$LINENO: result: yes" >&5
10718 echo "${ECHO_T}yes" >&6; }
10720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10721 echo "${ECHO_T}no, using $LN_S" >&6; }
10724 # Extract the first word of "mv", so it can be a program name with args.
10725 set dummy mv; ac_word=$2
10726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10728 if test "${ac_cv_path_MV+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in $PATH
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10751 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10756 if test -n "$MV"; then
10757 { echo "$as_me:$LINENO: result: $MV" >&5
10758 echo "${ECHO_T}$MV" >&6; }
10760 { echo "$as_me:$LINENO: result: no" >&5
10761 echo "${ECHO_T}no" >&6; }
10765 # Extract the first word of "cp", so it can be a program name with args.
10766 set dummy cp; ac_word=$2
10767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10769 if test "${ac_cv_path_CP+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778 for as_dir in $PATH
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10784 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10792 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10797 if test -n "$CP"; then
10798 { echo "$as_me:$LINENO: result: $CP" >&5
10799 echo "${ECHO_T}$CP" >&6; }
10801 { echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6; }
10806 # Extract the first word of "rm", so it can be a program name with args.
10807 set dummy rm; ac_word=$2
10808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10810 if test "${ac_cv_path_RM+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10825 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10838 if test -n "$RM"; then
10839 { echo "$as_me:$LINENO: result: $RM" >&5
10840 echo "${ECHO_T}$RM" >&6; }
10842 { echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6; }
10847 # Extract the first word of "chmod", so it can be a program name with args.
10848 set dummy chmod; ac_word=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_CHMOD+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10878 CHMOD=$ac_cv_path_CHMOD
10879 if test -n "$CHMOD"; then
10880 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10881 echo "${ECHO_T}$CHMOD" >&6; }
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10888 for ac_prog in gawk mawk nawk awk
10890 # Extract the first word of "$ac_prog", so it can be a program name with args.
10891 set dummy $ac_prog; ac_word=$2
10892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10894 if test "${ac_cv_prog_AWK+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 if test -n "$AWK"; then
10898 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10907 ac_cv_prog_AWK="$ac_prog"
10908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 AWK=$ac_cv_prog_AWK
10918 if test -n "$AWK"; then
10919 { echo "$as_me:$LINENO: result: $AWK" >&5
10920 echo "${ECHO_T}$AWK" >&6; }
10922 { echo "$as_me:$LINENO: result: no" >&5
10923 echo "${ECHO_T}no" >&6; }
10927 test -n "$AWK" && break
10930 { echo "$as_me:$LINENO: checking for egrep" >&5
10931 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_EGREP+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10936 then ac_cv_path_EGREP="$GREP -E"
10938 # Extract the first word of "egrep" to use in msg output
10939 if test -z "$EGREP"; then
10940 set dummy egrep; ac_prog_name=$2
10941 if test "${ac_cv_path_EGREP+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 ac_path_EGREP_found=false
10945 # Loop through the user's path and test for each of PROGNAME-LIST
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10950 test -z "$as_dir" && as_dir=.
10951 for ac_prog in egrep; do
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10954 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10955 # Check for GNU ac_path_EGREP and select it if it is found.
10956 # Check for GNU $ac_path_EGREP
10957 case `"$ac_path_EGREP" --version 2>&1` in
10959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10962 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10965 cat "conftest.in" "conftest.in" >"conftest.tmp"
10966 mv "conftest.tmp" "conftest.in"
10967 cp "conftest.in" "conftest.nl"
10968 echo 'EGREP' >> "conftest.nl"
10969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10971 ac_count=`expr $ac_count + 1`
10972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10973 # Best one so far, save it but keep looking for a better one
10974 ac_cv_path_EGREP="$ac_path_EGREP"
10975 ac_path_EGREP_max=$ac_count
10977 # 10*(2^10) chars as input seems more than enough
10978 test $ac_count -gt 10 && break
10980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10984 $ac_path_EGREP_found && break 3
10994 EGREP="$ac_cv_path_EGREP"
10995 if test -z "$EGREP"; then
10996 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10997 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10998 { (exit 1); exit 1; }; }
11002 ac_cv_path_EGREP=$EGREP
11008 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11009 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11010 EGREP="$ac_cv_path_EGREP"
11013 # Extract the first word of "sed", so it can be a program name with args.
11014 set dummy sed; ac_word=$2
11015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11017 if test "${ac_cv_path_SED+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11032 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11044 SED=$ac_cv_path_SED
11045 if test -n "$SED"; then
11046 { echo "$as_me:$LINENO: result: $SED" >&5
11047 echo "${ECHO_T}$SED" >&6; }
11049 { echo "$as_me:$LINENO: result: no" >&5
11050 echo "${ECHO_T}no" >&6; }
11054 # Extract the first word of "perl", so it can be a program name with args.
11055 set dummy perl; ac_word=$2
11056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11058 if test "${ac_cv_path_PERL+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11073 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11085 PERL=$ac_cv_path_PERL
11086 if test -n "$PERL"; then
11087 { echo "$as_me:$LINENO: result: $PERL" >&5
11088 echo "${ECHO_T}$PERL" >&6; }
11090 { echo "$as_me:$LINENO: result: no" >&5
11091 echo "${ECHO_T}no" >&6; }
11095 # Extract the first word of "ldconfig", so it can be a program name with args.
11096 set dummy ldconfig; ac_word=$2
11097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11099 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11126 LDCONFIG=$ac_cv_path_LDCONFIG
11127 if test -n "$LDCONFIG"; then
11128 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11129 echo "${ECHO_T}$LDCONFIG" >&6; }
11131 { echo "$as_me:$LINENO: result: no" >&5
11132 echo "${ECHO_T}no" >&6; }
11136 if test -n "$ac_tool_prefix"; then
11137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11138 set dummy ${ac_tool_prefix}ar; ac_word=$2
11139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11141 if test "${ac_cv_prog_AR+set}" = set; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 if test -n "$AR"; then
11145 ac_cv_prog_AR="$AR" # Let the user override the test.
11147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148 for as_dir in $PATH
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_prog_AR="${ac_tool_prefix}ar"
11155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 if test -n "$AR"; then
11166 { echo "$as_me:$LINENO: result: $AR" >&5
11167 echo "${ECHO_T}$AR" >&6; }
11169 { echo "$as_me:$LINENO: result: no" >&5
11170 echo "${ECHO_T}no" >&6; }
11175 if test -z "$ac_cv_prog_AR"; then
11177 # Extract the first word of "ar", so it can be a program name with args.
11178 set dummy ar; ac_word=$2
11179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11181 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 if test -n "$ac_ct_AR"; then
11185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_ac_ct_AR="ar"
11195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11205 if test -n "$ac_ct_AR"; then
11206 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11207 echo "${ECHO_T}$ac_ct_AR" >&6; }
11209 { echo "$as_me:$LINENO: result: no" >&5
11210 echo "${ECHO_T}no" >&6; }
11213 if test "x$ac_ct_AR" = x; then
11216 case $cross_compiling:$ac_tool_warned in
11218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11219 whose name does not start with the host triplet. If you think this
11220 configuration is useful to you, please write to autoconf@gnu.org." >&5
11221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11222 whose name does not start with the host triplet. If you think this
11223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11224 ac_tool_warned=yes ;;
11229 AR="$ac_cv_prog_AR"
11232 if test -n "$ac_tool_prefix"; then
11233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11237 if test "${ac_cv_prog_RANLIB+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 if test -n "$RANLIB"; then
11241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in $PATH
11247 test -z "$as_dir" && as_dir=.
11248 for ac_exec_ext in '' $ac_executable_extensions; do
11249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 RANLIB=$ac_cv_prog_RANLIB
11261 if test -n "$RANLIB"; then
11262 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11263 echo "${ECHO_T}$RANLIB" >&6; }
11265 { echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6; }
11271 if test -z "$ac_cv_prog_RANLIB"; then
11272 ac_ct_RANLIB=$RANLIB
11273 # Extract the first word of "ranlib", so it can be a program name with args.
11274 set dummy ranlib; ac_word=$2
11275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 if test -n "$ac_ct_RANLIB"; then
11281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11290 ac_cv_prog_ac_ct_RANLIB="ranlib"
11291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11301 if test -n "$ac_ct_RANLIB"; then
11302 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11303 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11305 { echo "$as_me:$LINENO: result: no" >&5
11306 echo "${ECHO_T}no" >&6; }
11309 if test "x$ac_ct_RANLIB" = x; then
11312 case $cross_compiling:$ac_tool_warned in
11314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11315 whose name does not start with the host triplet. If you think this
11316 configuration is useful to you, please write to autoconf@gnu.org." >&5
11317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11318 whose name does not start with the host triplet. If you think this
11319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11320 ac_tool_warned=yes ;;
11322 RANLIB=$ac_ct_RANLIB
11325 RANLIB="$ac_cv_prog_RANLIB"
11328 if test -n "$ac_tool_prefix"; then
11329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11330 set dummy ${ac_tool_prefix}strip; ac_word=$2
11331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11333 if test "${ac_cv_prog_STRIP+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 if test -n "$STRIP"; then
11337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11346 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11356 STRIP=$ac_cv_prog_STRIP
11357 if test -n "$STRIP"; then
11358 { echo "$as_me:$LINENO: result: $STRIP" >&5
11359 echo "${ECHO_T}$STRIP" >&6; }
11361 { echo "$as_me:$LINENO: result: no" >&5
11362 echo "${ECHO_T}no" >&6; }
11367 if test -z "$ac_cv_prog_STRIP"; then
11369 # Extract the first word of "strip", so it can be a program name with args.
11370 set dummy strip; ac_word=$2
11371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11373 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 if test -n "$ac_ct_STRIP"; then
11377 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380 for as_dir in $PATH
11383 test -z "$as_dir" && as_dir=.
11384 for ac_exec_ext in '' $ac_executable_extensions; do
11385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11386 ac_cv_prog_ac_ct_STRIP="strip"
11387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11397 if test -n "$ac_ct_STRIP"; then
11398 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11399 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11401 { echo "$as_me:$LINENO: result: no" >&5
11402 echo "${ECHO_T}no" >&6; }
11405 if test "x$ac_ct_STRIP" = x; then
11408 case $cross_compiling:$ac_tool_warned in
11410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11411 whose name does not start with the host triplet. If you think this
11412 configuration is useful to you, please write to autoconf@gnu.org." >&5
11413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11414 whose name does not start with the host triplet. If you think this
11415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11416 ac_tool_warned=yes ;;
11421 STRIP="$ac_cv_prog_STRIP"
11424 # Extract the first word of "makeinfo", so it can be a program name with args.
11425 set dummy makeinfo; ac_word=$2
11426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11428 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11429 echo $ECHO_N "(cached) $ECHO_C" >&6
11431 if test -n "$MAKEINFO"; then
11432 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_prog_MAKEINFO="makeinfo"
11442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 MAKEINFO=$ac_cv_prog_MAKEINFO
11452 if test -n "$MAKEINFO"; then
11453 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11454 echo "${ECHO_T}$MAKEINFO" >&6; }
11456 { echo "$as_me:$LINENO: result: no" >&5
11457 echo "${ECHO_T}no" >&6; }
11461 if test "_$MAKEINFO" = "_"; then
11462 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11464 case "$MAKEINFO" in
11466 { echo "$as_me:$LINENO: WARNING:
11467 *** Makeinfo is missing. Info documentation will not be built." >&5
11468 echo "$as_me: WARNING:
11469 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11476 # Find a good install program. We prefer a C program (faster),
11477 # so one script is as good as another. But avoid the broken or
11478 # incompatible versions:
11479 # SysV /etc/install, /usr/sbin/install
11480 # SunOS /usr/etc/install
11481 # IRIX /sbin/install
11483 # AmigaOS /C/install, which installs bootblocks on floppy discs
11484 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11485 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11486 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11487 # OS/2's system install, which has a completely different semantic
11488 # ./install, which can be erroneously created by make from ./install.sh.
11489 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11490 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11491 if test -z "$INSTALL"; then
11492 if test "${ac_cv_path_install+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11499 test -z "$as_dir" && as_dir=.
11500 # Account for people who put trailing slashes in PATH elements.
11502 ./ | .// | /cC/* | \
11503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11504 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11507 # OSF1 and SCO ODT 3.0 have their own names for install.
11508 # Don't use installbsd from OSF since it installs stuff as root
11510 for ac_prog in ginstall scoinst install; do
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11513 if test $ac_prog = install &&
11514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11515 # AIX install. It has an incompatible calling convention.
11517 elif test $ac_prog = install &&
11518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11519 # program-specific install script used by HP pwplus--don't use.
11522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11535 if test "${ac_cv_path_install+set}" = set; then
11536 INSTALL=$ac_cv_path_install
11538 # As a last resort, use the slow shell script. Don't cache a
11539 # value for INSTALL within a source directory, because that will
11540 # break other packages using the cache if that directory is
11541 # removed, or if the value is a relative name.
11542 INSTALL=$ac_install_sh
11545 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11546 echo "${ECHO_T}$INSTALL" >&6; }
11548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11549 # It thinks the first close brace ends the variable substitution.
11550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11554 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11556 # See if we need a separate native compiler.
11557 if test $cross_compiling = no; then
11561 for ac_prog in gcc cc
11563 # Extract the first word of "$ac_prog", so it can be a program name with args.
11564 set dummy $ac_prog; ac_word=$2
11565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11567 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 if test -n "$BUILD_CC"; then
11571 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11580 ac_cv_prog_BUILD_CC="$ac_prog"
11581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11590 BUILD_CC=$ac_cv_prog_BUILD_CC
11591 if test -n "$BUILD_CC"; then
11592 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11593 echo "${ECHO_T}$BUILD_CC" >&6; }
11595 { echo "$as_me:$LINENO: result: no" >&5
11596 echo "${ECHO_T}no" >&6; }
11600 test -n "$BUILD_CC" && break
11641 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
11643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 ac_res=`eval echo '${'$as_ac_Header'}'`
11651 { echo "$as_me:$LINENO: result: $ac_res" >&5
11652 echo "${ECHO_T}$ac_res" >&6; }
11654 # Is the header compilable?
11655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 #include <$ac_header>
11666 rm -f conftest.$ac_objext
11667 if { (ac_try="$ac_compile"
11668 case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_compile") 2>conftest.er1
11675 grep -v '^ *+' conftest.er1 >conftest.err
11677 cat conftest.err >&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } && {
11680 test -z "$ac_c_werror_flag" ||
11681 test ! -s conftest.err
11682 } && test -s conftest.$ac_objext; then
11683 ac_header_compiler=yes
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 ac_header_compiler=no
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11693 echo "${ECHO_T}$ac_header_compiler" >&6; }
11695 # Is the header present?
11696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 #include <$ac_header>
11706 if { (ac_try="$ac_cpp conftest.$ac_ext"
11707 case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11714 grep -v '^ *+' conftest.er1 >conftest.err
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } >/dev/null && {
11719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11722 ac_header_preproc=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 ac_header_preproc=no
11730 rm -f conftest.err conftest.$ac_ext
11731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11732 echo "${ECHO_T}$ac_header_preproc" >&6; }
11734 # So? What about this header?
11735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11741 ac_header_preproc=yes
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 eval "$as_ac_Header=\$ac_header_preproc"
11766 ac_res=`eval echo '${'$as_ac_Header'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11782 for ac_header in sys/disk.h sys/mount.h
11784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11797 #if HAVE_SYS_QUEUE_H
11798 #include <sys/queue.h>
11802 #include <$ac_header>
11804 rm -f conftest.$ac_objext
11805 if { (ac_try="$ac_compile"
11806 case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_compile") 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.$ac_objext; then
11821 eval "$as_ac_Header=yes"
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 eval "$as_ac_Header=no"
11829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 ac_res=`eval echo '${'$as_ac_Header'}'`
11832 { echo "$as_me:$LINENO: result: $ac_res" >&5
11833 echo "${ECHO_T}$ac_res" >&6; }
11834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11835 cat >>confdefs.h <<_ACEOF
11836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11844 for ac_header in net/if.h
11846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11859 #if HAVE_SYS_TYPES_H
11860 #include <sys/types.h>
11862 #if HAVE_SYS_SOCKET
11863 #include <sys/socket.h>
11867 #include <$ac_header>
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.$ac_objext; then
11886 eval "$as_ac_Header=yes"
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 eval "$as_ac_Header=no"
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 ac_res=`eval echo '${'$as_ac_Header'}'`
11897 { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11909 for ac_func in vprintf
11911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925 #define $ac_func innocuous_$ac_func
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11933 # include <limits.h>
11935 # include <assert.h>
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined __stub_$ac_func || defined __stub___$ac_func
11957 return $ac_func ();
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1 >conftest.err
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext &&
11979 $as_test_x conftest$ac_exeext; then
11980 eval "$as_ac_var=yes"
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 eval "$as_ac_var=no"
11988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11989 conftest$ac_exeext conftest.$ac_ext
11991 ac_res=`eval echo '${'$as_ac_var'}'`
11992 { echo "$as_me:$LINENO: result: $ac_res" >&5
11993 echo "${ECHO_T}$ac_res" >&6; }
11994 if test `eval echo '${'$as_ac_var'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12000 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12001 if test "${ac_cv_func__doprnt+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12012 #define _doprnt innocuous__doprnt
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char _doprnt (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */
12020 # include <limits.h>
12022 # include <assert.h>
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12034 /* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037 #if defined __stub__doprnt || defined __stub____doprnt
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (ac_try="$ac_link"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_link") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest$ac_exeext &&
12066 $as_test_x conftest$ac_exeext; then
12067 ac_cv_func__doprnt=yes
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 ac_cv_func__doprnt=no
12075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12076 conftest$ac_exeext conftest.$ac_ext
12078 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12079 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12080 if test $ac_cv_func__doprnt = yes; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_DOPRNT 1
12092 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12093 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12094 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 #include <dirent.h>
12108 static struct dirent ac_aggr;
12109 if (ac_aggr.d_reclen)
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 ac_cv_member_struct_dirent_d_reclen=yes
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 cat >conftest.$ac_ext <<_ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 #include <dirent.h>
12148 static struct dirent ac_aggr;
12149 if (sizeof ac_aggr.d_reclen)
12155 rm -f conftest.$ac_objext
12156 if { (ac_try="$ac_compile"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_compile") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest.$ac_objext; then
12172 ac_cv_member_struct_dirent_d_reclen=yes
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_cv_member_struct_dirent_d_reclen=no
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12186 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12187 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12188 cat >>confdefs.h <<\_ACEOF
12189 #define HAVE_RECLEN_DIRENT 1
12194 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12195 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12196 if test "${ac_cv_type_ssize_t+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 #include <sys/types.h>
12207 typedef ssize_t ac__type_new_;
12211 if ((ac__type_new_ *) 0)
12213 if (sizeof (ac__type_new_))
12219 rm -f conftest.$ac_objext
12220 if { (ac_try="$ac_compile"
12221 case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12228 grep -v '^ *+' conftest.er1 >conftest.err
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.$ac_objext; then
12236 ac_cv_type_ssize_t=yes
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ac_cv_type_ssize_t=no
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12247 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12248 if test $ac_cv_type_ssize_t = yes; then
12249 cat >>confdefs.h <<\_ACEOF
12250 #define HAVE_TYPE_SSIZE_T 1
12255 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12256 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12257 if test "${ac_cv_have_decl_llseek+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 #include <unistd.h>
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
12288 grep -v '^ *+' conftest.er1 >conftest.err
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } && {
12293 test -z "$ac_c_werror_flag" ||
12294 test ! -s conftest.err
12295 } && test -s conftest.$ac_objext; then
12296 ac_cv_have_decl_llseek=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_have_decl_llseek=no
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12307 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12308 if test $ac_cv_have_decl_llseek = yes; then
12309 cat >>confdefs.h <<\_ACEOF
12310 #define HAVE_LLSEEK_PROTOTYPE 1
12315 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12316 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12317 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 cat >conftest.$ac_ext <<_ACEOF
12323 cat confdefs.h >>conftest.$ac_ext
12324 cat >>conftest.$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 #define _LARGEFILE_SOURCE
12327 #define _LARGEFILE64_SOURCE
12328 #include <unistd.h>
12341 rm -f conftest.$ac_objext
12342 if { (ac_try="$ac_compile"
12343 case "(($ac_try" in
12344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345 *) ac_try_echo=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_compile") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest.$ac_objext; then
12358 ac_cv_have_decl_lseek64=yes
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_have_decl_lseek64=no
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12369 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12370 if test $ac_cv_have_decl_lseek64 = yes; then
12371 cat >>confdefs.h <<\_ACEOF
12372 #define HAVE_LSEEK64_PROTOTYPE 1
12377 { echo "$as_me:$LINENO: checking for short" >&5
12378 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12379 if test "${ac_cv_type_short+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 $ac_includes_default
12389 typedef short ac__type_new_;
12393 if ((ac__type_new_ *) 0)
12395 if (sizeof (ac__type_new_))
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest.$ac_objext; then
12418 ac_cv_type_short=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12423 ac_cv_type_short=no
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12429 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12431 # The cast to long int works around a bug in the HP C Compiler
12432 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12433 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12434 # This bug is HP SR number 8606223364.
12435 { echo "$as_me:$LINENO: checking size of short" >&5
12436 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12437 if test "${ac_cv_sizeof_short+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 if test "$cross_compiling" = yes; then
12441 # Depending upon the size, compute the lo and hi bounds.
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 $ac_includes_default
12449 typedef short ac__type_sizeof_;
12453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_compile") 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest.$ac_objext; then
12479 cat >conftest.$ac_ext <<_ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12486 typedef short ac__type_sizeof_;
12490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12497 rm -f conftest.$ac_objext
12498 if { (ac_try="$ac_compile"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
12514 ac_hi=$ac_mid; break
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_lo=`expr $ac_mid + 1`
12520 if test $ac_lo -le $ac_mid; then
12524 ac_mid=`expr 2 '*' $ac_mid + 1`
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 $ac_includes_default
12540 typedef short ac__type_sizeof_;
12544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12551 rm -f conftest.$ac_objext
12552 if { (ac_try="$ac_compile"
12553 case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_compile") 2>conftest.er1
12560 grep -v '^ *+' conftest.er1 >conftest.err
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } && {
12565 test -z "$ac_c_werror_flag" ||
12566 test ! -s conftest.err
12567 } && test -s conftest.$ac_objext; then
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 $ac_includes_default
12577 typedef short ac__type_sizeof_;
12581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.$ac_objext; then
12605 ac_lo=$ac_mid; break
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ac_hi=`expr '(' $ac_mid ')' - 1`
12611 if test $ac_mid -le $ac_hi; then
12615 ac_mid=`expr 2 '*' $ac_mid`
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 # Binary search between lo and hi bounds.
12632 while test "x$ac_lo" != "x$ac_hi"; do
12633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12634 cat >conftest.$ac_ext <<_ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 $ac_includes_default
12641 typedef short ac__type_sizeof_;
12645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12652 rm -f conftest.$ac_objext
12653 if { (ac_try="$ac_compile"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_compile") 2>conftest.er1
12661 grep -v '^ *+' conftest.er1 >conftest.err
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest.$ac_objext; then
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_lo=`expr '(' $ac_mid ')' + 1`
12677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680 ?*) ac_cv_sizeof_short=$ac_lo;;
12681 '') if test "$ac_cv_type_short" = yes; then
12682 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12683 See \`config.log' for more details." >&5
12684 echo "$as_me: error: cannot compute sizeof (short)
12685 See \`config.log' for more details." >&2;}
12686 { (exit 77); exit 77; }; }
12688 ac_cv_sizeof_short=0
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 $ac_includes_default
12699 typedef short ac__type_sizeof_;
12700 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12701 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12703 #include <stdlib.h>
12708 FILE *f = fopen ("conftest.val", "w");
12711 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12713 long int i = longval ();
12714 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12716 fprintf (f, "%ld\n", i);
12720 unsigned long int i = ulongval ();
12721 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12723 fprintf (f, "%lu\n", i);
12725 return ferror (f) || fclose (f) != 0;
12731 rm -f conftest$ac_exeext
12732 if { (ac_try="$ac_link"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_link") 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12742 { (case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_sizeof_short=`cat conftest.val`
12753 echo "$as_me: program exited with status $ac_status" >&5
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ( exit $ac_status )
12758 if test "$ac_cv_type_short" = yes; then
12759 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12760 See \`config.log' for more details." >&5
12761 echo "$as_me: error: cannot compute sizeof (short)
12762 See \`config.log' for more details." >&2;}
12763 { (exit 77); exit 77; }; }
12765 ac_cv_sizeof_short=0
12768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12772 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12773 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12777 cat >>confdefs.h <<_ACEOF
12778 #define SIZEOF_SHORT $ac_cv_sizeof_short
12782 { echo "$as_me:$LINENO: checking for int" >&5
12783 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12784 if test "${ac_cv_type_int+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 $ac_includes_default
12794 typedef int ac__type_new_;
12798 if ((ac__type_new_ *) 0)
12800 if (sizeof (ac__type_new_))
12806 rm -f conftest.$ac_objext
12807 if { (ac_try="$ac_compile"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_compile") 2>conftest.er1
12815 grep -v '^ *+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest.$ac_objext; then
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12834 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12836 # The cast to long int works around a bug in the HP C Compiler
12837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12839 # This bug is HP SR number 8606223364.
12840 { echo "$as_me:$LINENO: checking size of int" >&5
12841 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12842 if test "${ac_cv_sizeof_int+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 if test "$cross_compiling" = yes; then
12846 # Depending upon the size, compute the lo and hi bounds.
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 $ac_includes_default
12854 typedef int ac__type_sizeof_;
12858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12865 rm -f conftest.$ac_objext
12866 if { (ac_try="$ac_compile"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_compile") 2>conftest.er1
12874 grep -v '^ *+' conftest.er1 >conftest.err
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } && {
12879 test -z "$ac_c_werror_flag" ||
12880 test ! -s conftest.err
12881 } && test -s conftest.$ac_objext; then
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 typedef int ac__type_sizeof_;
12895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
12911 grep -v '^ *+' conftest.er1 >conftest.err
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.$ac_objext; then
12919 ac_hi=$ac_mid; break
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_lo=`expr $ac_mid + 1`
12925 if test $ac_lo -le $ac_mid; then
12929 ac_mid=`expr 2 '*' $ac_mid + 1`
12932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 cat >conftest.$ac_ext <<_ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 $ac_includes_default
12945 typedef int ac__type_sizeof_;
12949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12956 rm -f conftest.$ac_objext
12957 if { (ac_try="$ac_compile"
12958 case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_compile") 2>conftest.er1
12965 grep -v '^ *+' conftest.er1 >conftest.err
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } && {
12970 test -z "$ac_c_werror_flag" ||
12971 test ! -s conftest.err
12972 } && test -s conftest.$ac_objext; then
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 $ac_includes_default
12982 typedef int ac__type_sizeof_;
12986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12993 rm -f conftest.$ac_objext
12994 if { (ac_try="$ac_compile"
12995 case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_compile") 2>conftest.er1
13002 grep -v '^ *+' conftest.er1 >conftest.err
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest.$ac_objext; then
13010 ac_lo=$ac_mid; break
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ac_hi=`expr '(' $ac_mid ')' - 1`
13016 if test $ac_mid -le $ac_hi; then
13020 ac_mid=`expr 2 '*' $ac_mid`
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 # Binary search between lo and hi bounds.
13037 while test "x$ac_lo" != "x$ac_hi"; do
13038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045 $ac_includes_default
13046 typedef int ac__type_sizeof_;
13050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13057 rm -f conftest.$ac_objext
13058 if { (ac_try="$ac_compile"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_compile") 2>conftest.er1
13066 grep -v '^ *+' conftest.er1 >conftest.err
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest.$ac_objext; then
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 ac_lo=`expr '(' $ac_mid ')' + 1`
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 ?*) ac_cv_sizeof_int=$ac_lo;;
13086 '') if test "$ac_cv_type_int" = yes; then
13087 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13088 See \`config.log' for more details." >&5
13089 echo "$as_me: error: cannot compute sizeof (int)
13090 See \`config.log' for more details." >&2;}
13091 { (exit 77); exit 77; }; }
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 $ac_includes_default
13104 typedef int ac__type_sizeof_;
13105 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13106 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13108 #include <stdlib.h>
13113 FILE *f = fopen ("conftest.val", "w");
13116 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13118 long int i = longval ();
13119 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13121 fprintf (f, "%ld\n", i);
13125 unsigned long int i = ulongval ();
13126 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13128 fprintf (f, "%lu\n", i);
13130 return ferror (f) || fclose (f) != 0;
13136 rm -f conftest$ac_exeext
13137 if { (ac_try="$ac_link"
13138 case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_link") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13147 { (case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152 (eval "$ac_try") 2>&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; }; then
13156 ac_cv_sizeof_int=`cat conftest.val`
13158 echo "$as_me: program exited with status $ac_status" >&5
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ( exit $ac_status )
13163 if test "$ac_cv_type_int" = yes; then
13164 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13165 See \`config.log' for more details." >&5
13166 echo "$as_me: error: cannot compute sizeof (int)
13167 See \`config.log' for more details." >&2;}
13168 { (exit 77); exit 77; }; }
13173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13177 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13178 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13182 cat >>confdefs.h <<_ACEOF
13183 #define SIZEOF_INT $ac_cv_sizeof_int
13187 { echo "$as_me:$LINENO: checking for long" >&5
13188 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13189 if test "${ac_cv_type_long+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13198 $ac_includes_default
13199 typedef long ac__type_new_;
13203 if ((ac__type_new_ *) 0)
13205 if (sizeof (ac__type_new_))
13211 rm -f conftest.$ac_objext
13212 if { (ac_try="$ac_compile"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_compile") 2>conftest.er1
13220 grep -v '^ *+' conftest.er1 >conftest.err
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } && {
13225 test -z "$ac_c_werror_flag" ||
13226 test ! -s conftest.err
13227 } && test -s conftest.$ac_objext; then
13228 ac_cv_type_long=yes
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13239 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13241 # The cast to long int works around a bug in the HP C Compiler
13242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13244 # This bug is HP SR number 8606223364.
13245 { echo "$as_me:$LINENO: checking size of long" >&5
13246 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13247 if test "${ac_cv_sizeof_long+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 if test "$cross_compiling" = yes; then
13251 # Depending upon the size, compute the lo and hi bounds.
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 $ac_includes_default
13259 typedef long ac__type_sizeof_;
13263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest.$ac_objext; then
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13296 typedef long ac__type_sizeof_;
13300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13307 rm -f conftest.$ac_objext
13308 if { (ac_try="$ac_compile"
13309 case "(($ac_try" in
13310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13311 *) ac_try_echo=$ac_try;;
13313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13314 (eval "$ac_compile") 2>conftest.er1
13316 grep -v '^ *+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && {
13321 test -z "$ac_c_werror_flag" ||
13322 test ! -s conftest.err
13323 } && test -s conftest.$ac_objext; then
13324 ac_hi=$ac_mid; break
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 ac_lo=`expr $ac_mid + 1`
13330 if test $ac_lo -le $ac_mid; then
13334 ac_mid=`expr 2 '*' $ac_mid + 1`
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 echo "$as_me: failed program was:" >&5
13341 sed 's/^/| /' conftest.$ac_ext >&5
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 $ac_includes_default
13350 typedef long ac__type_sizeof_;
13354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_compile") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1 >conftest.err
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } && {
13375 test -z "$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13377 } && test -s conftest.$ac_objext; then
13380 cat >conftest.$ac_ext <<_ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386 $ac_includes_default
13387 typedef long ac__type_sizeof_;
13391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13398 rm -f conftest.$ac_objext
13399 if { (ac_try="$ac_compile"
13400 case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13407 grep -v '^ *+' conftest.er1 >conftest.err
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } && {
13412 test -z "$ac_c_werror_flag" ||
13413 test ! -s conftest.err
13414 } && test -s conftest.$ac_objext; then
13415 ac_lo=$ac_mid; break
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ac_hi=`expr '(' $ac_mid ')' - 1`
13421 if test $ac_mid -le $ac_hi; then
13425 ac_mid=`expr 2 '*' $ac_mid`
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 # Binary search between lo and hi bounds.
13442 while test "x$ac_lo" != "x$ac_hi"; do
13443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13450 $ac_includes_default
13451 typedef long ac__type_sizeof_;
13455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13462 rm -f conftest.$ac_objext
13463 if { (ac_try="$ac_compile"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_compile") 2>conftest.er1
13471 grep -v '^ *+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } && {
13476 test -z "$ac_c_werror_flag" ||
13477 test ! -s conftest.err
13478 } && test -s conftest.$ac_objext; then
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 ac_lo=`expr '(' $ac_mid ')' + 1`
13487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 ?*) ac_cv_sizeof_long=$ac_lo;;
13491 '') if test "$ac_cv_type_long" = yes; then
13492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13493 See \`config.log' for more details." >&5
13494 echo "$as_me: error: cannot compute sizeof (long)
13495 See \`config.log' for more details." >&2;}
13496 { (exit 77); exit 77; }; }
13498 ac_cv_sizeof_long=0
13502 cat >conftest.$ac_ext <<_ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 $ac_includes_default
13509 typedef long ac__type_sizeof_;
13510 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13511 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13513 #include <stdlib.h>
13518 FILE *f = fopen ("conftest.val", "w");
13521 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13523 long int i = longval ();
13524 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13526 fprintf (f, "%ld\n", i);
13530 unsigned long int i = ulongval ();
13531 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13533 fprintf (f, "%lu\n", i);
13535 return ferror (f) || fclose (f) != 0;
13541 rm -f conftest$ac_exeext
13542 if { (ac_try="$ac_link"
13543 case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_link") 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13552 { (case "(($ac_try" in
13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13557 (eval "$ac_try") 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_sizeof_long=`cat conftest.val`
13563 echo "$as_me: program exited with status $ac_status" >&5
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ( exit $ac_status )
13568 if test "$ac_cv_type_long" = yes; then
13569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13570 See \`config.log' for more details." >&5
13571 echo "$as_me: error: cannot compute sizeof (long)
13572 See \`config.log' for more details." >&2;}
13573 { (exit 77); exit 77; }; }
13575 ac_cv_sizeof_long=0
13578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13582 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13583 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13587 cat >>confdefs.h <<_ACEOF
13588 #define SIZEOF_LONG $ac_cv_sizeof_long
13592 { echo "$as_me:$LINENO: checking for long long" >&5
13593 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13594 if test "${ac_cv_type_long_long+set}" = set; then
13595 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 $ac_includes_default
13604 typedef long long ac__type_new_;
13608 if ((ac__type_new_ *) 0)
13610 if (sizeof (ac__type_new_))
13616 rm -f conftest.$ac_objext
13617 if { (ac_try="$ac_compile"
13618 case "(($ac_try" in
13619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620 *) ac_try_echo=$ac_try;;
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_compile") 2>conftest.er1
13625 grep -v '^ *+' conftest.er1 >conftest.err
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest.$ac_objext; then
13633 ac_cv_type_long_long=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_cv_type_long_long=no
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13644 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13646 # The cast to long int works around a bug in the HP C Compiler
13647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13649 # This bug is HP SR number 8606223364.
13650 { echo "$as_me:$LINENO: checking size of long long" >&5
13651 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13652 if test "${ac_cv_sizeof_long_long+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 if test "$cross_compiling" = yes; then
13656 # Depending upon the size, compute the lo and hi bounds.
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13664 typedef long long ac__type_sizeof_;
13668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13694 cat >conftest.$ac_ext <<_ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 $ac_includes_default
13701 typedef long long ac__type_sizeof_;
13705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13712 rm -f conftest.$ac_objext
13713 if { (ac_try="$ac_compile"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_compile") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && {
13726 test -z "$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 } && test -s conftest.$ac_objext; then
13729 ac_hi=$ac_mid; break
13731 echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_lo=`expr $ac_mid + 1`
13735 if test $ac_lo -le $ac_mid; then
13739 ac_mid=`expr 2 '*' $ac_mid + 1`
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13748 cat >conftest.$ac_ext <<_ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 $ac_includes_default
13755 typedef long long ac__type_sizeof_;
13759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13766 rm -f conftest.$ac_objext
13767 if { (ac_try="$ac_compile"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
13775 grep -v '^ *+' conftest.er1 >conftest.err
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } && {
13780 test -z "$ac_c_werror_flag" ||
13781 test ! -s conftest.err
13782 } && test -s conftest.$ac_objext; then
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13792 typedef long long ac__type_sizeof_;
13796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13803 rm -f conftest.$ac_objext
13804 if { (ac_try="$ac_compile"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_compile") 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest.$ac_objext; then
13820 ac_lo=$ac_mid; break
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13825 ac_hi=`expr '(' $ac_mid ')' - 1`
13826 if test $ac_mid -le $ac_hi; then
13830 ac_mid=`expr 2 '*' $ac_mid`
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 # Binary search between lo and hi bounds.
13847 while test "x$ac_lo" != "x$ac_hi"; do
13848 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 $ac_includes_default
13856 typedef long long ac__type_sizeof_;
13860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13867 rm -f conftest.$ac_objext
13868 if { (ac_try="$ac_compile"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_compile") 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } && {
13881 test -z "$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 } && test -s conftest.$ac_objext; then
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 ac_lo=`expr '(' $ac_mid ')' + 1`
13892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13896 '') if test "$ac_cv_type_long_long" = yes; then
13897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13898 See \`config.log' for more details." >&5
13899 echo "$as_me: error: cannot compute sizeof (long long)
13900 See \`config.log' for more details." >&2;}
13901 { (exit 77); exit 77; }; }
13903 ac_cv_sizeof_long_long=0
13907 cat >conftest.$ac_ext <<_ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 $ac_includes_default
13914 typedef long long ac__type_sizeof_;
13915 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13916 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13918 #include <stdlib.h>
13923 FILE *f = fopen ("conftest.val", "w");
13926 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13928 long int i = longval ();
13929 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13931 fprintf (f, "%ld\n", i);
13935 unsigned long int i = ulongval ();
13936 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13938 fprintf (f, "%lu\n", i);
13940 return ferror (f) || fclose (f) != 0;
13946 rm -f conftest$ac_exeext
13947 if { (ac_try="$ac_link"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_link") 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13957 { (case "(($ac_try" in
13958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959 *) ac_try_echo=$ac_try;;
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_try") 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13966 ac_cv_sizeof_long_long=`cat conftest.val`
13968 echo "$as_me: program exited with status $ac_status" >&5
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ( exit $ac_status )
13973 if test "$ac_cv_type_long_long" = yes; then
13974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13975 See \`config.log' for more details." >&5
13976 echo "$as_me: error: cannot compute sizeof (long long)
13977 See \`config.log' for more details." >&2;}
13978 { (exit 77); exit 77; }; }
13980 ac_cv_sizeof_long_long=0
13983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13987 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13988 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13992 cat >>confdefs.h <<_ACEOF
13993 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13997 SIZEOF_SHORT=$ac_cv_sizeof_short
13998 SIZEOF_INT=$ac_cv_sizeof_int
13999 SIZEOF_LONG=$ac_cv_sizeof_long
14000 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14005 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14006 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14007 if test "${ac_cv_c_bigendian+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 # See if sys/param.h defines the BYTE_ORDER macro.
14011 cat >conftest.$ac_ext <<_ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 #include <sys/types.h>
14018 #include <sys/param.h>
14023 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14024 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14025 bogus endian macros
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_compile") 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } && {
14046 test -z "$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14048 } && test -s conftest.$ac_objext; then
14049 # It does; now see whether it defined to BIG_ENDIAN or not.
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <sys/types.h>
14057 #include <sys/param.h>
14062 #if BYTE_ORDER != BIG_ENDIAN
14070 rm -f conftest.$ac_objext
14071 if { (ac_try="$ac_compile"
14072 case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14077 (eval "$ac_compile") 2>conftest.er1
14079 grep -v '^ *+' conftest.er1 >conftest.err
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } && {
14084 test -z "$ac_c_werror_flag" ||
14085 test ! -s conftest.err
14086 } && test -s conftest.$ac_objext; then
14087 ac_cv_c_bigendian=yes
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14092 ac_cv_c_bigendian=no
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 # It does not; compile a test program.
14101 if test "$cross_compiling" = yes; then
14102 # try to guess the endianness by grepping values into an object file
14103 ac_cv_c_bigendian=unknown
14104 cat >conftest.$ac_ext <<_ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h. */
14110 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14111 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14112 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14113 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14114 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14115 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14119 _ascii (); _ebcdic ();
14124 rm -f conftest.$ac_objext
14125 if { (ac_try="$ac_compile"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
14141 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14142 ac_cv_c_bigendian=yes
14144 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14145 if test "$ac_cv_c_bigendian" = unknown; then
14146 ac_cv_c_bigendian=no
14148 # finding both strings is unlikely to happen, but who knows?
14149 ac_cv_c_bigendian=unknown
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14172 /* Are we little or big endian? From Harbison&Steele. */
14176 char c[sizeof (long int)];
14179 return u.c[sizeof (long int) - 1] == 1;
14185 rm -f conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14196 { (case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_try") 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_c_bigendian=no
14207 echo "$as_me: program exited with status $ac_status" >&5
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ( exit $ac_status )
14212 ac_cv_c_bigendian=yes
14214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14223 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14224 case $ac_cv_c_bigendian in
14227 cat >>confdefs.h <<\_ACEOF
14228 #define WORDS_BIGENDIAN 1
14234 { { echo "$as_me:$LINENO: error: unknown endianness
14235 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14236 echo "$as_me: error: unknown endianness
14237 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14238 { (exit 1); exit 1; }; } ;;
14241 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14242 ASM_TYPES_HEADER=./asm_types.h
14244 echo "/* These defines are needed for the public ext2fs.h header file */" \
14246 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14247 uniq tmp_config.$$ >> public_config.h
14249 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14251 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14252 uniq tmp_config.$$ >> public_config.h
14254 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14256 rm -f tmp_config.$$
14257 PUBLIC_CONFIG_HEADER=./public_config.h
14260 for ac_header in inttypes.h
14262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 ac_res=`eval echo '${'$as_ac_Header'}'`
14270 { echo "$as_me:$LINENO: result: $ac_res" >&5
14271 echo "${ECHO_T}$ac_res" >&6; }
14273 # Is the header compilable?
14274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14276 cat >conftest.$ac_ext <<_ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 $ac_includes_default
14283 #include <$ac_header>
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14292 (eval "$ac_compile") 2>conftest.er1
14294 grep -v '^ *+' conftest.er1 >conftest.err
14296 cat conftest.err >&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest.$ac_objext; then
14302 ac_header_compiler=yes
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14307 ac_header_compiler=no
14310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14312 echo "${ECHO_T}$ac_header_compiler" >&6; }
14314 # Is the header present?
14315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14317 cat >conftest.$ac_ext <<_ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 #include <$ac_header>
14325 if { (ac_try="$ac_cpp conftest.$ac_ext"
14326 case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14333 grep -v '^ *+' conftest.er1 >conftest.err
14335 cat conftest.err >&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } >/dev/null && {
14338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14339 test ! -s conftest.err
14341 ac_header_preproc=yes
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_header_preproc=no
14349 rm -f conftest.err conftest.$ac_ext
14350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14351 echo "${ECHO_T}$ac_header_preproc" >&6; }
14353 # So? What about this header?
14354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14360 ac_header_preproc=yes
14363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 eval "$as_ac_Header=\$ac_header_preproc"
14385 ac_res=`eval echo '${'$as_ac_Header'}'`
14386 { echo "$as_me:$LINENO: result: $ac_res" >&5
14387 echo "${ECHO_T}$ac_res" >&6; }
14390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14391 cat >>confdefs.h <<_ACEOF
14392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14399 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14400 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14401 if test "${ac_cv_type_intptr_t+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14404 cat >conftest.$ac_ext <<_ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h. */
14410 $ac_includes_default
14411 typedef intptr_t ac__type_new_;
14415 if ((ac__type_new_ *) 0)
14417 if (sizeof (ac__type_new_))
14423 rm -f conftest.$ac_objext
14424 if { (ac_try="$ac_compile"
14425 case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_compile") 2>conftest.er1
14432 grep -v '^ *+' conftest.er1 >conftest.err
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } && {
14437 test -z "$ac_c_werror_flag" ||
14438 test ! -s conftest.err
14439 } && test -s conftest.$ac_objext; then
14440 ac_cv_type_intptr_t=yes
14442 echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14445 ac_cv_type_intptr_t=no
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14451 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14452 if test $ac_cv_type_intptr_t = yes; then
14454 cat >>confdefs.h <<_ACEOF
14455 #define HAVE_INTPTR_T 1
14461 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14462 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14463 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 cat >conftest.$ac_ext <<_ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 #include <sys/stat.h>
14476 struct stat stat; stat.st_flags = 0;
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14498 e2fsprogs_cv_struct_st_flags=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 e2fsprogs_cv_struct_st_flags=no
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14510 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14511 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14512 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14513 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14514 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 cat >conftest.$ac_ext <<_ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <sys/stat.h>
14527 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest.$ac_objext; then
14549 e2fsprogs_cv_struct_st_flags_immut=yes
14551 echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14554 e2fsprogs_cv_struct_st_flags_immut=no
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14561 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14562 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_STAT_FLAGS 1
14569 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14570 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14571 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 cat >conftest.$ac_ext <<_ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h. */
14580 #include <sys/types.h>
14581 #include <sys/socket.h>
14586 static struct sockaddr ac_aggr;
14587 if (ac_aggr.sa_len)
14593 rm -f conftest.$ac_objext
14594 if { (ac_try="$ac_compile"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_compile") 2>conftest.er1
14602 grep -v '^ *+' conftest.er1 >conftest.err
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } && {
14607 test -z "$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14609 } && test -s conftest.$ac_objext; then
14610 ac_cv_member_struct_sockaddr_sa_len=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 #include <sys/types.h>
14622 #include <sys/socket.h>
14627 static struct sockaddr ac_aggr;
14628 if (sizeof ac_aggr.sa_len)
14634 rm -f conftest.$ac_objext
14635 if { (ac_try="$ac_compile"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_compile") 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest.$ac_objext; then
14651 ac_cv_member_struct_sockaddr_sa_len=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 ac_cv_member_struct_sockaddr_sa_len=no
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14665 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14666 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14668 cat >>confdefs.h <<_ACEOF
14669 #define HAVE_SA_LEN 1
14705 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
14707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 cat >conftest.$ac_ext <<_ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14721 #define $ac_func innocuous_$ac_func
14723 /* System header to define __stub macros and hopefully few prototypes,
14724 which can conflict with char $ac_func (); below.
14725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14726 <limits.h> exists even on freestanding compilers. */
14729 # include <limits.h>
14731 # include <assert.h>
14736 /* Override any GCC internal prototype to avoid an error.
14737 Use char because int might match the return type of a GCC
14738 builtin and then its argument prototype would still apply. */
14743 /* The GNU C library defines this for functions which it implements
14744 to always fail with ENOSYS. Some functions are actually named
14745 something starting with __ and the normal name is an alias. */
14746 #if defined __stub_$ac_func || defined __stub___$ac_func
14753 return $ac_func ();
14758 rm -f conftest.$ac_objext conftest$ac_exeext
14759 if { (ac_try="$ac_link"
14760 case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_link") 2>conftest.er1
14767 grep -v '^ *+' conftest.er1 >conftest.err
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest$ac_exeext &&
14775 $as_test_x conftest$ac_exeext; then
14776 eval "$as_ac_var=yes"
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.$ac_ext >&5
14781 eval "$as_ac_var=no"
14784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14785 conftest$ac_exeext conftest.$ac_ext
14787 ac_res=`eval echo '${'$as_ac_var'}'`
14788 { echo "$as_me:$LINENO: result: $ac_res" >&5
14789 echo "${ECHO_T}$ac_res" >&6; }
14790 if test `eval echo '${'$as_ac_var'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14799 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14800 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14801 if test "${ac_cv_lib_socket_socket+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 ac_check_lib_save_LIBS=$LIBS
14805 LIBS="-lsocket $LIBS"
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (ac_try="$ac_link"
14830 case "(($ac_try" in
14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_link") 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest$ac_exeext &&
14845 $as_test_x conftest$ac_exeext; then
14846 ac_cv_lib_socket_socket=yes
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 ac_cv_lib_socket_socket=no
14854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14855 conftest$ac_exeext conftest.$ac_ext
14856 LIBS=$ac_check_lib_save_LIBS
14858 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14859 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14860 if test $ac_cv_lib_socket_socket = yes; then
14861 SOCKET_LIB=-lsocket
14866 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14867 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14868 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 ac_check_lib_save_LIBS=$LIBS
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14880 /* Override any GCC internal prototype to avoid an error.
14881 Use char because int might match the return type of a GCC
14882 builtin and then its argument prototype would still apply. */
14895 rm -f conftest.$ac_objext conftest$ac_exeext
14896 if { (ac_try="$ac_link"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_link") 2>conftest.er1
14904 grep -v '^ *+' conftest.er1 >conftest.err
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest$ac_exeext &&
14912 $as_test_x conftest$ac_exeext; then
14913 ac_cv_lib_dl_dlopen=yes
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 ac_cv_lib_dl_dlopen=no
14921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14922 conftest$ac_exeext conftest.$ac_ext
14923 LIBS=$ac_check_lib_save_LIBS
14925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14927 if test $ac_cv_lib_dl_dlopen = yes; then
14929 cat >>confdefs.h <<\_ACEOF
14930 #define HAVE_DLOPEN 1
14936 { echo "$as_me:$LINENO: checking for optreset" >&5
14937 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14938 if test "${ac_cv_have_optreset+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <unistd.h>
14950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14951 $EGREP "optreset" >/dev/null 2>&1; then
14952 ac_cv_have_optreset=yes
14954 ac_cv_have_optreset=no
14959 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14960 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14961 if test $ac_cv_have_optreset = yes; then
14962 cat >>confdefs.h <<\_ACEOF
14963 #define HAVE_OPTRESET 1
14967 { echo "$as_me:$LINENO: checking for unified diff option" >&5
14968 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
14969 if diff -u $0 $0 > /dev/null 2>&1 ; then
14974 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14975 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
14979 cat >>confdefs.h <<\_ACEOF
14980 #define HAVE_EXT2_IOCTLS 1
15001 linux* | gnu* | k*bsd*-gnu)
15002 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15004 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15005 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15010 linux* | gnu* | k*bsd*-gnu)
15011 if test "$prefix" = NONE ; then
15013 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15014 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15015 if test "$mandir" = '${prefix}/man' ; then
15016 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15017 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15018 mandir=/usr/share/man
15023 if test "$root_prefix" = NONE ; then
15024 if test "$prefix" = NONE ; then
15025 root_prefix="$ac_default_prefix"
15027 root_prefix="$prefix"
15029 root_bindir=$bindir
15030 root_sbindir=$sbindir
15031 root_libdir=$libdir
15032 root_sysconfdir=$sysconfdir
15034 root_bindir='${root_prefix}/bin'
15035 root_sbindir='${root_prefix}/sbin'
15036 root_libdir='${root_prefix}/lib'
15037 root_sysconfdir='${root_prefix}/etc'
15039 if test "$bindir" != '${exec_prefix}/bin'; then
15040 root_bindir=$bindir
15041 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15042 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15044 if test "$sbindir" != '${exec_prefix}/sbin'; then
15045 root_sbindir=$sbindir
15046 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15047 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15049 if test "$libdir" != '${exec_prefix}/lib'; then
15050 root_libdir=$libdir
15051 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15052 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15054 if test "$sysconfdir" != '${prefix}/etc'; then
15055 root_sysconfdir=$sysconfdir
15056 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15057 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15064 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15065 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15066 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15085 rm -f conftest.$ac_objext conftest$ac_exeext
15086 if { (ac_try="$ac_link"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_link") 2>conftest.er1
15094 grep -v '^ *+' conftest.er1 >conftest.err
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } && {
15099 test -z "$ac_c_werror_flag" ||
15100 test ! -s conftest.err
15101 } && test -s conftest$ac_exeext &&
15102 $as_test_x conftest$ac_exeext; then
15103 ac_cv_e2fsprogs_use_static=yes
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 ac_cv_e2fsprogs_use_static=no
15111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15112 conftest$ac_exeext conftest.$ac_ext
15113 LDFLAGS=$SAVE_LDFLAGS
15118 ac_cv_e2fsprogs_use_static=no
15121 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15122 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15124 if test $ac_cv_e2fsprogs_use_static = yes; then
15125 LDFLAG_STATIC=-static
15130 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15131 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15132 cat >>confdefs.h <<\_ACEOF
15133 #define _INTL_REDIRECT_MACROS 1
15138 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15139 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15142 if test "$cross_compiling" = yes ; then
15145 DO_TEST_SUITE=check
15149 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15150 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15153 if test $cross_compiling = no; then
15154 BUILD_CFLAGS="$CFLAGS"
15155 BUILD_LDFLAGS="$LDFLAGS"
15162 test -d lib || mkdir lib
15163 test -d include || mkdir include
15164 test -d include/linux || mkdir include/linux
15165 test -d include/asm || mkdir include/asm
15166 for i in MCONFIG Makefile e2fsprogs.spec \
15167 util/Makefile util/subst.conf util/gen-tarball \
15168 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15169 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15170 lib/uuid/Makefile lib/uuid/uuid_types.h \
15171 lib/blkid/Makefile lib/blkid/blkid_types.h \
15172 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15173 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15174 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15175 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15176 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15177 if test -d `dirname ${srcdir}/$i` ; then
15178 outlist="$outlist $i"
15181 ac_config_files="$ac_config_files $outlist"
15183 cat >confcache <<\_ACEOF
15184 # This file is a shell script that caches the results of configure
15185 # tests run on this system so they can be shared between configure
15186 # scripts and configure runs, see configure's option --config-cache.
15187 # It is not useful on other systems. If it contains results you don't
15188 # want to keep, you may remove or edit it.
15190 # config.status only pays attention to the cache file if you give it
15191 # the --recheck option to rerun configure.
15193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15195 # following values.
15199 # The following way of writing the cache mishandles newlines in values,
15200 # but we know of no workaround that is simple, portable, and efficient.
15201 # So, we kill variables containing newlines.
15202 # Ultrix sh set writes to stderr and can't be redirected directly,
15203 # and sets the high bit in the cache file unless we assign to the vars.
15205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15206 eval ac_val=\$$ac_var
15210 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15211 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15214 _ | IFS | as_nl) ;; #(
15215 *) $as_unset $ac_var ;;
15221 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15222 *${as_nl}ac_space=\ *)
15223 # `set' does not quote correctly, so add quotes (double-quote
15224 # substitution turns \\\\ into \\, and sed turns \\ into \).
15227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15230 # `set' quotes correctly as required by POSIX, so do not add quotes.
15231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15242 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15244 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15245 if test -w "$cache_file"; then
15246 test "x$cache_file" != "x/dev/null" &&
15247 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15248 echo "$as_me: updating cache $cache_file" >&6;}
15249 cat confcache >$cache_file
15251 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15252 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15258 # Let make expand exec_prefix.
15259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15261 # Transform confdefs.h into DEFS.
15262 # Protect against shell expansion while executing Makefile rules.
15263 # Protect against Makefile macro expansion.
15265 # If the first sed substitution is executed (which looks for macros that
15266 # take arguments), then branch to the quote section. Otherwise,
15267 # look for a macro that doesn't take arguments.
15271 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15273 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15277 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15290 DEFS=`sed -n "$ac_script" confdefs.h`
15295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15296 # 1. Remove the extension, and $U if already installed.
15297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15298 ac_i=`echo "$ac_i" | sed "$ac_script"`
15299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15300 # will be set to the directory where LIBOBJS objects are built.
15301 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15302 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15304 LIBOBJS=$ac_libobjs
15306 LTLIBOBJS=$ac_ltlibobjs
15310 : ${CONFIG_STATUS=./config.status}
15311 ac_clean_files_save=$ac_clean_files
15312 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15313 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15314 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15315 cat >$CONFIG_STATUS <<_ACEOF
15317 # Generated by $as_me.
15318 # Run this file to recreate the current configuration.
15319 # Compiler output produced by configure, useful for debugging
15320 # configure, is in config.log if it exists.
15323 ac_cs_recheck=false
15325 SHELL=\${CONFIG_SHELL-$SHELL}
15328 cat >>$CONFIG_STATUS <<\_ACEOF
15329 ## --------------------- ##
15330 ## M4sh Initialization. ##
15331 ## --------------------- ##
15333 # Be more Bourne compatible
15334 DUALCASE=1; export DUALCASE # for MKS sh
15335 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15338 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15339 # is contrary to our usage. Disable this feature.
15340 alias -g '${1+"$@"}'='"$@"'
15341 setopt NO_GLOB_SUBST
15343 case `(set -o) 2>/dev/null` in
15344 *posix*) set -o posix ;;
15353 # Avoid depending upon Character Ranges.
15354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15357 as_cr_digits='0123456789'
15358 as_cr_alnum=$as_cr_Letters$as_cr_digits
15360 # The user is always right.
15361 if test "${PATH_SEPARATOR+set}" != set; then
15362 echo "#! /bin/sh" >conf$$.sh
15363 echo "exit 0" >>conf$$.sh
15365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15373 # Support unset when possible.
15374 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15382 # We need space, tab and new line, in precisely that order. Quoting is
15383 # there to prevent editors from complaining about space-tab.
15384 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15385 # splitting by setting IFS to empty value.)
15390 # Find who we are. Look in the path if we contain no directory separator.
15392 *[\\/]* ) as_myself=$0 ;;
15393 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15394 for as_dir in $PATH
15397 test -z "$as_dir" && as_dir=.
15398 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15404 # We did not find ourselves, most probably we were run as `sh COMMAND'
15405 # in which case we are not to be found in the path.
15406 if test "x$as_myself" = x; then
15409 if test ! -f "$as_myself"; then
15410 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15411 { (exit 1); exit 1; }
15414 # Work around bugs in pre-3.0 UWIN ksh.
15415 for as_var in ENV MAIL MAILPATH
15416 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15424 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15425 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15426 LC_TELEPHONE LC_TIME
15428 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15429 eval $as_var=C; export $as_var
15431 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15435 # Required to use basename.
15436 if expr a : '\(a\)' >/dev/null 2>&1 &&
15437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15443 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15444 as_basename=basename
15450 # Name of the executable.
15451 as_me=`$as_basename -- "$0" ||
15452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15453 X"$0" : 'X\(//\)$' \| \
15454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15456 sed '/^.*\/\([^/][^/]*\)\/*$/{
15475 as_lineno_1=$LINENO
15476 as_lineno_2=$LINENO
15477 test "x$as_lineno_1" != "x$as_lineno_2" &&
15478 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15480 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15481 # uniformly replaced by the line number. The first 'sed' inserts a
15482 # line-number line after each line using $LINENO; the second 'sed'
15483 # does the real work. The second script uses 'N' to pair each
15484 # line-number line with the line containing $LINENO, and appends
15485 # trailing '-' during substitution so that $LINENO is not a special
15486 # case at line end.
15487 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15488 # scripts with optimization help from Paolo Bonzini. Blame Lee
15489 # E. McMahon (1931-1989) for sed's syntax. :-)
15501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15504 ' >$as_me.lineno &&
15505 chmod +x "$as_me.lineno" ||
15506 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15507 { (exit 1); exit 1; }; }
15509 # Don't try to exec as it changes $[0], causing all sort of problems
15510 # (the dirname of $[0] is not the place where we might find the
15511 # original and so on. Autoconf is especially sensitive to this).
15512 . "./$as_me.lineno"
15513 # Exit status is that of the last command.
15518 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15524 ECHO_C= ECHO_N= ECHO_T=
15525 case `echo -n x` in
15527 case `echo 'x\c'` in
15528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15535 if expr a : '\(a\)' >/dev/null 2>&1 &&
15536 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15542 rm -f conf$$ conf$$.exe conf$$.file
15543 if test -d conf$$.dir; then
15544 rm -f conf$$.dir/conf$$.file
15550 if ln -s conf$$.file conf$$ 2>/dev/null; then
15552 # ... but there are two gotchas:
15553 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15554 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15555 # In both cases, we have to default to `cp -p'.
15556 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15558 elif ln conf$$.file conf$$ 2>/dev/null; then
15563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15564 rmdir conf$$.dir 2>/dev/null
15566 if mkdir -p . 2>/dev/null; then
15569 test -d ./-p && rmdir ./-p
15573 if test -x / >/dev/null 2>&1; then
15574 as_test_x='test -x'
15576 if ls -dL / >/dev/null 2>&1; then
15583 if test -d "$1"; then
15589 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15590 ???[sx]*):;;*)false;;esac;fi
15594 as_executable_p=$as_test_x
15596 # Sed expression to map a string onto a valid CPP name.
15597 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15599 # Sed expression to map a string onto a valid variable name.
15600 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15605 # Save the log message, to keep $[0] and so on meaningful, and to
15606 # report actual input values of CONFIG_FILES etc. instead of their
15607 # values after options handling.
15609 This file was extended by $as_me, which was
15610 generated by GNU Autoconf 2.61. Invocation command line was
15612 CONFIG_FILES = $CONFIG_FILES
15613 CONFIG_HEADERS = $CONFIG_HEADERS
15614 CONFIG_LINKS = $CONFIG_LINKS
15615 CONFIG_COMMANDS = $CONFIG_COMMANDS
15618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15623 cat >>$CONFIG_STATUS <<_ACEOF
15624 # Files that config.status was made for.
15625 config_files="$ac_config_files"
15626 config_commands="$ac_config_commands"
15630 cat >>$CONFIG_STATUS <<\_ACEOF
15632 \`$as_me' instantiates files from templates according to the
15633 current configuration.
15635 Usage: $0 [OPTIONS] [FILE]...
15637 -h, --help print this help, then exit
15638 -V, --version print version number and configuration settings, then exit
15639 -q, --quiet do not print progress messages
15640 -d, --debug don't remove temporary files
15641 --recheck update $as_me by reconfiguring in the same conditions
15642 --file=FILE[:TEMPLATE]
15643 instantiate the configuration file FILE
15645 Configuration files:
15648 Configuration commands:
15651 Report bugs to <bug-autoconf@gnu.org>."
15654 cat >>$CONFIG_STATUS <<_ACEOF
15657 configured by $0, generated by GNU Autoconf 2.61,
15658 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15660 Copyright (C) 2006 Free Software Foundation, Inc.
15661 This config.status script is free software; the Free Software Foundation
15662 gives unlimited permission to copy, distribute and modify it."
15669 cat >>$CONFIG_STATUS <<\_ACEOF
15670 # If no file are specified by the user, then we need to provide default
15671 # value. By we need to know if files were specified by the user.
15677 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15678 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15689 # Handling of the options.
15690 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15692 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15693 echo "$ac_cs_version"; exit ;;
15694 --debug | --debu | --deb | --de | --d | -d )
15696 --file | --fil | --fi | --f )
15698 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15699 ac_need_defaults=false;;
15700 --he | --h | --help | --hel | -h )
15701 echo "$ac_cs_usage"; exit ;;
15702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15703 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15706 # This is an error.
15707 -*) { echo "$as_me: error: unrecognized option: $1
15708 Try \`$0 --help' for more information." >&2
15709 { (exit 1); exit 1; }; } ;;
15711 *) ac_config_targets="$ac_config_targets $1"
15712 ac_need_defaults=false ;;
15718 ac_configure_extra_args=
15720 if $ac_cs_silent; then
15722 ac_configure_extra_args="$ac_configure_extra_args --silent"
15726 cat >>$CONFIG_STATUS <<_ACEOF
15727 if \$ac_cs_recheck; then
15728 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15729 CONFIG_SHELL=$SHELL
15730 export CONFIG_SHELL
15731 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15735 cat >>$CONFIG_STATUS <<\_ACEOF
15739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15740 ## Running $as_me. ##
15746 cat >>$CONFIG_STATUS <<_ACEOF
15750 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15751 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15753 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15754 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15755 LINGUAS="${LINGUAS-%UNSET%}"
15760 cat >>$CONFIG_STATUS <<\_ACEOF
15762 # Handling of arguments.
15763 for ac_config_target in $ac_config_targets
15765 case $ac_config_target in
15766 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15767 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15769 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15770 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15771 { (exit 1); exit 1; }; };;
15776 # If the user did not use the arguments to specify the items to instantiate,
15777 # then the envvar interface is used. Set only those that are not.
15778 # We use the long form for the default assignment because of an extremely
15779 # bizarre bug on SunOS 4.1.3.
15780 if $ac_need_defaults; then
15781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15785 # Have a temporary directory for convenience. Make it in the build tree
15786 # simply because there is no reason against having it here, and in addition,
15787 # creating and moving files from /tmp can sometimes cause problems.
15788 # Hook for its removal unless debugging.
15789 # Note that there is a small window in which the directory will not be cleaned:
15790 # after its creation but before its name has been assigned to `$tmp'.
15794 trap 'exit_status=$?
15795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15797 trap '{ (exit 1); exit 1; }' 1 2 13 15
15799 # Create a (secure) tmp directory for tmp files.
15802 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15803 test -n "$tmp" && test -d "$tmp"
15806 tmp=./conf$$-$RANDOM
15807 (umask 077 && mkdir "$tmp")
15810 echo "$me: cannot create a temporary directory in ." >&2
15811 { (exit 1); exit 1; }
15815 # Set up the sed scripts for CONFIG_FILES section.
15818 # No need to generate the scripts if there are no CONFIG_FILES.
15819 # This happens for instance when ./config.status config.h
15820 if test -n "$CONFIG_FILES"; then
15824 # Create sed commands to just substitute file output variables.
15826 # Remaining file output variables are in a fragment that also has non-file
15832 for ac_last_try in false false false false false :; do
15833 cat >conf$$subs.sed <<_ACEOF
15834 SHELL!$SHELL$ac_delim
15835 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15836 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15837 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15838 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15839 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15840 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15841 exec_prefix!$exec_prefix$ac_delim
15842 prefix!$prefix$ac_delim
15843 program_transform_name!$program_transform_name$ac_delim
15844 bindir!$bindir$ac_delim
15845 sbindir!$sbindir$ac_delim
15846 libexecdir!$libexecdir$ac_delim
15847 datarootdir!$datarootdir$ac_delim
15848 datadir!$datadir$ac_delim
15849 sysconfdir!$sysconfdir$ac_delim
15850 sharedstatedir!$sharedstatedir$ac_delim
15851 localstatedir!$localstatedir$ac_delim
15852 includedir!$includedir$ac_delim
15853 oldincludedir!$oldincludedir$ac_delim
15854 docdir!$docdir$ac_delim
15855 infodir!$infodir$ac_delim
15856 htmldir!$htmldir$ac_delim
15857 dvidir!$dvidir$ac_delim
15858 pdfdir!$pdfdir$ac_delim
15859 psdir!$psdir$ac_delim
15860 libdir!$libdir$ac_delim
15861 localedir!$localedir$ac_delim
15862 mandir!$mandir$ac_delim
15863 DEFS!$DEFS$ac_delim
15864 ECHO_C!$ECHO_C$ac_delim
15865 ECHO_N!$ECHO_N$ac_delim
15866 ECHO_T!$ECHO_T$ac_delim
15867 LIBS!$LIBS$ac_delim
15868 build_alias!$build_alias$ac_delim
15869 host_alias!$host_alias$ac_delim
15870 target_alias!$target_alias$ac_delim
15871 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15872 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15873 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15874 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15875 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15876 build!$build$ac_delim
15877 build_cpu!$build_cpu$ac_delim
15878 build_vendor!$build_vendor$ac_delim
15879 build_os!$build_os$ac_delim
15880 host!$host$ac_delim
15881 host_cpu!$host_cpu$ac_delim
15882 host_vendor!$host_vendor$ac_delim
15883 host_os!$host_os$ac_delim
15885 CFLAGS!$CFLAGS$ac_delim
15886 LDFLAGS!$LDFLAGS$ac_delim
15887 CPPFLAGS!$CPPFLAGS$ac_delim
15888 ac_ct_CC!$ac_ct_CC$ac_delim
15889 EXEEXT!$EXEEXT$ac_delim
15890 OBJEXT!$OBJEXT$ac_delim
15893 GREP!$GREP$ac_delim
15894 EGREP!$EGREP$ac_delim
15895 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15896 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15897 HTREE_CMT!$HTREE_CMT$ac_delim
15898 ELF_CMT!$ELF_CMT$ac_delim
15899 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15900 PROFILE_CMT!$PROFILE_CMT$ac_delim
15901 CHECKER_CMT!$CHECKER_CMT$ac_delim
15902 LIB_EXT!$LIB_EXT$ac_delim
15903 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15904 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15905 TEST_IO_CMT!$TEST_IO_CMT$ac_delim
15906 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15909 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
15911 elif $ac_last_try; then
15912 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15913 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15914 { (exit 1); exit 1; }; }
15916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15920 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15921 if test -n "$ac_eof"; then
15922 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15923 ac_eof=`expr $ac_eof + 1`
15926 cat >>$CONFIG_STATUS <<_ACEOF
15927 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15929 /^[ ]*@MCONFIG@[ ]*$/{
15933 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
15937 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15941 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15942 r $MAKEFILE_PROFILE
15945 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15946 r $MAKEFILE_CHECKER
15949 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15950 r $MAKEFILE_LIBRARY
15953 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15954 r $ASM_TYPES_HEADER
15957 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
15958 r $PUBLIC_CONFIG_HEADER
15963 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15964 s/^/s,@/; s/!/@,|#_!!_#|/
15967 s/'"$ac_delim"'$/,g/; t
15969 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15970 ' >>$CONFIG_STATUS <conf$$subs.sed
15971 rm -f conf$$subs.sed
15972 cat >>$CONFIG_STATUS <<_ACEOF
15978 for ac_last_try in false false false false false :; do
15979 cat >conf$$subs.sed <<_ACEOF
15980 IMAGER_CMT!$IMAGER_CMT$ac_delim
15981 RESIZER_CMT!$RESIZER_CMT$ac_delim
15982 FSCK_PROG!$FSCK_PROG$ac_delim
15983 FSCK_MAN!$FSCK_MAN$ac_delim
15984 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15985 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15986 UUIDD_CMT!$UUIDD_CMT$ac_delim
15987 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15988 PACKAGE!$PACKAGE$ac_delim
15989 VERSION!$VERSION$ac_delim
15990 SET_MAKE!$SET_MAKE$ac_delim
15991 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15992 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15993 INSTALL_DATA!$INSTALL_DATA$ac_delim
15994 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15995 USE_NLS!$USE_NLS$ac_delim
15996 MSGFMT!$MSGFMT$ac_delim
15997 GMSGFMT!$GMSGFMT$ac_delim
15998 XGETTEXT!$XGETTEXT$ac_delim
15999 MSGMERGE!$MSGMERGE$ac_delim
16000 RANLIB!$RANLIB$ac_delim
16001 ALLOCA!$ALLOCA$ac_delim
16002 GLIBC21!$GLIBC21$ac_delim
16003 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16004 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16005 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16006 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16007 LIBICONV!$LIBICONV$ac_delim
16008 LTLIBICONV!$LTLIBICONV$ac_delim
16009 INTLBISON!$INTLBISON$ac_delim
16010 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16011 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16012 CATOBJEXT!$CATOBJEXT$ac_delim
16013 DATADIRNAME!$DATADIRNAME$ac_delim
16014 INSTOBJEXT!$INSTOBJEXT$ac_delim
16015 GENCAT!$GENCAT$ac_delim
16016 INTLOBJS!$INTLOBJS$ac_delim
16017 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16018 INTLLIBS!$INTLLIBS$ac_delim
16019 LIBINTL!$LIBINTL$ac_delim
16020 LTLIBINTL!$LTLIBINTL$ac_delim
16021 POSUB!$POSUB$ac_delim
16022 BINARY_TYPE!$BINARY_TYPE$ac_delim
16024 LN_S!$LN_S$ac_delim
16028 CHMOD!$CHMOD$ac_delim
16031 PERL!$PERL$ac_delim
16032 LDCONFIG!$LDCONFIG$ac_delim
16034 STRIP!$STRIP$ac_delim
16035 MAKEINFO!$MAKEINFO$ac_delim
16036 BUILD_CC!$BUILD_CC$ac_delim
16037 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16038 SIZEOF_INT!$SIZEOF_INT$ac_delim
16039 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16040 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16041 SOCKET_LIB!$SOCKET_LIB$ac_delim
16042 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16043 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16044 LINUX_CMT!$LINUX_CMT$ac_delim
16045 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16046 UNIX_CMT!$UNIX_CMT$ac_delim
16047 root_prefix!$root_prefix$ac_delim
16048 root_bindir!$root_bindir$ac_delim
16049 root_sbindir!$root_sbindir$ac_delim
16050 root_libdir!$root_libdir$ac_delim
16051 root_sysconfdir!$root_sysconfdir$ac_delim
16052 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16053 SS_DIR!$SS_DIR$ac_delim
16054 ET_DIR!$ET_DIR$ac_delim
16055 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16056 INTL_FLAGS!$INTL_FLAGS$ac_delim
16057 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16058 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16059 LIBOBJS!$LIBOBJS$ac_delim
16060 LTLIBOBJS!$LTLIBOBJS$ac_delim
16063 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
16065 elif $ac_last_try; then
16066 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16067 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16068 { (exit 1); exit 1; }; }
16070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16074 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16075 if test -n "$ac_eof"; then
16076 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16077 ac_eof=`expr $ac_eof + 1`
16080 cat >>$CONFIG_STATUS <<_ACEOF
16081 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16085 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16086 s/^/s,@/; s/!/@,|#_!!_#|/
16089 s/'"$ac_delim"'$/,g/; t
16091 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16092 ' >>$CONFIG_STATUS <conf$$subs.sed
16093 rm -f conf$$subs.sed
16094 cat >>$CONFIG_STATUS <<_ACEOF
16101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16103 # trailing colons and then remove the whole line if VPATH becomes empty
16104 # (actually we leave an empty line to preserve line numbers).
16105 if test "x$srcdir" = x.; then
16106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16107 s/:*\$(srcdir):*/:/
16108 s/:*\${srcdir}:*/:/
16110 s/^\([^=]*=[ ]*\):*/\1/
16116 cat >>$CONFIG_STATUS <<\_ACEOF
16117 fi # test -n "$CONFIG_FILES"
16120 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16123 :[FHLC]) ac_mode=$ac_tag; continue;;
16125 case $ac_mode$ac_tag in
16127 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16128 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16129 { (exit 1); exit 1; }; };;
16130 :[FH]-) ac_tag=-:-;;
16131 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16148 -) ac_f="$tmp/stdin";;
16149 *) # Look for the file first in the build tree, then in the source tree
16150 # (if the path is not absolute). The absolute path cannot be DOS-style,
16151 # because $ac_f cannot contain `:'.
16155 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16157 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16158 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16159 { (exit 1); exit 1; }; };;
16161 ac_file_inputs="$ac_file_inputs $ac_f"
16164 # Let's still pretend it is `configure' which instantiates (i.e., don't
16165 # use $as_me), people would be surprised to read:
16166 # /* config.h. Generated by config.status. */
16167 configure_input="Generated from "`IFS=:
16168 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16169 if test x"$ac_file" != x-; then
16170 configure_input="$ac_file. $configure_input"
16171 { echo "$as_me:$LINENO: creating $ac_file" >&5
16172 echo "$as_me: creating $ac_file" >&6;}
16176 *:-:* | *:-) cat >"$tmp/stdin";;
16181 ac_dir=`$as_dirname -- "$ac_file" ||
16182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16183 X"$ac_file" : 'X\(//\)[^/]' \| \
16184 X"$ac_file" : 'X\(//\)$' \| \
16185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16191 /^X\(\/\/\)[^/].*/{
16206 -*) as_dir=./$as_dir;;
16208 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16212 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16213 *) as_qdir=$as_dir;;
16215 as_dirs="'$as_qdir' $as_dirs"
16216 as_dir=`$as_dirname -- "$as_dir" ||
16217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16218 X"$as_dir" : 'X\(//\)[^/]' \| \
16219 X"$as_dir" : 'X\(//\)$' \| \
16220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16226 /^X\(\/\/\)[^/].*/{
16239 test -d "$as_dir" && break
16241 test -z "$as_dirs" || eval "mkdir $as_dirs"
16242 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16243 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16244 { (exit 1); exit 1; }; }; }
16248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16250 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16251 # A ".." for each directory in $ac_dir_suffix.
16252 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16253 case $ac_top_builddir_sub in
16254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16258 ac_abs_top_builddir=$ac_pwd
16259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16260 # for backward compatibility:
16261 ac_top_builddir=$ac_top_build_prefix
16264 .) # We are building in place.
16266 ac_top_srcdir=$ac_top_builddir_sub
16267 ac_abs_top_srcdir=$ac_pwd ;;
16268 [\\/]* | ?:[\\/]* ) # Absolute name.
16269 ac_srcdir=$srcdir$ac_dir_suffix;
16270 ac_top_srcdir=$srcdir
16271 ac_abs_top_srcdir=$srcdir ;;
16272 *) # Relative name.
16273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16274 ac_top_srcdir=$ac_top_build_prefix$srcdir
16275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16292 cat >>$CONFIG_STATUS <<\_ACEOF
16293 # If the template does not know about datarootdir, expand it.
16294 # FIXME: This hack should be removed a few years after 2.60.
16295 ac_datarootdir_hack=; ac_datarootdir_seen=
16297 case `sed -n '/datarootdir/ {
16306 ' $ac_file_inputs` in
16307 *datarootdir*) ac_datarootdir_seen=yes;;
16308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16309 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16310 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16312 cat >>$CONFIG_STATUS <<_ACEOF
16313 ac_datarootdir_hack='
16314 s&@datadir@&$datadir&g
16315 s&@docdir@&$docdir&g
16316 s&@infodir@&$infodir&g
16317 s&@localedir@&$localedir&g
16318 s&@mandir@&$mandir&g
16319 s&\\\${datarootdir}&$datarootdir&g' ;;
16323 # Neutralize VPATH when `$srcdir' = `.'.
16324 # Shell code in configure.ac might set extrasub.
16325 # FIXME: do we really want to maintain this feature?
16326 cat >>$CONFIG_STATUS <<_ACEOF
16330 cat >>$CONFIG_STATUS <<\_ACEOF
16332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16333 s&@configure_input@&$configure_input&;t t
16334 s&@top_builddir@&$ac_top_builddir_sub&;t t
16335 s&@srcdir@&$ac_srcdir&;t t
16336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16337 s&@top_srcdir@&$ac_top_srcdir&;t t
16338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16339 s&@builddir@&$ac_builddir&;t t
16340 s&@abs_builddir@&$ac_abs_builddir&;t t
16341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16342 s&@INSTALL@&$ac_INSTALL&;t t
16343 $ac_datarootdir_hack
16344 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16346 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16347 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16348 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16349 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16350 which seems to be undefined. Please make sure it is defined." >&5
16351 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16352 which seems to be undefined. Please make sure it is defined." >&2;}
16356 -) cat "$tmp/out"; rm -f "$tmp/out";;
16357 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16362 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16363 echo "$as_me: executing $ac_file commands" >&6;}
16368 case $ac_file$ac_mode in
16370 for ac_file in $CONFIG_FILES; do
16371 # Support "outfile[:infile[:infile...]]"
16373 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16375 # PO directories have a Makefile.in generated from Makefile.in.in.
16376 case "$ac_file" in */Makefile.in)
16377 # Adjust a relative srcdir.
16378 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16379 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16380 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16381 # In autoconf-2.13 it is called $ac_given_srcdir.
16382 # In autoconf-2.50 it is called $srcdir.
16383 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16384 case "$ac_given_srcdir" in
16385 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16386 /*) top_srcdir="$ac_given_srcdir" ;;
16387 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16389 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16390 rm -f "$ac_dir/POTFILES"
16391 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16392 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16393 POMAKEFILEDEPS="POTFILES.in"
16394 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16395 # on $ac_dir but don't depend on user-specified configuration
16397 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16398 # The LINGUAS file contains the set of available languages.
16399 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16400 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16402 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16403 # Hide the ALL_LINGUAS assigment from automake.
16404 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16405 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16407 # The set of available languages was given in configure.in.
16408 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16411 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16412 # Compute UPDATEPOFILES
16413 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16414 # Compute DUMMYPOFILES
16415 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16417 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16418 case "$ac_given_srcdir" in
16420 *) srcdirpre='$(srcdir)/' ;;
16426 for lang in $ALL_LINGUAS; do
16427 POFILES="$POFILES $srcdirpre$lang.po"
16428 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16429 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16430 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16432 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16433 # environment variable.
16435 if test -n "$ALL_LINGUAS"; then
16436 for presentlang in $ALL_LINGUAS; do
16438 if test "%UNSET%" != "$LINGUAS"; then
16439 desiredlanguages="$LINGUAS"
16441 desiredlanguages="$ALL_LINGUAS"
16443 for desiredlang in $desiredlanguages; do
16444 # Use the presentlang catalog if desiredlang is
16445 # a. equal to presentlang, or
16446 # b. a variant of presentlang (because in this case,
16447 # presentlang can be used as a fallback for messages
16448 # which are not translated in the desiredlang catalog).
16449 case "$desiredlang" in
16450 "$presentlang"*) useit=yes;;
16453 if test $useit = yes; then
16454 INST_LINGUAS="$INST_LINGUAS $presentlang"
16459 if test -n "$INST_LINGUAS"; then
16460 for lang in $INST_LINGUAS; do
16461 CATALOGS="$CATALOGS $lang.gmo"
16464 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16465 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"
16466 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16467 if test -f "$f"; then
16469 *.orig | *.bak | *~) ;;
16470 *) cat "$f" >> "$ac_dir/Makefile" ;;
16483 { (exit 0); exit 0; }
16485 chmod +x $CONFIG_STATUS
16486 ac_clean_files=$ac_clean_files_save
16489 # configure is writing to config.log, and then calls config.status.
16490 # config.status does its own redirection, appending to config.log.
16491 # Unfortunately, on DOS this fails, as config.log is still kept open
16492 # by configure, so config.status won't be able to write to it; its
16493 # output is simply discarded. So we exec the FD to /dev/null,
16494 # effectively closing config.log, so it can be properly (re)opened and
16495 # appended to by config.status. When coming back to configure, we
16496 # need to make the FD available again.
16497 if test "$no_create" != yes; then
16499 ac_config_status_args=
16500 test "$silent" = yes &&
16501 ac_config_status_args="$ac_config_status_args --quiet"
16503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16506 # would make configure fail if this is the last instruction.
16507 $ac_cs_success || { (exit 1); exit 1; }
16510 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi