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="cpmfs.c"
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
685 ac_precious_vars='build_alias
696 # Initialize some variables set by options.
698 ac_init_version=false
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
708 program_transform_name=s,x,x,
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir='${exec_prefix}/bin'
723 sbindir='${exec_prefix}/sbin'
724 libexecdir='${exec_prefix}/libexec'
725 datarootdir='${prefix}/share'
726 datadir='${datarootdir}'
727 sysconfdir='${prefix}/etc'
728 sharedstatedir='${prefix}/com'
729 localstatedir='${prefix}/var'
730 includedir='${prefix}/include'
731 oldincludedir='/usr/include'
732 docdir='${datarootdir}/doc/${PACKAGE}'
733 infodir='${datarootdir}/info'
738 libdir='${exec_prefix}/lib'
739 localedir='${datarootdir}/locale'
740 mandir='${datarootdir}/man'
746 # If the previous option needs an argument, assign it.
747 if test -n "$ac_prev"; then
748 eval $ac_prev=\$ac_option
754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
758 # Accept the important Cygnus configure options, so we can diagnose typos.
760 case $ac_dashdash$ac_option in
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769 -build | --build | --buil | --bui | --bu)
770 ac_prev=build_alias ;;
771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772 build_alias=$ac_optarg ;;
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779 cache_file=$ac_optarg ;;
782 cache_file=config.cache ;;
784 -datadir | --datadir | --datadi | --datad)
786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
787 datadir=$ac_optarg ;;
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
796 -disable-* | --disable-*)
797 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
801 { (exit 1); exit 1; }; }
802 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
803 eval enable_$ac_feature=no ;;
805 -docdir | --docdir | --docdi | --doc | --do)
807 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
810 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
815 -enable-* | --enable-*)
816 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
817 # Reject names that are not valid shell variable names.
818 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
820 { (exit 1); exit 1; }; }
821 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
822 eval enable_$ac_feature=\$ac_optarg ;;
824 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
825 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
826 | --exec | --exe | --ex)
827 ac_prev=exec_prefix ;;
828 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
829 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
830 | --exec=* | --exe=* | --ex=*)
831 exec_prefix=$ac_optarg ;;
833 -gas | --gas | --ga | --g)
834 # Obsolete; use --with-gas.
837 -help | --help | --hel | --he | -h)
839 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
840 ac_init_help=recursive ;;
841 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
842 ac_init_help=short ;;
844 -host | --host | --hos | --ho)
845 ac_prev=host_alias ;;
846 -host=* | --host=* | --hos=* | --ho=*)
847 host_alias=$ac_optarg ;;
849 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
851 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
853 htmldir=$ac_optarg ;;
855 -includedir | --includedir | --includedi | --included | --include \
856 | --includ | --inclu | --incl | --inc)
857 ac_prev=includedir ;;
858 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
859 | --includ=* | --inclu=* | --incl=* | --inc=*)
860 includedir=$ac_optarg ;;
862 -infodir | --infodir | --infodi | --infod | --info | --inf)
864 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
865 infodir=$ac_optarg ;;
867 -libdir | --libdir | --libdi | --libd)
869 -libdir=* | --libdir=* | --libdi=* | --libd=*)
872 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
873 | --libexe | --libex | --libe)
874 ac_prev=libexecdir ;;
875 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
876 | --libexe=* | --libex=* | --libe=*)
877 libexecdir=$ac_optarg ;;
879 -localedir | --localedir | --localedi | --localed | --locale)
881 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
882 localedir=$ac_optarg ;;
884 -localstatedir | --localstatedir | --localstatedi | --localstated \
885 | --localstate | --localstat | --localsta | --localst | --locals)
886 ac_prev=localstatedir ;;
887 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
888 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
889 localstatedir=$ac_optarg ;;
891 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
893 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
897 # Obsolete; use --without-fp.
900 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
901 | --no-cr | --no-c | -n)
904 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
905 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
908 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
909 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
910 | --oldin | --oldi | --old | --ol | --o)
911 ac_prev=oldincludedir ;;
912 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
913 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
914 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
915 oldincludedir=$ac_optarg ;;
917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
922 -program-prefix | --program-prefix | --program-prefi | --program-pref \
923 | --program-pre | --program-pr | --program-p)
924 ac_prev=program_prefix ;;
925 -program-prefix=* | --program-prefix=* | --program-prefi=* \
926 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
927 program_prefix=$ac_optarg ;;
929 -program-suffix | --program-suffix | --program-suffi | --program-suff \
930 | --program-suf | --program-su | --program-s)
931 ac_prev=program_suffix ;;
932 -program-suffix=* | --program-suffix=* | --program-suffi=* \
933 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
934 program_suffix=$ac_optarg ;;
936 -program-transform-name | --program-transform-name \
937 | --program-transform-nam | --program-transform-na \
938 | --program-transform-n | --program-transform- \
939 | --program-transform | --program-transfor \
940 | --program-transfo | --program-transf \
941 | --program-trans | --program-tran \
942 | --progr-tra | --program-tr | --program-t)
943 ac_prev=program_transform_name ;;
944 -program-transform-name=* | --program-transform-name=* \
945 | --program-transform-nam=* | --program-transform-na=* \
946 | --program-transform-n=* | --program-transform-=* \
947 | --program-transform=* | --program-transfor=* \
948 | --program-transfo=* | --program-transf=* \
949 | --program-trans=* | --program-tran=* \
950 | --progr-tra=* | --program-tr=* | --program-t=*)
951 program_transform_name=$ac_optarg ;;
953 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
955 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
958 -psdir | --psdir | --psdi | --psd | --ps)
960 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964 | -silent | --silent | --silen | --sile | --sil)
967 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
969 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
971 sbindir=$ac_optarg ;;
973 -sharedstatedir | --sharedstatedir | --sharedstatedi \
974 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
975 | --sharedst | --shareds | --shared | --share | --shar \
977 ac_prev=sharedstatedir ;;
978 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
979 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
980 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
982 sharedstatedir=$ac_optarg ;;
984 -site | --site | --sit)
986 -site=* | --site=* | --sit=*)
989 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
991 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
994 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
995 | --syscon | --sysco | --sysc | --sys | --sy)
996 ac_prev=sysconfdir ;;
997 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
998 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
999 sysconfdir=$ac_optarg ;;
1001 -target | --target | --targe | --targ | --tar | --ta | --t)
1002 ac_prev=target_alias ;;
1003 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1004 target_alias=$ac_optarg ;;
1006 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1009 -version | --version | --versio | --versi | --vers | -V)
1010 ac_init_version=: ;;
1013 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid package name: $ac_package" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1019 eval with_$ac_package=\$ac_optarg ;;
1021 -without-* | --without-*)
1022 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid package name: $ac_package" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1028 eval with_$ac_package=no ;;
1031 # Obsolete; use --with-x.
1034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1035 | --x-incl | --x-inc | --x-in | --x-i)
1036 ac_prev=x_includes ;;
1037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1039 x_includes=$ac_optarg ;;
1041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1043 ac_prev=x_libraries ;;
1044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1046 x_libraries=$ac_optarg ;;
1048 -*) { echo "$as_me: error: unrecognized option: $ac_option
1049 Try \`$0 --help' for more information." >&2
1050 { (exit 1); exit 1; }; }
1054 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1058 { (exit 1); exit 1; }; }
1059 eval $ac_envvar=\$ac_optarg
1060 export $ac_envvar ;;
1063 # FIXME: should be removed in autoconf 3.0.
1064 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1073 if test -n "$ac_prev"; then
1074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1075 { echo "$as_me: error: missing argument to $ac_option" >&2
1076 { (exit 1); exit 1; }; }
1079 # Be sure to have absolute directory names.
1080 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1081 datadir sysconfdir sharedstatedir localstatedir includedir \
1082 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1083 libdir localedir mandir
1085 eval ac_val=\$$ac_var
1087 [\\/$]* | ?:[\\/]* ) continue;;
1088 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1090 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1091 { (exit 1); exit 1; }; }
1094 # There might be people who depend on the old broken behavior: `$host'
1095 # used to hold the argument of --host etc.
1096 # FIXME: To remove some day.
1099 target=$target_alias
1101 # FIXME: To remove some day.
1102 if test "x$host_alias" != x; then
1103 if test "x$build_alias" = x; then
1104 cross_compiling=maybe
1105 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1106 If a cross compiler is detected then cross compile mode will be used." >&2
1107 elif test "x$build_alias" != "x$host_alias"; then
1113 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1115 test "$silent" = yes && exec 6>/dev/null
1118 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1119 ac_ls_di=`ls -di .` &&
1120 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1121 { echo "$as_me: error: Working directory cannot be determined" >&2
1122 { (exit 1); exit 1; }; }
1123 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1124 { echo "$as_me: error: pwd does not report name of working directory" >&2
1125 { (exit 1); exit 1; }; }
1128 # Find the source files, if location was not specified.
1129 if test -z "$srcdir"; then
1130 ac_srcdir_defaulted=yes
1131 # Try the directory containing this script, then the parent directory.
1132 ac_confdir=`$as_dirname -- "$0" ||
1133 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1134 X"$0" : 'X\(//\)[^/]' \| \
1135 X"$0" : 'X\(//\)$' \| \
1136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 if test ! -r "$srcdir/$ac_unique_file"; then
1160 ac_srcdir_defaulted=no
1162 if test ! -r "$srcdir/$ac_unique_file"; then
1163 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1164 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1165 { (exit 1); exit 1; }; }
1167 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1170 { (exit 1); exit 1; }; }
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1182 for ac_var in $ac_precious_vars; do
1183 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184 eval ac_env_${ac_var}_value=\$${ac_var}
1185 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1190 # Report the --help message.
1192 if test "$ac_init_help" = "long"; then
1193 # Omit some internal or obsolete options to make the list less imposing.
1194 # This message is too long to be a string in the A/UX 3.1 sh.
1196 \`configure' configures this package to adapt to many kinds of systems.
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE. See below for descriptions of some of the useful variables.
1203 Defaults for the options are specified in brackets.
1206 -h, --help display this help and exit
1207 --help=short display options specific to this package
1208 --help=recursive display the short help of all the included packages
1209 -V, --version display version information and exit
1210 -q, --quiet, --silent do not print \`checking...' messages
1211 --cache-file=FILE cache test results in FILE [disabled]
1212 -C, --config-cache alias for \`--cache-file=config.cache'
1213 -n, --no-create do not create output files
1214 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1216 Installation directories:
1217 --prefix=PREFIX install architecture-independent files in PREFIX
1218 [$ac_default_prefix]
1219 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1227 For better control, use the options below.
1229 Fine tuning of the installation directories:
1230 --bindir=DIR user executables [EPREFIX/bin]
1231 --sbindir=DIR system admin executables [EPREFIX/sbin]
1232 --libexecdir=DIR program executables [EPREFIX/libexec]
1233 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1234 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1235 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1236 --libdir=DIR object code libraries [EPREFIX/lib]
1237 --includedir=DIR C header files [PREFIX/include]
1238 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1239 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1240 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1241 --infodir=DIR info documentation [DATAROOTDIR/info]
1242 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1243 --mandir=DIR man documentation [DATAROOTDIR/man]
1244 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1245 --htmldir=DIR html documentation [DOCDIR]
1246 --dvidir=DIR dvi documentation [DOCDIR]
1247 --pdfdir=DIR pdf documentation [DOCDIR]
1248 --psdir=DIR ps documentation [DOCDIR]
1254 --build=BUILD configure for building on BUILD [guessed]
1255 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1259 if test -n "$ac_init_help"; then
1264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1266 --disable-largefile omit support for large files
1269 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1270 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1271 --with-defformat Specify default format (ibm-3740)
1272 --with-libdsk Specify path to libdsk library
1273 --with-dmalloc Specify path to dmalloc library
1275 Some influential environment variables:
1276 CC C compiler command
1277 CFLAGS C compiler flags
1278 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1279 nonstandard directory <lib dir>
1280 LIBS libraries to pass to the linker, e.g. -l<library>
1281 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1282 you have headers in a nonstandard directory <include dir>
1285 Use these variables to override the choices made by `configure' or to help
1286 it to find libraries and programs with nonstandard names/locations.
1292 if test "$ac_init_help" = "recursive"; then
1293 # If there are subdirs, report their specific --help.
1294 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1295 test -d "$ac_dir" || continue
1299 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1301 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1302 # A ".." for each directory in $ac_dir_suffix.
1303 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1304 case $ac_top_builddir_sub in
1305 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1306 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1309 ac_abs_top_builddir=$ac_pwd
1310 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1311 # for backward compatibility:
1312 ac_top_builddir=$ac_top_build_prefix
1315 .) # We are building in place.
1317 ac_top_srcdir=$ac_top_builddir_sub
1318 ac_abs_top_srcdir=$ac_pwd ;;
1319 [\\/]* | ?:[\\/]* ) # Absolute name.
1320 ac_srcdir=$srcdir$ac_dir_suffix;
1321 ac_top_srcdir=$srcdir
1322 ac_abs_top_srcdir=$srcdir ;;
1324 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1325 ac_top_srcdir=$ac_top_build_prefix$srcdir
1326 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1328 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1330 cd "$ac_dir" || { ac_status=$?; continue; }
1331 # Check for guested configure.
1332 if test -f "$ac_srcdir/configure.gnu"; then
1334 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1335 elif test -f "$ac_srcdir/configure"; then
1337 $SHELL "$ac_srcdir/configure" --help=recursive
1339 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1341 cd "$ac_pwd" || { ac_status=$?; break; }
1345 test -n "$ac_init_help" && exit $ac_status
1346 if $ac_init_version; then
1349 generated by GNU Autoconf 2.61
1351 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1352 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1353 This configure script is free software; the Free Software Foundation
1354 gives unlimited permission to copy, distribute and modify it.
1358 cat >config.log <<_ACEOF
1359 This file contains any messages produced by compilers while
1360 running configure, to aid debugging if configure makes a mistake.
1362 It was created by $as_me, which was
1363 generated by GNU Autoconf 2.61. Invocation command line was
1375 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1376 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1377 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1378 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1379 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1381 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1382 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1384 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1385 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1386 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1387 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1388 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1389 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1390 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398 test -z "$as_dir" && as_dir=.
1399 echo "PATH: $as_dir"
1415 # Keep a trace of the command line.
1416 # Strip out --no-create and --no-recursion so they do not pile up.
1417 # Strip out --silent because we don't want to record it for future runs.
1418 # Also quote any args containing shell meta-characters.
1419 # Make two passes to allow for proper duplicate-argument suppression.
1423 ac_must_keep_next=false
1429 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1431 | -silent | --silent | --silen | --sile | --sil)
1434 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1439 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1440 if test $ac_must_keep_next = true; then
1441 ac_must_keep_next=false # Got value, back to normal.
1444 *=* | --config-cache | -C | -disable-* | --disable-* \
1445 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1446 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1447 | -with-* | --with-* | -without-* | --without-* | --x)
1448 case "$ac_configure_args0 " in
1449 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1452 -* ) ac_must_keep_next=true ;;
1455 ac_configure_args="$ac_configure_args '$ac_arg'"
1460 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1461 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1463 # When interrupted or exit'd, cleanup temporary files, and complete
1464 # config.log. We remove comments because anyway the quotes in there
1465 # would cause problems or look ugly.
1466 # WARNING: Use '\'' to represent an apostrophe within the trap.
1467 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1468 trap 'exit_status=$?
1469 # Save into config.log some information that might help in debugging.
1474 ## ---------------- ##
1475 ## Cache variables. ##
1476 ## ---------------- ##
1479 # The following way of writing the cache mishandles newlines in values,
1481 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1482 eval ac_val=\$$ac_var
1486 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1490 _ | IFS | as_nl) ;; #(
1491 *) $as_unset $ac_var ;;
1496 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1497 *${as_nl}ac_space=\ *)
1499 "s/'\''/'\''\\\\'\'''\''/g;
1500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1511 ## ----------------- ##
1512 ## Output variables. ##
1513 ## ----------------- ##
1516 for ac_var in $ac_subst_vars
1518 eval ac_val=\$$ac_var
1520 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1522 echo "$ac_var='\''$ac_val'\''"
1526 if test -n "$ac_subst_files"; then
1528 ## ------------------- ##
1529 ## File substitutions. ##
1530 ## ------------------- ##
1533 for ac_var in $ac_subst_files
1535 eval ac_val=\$$ac_var
1537 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1539 echo "$ac_var='\''$ac_val'\''"
1544 if test -s confdefs.h; then
1554 test "$ac_signal" != 0 &&
1555 echo "$as_me: caught signal $ac_signal"
1556 echo "$as_me: exit $exit_status"
1558 rm -f core *.core core.conftest.* &&
1559 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1562 for ac_signal in 1 2 13 15; do
1563 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1567 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1568 rm -f -r conftest* confdefs.h
1570 # Predefined preprocessor variables.
1572 cat >>confdefs.h <<_ACEOF
1573 #define PACKAGE_NAME "$PACKAGE_NAME"
1577 cat >>confdefs.h <<_ACEOF
1578 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1582 cat >>confdefs.h <<_ACEOF
1583 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE_STRING "$PACKAGE_STRING"
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1597 # Let the site file select an alternate cache file if it wants to.
1598 # Prefer explicitly selected file to automatically selected ones.
1599 if test -n "$CONFIG_SITE"; then
1600 set x "$CONFIG_SITE"
1601 elif test "x$prefix" != xNONE; then
1602 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1604 set x "$ac_default_prefix/share/config.site" \
1605 "$ac_default_prefix/etc/config.site"
1610 if test -r "$ac_site_file"; then
1611 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1612 echo "$as_me: loading site script $ac_site_file" >&6;}
1613 sed 's/^/| /' "$ac_site_file" >&5
1618 if test -r "$cache_file"; then
1619 # Some versions of bash will fail to source /dev/null (special
1620 # files actually), so we avoid doing that.
1621 if test -f "$cache_file"; then
1622 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1623 echo "$as_me: loading cache $cache_file" >&6;}
1625 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1626 *) . "./$cache_file";;
1630 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1631 echo "$as_me: creating cache $cache_file" >&6;}
1635 # Check that the precious variables saved in the cache have kept the same
1637 ac_cache_corrupted=false
1638 for ac_var in $ac_precious_vars; do
1639 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1640 eval ac_new_set=\$ac_env_${ac_var}_set
1641 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1642 eval ac_new_val=\$ac_env_${ac_var}_value
1643 case $ac_old_set,$ac_new_set in
1645 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1646 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1647 ac_cache_corrupted=: ;;
1649 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1650 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1651 ac_cache_corrupted=: ;;
1654 if test "x$ac_old_val" != "x$ac_new_val"; then
1655 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1656 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1657 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1658 echo "$as_me: former value: $ac_old_val" >&2;}
1659 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1660 echo "$as_me: current value: $ac_new_val" >&2;}
1661 ac_cache_corrupted=:
1664 # Pass precious variables to config.status.
1665 if test "$ac_new_set" = set; then
1667 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 *) ac_arg=$ac_var=$ac_new_val ;;
1670 case " $ac_configure_args " in
1671 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1672 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1676 if $ac_cache_corrupted; then
1677 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1678 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1679 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1680 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1681 { (exit 1); exit 1; }; }
1701 ac_cpp='$CPP $CPPFLAGS'
1702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 ac_config_headers="$ac_config_headers config.h"
1710 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1711 if test -f "$ac_dir/install-sh"; then
1713 ac_install_sh="$ac_aux_dir/install-sh -c"
1715 elif test -f "$ac_dir/install.sh"; then
1717 ac_install_sh="$ac_aux_dir/install.sh -c"
1719 elif test -f "$ac_dir/shtool"; then
1721 ac_install_sh="$ac_aux_dir/shtool install -c"
1725 if test -z "$ac_aux_dir"; then
1726 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1727 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1728 { (exit 1); exit 1; }; }
1731 # These three variables are undocumented and unsupported,
1732 # and are intended to be withdrawn in a future Autoconf release.
1733 # They can cause serious problems if a builder's source tree is in a directory
1734 # whose full name contains unusual characters.
1735 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1736 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1737 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1740 # Make sure we can run config.sub.
1741 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1742 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1743 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1744 { (exit 1); exit 1; }; }
1746 { echo "$as_me:$LINENO: checking build system type" >&5
1747 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1748 if test "${ac_cv_build+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 ac_build_alias=$build_alias
1752 test "x$ac_build_alias" = x &&
1753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1754 test "x$ac_build_alias" = x &&
1755 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1756 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1757 { (exit 1); exit 1; }; }
1758 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1759 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1760 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1764 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1765 echo "${ECHO_T}$ac_cv_build" >&6; }
1766 case $ac_cv_build in
1768 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1769 echo "$as_me: error: invalid value of canonical build" >&2;}
1770 { (exit 1); exit 1; }; };;
1773 ac_save_IFS=$IFS; IFS='-'
1779 # Remember, the first character of IFS is used to create $*,
1780 # except with old shells:
1783 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1786 { echo "$as_me:$LINENO: checking host system type" >&5
1787 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1788 if test "${ac_cv_host+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test "x$host_alias" = x; then
1792 ac_cv_host=$ac_cv_build
1794 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1795 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1796 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1797 { (exit 1); exit 1; }; }
1801 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1802 echo "${ECHO_T}$ac_cv_host" >&6; }
1805 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1806 echo "$as_me: error: invalid value of canonical host" >&2;}
1807 { (exit 1); exit 1; }; };;
1810 ac_save_IFS=$IFS; IFS='-'
1816 # Remember, the first character of IFS is used to create $*,
1817 # except with old shells:
1820 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1824 UPDATED='November 26, 2007'
1828 if test "$prefix" = NONE
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1846 if test "${ac_cv_prog_CC+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 if test -n "$CC"; then
1850 ac_cv_prog_CC="$CC" # Let the user override the test.
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 test -z "$as_dir" && as_dir=.
1857 for ac_exec_ext in '' $ac_executable_extensions; do
1858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1870 if test -n "$CC"; then
1871 { echo "$as_me:$LINENO: result: $CC" >&5
1872 echo "${ECHO_T}$CC" >&6; }
1874 { echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6; }
1880 if test -z "$ac_cv_prog_CC"; then
1882 # Extract the first word of "gcc", so it can be a program name with args.
1883 set dummy gcc; ac_word=$2
1884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$ac_ct_CC"; then
1890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1899 ac_cv_prog_ac_ct_CC="gcc"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1910 if test -n "$ac_ct_CC"; then
1911 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1912 echo "${ECHO_T}$ac_ct_CC" >&6; }
1914 { echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6; }
1918 if test "x$ac_ct_CC" = x; then
1921 case $cross_compiling:$ac_tool_warned in
1923 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1924 whose name does not start with the host triplet. If you think this
1925 configuration is useful to you, please write to autoconf@gnu.org." >&5
1926 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1927 whose name does not start with the host triplet. If you think this
1928 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1929 ac_tool_warned=yes ;;
1937 if test -z "$CC"; then
1938 if test -n "$ac_tool_prefix"; then
1939 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1940 set dummy ${ac_tool_prefix}cc; ac_word=$2
1941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1943 if test "${ac_cv_prog_CC+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 if test -n "$CC"; then
1947 ac_cv_prog_CC="$CC" # Let the user override the test.
1949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
1955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1956 ac_cv_prog_CC="${ac_tool_prefix}cc"
1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 if test -n "$CC"; then
1968 { echo "$as_me:$LINENO: result: $CC" >&5
1969 echo "${ECHO_T}$CC" >&6; }
1971 { echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6; }
1978 if test -z "$CC"; then
1979 # Extract the first word of "cc", so it can be a program name with args.
1980 set dummy cc; ac_word=$2
1981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1983 if test "${ac_cv_prog_CC+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 if test -n "$CC"; then
1987 ac_cv_prog_CC="$CC" # Let the user override the test.
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 for ac_exec_ext in '' $ac_executable_extensions; do
1996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1997 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1998 ac_prog_rejected=yes
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy $ac_cv_prog_CC
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2024 if test -n "$CC"; then
2025 { echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6; }
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2034 if test -z "$CC"; then
2035 if test -n "$ac_tool_prefix"; then
2036 for ac_prog in cl.exe
2038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$CC"; then
2046 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 if test -n "$CC"; then
2067 { echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2075 test -n "$CC" && break
2078 if test -z "$CC"; then
2080 for ac_prog in cl.exe
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test -n "$ac_ct_CC"; then
2090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 ac_cv_prog_ac_ct_CC="$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6; }
2114 { echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6; }
2119 test -n "$ac_ct_CC" && break
2122 if test "x$ac_ct_CC" = x; then
2125 case $cross_compiling:$ac_tool_warned in
2127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2128 whose name does not start with the host triplet. If you think this
2129 configuration is useful to you, please write to autoconf@gnu.org." >&5
2130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2131 whose name does not start with the host triplet. If you think this
2132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2133 ac_tool_warned=yes ;;
2142 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: no acceptable C compiler found in \$PATH
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2148 # Provide some information about the compiler.
2149 echo "$as_me:$LINENO: checking for C compiler version" >&5
2150 ac_compiler=`set X $ac_compile; echo $2`
2151 { (ac_try="$ac_compiler --version >&5"
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_compiler --version >&5") 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }
2161 { (ac_try="$ac_compiler -v >&5"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2167 (eval "$ac_compiler -v >&5") 2>&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); }
2171 { (ac_try="$ac_compiler -V >&5"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_compiler -V >&5") 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }
2182 cat >conftest.$ac_ext <<_ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h. */
2197 ac_clean_files_save=$ac_clean_files
2198 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2199 # Try to create an executable without -o first, disregard a.out.
2200 # It will help us diagnose broken compilers, and finding out an intuition
2202 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2203 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2204 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2206 # List of possible output files, starting from the most likely.
2207 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2208 # only as a last resort. b.out is created by i960 compilers.
2209 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2211 # The IRIX 6 linker writes into existing files which may not be
2212 # executable, retaining their permissions. Remove them first so a
2213 # subsequent execution test works.
2215 for ac_file in $ac_files
2218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2224 if { (ac_try="$ac_link_default"
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2230 (eval "$ac_link_default") 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; then
2234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2237 # so that the user can short-circuit this test for compilers unknown to
2239 for ac_file in $ac_files ''
2241 test -f "$ac_file" || continue
2243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2246 # We found the default executable, but exeext='' is most
2250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2254 # We set ac_cv_exeext here because the later test for it is not
2255 # safe: cross compilers may not add the suffix if given an `-o'
2256 # argument, so we may need to know it at that point already.
2257 # Even if this section looks crufty: it has the advantage of
2264 test "$ac_cv_exeext" = no && ac_cv_exeext=
2270 { echo "$as_me:$LINENO: result: $ac_file" >&5
2271 echo "${ECHO_T}$ac_file" >&6; }
2272 if test -z "$ac_file"; then
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2276 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&5
2278 echo "$as_me: error: C compiler cannot create executables
2279 See \`config.log' for more details." >&2;}
2280 { (exit 77); exit 77; }; }
2283 ac_exeext=$ac_cv_exeext
2285 # Check that the compiler produces executables we can run. If not, either
2286 # the compiler is broken, or we cross compile.
2287 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292 if { ac_try='./$ac_file'
2293 { (case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2298 (eval "$ac_try") 2>&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 if test "$cross_compiling" = maybe; then
2307 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2308 If you meant to cross compile, use \`--host'.
2309 See \`config.log' for more details." >&5
2310 echo "$as_me: error: cannot run C compiled programs.
2311 If you meant to cross compile, use \`--host'.
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2317 { echo "$as_me:$LINENO: result: yes" >&5
2318 echo "${ECHO_T}yes" >&6; }
2320 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2321 ac_clean_files=$ac_clean_files_save
2322 # Check that the compiler produces executables we can run. If not, either
2323 # the compiler is broken, or we cross compile.
2324 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2325 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2326 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2327 echo "${ECHO_T}$cross_compiling" >&6; }
2329 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2330 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2331 if { (ac_try="$ac_link"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_link") 2>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then
2341 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2342 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2343 # work properly (i.e., refer to `conftest.exe'), while it won't with
2345 for ac_file in conftest.exe conftest conftest.*; do
2346 test -f "$ac_file" || continue
2348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2349 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2355 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2356 See \`config.log' for more details." >&5
2357 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2358 See \`config.log' for more details." >&2;}
2359 { (exit 1); exit 1; }; }
2362 rm -f conftest$ac_cv_exeext
2363 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2364 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2366 rm -f conftest.$ac_ext
2367 EXEEXT=$ac_cv_exeext
2369 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2370 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2371 if test "${ac_cv_objext+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.o conftest.obj
2390 if { (ac_try="$ac_compile"
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_compile") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; then
2400 for ac_file in conftest.o conftest.obj conftest.*; do
2401 test -f "$ac_file" || continue;
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2415 See \`config.log' for more details." >&2;}
2416 { (exit 1); exit 1; }; }
2419 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2421 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2422 echo "${ECHO_T}$ac_cv_objext" >&6; }
2423 OBJEXT=$ac_cv_objext
2425 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2426 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2427 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2448 rm -f conftest.$ac_objext
2449 if { (ac_try="$ac_compile"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } && {
2462 test -z "$ac_c_werror_flag" ||
2463 test ! -s conftest.err
2464 } && test -s conftest.$ac_objext; then
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2477 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2478 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2479 GCC=`test $ac_compiler_gnu = yes && echo yes`
2480 ac_test_CFLAGS=${CFLAGS+set}
2481 ac_save_CFLAGS=$CFLAGS
2482 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2483 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2484 if test "${ac_cv_prog_cc_g+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 ac_save_c_werror_flag=$ac_c_werror_flag
2488 ac_c_werror_flag=yes
2491 cat >conftest.$ac_ext <<_ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2506 rm -f conftest.$ac_objext
2507 if { (ac_try="$ac_compile"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_compile") 2>conftest.er1
2515 grep -v '^ *+' conftest.er1 >conftest.err
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } && {
2520 test -z "$ac_c_werror_flag" ||
2521 test ! -s conftest.err
2522 } && test -s conftest.$ac_objext; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2529 cat >conftest.$ac_ext <<_ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compile") 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } && {
2558 test -z "$ac_c_werror_flag" ||
2559 test ! -s conftest.err
2560 } && test -s conftest.$ac_objext; then
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2566 ac_c_werror_flag=$ac_save_c_werror_flag
2568 cat >conftest.$ac_ext <<_ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2583 rm -f conftest.$ac_objext
2584 if { (ac_try="$ac_compile"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compile") 2>conftest.er1
2592 grep -v '^ *+' conftest.er1 >conftest.err
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } && {
2597 test -z "$ac_c_werror_flag" ||
2598 test ! -s conftest.err
2599 } && test -s conftest.$ac_objext; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_c_werror_flag=$ac_save_c_werror_flag
2617 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2618 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2619 if test "$ac_test_CFLAGS" = set; then
2620 CFLAGS=$ac_save_CFLAGS
2621 elif test $ac_cv_prog_cc_g = yes; then
2622 if test "$GCC" = yes; then
2628 if test "$GCC" = yes; then
2634 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2635 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_cc_c89+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 ac_cv_prog_cc_c89=no
2641 cat >conftest.$ac_ext <<_ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h. */
2649 #include <sys/types.h>
2650 #include <sys/stat.h>
2651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2652 struct buf { int x; };
2653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2654 static char *e (p, i)
2660 static char *f (char * (*g) (char **, int), char **p, ...)
2665 s = g (p, va_arg (v,int));
2670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2671 function prototypes and stuff, but not '\xHH' hex character constants.
2672 These don't provoke an error unfortunately, instead are silently treated
2673 as 'x'. The following induces an error, until -std is added to get
2674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2675 array size at least. It's necessary to write '\x00'==0 to get something
2676 that's true only with -std. */
2677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2680 inside strings and character constants. */
2682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2684 int test (int i, double x);
2685 struct s1 {int (*f) (int a);};
2686 struct s2 {int (*f) (double a);};
2687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2701 CC="$ac_save_CC $ac_arg"
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } && {
2716 test -z "$ac_c_werror_flag" ||
2717 test ! -s conftest.err
2718 } && test -s conftest.$ac_objext; then
2719 ac_cv_prog_cc_c89=$ac_arg
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f core conftest.err conftest.$ac_objext
2728 test "x$ac_cv_prog_cc_c89" != "xno" && break
2730 rm -f conftest.$ac_ext
2735 case "x$ac_cv_prog_cc_c89" in
2737 { echo "$as_me:$LINENO: result: none needed" >&5
2738 echo "${ECHO_T}none needed" >&6; } ;;
2740 { echo "$as_me:$LINENO: result: unsupported" >&5
2741 echo "${ECHO_T}unsupported" >&6; } ;;
2743 CC="$CC $ac_cv_prog_cc_c89"
2744 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2745 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 # Find a good install program. We prefer a C program (faster),
2756 # so one script is as good as another. But avoid the broken or
2757 # incompatible versions:
2758 # SysV /etc/install, /usr/sbin/install
2759 # SunOS /usr/etc/install
2760 # IRIX /sbin/install
2762 # AmigaOS /C/install, which installs bootblocks on floppy discs
2763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2766 # OS/2's system install, which has a completely different semantic
2767 # ./install, which can be erroneously created by make from ./install.sh.
2768 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2769 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2770 if test -z "$INSTALL"; then
2771 if test "${ac_cv_path_install+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 # Account for people who put trailing slashes in PATH elements.
2781 ./ | .// | /cC/* | \
2782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2783 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2786 # OSF1 and SCO ODT 3.0 have their own names for install.
2787 # Don't use installbsd from OSF since it installs stuff as root
2789 for ac_prog in ginstall scoinst install; do
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2792 if test $ac_prog = install &&
2793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794 # AIX install. It has an incompatible calling convention.
2796 elif test $ac_prog = install &&
2797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2798 # program-specific install script used by HP pwplus--don't use.
2801 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2814 if test "${ac_cv_path_install+set}" = set; then
2815 INSTALL=$ac_cv_path_install
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for INSTALL within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 INSTALL=$ac_install_sh
2824 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2825 echo "${ECHO_T}$INSTALL" >&6; }
2827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2828 # It thinks the first close brace ends the variable substitution.
2829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2836 ac_cpp='$CPP $CPPFLAGS'
2837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2840 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2841 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2842 # On Suns, sometimes $CPP names a directory.
2843 if test -n "$CPP" && test -d "$CPP"; then
2846 if test -z "$CPP"; then
2847 if test "${ac_cv_prog_CPP+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 # Double quotes because CPP needs to be expanded
2851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2854 for ac_c_preproc_warn_flag in '' yes
2856 # Use a header file that comes with gcc, so configuring glibc
2857 # with a fresh cross-compiler works.
2858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2859 # <limits.h> exists even on freestanding compilers.
2860 # On the NeXT, cc -E runs the code through the compiler's parser,
2861 # not just through cpp. "Syntax error" is here to catch this case.
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2869 # include <limits.h>
2871 # include <assert.h>
2875 if { (ac_try="$ac_cpp conftest.$ac_ext"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev/null && {
2888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 # Broken: fails on valid input.
2900 rm -f conftest.err conftest.$ac_ext
2902 # OK, works on sane cases. Now check whether nonexistent headers
2903 # can be detected and how.
2904 cat >conftest.$ac_ext <<_ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ac_nonexistent.h>
2912 if { (ac_try="$ac_cpp conftest.$ac_ext"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null && {
2925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2926 test ! -s conftest.err
2928 # Broken: success on invalid input.
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 # Passes both tests.
2939 rm -f conftest.err conftest.$ac_ext
2942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2943 rm -f conftest.err conftest.$ac_ext
2944 if $ac_preproc_ok; then
2956 { echo "$as_me:$LINENO: result: $CPP" >&5
2957 echo "${ECHO_T}$CPP" >&6; }
2959 for ac_c_preproc_warn_flag in '' yes
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964 # <limits.h> exists even on freestanding compilers.
2965 # On the NeXT, cc -E runs the code through the compiler's parser,
2966 # not just through cpp. "Syntax error" is here to catch this case.
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2974 # include <limits.h>
2976 # include <assert.h>
2980 if { (ac_try="$ac_cpp conftest.$ac_ext"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null && {
2993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 # Broken: fails on valid input.
3005 rm -f conftest.err conftest.$ac_ext
3007 # OK, works on sane cases. Now check whether nonexistent headers
3008 # can be detected and how.
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015 #include <ac_nonexistent.h>
3017 if { (ac_try="$ac_cpp conftest.$ac_ext"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3033 # Broken: success on invalid input.
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Passes both tests.
3044 rm -f conftest.err conftest.$ac_ext
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.$ac_ext
3049 if $ac_preproc_ok; then
3052 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3053 See \`config.log' for more details." >&5
3054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3055 See \`config.log' for more details." >&2;}
3056 { (exit 1); exit 1; }; }
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066 if test "$GCC" = yes
3068 CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
3069 LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
3071 CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
3072 LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
3076 # Check whether --with-defformat was given.
3077 if test "${with_defformat+set}" = set; then
3078 withval=$with_defformat; DEFFORMAT="$withval"
3080 DEFFORMAT="ibm-3740"
3084 # Check whether --with-libdsk was given.
3085 if test "${with_libdsk+set}" = set; then
3086 withval=$with_libdsk; LIBDSK="$withval"
3092 # Check whether --with-dmalloc was given.
3093 if test "${with_dmalloc+set}" = set; then
3094 withval=$with_dmalloc; CPPFLAGS="$CPPFLAGS -I$with_dmalloc/include"
3095 LDFLAGS="$LDFLAGS -L$with_dmalloc/lib"
3096 LIBS="$LIBS -ldmalloc"
3097 cat >>confdefs.h <<\_ACEOF
3098 #define USE_DMALLOC 1
3104 { echo "$as_me:$LINENO: checking host system type" >&5
3105 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3106 if test "${ac_cv_host+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test "x$host_alias" = x; then
3110 ac_cv_host=$ac_cv_build
3112 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3113 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3114 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3115 { (exit 1); exit 1; }; }
3119 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3120 echo "${ECHO_T}$ac_cv_host" >&6; }
3123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3124 echo "$as_me: error: invalid value of canonical host" >&2;}
3125 { (exit 1); exit 1; }; };;
3128 ac_save_IFS=$IFS; IFS='-'
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3138 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3142 *cygwin* ) CYGWIN=yes;;
3146 { echo "$as_me:$LINENO: checking host system type" >&5
3147 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3148 if test "${ac_cv_host+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 if test "x$host_alias" = x; then
3152 ac_cv_host=$ac_cv_build
3154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3155 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3156 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3157 { (exit 1); exit 1; }; }
3161 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3162 echo "${ECHO_T}$ac_cv_host" >&6; }
3165 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3166 echo "$as_me: error: invalid value of canonical host" >&2;}
3167 { (exit 1); exit 1; }; };;
3170 ac_save_IFS=$IFS; IFS='-'
3176 # Remember, the first character of IFS is used to create $*,
3177 # except with old shells:
3180 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3184 *mingw32* ) MINGW32=yes;;
3190 if test "$CYGWIN" = "yes"
3194 if test "$MINGW32" = "yes"
3201 { echo "$as_me:$LINENO: checking for printw in -lcurses" >&5
3202 echo $ECHO_N "checking for printw in -lcurses... $ECHO_C" >&6; }
3203 if test "${ac_cv_lib_curses_printw+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 ac_check_lib_save_LIBS=$LIBS
3207 LIBS="-lcurses $LIBS"
3208 cat >conftest.$ac_ext <<_ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3215 /* Override any GCC internal prototype to avoid an error.
3216 Use char because int might match the return type of a GCC
3217 builtin and then its argument prototype would still apply. */
3230 rm -f conftest.$ac_objext conftest$ac_exeext
3231 if { (ac_try="$ac_link"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_link") 2>conftest.er1
3239 grep -v '^ *+' conftest.er1 >conftest.err
3241 cat conftest.err >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest$ac_exeext &&
3247 $as_test_x conftest$ac_exeext; then
3248 ac_cv_lib_curses_printw=yes
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 ac_cv_lib_curses_printw=no
3256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3257 conftest$ac_exeext conftest.$ac_ext
3258 LIBS=$ac_check_lib_save_LIBS
3260 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_printw" >&5
3261 echo "${ECHO_T}$ac_cv_lib_curses_printw" >&6; }
3262 if test $ac_cv_lib_curses_printw = yes; then
3263 FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
3268 if test x"$FSED_CPM" = x""; then
3269 { echo "$as_me:$LINENO: checking for printw in -lncurses" >&5
3270 echo $ECHO_N "checking for printw in -lncurses... $ECHO_C" >&6; }
3271 if test "${ac_cv_lib_ncurses_printw+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_check_lib_save_LIBS=$LIBS
3275 LIBS="-lncurses $LIBS"
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3283 /* Override any GCC internal prototype to avoid an error.
3284 Use char because int might match the return type of a GCC
3285 builtin and then its argument prototype would still apply. */
3298 rm -f conftest.$ac_objext conftest$ac_exeext
3299 if { (ac_try="$ac_link"
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_link") 2>conftest.er1
3307 grep -v '^ *+' conftest.er1 >conftest.err
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest$ac_exeext &&
3315 $as_test_x conftest$ac_exeext; then
3316 ac_cv_lib_ncurses_printw=yes
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 ac_cv_lib_ncurses_printw=no
3324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3325 conftest$ac_exeext conftest.$ac_ext
3326 LIBS=$ac_check_lib_save_LIBS
3328 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_printw" >&5
3329 echo "${ECHO_T}$ac_cv_lib_ncurses_printw" >&6; }
3330 if test $ac_cv_lib_ncurses_printw = yes; then
3331 FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
3338 if test "$LIBDSK" != ""; then
3340 CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
3341 CFLAGS="$CFLAGS -I$LIBDSK/include"
3342 LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
3344 { echo "$as_me:$LINENO: checking for dsk_open in -ldsk" >&5
3345 echo $ECHO_N "checking for dsk_open in -ldsk... $ECHO_C" >&6; }
3346 if test "${ac_cv_lib_dsk_dsk_open+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 ac_check_lib_save_LIBS=$LIBS
3351 cat >conftest.$ac_ext <<_ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3358 /* Override any GCC internal prototype to avoid an error.
3359 Use char because int might match the return type of a GCC
3360 builtin and then its argument prototype would still apply. */
3373 rm -f conftest.$ac_objext conftest$ac_exeext
3374 if { (ac_try="$ac_link"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_link") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest$ac_exeext &&
3390 $as_test_x conftest$ac_exeext; then
3391 ac_cv_lib_dsk_dsk_open=yes
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 ac_cv_lib_dsk_dsk_open=no
3399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3400 conftest$ac_exeext conftest.$ac_ext
3401 LIBS=$ac_check_lib_save_LIBS
3403 { echo "$as_me:$LINENO: result: $ac_cv_lib_dsk_dsk_open" >&5
3404 echo "${ECHO_T}$ac_cv_lib_dsk_dsk_open" >&6; }
3405 if test $ac_cv_lib_dsk_dsk_open = yes; then
3406 cat >>confdefs.h <<_ACEOF
3407 #define HAVE_LIBDSK 1
3415 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3416 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3417 if test "${ac_cv_path_GREP+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 # Extract the first word of "grep ggrep" to use in msg output
3421 if test -z "$GREP"; then
3422 set dummy grep ggrep; ac_prog_name=$2
3423 if test "${ac_cv_path_GREP+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 ac_path_GREP_found=false
3427 # Loop through the user's path and test for each of PROGNAME-LIST
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3432 test -z "$as_dir" && as_dir=.
3433 for ac_prog in grep ggrep; do
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3436 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3437 # Check for GNU ac_path_GREP and select it if it is found.
3438 # Check for GNU $ac_path_GREP
3439 case `"$ac_path_GREP" --version 2>&1` in
3441 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3444 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3447 cat "conftest.in" "conftest.in" >"conftest.tmp"
3448 mv "conftest.tmp" "conftest.in"
3449 cp "conftest.in" "conftest.nl"
3450 echo 'GREP' >> "conftest.nl"
3451 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3453 ac_count=`expr $ac_count + 1`
3454 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3455 # Best one so far, save it but keep looking for a better one
3456 ac_cv_path_GREP="$ac_path_GREP"
3457 ac_path_GREP_max=$ac_count
3459 # 10*(2^10) chars as input seems more than enough
3460 test $ac_count -gt 10 && break
3462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3466 $ac_path_GREP_found && break 3
3476 GREP="$ac_cv_path_GREP"
3477 if test -z "$GREP"; then
3478 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3479 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3480 { (exit 1); exit 1; }; }
3484 ac_cv_path_GREP=$GREP
3489 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3490 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3491 GREP="$ac_cv_path_GREP"
3494 { echo "$as_me:$LINENO: checking for egrep" >&5
3495 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3496 if test "${ac_cv_path_EGREP+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3500 then ac_cv_path_EGREP="$GREP -E"
3502 # Extract the first word of "egrep" to use in msg output
3503 if test -z "$EGREP"; then
3504 set dummy egrep; ac_prog_name=$2
3505 if test "${ac_cv_path_EGREP+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 ac_path_EGREP_found=false
3509 # Loop through the user's path and test for each of PROGNAME-LIST
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3514 test -z "$as_dir" && as_dir=.
3515 for ac_prog in egrep; do
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3518 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3519 # Check for GNU ac_path_EGREP and select it if it is found.
3520 # Check for GNU $ac_path_EGREP
3521 case `"$ac_path_EGREP" --version 2>&1` in
3523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3526 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3529 cat "conftest.in" "conftest.in" >"conftest.tmp"
3530 mv "conftest.tmp" "conftest.in"
3531 cp "conftest.in" "conftest.nl"
3532 echo 'EGREP' >> "conftest.nl"
3533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3535 ac_count=`expr $ac_count + 1`
3536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3537 # Best one so far, save it but keep looking for a better one
3538 ac_cv_path_EGREP="$ac_path_EGREP"
3539 ac_path_EGREP_max=$ac_count
3541 # 10*(2^10) chars as input seems more than enough
3542 test $ac_count -gt 10 && break
3544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3548 $ac_path_EGREP_found && break 3
3558 EGREP="$ac_cv_path_EGREP"
3559 if test -z "$EGREP"; then
3560 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3561 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3562 { (exit 1); exit 1; }; }
3566 ac_cv_path_EGREP=$EGREP
3572 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3573 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3574 EGREP="$ac_cv_path_EGREP"
3577 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3578 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3579 if test "${ac_cv_header_stdc+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } && {
3615 test -z "$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 } && test -s conftest.$ac_objext; then
3618 ac_cv_header_stdc=yes
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 ac_cv_header_stdc=no
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 if test $ac_cv_header_stdc = yes; then
3629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 $EGREP "memchr" >/dev/null 2>&1; then
3643 ac_cv_header_stdc=no
3649 if test $ac_cv_header_stdc = yes; then
3650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3651 cat >conftest.$ac_ext <<_ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661 $EGREP "free" >/dev/null 2>&1; then
3664 ac_cv_header_stdc=no
3670 if test $ac_cv_header_stdc = yes; then
3671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672 if test "$cross_compiling" = yes; then
3675 cat >conftest.$ac_ext <<_ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3683 #if ((' ' & 0x0FF) == 0x020)
3684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3687 # define ISLOWER(c) \
3688 (('a' <= (c) && (c) <= 'i') \
3689 || ('j' <= (c) && (c) <= 'r') \
3690 || ('s' <= (c) && (c) <= 'z'))
3691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3699 for (i = 0; i < 256; i++)
3700 if (XOR (islower (i), ISLOWER (i))
3701 || toupper (i) != TOUPPER (i))
3706 rm -f conftest$ac_exeext
3707 if { (ac_try="$ac_link"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_link") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3717 { (case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_try") 2>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3728 echo "$as_me: program exited with status $ac_status" >&5
3729 echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3733 ac_cv_header_stdc=no
3735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3741 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3742 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3743 if test $ac_cv_header_stdc = yes; then
3745 cat >>confdefs.h <<\_ACEOF
3746 #define STDC_HEADERS 1
3751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3761 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3762 inttypes.h stdint.h unistd.h
3764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 $ac_includes_default
3778 #include <$ac_header>
3780 rm -f conftest.$ac_objext
3781 if { (ac_try="$ac_compile"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compile") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } && {
3794 test -z "$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3796 } && test -s conftest.$ac_objext; then
3797 eval "$as_ac_Header=yes"
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 eval "$as_ac_Header=no"
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_res=`eval echo '${'$as_ac_Header'}'`
3808 { echo "$as_me:$LINENO: result: $ac_res" >&5
3809 echo "${ECHO_T}$ac_res" >&6; }
3810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3811 cat >>confdefs.h <<_ACEOF
3812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3821 for ac_header in libdsk.h
3823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 ac_res=`eval echo '${'$as_ac_Header'}'`
3831 { echo "$as_me:$LINENO: result: $ac_res" >&5
3832 echo "${ECHO_T}$ac_res" >&6; }
3834 # Is the header compilable?
3835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 $ac_includes_default
3844 #include <$ac_header>
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_compile") 2>conftest.er1
3855 grep -v '^ *+' conftest.er1 >conftest.err
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } && {
3860 test -z "$ac_c_werror_flag" ||
3861 test ! -s conftest.err
3862 } && test -s conftest.$ac_objext; then
3863 ac_header_compiler=yes
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 ac_header_compiler=no
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3873 echo "${ECHO_T}$ac_header_compiler" >&6; }
3875 # Is the header present?
3876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3884 #include <$ac_header>
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } >/dev/null && {
3899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3902 ac_header_preproc=yes
3904 echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 ac_header_preproc=no
3910 rm -f conftest.err conftest.$ac_ext
3911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3912 echo "${ECHO_T}$ac_header_preproc" >&6; }
3914 # So? What about this header?
3915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3921 ac_header_preproc=yes
3924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 eval "$as_ac_Header=\$ac_header_preproc"
3946 ac_res=`eval echo '${'$as_ac_Header'}'`
3947 { echo "$as_me:$LINENO: result: $ac_res" >&5
3948 echo "${ECHO_T}$ac_res" >&6; }
3951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3952 cat >>confdefs.h <<_ACEOF
3953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 echo "No libdsk.h - aborting"; exit 1
3964 if test x"$DEVICE" = x"win32"; then
3967 for ac_header in windows.h winioctl.h
3969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 ac_res=`eval echo '${'$as_ac_Header'}'`
3977 { echo "$as_me:$LINENO: result: $ac_res" >&5
3978 echo "${ECHO_T}$ac_res" >&6; }
3980 # Is the header compilable?
3981 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 $ac_includes_default
3990 #include <$ac_header>
3992 rm -f conftest.$ac_objext
3993 if { (ac_try="$ac_compile"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3999 (eval "$ac_compile") 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest.$ac_objext; then
4009 ac_header_compiler=yes
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 ac_header_compiler=no
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4019 echo "${ECHO_T}$ac_header_compiler" >&6; }
4021 # Is the header present?
4022 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4023 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 #include <$ac_header>
4032 if { (ac_try="$ac_cpp conftest.$ac_ext"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } >/dev/null && {
4045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4048 ac_header_preproc=yes
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4053 ac_header_preproc=no
4056 rm -f conftest.err conftest.$ac_ext
4057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4058 echo "${ECHO_T}$ac_header_preproc" >&6; }
4060 # So? What about this header?
4061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4067 ac_header_preproc=yes
4070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 eval "$as_ac_Header=\$ac_header_preproc"
4092 ac_res=`eval echo '${'$as_ac_Header'}'`
4093 { echo "$as_me:$LINENO: result: $ac_res" >&5
4094 echo "${ECHO_T}$ac_res" >&6; }
4097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4098 cat >>confdefs.h <<_ACEOF
4099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 echo "Windows headers not found - aborting"; exit 1
4110 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4111 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4112 if test "${ac_cv_header_stdc+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 cat >conftest.$ac_ext <<_ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 ac_cv_header_stdc=yes
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4156 ac_cv_header_stdc=no
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 if test $ac_cv_header_stdc = yes; then
4162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "memchr" >/dev/null 2>&1; then
4176 ac_cv_header_stdc=no
4182 if test $ac_cv_header_stdc = yes; then
4183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194 $EGREP "free" >/dev/null 2>&1; then
4197 ac_cv_header_stdc=no
4203 if test $ac_cv_header_stdc = yes; then
4204 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4205 if test "$cross_compiling" = yes; then
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4216 #if ((' ' & 0x0FF) == 0x020)
4217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220 # define ISLOWER(c) \
4221 (('a' <= (c) && (c) <= 'i') \
4222 || ('j' <= (c) && (c) <= 'r') \
4223 || ('s' <= (c) && (c) <= 'z'))
4224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232 for (i = 0; i < 256; i++)
4233 if (XOR (islower (i), ISLOWER (i))
4234 || toupper (i) != TOUPPER (i))
4239 rm -f conftest$ac_exeext
4240 if { (ac_try="$ac_link"
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_link") 2>&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4261 echo "$as_me: program exited with status $ac_status" >&5
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4266 ac_cv_header_stdc=no
4268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4274 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4275 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4276 if test $ac_cv_header_stdc = yes; then
4278 cat >>confdefs.h <<\_ACEOF
4279 #define STDC_HEADERS 1
4289 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
4291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 ac_res=`eval echo '${'$as_ac_Header'}'`
4299 { echo "$as_me:$LINENO: result: $ac_res" >&5
4300 echo "${ECHO_T}$ac_res" >&6; }
4302 # Is the header compilable?
4303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312 #include <$ac_header>
4314 rm -f conftest.$ac_objext
4315 if { (ac_try="$ac_compile"
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_compile") 2>conftest.er1
4323 grep -v '^ *+' conftest.er1 >conftest.err
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && {
4328 test -z "$ac_c_werror_flag" ||
4329 test ! -s conftest.err
4330 } && test -s conftest.$ac_objext; then
4331 ac_header_compiler=yes
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_header_compiler=no
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4341 echo "${ECHO_T}$ac_header_compiler" >&6; }
4343 # Is the header present?
4344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4346 cat >conftest.$ac_ext <<_ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 #include <$ac_header>
4354 if { (ac_try="$ac_cpp conftest.$ac_ext"
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } >/dev/null && {
4367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4370 ac_header_preproc=yes
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 ac_header_preproc=no
4378 rm -f conftest.err conftest.$ac_ext
4379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4380 echo "${ECHO_T}$ac_header_preproc" >&6; }
4382 # So? What about this header?
4383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4389 ac_header_preproc=yes
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 eval "$as_ac_Header=\$ac_header_preproc"
4414 ac_res=`eval echo '${'$as_ac_Header'}'`
4415 { echo "$as_me:$LINENO: result: $ac_res" >&5
4416 echo "${ECHO_T}$ac_res" >&6; }
4419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4420 cat >>confdefs.h <<_ACEOF
4421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4429 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4430 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4431 if test "${ac_cv_c_const+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 cat >conftest.$ac_ext <<_ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4444 /* FIXME: Include the comments suggested by Paul. */
4446 /* Ultrix mips cc rejects this. */
4447 typedef int charset[2];
4449 /* SunOS 4.1.1 cc rejects this. */
4450 char const *const *pcpcc;
4452 /* NEC SVR4.0.2 mips cc rejects this. */
4453 struct point {int x, y;};
4454 static struct point const zero = {0,0};
4455 /* AIX XL C 1.02.0.0 rejects this.
4456 It does not let you subtract one const X* pointer from another in
4457 an arm of an if-expression whose if-part is not a constant
4459 const char *g = "string";
4460 pcpcc = &g + (g ? g-g : 0);
4461 /* HPUX 7.0 cc rejects these. */
4463 ppc = (char**) pcpcc;
4464 pcpcc = (char const *const *) ppc;
4465 { /* SCO 3.2v4 cc rejects this. */
4467 char const *s = 0 ? (char *) 0 : (char const *) 0;
4472 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4474 const int *foo = &x[0];
4477 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4478 typedef const int *iptr;
4482 { /* AIX XL C 1.02.0.0 rejects this saying
4483 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4484 struct s { int j; const int *ap[3]; };
4485 struct s *b; b->j = 5;
4487 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4491 return !cs[0] && !zero.x;
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_compile") 2>conftest.er1
4507 grep -v '^ *+' conftest.er1 >conftest.err
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } && {
4512 test -z "$ac_c_werror_flag" ||
4513 test ! -s conftest.err
4514 } && test -s conftest.$ac_objext; then
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4526 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4527 if test $ac_cv_c_const = no; then
4529 cat >>confdefs.h <<\_ACEOF
4535 { echo "$as_me:$LINENO: checking for mode_t" >&5
4536 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
4537 if test "${ac_cv_type_mode_t+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 $ac_includes_default
4547 typedef mode_t ac__type_new_;
4551 if ((ac__type_new_ *) 0)
4553 if (sizeof (ac__type_new_))
4559 rm -f conftest.$ac_objext
4560 if { (ac_try="$ac_compile"
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4568 grep -v '^ *+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 ac_cv_type_mode_t=yes
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_type_mode_t=no
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4587 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
4588 if test $ac_cv_type_mode_t = yes; then
4592 cat >>confdefs.h <<_ACEOF
4598 { echo "$as_me:$LINENO: checking for off_t" >&5
4599 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4600 if test "${ac_cv_type_off_t+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat >conftest.$ac_ext <<_ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h. */
4609 $ac_includes_default
4610 typedef off_t ac__type_new_;
4614 if ((ac__type_new_ *) 0)
4616 if (sizeof (ac__type_new_))
4622 rm -f conftest.$ac_objext
4623 if { (ac_try="$ac_compile"
4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4626 *) ac_try_echo=$ac_try;;
4628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4629 (eval "$ac_compile") 2>conftest.er1
4631 grep -v '^ *+' conftest.er1 >conftest.err
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } && {
4636 test -z "$ac_c_werror_flag" ||
4637 test ! -s conftest.err
4638 } && test -s conftest.$ac_objext; then
4639 ac_cv_type_off_t=yes
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4650 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4651 if test $ac_cv_type_off_t = yes; then
4655 cat >>confdefs.h <<_ACEOF
4656 #define off_t long int
4661 { echo "$as_me:$LINENO: checking for pid_t" >&5
4662 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4663 if test "${ac_cv_type_pid_t+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 typedef pid_t ac__type_new_;
4677 if ((ac__type_new_ *) 0)
4679 if (sizeof (ac__type_new_))
4685 rm -f conftest.$ac_objext
4686 if { (ac_try="$ac_compile"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_compile") 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && {
4699 test -z "$ac_c_werror_flag" ||
4700 test ! -s conftest.err
4701 } && test -s conftest.$ac_objext; then
4702 ac_cv_type_pid_t=yes
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4713 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4714 if test $ac_cv_type_pid_t = yes; then
4718 cat >>confdefs.h <<_ACEOF
4724 { echo "$as_me:$LINENO: checking for size_t" >&5
4725 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4726 if test "${ac_cv_type_size_t+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 cat >conftest.$ac_ext <<_ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 $ac_includes_default
4736 typedef size_t ac__type_new_;
4740 if ((ac__type_new_ *) 0)
4742 if (sizeof (ac__type_new_))
4748 rm -f conftest.$ac_objext
4749 if { (ac_try="$ac_compile"
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_compile") 2>conftest.er1
4757 grep -v '^ *+' conftest.er1 >conftest.err
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && {
4762 test -z "$ac_c_werror_flag" ||
4763 test ! -s conftest.err
4764 } && test -s conftest.$ac_objext; then
4765 ac_cv_type_size_t=yes
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 ac_cv_type_size_t=no
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4776 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4777 if test $ac_cv_type_size_t = yes; then
4781 cat >>confdefs.h <<_ACEOF
4782 #define size_t unsigned int
4787 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
4788 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
4789 if test "${ac_cv_struct_tm+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 #include <sys/types.h>
4805 int *p = &tm.tm_sec;
4811 rm -f conftest.$ac_objext
4812 if { (ac_try="$ac_compile"
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_compile") 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } && {
4825 test -z "$ac_c_werror_flag" ||
4826 test ! -s conftest.err
4827 } && test -s conftest.$ac_objext; then
4828 ac_cv_struct_tm=time.h
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ac_cv_struct_tm=sys/time.h
4836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4839 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
4840 if test $ac_cv_struct_tm = sys/time.h; then
4842 cat >>confdefs.h <<\_ACEOF
4843 #define TM_IN_SYS_TIME 1
4850 # Check whether --enable-largefile was given.
4851 if test "${enable_largefile+set}" = set; then
4852 enableval=$enable_largefile;
4855 if test "$enable_largefile" != no; then
4857 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4858 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
4859 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4862 ac_cv_sys_largefile_CC=no
4863 if test "$GCC" != yes; then
4866 # IRIX 6.2 and later do not support large files by default,
4867 # so use the C compiler's -n32 option if that helps.
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <sys/types.h>
4875 /* Check that off_t can represent 2**63 - 1 correctly.
4876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4877 since some C++ compilers masquerading as C compilers
4878 incorrectly reject 9223372036854775807. */
4879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4881 && LARGE_OFF_T % 2147483647 == 1)
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_compile") 2>conftest.er1
4900 grep -v '^ *+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest.$ac_objext; then
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4916 rm -f core conftest.err conftest.$ac_objext
4918 rm -f conftest.$ac_objext
4919 if { (ac_try="$ac_compile"
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_compile") 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest.$ac_objext; then
4935 ac_cv_sys_largefile_CC=' -n32'; break
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4943 rm -f core conftest.err conftest.$ac_objext
4947 rm -f conftest.$ac_ext
4950 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4951 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4952 if test "$ac_cv_sys_largefile_CC" != no; then
4953 CC=$CC$ac_cv_sys_largefile_CC
4956 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4957 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4958 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 cat >conftest.$ac_ext <<_ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 #include <sys/types.h>
4969 /* Check that off_t can represent 2**63 - 1 correctly.
4970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4971 since some C++ compilers masquerading as C compilers
4972 incorrectly reject 9223372036854775807. */
4973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4975 && LARGE_OFF_T % 2147483647 == 1)
4985 rm -f conftest.$ac_objext
4986 if { (ac_try="$ac_compile"
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_compile") 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } && {
4999 test -z "$ac_c_werror_flag" ||
5000 test ! -s conftest.err
5001 } && test -s conftest.$ac_objext; then
5002 ac_cv_sys_file_offset_bits=no; break
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #define _FILE_OFFSET_BITS 64
5018 #include <sys/types.h>
5019 /* Check that off_t can represent 2**63 - 1 correctly.
5020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5021 since some C++ compilers masquerading as C compilers
5022 incorrectly reject 9223372036854775807. */
5023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5025 && LARGE_OFF_T % 2147483647 == 1)
5035 rm -f conftest.$ac_objext
5036 if { (ac_try="$ac_compile"
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_compile") 2>conftest.er1
5044 grep -v '^ *+' conftest.er1 >conftest.err
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && {
5049 test -z "$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 } && test -s conftest.$ac_objext; then
5052 ac_cv_sys_file_offset_bits=64; break
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 ac_cv_sys_file_offset_bits=unknown
5065 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5066 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5067 case $ac_cv_sys_file_offset_bits in #(
5070 cat >>confdefs.h <<_ACEOF
5071 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5076 if test $ac_cv_sys_file_offset_bits = unknown; then
5077 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5078 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5079 if test "${ac_cv_sys_large_files+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 #include <sys/types.h>
5090 /* Check that off_t can represent 2**63 - 1 correctly.
5091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5092 since some C++ compilers masquerading as C compilers
5093 incorrectly reject 9223372036854775807. */
5094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5096 && LARGE_OFF_T % 2147483647 == 1)
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_compile") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest.$ac_objext; then
5123 ac_cv_sys_large_files=no; break
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 cat >conftest.$ac_ext <<_ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5138 #define _LARGE_FILES 1
5139 #include <sys/types.h>
5140 /* Check that off_t can represent 2**63 - 1 correctly.
5141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5142 since some C++ compilers masquerading as C compilers
5143 incorrectly reject 9223372036854775807. */
5144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5146 && LARGE_OFF_T % 2147483647 == 1)
5156 rm -f conftest.$ac_objext
5157 if { (ac_try="$ac_compile"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_compile") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } && {
5170 test -z "$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5172 } && test -s conftest.$ac_objext; then
5173 ac_cv_sys_large_files=1; break
5175 echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 ac_cv_sys_large_files=unknown
5186 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5187 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5188 case $ac_cv_sys_large_files in #(
5191 cat >>confdefs.h <<_ACEOF
5192 #define _LARGE_FILES $ac_cv_sys_large_files
5201 if test x"$FSED_CPM" != x""; then
5202 FSED_CPM="$FSED_CPM$EXEEXT"
5205 { echo "$as_me:$LINENO: checking for working memcmp" >&5
5206 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
5207 if test "${ac_cv_func_memcmp_working+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 if test "$cross_compiling" = yes; then
5211 ac_cv_func_memcmp_working=no
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 $ac_includes_default
5224 /* Some versions of memcmp are not 8-bit clean. */
5225 char c0 = '\100', c1 = '\200', c2 = '\201';
5226 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5229 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5230 or more and with at least one buffer not starting on a 4-byte boundary.
5231 William Lewis provided this test program. */
5236 for (i = 0; i < 4; i++)
5240 strcpy (a, "--------01111111");
5241 strcpy (b, "--------10000000");
5242 if (memcmp (a, b, 16) >= 0)
5252 rm -f conftest$ac_exeext
5253 if { (ac_try="$ac_link"
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_link") 2>&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5263 { (case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_try") 2>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; }; then
5272 ac_cv_func_memcmp_working=yes
5274 echo "$as_me: program exited with status $ac_status" >&5
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_cv_func_memcmp_working=no
5281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5287 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
5288 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5289 *" memcmp.$ac_objext "* ) ;;
5290 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5296 for ac_func in strftime
5298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5312 #define $ac_func innocuous_$ac_func
5314 /* System header to define __stub macros and hopefully few prototypes,
5315 which can conflict with char $ac_func (); below.
5316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5317 <limits.h> exists even on freestanding compilers. */
5320 # include <limits.h>
5322 # include <assert.h>
5327 /* Override any GCC internal prototype to avoid an error.
5328 Use char because int might match the return type of a GCC
5329 builtin and then its argument prototype would still apply. */
5334 /* The GNU C library defines this for functions which it implements
5335 to always fail with ENOSYS. Some functions are actually named
5336 something starting with __ and the normal name is an alias. */
5337 #if defined __stub_$ac_func || defined __stub___$ac_func
5349 rm -f conftest.$ac_objext conftest$ac_exeext
5350 if { (ac_try="$ac_link"
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_link") 2>conftest.er1
5358 grep -v '^ *+' conftest.er1 >conftest.err
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } && {
5363 test -z "$ac_c_werror_flag" ||
5364 test ! -s conftest.err
5365 } && test -s conftest$ac_exeext &&
5366 $as_test_x conftest$ac_exeext; then
5367 eval "$as_ac_var=yes"
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 eval "$as_ac_var=no"
5375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5376 conftest$ac_exeext conftest.$ac_ext
5378 ac_res=`eval echo '${'$as_ac_var'}'`
5379 { echo "$as_me:$LINENO: result: $ac_res" >&5
5380 echo "${ECHO_T}$ac_res" >&6; }
5381 if test `eval echo '${'$as_ac_var'}'` = yes; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5387 # strftime is in -lintl on SCO UNIX.
5388 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5389 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
5390 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5393 ac_check_lib_save_LIBS=$LIBS
5395 cat >conftest.$ac_ext <<_ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5402 /* Override any GCC internal prototype to avoid an error.
5403 Use char because int might match the return type of a GCC
5404 builtin and then its argument prototype would still apply. */
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (ac_try="$ac_link"
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_link") 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } && {
5431 test -z "$ac_c_werror_flag" ||
5432 test ! -s conftest.err
5433 } && test -s conftest$ac_exeext &&
5434 $as_test_x conftest$ac_exeext; then
5435 ac_cv_lib_intl_strftime=yes
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 ac_cv_lib_intl_strftime=no
5443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5444 conftest$ac_exeext conftest.$ac_ext
5445 LIBS=$ac_check_lib_save_LIBS
5447 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5448 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
5449 if test $ac_cv_lib_intl_strftime = yes; then
5450 cat >>confdefs.h <<\_ACEOF
5451 #define HAVE_STRFTIME 1
5462 for ac_func in mktime strerror
5464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5478 #define $ac_func innocuous_$ac_func
5480 /* System header to define __stub macros and hopefully few prototypes,
5481 which can conflict with char $ac_func (); below.
5482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5483 <limits.h> exists even on freestanding compilers. */
5486 # include <limits.h>
5488 # include <assert.h>
5493 /* Override any GCC internal prototype to avoid an error.
5494 Use char because int might match the return type of a GCC
5495 builtin and then its argument prototype would still apply. */
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined __stub_$ac_func || defined __stub___$ac_func
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (ac_try="$ac_link"
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_link") 2>conftest.er1
5524 grep -v '^ *+' conftest.er1 >conftest.err
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } && {
5529 test -z "$ac_c_werror_flag" ||
5530 test ! -s conftest.err
5531 } && test -s conftest$ac_exeext &&
5532 $as_test_x conftest$ac_exeext; then
5533 eval "$as_ac_var=yes"
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 eval "$as_ac_var=no"
5541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5542 conftest$ac_exeext conftest.$ac_ext
5544 ac_res=`eval echo '${'$as_ac_var'}'`
5545 { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 if test `eval echo '${'$as_ac_var'}'` = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5559 eval DATADIR=$datadir
5565 ac_config_files="$ac_config_files Makefile cpm.5 cpmchattr.1 cpmchmod.1 cpmcp.1 cpmls.1 cpmrm.1 fsck.cpm.1 fsed.cpm.1 mkfs.cpm.1"
5567 cat >confcache <<\_ACEOF
5568 # This file is a shell script that caches the results of configure
5569 # tests run on this system so they can be shared between configure
5570 # scripts and configure runs, see configure's option --config-cache.
5571 # It is not useful on other systems. If it contains results you don't
5572 # want to keep, you may remove or edit it.
5574 # config.status only pays attention to the cache file if you give it
5575 # the --recheck option to rerun configure.
5577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5583 # The following way of writing the cache mishandles newlines in values,
5584 # but we know of no workaround that is simple, portable, and efficient.
5585 # So, we kill variables containing newlines.
5586 # Ultrix sh set writes to stderr and can't be redirected directly,
5587 # and sets the high bit in the cache file unless we assign to the vars.
5589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5590 eval ac_val=\$$ac_var
5594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5598 _ | IFS | as_nl) ;; #(
5599 *) $as_unset $ac_var ;;
5605 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5606 *${as_nl}ac_space=\ *)
5607 # `set' does not quote correctly, so add quotes (double-quote
5608 # substitution turns \\\\ into \\, and sed turns \\ into \).
5611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5614 # `set' quotes correctly as required by POSIX, so do not add quotes.
5615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5629 if test -w "$cache_file"; then
5630 test "x$cache_file" != "x/dev/null" &&
5631 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5632 echo "$as_me: updating cache $cache_file" >&6;}
5633 cat confcache >$cache_file
5635 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5636 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5642 # Let make expand exec_prefix.
5643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5645 DEFS=-DHAVE_CONFIG_H
5649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5650 # 1. Remove the extension, and $U if already installed.
5651 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5652 ac_i=`echo "$ac_i" | sed "$ac_script"`
5653 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5654 # will be set to the directory where LIBOBJS objects are built.
5655 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5656 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5660 LTLIBOBJS=$ac_ltlibobjs
5664 : ${CONFIG_STATUS=./config.status}
5665 ac_clean_files_save=$ac_clean_files
5666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5669 cat >$CONFIG_STATUS <<_ACEOF
5671 # Generated by $as_me.
5672 # Run this file to recreate the current configuration.
5673 # Compiler output produced by configure, useful for debugging
5674 # configure, is in config.log if it exists.
5679 SHELL=\${CONFIG_SHELL-$SHELL}
5682 cat >>$CONFIG_STATUS <<\_ACEOF
5683 ## --------------------- ##
5684 ## M4sh Initialization. ##
5685 ## --------------------- ##
5687 # Be more Bourne compatible
5688 DUALCASE=1; export DUALCASE # for MKS sh
5689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5693 # is contrary to our usage. Disable this feature.
5694 alias -g '${1+"$@"}'='"$@"'
5695 setopt NO_GLOB_SUBST
5697 case `(set -o) 2>/dev/null` in
5698 *posix*) set -o posix ;;
5707 # Avoid depending upon Character Ranges.
5708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5711 as_cr_digits='0123456789'
5712 as_cr_alnum=$as_cr_Letters$as_cr_digits
5714 # The user is always right.
5715 if test "${PATH_SEPARATOR+set}" != set; then
5716 echo "#! /bin/sh" >conf$$.sh
5717 echo "exit 0" >>conf$$.sh
5719 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5727 # Support unset when possible.
5728 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5736 # We need space, tab and new line, in precisely that order. Quoting is
5737 # there to prevent editors from complaining about space-tab.
5738 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5739 # splitting by setting IFS to empty value.)
5744 # Find who we are. Look in the path if we contain no directory separator.
5746 *[\\/]* ) as_myself=$0 ;;
5747 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 test -z "$as_dir" && as_dir=.
5752 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5758 # We did not find ourselves, most probably we were run as `sh COMMAND'
5759 # in which case we are not to be found in the path.
5760 if test "x$as_myself" = x; then
5763 if test ! -f "$as_myself"; then
5764 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5765 { (exit 1); exit 1; }
5768 # Work around bugs in pre-3.0 UWIN ksh.
5769 for as_var in ENV MAIL MAILPATH
5770 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5778 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5779 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5780 LC_TELEPHONE LC_TIME
5782 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5783 eval $as_var=C; export $as_var
5785 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5789 # Required to use basename.
5790 if expr a : '\(a\)' >/dev/null 2>&1 &&
5791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5798 as_basename=basename
5804 # Name of the executable.
5805 as_me=`$as_basename -- "$0" ||
5806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5807 X"$0" : 'X\(//\)$' \| \
5808 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5810 sed '/^.*\/\([^/][^/]*\)\/*$/{
5831 test "x$as_lineno_1" != "x$as_lineno_2" &&
5832 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5835 # uniformly replaced by the line number. The first 'sed' inserts a
5836 # line-number line after each line using $LINENO; the second 'sed'
5837 # does the real work. The second script uses 'N' to pair each
5838 # line-number line with the line containing $LINENO, and appends
5839 # trailing '-' during substitution so that $LINENO is not a special
5841 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5842 # scripts with optimization help from Paolo Bonzini. Blame Lee
5843 # E. McMahon (1931-1989) for sed's syntax. :-)
5855 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5859 chmod +x "$as_me.lineno" ||
5860 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5861 { (exit 1); exit 1; }; }
5863 # Don't try to exec as it changes $[0], causing all sort of problems
5864 # (the dirname of $[0] is not the place where we might find the
5865 # original and so on. Autoconf is especially sensitive to this).
5867 # Exit status is that of the last command.
5872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5878 ECHO_C= ECHO_N= ECHO_T=
5881 case `echo 'x\c'` in
5882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5889 if expr a : '\(a\)' >/dev/null 2>&1 &&
5890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5896 rm -f conf$$ conf$$.exe conf$$.file
5897 if test -d conf$$.dir; then
5898 rm -f conf$$.dir/conf$$.file
5904 if ln -s conf$$.file conf$$ 2>/dev/null; then
5906 # ... but there are two gotchas:
5907 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5908 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5909 # In both cases, we have to default to `cp -p'.
5910 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5912 elif ln conf$$.file conf$$ 2>/dev/null; then
5917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5918 rmdir conf$$.dir 2>/dev/null
5920 if mkdir -p . 2>/dev/null; then
5923 test -d ./-p && rmdir ./-p
5927 if test -x / >/dev/null 2>&1; then
5930 if ls -dL / >/dev/null 2>&1; then
5937 if test -d "$1"; then
5943 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5944 ???[sx]*):;;*)false;;esac;fi
5948 as_executable_p=$as_test_x
5950 # Sed expression to map a string onto a valid CPP name.
5951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5953 # Sed expression to map a string onto a valid variable name.
5954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5959 # Save the log message, to keep $[0] and so on meaningful, and to
5960 # report actual input values of CONFIG_FILES etc. instead of their
5961 # values after options handling.
5963 This file was extended by $as_me, which was
5964 generated by GNU Autoconf 2.61. Invocation command line was
5966 CONFIG_FILES = $CONFIG_FILES
5967 CONFIG_HEADERS = $CONFIG_HEADERS
5968 CONFIG_LINKS = $CONFIG_LINKS
5969 CONFIG_COMMANDS = $CONFIG_COMMANDS
5972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5977 cat >>$CONFIG_STATUS <<_ACEOF
5978 # Files that config.status was made for.
5979 config_files="$ac_config_files"
5980 config_headers="$ac_config_headers"
5984 cat >>$CONFIG_STATUS <<\_ACEOF
5986 \`$as_me' instantiates files from templates according to the
5987 current configuration.
5989 Usage: $0 [OPTIONS] [FILE]...
5991 -h, --help print this help, then exit
5992 -V, --version print version number and configuration settings, then exit
5993 -q, --quiet do not print progress messages
5994 -d, --debug don't remove temporary files
5995 --recheck update $as_me by reconfiguring in the same conditions
5996 --file=FILE[:TEMPLATE]
5997 instantiate the configuration file FILE
5998 --header=FILE[:TEMPLATE]
5999 instantiate the configuration header FILE
6001 Configuration files:
6004 Configuration headers:
6007 Report bugs to <bug-autoconf@gnu.org>."
6010 cat >>$CONFIG_STATUS <<_ACEOF
6013 configured by $0, generated by GNU Autoconf 2.61,
6014 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6016 Copyright (C) 2006 Free Software Foundation, Inc.
6017 This config.status script is free software; the Free Software Foundation
6018 gives unlimited permission to copy, distribute and modify it."
6025 cat >>$CONFIG_STATUS <<\_ACEOF
6026 # If no file are specified by the user, then we need to provide default
6027 # value. By we need to know if files were specified by the user.
6033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6045 # Handling of the options.
6046 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6048 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6049 echo "$ac_cs_version"; exit ;;
6050 --debug | --debu | --deb | --de | --d | -d )
6052 --file | --fil | --fi | --f )
6054 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6055 ac_need_defaults=false;;
6056 --header | --heade | --head | --hea )
6058 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6059 ac_need_defaults=false;;
6061 # Conflict between --help and --header
6062 { echo "$as_me: error: ambiguous option: $1
6063 Try \`$0 --help' for more information." >&2
6064 { (exit 1); exit 1; }; };;
6065 --help | --hel | -h )
6066 echo "$ac_cs_usage"; exit ;;
6067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6072 -*) { echo "$as_me: error: unrecognized option: $1
6073 Try \`$0 --help' for more information." >&2
6074 { (exit 1); exit 1; }; } ;;
6076 *) ac_config_targets="$ac_config_targets $1"
6077 ac_need_defaults=false ;;
6083 ac_configure_extra_args=
6085 if $ac_cs_silent; then
6087 ac_configure_extra_args="$ac_configure_extra_args --silent"
6091 cat >>$CONFIG_STATUS <<_ACEOF
6092 if \$ac_cs_recheck; then
6093 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6096 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6100 cat >>$CONFIG_STATUS <<\_ACEOF
6104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6105 ## Running $as_me. ##
6111 cat >>$CONFIG_STATUS <<_ACEOF
6114 cat >>$CONFIG_STATUS <<\_ACEOF
6116 # Handling of arguments.
6117 for ac_config_target in $ac_config_targets
6119 case $ac_config_target in
6120 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6121 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6122 "cpm.5") CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
6123 "cpmchattr.1") CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
6124 "cpmchmod.1") CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
6125 "cpmcp.1") CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
6126 "cpmls.1") CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
6127 "cpmrm.1") CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
6128 "fsck.cpm.1") CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
6129 "fsed.cpm.1") CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
6130 "mkfs.cpm.1") CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
6132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6134 { (exit 1); exit 1; }; };;
6139 # If the user did not use the arguments to specify the items to instantiate,
6140 # then the envvar interface is used. Set only those that are not.
6141 # We use the long form for the default assignment because of an extremely
6142 # bizarre bug on SunOS 4.1.3.
6143 if $ac_need_defaults; then
6144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6148 # Have a temporary directory for convenience. Make it in the build tree
6149 # simply because there is no reason against having it here, and in addition,
6150 # creating and moving files from /tmp can sometimes cause problems.
6151 # Hook for its removal unless debugging.
6152 # Note that there is a small window in which the directory will not be cleaned:
6153 # after its creation but before its name has been assigned to `$tmp'.
6157 trap 'exit_status=$?
6158 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6160 trap '{ (exit 1); exit 1; }' 1 2 13 15
6162 # Create a (secure) tmp directory for tmp files.
6165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6166 test -n "$tmp" && test -d "$tmp"
6169 tmp=./conf$$-$RANDOM
6170 (umask 077 && mkdir "$tmp")
6173 echo "$me: cannot create a temporary directory in ." >&2
6174 { (exit 1); exit 1; }
6178 # Set up the sed scripts for CONFIG_FILES section.
6181 # No need to generate the scripts if there are no CONFIG_FILES.
6182 # This happens for instance when ./config.status config.h
6183 if test -n "$CONFIG_FILES"; then
6190 for ac_last_try in false false false false false :; do
6191 cat >conf$$subs.sed <<_ACEOF
6192 SHELL!$SHELL$ac_delim
6193 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6194 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6195 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6196 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6197 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6198 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6199 exec_prefix!$exec_prefix$ac_delim
6200 prefix!$prefix$ac_delim
6201 program_transform_name!$program_transform_name$ac_delim
6202 bindir!$bindir$ac_delim
6203 sbindir!$sbindir$ac_delim
6204 libexecdir!$libexecdir$ac_delim
6205 datarootdir!$datarootdir$ac_delim
6206 datadir!$datadir$ac_delim
6207 sysconfdir!$sysconfdir$ac_delim
6208 sharedstatedir!$sharedstatedir$ac_delim
6209 localstatedir!$localstatedir$ac_delim
6210 includedir!$includedir$ac_delim
6211 oldincludedir!$oldincludedir$ac_delim
6212 docdir!$docdir$ac_delim
6213 infodir!$infodir$ac_delim
6214 htmldir!$htmldir$ac_delim
6215 dvidir!$dvidir$ac_delim
6216 pdfdir!$pdfdir$ac_delim
6217 psdir!$psdir$ac_delim
6218 libdir!$libdir$ac_delim
6219 localedir!$localedir$ac_delim
6220 mandir!$mandir$ac_delim
6222 ECHO_C!$ECHO_C$ac_delim
6223 ECHO_N!$ECHO_N$ac_delim
6224 ECHO_T!$ECHO_T$ac_delim
6226 build_alias!$build_alias$ac_delim
6227 host_alias!$host_alias$ac_delim
6228 target_alias!$target_alias$ac_delim
6229 build!$build$ac_delim
6230 build_cpu!$build_cpu$ac_delim
6231 build_vendor!$build_vendor$ac_delim
6232 build_os!$build_os$ac_delim
6234 host_cpu!$host_cpu$ac_delim
6235 host_vendor!$host_vendor$ac_delim
6236 host_os!$host_os$ac_delim
6238 CFLAGS!$CFLAGS$ac_delim
6239 LDFLAGS!$LDFLAGS$ac_delim
6240 CPPFLAGS!$CPPFLAGS$ac_delim
6241 ac_ct_CC!$ac_ct_CC$ac_delim
6242 EXEEXT!$EXEEXT$ac_delim
6243 OBJEXT!$OBJEXT$ac_delim
6244 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6245 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6246 INSTALL_DATA!$INSTALL_DATA$ac_delim
6249 EGREP!$EGREP$ac_delim
6250 LIBOBJS!$LIBOBJS$ac_delim
6251 LDLIBS!$LDLIBS$ac_delim
6252 LDDEPS!$LDDEPS$ac_delim
6253 DEVICE!$DEVICE$ac_delim
6254 DATADIR!$DATADIR$ac_delim
6255 DISKDEFS!$DISKDEFS$ac_delim
6256 DEFFORMAT!$DEFFORMAT$ac_delim
6257 FSED_CPM!$FSED_CPM$ac_delim
6258 UPDATED!$UPDATED$ac_delim
6259 LTLIBOBJS!$LTLIBOBJS$ac_delim
6262 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
6264 elif $ac_last_try; then
6265 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6266 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6267 { (exit 1); exit 1; }; }
6269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6273 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6274 if test -n "$ac_eof"; then
6275 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6276 ac_eof=`expr $ac_eof + 1`
6279 cat >>$CONFIG_STATUS <<_ACEOF
6280 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6284 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6285 s/^/s,@/; s/!/@,|#_!!_#|/
6288 s/'"$ac_delim"'$/,g/; t
6290 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6291 ' >>$CONFIG_STATUS <conf$$subs.sed
6292 rm -f conf$$subs.sed
6293 cat >>$CONFIG_STATUS <<_ACEOF
6300 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6301 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6302 # trailing colons and then remove the whole line if VPATH becomes empty
6303 # (actually we leave an empty line to preserve line numbers).
6304 if test "x$srcdir" = x.; then
6305 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6309 s/^\([^=]*=[ ]*\):*/\1/
6315 cat >>$CONFIG_STATUS <<\_ACEOF
6316 fi # test -n "$CONFIG_FILES"
6319 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
6322 :[FHLC]) ac_mode=$ac_tag; continue;;
6324 case $ac_mode$ac_tag in
6326 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6327 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6328 { (exit 1); exit 1; }; };;
6329 :[FH]-) ac_tag=-:-;;
6330 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6347 -) ac_f="$tmp/stdin";;
6348 *) # Look for the file first in the build tree, then in the source tree
6349 # (if the path is not absolute). The absolute path cannot be DOS-style,
6350 # because $ac_f cannot contain `:'.
6354 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6356 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6357 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6358 { (exit 1); exit 1; }; };;
6360 ac_file_inputs="$ac_file_inputs $ac_f"
6363 # Let's still pretend it is `configure' which instantiates (i.e., don't
6364 # use $as_me), people would be surprised to read:
6365 # /* config.h. Generated by config.status. */
6366 configure_input="Generated from "`IFS=:
6367 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6368 if test x"$ac_file" != x-; then
6369 configure_input="$ac_file. $configure_input"
6370 { echo "$as_me:$LINENO: creating $ac_file" >&5
6371 echo "$as_me: creating $ac_file" >&6;}
6375 *:-:* | *:-) cat >"$tmp/stdin";;
6380 ac_dir=`$as_dirname -- "$ac_file" ||
6381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6382 X"$ac_file" : 'X\(//\)[^/]' \| \
6383 X"$ac_file" : 'X\(//\)$' \| \
6384 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6405 -*) as_dir=./$as_dir;;
6407 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6411 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6412 *) as_qdir=$as_dir;;
6414 as_dirs="'$as_qdir' $as_dirs"
6415 as_dir=`$as_dirname -- "$as_dir" ||
6416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6417 X"$as_dir" : 'X\(//\)[^/]' \| \
6418 X"$as_dir" : 'X\(//\)$' \| \
6419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6438 test -d "$as_dir" && break
6440 test -z "$as_dirs" || eval "mkdir $as_dirs"
6441 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6442 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6443 { (exit 1); exit 1; }; }; }
6447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6450 # A ".." for each directory in $ac_dir_suffix.
6451 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6452 case $ac_top_builddir_sub in
6453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6457 ac_abs_top_builddir=$ac_pwd
6458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6459 # for backward compatibility:
6460 ac_top_builddir=$ac_top_build_prefix
6463 .) # We are building in place.
6465 ac_top_srcdir=$ac_top_builddir_sub
6466 ac_abs_top_srcdir=$ac_pwd ;;
6467 [\\/]* | ?:[\\/]* ) # Absolute name.
6468 ac_srcdir=$srcdir$ac_dir_suffix;
6469 ac_top_srcdir=$srcdir
6470 ac_abs_top_srcdir=$srcdir ;;
6472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6473 ac_top_srcdir=$ac_top_build_prefix$srcdir
6474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6487 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6491 cat >>$CONFIG_STATUS <<\_ACEOF
6492 # If the template does not know about datarootdir, expand it.
6493 # FIXME: This hack should be removed a few years after 2.60.
6494 ac_datarootdir_hack=; ac_datarootdir_seen=
6496 case `sed -n '/datarootdir/ {
6505 ' $ac_file_inputs` in
6506 *datarootdir*) ac_datarootdir_seen=yes;;
6507 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6508 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6509 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6511 cat >>$CONFIG_STATUS <<_ACEOF
6512 ac_datarootdir_hack='
6513 s&@datadir@&$datadir&g
6514 s&@docdir@&$docdir&g
6515 s&@infodir@&$infodir&g
6516 s&@localedir@&$localedir&g
6517 s&@mandir@&$mandir&g
6518 s&\\\${datarootdir}&$datarootdir&g' ;;
6522 # Neutralize VPATH when `$srcdir' = `.'.
6523 # Shell code in configure.ac might set extrasub.
6524 # FIXME: do we really want to maintain this feature?
6525 cat >>$CONFIG_STATUS <<_ACEOF
6529 cat >>$CONFIG_STATUS <<\_ACEOF
6531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6532 s&@configure_input@&$configure_input&;t t
6533 s&@top_builddir@&$ac_top_builddir_sub&;t t
6534 s&@srcdir@&$ac_srcdir&;t t
6535 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6536 s&@top_srcdir@&$ac_top_srcdir&;t t
6537 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6538 s&@builddir@&$ac_builddir&;t t
6539 s&@abs_builddir@&$ac_abs_builddir&;t t
6540 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6541 s&@INSTALL@&$ac_INSTALL&;t t
6542 $ac_datarootdir_hack
6543 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6546 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6548 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6549 which seems to be undefined. Please make sure it is defined." >&5
6550 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6551 which seems to be undefined. Please make sure it is defined." >&2;}
6555 -) cat "$tmp/out"; rm -f "$tmp/out";;
6556 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6565 # Transform confdefs.h into a sed script `conftest.defines', that
6566 # substitutes the proper values into config.h.in to produce config.h.
6567 rm -f conftest.defines conftest.tail
6568 # First, append a space to every undef/define line, to ease matching.
6569 echo 's/$/ /' >conftest.defines
6570 # Then, protect against being on the right side of a sed subst, or in
6571 # an unquoted here document, in config.status. If some macros were
6572 # called several times there might be several #defines for the same
6573 # symbol, which is useless. But do not sort them, since the last
6574 # AC_DEFINE must be honored.
6575 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6576 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6577 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6578 # PARAMS is the parameter list in the macro definition--in most cases, it's
6579 # just an empty string.
6580 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6581 ac_dB='\\)[ (].*,\\1define\\2'
6589 s/^[ ]*#[ ]*define[ ][ ]*//
6594 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6595 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6596 ' >>conftest.defines
6598 # Remove the space that was appended to ease matching.
6599 # Then replace #undef with comments. This is necessary, for
6600 # example, in the case of _POSIX_SOURCE, which is predefined and required
6601 # on some systems where configure will not decide to define it.
6602 # (The regexp can be short, since the line contains either #define or #undef.)
6604 s,^[ #]*u.*,/* & */,' >>conftest.defines
6606 # Break up conftest.defines:
6609 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6610 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6611 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6613 ac_in='$ac_file_inputs'
6614 ac_out='"$tmp/out1"'
6615 ac_nxt='"$tmp/out2"'
6619 # Write a here document:
6620 cat >>$CONFIG_STATUS <<_ACEOF
6621 # First, check the format of the line:
6622 cat >"\$tmp/defines.sed" <<\\CEOF
6623 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6624 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6628 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6630 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6631 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6632 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6633 grep . conftest.tail >/dev/null || break
6634 rm -f conftest.defines
6635 mv conftest.tail conftest.defines
6637 rm -f conftest.defines conftest.tail
6639 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6640 cat >>$CONFIG_STATUS <<\_ACEOF
6641 if test x"$ac_file" != x-; then
6642 echo "/* $configure_input */" >"$tmp/config.h"
6643 cat "$ac_result" >>"$tmp/config.h"
6644 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6645 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6646 echo "$as_me: $ac_file is unchanged" >&6;}
6649 mv "$tmp/config.h" $ac_file
6652 echo "/* $configure_input */"
6664 { (exit 0); exit 0; }
6666 chmod +x $CONFIG_STATUS
6667 ac_clean_files=$ac_clean_files_save
6670 # configure is writing to config.log, and then calls config.status.
6671 # config.status does its own redirection, appending to config.log.
6672 # Unfortunately, on DOS this fails, as config.log is still kept open
6673 # by configure, so config.status won't be able to write to it; its
6674 # output is simply discarded. So we exec the FD to /dev/null,
6675 # effectively closing config.log, so it can be properly (re)opened and
6676 # appended to by config.status. When coming back to configure, we
6677 # need to make the FD available again.
6678 if test "$no_create" != yes; then
6680 ac_config_status_args=
6681 test "$silent" = yes &&
6682 ac_config_status_args="$ac_config_status_args --quiet"
6684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6687 # would make configure fail if this is the last instruction.
6688 $ac_cs_success || { (exit 1); exit 1; }