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="dump/dump.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
700 ac_subst_files='MCONFIG'
701 ac_precious_vars='build_alias
712 # Initialize some variables set by options.
714 ac_init_version=false
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
724 program_transform_name=s,x,x,
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE}'
749 infodir='${datarootdir}/info'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 # Accept the important Cygnus configure options, so we can diagnose typos.
776 case $ac_dashdash$ac_option in
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
790 -cache-file | --cache-file | --cache-fil | --cache-fi \
791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792 ac_prev=cache_file ;;
793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795 cache_file=$ac_optarg ;;
798 cache_file=config.cache ;;
800 -datadir | --datadir | --datadi | --datad)
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806 | --dataroo | --dataro | --datar)
807 ac_prev=datarootdir ;;
808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810 datarootdir=$ac_optarg ;;
812 -disable-* | --disable-*)
813 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
817 { (exit 1); exit 1; }; }
818 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
819 eval enable_$ac_feature=no ;;
821 -docdir | --docdir | --docdi | --doc | --do)
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 -enable-* | --enable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838 eval enable_$ac_feature=\$ac_optarg ;;
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
847 exec_prefix=$ac_optarg ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
853 -help | --help | --hel | --he | -h)
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 htmldir=$ac_optarg ;;
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
876 includedir=$ac_optarg ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
893 libexecdir=$ac_optarg ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 # Obsolete; use --without-fp.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931 oldincludedir=$ac_optarg ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943 program_prefix=$ac_optarg ;;
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950 program_suffix=$ac_optarg ;;
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
967 program_transform_name=$ac_optarg ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 -psdir | --psdir | --psdi | --psd | --ps)
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1002 -site=* | --site=* | --sit=*)
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1029 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid package name: $ac_package" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1035 eval with_$ac_package=\$ac_optarg ;;
1037 -without-* | --without-*)
1038 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid package name: $ac_package" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1044 eval with_$ac_package=no ;;
1047 # Obsolete; use --with-x.
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1055 x_includes=$ac_optarg ;;
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062 x_libraries=$ac_optarg ;;
1064 -*) { echo "$as_me: error: unrecognized option: $ac_option
1065 Try \`$0 --help' for more information." >&2
1066 { (exit 1); exit 1; }; }
1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1074 { (exit 1); exit 1; }; }
1075 eval $ac_envvar=\$ac_optarg
1076 export $ac_envvar ;;
1079 # FIXME: should be removed in autoconf 3.0.
1080 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 if test -n "$ac_prev"; then
1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091 { echo "$as_me: error: missing argument to $ac_option" >&2
1092 { (exit 1); exit 1; }; }
1095 # Be sure to have absolute directory names.
1096 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097 datadir sysconfdir sharedstatedir localstatedir includedir \
1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099 libdir localedir mandir
1101 eval ac_val=\$$ac_var
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1107 { (exit 1); exit 1; }; }
1110 # There might be people who depend on the old broken behavior: `$host'
1111 # used to hold the argument of --host etc.
1112 # FIXME: To remove some day.
1115 target=$target_alias
1117 # FIXME: To remove some day.
1118 if test "x$host_alias" != x; then
1119 if test "x$build_alias" = x; then
1120 cross_compiling=maybe
1121 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1122 If a cross compiler is detected then cross compile mode will be used." >&2
1123 elif test "x$build_alias" != "x$host_alias"; then
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131 test "$silent" = yes && exec 6>/dev/null
1134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 ac_ls_di=`ls -di .` &&
1136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137 { echo "$as_me: error: Working directory cannot be determined" >&2
1138 { (exit 1); exit 1; }; }
1139 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1140 { echo "$as_me: error: pwd does not report name of working directory" >&2
1141 { (exit 1); exit 1; }; }
1144 # Find the source files, if location was not specified.
1145 if test -z "$srcdir"; then
1146 ac_srcdir_defaulted=yes
1147 # Try the directory containing this script, then the parent directory.
1148 ac_confdir=`$as_dirname -- "$0" ||
1149 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1150 X"$0" : 'X\(//\)[^/]' \| \
1151 X"$0" : 'X\(//\)$' \| \
1152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1176 ac_srcdir_defaulted=no
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1180 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1181 { (exit 1); exit 1; }; }
1183 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1186 { (exit 1); exit 1; }; }
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
1192 # Remove unnecessary trailing slashes from srcdir.
1193 # Double slashes in file names in object file debugging info
1194 # mess up M-x gdb in Emacs.
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 for ac_var in $ac_precious_vars; do
1199 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_env_${ac_var}_value=\$${ac_var}
1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1206 # Report the --help message.
1208 if test "$ac_init_help" = "long"; then
1209 # Omit some internal or obsolete options to make the list less imposing.
1210 # This message is too long to be a string in the A/UX 3.1 sh.
1212 \`configure' configures this package to adapt to many kinds of systems.
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
1216 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217 VAR=VALUE. See below for descriptions of some of the useful variables.
1219 Defaults for the options are specified in brackets.
1222 -h, --help display this help and exit
1223 --help=short display options specific to this package
1224 --help=recursive display the short help of all the included packages
1225 -V, --version display version information and exit
1226 -q, --quiet, --silent do not print \`checking...' messages
1227 --cache-file=FILE cache test results in FILE [disabled]
1228 -C, --config-cache alias for \`--cache-file=config.cache'
1229 -n, --no-create do not create output files
1230 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1232 Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
1234 [$ac_default_prefix]
1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1238 By default, \`make install' will install all the files in
1239 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1240 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241 for instance \`--prefix=\$HOME'.
1243 For better control, use the options below.
1245 Fine tuning of the installation directories:
1246 --bindir=DIR user executables [EPREFIX/bin]
1247 --sbindir=DIR system admin executables [EPREFIX/sbin]
1248 --libexecdir=DIR program executables [EPREFIX/libexec]
1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1252 --libdir=DIR object code libraries [EPREFIX/lib]
1253 --includedir=DIR C header files [PREFIX/include]
1254 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1257 --infodir=DIR info documentation [DATAROOTDIR/info]
1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1259 --mandir=DIR man documentation [DATAROOTDIR/man]
1260 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1261 --htmldir=DIR html documentation [DOCDIR]
1262 --dvidir=DIR dvi documentation [DOCDIR]
1263 --pdfdir=DIR pdf documentation [DOCDIR]
1264 --psdir=DIR ps documentation [DOCDIR]
1271 if test -n "$ac_init_help"; then
1276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1278 --enable-debug include debugging code (default is NO)
1279 --enable-static link dump and restore statically (default is NO)
1280 --enable-staticz link libz and libbz2 statically (default is NO)
1281 --enable-rmt compile and install rmt (default is YES)
1282 --enable-ermt compile ermt, an encrypting version of rmt (default is NO)
1283 --enable-kerberos compile kerberos extensions (default is NO)
1284 --enable-readline enable readline support in restore (default is YES)
1285 --enable-oldstylefscript enable old style F script (no arguments) (default is NO)
1286 --enable-largefile enable Large File System support (default is YES)
1287 --enable-qfa enable Quick File Access support (default is YES)
1288 --enable-qfadebug include Quick File Access debugging code (default is NO)
1289 --enable-macosx include Mac OSX restore compatibility (default is NO)
1290 --enable-transselinux restore can translate SELinux EAs (default is YES)
1293 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1294 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1295 --with-cc=COMPILER select compiler to use
1296 --with-linker=LINKER select linker to use
1297 --with-ccopts=CCOPTS select compiler command line options
1298 --with-ldopts=LDOPTS select linker command line options
1299 --with-binowner=USER select owner for binaries
1300 --with-bingrp=GROUP select group for binaries
1301 --with-binmode=MODE select mode for binaries
1302 --with-manowner=USER select owner for manual pages
1303 --with-mangrp=GROUP select group for manual pages
1304 --with-manmode=MODE select mode for manual pages
1305 --with-dumpdatespath=PATH select path for dumpdates file
1307 Some influential environment variables:
1308 CC C compiler command
1309 CFLAGS C compiler flags
1310 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1311 nonstandard directory <lib dir>
1312 LIBS libraries to pass to the linker, e.g. -l<library>
1313 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1314 you have headers in a nonstandard directory <include dir>
1317 Use these variables to override the choices made by `configure' or to help
1318 it to find libraries and programs with nonstandard names/locations.
1324 if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1327 test -d "$ac_dir" || continue
1331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1334 # A ".." for each directory in $ac_dir_suffix.
1335 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1336 case $ac_top_builddir_sub in
1337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1341 ac_abs_top_builddir=$ac_pwd
1342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1343 # for backward compatibility:
1344 ac_top_builddir=$ac_top_build_prefix
1347 .) # We are building in place.
1349 ac_top_srcdir=$ac_top_builddir_sub
1350 ac_abs_top_srcdir=$ac_pwd ;;
1351 [\\/]* | ?:[\\/]* ) # Absolute name.
1352 ac_srcdir=$srcdir$ac_dir_suffix;
1353 ac_top_srcdir=$srcdir
1354 ac_abs_top_srcdir=$srcdir ;;
1356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1357 ac_top_srcdir=$ac_top_build_prefix$srcdir
1358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1362 cd "$ac_dir" || { ac_status=$?; continue; }
1363 # Check for guested configure.
1364 if test -f "$ac_srcdir/configure.gnu"; then
1366 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1367 elif test -f "$ac_srcdir/configure"; then
1369 $SHELL "$ac_srcdir/configure" --help=recursive
1371 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1373 cd "$ac_pwd" || { ac_status=$?; break; }
1377 test -n "$ac_init_help" && exit $ac_status
1378 if $ac_init_version; then
1381 generated by GNU Autoconf 2.61
1383 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1384 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1385 This configure script is free software; the Free Software Foundation
1386 gives unlimited permission to copy, distribute and modify it.
1390 cat >config.log <<_ACEOF
1391 This file contains any messages produced by compilers while
1392 running configure, to aid debugging if configure makes a mistake.
1394 It was created by $as_me, which was
1395 generated by GNU Autoconf 2.61. Invocation command line was
1407 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1408 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1409 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1410 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1411 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1413 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1414 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1416 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1417 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1418 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1419 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1420 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1421 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1422 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 echo "PATH: $as_dir"
1447 # Keep a trace of the command line.
1448 # Strip out --no-create and --no-recursion so they do not pile up.
1449 # Strip out --silent because we don't want to record it for future runs.
1450 # Also quote any args containing shell meta-characters.
1451 # Make two passes to allow for proper duplicate-argument suppression.
1455 ac_must_keep_next=false
1461 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1463 | -silent | --silent | --silen | --sile | --sil)
1466 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1471 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1472 if test $ac_must_keep_next = true; then
1473 ac_must_keep_next=false # Got value, back to normal.
1476 *=* | --config-cache | -C | -disable-* | --disable-* \
1477 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1478 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1479 | -with-* | --with-* | -without-* | --without-* | --x)
1480 case "$ac_configure_args0 " in
1481 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1484 -* ) ac_must_keep_next=true ;;
1487 ac_configure_args="$ac_configure_args '$ac_arg'"
1492 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1493 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1495 # When interrupted or exit'd, cleanup temporary files, and complete
1496 # config.log. We remove comments because anyway the quotes in there
1497 # would cause problems or look ugly.
1498 # WARNING: Use '\'' to represent an apostrophe within the trap.
1499 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1500 trap 'exit_status=$?
1501 # Save into config.log some information that might help in debugging.
1506 ## ---------------- ##
1507 ## Cache variables. ##
1508 ## ---------------- ##
1511 # The following way of writing the cache mishandles newlines in values,
1513 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1514 eval ac_val=\$$ac_var
1518 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1519 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1522 _ | IFS | as_nl) ;; #(
1523 *) $as_unset $ac_var ;;
1528 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1529 *${as_nl}ac_space=\ *)
1531 "s/'\''/'\''\\\\'\'''\''/g;
1532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1543 ## ----------------- ##
1544 ## Output variables. ##
1545 ## ----------------- ##
1548 for ac_var in $ac_subst_vars
1550 eval ac_val=\$$ac_var
1552 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554 echo "$ac_var='\''$ac_val'\''"
1558 if test -n "$ac_subst_files"; then
1560 ## ------------------- ##
1561 ## File substitutions. ##
1562 ## ------------------- ##
1565 for ac_var in $ac_subst_files
1567 eval ac_val=\$$ac_var
1569 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1571 echo "$ac_var='\''$ac_val'\''"
1576 if test -s confdefs.h; then
1586 test "$ac_signal" != 0 &&
1587 echo "$as_me: caught signal $ac_signal"
1588 echo "$as_me: exit $exit_status"
1590 rm -f core *.core core.conftest.* &&
1591 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1594 for ac_signal in 1 2 13 15; do
1595 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1599 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1600 rm -f -r conftest* confdefs.h
1602 # Predefined preprocessor variables.
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_NAME "$PACKAGE_NAME"
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1614 cat >>confdefs.h <<_ACEOF
1615 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE_STRING "$PACKAGE_STRING"
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1629 # Let the site file select an alternate cache file if it wants to.
1630 # Prefer explicitly selected file to automatically selected ones.
1631 if test -n "$CONFIG_SITE"; then
1632 set x "$CONFIG_SITE"
1633 elif test "x$prefix" != xNONE; then
1634 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1636 set x "$ac_default_prefix/share/config.site" \
1637 "$ac_default_prefix/etc/config.site"
1642 if test -r "$ac_site_file"; then
1643 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1644 echo "$as_me: loading site script $ac_site_file" >&6;}
1645 sed 's/^/| /' "$ac_site_file" >&5
1650 if test -r "$cache_file"; then
1651 # Some versions of bash will fail to source /dev/null (special
1652 # files actually), so we avoid doing that.
1653 if test -f "$cache_file"; then
1654 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1655 echo "$as_me: loading cache $cache_file" >&6;}
1657 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1658 *) . "./$cache_file";;
1662 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1663 echo "$as_me: creating cache $cache_file" >&6;}
1667 # Check that the precious variables saved in the cache have kept the same
1669 ac_cache_corrupted=false
1670 for ac_var in $ac_precious_vars; do
1671 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1672 eval ac_new_set=\$ac_env_${ac_var}_set
1673 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1674 eval ac_new_val=\$ac_env_${ac_var}_value
1675 case $ac_old_set,$ac_new_set in
1677 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1678 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1679 ac_cache_corrupted=: ;;
1681 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1682 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1683 ac_cache_corrupted=: ;;
1686 if test "x$ac_old_val" != "x$ac_new_val"; then
1687 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1688 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1689 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1690 echo "$as_me: former value: $ac_old_val" >&2;}
1691 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1692 echo "$as_me: current value: $ac_new_val" >&2;}
1693 ac_cache_corrupted=:
1696 # Pass precious variables to config.status.
1697 if test "$ac_new_set" = set; then
1699 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1700 *) ac_arg=$ac_var=$ac_new_val ;;
1702 case " $ac_configure_args " in
1703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1704 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1708 if $ac_cache_corrupted; then
1709 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1710 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1711 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1712 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1713 { (exit 1); exit 1; }; }
1733 ac_cpp='$CPP $CPPFLAGS'
1734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1744 ac_config_headers="$ac_config_headers config.h"
1747 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1749 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1750 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 cat >conftest.make <<\_ACEOF
1756 @echo '@@@%%%=$(MAKE)=@@@%%%'
1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1759 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1761 eval ac_cv_prog_make_${ac_make}_set=yes;;
1763 eval ac_cv_prog_make_${ac_make}_set=no;;
1767 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1768 { echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6; }
1772 { echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6; }
1774 SET_MAKE="MAKE=${MAKE-make}"
1777 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
1778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1780 if test "$LN_S" = "ln -s"; then
1781 { echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6; }
1784 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1785 echo "${ECHO_T}no, using $LN_S" >&6; }
1788 # Extract the first word of "cp", so it can be a program name with args.
1789 set dummy cp; ac_word=$2
1790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1792 if test "${ac_cv_path_CP+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1807 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1820 if test -n "$CP"; then
1821 { echo "$as_me:$LINENO: result: $CP" >&5
1822 echo "${ECHO_T}$CP" >&6; }
1824 { echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6; }
1829 # Extract the first word of "mv", so it can be a program name with args.
1830 set dummy mv; ac_word=$2
1831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1833 if test "${ac_cv_path_MV+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1848 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1861 if test -n "$MV"; then
1862 { echo "$as_me:$LINENO: result: $MV" >&5
1863 echo "${ECHO_T}$MV" >&6; }
1865 { echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6; }
1870 # Extract the first word of "rm", so it can be a program name with args.
1871 set dummy rm; ac_word=$2
1872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1874 if test "${ac_cv_path_RM+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1889 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1902 if test -n "$RM"; then
1903 { echo "$as_me:$LINENO: result: $RM" >&5
1904 echo "${ECHO_T}$RM" >&6; }
1906 { echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6; }
1911 if test -n "$ac_tool_prefix"; then
1912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1913 set dummy ${ac_tool_prefix}ar; ac_word=$2
1914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1916 if test "${ac_cv_prog_AR+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 if test -n "$AR"; then
1920 ac_cv_prog_AR="$AR" # Let the user override the test.
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1929 ac_cv_prog_AR="${ac_tool_prefix}ar"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 if test -n "$AR"; then
1941 { echo "$as_me:$LINENO: result: $AR" >&5
1942 echo "${ECHO_T}$AR" >&6; }
1944 { echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6; }
1950 if test -z "$ac_cv_prog_AR"; then
1952 # Extract the first word of "ar", so it can be a program name with args.
1953 set dummy ar; ac_word=$2
1954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$ac_ct_AR"; then
1960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1969 ac_cv_prog_ac_ct_AR="ar"
1970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1980 if test -n "$ac_ct_AR"; then
1981 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1982 echo "${ECHO_T}$ac_ct_AR" >&6; }
1984 { echo "$as_me:$LINENO: result: no" >&5
1985 echo "${ECHO_T}no" >&6; }
1988 if test "x$ac_ct_AR" = x; then
1991 case $cross_compiling:$ac_tool_warned in
1993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1994 whose name does not start with the host triplet. If you think this
1995 configuration is useful to you, please write to autoconf@gnu.org." >&5
1996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1997 whose name does not start with the host triplet. If you think this
1998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1999 ac_tool_warned=yes ;;
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_RANLIB+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$RANLIB"; then
2016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 RANLIB=$ac_cv_prog_RANLIB
2036 if test -n "$RANLIB"; then
2037 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2038 echo "${ECHO_T}$RANLIB" >&6; }
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2046 if test -z "$ac_cv_prog_RANLIB"; then
2047 ac_ct_RANLIB=$RANLIB
2048 # Extract the first word of "ranlib", so it can be a program name with args.
2049 set dummy ranlib; ac_word=$2
2050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 if test -n "$ac_ct_RANLIB"; then
2056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2065 ac_cv_prog_ac_ct_RANLIB="ranlib"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2076 if test -n "$ac_ct_RANLIB"; then
2077 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2078 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2080 { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2084 if test "x$ac_ct_RANLIB" = x; then
2087 case $cross_compiling:$ac_tool_warned in
2089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2090 whose name does not start with the host triplet. If you think this
2091 configuration is useful to you, please write to autoconf@gnu.org." >&5
2092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet. If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2095 ac_tool_warned=yes ;;
2097 RANLIB=$ac_ct_RANLIB
2100 RANLIB="$ac_cv_prog_RANLIB"
2103 if test -n "$ac_tool_prefix"; then
2104 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
2105 set dummy ${ac_tool_prefix}patch; ac_word=$2
2106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2108 if test "${ac_cv_prog_PATCH+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 if test -n "$PATCH"; then
2112 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 ac_cv_prog_PATCH="${ac_tool_prefix}patch"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 PATCH=$ac_cv_prog_PATCH
2132 if test -n "$PATCH"; then
2133 { echo "$as_me:$LINENO: result: $PATCH" >&5
2134 echo "${ECHO_T}$PATCH" >&6; }
2136 { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2142 if test -z "$ac_cv_prog_PATCH"; then
2144 # Extract the first word of "patch", so it can be a program name with args.
2145 set dummy patch; ac_word=$2
2146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2148 if test "${ac_cv_prog_ac_ct_PATCH+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 if test -n "$ac_ct_PATCH"; then
2152 ac_cv_prog_ac_ct_PATCH="$ac_ct_PATCH" # Let the user override the test.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 ac_cv_prog_ac_ct_PATCH="patch"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 ac_ct_PATCH=$ac_cv_prog_ac_ct_PATCH
2172 if test -n "$ac_ct_PATCH"; then
2173 { echo "$as_me:$LINENO: result: $ac_ct_PATCH" >&5
2174 echo "${ECHO_T}$ac_ct_PATCH" >&6; }
2176 { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2180 if test "x$ac_ct_PATCH" = x; then
2183 case $cross_compiling:$ac_tool_warned in
2185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2186 whose name does not start with the host triplet. If you think this
2187 configuration is useful to you, please write to autoconf@gnu.org." >&5
2188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2189 whose name does not start with the host triplet. If you think this
2190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2191 ac_tool_warned=yes ;;
2196 PATCH="$ac_cv_prog_PATCH"
2200 ac_cpp='$CPP $CPPFLAGS'
2201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204 if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 if test -n "$CC"; then
2234 { echo "$as_me:$LINENO: result: $CC" >&5
2235 echo "${ECHO_T}$CC" >&6; }
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2243 if test -z "$ac_cv_prog_CC"; then
2245 # Extract the first word of "gcc", so it can be a program name with args.
2246 set dummy gcc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 if test -n "$ac_ct_CC"; then
2253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_prog_ac_ct_CC="gcc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273 if test -n "$ac_ct_CC"; then
2274 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2275 echo "${ECHO_T}$ac_ct_CC" >&6; }
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2281 if test "x$ac_ct_CC" = x; then
2284 case $cross_compiling:$ac_tool_warned in
2286 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2287 whose name does not start with the host triplet. If you think this
2288 configuration is useful to you, please write to autoconf@gnu.org." >&5
2289 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2290 whose name does not start with the host triplet. If you think this
2291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2292 ac_tool_warned=yes ;;
2300 if test -z "$CC"; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2303 set dummy ${ac_tool_prefix}cc; ac_word=$2
2304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306 if test "${ac_cv_prog_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_CC="${ac_tool_prefix}cc"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 if test -n "$CC"; then
2331 { echo "$as_me:$LINENO: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6; }
2334 { echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6; }
2341 if test -z "$CC"; then
2342 # Extract the first word of "cc", so it can be a program name with args.
2343 set dummy cc; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2361 ac_prog_rejected=yes
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test $ac_prog_rejected = yes; then
2373 # We found a bogon in the path, so make sure we never use it.
2374 set dummy $ac_cv_prog_CC
2376 if test $# != 0; then
2377 # We chose a different compiler from the bogus one.
2378 # However, it has the same basename, so the bogon will be chosen
2379 # first if we set CC to just the basename; use the full file name.
2381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2387 if test -n "$CC"; then
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2397 if test -z "$CC"; then
2398 if test -n "$ac_tool_prefix"; then
2399 for ac_prog in cl.exe
2401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 if test -n "$CC"; then
2430 { echo "$as_me:$LINENO: result: $CC" >&5
2431 echo "${ECHO_T}$CC" >&6; }
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2438 test -n "$CC" && break
2441 if test -z "$CC"; then
2443 for ac_prog in cl.exe
2445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 set dummy $ac_prog; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_CC="$ac_prog"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6; }
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2482 test -n "$ac_ct_CC" && break
2485 if test "x$ac_ct_CC" = x; then
2488 case $cross_compiling:$ac_tool_warned in
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496 ac_tool_warned=yes ;;
2505 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: no acceptable C compiler found in \$PATH
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2511 # Provide some information about the compiler.
2512 echo "$as_me:$LINENO: checking for C compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
2514 { (ac_try="$ac_compiler --version >&5"
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compiler --version >&5") 2>&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 { (ac_try="$ac_compiler -v >&5"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compiler -v >&5") 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (ac_try="$ac_compiler -V >&5"
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compiler -V >&5") 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2565 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2569 # List of possible output files, starting from the most likely.
2570 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2571 # only as a last resort. b.out is created by i960 compilers.
2572 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2574 # The IRIX 6 linker writes into existing files which may not be
2575 # executable, retaining their permissions. Remove them first so a
2576 # subsequent execution test works.
2578 for ac_file in $ac_files
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2582 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2587 if { (ac_try="$ac_link_default"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_link_default") 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
2597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2600 # so that the user can short-circuit this test for compilers unknown to
2602 for ac_file in $ac_files ''
2604 test -f "$ac_file" || continue
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2609 # We found the default executable, but exeext='' is most
2613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2617 # We set ac_cv_exeext here because the later test for it is not
2618 # safe: cross compilers may not add the suffix if given an `-o'
2619 # argument, so we may need to know it at that point already.
2620 # Even if this section looks crufty: it has the advantage of
2627 test "$ac_cv_exeext" = no && ac_cv_exeext=
2633 { echo "$as_me:$LINENO: result: $ac_file" >&5
2634 echo "${ECHO_T}$ac_file" >&6; }
2635 if test -z "$ac_file"; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2639 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C compiler cannot create executables
2642 See \`config.log' for more details." >&2;}
2643 { (exit 77); exit 77; }; }
2646 ac_exeext=$ac_cv_exeext
2648 # Check that the compiler produces executables we can run. If not, either
2649 # the compiler is broken, or we cross compile.
2650 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2651 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2652 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2653 # If not cross compiling, check that we can run a simple program.
2654 if test "$cross_compiling" != yes; then
2655 if { ac_try='./$ac_file'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 if test "$cross_compiling" = maybe; then
2670 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot run C compiled programs.
2674 If you meant to cross compile, use \`--host'.
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2680 { echo "$as_me:$LINENO: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6; }
2683 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2684 ac_clean_files=$ac_clean_files_save
2685 # Check that the compiler produces executables we can run. If not, either
2686 # the compiler is broken, or we cross compile.
2687 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2688 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2689 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2690 echo "${ECHO_T}$cross_compiling" >&6; }
2692 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2693 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2694 if { (ac_try="$ac_link"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_link") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2705 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2706 # work properly (i.e., refer to `conftest.exe'), while it won't with
2708 for ac_file in conftest.exe conftest conftest.*; do
2709 test -f "$ac_file" || continue
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2725 rm -f conftest$ac_cv_exeext
2726 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2729 rm -f conftest.$ac_ext
2730 EXEEXT=$ac_cv_exeext
2732 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2733 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2734 if test "${ac_cv_objext+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 cat >conftest.$ac_ext <<_ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2752 rm -f conftest.o conftest.obj
2753 if { (ac_try="$ac_compile"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779 { (exit 1); exit 1; }; }
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2784 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6; }
2786 OBJEXT=$ac_cv_objext
2788 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2811 rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2820 grep -v '^ *+' conftest.er1 >conftest.err
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2840 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2842 GCC=`test $ac_compiler_gnu = yes && echo yes`
2843 ac_test_CFLAGS=${CFLAGS+set}
2844 ac_save_CFLAGS=$CFLAGS
2845 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_cc_g+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 ac_save_c_werror_flag=$ac_c_werror_flag
2851 ac_c_werror_flag=yes
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2869 rm -f conftest.$ac_objext
2870 if { (ac_try="$ac_compile"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>conftest.er1
2878 grep -v '^ *+' conftest.er1 >conftest.err
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && {
2883 test -z "$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2892 cat >conftest.$ac_ext <<_ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2907 rm -f conftest.$ac_objext
2908 if { (ac_try="$ac_compile"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compile") 2>conftest.er1
2916 grep -v '^ *+' conftest.er1 >conftest.err
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 ac_c_werror_flag=$ac_save_c_werror_flag
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2991 if test "$GCC" = yes; then
2997 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2998 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cc_c89+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 ac_cv_prog_cc_c89=no
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3012 #include <sys/types.h>
3013 #include <sys/stat.h>
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015 struct buf { int x; };
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017 static char *e (p, i)
3023 static char *f (char * (*g) (char **, int), char **p, ...)
3028 s = g (p, va_arg (v,int));
3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3034 function prototypes and stuff, but not '\xHH' hex character constants.
3035 These don't provoke an error unfortunately, instead are silently treated
3036 as 'x'. The following induces an error, until -std is added to get
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3038 array size at least. It's necessary to write '\x00'==0 to get something
3039 that's true only with -std. */
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3043 inside strings and character constants. */
3045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3047 int test (int i, double x);
3048 struct s1 {int (*f) (int a);};
3049 struct s2 {int (*f) (double a);};
3050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3064 CC="$ac_save_CC $ac_arg"
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_c89=$ac_arg
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3093 rm -f conftest.$ac_ext
3098 case "x$ac_cv_prog_cc_c89" in
3100 { echo "$as_me:$LINENO: result: none needed" >&5
3101 echo "${ECHO_T}none needed" >&6; } ;;
3103 { echo "$as_me:$LINENO: result: unsupported" >&5
3104 echo "${ECHO_T}unsupported" >&6; } ;;
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3120 if test -f "$ac_dir/install-sh"; then
3122 ac_install_sh="$ac_aux_dir/install-sh -c"
3124 elif test -f "$ac_dir/install.sh"; then
3126 ac_install_sh="$ac_aux_dir/install.sh -c"
3128 elif test -f "$ac_dir/shtool"; then
3130 ac_install_sh="$ac_aux_dir/shtool install -c"
3134 if test -z "$ac_aux_dir"; then
3135 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3136 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3137 { (exit 1); exit 1; }; }
3140 # These three variables are undocumented and unsupported,
3141 # and are intended to be withdrawn in a future Autoconf release.
3142 # They can cause serious problems if a builder's source tree is in a directory
3143 # whose full name contains unusual characters.
3144 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3145 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3146 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3149 # Find a good install program. We prefer a C program (faster),
3150 # so one script is as good as another. But avoid the broken or
3151 # incompatible versions:
3152 # SysV /etc/install, /usr/sbin/install
3153 # SunOS /usr/etc/install
3154 # IRIX /sbin/install
3156 # AmigaOS /C/install, which installs bootblocks on floppy discs
3157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3160 # OS/2's system install, which has a completely different semantic
3161 # ./install, which can be erroneously created by make from ./install.sh.
3162 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3163 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3164 if test -z "$INSTALL"; then
3165 if test "${ac_cv_path_install+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 test -z "$as_dir" && as_dir=.
3173 # Account for people who put trailing slashes in PATH elements.
3175 ./ | .// | /cC/* | \
3176 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3177 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3180 # OSF1 and SCO ODT 3.0 have their own names for install.
3181 # Don't use installbsd from OSF since it installs stuff as root
3183 for ac_prog in ginstall scoinst install; do
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3186 if test $ac_prog = install &&
3187 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3188 # AIX install. It has an incompatible calling convention.
3190 elif test $ac_prog = install &&
3191 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3192 # program-specific install script used by HP pwplus--don't use.
3195 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3208 if test "${ac_cv_path_install+set}" = set; then
3209 INSTALL=$ac_cv_path_install
3211 # As a last resort, use the slow shell script. Don't cache a
3212 # value for INSTALL within a source directory, because that will
3213 # break other packages using the cache if that directory is
3214 # removed, or if the value is a relative name.
3215 INSTALL=$ac_install_sh
3218 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3219 echo "${ECHO_T}$INSTALL" >&6; }
3221 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3222 # It thinks the first close brace ends the variable substitution.
3223 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3225 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3227 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3237 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3238 # On Suns, sometimes $CPP names a directory.
3239 if test -n "$CPP" && test -d "$CPP"; then
3242 if test -z "$CPP"; then
3243 if test "${ac_cv_prog_CPP+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 # Double quotes because CPP needs to be expanded
3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250 for ac_c_preproc_warn_flag in '' yes
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3265 # include <limits.h>
3267 # include <assert.h>
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null && {
3284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 # Broken: fails on valid input.
3296 rm -f conftest.err conftest.$ac_ext
3298 # OK, works on sane cases. Now check whether nonexistent headers
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ac_nonexistent.h>
3308 if { (ac_try="$ac_cpp conftest.$ac_ext"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null && {
3321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3324 # Broken: success on invalid input.
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 # Passes both tests.
3335 rm -f conftest.err conftest.$ac_ext
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3352 { echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6; }
3355 for ac_c_preproc_warn_flag in '' yes
3357 # Use a header file that comes with gcc, so configuring glibc
3358 # with a fresh cross-compiler works.
3359 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360 # <limits.h> exists even on freestanding compilers.
3361 # On the NeXT, cc -E runs the code through the compiler's parser,
3362 # not just through cpp. "Syntax error" is here to catch this case.
3363 cat >conftest.$ac_ext <<_ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3370 # include <limits.h>
3372 # include <assert.h>
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 grep -v '^ *+' conftest.er1 >conftest.err
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <ac_nonexistent.h>
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3421 grep -v '^ *+' conftest.er1 >conftest.err
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null && {
3426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3427 test ! -s conftest.err
3429 # Broken: success on invalid input.
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 # Passes both tests.
3440 rm -f conftest.err conftest.$ac_ext
3443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3444 rm -f conftest.err conftest.$ac_ext
3445 if $ac_preproc_ok; then
3448 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&5
3450 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&2;}
3452 { (exit 1); exit 1; }; }
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3463 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3464 if test "${ac_cv_path_GREP+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 # Extract the first word of "grep ggrep" to use in msg output
3468 if test -z "$GREP"; then
3469 set dummy grep ggrep; ac_prog_name=$2
3470 if test "${ac_cv_path_GREP+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_path_GREP_found=false
3474 # Loop through the user's path and test for each of PROGNAME-LIST
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 test -z "$as_dir" && as_dir=.
3480 for ac_prog in grep ggrep; do
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3484 # Check for GNU ac_path_GREP and select it if it is found.
3485 # Check for GNU $ac_path_GREP
3486 case `"$ac_path_GREP" --version 2>&1` in
3488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3491 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3494 cat "conftest.in" "conftest.in" >"conftest.tmp"
3495 mv "conftest.tmp" "conftest.in"
3496 cp "conftest.in" "conftest.nl"
3497 echo 'GREP' >> "conftest.nl"
3498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3500 ac_count=`expr $ac_count + 1`
3501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3502 # Best one so far, save it but keep looking for a better one
3503 ac_cv_path_GREP="$ac_path_GREP"
3504 ac_path_GREP_max=$ac_count
3506 # 10*(2^10) chars as input seems more than enough
3507 test $ac_count -gt 10 && break
3509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 $ac_path_GREP_found && break 3
3523 GREP="$ac_cv_path_GREP"
3524 if test -z "$GREP"; then
3525 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3526 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3527 { (exit 1); exit 1; }; }
3531 ac_cv_path_GREP=$GREP
3536 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3537 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3538 GREP="$ac_cv_path_GREP"
3541 { echo "$as_me:$LINENO: checking for egrep" >&5
3542 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3543 if test "${ac_cv_path_EGREP+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3547 then ac_cv_path_EGREP="$GREP -E"
3549 # Extract the first word of "egrep" to use in msg output
3550 if test -z "$EGREP"; then
3551 set dummy egrep; ac_prog_name=$2
3552 if test "${ac_cv_path_EGREP+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_path_EGREP_found=false
3556 # Loop through the user's path and test for each of PROGNAME-LIST
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 test -z "$as_dir" && as_dir=.
3562 for ac_prog in egrep; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3566 # Check for GNU ac_path_EGREP and select it if it is found.
3567 # Check for GNU $ac_path_EGREP
3568 case `"$ac_path_EGREP" --version 2>&1` in
3570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3576 cat "conftest.in" "conftest.in" >"conftest.tmp"
3577 mv "conftest.tmp" "conftest.in"
3578 cp "conftest.in" "conftest.nl"
3579 echo 'EGREP' >> "conftest.nl"
3580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3582 ac_count=`expr $ac_count + 1`
3583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3584 # Best one so far, save it but keep looking for a better one
3585 ac_cv_path_EGREP="$ac_path_EGREP"
3586 ac_path_EGREP_max=$ac_count
3588 # 10*(2^10) chars as input seems more than enough
3589 test $ac_count -gt 10 && break
3591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3595 $ac_path_EGREP_found && break 3
3605 EGREP="$ac_cv_path_EGREP"
3606 if test -z "$EGREP"; then
3607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3609 { (exit 1); exit 1; }; }
3613 ac_cv_path_EGREP=$EGREP
3619 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3620 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3621 EGREP="$ac_cv_path_EGREP"
3624 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3625 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3626 if test "${ac_cv_header_stdc+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3648 rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_compile") 2>conftest.er1
3657 grep -v '^ *+' conftest.er1 >conftest.err
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } && {
3662 test -z "$ac_c_werror_flag" ||
3663 test ! -s conftest.err
3664 } && test -s conftest.$ac_objext; then
3665 ac_cv_header_stdc=yes
3667 echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 ac_cv_header_stdc=no
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 if test $ac_cv_header_stdc = yes; then
3676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3687 $EGREP "memchr" >/dev/null 2>&1; then
3690 ac_cv_header_stdc=no
3696 if test $ac_cv_header_stdc = yes; then
3697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3698 cat >conftest.$ac_ext <<_ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "free" >/dev/null 2>&1; then
3711 ac_cv_header_stdc=no
3717 if test $ac_cv_header_stdc = yes; then
3718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3719 if test "$cross_compiling" = yes; then
3722 cat >conftest.$ac_ext <<_ACEOF
3725 cat confdefs.h >>conftest.$ac_ext
3726 cat >>conftest.$ac_ext <<_ACEOF
3727 /* end confdefs.h. */
3730 #if ((' ' & 0x0FF) == 0x020)
3731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3734 # define ISLOWER(c) \
3735 (('a' <= (c) && (c) <= 'i') \
3736 || ('j' <= (c) && (c) <= 'r') \
3737 || ('s' <= (c) && (c) <= 'z'))
3738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3746 for (i = 0; i < 256; i++)
3747 if (XOR (islower (i), ISLOWER (i))
3748 || toupper (i) != TOUPPER (i))
3753 rm -f conftest$ac_exeext
3754 if { (ac_try="$ac_link"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3760 (eval "$ac_link") 2>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3764 { (case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769 (eval "$ac_try") 2>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3775 echo "$as_me: program exited with status $ac_status" >&5
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3780 ac_cv_header_stdc=no
3782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3788 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3789 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3790 if test $ac_cv_header_stdc = yes; then
3792 cat >>confdefs.h <<\_ACEOF
3793 #define STDC_HEADERS 1
3798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3808 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3809 inttypes.h stdint.h unistd.h
3811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 $ac_includes_default
3825 #include <$ac_header>
3827 rm -f conftest.$ac_objext
3828 if { (ac_try="$ac_compile"
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compile") 2>conftest.er1
3836 grep -v '^ *+' conftest.er1 >conftest.err
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } && {
3841 test -z "$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 } && test -s conftest.$ac_objext; then
3844 eval "$as_ac_Header=yes"
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 eval "$as_ac_Header=no"
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_res=`eval echo '${'$as_ac_Header'}'`
3855 { echo "$as_me:$LINENO: result: $ac_res" >&5
3856 echo "${ECHO_T}$ac_res" >&6; }
3857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3858 cat >>confdefs.h <<_ACEOF
3859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868 for ac_header in sys/types.h
3870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 ac_res=`eval echo '${'$as_ac_Header'}'`
3878 { echo "$as_me:$LINENO: result: $ac_res" >&5
3879 echo "${ECHO_T}$ac_res" >&6; }
3881 # Is the header compilable?
3882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 $ac_includes_default
3891 #include <$ac_header>
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3910 ac_header_compiler=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_header_compiler=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3920 echo "${ECHO_T}$ac_header_compiler" >&6; }
3922 # Is the header present?
3923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3925 cat >conftest.$ac_ext <<_ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #include <$ac_header>
3933 if { (ac_try="$ac_cpp conftest.$ac_ext"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev/null && {
3946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3949 ac_header_preproc=yes
3951 echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 ac_header_preproc=no
3957 rm -f conftest.err conftest.$ac_ext
3958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3959 echo "${ECHO_T}$ac_header_preproc" >&6; }
3961 # So? What about this header?
3962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3968 ac_header_preproc=yes
3971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 eval "$as_ac_Header=\$ac_header_preproc"
3993 ac_res=`eval echo '${'$as_ac_Header'}'`
3994 { echo "$as_me:$LINENO: result: $ac_res" >&5
3995 echo "${ECHO_T}$ac_res" >&6; }
3998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3999 cat >>confdefs.h <<_ACEOF
4000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4008 CPPFLAGS="-D_BSD_SOURCE -D_USE_BSD_SIGNAL ${CPPFLAGS}"
4010 # Check whether --enable-debug was given.
4011 if test "${enable_debug+set}" = set; then
4012 enableval=$enable_debug; if test "$enableval" = "no"
4016 echo "Not including debugging code"
4018 DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
4019 RESTOREDEBUG="-DDIRDEBUG"
4020 echo "Including debugging code"
4025 echo "Not including debugging code by default"
4032 # Check whether --enable-static was given.
4033 if test "${enable_static+set}" = set; then
4034 enableval=$enable_static; if test "$enableval" = "no"
4037 echo "Linking dump and restore dynamically"
4040 echo "Linking dump and restore statically"
4045 echo "Linking dump and restore dynamically by default"
4051 # Check whether --enable-staticz was given.
4052 if test "${enable_staticz+set}" = set; then
4053 enableval=$enable_staticz; if test "$enableval" = "no"
4056 echo "Linking libz and libbz2 dynamically"
4059 echo "Linking libz and libbz2 statically"
4064 echo "Linking libz and libbz2 dynamically by default"
4069 # Check whether --enable-rmt was given.
4070 if test "${enable_rmt+set}" = set; then
4071 enableval=$enable_rmt; if test "$enableval" = "no"
4075 echo "Not compiling rmt"
4078 RMTMAKEFILE="rmt/Makefile"
4079 echo "Compiling rmt"
4084 RMTMAKEFILE="rmt/Makefile"
4085 echo "Compiling rmt by default"
4091 # Check whether --enable-ermt was given.
4092 if test "${enable_ermt+set}" = set; then
4093 enableval=$enable_ermt; if test "$enableval" = "no"
4097 echo "Not compiling ermt"
4099 if test "$RMTDIR" = ""
4101 { { echo "$as_me:$LINENO: error: ermt requires --enable-rmt" >&5
4102 echo "$as_me: error: ermt requires --enable-rmt" >&2;}
4103 { (exit 1); exit 1; }; }
4107 echo "Compiling ermt"
4113 echo "Not compiling ermt by default"
4120 # Check whether --enable-kerberos was given.
4121 if test "${enable_kerberos+set}" = set; then
4122 enableval=$enable_kerberos; if test "$enableval" = "yes"
4124 OPTDEFS="-DKERBEROS"
4125 echo "Compiling kerberos extensions"
4128 echo "Not compiling kerberos extensions"
4133 echo "Not compiling kerberos extensions by default"
4139 # Check whether --enable-readline was given.
4140 if test "${enable_readline+set}" = set; then
4141 enableval=$enable_readline; if test "$enableval" = "no"
4144 echo "Not including readline support"
4148 cat >>confdefs.h <<\_ACEOF
4149 #define HAVE_READLINE 1
4152 echo "Including readline support"
4158 cat >>confdefs.h <<\_ACEOF
4159 #define HAVE_READLINE 1
4162 echo "Including readline support by default"
4167 # Check whether --enable-oldstylefscript was given.
4168 if test "${enable_oldstylefscript+set}" = set; then
4169 enableval=$enable_oldstylefscript; if test "$enableval" = "yes"
4172 cat >>confdefs.h <<\_ACEOF
4173 #define OLD_STYLE_FSCRIPT 1
4176 echo "Using old style F script"
4178 echo "Using new style F script"
4182 echo "Using new style F script by default"
4187 # Check whether --enable-largefile was given.
4188 if test "${enable_largefile+set}" = set; then
4189 enableval=$enable_largefile; if test "$enableval" = "yes"
4192 cat >>confdefs.h <<\_ACEOF
4196 echo "Enabling Large File System support"
4198 echo "Not enabling Large File System support"
4203 cat >>confdefs.h <<\_ACEOF
4207 echo "Enabling Large File System support by default"
4212 # Check whether --enable-qfa was given.
4213 if test "${enable_qfa+set}" = set; then
4214 enableval=$enable_qfa; if test "$enableval" = "yes"
4217 cat >>confdefs.h <<\_ACEOF
4221 echo "Enabling Quick File Access support"
4223 echo "Not enabling Quick File Access support"
4228 cat >>confdefs.h <<\_ACEOF
4232 echo "Enabling Quick File Access support by default"
4237 # Check whether --enable-qfadebug was given.
4238 if test "${enable_qfadebug+set}" = set; then
4239 enableval=$enable_qfadebug; if test "$enableval" = "yes"
4242 cat >>confdefs.h <<\_ACEOF
4246 echo "Including Quick File Access debugging code"
4248 echo "Not including Quick File Access debugging code"
4252 echo "Not including Quick File Access debugging code by default"
4257 # Check whether --enable-macosx was given.
4258 if test "${enable_macosx+set}" = set; then
4259 enableval=$enable_macosx; if test "$enableval" = "yes"
4262 cat >>confdefs.h <<\_ACEOF
4263 #define DUMP_MACOSX 1
4266 echo "Including Mac OSX restore compatibility code"
4268 echo "Not including Mac OSX restore compatibility code"
4272 echo "Not including Mac OSX restore compatibility code by default"
4277 # Check whether --enable-transselinux was given.
4278 if test "${enable_transselinux+set}" = set; then
4279 enableval=$enable_transselinux; if test "$enableval" = "yes"
4281 LTRANSSELINUX="-lselinux"
4282 CCTRANSSELINUX="-DTRANSSELINUX"
4283 echo "restore can translate SELinux EAs"
4287 echo "restore can not translate SELinux EAs"
4291 LTRANSSELINUX="-lselinux"
4292 CCTRANSSELINUX="-DTRANSSELINUX"
4293 echo "restore can translate SELinux EAs by default"
4302 # Check whether --with-cc was given.
4303 if test "${with_cc+set}" = set; then
4304 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
4305 echo "${ECHO_T}CC=$withval" >&6; }
4308 if test -z "$CC" ; then CC=cc; fi
4309 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
4310 echo "${ECHO_T}CC defaults to $CC" >&6; }
4316 # Check whether --with-linker was given.
4317 if test "${with_linker+set}" = set; then
4318 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
4319 echo "${ECHO_T}LD=$withval" >&6; }
4322 if test -z "$LD" ; then LD=$CC; fi
4323 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
4324 echo "${ECHO_T}LD defaults to $LD" >&6; }
4330 # Check whether --with-ccopts was given.
4331 if test "${with_ccopts+set}" = set; then
4332 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
4333 echo "${ECHO_T}CCOPTS is $withval" >&6; }
4335 CFLAGS="$CFLAGS $withval"
4342 # Check whether --with-ldopts was given.
4343 if test "${with_ldopts+set}" = set; then
4344 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
4345 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
4347 LDFLAGS="$LDFLAGS $withval"
4354 # Check whether --with-binowner was given.
4355 if test "${with_binowner+set}" = set; then
4356 withval=$with_binowner; { echo "$as_me:$LINENO: result: BINOWNER is $withval" >&5
4357 echo "${ECHO_T}BINOWNER is $withval" >&6; }
4361 echo "BINOWNER defaults to $BINOWNER"
4367 # Check whether --with-bingrp was given.
4368 if test "${with_bingrp+set}" = set; then
4369 withval=$with_bingrp; { echo "$as_me:$LINENO: result: BINGRP is $withval" >&5
4370 echo "${ECHO_T}BINGRP is $withval" >&6; }
4374 echo "BINGRP defaults to $BINGRP"
4380 # Check whether --with-binmode was given.
4381 if test "${with_binmode+set}" = set; then
4382 withval=$with_binmode; { echo "$as_me:$LINENO: result: BINMODE is $withval" >&5
4383 echo "${ECHO_T}BINMODE is $withval" >&6; }
4387 echo "BINMODE defaults to $BINMODE"
4393 # Check whether --with-manowner was given.
4394 if test "${with_manowner+set}" = set; then
4395 withval=$with_manowner; { echo "$as_me:$LINENO: result: MANOWNER is $withval" >&5
4396 echo "${ECHO_T}MANOWNER is $withval" >&6; }
4400 echo "MANOWNER defaults to $MANOWNER"
4406 # Check whether --with-mangrp was given.
4407 if test "${with_mangrp+set}" = set; then
4408 withval=$with_mangrp; { echo "$as_me:$LINENO: result: MANGRP is $withval" >&5
4409 echo "${ECHO_T}MANGRP is $withval" >&6; }
4413 echo "MANGRP defaults to $MANGRP"
4419 # Check whether --with-manmode was given.
4420 if test "${with_manmode+set}" = set; then
4421 withval=$with_manmode; { echo "$as_me:$LINENO: result: MANMODE is $withval" >&5
4422 echo "${ECHO_T}MANMODE is $withval" >&6; }
4426 echo "MANMODE defaults to $MANMODE"
4432 # Check whether --with-dumpdatespath was given.
4433 if test "${with_dumpdatespath+set}" = set; then
4434 withval=$with_dumpdatespath; { echo "$as_me:$LINENO: result: DUMPDATESPATH is $withval" >&5
4435 echo "${ECHO_T}DUMPDATESPATH is $withval" >&6; }
4436 DUMPDATESPATH=$withval
4438 DUMPDATESPATH="${sysconfdir}/dumpdates"
4439 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
4444 { echo "$as_me:$LINENO: checking for ext2fs/ext2fs.h" >&5
4445 echo $ECHO_N "checking for ext2fs/ext2fs.h... $ECHO_C" >&6; }
4446 if test "${ac_cv_header_ext2fs_ext2fs_h+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <ext2fs/ext2fs.h>
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null && {
4470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4473 ac_cv_header_ext2fs_ext2fs_h=yes
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 ac_cv_header_ext2fs_ext2fs_h=no
4481 rm -f conftest.err conftest.$ac_ext
4483 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2fs_h" >&5
4484 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2fs_h" >&6; }
4485 if test $ac_cv_header_ext2fs_ext2fs_h = yes; then
4492 { echo "$as_me:$LINENO: checking for ext2fs_open in -lext2fs" >&5
4493 echo $ECHO_N "checking for ext2fs_open in -lext2fs... $ECHO_C" >&6; }
4494 if test "${ac_cv_lib_ext2fs_ext2fs_open+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 ac_check_lib_save_LIBS=$LIBS
4498 LIBS="-lext2fs -lcom_err $LIBS"
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4506 /* Override any GCC internal prototype to avoid an error.
4507 Use char because int might match the return type of a GCC
4508 builtin and then its argument prototype would still apply. */
4512 char ext2fs_open ();
4516 return ext2fs_open ();
4521 rm -f conftest.$ac_objext conftest$ac_exeext
4522 if { (ac_try="$ac_link"
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4528 (eval "$ac_link") 2>conftest.er1
4530 grep -v '^ *+' conftest.er1 >conftest.err
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } && {
4535 test -z "$ac_c_werror_flag" ||
4536 test ! -s conftest.err
4537 } && test -s conftest$ac_exeext &&
4538 $as_test_x conftest$ac_exeext; then
4539 ac_cv_lib_ext2fs_ext2fs_open=yes
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 ac_cv_lib_ext2fs_ext2fs_open=no
4547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4548 conftest$ac_exeext conftest.$ac_ext
4549 LIBS=$ac_check_lib_save_LIBS
4551 { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_open" >&5
4552 echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_open" >&6; }
4553 if test $ac_cv_lib_ext2fs_ext2fs_open = yes; then
4559 if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then
4560 { { echo "$as_me:$LINENO: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&5
4561 echo "$as_me: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" >&2;}
4562 { (exit 1); exit 1; }; }
4565 { echo "$as_me:$LINENO: checking for ext2fs_read_inode_full in -lext2fs" >&5
4566 echo $ECHO_N "checking for ext2fs_read_inode_full in -lext2fs... $ECHO_C" >&6; }
4567 if test "${ac_cv_lib_ext2fs_ext2fs_read_inode_full+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 ac_check_lib_save_LIBS=$LIBS
4571 LIBS="-lext2fs -lcom_err $LIBS"
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4579 /* Override any GCC internal prototype to avoid an error.
4580 Use char because int might match the return type of a GCC
4581 builtin and then its argument prototype would still apply. */
4585 char ext2fs_read_inode_full ();
4589 return ext2fs_read_inode_full ();
4594 rm -f conftest.$ac_objext conftest$ac_exeext
4595 if { (ac_try="$ac_link"
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_link") 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest$ac_exeext &&
4611 $as_test_x conftest$ac_exeext; then
4612 ac_cv_lib_ext2fs_ext2fs_read_inode_full=yes
4614 echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 ac_cv_lib_ext2fs_ext2fs_read_inode_full=no
4620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4621 conftest$ac_exeext conftest.$ac_ext
4622 LIBS=$ac_check_lib_save_LIBS
4624 { echo "$as_me:$LINENO: result: $ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&5
4625 echo "${ECHO_T}$ac_cv_lib_ext2fs_ext2fs_read_inode_full" >&6; }
4626 if test $ac_cv_lib_ext2fs_ext2fs_read_inode_full = yes; then
4632 if test "$rif" = yes; then
4634 cat >>confdefs.h <<\_ACEOF
4635 #define HAVE_EXT2FS_READ_INODE_FULL 1
4641 for ac_header in ext2fs/ext2_fs.h
4643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 #include <$ac_header>
4657 if { (ac_try="$ac_cpp conftest.$ac_ext"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } >/dev/null && {
4670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4673 eval "$as_ac_Header=yes"
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 eval "$as_ac_Header=no"
4681 rm -f conftest.err conftest.$ac_ext
4683 ac_res=`eval echo '${'$as_ac_Header'}'`
4684 { echo "$as_me:$LINENO: result: $ac_res" >&5
4685 echo "${ECHO_T}$ac_res" >&6; }
4686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4687 cat >>confdefs.h <<_ACEOF
4688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 { echo "$as_me:$LINENO: checking for ext2_ino_t type in libext2fs headers" >&5
4697 echo $ECHO_N "checking for ext2_ino_t type in libext2fs headers... $ECHO_C" >&6; }
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 #ifdef HAVE_EXT2FS_EXT2_FS_H
4706 #include <ext2fs/ext2_fs.h>
4708 #include <linux/ext2_fs.h>
4710 #include <ext2fs/ext2fs.h>
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4726 (eval "$ac_compile") 2>conftest.er1
4728 grep -v '^ *+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest.$ac_objext; then
4737 cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_EXT2_INO_T 1
4741 { echo "$as_me:$LINENO: result: yes" >&5
4742 echo "${ECHO_T}yes" >&6; }
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 { echo "$as_me:$LINENO: checking for s_journal_inum field in ext2_super_block struct" >&5
4754 echo $ECHO_N "checking for s_journal_inum field in ext2_super_block struct... $ECHO_C" >&6; }
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4762 #ifdef HAVE_EXT2FS_EXT2_FS_H
4763 #include <ext2fs/ext2_fs.h>
4765 #include <linux/ext2_fs.h>
4767 #include <ext2fs/ext2fs.h>
4771 struct ext2_super_block es; es.s_journal_inum = 0;
4776 rm -f conftest.$ac_objext
4777 if { (ac_try="$ac_compile"
4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4794 cat >>confdefs.h <<\_ACEOF
4795 #define HAVE_EXT2_JOURNAL_INUM 1
4798 { echo "$as_me:$LINENO: result: yes" >&5
4799 echo "${ECHO_T}yes" >&6; }
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.$ac_ext >&5
4804 { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 { echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
4811 echo $ECHO_N "checking for blkid/blkid.h... $ECHO_C" >&6; }
4812 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 cat >conftest.$ac_ext <<_ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #include <blkid/blkid.h>
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1 >conftest.err
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null && {
4836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4839 ac_cv_header_blkid_blkid_h=yes
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 ac_cv_header_blkid_blkid_h=no
4847 rm -f conftest.err conftest.$ac_ext
4849 { echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
4850 echo "${ECHO_T}$ac_cv_header_blkid_blkid_h" >&6; }
4851 if test $ac_cv_header_blkid_blkid_h = yes; then
4858 { echo "$as_me:$LINENO: checking for blkid_get_devname in -lblkid" >&5
4859 echo $ECHO_N "checking for blkid_get_devname in -lblkid... $ECHO_C" >&6; }
4860 if test "${ac_cv_lib_blkid_blkid_get_devname+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 ac_check_lib_save_LIBS=$LIBS
4864 LIBS="-lblkid -luuid $LIBS"
4865 cat >conftest.$ac_ext <<_ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4872 /* Override any GCC internal prototype to avoid an error.
4873 Use char because int might match the return type of a GCC
4874 builtin and then its argument prototype would still apply. */
4878 char blkid_get_devname ();
4882 return blkid_get_devname ();
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (ac_try="$ac_link"
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894 (eval "$ac_link") 2>conftest.er1
4896 grep -v '^ *+' conftest.er1 >conftest.err
4898 cat conftest.err >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && {
4901 test -z "$ac_c_werror_flag" ||
4902 test ! -s conftest.err
4903 } && test -s conftest$ac_exeext &&
4904 $as_test_x conftest$ac_exeext; then
4905 ac_cv_lib_blkid_blkid_get_devname=yes
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ac_cv_lib_blkid_blkid_get_devname=no
4913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4914 conftest$ac_exeext conftest.$ac_ext
4915 LIBS=$ac_check_lib_save_LIBS
4917 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_devname" >&5
4918 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_devname" >&6; }
4919 if test $ac_cv_lib_blkid_blkid_get_devname = yes; then
4925 if test "$blkid_h" = yes -a "$blkid_lib" = yes; then
4927 cat >>confdefs.h <<\_ACEOF
4928 #define HAVE_BLKID 1
4931 BLKID="-lblkid -luuid -ldevmapper -lselinux -lsepol"
4935 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4936 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
4937 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-lncurses $LIBS"
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 /* Override any GCC internal prototype to avoid an error.
4950 Use char because int might match the return type of a GCC
4951 builtin and then its argument prototype would still apply. */
4964 rm -f conftest.$ac_objext conftest$ac_exeext
4965 if { (ac_try="$ac_link"
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_link") 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } && {
4978 test -z "$ac_c_werror_flag" ||
4979 test ! -s conftest.err
4980 } && test -s conftest$ac_exeext &&
4981 $as_test_x conftest$ac_exeext; then
4982 ac_cv_lib_ncurses_tgetent=yes
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 ac_cv_lib_ncurses_tgetent=no
4990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4991 conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4994 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4995 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
4996 if test $ac_cv_lib_ncurses_tgetent = yes; then
5002 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5003 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
5004 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-ltermcap $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any GCC internal prototype to avoid an error.
5017 Use char because int might match the return type of a GCC
5018 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (ac_try="$ac_link"
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_link") 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && {
5045 test -z "$ac_c_werror_flag" ||
5046 test ! -s conftest.err
5047 } && test -s conftest$ac_exeext &&
5048 $as_test_x conftest$ac_exeext; then
5049 ac_cv_lib_termcap_tgetent=yes
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_cv_lib_termcap_tgetent=no
5057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5058 conftest$ac_exeext conftest.$ac_ext
5059 LIBS=$ac_check_lib_save_LIBS
5061 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5062 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
5063 if test $ac_cv_lib_termcap_tgetent = yes; then
5069 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
5070 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
5071 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 ac_check_lib_save_LIBS=$LIBS
5075 LIBS="-ltinfo $LIBS"
5076 cat >conftest.$ac_ext <<_ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5083 /* Override any GCC internal prototype to avoid an error.
5084 Use char because int might match the return type of a GCC
5085 builtin and then its argument prototype would still apply. */
5098 rm -f conftest.$ac_objext conftest$ac_exeext
5099 if { (ac_try="$ac_link"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_link") 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } && {
5112 test -z "$ac_c_werror_flag" ||
5113 test ! -s conftest.err
5114 } && test -s conftest$ac_exeext &&
5115 $as_test_x conftest$ac_exeext; then
5116 ac_cv_lib_tinfo_tgetent=yes
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 ac_cv_lib_tinfo_tgetent=no
5124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5125 conftest$ac_exeext conftest.$ac_ext
5126 LIBS=$ac_check_lib_save_LIBS
5128 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
5129 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
5130 if test $ac_cv_lib_tinfo_tgetent = yes; then
5137 if test "$ncurses_lib" = no -a "$termcap_lib" = no -a "$tinfo_lib" = no; then
5138 if test "$READLINE" = "yes"; then
5139 { { echo "$as_me:$LINENO: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&5
5140 echo "$as_me: error: You need to install the ncurses or termcap library or configure without --enable-readline" >&2;}
5141 { (exit 1); exit 1; }; }
5144 if test "$tinfo_lib" = yes; then
5146 elif test "$ncurses_lib" = yes; then
5148 elif test "$termcap_lib" = yes; then
5152 { echo "$as_me:$LINENO: checking for readline/readline.h" >&5
5153 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6; }
5154 if test "${ac_cv_header_readline_readline_h+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #include <readline/readline.h>
5165 if { (ac_try="$ac_cpp conftest.$ac_ext"
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5173 grep -v '^ *+' conftest.er1 >conftest.err
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev/null && {
5178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5179 test ! -s conftest.err
5181 ac_cv_header_readline_readline_h=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 ac_cv_header_readline_readline_h=no
5189 rm -f conftest.err conftest.$ac_ext
5191 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
5192 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6; }
5193 if test $ac_cv_header_readline_readline_h = yes; then
5200 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
5201 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
5202 if test "${ac_cv_lib_readline_readline+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 ac_check_lib_save_LIBS=$LIBS
5206 LIBS="-lreadline $rdllib $LIBS"
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5214 /* Override any GCC internal prototype to avoid an error.
5215 Use char because int might match the return type of a GCC
5216 builtin and then its argument prototype would still apply. */
5229 rm -f conftest.$ac_objext conftest$ac_exeext
5230 if { (ac_try="$ac_link"
5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233 *) ac_try_echo=$ac_try;;
5235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236 (eval "$ac_link") 2>conftest.er1
5238 grep -v '^ *+' conftest.er1 >conftest.err
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_c_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest$ac_exeext &&
5246 $as_test_x conftest$ac_exeext; then
5247 ac_cv_lib_readline_readline=yes
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_cv_lib_readline_readline=no
5255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5256 conftest$ac_exeext conftest.$ac_ext
5257 LIBS=$ac_check_lib_save_LIBS
5259 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
5260 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
5261 if test $ac_cv_lib_readline_readline = yes; then
5267 if test "$readline_h" = no -o "$readline_lib" = no; then
5268 if test "$READLINE" = "yes"; then
5269 { { echo "$as_me:$LINENO: error: You need to install the GNU readline library or configure without --enable-readline" >&5
5270 echo "$as_me: error: You need to install the GNU readline library or configure without --enable-readline" >&2;}
5271 { (exit 1); exit 1; }; }
5274 if test "$READLINE" = yes; then
5275 READLINE="-lreadline $rdllib"
5279 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
5280 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
5281 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_check_lib_save_LIBS=$LIBS
5285 LIBS="-lreadline "-ltermcap" $LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5293 /* Override any GCC internal prototype to avoid an error.
5294 Use char because int might match the return type of a GCC
5295 builtin and then its argument prototype would still apply. */
5299 char rl_completion_matches ();
5303 return rl_completion_matches ();
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (ac_try="$ac_link"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_link") 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } && {
5322 test -z "$ac_c_werror_flag" ||
5323 test ! -s conftest.err
5324 } && test -s conftest$ac_exeext &&
5325 $as_test_x conftest$ac_exeext; then
5326 ac_cv_lib_readline_rl_completion_matches=yes
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 ac_cv_lib_readline_rl_completion_matches=no
5334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5335 conftest$ac_exeext conftest.$ac_ext
5336 LIBS=$ac_check_lib_save_LIBS
5338 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
5339 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
5340 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
5346 if test "$rlcm" = yes; then
5348 cat >>confdefs.h <<\_ACEOF
5349 #define HAVE_READLINE_RLCM 1
5354 { echo "$as_me:$LINENO: checking for rl_completion_append_character in -lreadline" >&5
5355 echo $ECHO_N "checking for rl_completion_append_character in -lreadline... $ECHO_C" >&6; }
5356 if test "${ac_cv_lib_readline_rl_completion_append_character+set}" = set; then
5357 echo $ECHO_N "(cached) $ECHO_C" >&6
5359 ac_check_lib_save_LIBS=$LIBS
5360 LIBS="-lreadline "-ltermcap" $LIBS"
5361 cat >conftest.$ac_ext <<_ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5368 /* Override any GCC internal prototype to avoid an error.
5369 Use char because int might match the return type of a GCC
5370 builtin and then its argument prototype would still apply. */
5374 char rl_completion_append_character ();
5378 return rl_completion_append_character ();
5383 rm -f conftest.$ac_objext conftest$ac_exeext
5384 if { (ac_try="$ac_link"
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_link") 2>conftest.er1
5392 grep -v '^ *+' conftest.er1 >conftest.err
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && {
5397 test -z "$ac_c_werror_flag" ||
5398 test ! -s conftest.err
5399 } && test -s conftest$ac_exeext &&
5400 $as_test_x conftest$ac_exeext; then
5401 ac_cv_lib_readline_rl_completion_append_character=yes
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ac_cv_lib_readline_rl_completion_append_character=no
5409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5410 conftest$ac_exeext conftest.$ac_ext
5411 LIBS=$ac_check_lib_save_LIBS
5413 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_append_character" >&5
5414 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_append_character" >&6; }
5415 if test $ac_cv_lib_readline_rl_completion_append_character = yes; then
5421 if test "$rcac" = yes; then
5423 cat >>confdefs.h <<\_ACEOF
5424 #define HAVE_READLINE_CAC 1
5429 { echo "$as_me:$LINENO: checking for zlib.h" >&5
5430 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
5431 if test "${ac_cv_header_zlib_h+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5442 if { (ac_try="$ac_cpp conftest.$ac_ext"
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5450 grep -v '^ *+' conftest.er1 >conftest.err
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } >/dev/null && {
5455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5458 ac_cv_header_zlib_h=yes
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_cv_header_zlib_h=no
5466 rm -f conftest.err conftest.$ac_ext
5468 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5469 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
5470 if test $ac_cv_header_zlib_h = yes; then
5477 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
5478 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
5479 if test "${ac_cv_lib_z_compress2+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 ac_check_lib_save_LIBS=$LIBS
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5491 /* Override any GCC internal prototype to avoid an error.
5492 Use char because int might match the return type of a GCC
5493 builtin and then its argument prototype would still apply. */
5501 return compress2 ();
5506 rm -f conftest.$ac_objext conftest$ac_exeext
5507 if { (ac_try="$ac_link"
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_link") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest$ac_exeext &&
5523 $as_test_x conftest$ac_exeext; then
5524 ac_cv_lib_z_compress2=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_cv_lib_z_compress2=no
5532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5533 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5536 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
5537 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
5538 if test $ac_cv_lib_z_compress2 = yes; then
5544 if test "$zlib_h" = yes -a "$zlib_lib" = yes; then
5545 if test "$STATICZ" = yes; then
5546 ZLIB="-Wl,-Bstatic -lz -Wl,-Bdynamic"
5551 cat >>confdefs.h <<\_ACEOF
5560 { echo "$as_me:$LINENO: checking for bzlib.h" >&5
5561 echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6; }
5562 if test "${ac_cv_header_bzlib_h+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5573 if { (ac_try="$ac_cpp conftest.$ac_ext"
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } >/dev/null && {
5586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5587 test ! -s conftest.err
5589 ac_cv_header_bzlib_h=yes
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 ac_cv_header_bzlib_h=no
5597 rm -f conftest.err conftest.$ac_ext
5599 { echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
5600 echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6; }
5601 if test $ac_cv_header_bzlib_h = yes; then
5608 { echo "$as_me:$LINENO: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
5609 echo $ECHO_N "checking for BZ2_bzBuffToBuffCompress in -lbz2... $ECHO_C" >&6; }
5610 if test "${ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 ac_check_lib_save_LIBS=$LIBS
5615 cat >conftest.$ac_ext <<_ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h. */
5622 /* Override any GCC internal prototype to avoid an error.
5623 Use char because int might match the return type of a GCC
5624 builtin and then its argument prototype would still apply. */
5628 char BZ2_bzBuffToBuffCompress ();
5632 return BZ2_bzBuffToBuffCompress ();
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (ac_try="$ac_link"
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644 (eval "$ac_link") 2>conftest.er1
5646 grep -v '^ *+' conftest.er1 >conftest.err
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && {
5651 test -z "$ac_c_werror_flag" ||
5652 test ! -s conftest.err
5653 } && test -s conftest$ac_exeext &&
5654 $as_test_x conftest$ac_exeext; then
5655 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=yes
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5660 ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress=no
5663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5664 conftest$ac_exeext conftest.$ac_ext
5665 LIBS=$ac_check_lib_save_LIBS
5667 { echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&5
5668 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress" >&6; }
5669 if test $ac_cv_lib_bz2_BZ2_bzBuffToBuffCompress = yes; then
5675 if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then
5676 if test "$STATICZ" = yes; then
5677 BZLIB="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
5682 cat >>confdefs.h <<\_ACEOF
5683 #define HAVE_BZLIB 1
5701 for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
5703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5717 #define $ac_func innocuous_$ac_func
5719 /* System header to define __stub macros and hopefully few prototypes,
5720 which can conflict with char $ac_func (); below.
5721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 <limits.h> exists even on freestanding compilers. */
5725 # include <limits.h>
5727 # include <assert.h>
5732 /* Override any GCC internal prototype to avoid an error.
5733 Use char because int might match the return type of a GCC
5734 builtin and then its argument prototype would still apply. */
5739 /* The GNU C library defines this for functions which it implements
5740 to always fail with ENOSYS. Some functions are actually named
5741 something starting with __ and the normal name is an alias. */
5742 #if defined __stub_$ac_func || defined __stub___$ac_func
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (ac_try="$ac_link"
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_link") 2>conftest.er1
5763 grep -v '^ *+' conftest.er1 >conftest.err
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } && {
5768 test -z "$ac_c_werror_flag" ||
5769 test ! -s conftest.err
5770 } && test -s conftest$ac_exeext &&
5771 $as_test_x conftest$ac_exeext; then
5772 eval "$as_ac_var=yes"
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5777 eval "$as_ac_var=no"
5780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5781 conftest$ac_exeext conftest.$ac_ext
5783 ac_res=`eval echo '${'$as_ac_var'}'`
5784 { echo "$as_me:$LINENO: result: $ac_res" >&5
5785 echo "${ECHO_T}$ac_res" >&6; }
5786 if test `eval echo '${'$as_ac_var'}'` = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5794 { echo "$as_me:$LINENO: checking for glob" >&5
5795 echo $ECHO_N "checking for glob... $ECHO_C" >&6; }
5796 if test "${ac_cv_func_glob+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 /* Define glob to an innocuous variant, in case <limits.h> declares glob.
5806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5807 #define glob innocuous_glob
5809 /* System header to define __stub macros and hopefully few prototypes,
5810 which can conflict with char glob (); below.
5811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 <limits.h> exists even on freestanding compilers. */
5815 # include <limits.h>
5817 # include <assert.h>
5822 /* Override any GCC internal prototype to avoid an error.
5823 Use char because int might match the return type of a GCC
5824 builtin and then its argument prototype would still apply. */
5829 /* The GNU C library defines this for functions which it implements
5830 to always fail with ENOSYS. Some functions are actually named
5831 something starting with __ and the normal name is an alias. */
5832 #if defined __stub_glob || defined __stub___glob
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (ac_try="$ac_link"
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_link") 2>conftest.er1
5853 grep -v '^ *+' conftest.er1 >conftest.err
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest$ac_exeext &&
5861 $as_test_x conftest$ac_exeext; then
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5871 conftest$ac_exeext conftest.$ac_ext
5873 { echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5
5874 echo "${ECHO_T}$ac_cv_func_glob" >&6; }
5877 { echo "$as_me:$LINENO: checking for extended glob routines" >&5
5878 echo $ECHO_N "checking for extended glob routines... $ECHO_C" >&6; }
5879 if test "$ac_cv_func_glob" = "yes"; then
5880 cat >conftest.$ac_ext <<_ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5888 # ifdef GLOB_ALTDIRFUNC
5893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5894 $EGREP "yes" >/dev/null 2>&1; then
5897 cat >>confdefs.h <<\_ACEOF
5901 { echo "$as_me:$LINENO: result: yes" >&5
5902 echo "${ECHO_T}yes" >&6; }
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 echo "Your system does not support extended glob, will use the internal routines"
5915 if test "$ERMT" != ""; then
5916 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
5917 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
5918 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
5919 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
5923 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
5925 # Is the header compilable?
5926 { echo "$as_me:$LINENO: checking openssl/evp.h usability" >&5
5927 echo $ECHO_N "checking openssl/evp.h usability... $ECHO_C" >&6; }
5928 cat >conftest.$ac_ext <<_ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 $ac_includes_default
5935 #include <openssl/evp.h>
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
5954 ac_header_compiler=yes
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_header_compiler=no
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5964 echo "${ECHO_T}$ac_header_compiler" >&6; }
5966 # Is the header present?
5967 { echo "$as_me:$LINENO: checking openssl/evp.h presence" >&5
5968 echo $ECHO_N "checking openssl/evp.h presence... $ECHO_C" >&6; }
5969 cat >conftest.$ac_ext <<_ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 #include <openssl/evp.h>
5977 if { (ac_try="$ac_cpp conftest.$ac_ext"
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } >/dev/null && {
5990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5991 test ! -s conftest.err
5993 ac_header_preproc=yes
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5998 ac_header_preproc=no
6001 rm -f conftest.err conftest.$ac_ext
6002 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6003 echo "${ECHO_T}$ac_header_preproc" >&6; }
6005 # So? What about this header?
6006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6008 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&5
6009 echo "$as_me: WARNING: openssl/evp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the compiler's result" >&5
6011 echo "$as_me: WARNING: openssl/evp.h: proceeding with the compiler's result" >&2;}
6012 ac_header_preproc=yes
6015 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: present but cannot be compiled" >&5
6016 echo "$as_me: WARNING: openssl/evp.h: present but cannot be compiled" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&5
6018 echo "$as_me: WARNING: openssl/evp.h: check for missing prerequisite headers?" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: see the Autoconf documentation" >&5
6020 echo "$as_me: WARNING: openssl/evp.h: see the Autoconf documentation" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&5
6022 echo "$as_me: WARNING: openssl/evp.h: section \"Present But Cannot Be Compiled\"" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&5
6024 echo "$as_me: WARNING: openssl/evp.h: proceeding with the preprocessor's result" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&5
6026 echo "$as_me: WARNING: openssl/evp.h: in the future, the compiler will take precedence" >&2;}
6030 { echo "$as_me:$LINENO: checking for openssl/evp.h" >&5
6031 echo $ECHO_N "checking for openssl/evp.h... $ECHO_C" >&6; }
6032 if test "${ac_cv_header_openssl_evp_h+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_cv_header_openssl_evp_h=$ac_header_preproc
6037 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_evp_h" >&5
6038 echo "${ECHO_T}$ac_cv_header_openssl_evp_h" >&6; }
6041 if test $ac_cv_header_openssl_evp_h = yes; then
6048 { echo "$as_me:$LINENO: checking for EVP_CIPHER_CTX_set_padding in -lcrypto" >&5
6049 echo $ECHO_N "checking for EVP_CIPHER_CTX_set_padding in -lcrypto... $ECHO_C" >&6; }
6050 if test "${ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_check_lib_save_LIBS=$LIBS
6054 LIBS="-lcrypto $LIBS"
6055 cat >conftest.$ac_ext <<_ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6062 /* Override any GCC internal prototype to avoid an error.
6063 Use char because int might match the return type of a GCC
6064 builtin and then its argument prototype would still apply. */
6068 char EVP_CIPHER_CTX_set_padding ();
6072 return EVP_CIPHER_CTX_set_padding ();
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (ac_try="$ac_link"
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_link") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest$ac_exeext &&
6094 $as_test_x conftest$ac_exeext; then
6095 ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding=no
6103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6104 conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_check_lib_save_LIBS
6107 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&5
6108 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding" >&6; }
6109 if test $ac_cv_lib_crypto_EVP_CIPHER_CTX_set_padding = yes; then
6115 if test "$evp_h" = no -o "$crypto_lib" = no; then
6116 { { echo "$as_me:$LINENO: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&5
6117 echo "$as_me: error: You need to install the OpenSSL library (version 0.9.7a or later)" >&2;}
6118 { (exit or configure without --enable-ermt); exit or configure without --enable-ermt; }; }
6122 { echo "$as_me:$LINENO: checking for quad_t" >&5
6123 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6; }
6124 if test "${ac_cv_type_quad_t+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 $ac_includes_default
6134 typedef quad_t ac__type_new_;
6138 if ((ac__type_new_ *) 0)
6140 if (sizeof (ac__type_new_))
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 ac_cv_type_quad_t=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 ac_cv_type_quad_t=no
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 { echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
6174 echo "${ECHO_T}$ac_cv_type_quad_t" >&6; }
6175 if test $ac_cv_type_quad_t = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define quad_t int64_t
6185 { echo "$as_me:$LINENO: checking for u_quad_t" >&5
6186 echo $ECHO_N "checking for u_quad_t... $ECHO_C" >&6; }
6187 if test "${ac_cv_type_u_quad_t+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 typedef u_quad_t ac__type_new_;
6201 if ((ac__type_new_ *) 0)
6203 if (sizeof (ac__type_new_))
6209 rm -f conftest.$ac_objext
6210 if { (ac_try="$ac_compile"
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_compile") 2>conftest.er1
6218 grep -v '^ *+' conftest.er1 >conftest.err
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest.$ac_objext; then
6226 ac_cv_type_u_quad_t=yes
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_cv_type_u_quad_t=no
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 { echo "$as_me:$LINENO: result: $ac_cv_type_u_quad_t" >&5
6237 echo "${ECHO_T}$ac_cv_type_u_quad_t" >&6; }
6238 if test $ac_cv_type_u_quad_t = yes; then
6242 cat >>confdefs.h <<_ACEOF
6243 #define u_quad_t uint64_t
6249 top_builddir=`cd .; pwd`
6252 test -d compat || mkdir compat
6253 test -d compat/lib || mkdir compat/lib
6255 ac_config_files="$ac_config_files MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"
6257 cat >confcache <<\_ACEOF
6258 # This file is a shell script that caches the results of configure
6259 # tests run on this system so they can be shared between configure
6260 # scripts and configure runs, see configure's option --config-cache.
6261 # It is not useful on other systems. If it contains results you don't
6262 # want to keep, you may remove or edit it.
6264 # config.status only pays attention to the cache file if you give it
6265 # the --recheck option to rerun configure.
6267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6273 # The following way of writing the cache mishandles newlines in values,
6274 # but we know of no workaround that is simple, portable, and efficient.
6275 # So, we kill variables containing newlines.
6276 # Ultrix sh set writes to stderr and can't be redirected directly,
6277 # and sets the high bit in the cache file unless we assign to the vars.
6279 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6280 eval ac_val=\$$ac_var
6284 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6288 _ | IFS | as_nl) ;; #(
6289 *) $as_unset $ac_var ;;
6295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6296 *${as_nl}ac_space=\ *)
6297 # `set' does not quote correctly, so add quotes (double-quote
6298 # substitution turns \\\\ into \\, and sed turns \\ into \).
6301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6304 # `set' quotes correctly as required by POSIX, so do not add quotes.
6305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6319 if test -w "$cache_file"; then
6320 test "x$cache_file" != "x/dev/null" &&
6321 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6322 echo "$as_me: updating cache $cache_file" >&6;}
6323 cat confcache >$cache_file
6325 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6332 # Let make expand exec_prefix.
6333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6335 DEFS=-DHAVE_CONFIG_H
6339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6340 # 1. Remove the extension, and $U if already installed.
6341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6342 ac_i=`echo "$ac_i" | sed "$ac_script"`
6343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6344 # will be set to the directory where LIBOBJS objects are built.
6345 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6346 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6350 LTLIBOBJS=$ac_ltlibobjs
6354 : ${CONFIG_STATUS=./config.status}
6355 ac_clean_files_save=$ac_clean_files
6356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6357 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6358 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6359 cat >$CONFIG_STATUS <<_ACEOF
6361 # Generated by $as_me.
6362 # Run this file to recreate the current configuration.
6363 # Compiler output produced by configure, useful for debugging
6364 # configure, is in config.log if it exists.
6369 SHELL=\${CONFIG_SHELL-$SHELL}
6372 cat >>$CONFIG_STATUS <<\_ACEOF
6373 ## --------------------- ##
6374 ## M4sh Initialization. ##
6375 ## --------------------- ##
6377 # Be more Bourne compatible
6378 DUALCASE=1; export DUALCASE # for MKS sh
6379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6382 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6383 # is contrary to our usage. Disable this feature.
6384 alias -g '${1+"$@"}'='"$@"'
6385 setopt NO_GLOB_SUBST
6387 case `(set -o) 2>/dev/null` in
6388 *posix*) set -o posix ;;
6397 # Avoid depending upon Character Ranges.
6398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6401 as_cr_digits='0123456789'
6402 as_cr_alnum=$as_cr_Letters$as_cr_digits
6404 # The user is always right.
6405 if test "${PATH_SEPARATOR+set}" != set; then
6406 echo "#! /bin/sh" >conf$$.sh
6407 echo "exit 0" >>conf$$.sh
6409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6417 # Support unset when possible.
6418 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6426 # We need space, tab and new line, in precisely that order. Quoting is
6427 # there to prevent editors from complaining about space-tab.
6428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6429 # splitting by setting IFS to empty value.)
6434 # Find who we are. Look in the path if we contain no directory separator.
6436 *[\\/]* ) as_myself=$0 ;;
6437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6448 # We did not find ourselves, most probably we were run as `sh COMMAND'
6449 # in which case we are not to be found in the path.
6450 if test "x$as_myself" = x; then
6453 if test ! -f "$as_myself"; then
6454 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6455 { (exit 1); exit 1; }
6458 # Work around bugs in pre-3.0 UWIN ksh.
6459 for as_var in ENV MAIL MAILPATH
6460 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6468 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6469 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6470 LC_TELEPHONE LC_TIME
6472 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6473 eval $as_var=C; export $as_var
6475 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6479 # Required to use basename.
6480 if expr a : '\(a\)' >/dev/null 2>&1 &&
6481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6488 as_basename=basename
6494 # Name of the executable.
6495 as_me=`$as_basename -- "$0" ||
6496 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6497 X"$0" : 'X\(//\)$' \| \
6498 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6500 sed '/^.*\/\([^/][^/]*\)\/*$/{
6521 test "x$as_lineno_1" != "x$as_lineno_2" &&
6522 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6524 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6525 # uniformly replaced by the line number. The first 'sed' inserts a
6526 # line-number line after each line using $LINENO; the second 'sed'
6527 # does the real work. The second script uses 'N' to pair each
6528 # line-number line with the line containing $LINENO, and appends
6529 # trailing '-' during substitution so that $LINENO is not a special
6531 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6532 # scripts with optimization help from Paolo Bonzini. Blame Lee
6533 # E. McMahon (1931-1989) for sed's syntax. :-)
6545 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6549 chmod +x "$as_me.lineno" ||
6550 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6551 { (exit 1); exit 1; }; }
6553 # Don't try to exec as it changes $[0], causing all sort of problems
6554 # (the dirname of $[0] is not the place where we might find the
6555 # original and so on. Autoconf is especially sensitive to this).
6557 # Exit status is that of the last command.
6562 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6568 ECHO_C= ECHO_N= ECHO_T=
6571 case `echo 'x\c'` in
6572 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6579 if expr a : '\(a\)' >/dev/null 2>&1 &&
6580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6586 rm -f conf$$ conf$$.exe conf$$.file
6587 if test -d conf$$.dir; then
6588 rm -f conf$$.dir/conf$$.file
6594 if ln -s conf$$.file conf$$ 2>/dev/null; then
6596 # ... but there are two gotchas:
6597 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6598 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6599 # In both cases, we have to default to `cp -p'.
6600 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6602 elif ln conf$$.file conf$$ 2>/dev/null; then
6607 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6608 rmdir conf$$.dir 2>/dev/null
6610 if mkdir -p . 2>/dev/null; then
6613 test -d ./-p && rmdir ./-p
6617 if test -x / >/dev/null 2>&1; then
6620 if ls -dL / >/dev/null 2>&1; then
6627 if test -d "$1"; then
6633 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6634 ???[sx]*):;;*)false;;esac;fi
6638 as_executable_p=$as_test_x
6640 # Sed expression to map a string onto a valid CPP name.
6641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6643 # Sed expression to map a string onto a valid variable name.
6644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6649 # Save the log message, to keep $[0] and so on meaningful, and to
6650 # report actual input values of CONFIG_FILES etc. instead of their
6651 # values after options handling.
6653 This file was extended by $as_me, which was
6654 generated by GNU Autoconf 2.61. Invocation command line was
6656 CONFIG_FILES = $CONFIG_FILES
6657 CONFIG_HEADERS = $CONFIG_HEADERS
6658 CONFIG_LINKS = $CONFIG_LINKS
6659 CONFIG_COMMANDS = $CONFIG_COMMANDS
6662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6667 cat >>$CONFIG_STATUS <<_ACEOF
6668 # Files that config.status was made for.
6669 config_files="$ac_config_files"
6670 config_headers="$ac_config_headers"
6674 cat >>$CONFIG_STATUS <<\_ACEOF
6676 \`$as_me' instantiates files from templates according to the
6677 current configuration.
6679 Usage: $0 [OPTIONS] [FILE]...
6681 -h, --help print this help, then exit
6682 -V, --version print version number and configuration settings, then exit
6683 -q, --quiet do not print progress messages
6684 -d, --debug don't remove temporary files
6685 --recheck update $as_me by reconfiguring in the same conditions
6686 --file=FILE[:TEMPLATE]
6687 instantiate the configuration file FILE
6688 --header=FILE[:TEMPLATE]
6689 instantiate the configuration header FILE
6691 Configuration files:
6694 Configuration headers:
6697 Report bugs to <bug-autoconf@gnu.org>."
6700 cat >>$CONFIG_STATUS <<_ACEOF
6703 configured by $0, generated by GNU Autoconf 2.61,
6704 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6706 Copyright (C) 2006 Free Software Foundation, Inc.
6707 This config.status script is free software; the Free Software Foundation
6708 gives unlimited permission to copy, distribute and modify it."
6715 cat >>$CONFIG_STATUS <<\_ACEOF
6716 # If no file are specified by the user, then we need to provide default
6717 # value. By we need to know if files were specified by the user.
6723 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6724 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6735 # Handling of the options.
6736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6739 echo "$ac_cs_version"; exit ;;
6740 --debug | --debu | --deb | --de | --d | -d )
6742 --file | --fil | --fi | --f )
6744 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6745 ac_need_defaults=false;;
6746 --header | --heade | --head | --hea )
6748 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6749 ac_need_defaults=false;;
6751 # Conflict between --help and --header
6752 { echo "$as_me: error: ambiguous option: $1
6753 Try \`$0 --help' for more information." >&2
6754 { (exit 1); exit 1; }; };;
6755 --help | --hel | -h )
6756 echo "$ac_cs_usage"; exit ;;
6757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6762 -*) { echo "$as_me: error: unrecognized option: $1
6763 Try \`$0 --help' for more information." >&2
6764 { (exit 1); exit 1; }; } ;;
6766 *) ac_config_targets="$ac_config_targets $1"
6767 ac_need_defaults=false ;;
6773 ac_configure_extra_args=
6775 if $ac_cs_silent; then
6777 ac_configure_extra_args="$ac_configure_extra_args --silent"
6781 cat >>$CONFIG_STATUS <<_ACEOF
6782 if \$ac_cs_recheck; then
6783 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6786 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6790 cat >>$CONFIG_STATUS <<\_ACEOF
6794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6795 ## Running $as_me. ##
6801 cat >>$CONFIG_STATUS <<_ACEOF
6804 cat >>$CONFIG_STATUS <<\_ACEOF
6806 # Handling of arguments.
6807 for ac_config_target in $ac_config_targets
6809 case $ac_config_target in
6810 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6811 "MCONFIG") CONFIG_FILES="$CONFIG_FILES MCONFIG" ;;
6812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6813 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
6814 "compat/include/Makefile") CONFIG_FILES="$CONFIG_FILES compat/include/Makefile" ;;
6815 "compat/lib/Makefile") CONFIG_FILES="$CONFIG_FILES compat/lib/Makefile" ;;
6816 "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
6817 "restore/Makefile") CONFIG_FILES="$CONFIG_FILES restore/Makefile" ;;
6818 "$RMTMAKEFILE") CONFIG_FILES="$CONFIG_FILES $RMTMAKEFILE" ;;
6820 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6821 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6822 { (exit 1); exit 1; }; };;
6827 # If the user did not use the arguments to specify the items to instantiate,
6828 # then the envvar interface is used. Set only those that are not.
6829 # We use the long form for the default assignment because of an extremely
6830 # bizarre bug on SunOS 4.1.3.
6831 if $ac_need_defaults; then
6832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6836 # Have a temporary directory for convenience. Make it in the build tree
6837 # simply because there is no reason against having it here, and in addition,
6838 # creating and moving files from /tmp can sometimes cause problems.
6839 # Hook for its removal unless debugging.
6840 # Note that there is a small window in which the directory will not be cleaned:
6841 # after its creation but before its name has been assigned to `$tmp'.
6845 trap 'exit_status=$?
6846 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6848 trap '{ (exit 1); exit 1; }' 1 2 13 15
6850 # Create a (secure) tmp directory for tmp files.
6853 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6854 test -n "$tmp" && test -d "$tmp"
6857 tmp=./conf$$-$RANDOM
6858 (umask 077 && mkdir "$tmp")
6861 echo "$me: cannot create a temporary directory in ." >&2
6862 { (exit 1); exit 1; }
6866 # Set up the sed scripts for CONFIG_FILES section.
6869 # No need to generate the scripts if there are no CONFIG_FILES.
6870 # This happens for instance when ./config.status config.h
6871 if test -n "$CONFIG_FILES"; then
6875 # Create sed commands to just substitute file output variables.
6877 # Remaining file output variables are in a fragment that also has non-file
6883 for ac_last_try in false false false false false :; do
6884 cat >conf$$subs.sed <<_ACEOF
6885 SHELL!$SHELL$ac_delim
6886 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6887 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6888 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6889 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6890 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6891 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6892 exec_prefix!$exec_prefix$ac_delim
6893 prefix!$prefix$ac_delim
6894 program_transform_name!$program_transform_name$ac_delim
6895 bindir!$bindir$ac_delim
6896 sbindir!$sbindir$ac_delim
6897 libexecdir!$libexecdir$ac_delim
6898 datarootdir!$datarootdir$ac_delim
6899 datadir!$datadir$ac_delim
6900 sysconfdir!$sysconfdir$ac_delim
6901 sharedstatedir!$sharedstatedir$ac_delim
6902 localstatedir!$localstatedir$ac_delim
6903 includedir!$includedir$ac_delim
6904 oldincludedir!$oldincludedir$ac_delim
6905 docdir!$docdir$ac_delim
6906 infodir!$infodir$ac_delim
6907 htmldir!$htmldir$ac_delim
6908 dvidir!$dvidir$ac_delim
6909 pdfdir!$pdfdir$ac_delim
6910 psdir!$psdir$ac_delim
6911 libdir!$libdir$ac_delim
6912 localedir!$localedir$ac_delim
6913 mandir!$mandir$ac_delim
6915 ECHO_C!$ECHO_C$ac_delim
6916 ECHO_N!$ECHO_N$ac_delim
6917 ECHO_T!$ECHO_T$ac_delim
6919 build_alias!$build_alias$ac_delim
6920 host_alias!$host_alias$ac_delim
6921 target_alias!$target_alias$ac_delim
6922 SET_MAKE!$SET_MAKE$ac_delim
6928 RANLIB!$RANLIB$ac_delim
6929 PATCH!$PATCH$ac_delim
6931 CFLAGS!$CFLAGS$ac_delim
6932 LDFLAGS!$LDFLAGS$ac_delim
6933 CPPFLAGS!$CPPFLAGS$ac_delim
6934 ac_ct_CC!$ac_ct_CC$ac_delim
6935 EXEEXT!$EXEEXT$ac_delim
6936 OBJEXT!$OBJEXT$ac_delim
6937 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6938 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6939 INSTALL_DATA!$INSTALL_DATA$ac_delim
6942 EGREP!$EGREP$ac_delim
6943 DUMPDEBUG!$DUMPDEBUG$ac_delim
6944 RESTOREDEBUG!$RESTOREDEBUG$ac_delim
6945 STATIC!$STATIC$ac_delim
6946 RMTDIR!$RMTDIR$ac_delim
6948 CRYPTO!$CRYPTO$ac_delim
6949 OPTDEFS!$OPTDEFS$ac_delim
6950 LTRANSSELINUX!$LTRANSSELINUX$ac_delim
6951 CCTRANSSELINUX!$CCTRANSSELINUX$ac_delim
6953 CCOPTS!$CCOPTS$ac_delim
6954 LDOPTS!$LDOPTS$ac_delim
6955 BINOWNER!$BINOWNER$ac_delim
6956 BINGRP!$BINGRP$ac_delim
6957 BINMODE!$BINMODE$ac_delim
6958 MANOWNER!$MANOWNER$ac_delim
6959 MANGRP!$MANGRP$ac_delim
6960 MANMODE!$MANMODE$ac_delim
6961 DUMPDATESPATH!$DUMPDATESPATH$ac_delim
6962 BLKID!$BLKID$ac_delim
6963 READLINE!$READLINE$ac_delim
6965 BZLIB!$BZLIB$ac_delim
6966 top_builddir!$top_builddir$ac_delim
6967 LIBOBJS!$LIBOBJS$ac_delim
6968 LTLIBOBJS!$LTLIBOBJS$ac_delim
6971 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
6973 elif $ac_last_try; then
6974 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6975 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6976 { (exit 1); exit 1; }; }
6978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6982 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6983 if test -n "$ac_eof"; then
6984 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6985 ac_eof=`expr $ac_eof + 1`
6988 cat >>$CONFIG_STATUS <<_ACEOF
6989 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6991 /^[ ]*@MCONFIG@[ ]*$/{
6997 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6998 s/^/s,@/; s/!/@,|#_!!_#|/
7001 s/'"$ac_delim"'$/,g/; t
7003 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7004 ' >>$CONFIG_STATUS <conf$$subs.sed
7005 rm -f conf$$subs.sed
7006 cat >>$CONFIG_STATUS <<_ACEOF
7013 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7014 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7015 # trailing colons and then remove the whole line if VPATH becomes empty
7016 # (actually we leave an empty line to preserve line numbers).
7017 if test "x$srcdir" = x.; then
7018 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7022 s/^\([^=]*=[ ]*\):*/\1/
7028 cat >>$CONFIG_STATUS <<\_ACEOF
7029 fi # test -n "$CONFIG_FILES"
7032 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7035 :[FHLC]) ac_mode=$ac_tag; continue;;
7037 case $ac_mode$ac_tag in
7039 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7040 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7041 { (exit 1); exit 1; }; };;
7042 :[FH]-) ac_tag=-:-;;
7043 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7060 -) ac_f="$tmp/stdin";;
7061 *) # Look for the file first in the build tree, then in the source tree
7062 # (if the path is not absolute). The absolute path cannot be DOS-style,
7063 # because $ac_f cannot contain `:'.
7067 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7069 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7070 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7071 { (exit 1); exit 1; }; };;
7073 ac_file_inputs="$ac_file_inputs $ac_f"
7076 # Let's still pretend it is `configure' which instantiates (i.e., don't
7077 # use $as_me), people would be surprised to read:
7078 # /* config.h. Generated by config.status. */
7079 configure_input="Generated from "`IFS=:
7080 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7081 if test x"$ac_file" != x-; then
7082 configure_input="$ac_file. $configure_input"
7083 { echo "$as_me:$LINENO: creating $ac_file" >&5
7084 echo "$as_me: creating $ac_file" >&6;}
7088 *:-:* | *:-) cat >"$tmp/stdin";;
7093 ac_dir=`$as_dirname -- "$ac_file" ||
7094 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7095 X"$ac_file" : 'X\(//\)[^/]' \| \
7096 X"$ac_file" : 'X\(//\)$' \| \
7097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7118 -*) as_dir=./$as_dir;;
7120 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7124 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7125 *) as_qdir=$as_dir;;
7127 as_dirs="'$as_qdir' $as_dirs"
7128 as_dir=`$as_dirname -- "$as_dir" ||
7129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7130 X"$as_dir" : 'X\(//\)[^/]' \| \
7131 X"$as_dir" : 'X\(//\)$' \| \
7132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7151 test -d "$as_dir" && break
7153 test -z "$as_dirs" || eval "mkdir $as_dirs"
7154 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7155 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7156 { (exit 1); exit 1; }; }; }
7160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7162 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7163 # A ".." for each directory in $ac_dir_suffix.
7164 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7165 case $ac_top_builddir_sub in
7166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7170 ac_abs_top_builddir=$ac_pwd
7171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7172 # for backward compatibility:
7173 ac_top_builddir=$ac_top_build_prefix
7176 .) # We are building in place.
7178 ac_top_srcdir=$ac_top_builddir_sub
7179 ac_abs_top_srcdir=$ac_pwd ;;
7180 [\\/]* | ?:[\\/]* ) # Absolute name.
7181 ac_srcdir=$srcdir$ac_dir_suffix;
7182 ac_top_srcdir=$srcdir
7183 ac_abs_top_srcdir=$srcdir ;;
7185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7186 ac_top_srcdir=$ac_top_build_prefix$srcdir
7187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7200 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7204 cat >>$CONFIG_STATUS <<\_ACEOF
7205 # If the template does not know about datarootdir, expand it.
7206 # FIXME: This hack should be removed a few years after 2.60.
7207 ac_datarootdir_hack=; ac_datarootdir_seen=
7209 case `sed -n '/datarootdir/ {
7218 ' $ac_file_inputs` in
7219 *datarootdir*) ac_datarootdir_seen=yes;;
7220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7221 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7222 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7224 cat >>$CONFIG_STATUS <<_ACEOF
7225 ac_datarootdir_hack='
7226 s&@datadir@&$datadir&g
7227 s&@docdir@&$docdir&g
7228 s&@infodir@&$infodir&g
7229 s&@localedir@&$localedir&g
7230 s&@mandir@&$mandir&g
7231 s&\\\${datarootdir}&$datarootdir&g' ;;
7235 # Neutralize VPATH when `$srcdir' = `.'.
7236 # Shell code in configure.ac might set extrasub.
7237 # FIXME: do we really want to maintain this feature?
7238 cat >>$CONFIG_STATUS <<_ACEOF
7242 cat >>$CONFIG_STATUS <<\_ACEOF
7244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7245 s&@configure_input@&$configure_input&;t t
7246 s&@top_builddir@&$ac_top_builddir_sub&;t t
7247 s&@srcdir@&$ac_srcdir&;t t
7248 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7249 s&@top_srcdir@&$ac_top_srcdir&;t t
7250 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7251 s&@builddir@&$ac_builddir&;t t
7252 s&@abs_builddir@&$ac_abs_builddir&;t t
7253 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7254 s&@INSTALL@&$ac_INSTALL&;t t
7255 $ac_datarootdir_hack
7256 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
7258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7261 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7262 which seems to be undefined. Please make sure it is defined." >&5
7263 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7264 which seems to be undefined. Please make sure it is defined." >&2;}
7268 -) cat "$tmp/out"; rm -f "$tmp/out";;
7269 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7278 # Transform confdefs.h into a sed script `conftest.defines', that
7279 # substitutes the proper values into config.h.in to produce config.h.
7280 rm -f conftest.defines conftest.tail
7281 # First, append a space to every undef/define line, to ease matching.
7282 echo 's/$/ /' >conftest.defines
7283 # Then, protect against being on the right side of a sed subst, or in
7284 # an unquoted here document, in config.status. If some macros were
7285 # called several times there might be several #defines for the same
7286 # symbol, which is useless. But do not sort them, since the last
7287 # AC_DEFINE must be honored.
7288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7289 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7290 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7291 # PARAMS is the parameter list in the macro definition--in most cases, it's
7292 # just an empty string.
7293 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7294 ac_dB='\\)[ (].*,\\1define\\2'
7302 s/^[ ]*#[ ]*define[ ][ ]*//
7307 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7308 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7309 ' >>conftest.defines
7311 # Remove the space that was appended to ease matching.
7312 # Then replace #undef with comments. This is necessary, for
7313 # example, in the case of _POSIX_SOURCE, which is predefined and required
7314 # on some systems where configure will not decide to define it.
7315 # (The regexp can be short, since the line contains either #define or #undef.)
7317 s,^[ #]*u.*,/* & */,' >>conftest.defines
7319 # Break up conftest.defines:
7322 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7323 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7324 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7326 ac_in='$ac_file_inputs'
7327 ac_out='"$tmp/out1"'
7328 ac_nxt='"$tmp/out2"'
7332 # Write a here document:
7333 cat >>$CONFIG_STATUS <<_ACEOF
7334 # First, check the format of the line:
7335 cat >"\$tmp/defines.sed" <<\\CEOF
7336 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7337 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7341 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7343 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7344 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7345 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7346 grep . conftest.tail >/dev/null || break
7347 rm -f conftest.defines
7348 mv conftest.tail conftest.defines
7350 rm -f conftest.defines conftest.tail
7352 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7353 cat >>$CONFIG_STATUS <<\_ACEOF
7354 if test x"$ac_file" != x-; then
7355 echo "/* $configure_input */" >"$tmp/config.h"
7356 cat "$ac_result" >>"$tmp/config.h"
7357 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7358 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7359 echo "$as_me: $ac_file is unchanged" >&6;}
7362 mv "$tmp/config.h" $ac_file
7365 echo "/* $configure_input */"
7377 { (exit 0); exit 0; }
7379 chmod +x $CONFIG_STATUS
7380 ac_clean_files=$ac_clean_files_save
7383 # configure is writing to config.log, and then calls config.status.
7384 # config.status does its own redirection, appending to config.log.
7385 # Unfortunately, on DOS this fails, as config.log is still kept open
7386 # by configure, so config.status won't be able to write to it; its
7387 # output is simply discarded. So we exec the FD to /dev/null,
7388 # effectively closing config.log, so it can be properly (re)opened and
7389 # appended to by config.status. When coming back to configure, we
7390 # need to make the FD available again.
7391 if test "$no_create" != yes; then
7393 ac_config_status_args=
7394 test "$silent" = yes &&
7395 ac_config_status_args="$ac_config_status_args --quiet"
7397 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7399 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7400 # would make configure fail if this is the last instruction.
7401 $ac_cs_success || { (exit 1); exit 1; }