2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="cpmfs.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
696 program_transform_name
708 enable_option_checking
715 ac_precious_vars='build_alias
726 # Initialize some variables set by options.
728 ac_init_version=false
729 ac_unrecognized_opts=
731 # The variables have the same names as the options, with
732 # dashes changed to underlines.
740 program_transform_name=s,x,x,
748 # Installation directory options.
749 # These are left unexpanded so users can "make install exec_prefix=/foo"
750 # and all the variables that are supposed to be based on exec_prefix
751 # by default will actually change.
752 # Use braces instead of parens because sh, perl, etc. also accept them.
753 # (The list follows the same order as the GNU Coding Standards.)
754 bindir='${exec_prefix}/bin'
755 sbindir='${exec_prefix}/sbin'
756 libexecdir='${exec_prefix}/libexec'
757 datarootdir='${prefix}/share'
758 datadir='${datarootdir}'
759 sysconfdir='${prefix}/etc'
760 sharedstatedir='${prefix}/com'
761 localstatedir='${prefix}/var'
762 includedir='${prefix}/include'
763 oldincludedir='/usr/include'
764 docdir='${datarootdir}/doc/${PACKAGE}'
765 infodir='${datarootdir}/info'
770 libdir='${exec_prefix}/lib'
771 localedir='${datarootdir}/locale'
772 mandir='${datarootdir}/man'
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
780 eval $ac_prev=\$ac_option
786 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790 # Accept the important Cygnus configure options, so we can diagnose typos.
792 case $ac_dashdash$ac_option in
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
814 cache_file=config.cache ;;
816 -datadir | --datadir | --datadi | --datad)
818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
819 datadir=$ac_optarg ;;
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
828 -disable-* | --disable-*)
829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830 # Reject names that are not valid shell variable names.
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
833 { (exit 1); exit 1; }; }
834 ac_useropt_orig=$ac_useropt
835 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836 case $ac_user_opts in
840 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841 ac_unrecognized_sep=', ';;
843 eval enable_$ac_useropt=no ;;
845 -docdir | --docdir | --docdi | --doc | --do)
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 -enable-* | --enable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
860 { (exit 1); exit 1; }; }
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=\$ac_optarg ;;
872 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
873 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
874 | --exec | --exe | --ex)
875 ac_prev=exec_prefix ;;
876 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
877 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
878 | --exec=* | --exe=* | --ex=*)
879 exec_prefix=$ac_optarg ;;
881 -gas | --gas | --ga | --g)
882 # Obsolete; use --with-gas.
885 -help | --help | --hel | --he | -h)
887 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
888 ac_init_help=recursive ;;
889 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
890 ac_init_help=short ;;
892 -host | --host | --hos | --ho)
893 ac_prev=host_alias ;;
894 -host=* | --host=* | --hos=* | --ho=*)
895 host_alias=$ac_optarg ;;
897 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 htmldir=$ac_optarg ;;
903 -includedir | --includedir | --includedi | --included | --include \
904 | --includ | --inclu | --incl | --inc)
905 ac_prev=includedir ;;
906 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
907 | --includ=* | --inclu=* | --incl=* | --inc=*)
908 includedir=$ac_optarg ;;
910 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
913 infodir=$ac_optarg ;;
915 -libdir | --libdir | --libdi | --libd)
917 -libdir=* | --libdir=* | --libdi=* | --libd=*)
920 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
921 | --libexe | --libex | --libe)
922 ac_prev=libexecdir ;;
923 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
924 | --libexe=* | --libex=* | --libe=*)
925 libexecdir=$ac_optarg ;;
927 -localedir | --localedir | --localedi | --localed | --locale)
929 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
930 localedir=$ac_optarg ;;
932 -localstatedir | --localstatedir | --localstatedi | --localstated \
933 | --localstate | --localstat | --localsta | --localst | --locals)
934 ac_prev=localstatedir ;;
935 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
936 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
937 localstatedir=$ac_optarg ;;
939 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 # Obsolete; use --without-fp.
948 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
949 | --no-cr | --no-c | -n)
952 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
953 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
956 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
957 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
958 | --oldin | --oldi | --old | --ol | --o)
959 ac_prev=oldincludedir ;;
960 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
961 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
962 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
963 oldincludedir=$ac_optarg ;;
965 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
970 -program-prefix | --program-prefix | --program-prefi | --program-pref \
971 | --program-pre | --program-pr | --program-p)
972 ac_prev=program_prefix ;;
973 -program-prefix=* | --program-prefix=* | --program-prefi=* \
974 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
975 program_prefix=$ac_optarg ;;
977 -program-suffix | --program-suffix | --program-suffi | --program-suff \
978 | --program-suf | --program-su | --program-s)
979 ac_prev=program_suffix ;;
980 -program-suffix=* | --program-suffix=* | --program-suffi=* \
981 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
982 program_suffix=$ac_optarg ;;
984 -program-transform-name | --program-transform-name \
985 | --program-transform-nam | --program-transform-na \
986 | --program-transform-n | --program-transform- \
987 | --program-transform | --program-transfor \
988 | --program-transfo | --program-transf \
989 | --program-trans | --program-tran \
990 | --progr-tra | --program-tr | --program-t)
991 ac_prev=program_transform_name ;;
992 -program-transform-name=* | --program-transform-name=* \
993 | --program-transform-nam=* | --program-transform-na=* \
994 | --program-transform-n=* | --program-transform-=* \
995 | --program-transform=* | --program-transfor=* \
996 | --program-transfo=* | --program-transf=* \
997 | --program-trans=* | --program-tran=* \
998 | --progr-tra=* | --program-tr=* | --program-t=*)
999 program_transform_name=$ac_optarg ;;
1001 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1004 pdfdir=$ac_optarg ;;
1006 -psdir | --psdir | --psdi | --psd | --ps)
1008 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1012 | -silent | --silent | --silen | --sile | --sil)
1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 sbindir=$ac_optarg ;;
1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1023 | --sharedst | --shareds | --shared | --share | --shar \
1025 ac_prev=sharedstatedir ;;
1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 sharedstatedir=$ac_optarg ;;
1032 -site | --site | --sit)
1034 -site=* | --site=* | --sit=*)
1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1040 srcdir=$ac_optarg ;;
1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1043 | --syscon | --sysco | --sysc | --sys | --sy)
1044 ac_prev=sysconfdir ;;
1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1047 sysconfdir=$ac_optarg ;;
1049 -target | --target | --targe | --targ | --tar | --ta | --t)
1050 ac_prev=target_alias ;;
1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1052 target_alias=$ac_optarg ;;
1054 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057 -version | --version | --versio | --versi | --vers | -V)
1058 ac_init_version=: ;;
1061 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1075 eval with_$ac_useropt=\$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval with_$ac_useropt=no ;;
1095 # Obsolete; use --with-x.
1098 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099 | --x-incl | --x-inc | --x-in | --x-i)
1100 ac_prev=x_includes ;;
1101 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 x_includes=$ac_optarg ;;
1105 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107 ac_prev=x_libraries ;;
1108 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 x_libraries=$ac_optarg ;;
1112 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1113 Try \`$0 --help' for more information." >&2
1114 { (exit 1); exit 1; }; }
1118 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1121 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1122 { (exit 1); exit 1; }; }
1123 eval $ac_envvar=\$ac_optarg
1124 export $ac_envvar ;;
1127 # FIXME: should be removed in autoconf 3.0.
1128 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1137 if test -n "$ac_prev"; then
1138 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1140 { (exit 1); exit 1; }; }
1143 if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1146 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1147 { (exit 1); exit 1; }; } ;;
1148 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1152 # Check all directory arguments for consistency.
1153 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1158 eval ac_val=\$$ac_var
1159 # Remove trailing slashes.
1162 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1163 eval $ac_var=\$ac_val;;
1165 # Be sure to have absolute directory names.
1167 [\\/$]* | ?:[\\/]* ) continue;;
1168 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1171 { (exit 1); exit 1; }; }
1174 # There might be people who depend on the old broken behavior: `$host'
1175 # used to hold the argument of --host etc.
1176 # FIXME: To remove some day.
1179 target=$target_alias
1181 # FIXME: To remove some day.
1182 if test "x$host_alias" != x; then
1183 if test "x$build_alias" = x; then
1184 cross_compiling=maybe
1185 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1186 If a cross compiler is detected then cross compile mode will be used." >&2
1187 elif test "x$build_alias" != "x$host_alias"; then
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195 test "$silent" = yes && exec 6>/dev/null
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1202 { (exit 1); exit 1; }; }
1203 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1204 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1205 { (exit 1); exit 1; }; }
1208 # Find the source files, if location was not specified.
1209 if test -z "$srcdir"; then
1210 ac_srcdir_defaulted=yes
1211 # Try the directory containing this script, then the parent directory.
1212 ac_confdir=`$as_dirname -- "$as_myself" ||
1213 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214 X"$as_myself" : 'X\(//\)[^/]' \| \
1215 X"$as_myself" : 'X\(//\)$' \| \
1216 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1217 $as_echo X"$as_myself" |
1218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1240 ac_srcdir_defaulted=no
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1244 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1245 { (exit 1); exit 1; }; }
1247 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1249 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1250 { (exit 1); exit 1; }; }
1252 # When building in place, set srcdir=.
1253 if test "$ac_abs_confdir" = "$ac_pwd"; then
1256 # Remove unnecessary trailing slashes from srcdir.
1257 # Double slashes in file names in object file debugging info
1258 # mess up M-x gdb in Emacs.
1260 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1262 for ac_var in $ac_precious_vars; do
1263 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_env_${ac_var}_value=\$${ac_var}
1265 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 # Report the --help message.
1272 if test "$ac_init_help" = "long"; then
1273 # Omit some internal or obsolete options to make the list less imposing.
1274 # This message is too long to be a string in the A/UX 3.1 sh.
1276 \`configure' configures this package to adapt to many kinds of systems.
1278 Usage: $0 [OPTION]... [VAR=VALUE]...
1280 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1281 VAR=VALUE. See below for descriptions of some of the useful variables.
1283 Defaults for the options are specified in brackets.
1286 -h, --help display this help and exit
1287 --help=short display options specific to this package
1288 --help=recursive display the short help of all the included packages
1289 -V, --version display version information and exit
1290 -q, --quiet, --silent do not print \`checking...' messages
1291 --cache-file=FILE cache test results in FILE [disabled]
1292 -C, --config-cache alias for \`--cache-file=config.cache'
1293 -n, --no-create do not create output files
1294 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1296 Installation directories:
1297 --prefix=PREFIX install architecture-independent files in PREFIX
1298 [$ac_default_prefix]
1299 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1302 By default, \`make install' will install all the files in
1303 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1304 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305 for instance \`--prefix=\$HOME'.
1307 For better control, use the options below.
1309 Fine tuning of the installation directories:
1310 --bindir=DIR user executables [EPREFIX/bin]
1311 --sbindir=DIR system admin executables [EPREFIX/sbin]
1312 --libexecdir=DIR program executables [EPREFIX/libexec]
1313 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1314 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1315 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1316 --libdir=DIR object code libraries [EPREFIX/lib]
1317 --includedir=DIR C header files [PREFIX/include]
1318 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1319 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1320 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1321 --infodir=DIR info documentation [DATAROOTDIR/info]
1322 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1323 --mandir=DIR man documentation [DATAROOTDIR/man]
1324 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1325 --htmldir=DIR html documentation [DOCDIR]
1326 --dvidir=DIR dvi documentation [DOCDIR]
1327 --pdfdir=DIR pdf documentation [DOCDIR]
1328 --psdir=DIR ps documentation [DOCDIR]
1334 --build=BUILD configure for building on BUILD [guessed]
1335 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1339 if test -n "$ac_init_help"; then
1344 --disable-option-checking ignore unrecognized --enable/--with options
1345 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1346 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1347 --disable-largefile omit support for large files
1350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1352 --with-diskdefs Specify diskdefs location
1353 --with-defformat Specify default format (ibm-3740)
1354 --with-libdsk Specify path to libdsk library
1355 --with-dmalloc Specify path to dmalloc library
1357 Some influential environment variables:
1358 CC C compiler command
1359 CFLAGS C compiler flags
1360 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1361 nonstandard directory <lib dir>
1362 LIBS libraries to pass to the linker, e.g. -l<library>
1363 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1364 you have headers in a nonstandard directory <include dir>
1367 Use these variables to override the choices made by `configure' or to help
1368 it to find libraries and programs with nonstandard names/locations.
1374 if test "$ac_init_help" = "recursive"; then
1375 # If there are subdirs, report their specific --help.
1376 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1377 test -d "$ac_dir" ||
1378 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1386 # A ".." for each directory in $ac_dir_suffix.
1387 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1388 case $ac_top_builddir_sub in
1389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1393 ac_abs_top_builddir=$ac_pwd
1394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1395 # for backward compatibility:
1396 ac_top_builddir=$ac_top_build_prefix
1399 .) # We are building in place.
1401 ac_top_srcdir=$ac_top_builddir_sub
1402 ac_abs_top_srcdir=$ac_pwd ;;
1403 [\\/]* | ?:[\\/]* ) # Absolute name.
1404 ac_srcdir=$srcdir$ac_dir_suffix;
1405 ac_top_srcdir=$srcdir
1406 ac_abs_top_srcdir=$srcdir ;;
1408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1409 ac_top_srcdir=$ac_top_build_prefix$srcdir
1410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1414 cd "$ac_dir" || { ac_status=$?; continue; }
1415 # Check for guested configure.
1416 if test -f "$ac_srcdir/configure.gnu"; then
1418 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1419 elif test -f "$ac_srcdir/configure"; then
1421 $SHELL "$ac_srcdir/configure" --help=recursive
1423 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1425 cd "$ac_pwd" || { ac_status=$?; break; }
1429 test -n "$ac_init_help" && exit $ac_status
1430 if $ac_init_version; then
1433 generated by GNU Autoconf 2.63
1435 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1436 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1437 This configure script is free software; the Free Software Foundation
1438 gives unlimited permission to copy, distribute and modify it.
1442 cat >config.log <<_ACEOF
1443 This file contains any messages produced by compilers while
1444 running configure, to aid debugging if configure makes a mistake.
1446 It was created by $as_me, which was
1447 generated by GNU Autoconf 2.63. Invocation command line was
1459 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1460 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1461 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1462 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1463 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1465 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1466 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1468 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1469 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1470 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1471 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1472 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1473 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1474 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 $as_echo "PATH: $as_dir"
1499 # Keep a trace of the command line.
1500 # Strip out --no-create and --no-recursion so they do not pile up.
1501 # Strip out --silent because we don't want to record it for future runs.
1502 # Also quote any args containing shell meta-characters.
1503 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_must_keep_next=false
1513 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1515 | -silent | --silent | --silen | --sile | --sil)
1518 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1521 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1523 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1524 if test $ac_must_keep_next = true; then
1525 ac_must_keep_next=false # Got value, back to normal.
1528 *=* | --config-cache | -C | -disable-* | --disable-* \
1529 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1530 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1531 | -with-* | --with-* | -without-* | --without-* | --x)
1532 case "$ac_configure_args0 " in
1533 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1536 -* ) ac_must_keep_next=true ;;
1539 ac_configure_args="$ac_configure_args '$ac_arg'"
1544 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1545 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1547 # When interrupted or exit'd, cleanup temporary files, and complete
1548 # config.log. We remove comments because anyway the quotes in there
1549 # would cause problems or look ugly.
1550 # WARNING: Use '\'' to represent an apostrophe within the trap.
1551 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1552 trap 'exit_status=$?
1553 # Save into config.log some information that might help in debugging.
1558 ## ---------------- ##
1559 ## Cache variables. ##
1560 ## ---------------- ##
1563 # The following way of writing the cache mishandles newlines in values,
1565 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1566 eval ac_val=\$$ac_var
1570 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1571 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1574 _ | IFS | as_nl) ;; #(
1575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1576 *) $as_unset $ac_var ;;
1581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1582 *${as_nl}ac_space=\ *)
1584 "s/'\''/'\''\\\\'\'''\''/g;
1585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ## ----------------- ##
1597 ## Output variables. ##
1598 ## ----------------- ##
1601 for ac_var in $ac_subst_vars
1603 eval ac_val=\$$ac_var
1605 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1607 $as_echo "$ac_var='\''$ac_val'\''"
1611 if test -n "$ac_subst_files"; then
1613 ## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##
1618 for ac_var in $ac_subst_files
1620 eval ac_val=\$$ac_var
1622 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 $as_echo "$ac_var='\''$ac_val'\''"
1629 if test -s confdefs.h; then
1639 test "$ac_signal" != 0 &&
1640 $as_echo "$as_me: caught signal $ac_signal"
1641 $as_echo "$as_me: exit $exit_status"
1643 rm -f core *.core core.conftest.* &&
1644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 for ac_signal in 1 2 13 15; do
1648 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest* confdefs.h
1655 # Predefined preprocessor variables.
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer an explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 ac_site_file1=$CONFIG_SITE
1688 elif test "x$prefix" != xNONE; then
1689 ac_site_file1=$prefix/share/config.site
1690 ac_site_file2=$prefix/etc/config.site
1692 ac_site_file1=$ac_default_prefix/share/config.site
1693 ac_site_file2=$ac_default_prefix/etc/config.site
1695 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1697 test "x$ac_site_file" = xNONE && continue
1698 if test -r "$ac_site_file"; then
1699 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 $as_echo "$as_me: loading cache $cache_file" >&6;}
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1718 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 $as_echo "$as_me: creating cache $cache_file" >&6;}
1723 # Check that the precious variables saved in the cache have kept the same
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1733 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1737 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 # differences in whitespace do not lead to failure.
1744 ac_old_val_w=`echo x $ac_old_val`
1745 ac_new_val_w=`echo x $ac_new_val`
1746 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1747 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 ac_cache_corrupted=:
1751 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1752 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1753 eval $ac_var=\$ac_old_val
1755 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1756 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1757 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1758 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1764 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1773 if $ac_cache_corrupted; then
1774 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1776 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1777 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1778 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1779 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1780 { (exit 1); exit 1; }; }
1800 ac_cpp='$CPP $CPPFLAGS'
1801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers config.h"
1809 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1810 if test -f "$ac_dir/install-sh"; then
1812 ac_install_sh="$ac_aux_dir/install-sh -c"
1814 elif test -f "$ac_dir/install.sh"; then
1816 ac_install_sh="$ac_aux_dir/install.sh -c"
1818 elif test -f "$ac_dir/shtool"; then
1820 ac_install_sh="$ac_aux_dir/shtool install -c"
1824 if test -z "$ac_aux_dir"; then
1825 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1826 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1827 { (exit 1); exit 1; }; }
1830 # These three variables are undocumented and unsupported,
1831 # and are intended to be withdrawn in a future Autoconf release.
1832 # They can cause serious problems if a builder's source tree is in a directory
1833 # whose full name contains unusual characters.
1834 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1835 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1836 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1839 # Make sure we can run config.sub.
1840 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1841 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1842 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1843 { (exit 1); exit 1; }; }
1845 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1846 $as_echo_n "checking build system type... " >&6; }
1847 if test "${ac_cv_build+set}" = set; then
1848 $as_echo_n "(cached) " >&6
1850 ac_build_alias=$build_alias
1851 test "x$ac_build_alias" = x &&
1852 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1853 test "x$ac_build_alias" = x &&
1854 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1855 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1856 { (exit 1); exit 1; }; }
1857 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1858 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1859 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1860 { (exit 1); exit 1; }; }
1863 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1864 $as_echo "$ac_cv_build" >&6; }
1865 case $ac_cv_build in
1867 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1868 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1869 { (exit 1); exit 1; }; };;
1872 ac_save_IFS=$IFS; IFS='-'
1878 # Remember, the first character of IFS is used to create $*,
1879 # except with old shells:
1882 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1885 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1886 $as_echo_n "checking host system type... " >&6; }
1887 if test "${ac_cv_host+set}" = set; then
1888 $as_echo_n "(cached) " >&6
1890 if test "x$host_alias" = x; then
1891 ac_cv_host=$ac_cv_build
1893 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1894 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1895 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1896 { (exit 1); exit 1; }; }
1900 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1901 $as_echo "$ac_cv_host" >&6; }
1904 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1905 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1906 { (exit 1); exit 1; }; };;
1909 ac_save_IFS=$IFS; IFS='-'
1915 # Remember, the first character of IFS is used to create $*,
1916 # except with old shells:
1919 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1923 UPDATED='July 6, 2009'
1927 if test "$prefix" = NONE
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 if test -n "$ac_tool_prefix"; then
1941 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1942 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 $as_echo_n "checking for $ac_word... " >&6; }
1945 if test "${ac_cv_prog_CC+set}" = set; then
1946 $as_echo_n "(cached) " >&6
1948 if test -n "$CC"; then
1949 ac_cv_prog_CC="$CC" # Let the user override the test.
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1958 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 if test -n "$CC"; then
1970 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1971 $as_echo "$CC" >&6; }
1973 { $as_echo "$as_me:$LINENO: result: no" >&5
1974 $as_echo "no" >&6; }
1979 if test -z "$ac_cv_prog_CC"; then
1981 # Extract the first word of "gcc", so it can be a program name with args.
1982 set dummy gcc; ac_word=$2
1983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1984 $as_echo_n "checking for $ac_word... " >&6; }
1985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1986 $as_echo_n "(cached) " >&6
1988 if test -n "$ac_ct_CC"; then
1989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_ac_ct_CC="gcc"
1999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2009 if test -n "$ac_ct_CC"; then
2010 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2011 $as_echo "$ac_ct_CC" >&6; }
2013 { $as_echo "$as_me:$LINENO: result: no" >&5
2014 $as_echo "no" >&6; }
2017 if test "x$ac_ct_CC" = x; then
2020 case $cross_compiling:$ac_tool_warned in
2022 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2024 ac_tool_warned=yes ;;
2032 if test -z "$CC"; then
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}cc; ac_word=$2
2036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 $as_echo_n "checking for $ac_word... " >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 $as_echo_n "(cached) " >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CC="${ac_tool_prefix}cc"
2052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2064 $as_echo "$CC" >&6; }
2066 { $as_echo "$as_me:$LINENO: result: no" >&5
2067 $as_echo "no" >&6; }
2073 if test -z "$CC"; then
2074 # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 $as_echo_n "checking for $ac_word... " >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 $as_echo_n "(cached) " >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093 ac_prog_rejected=yes
2097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 if test $ac_prog_rejected = yes; then
2105 # We found a bogon in the path, so make sure we never use it.
2106 set dummy $ac_cv_prog_CC
2108 if test $# != 0; then
2109 # We chose a different compiler from the bogus one.
2110 # However, it has the same basename, so the bogon will be chosen
2111 # first if we set CC to just the basename; use the full file name.
2113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2119 if test -n "$CC"; then
2120 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2121 $as_echo "$CC" >&6; }
2123 { $as_echo "$as_me:$LINENO: result: no" >&5
2124 $as_echo "no" >&6; }
2129 if test -z "$CC"; then
2130 if test -n "$ac_tool_prefix"; then
2131 for ac_prog in cl.exe
2133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 $as_echo_n "checking for $ac_word... " >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 $as_echo_n "(cached) " >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test -n "$CC"; then
2162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2163 $as_echo "$CC" >&6; }
2165 { $as_echo "$as_me:$LINENO: result: no" >&5
2166 $as_echo "no" >&6; }
2170 test -n "$CC" && break
2173 if test -z "$CC"; then
2175 for ac_prog in cl.exe
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 $as_echo_n "checking for $ac_word... " >&6; }
2181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182 $as_echo_n "(cached) " >&6
2184 if test -n "$ac_ct_CC"; then
2185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_ac_ct_CC="$ac_prog"
2195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 $as_echo "$ac_ct_CC" >&6; }
2209 { $as_echo "$as_me:$LINENO: result: no" >&5
2210 $as_echo "no" >&6; }
2214 test -n "$ac_ct_CC" && break
2217 if test "x$ac_ct_CC" = x; then
2220 case $cross_compiling:$ac_tool_warned in
2222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224 ac_tool_warned=yes ;;
2233 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2235 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2236 See \`config.log' for more details." >&5
2237 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2238 See \`config.log' for more details." >&2;}
2239 { (exit 1); exit 1; }; }; }
2241 # Provide some information about the compiler.
2242 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2245 { (ac_try="$ac_compiler --version >&5"
2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248 *) ac_try_echo=$ac_try;;
2250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2251 $as_echo "$ac_try_echo") >&5
2252 (eval "$ac_compiler --version >&5") 2>&5
2254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (ac_try="$ac_compiler -v >&5"
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2262 $as_echo "$ac_try_echo") >&5
2263 (eval "$ac_compiler -v >&5") 2>&5
2265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }
2267 { (ac_try="$ac_compiler -V >&5"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2273 $as_echo "$ac_try_echo") >&5
2274 (eval "$ac_compiler -V >&5") 2>&5
2276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2279 cat >conftest.$ac_ext <<_ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2294 ac_clean_files_save=$ac_clean_files
2295 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2296 # Try to create an executable without -o first, disregard a.out.
2297 # It will help us diagnose broken compilers, and finding out an intuition
2299 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2300 $as_echo_n "checking for C compiler default output file name... " >&6; }
2301 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2303 # The possible output files:
2304 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2307 for ac_file in $ac_files
2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2316 if { (ac_try="$ac_link_default"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2322 $as_echo "$ac_try_echo") >&5
2323 (eval "$ac_link_default") 2>&5
2325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; then
2327 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2328 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2329 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2330 # so that the user can short-circuit this test for compilers unknown to
2332 for ac_file in $ac_files ''
2334 test -f "$ac_file" || continue
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2339 # We found the default executable, but exeext='' is most
2343 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 # We set ac_cv_exeext here because the later test for it is not
2348 # safe: cross compilers may not add the suffix if given an `-o'
2349 # argument, so we may need to know it at that point already.
2350 # Even if this section looks crufty: it has the advantage of
2357 test "$ac_cv_exeext" = no && ac_cv_exeext=
2363 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2364 $as_echo "$ac_file" >&6; }
2365 if test -z "$ac_file"; then
2366 $as_echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2369 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2371 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2372 See \`config.log' for more details." >&5
2373 $as_echo "$as_me: error: C compiler cannot create executables
2374 See \`config.log' for more details." >&2;}
2375 { (exit 77); exit 77; }; }; }
2378 ac_exeext=$ac_cv_exeext
2380 # Check that the compiler produces executables we can run. If not, either
2381 # the compiler is broken, or we cross compile.
2382 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2383 $as_echo_n "checking whether the C compiler works... " >&6; }
2384 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2385 # If not cross compiling, check that we can run a simple program.
2386 if test "$cross_compiling" != yes; then
2387 if { ac_try='./$ac_file'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_try") 2>&5
2396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 if test "$cross_compiling" = maybe; then
2403 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2406 If you meant to cross compile, use \`--host'.
2407 See \`config.log' for more details." >&5
2408 $as_echo "$as_me: error: cannot run C compiled programs.
2409 If you meant to cross compile, use \`--host'.
2410 See \`config.log' for more details." >&2;}
2411 { (exit 1); exit 1; }; }; }
2415 { $as_echo "$as_me:$LINENO: result: yes" >&5
2416 $as_echo "yes" >&6; }
2418 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2419 ac_clean_files=$ac_clean_files_save
2420 # Check that the compiler produces executables we can run. If not, either
2421 # the compiler is broken, or we cross compile.
2422 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2423 $as_echo_n "checking whether we are cross compiling... " >&6; }
2424 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2425 $as_echo "$cross_compiling" >&6; }
2427 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2428 $as_echo_n "checking for suffix of executables... " >&6; }
2429 if { (ac_try="$ac_link"
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2435 $as_echo "$ac_try_echo") >&5
2436 (eval "$ac_link") 2>&5
2438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; then
2440 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2441 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2442 # work properly (i.e., refer to `conftest.exe'), while it won't with
2444 for ac_file in conftest.exe conftest conftest.*; do
2445 test -f "$ac_file" || continue
2447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2448 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2454 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2457 See \`config.log' for more details." >&5
2458 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2459 See \`config.log' for more details." >&2;}
2460 { (exit 1); exit 1; }; }; }
2463 rm -f conftest$ac_cv_exeext
2464 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2465 $as_echo "$ac_cv_exeext" >&6; }
2467 rm -f conftest.$ac_ext
2468 EXEEXT=$ac_cv_exeext
2470 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2471 $as_echo_n "checking for suffix of object files... " >&6; }
2472 if test "${ac_cv_objext+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.o conftest.obj
2491 if { (ac_try="$ac_compile"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497 $as_echo "$ac_try_echo") >&5
2498 (eval "$ac_compile") 2>&5
2500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 for ac_file in conftest.o conftest.obj conftest.*; do
2503 test -f "$ac_file" || continue;
2505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2506 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2517 See \`config.log' for more details." >&5
2518 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2519 See \`config.log' for more details." >&2;}
2520 { (exit 1); exit 1; }; }; }
2523 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2525 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2526 $as_echo "$ac_cv_objext" >&6; }
2527 OBJEXT=$ac_cv_objext
2529 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2531 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2532 $as_echo_n "(cached) " >&6
2534 cat >conftest.$ac_ext <<_ACEOF
2537 cat confdefs.h >>conftest.$ac_ext
2538 cat >>conftest.$ac_ext <<_ACEOF
2539 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2559 $as_echo "$ac_try_echo") >&5
2560 (eval "$ac_compile") 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } && {
2567 test -z "$ac_c_werror_flag" ||
2568 test ! -s conftest.err
2569 } && test -s conftest.$ac_objext; then
2572 $as_echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2584 if test $ac_compiler_gnu = yes; then
2589 ac_test_CFLAGS=${CFLAGS+set}
2590 ac_save_CFLAGS=$CFLAGS
2591 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594 $as_echo_n "(cached) " >&6
2596 ac_save_c_werror_flag=$ac_c_werror_flag
2597 ac_c_werror_flag=yes
2600 cat >conftest.$ac_ext <<_ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1 >conftest.err
2627 cat conftest.err >&5
2628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2661 $as_echo "$ac_try_echo") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2674 $as_echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 ac_c_werror_flag=$ac_save_c_werror_flag
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.$ac_objext; then
2714 $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 ac_c_werror_flag=$ac_save_c_werror_flag
2729 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 $as_echo "$ac_cv_prog_cc_g" >&6; }
2731 if test "$ac_test_CFLAGS" = set; then
2732 CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734 if test "$GCC" = yes; then
2740 if test "$GCC" = yes; then
2746 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2747 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2748 if test "${ac_cv_prog_cc_c89+set}" = set; then
2749 $as_echo_n "(cached) " >&6
2751 ac_cv_prog_cc_c89=no
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2777 s = g (p, va_arg (v,int));
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2783 function prototypes and stuff, but not '\xHH' hex character constants.
2784 These don't provoke an error unfortunately, instead are silently treated
2785 as 'x'. The following induces an error, until -std is added to get
2786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2787 array size at least. It's necessary to write '\x00'==0 to get something
2788 that's true only with -std. */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2792 inside strings and character constants. */
2794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796 int test (int i, double x);
2797 struct s1 {int (*f) (int a);};
2798 struct s2 {int (*f) (double a);};
2799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2805 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2811 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 CC="$ac_save_CC $ac_arg"
2814 rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821 $as_echo "$ac_try_echo") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2832 ac_cv_prog_cc_c89=$ac_arg
2834 $as_echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2840 rm -f core conftest.err conftest.$ac_objext
2841 test "x$ac_cv_prog_cc_c89" != "xno" && break
2843 rm -f conftest.$ac_ext
2848 case "x$ac_cv_prog_cc_c89" in
2850 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2851 $as_echo "none needed" >&6; } ;;
2853 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2854 $as_echo "unsupported" >&6; } ;;
2856 CC="$CC $ac_cv_prog_cc_c89"
2857 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 # Find a good install program. We prefer a C program (faster),
2869 # so one script is as good as another. But avoid the broken or
2870 # incompatible versions:
2871 # SysV /etc/install, /usr/sbin/install
2872 # SunOS /usr/etc/install
2873 # IRIX /sbin/install
2875 # AmigaOS /C/install, which installs bootblocks on floppy discs
2876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2879 # OS/2's system install, which has a completely different semantic
2880 # ./install, which can be erroneously created by make from ./install.sh.
2881 # Reject install programs that cannot install multiple files.
2882 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2883 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2884 if test -z "$INSTALL"; then
2885 if test "${ac_cv_path_install+set}" = set; then
2886 $as_echo_n "(cached) " >&6
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 # Account for people who put trailing slashes in PATH elements.
2895 ./ | .// | /cC/* | \
2896 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2897 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2900 # OSF1 and SCO ODT 3.0 have their own names for install.
2901 # Don't use installbsd from OSF since it installs stuff as root
2903 for ac_prog in ginstall scoinst install; do
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2906 if test $ac_prog = install &&
2907 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908 # AIX install. It has an incompatible calling convention.
2910 elif test $ac_prog = install &&
2911 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2912 # program-specific install script used by HP pwplus--don't use.
2915 rm -rf conftest.one conftest.two conftest.dir
2916 echo one > conftest.one
2917 echo two > conftest.two
2919 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2920 test -s conftest.one && test -s conftest.two &&
2921 test -s conftest.dir/conftest.one &&
2922 test -s conftest.dir/conftest.two
2924 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2937 rm -rf conftest.one conftest.two conftest.dir
2940 if test "${ac_cv_path_install+set}" = set; then
2941 INSTALL=$ac_cv_path_install
2943 # As a last resort, use the slow shell script. Don't cache a
2944 # value for INSTALL within a source directory, because that will
2945 # break other packages using the cache if that directory is
2946 # removed, or if the value is a relative name.
2947 INSTALL=$ac_install_sh
2950 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2951 $as_echo "$INSTALL" >&6; }
2953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2954 # It thinks the first close brace ends the variable substitution.
2955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2967 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2968 # On Suns, sometimes $CPP names a directory.
2969 if test -n "$CPP" && test -d "$CPP"; then
2972 if test -z "$CPP"; then
2973 if test "${ac_cv_prog_CPP+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2976 # Double quotes because CPP needs to be expanded
2977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2980 for ac_c_preproc_warn_flag in '' yes
2982 # Use a header file that comes with gcc, so configuring glibc
2983 # with a fresh cross-compiler works.
2984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985 # <limits.h> exists even on freestanding compilers.
2986 # On the NeXT, cc -E runs the code through the compiler's parser,
2987 # not just through cpp. "Syntax error" is here to catch this case.
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2995 # include <limits.h>
2997 # include <assert.h>
3001 if { (ac_try="$ac_cpp conftest.$ac_ext"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } >/dev/null && {
3015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 # Broken: fails on valid input.
3027 rm -f conftest.err conftest.$ac_ext
3029 # OK, works on sane cases. Now check whether nonexistent headers
3030 # can be detected and how.
3031 cat >conftest.$ac_ext <<_ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037 #include <ac_nonexistent.h>
3039 if { (ac_try="$ac_cpp conftest.$ac_ext"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null && {
3053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3056 # Broken: success on invalid input.
3059 $as_echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3062 # Passes both tests.
3067 rm -f conftest.err conftest.$ac_ext
3070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3071 rm -f conftest.err conftest.$ac_ext
3072 if $ac_preproc_ok; then
3084 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3085 $as_echo "$CPP" >&6; }
3087 for ac_c_preproc_warn_flag in '' yes
3089 # Use a header file that comes with gcc, so configuring glibc
3090 # with a fresh cross-compiler works.
3091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3092 # <limits.h> exists even on freestanding compilers.
3093 # On the NeXT, cc -E runs the code through the compiler's parser,
3094 # not just through cpp. "Syntax error" is here to catch this case.
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3102 # include <limits.h>
3104 # include <assert.h>
3108 if { (ac_try="$ac_cpp conftest.$ac_ext"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114 $as_echo "$ac_try_echo") >&5
3115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3117 grep -v '^ *+' conftest.er1 >conftest.err
3119 cat conftest.err >&5
3120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } >/dev/null && {
3122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3123 test ! -s conftest.err
3127 $as_echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3130 # Broken: fails on valid input.
3134 rm -f conftest.err conftest.$ac_ext
3136 # OK, works on sane cases. Now check whether nonexistent headers
3137 # can be detected and how.
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3144 #include <ac_nonexistent.h>
3146 if { (ac_try="$ac_cpp conftest.$ac_ext"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3152 $as_echo "$ac_try_echo") >&5
3153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null && {
3160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3163 # Broken: success on invalid input.
3166 $as_echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 # Passes both tests.
3174 rm -f conftest.err conftest.$ac_ext
3177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3178 rm -f conftest.err conftest.$ac_ext
3179 if $ac_preproc_ok; then
3182 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3185 See \`config.log' for more details." >&5
3186 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3187 See \`config.log' for more details." >&2;}
3188 { (exit 1); exit 1; }; }; }
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 if test "$GCC" = yes
3200 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"
3201 LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
3203 CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
3204 LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
3207 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3208 $as_echo_n "checking host system type... " >&6; }
3209 if test "${ac_cv_host+set}" = set; then
3210 $as_echo_n "(cached) " >&6
3212 if test "x$host_alias" = x; then
3213 ac_cv_host=$ac_cv_build
3215 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3216 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3217 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3218 { (exit 1); exit 1; }; }
3222 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3223 $as_echo "$ac_cv_host" >&6; }
3226 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3227 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3228 { (exit 1); exit 1; }; };;
3231 ac_save_IFS=$IFS; IFS='-'
3237 # Remember, the first character of IFS is used to create $*,
3238 # except with old shells:
3241 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3245 *cygwin* ) CYGWIN=yes;;
3249 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3250 $as_echo_n "checking host system type... " >&6; }
3251 if test "${ac_cv_host+set}" = set; then
3252 $as_echo_n "(cached) " >&6
3254 if test "x$host_alias" = x; then
3255 ac_cv_host=$ac_cv_build
3257 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3258 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3259 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3260 { (exit 1); exit 1; }; }
3264 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3268 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3269 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3270 { (exit 1); exit 1; }; };;
3273 ac_save_IFS=$IFS; IFS='-'
3279 # Remember, the first character of IFS is used to create $*,
3280 # except with old shells:
3283 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3287 *mingw32* ) MINGW32=yes;;
3293 DISKDEFS='${datarootdir}/diskdefs'
3295 if test "$CYGWIN" = "yes"
3298 # DISKDEFS='%USERPROFILE%/diskdefs'
3300 if test "$MINGW32" = "yes"
3303 # DISKDEFS='%USERPROFILE%\\diskdefs'
3307 # Check whether --with-diskdefs was given.
3308 if test "${with_diskdefs+set}" = set; then
3309 withval=$with_diskdefs; DISKDEFS="$withval"
3311 DISKDEFS="$DISKDEFS"
3315 # Check whether --with-defformat was given.
3316 if test "${with_defformat+set}" = set; then
3317 withval=$with_defformat; DEFFORMAT="$withval"
3319 DEFFORMAT="ibm-3740"
3323 # Check whether --with-libdsk was given.
3324 if test "${with_libdsk+set}" = set; then
3325 withval=$with_libdsk; LIBDSK="$withval"
3331 # Check whether --with-dmalloc was given.
3332 if test "${with_dmalloc+set}" = set; then
3333 withval=$with_dmalloc; CPPFLAGS="$CPPFLAGS -I$with_dmalloc/include"
3334 LDFLAGS="$LDFLAGS -L$with_dmalloc/lib"
3335 LIBS="$LIBS -ldmalloc"
3336 cat >>confdefs.h <<\_ACEOF
3337 #define USE_DMALLOC 1
3344 { $as_echo "$as_me:$LINENO: checking for printw in -lcurses" >&5
3345 $as_echo_n "checking for printw in -lcurses... " >&6; }
3346 if test "${ac_cv_lib_curses_printw+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3349 ac_check_lib_save_LIBS=$LIBS
3350 LIBS="-lcurses $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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381 (eval "$ac_link") 2>conftest.er1
3383 grep -v '^ *+' conftest.er1 >conftest.err
3385 cat conftest.err >&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest$ac_exeext && {
3391 test "$cross_compiling" = yes ||
3392 $as_test_x conftest$ac_exeext
3394 ac_cv_lib_curses_printw=yes
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 ac_cv_lib_curses_printw=no
3402 rm -rf conftest.dSYM
3403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3404 conftest$ac_exeext conftest.$ac_ext
3405 LIBS=$ac_check_lib_save_LIBS
3407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_printw" >&5
3408 $as_echo "$ac_cv_lib_curses_printw" >&6; }
3409 if test "x$ac_cv_lib_curses_printw" = x""yes; then
3410 FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
3415 if test x"$FSED_CPM" = x""; then
3416 { $as_echo "$as_me:$LINENO: checking for printw in -lncurses" >&5
3417 $as_echo_n "checking for printw in -lncurses... " >&6; }
3418 if test "${ac_cv_lib_ncurses_printw+set}" = set; then
3419 $as_echo_n "(cached) " >&6
3421 ac_check_lib_save_LIBS=$LIBS
3422 LIBS="-lncurses $LIBS"
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3430 /* Override any GCC internal prototype to avoid an error.
3431 Use char because int might match the return type of a GCC
3432 builtin and then its argument prototype would still apply. */
3445 rm -f conftest.$ac_objext conftest$ac_exeext
3446 if { (ac_try="$ac_link"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3452 $as_echo "$ac_try_echo") >&5
3453 (eval "$ac_link") 2>conftest.er1
3455 grep -v '^ *+' conftest.er1 >conftest.err
3457 cat conftest.err >&5
3458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } && {
3460 test -z "$ac_c_werror_flag" ||
3461 test ! -s conftest.err
3462 } && test -s conftest$ac_exeext && {
3463 test "$cross_compiling" = yes ||
3464 $as_test_x conftest$ac_exeext
3466 ac_cv_lib_ncurses_printw=yes
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3471 ac_cv_lib_ncurses_printw=no
3474 rm -rf conftest.dSYM
3475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3476 conftest$ac_exeext conftest.$ac_ext
3477 LIBS=$ac_check_lib_save_LIBS
3479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_printw" >&5
3480 $as_echo "$ac_cv_lib_ncurses_printw" >&6; }
3481 if test "x$ac_cv_lib_ncurses_printw" = x""yes; then
3482 FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
3489 if test "$LIBDSK" != ""; then
3491 CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
3492 CFLAGS="$CFLAGS -I$LIBDSK/include"
3493 LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
3495 { $as_echo "$as_me:$LINENO: checking for dsk_open in -ldsk" >&5
3496 $as_echo_n "checking for dsk_open in -ldsk... " >&6; }
3497 if test "${ac_cv_lib_dsk_dsk_open+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3500 ac_check_lib_save_LIBS=$LIBS
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3509 /* Override any GCC internal prototype to avoid an error.
3510 Use char because int might match the return type of a GCC
3511 builtin and then its argument prototype would still apply. */
3524 rm -f conftest.$ac_objext conftest$ac_exeext
3525 if { (ac_try="$ac_link"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532 (eval "$ac_link") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest$ac_exeext && {
3542 test "$cross_compiling" = yes ||
3543 $as_test_x conftest$ac_exeext
3545 ac_cv_lib_dsk_dsk_open=yes
3547 $as_echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3550 ac_cv_lib_dsk_dsk_open=no
3553 rm -rf conftest.dSYM
3554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3555 conftest$ac_exeext conftest.$ac_ext
3556 LIBS=$ac_check_lib_save_LIBS
3558 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dsk_dsk_open" >&5
3559 $as_echo "$ac_cv_lib_dsk_dsk_open" >&6; }
3560 if test "x$ac_cv_lib_dsk_dsk_open" = x""yes; then
3561 cat >>confdefs.h <<_ACEOF
3562 #define HAVE_LIBDSK 1
3570 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3572 if test "${ac_cv_path_GREP+set}" = set; then
3573 $as_echo_n "(cached) " >&6
3575 if test -z "$GREP"; then
3576 ac_path_GREP_found=false
3577 # Loop through the user's path and test for each of PROGNAME-LIST
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3582 test -z "$as_dir" && as_dir=.
3583 for ac_prog in grep ggrep; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3586 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3587 # Check for GNU ac_path_GREP and select it if it is found.
3588 # Check for GNU $ac_path_GREP
3589 case `"$ac_path_GREP" --version 2>&1` in
3591 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3594 $as_echo_n 0123456789 >"conftest.in"
3597 cat "conftest.in" "conftest.in" >"conftest.tmp"
3598 mv "conftest.tmp" "conftest.in"
3599 cp "conftest.in" "conftest.nl"
3600 $as_echo 'GREP' >> "conftest.nl"
3601 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603 ac_count=`expr $ac_count + 1`
3604 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3605 # Best one so far, save it but keep looking for a better one
3606 ac_cv_path_GREP="$ac_path_GREP"
3607 ac_path_GREP_max=$ac_count
3609 # 10*(2^10) chars as input seems more than enough
3610 test $ac_count -gt 10 && break
3612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3615 $ac_path_GREP_found && break 3
3620 if test -z "$ac_cv_path_GREP"; then
3621 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3622 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3623 { (exit 1); exit 1; }; }
3626 ac_cv_path_GREP=$GREP
3630 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3631 $as_echo "$ac_cv_path_GREP" >&6; }
3632 GREP="$ac_cv_path_GREP"
3635 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3636 $as_echo_n "checking for egrep... " >&6; }
3637 if test "${ac_cv_path_EGREP+set}" = set; then
3638 $as_echo_n "(cached) " >&6
3640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3641 then ac_cv_path_EGREP="$GREP -E"
3643 if test -z "$EGREP"; then
3644 ac_path_EGREP_found=false
3645 # Loop through the user's path and test for each of PROGNAME-LIST
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3650 test -z "$as_dir" && as_dir=.
3651 for ac_prog in egrep; do
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3654 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3655 # Check for GNU ac_path_EGREP and select it if it is found.
3656 # Check for GNU $ac_path_EGREP
3657 case `"$ac_path_EGREP" --version 2>&1` in
3659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3662 $as_echo_n 0123456789 >"conftest.in"
3665 cat "conftest.in" "conftest.in" >"conftest.tmp"
3666 mv "conftest.tmp" "conftest.in"
3667 cp "conftest.in" "conftest.nl"
3668 $as_echo 'EGREP' >> "conftest.nl"
3669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3671 ac_count=`expr $ac_count + 1`
3672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3673 # Best one so far, save it but keep looking for a better one
3674 ac_cv_path_EGREP="$ac_path_EGREP"
3675 ac_path_EGREP_max=$ac_count
3677 # 10*(2^10) chars as input seems more than enough
3678 test $ac_count -gt 10 && break
3680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3683 $ac_path_EGREP_found && break 3
3688 if test -z "$ac_cv_path_EGREP"; then
3689 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3690 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3691 { (exit 1); exit 1; }; }
3694 ac_cv_path_EGREP=$EGREP
3699 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3700 $as_echo "$ac_cv_path_EGREP" >&6; }
3701 EGREP="$ac_cv_path_EGREP"
3704 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3705 $as_echo_n "checking for ANSI C header files... " >&6; }
3706 if test "${ac_cv_header_stdc+set}" = set; then
3707 $as_echo_n "(cached) " >&6
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3728 rm -f conftest.$ac_objext
3729 if { (ac_try="$ac_compile"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3735 $as_echo "$ac_try_echo") >&5
3736 (eval "$ac_compile") 2>conftest.er1
3738 grep -v '^ *+' conftest.er1 >conftest.err
3740 cat conftest.err >&5
3741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } && {
3743 test -z "$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3745 } && test -s conftest.$ac_objext; then
3746 ac_cv_header_stdc=yes
3748 $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 ac_cv_header_stdc=no
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 if test $ac_cv_header_stdc = yes; then
3757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3768 $EGREP "memchr" >/dev/null 2>&1; then
3771 ac_cv_header_stdc=no
3777 if test $ac_cv_header_stdc = yes; then
3778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3789 $EGREP "free" >/dev/null 2>&1; then
3792 ac_cv_header_stdc=no
3798 if test $ac_cv_header_stdc = yes; then
3799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3800 if test "$cross_compiling" = yes; then
3803 cat >conftest.$ac_ext <<_ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3811 #if ((' ' & 0x0FF) == 0x020)
3812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3815 # define ISLOWER(c) \
3816 (('a' <= (c) && (c) <= 'i') \
3817 || ('j' <= (c) && (c) <= 'r') \
3818 || ('s' <= (c) && (c) <= 'z'))
3819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3827 for (i = 0; i < 256; i++)
3828 if (XOR (islower (i), ISLOWER (i))
3829 || toupper (i) != TOUPPER (i))
3834 rm -f conftest$ac_exeext
3835 if { (ac_try="$ac_link"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841 $as_echo "$ac_try_echo") >&5
3842 (eval "$ac_link") 2>&5
3844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3851 $as_echo "$ac_try_echo") >&5
3852 (eval "$ac_try") 2>&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3858 $as_echo "$as_me: program exited with status $ac_status" >&5
3859 $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3863 ac_cv_header_stdc=no
3865 rm -rf conftest.dSYM
3866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3872 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3873 $as_echo "$ac_cv_header_stdc" >&6; }
3874 if test $ac_cv_header_stdc = yes; then
3876 cat >>confdefs.h <<\_ACEOF
3877 #define STDC_HEADERS 1
3882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3893 inttypes.h stdint.h unistd.h
3895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3897 $as_echo_n "checking for $ac_header... " >&6; }
3898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3899 $as_echo_n "(cached) " >&6
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 $ac_includes_default
3909 #include <$ac_header>
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 eval "$as_ac_Header=yes"
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 eval "$as_ac_Header=no"
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 ac_res=`eval 'as_val=${'$as_ac_Header'}
3940 $as_echo "$as_val"'`
3941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3942 $as_echo "$ac_res" >&6; }
3943 as_val=`eval 'as_val=${'$as_ac_Header'}
3944 $as_echo "$as_val"'`
3945 if test "x$as_val" = x""yes; then
3946 cat >>confdefs.h <<_ACEOF
3947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3956 for ac_header in libdsk.h
3958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3961 $as_echo_n "checking for $ac_header... " >&6; }
3962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3963 $as_echo_n "(cached) " >&6
3965 ac_res=`eval 'as_val=${'$as_ac_Header'}
3966 $as_echo "$as_val"'`
3967 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3968 $as_echo "$ac_res" >&6; }
3970 # Is the header compilable?
3971 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
3972 $as_echo_n "checking $ac_header usability... " >&6; }
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 $ac_includes_default
3980 #include <$ac_header>
3982 rm -f conftest.$ac_objext
3983 if { (ac_try="$ac_compile"
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3989 $as_echo "$ac_try_echo") >&5
3990 (eval "$ac_compile") 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } && {
3997 test -z "$ac_c_werror_flag" ||
3998 test ! -s conftest.err
3999 } && test -s conftest.$ac_objext; then
4000 ac_header_compiler=yes
4002 $as_echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4005 ac_header_compiler=no
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4010 $as_echo "$ac_header_compiler" >&6; }
4012 # Is the header present?
4013 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4014 $as_echo_n "checking $ac_header presence... " >&6; }
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 #include <$ac_header>
4023 if { (ac_try="$ac_cpp conftest.$ac_ext"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4029 $as_echo "$ac_try_echo") >&5
4030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } >/dev/null && {
4037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4038 test ! -s conftest.err
4040 ac_header_preproc=yes
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 ac_header_preproc=no
4048 rm -f conftest.err conftest.$ac_ext
4049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4050 $as_echo "$ac_header_preproc" >&6; }
4052 # So? What about this header?
4053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4056 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4058 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4059 ac_header_preproc=yes
4062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4063 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4065 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4067 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4069 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4071 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4073 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4077 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4078 $as_echo_n "checking for $ac_header... " >&6; }
4079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080 $as_echo_n "(cached) " >&6
4082 eval "$as_ac_Header=\$ac_header_preproc"
4084 ac_res=`eval 'as_val=${'$as_ac_Header'}
4085 $as_echo "$as_val"'`
4086 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4087 $as_echo "$ac_res" >&6; }
4090 as_val=`eval 'as_val=${'$as_ac_Header'}
4091 $as_echo "$as_val"'`
4092 if test "x$as_val" = x""yes; then
4093 cat >>confdefs.h <<_ACEOF
4094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098 echo "No libdsk.h - aborting"; exit 1
4105 if test x"$DEVICE" = x"win32"; then
4108 for ac_header in windows.h winioctl.h
4110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4113 $as_echo_n "checking for $ac_header... " >&6; }
4114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4115 $as_echo_n "(cached) " >&6
4117 ac_res=`eval 'as_val=${'$as_ac_Header'}
4118 $as_echo "$as_val"'`
4119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4120 $as_echo "$ac_res" >&6; }
4122 # Is the header compilable?
4123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4124 $as_echo_n "checking $ac_header usability... " >&6; }
4125 cat >conftest.$ac_ext <<_ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 $ac_includes_default
4132 #include <$ac_header>
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4141 $as_echo "$ac_try_echo") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } && {
4149 test -z "$ac_c_werror_flag" ||
4150 test ! -s conftest.err
4151 } && test -s conftest.$ac_objext; then
4152 ac_header_compiler=yes
4154 $as_echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 ac_header_compiler=no
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4162 $as_echo "$ac_header_compiler" >&6; }
4164 # Is the header present?
4165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4166 $as_echo_n "checking $ac_header presence... " >&6; }
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #include <$ac_header>
4175 if { (ac_try="$ac_cpp conftest.$ac_ext"
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181 $as_echo "$ac_try_echo") >&5
4182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev/null && {
4189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4190 test ! -s conftest.err
4192 ac_header_preproc=yes
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 ac_header_preproc=no
4200 rm -f conftest.err conftest.$ac_ext
4201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4202 $as_echo "$ac_header_preproc" >&6; }
4204 # So? What about this header?
4205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4211 ac_header_preproc=yes
4214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4230 $as_echo_n "checking for $ac_header... " >&6; }
4231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4232 $as_echo_n "(cached) " >&6
4234 eval "$as_ac_Header=\$ac_header_preproc"
4236 ac_res=`eval 'as_val=${'$as_ac_Header'}
4237 $as_echo "$as_val"'`
4238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4239 $as_echo "$ac_res" >&6; }
4242 as_val=`eval 'as_val=${'$as_ac_Header'}
4243 $as_echo "$as_val"'`
4244 if test "x$as_val" = x""yes; then
4245 cat >>confdefs.h <<_ACEOF
4246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4250 echo "Windows headers not found - aborting"; exit 1
4257 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4258 $as_echo_n "checking for ANSI C header files... " >&6; }
4259 if test "${ac_cv_header_stdc+set}" = set; then
4260 $as_echo_n "(cached) " >&6
4262 cat >conftest.$ac_ext <<_ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4281 rm -f conftest.$ac_objext
4282 if { (ac_try="$ac_compile"
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4288 $as_echo "$ac_try_echo") >&5
4289 (eval "$ac_compile") 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && {
4296 test -z "$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 } && test -s conftest.$ac_objext; then
4299 ac_cv_header_stdc=yes
4301 $as_echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 ac_cv_header_stdc=no
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 if test $ac_cv_header_stdc = yes; then
4310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then
4324 ac_cv_header_stdc=no
4330 if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat >conftest.$ac_ext <<_ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4342 $EGREP "free" >/dev/null 2>&1; then
4345 ac_cv_header_stdc=no
4351 if test $ac_cv_header_stdc = yes; then
4352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4353 if test "$cross_compiling" = yes; then
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4364 #if ((' ' & 0x0FF) == 0x020)
4365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4368 # define ISLOWER(c) \
4369 (('a' <= (c) && (c) <= 'i') \
4370 || ('j' <= (c) && (c) <= 'r') \
4371 || ('s' <= (c) && (c) <= 'z'))
4372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 for (i = 0; i < 256; i++)
4381 if (XOR (islower (i), ISLOWER (i))
4382 || toupper (i) != TOUPPER (i))
4387 rm -f conftest$ac_exeext
4388 if { (ac_try="$ac_link"
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_link") 2>&5
4397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4399 { (case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4404 $as_echo "$ac_try_echo") >&5
4405 (eval "$ac_try") 2>&5
4407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4411 $as_echo "$as_me: program exited with status $ac_status" >&5
4412 $as_echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4416 ac_cv_header_stdc=no
4418 rm -rf conftest.dSYM
4419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4426 $as_echo "$ac_cv_header_stdc" >&6; }
4427 if test $ac_cv_header_stdc = yes; then
4429 cat >>confdefs.h <<\_ACEOF
4430 #define STDC_HEADERS 1
4440 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
4442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4445 $as_echo_n "checking for $ac_header... " >&6; }
4446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4447 $as_echo_n "(cached) " >&6
4449 ac_res=`eval 'as_val=${'$as_ac_Header'}
4450 $as_echo "$as_val"'`
4451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4452 $as_echo "$ac_res" >&6; }
4454 # Is the header compilable?
4455 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4456 $as_echo_n "checking $ac_header usability... " >&6; }
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 $ac_includes_default
4464 #include <$ac_header>
4466 rm -f conftest.$ac_objext
4467 if { (ac_try="$ac_compile"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474 (eval "$ac_compile") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } && {
4481 test -z "$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 } && test -s conftest.$ac_objext; then
4484 ac_header_compiler=yes
4486 $as_echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 ac_header_compiler=no
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4494 $as_echo "$ac_header_compiler" >&6; }
4496 # Is the header present?
4497 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4498 $as_echo_n "checking $ac_header presence... " >&6; }
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 #include <$ac_header>
4507 if { (ac_try="$ac_cpp conftest.$ac_ext"
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513 $as_echo "$ac_try_echo") >&5
4514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4516 grep -v '^ *+' conftest.er1 >conftest.err
4518 cat conftest.err >&5
4519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); } >/dev/null && {
4521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4522 test ! -s conftest.err
4524 ac_header_preproc=yes
4526 $as_echo "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4529 ac_header_preproc=no
4532 rm -f conftest.err conftest.$ac_ext
4533 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4534 $as_echo "$ac_header_preproc" >&6; }
4536 # So? What about this header?
4537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4540 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4542 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4543 ac_header_preproc=yes
4546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4547 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4549 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4551 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4553 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4555 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4557 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 $as_echo_n "checking for $ac_header... " >&6; }
4563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4564 $as_echo_n "(cached) " >&6
4566 eval "$as_ac_Header=\$ac_header_preproc"
4568 ac_res=`eval 'as_val=${'$as_ac_Header'}
4569 $as_echo "$as_val"'`
4570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4571 $as_echo "$ac_res" >&6; }
4574 as_val=`eval 'as_val=${'$as_ac_Header'}
4575 $as_echo "$as_val"'`
4576 if test "x$as_val" = x""yes; then
4577 cat >>confdefs.h <<_ACEOF
4578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4586 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4587 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4588 if test "${ac_cv_c_const+set}" = set; then
4589 $as_echo_n "(cached) " >&6
4591 cat >conftest.$ac_ext <<_ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4601 /* FIXME: Include the comments suggested by Paul. */
4603 /* Ultrix mips cc rejects this. */
4604 typedef int charset[2];
4606 /* SunOS 4.1.1 cc rejects this. */
4607 char const *const *pcpcc;
4609 /* NEC SVR4.0.2 mips cc rejects this. */
4610 struct point {int x, y;};
4611 static struct point const zero = {0,0};
4612 /* AIX XL C 1.02.0.0 rejects this.
4613 It does not let you subtract one const X* pointer from another in
4614 an arm of an if-expression whose if-part is not a constant
4616 const char *g = "string";
4617 pcpcc = &g + (g ? g-g : 0);
4618 /* HPUX 7.0 cc rejects these. */
4620 ppc = (char**) pcpcc;
4621 pcpcc = (char const *const *) ppc;
4622 { /* SCO 3.2v4 cc rejects this. */
4624 char const *s = 0 ? (char *) 0 : (char const *) 0;
4629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4631 const int *foo = &x[0];
4634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4635 typedef const int *iptr;
4639 { /* AIX XL C 1.02.0.0 rejects this saying
4640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4641 struct s { int j; const int *ap[3]; };
4642 struct s *b; b->j = 5;
4644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4648 return !cs[0] && !zero.x;
4655 rm -f conftest.$ac_objext
4656 if { (ac_try="$ac_compile"
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4662 $as_echo "$ac_try_echo") >&5
4663 (eval "$ac_compile") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } && {
4670 test -z "$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 } && test -s conftest.$ac_objext; then
4675 $as_echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4684 $as_echo "$ac_cv_c_const" >&6; }
4685 if test $ac_cv_c_const = no; then
4687 cat >>confdefs.h <<\_ACEOF
4693 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
4694 $as_echo_n "checking for mode_t... " >&6; }
4695 if test "${ac_cv_type_mode_t+set}" = set; then
4696 $as_echo_n "(cached) " >&6
4698 ac_cv_type_mode_t=no
4699 cat >conftest.$ac_ext <<_ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4709 if (sizeof (mode_t))
4715 rm -f conftest.$ac_objext
4716 if { (ac_try="$ac_compile"
4718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719 *) ac_try_echo=$ac_try;;
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723 (eval "$ac_compile") 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && {
4730 test -z "$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4732 } && test -s conftest.$ac_objext; then
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 $ac_includes_default
4743 if (sizeof ((mode_t)))
4749 rm -f conftest.$ac_objext
4750 if { (ac_try="$ac_compile"
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_cv_type_mode_t=yes
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 $as_echo "$as_me: failed program was:" >&5
4778 sed 's/^/| /' conftest.$ac_ext >&5
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4786 $as_echo "$ac_cv_type_mode_t" >&6; }
4787 if test "x$ac_cv_type_mode_t" = x""yes; then
4791 cat >>confdefs.h <<_ACEOF
4797 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
4798 $as_echo_n "checking for off_t... " >&6; }
4799 if test "${ac_cv_type_off_t+set}" = set; then
4800 $as_echo_n "(cached) " >&6
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4809 $ac_includes_default
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826 $as_echo "$ac_try_echo") >&5
4827 (eval "$ac_compile") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest.$ac_objext; then
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 $ac_includes_default
4847 if (sizeof ((off_t)))
4853 rm -f conftest.$ac_objext
4854 if { (ac_try="$ac_compile"
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4860 $as_echo "$ac_try_echo") >&5
4861 (eval "$ac_compile") 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && {
4868 test -z "$ac_c_werror_flag" ||
4869 test ! -s conftest.err
4870 } && test -s conftest.$ac_objext; then
4873 $as_echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4876 ac_cv_type_off_t=yes
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4890 $as_echo "$ac_cv_type_off_t" >&6; }
4891 if test "x$ac_cv_type_off_t" = x""yes; then
4895 cat >>confdefs.h <<_ACEOF
4896 #define off_t long int
4901 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
4902 $as_echo_n "checking for pid_t... " >&6; }
4903 if test "${ac_cv_type_pid_t+set}" = set; then
4904 $as_echo_n "(cached) " >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4930 $as_echo "$ac_try_echo") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 $ac_includes_default
4951 if (sizeof ((pid_t)))
4957 rm -f conftest.$ac_objext
4958 if { (ac_try="$ac_compile"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965 (eval "$ac_compile") 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } && {
4972 test -z "$ac_c_werror_flag" ||
4973 test ! -s conftest.err
4974 } && test -s conftest.$ac_objext; then
4977 $as_echo "$as_me: failed program was:" >&5
4978 sed 's/^/| /' conftest.$ac_ext >&5
4980 ac_cv_type_pid_t=yes
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 $as_echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4994 $as_echo "$ac_cv_type_pid_t" >&6; }
4995 if test "x$ac_cv_type_pid_t" = x""yes; then
4999 cat >>confdefs.h <<_ACEOF
5005 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5006 $as_echo_n "checking for size_t... " >&6; }
5007 if test "${ac_cv_type_size_t+set}" = set; then
5008 $as_echo_n "(cached) " >&6
5010 ac_cv_type_size_t=no
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 $ac_includes_default
5021 if (sizeof (size_t))
5027 rm -f conftest.$ac_objext
5028 if { (ac_try="$ac_compile"
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5034 $as_echo "$ac_try_echo") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5037 grep -v '^ *+' conftest.er1 >conftest.err
5039 cat conftest.err >&5
5040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && {
5042 test -z "$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 } && test -s conftest.$ac_objext; then
5045 cat >conftest.$ac_ext <<_ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_includes_default
5055 if (sizeof ((size_t)))
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5068 $as_echo "$ac_try_echo") >&5
5069 (eval "$ac_compile") 2>conftest.er1
5071 grep -v '^ *+' conftest.er1 >conftest.err
5073 cat conftest.err >&5
5074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } && {
5076 test -z "$ac_c_werror_flag" ||
5077 test ! -s conftest.err
5078 } && test -s conftest.$ac_objext; then
5081 $as_echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 ac_cv_type_size_t=yes
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 $as_echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5097 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5098 $as_echo "$ac_cv_type_size_t" >&6; }
5099 if test "x$ac_cv_type_size_t" = x""yes; then
5103 cat >>confdefs.h <<_ACEOF
5104 #define size_t unsigned int
5109 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5110 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5111 if test "${ac_cv_struct_tm+set}" = set; then
5112 $as_echo_n "(cached) " >&6
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <sys/types.h>
5127 int *p = &tm.tm_sec;
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5140 $as_echo "$ac_try_echo") >&5
5141 (eval "$ac_compile") 2>conftest.er1
5143 grep -v '^ *+' conftest.er1 >conftest.err
5145 cat conftest.err >&5
5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && {
5148 test -z "$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 } && test -s conftest.$ac_objext; then
5151 ac_cv_struct_tm=time.h
5153 $as_echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ac_cv_struct_tm=sys/time.h
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5162 $as_echo "$ac_cv_struct_tm" >&6; }
5163 if test $ac_cv_struct_tm = sys/time.h; then
5165 cat >>confdefs.h <<\_ACEOF
5166 #define TM_IN_SYS_TIME 1
5173 # Check whether --enable-largefile was given.
5174 if test "${enable_largefile+set}" = set; then
5175 enableval=$enable_largefile;
5178 if test "$enable_largefile" != no; then
5180 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5181 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5182 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5185 ac_cv_sys_largefile_CC=no
5186 if test "$GCC" != yes; then
5189 # IRIX 6.2 and later do not support large files by default,
5190 # so use the C compiler's -n32 option if that helps.
5191 cat >conftest.$ac_ext <<_ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 #include <sys/types.h>
5198 /* Check that off_t can represent 2**63 - 1 correctly.
5199 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5200 since some C++ compilers masquerading as C compilers
5201 incorrectly reject 9223372036854775807. */
5202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5203 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5204 && LARGE_OFF_T % 2147483647 == 1)
5214 rm -f conftest.$ac_objext
5215 if { (ac_try="$ac_compile"
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5221 $as_echo "$ac_try_echo") >&5
5222 (eval "$ac_compile") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest.$ac_objext; then
5234 $as_echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5240 rm -f core conftest.err conftest.$ac_objext
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5252 grep -v '^ *+' conftest.er1 >conftest.err
5254 cat conftest.err >&5
5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5260 ac_cv_sys_largefile_CC=' -n32'; break
5262 $as_echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5268 rm -f core conftest.err conftest.$ac_objext
5272 rm -f conftest.$ac_ext
5275 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5276 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5277 if test "$ac_cv_sys_largefile_CC" != no; then
5278 CC=$CC$ac_cv_sys_largefile_CC
5281 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5282 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5283 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5287 cat >conftest.$ac_ext <<_ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <sys/types.h>
5294 /* Check that off_t can represent 2**63 - 1 correctly.
5295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5296 since some C++ compilers masquerading as C compilers
5297 incorrectly reject 9223372036854775807. */
5298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5300 && LARGE_OFF_T % 2147483647 == 1)
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5317 $as_echo "$ac_try_echo") >&5
5318 (eval "$ac_compile") 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest.$ac_objext; then
5328 ac_cv_sys_file_offset_bits=no; break
5330 $as_echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #define _FILE_OFFSET_BITS 64
5344 #include <sys/types.h>
5345 /* Check that off_t can represent 2**63 - 1 correctly.
5346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5347 since some C++ compilers masquerading as C compilers
5348 incorrectly reject 9223372036854775807. */
5349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5351 && LARGE_OFF_T % 2147483647 == 1)
5361 rm -f conftest.$ac_objext
5362 if { (ac_try="$ac_compile"
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5368 $as_echo "$ac_try_echo") >&5
5369 (eval "$ac_compile") 2>conftest.er1
5371 grep -v '^ *+' conftest.er1 >conftest.err
5373 cat conftest.err >&5
5374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && {
5376 test -z "$ac_c_werror_flag" ||
5377 test ! -s conftest.err
5378 } && test -s conftest.$ac_objext; then
5379 ac_cv_sys_file_offset_bits=64; break
5381 $as_echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 ac_cv_sys_file_offset_bits=unknown
5392 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5393 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5394 case $ac_cv_sys_file_offset_bits in #(
5397 cat >>confdefs.h <<_ACEOF
5398 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5403 if test $ac_cv_sys_file_offset_bits = unknown; then
5404 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5405 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5406 if test "${ac_cv_sys_large_files+set}" = set; then
5407 $as_echo_n "(cached) " >&6
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <sys/types.h>
5417 /* Check that off_t can represent 2**63 - 1 correctly.
5418 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5419 since some C++ compilers masquerading as C compilers
5420 incorrectly reject 9223372036854775807. */
5421 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5422 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5423 && LARGE_OFF_T % 2147483647 == 1)
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5440 $as_echo "$ac_try_echo") >&5
5441 (eval "$ac_compile") 2>conftest.er1
5443 grep -v '^ *+' conftest.er1 >conftest.err
5445 cat conftest.err >&5
5446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } && {
5448 test -z "$ac_c_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest.$ac_objext; then
5451 ac_cv_sys_large_files=no; break
5453 $as_echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 cat >conftest.$ac_ext <<_ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #define _LARGE_FILES 1
5467 #include <sys/types.h>
5468 /* Check that off_t can represent 2**63 - 1 correctly.
5469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5470 since some C++ compilers masquerading as C compilers
5471 incorrectly reject 9223372036854775807. */
5472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5474 && LARGE_OFF_T % 2147483647 == 1)
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 ac_cv_sys_large_files=1; break
5504 $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_sys_large_files=unknown
5515 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5516 $as_echo "$ac_cv_sys_large_files" >&6; }
5517 case $ac_cv_sys_large_files in #(
5520 cat >>confdefs.h <<_ACEOF
5521 #define _LARGE_FILES $ac_cv_sys_large_files
5530 if test x"$FSED_CPM" != x""; then
5531 FSED_CPM="$FSED_CPM$EXEEXT"
5534 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
5535 $as_echo_n "checking for working memcmp... " >&6; }
5536 if test "${ac_cv_func_memcmp_working+set}" = set; then
5537 $as_echo_n "(cached) " >&6
5539 if test "$cross_compiling" = yes; then
5540 ac_cv_func_memcmp_working=no
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 $ac_includes_default
5553 /* Some versions of memcmp are not 8-bit clean. */
5554 char c0 = '\100', c1 = '\200', c2 = '\201';
5555 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5558 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5559 or more and with at least one buffer not starting on a 4-byte boundary.
5560 William Lewis provided this test program. */
5565 for (i = 0; i < 4; i++)
5569 strcpy (a, "--------01111111");
5570 strcpy (b, "--------10000000");
5571 if (memcmp (a, b, 16) >= 0)
5581 rm -f conftest$ac_exeext
5582 if { (ac_try="$ac_link"
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5588 $as_echo "$ac_try_echo") >&5
5589 (eval "$ac_link") 2>&5
5591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593 { (case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5598 $as_echo "$ac_try_echo") >&5
5599 (eval "$ac_try") 2>&5
5601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_func_memcmp_working=yes
5605 $as_echo "$as_me: program exited with status $ac_status" >&5
5606 $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5610 ac_cv_func_memcmp_working=no
5612 rm -rf conftest.dSYM
5613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5619 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5620 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5621 *" memcmp.$ac_objext "* ) ;;
5622 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5628 for ac_func in strftime
5630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5631 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5632 $as_echo_n "checking for $ac_func... " >&6; }
5633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5634 $as_echo_n "(cached) " >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5644 #define $ac_func innocuous_$ac_func
5646 /* System header to define __stub macros and hopefully few prototypes,
5647 which can conflict with char $ac_func (); below.
5648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 <limits.h> exists even on freestanding compilers. */
5652 # include <limits.h>
5654 # include <assert.h>
5659 /* Override any GCC internal prototype to avoid an error.
5660 Use char because int might match the return type of a GCC
5661 builtin and then its argument prototype would still apply. */
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined __stub_$ac_func || defined __stub___$ac_func
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (ac_try="$ac_link"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5688 $as_echo "$ac_try_echo") >&5
5689 (eval "$ac_link") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest$ac_exeext && {
5699 test "$cross_compiling" = yes ||
5700 $as_test_x conftest$ac_exeext
5702 eval "$as_ac_var=yes"
5704 $as_echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5707 eval "$as_ac_var=no"
5710 rm -rf conftest.dSYM
5711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5712 conftest$ac_exeext conftest.$ac_ext
5714 ac_res=`eval 'as_val=${'$as_ac_var'}
5715 $as_echo "$as_val"'`
5716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5717 $as_echo "$ac_res" >&6; }
5718 as_val=`eval 'as_val=${'$as_ac_var'}
5719 $as_echo "$as_val"'`
5720 if test "x$as_val" = x""yes; then
5721 cat >>confdefs.h <<_ACEOF
5722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5726 # strftime is in -lintl on SCO UNIX.
5727 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5728 $as_echo_n "checking for strftime in -lintl... " >&6; }
5729 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5730 $as_echo_n "(cached) " >&6
5732 ac_check_lib_save_LIBS=$LIBS
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5741 /* Override any GCC internal prototype to avoid an error.
5742 Use char because int might match the return type of a GCC
5743 builtin and then its argument prototype would still apply. */
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (ac_try="$ac_link"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5763 $as_echo "$ac_try_echo") >&5
5764 (eval "$ac_link") 2>conftest.er1
5766 grep -v '^ *+' conftest.er1 >conftest.err
5768 cat conftest.err >&5
5769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest$ac_exeext && {
5774 test "$cross_compiling" = yes ||
5775 $as_test_x conftest$ac_exeext
5777 ac_cv_lib_intl_strftime=yes
5779 $as_echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5782 ac_cv_lib_intl_strftime=no
5785 rm -rf conftest.dSYM
5786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5787 conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5791 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
5792 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
5793 cat >>confdefs.h <<\_ACEOF
5794 #define HAVE_STRFTIME 1
5805 for ac_func in mktime strerror
5807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5809 $as_echo_n "checking for $ac_func... " >&6; }
5810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5811 $as_echo_n "(cached) " >&6
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5821 #define $ac_func innocuous_$ac_func
5823 /* System header to define __stub macros and hopefully few prototypes,
5824 which can conflict with char $ac_func (); below.
5825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 <limits.h> exists even on freestanding compilers. */
5829 # include <limits.h>
5831 # include <assert.h>
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5843 /* The GNU C library defines this for functions which it implements
5844 to always fail with ENOSYS. Some functions are actually named
5845 something starting with __ and the normal name is an alias. */
5846 #if defined __stub_$ac_func || defined __stub___$ac_func
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865 $as_echo "$ac_try_echo") >&5
5866 (eval "$ac_link") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest$ac_exeext && {
5876 test "$cross_compiling" = yes ||
5877 $as_test_x conftest$ac_exeext
5879 eval "$as_ac_var=yes"
5881 $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 eval "$as_ac_var=no"
5887 rm -rf conftest.dSYM
5888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5889 conftest$ac_exeext conftest.$ac_ext
5891 ac_res=`eval 'as_val=${'$as_ac_var'}
5892 $as_echo "$as_val"'`
5893 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5894 $as_echo "$ac_res" >&6; }
5895 as_val=`eval 'as_val=${'$as_ac_var'}
5896 $as_echo "$as_val"'`
5897 if test "x$as_val" = x""yes; then
5898 cat >>confdefs.h <<_ACEOF
5899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5909 eval DATADIR=$datadir
5915 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"
5917 cat >confcache <<\_ACEOF
5918 # This file is a shell script that caches the results of configure
5919 # tests run on this system so they can be shared between configure
5920 # scripts and configure runs, see configure's option --config-cache.
5921 # It is not useful on other systems. If it contains results you don't
5922 # want to keep, you may remove or edit it.
5924 # config.status only pays attention to the cache file if you give it
5925 # the --recheck option to rerun configure.
5927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5933 # The following way of writing the cache mishandles newlines in values,
5934 # but we know of no workaround that is simple, portable, and efficient.
5935 # So, we kill variables containing newlines.
5936 # Ultrix sh set writes to stderr and can't be redirected directly,
5937 # and sets the high bit in the cache file unless we assign to the vars.
5939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5940 eval ac_val=\$$ac_var
5944 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5948 _ | IFS | as_nl) ;; #(
5949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5950 *) $as_unset $ac_var ;;
5956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5957 *${as_nl}ac_space=\ *)
5958 # `set' does not quote correctly, so add quotes (double-quote
5959 # substitution turns \\\\ into \\, and sed turns \\ into \).
5962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5965 # `set' quotes correctly as required by POSIX, so do not add quotes.
5966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5980 if test -w "$cache_file"; then
5981 test "x$cache_file" != "x/dev/null" &&
5982 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5983 $as_echo "$as_me: updating cache $cache_file" >&6;}
5984 cat confcache >$cache_file
5986 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5993 # Let make expand exec_prefix.
5994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5996 DEFS=-DHAVE_CONFIG_H
6000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6001 # 1. Remove the extension, and $U if already installed.
6002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6003 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6005 # will be set to the directory where LIBOBJS objects are built.
6006 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6007 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6011 LTLIBOBJS=$ac_ltlibobjs
6015 : ${CONFIG_STATUS=./config.status}
6017 ac_clean_files_save=$ac_clean_files
6018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6019 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6020 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6021 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6023 # Generated by $as_me.
6024 # Run this file to recreate the current configuration.
6025 # Compiler output produced by configure, useful for debugging
6026 # configure, is in config.log if it exists.
6031 SHELL=\${CONFIG_SHELL-$SHELL}
6034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6035 ## --------------------- ##
6036 ## M4sh Initialization. ##
6037 ## --------------------- ##
6039 # Be more Bourne compatible
6040 DUALCASE=1; export DUALCASE # for MKS sh
6041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6044 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6045 # is contrary to our usage. Disable this feature.
6046 alias -g '${1+"$@"}'='"$@"'
6047 setopt NO_GLOB_SUBST
6049 case `(set -o) 2>/dev/null` in
6050 *posix*) set -o posix ;;
6059 # Avoid depending upon Character Ranges.
6060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6063 as_cr_digits='0123456789'
6064 as_cr_alnum=$as_cr_Letters$as_cr_digits
6069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6070 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6073 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6074 as_echo='printf %s\n'
6075 as_echo_n='printf %s'
6077 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6078 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6079 as_echo_n='/usr/ucb/echo -n'
6081 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6082 as_echo_n_body='eval
6086 expr "X$arg" : "X\\(.*\\)$as_nl";
6087 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6089 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6091 export as_echo_n_body
6092 as_echo_n='sh -c $as_echo_n_body as_echo'
6095 as_echo='sh -c $as_echo_body as_echo'
6098 # The user is always right.
6099 if test "${PATH_SEPARATOR+set}" != set; then
6101 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6102 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6107 # Support unset when possible.
6108 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6116 # We need space, tab and new line, in precisely that order. Quoting is
6117 # there to prevent editors from complaining about space-tab.
6118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6119 # splitting by setting IFS to empty value.)
6122 # Find who we are. Look in the path if we contain no directory separator.
6124 *[\\/]* ) as_myself=$0 ;;
6125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 test -z "$as_dir" && as_dir=.
6130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6136 # We did not find ourselves, most probably we were run as `sh COMMAND'
6137 # in which case we are not to be found in the path.
6138 if test "x$as_myself" = x; then
6141 if test ! -f "$as_myself"; then
6142 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6143 { (exit 1); exit 1; }
6146 # Work around bugs in pre-3.0 UWIN ksh.
6147 for as_var in ENV MAIL MAILPATH
6148 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6160 # Required to use basename.
6161 if expr a : '\(a\)' >/dev/null 2>&1 &&
6162 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6168 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6169 as_basename=basename
6175 # Name of the executable.
6176 as_me=`$as_basename -- "$0" ||
6177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6178 X"$0" : 'X\(//\)$' \| \
6179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6181 sed '/^.*\/\([^/][^/]*\)\/*$/{
6202 test "x$as_lineno_1" != "x$as_lineno_2" &&
6203 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6205 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6206 # uniformly replaced by the line number. The first 'sed' inserts a
6207 # line-number line after each line using $LINENO; the second 'sed'
6208 # does the real work. The second script uses 'N' to pair each
6209 # line-number line with the line containing $LINENO, and appends
6210 # trailing '-' during substitution so that $LINENO is not a special
6212 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6213 # scripts with optimization help from Paolo Bonzini. Blame Lee
6214 # E. McMahon (1931-1989) for sed's syntax. :-)
6226 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6230 chmod +x "$as_me.lineno" ||
6231 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6232 { (exit 1); exit 1; }; }
6234 # Don't try to exec as it changes $[0], causing all sort of problems
6235 # (the dirname of $[0] is not the place where we might find the
6236 # original and so on. Autoconf is especially sensitive to this).
6238 # Exit status is that of the last command.
6243 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6249 ECHO_C= ECHO_N= ECHO_T=
6252 case `echo 'x\c'` in
6253 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6259 if expr a : '\(a\)' >/dev/null 2>&1 &&
6260 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6266 rm -f conf$$ conf$$.exe conf$$.file
6267 if test -d conf$$.dir; then
6268 rm -f conf$$.dir/conf$$.file
6271 mkdir conf$$.dir 2>/dev/null
6273 if (echo >conf$$.file) 2>/dev/null; then
6274 if ln -s conf$$.file conf$$ 2>/dev/null; then
6276 # ... but there are two gotchas:
6277 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6278 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6279 # In both cases, we have to default to `cp -p'.
6280 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6282 elif ln conf$$.file conf$$ 2>/dev/null; then
6290 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6291 rmdir conf$$.dir 2>/dev/null
6293 if mkdir -p . 2>/dev/null; then
6296 test -d ./-p && rmdir ./-p
6300 if test -x / >/dev/null 2>&1; then
6303 if ls -dL / >/dev/null 2>&1; then
6310 if test -d "$1"; then
6316 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6317 ???[sx]*):;;*)false;;esac;fi
6321 as_executable_p=$as_test_x
6323 # Sed expression to map a string onto a valid CPP name.
6324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6326 # Sed expression to map a string onto a valid variable name.
6327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6332 # Save the log message, to keep $[0] and so on meaningful, and to
6333 # report actual input values of CONFIG_FILES etc. instead of their
6334 # values after options handling.
6336 This file was extended by $as_me, which was
6337 generated by GNU Autoconf 2.63. Invocation command line was
6339 CONFIG_FILES = $CONFIG_FILES
6340 CONFIG_HEADERS = $CONFIG_HEADERS
6341 CONFIG_LINKS = $CONFIG_LINKS
6342 CONFIG_COMMANDS = $CONFIG_COMMANDS
6345 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6350 case $ac_config_files in *"
6351 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6354 case $ac_config_headers in *"
6355 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6360 # Files that config.status was made for.
6361 config_files="$ac_config_files"
6362 config_headers="$ac_config_headers"
6366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6368 \`$as_me' instantiates files from templates according to the
6369 current configuration.
6371 Usage: $0 [OPTION]... [FILE]...
6373 -h, --help print this help, then exit
6374 -V, --version print version number and configuration settings, then exit
6375 -q, --quiet, --silent
6376 do not print progress messages
6377 -d, --debug don't remove temporary files
6378 --recheck update $as_me by reconfiguring in the same conditions
6379 --file=FILE[:TEMPLATE]
6380 instantiate the configuration file FILE
6381 --header=FILE[:TEMPLATE]
6382 instantiate the configuration header FILE
6384 Configuration files:
6387 Configuration headers:
6390 Report bugs to <bug-autoconf@gnu.org>."
6393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6396 configured by $0, generated by GNU Autoconf 2.63,
6397 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6399 Copyright (C) 2008 Free Software Foundation, Inc.
6400 This config.status script is free software; the Free Software Foundation
6401 gives unlimited permission to copy, distribute and modify it."
6406 test -n "\$AWK" || AWK=awk
6409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6410 # The default lists apply if the user does not specify any file.
6416 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6417 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6428 # Handling of the options.
6429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6432 $as_echo "$ac_cs_version"; exit ;;
6433 --debug | --debu | --deb | --de | --d | -d )
6435 --file | --fil | --fi | --f )
6438 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6440 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6441 ac_need_defaults=false;;
6442 --header | --heade | --head | --hea )
6445 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6447 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6448 ac_need_defaults=false;;
6450 # Conflict between --help and --header
6451 { $as_echo "$as_me: error: ambiguous option: $1
6452 Try \`$0 --help' for more information." >&2
6453 { (exit 1); exit 1; }; };;
6454 --help | --hel | -h )
6455 $as_echo "$ac_cs_usage"; exit ;;
6456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6461 -*) { $as_echo "$as_me: error: unrecognized option: $1
6462 Try \`$0 --help' for more information." >&2
6463 { (exit 1); exit 1; }; } ;;
6465 *) ac_config_targets="$ac_config_targets $1"
6466 ac_need_defaults=false ;;
6472 ac_configure_extra_args=
6474 if $ac_cs_silent; then
6476 ac_configure_extra_args="$ac_configure_extra_args --silent"
6480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6481 if \$ac_cs_recheck; then
6482 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6484 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6485 CONFIG_SHELL='$SHELL'
6491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6496 ## Running $as_me. ##
6502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6507 # Handling of arguments.
6508 for ac_config_target in $ac_config_targets
6510 case $ac_config_target in
6511 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6512 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6513 "cpm.5") CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
6514 "cpmchattr.1") CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
6515 "cpmchmod.1") CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
6516 "cpmcp.1") CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
6517 "cpmls.1") CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
6518 "cpmrm.1") CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
6519 "fsck.cpm.1") CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
6520 "fsed.cpm.1") CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
6521 "mkfs.cpm.1") CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
6523 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6524 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6525 { (exit 1); exit 1; }; };;
6530 # If the user did not use the arguments to specify the items to instantiate,
6531 # then the envvar interface is used. Set only those that are not.
6532 # We use the long form for the default assignment because of an extremely
6533 # bizarre bug on SunOS 4.1.3.
6534 if $ac_need_defaults; then
6535 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6536 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6539 # Have a temporary directory for convenience. Make it in the build tree
6540 # simply because there is no reason against having it here, and in addition,
6541 # creating and moving files from /tmp can sometimes cause problems.
6542 # Hook for its removal unless debugging.
6543 # Note that there is a small window in which the directory will not be cleaned:
6544 # after its creation but before its name has been assigned to `$tmp'.
6548 trap 'exit_status=$?
6549 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6551 trap '{ (exit 1); exit 1; }' 1 2 13 15
6553 # Create a (secure) tmp directory for tmp files.
6556 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6557 test -n "$tmp" && test -d "$tmp"
6560 tmp=./conf$$-$RANDOM
6561 (umask 077 && mkdir "$tmp")
6564 $as_echo "$as_me: cannot create a temporary directory in ." >&2
6565 { (exit 1); exit 1; }
6568 # Set up the scripts for CONFIG_FILES section.
6569 # No need to generate them if there are no CONFIG_FILES.
6570 # This happens for instance with `./config.status config.h'.
6571 if test -n "$CONFIG_FILES"; then
6575 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6582 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6587 echo "cat >conf$$subs.awk <<_ACEOF" &&
6588 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6591 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6592 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6593 { (exit 1); exit 1; }; }
6594 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6596 for ac_last_try in false false false false false :; do
6597 . ./conf$$subs.sh ||
6598 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6599 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6600 { (exit 1); exit 1; }; }
6602 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6603 if test $ac_delim_n = $ac_delim_num; then
6605 elif $ac_last_try; then
6606 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6607 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6608 { (exit 1); exit 1; }; }
6610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6616 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6620 s/^/S["/; s/!.*/"]=/
6630 s/\(.\{148\}\).*/\1/
6632 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6644 s/\(.\{148\}\).*/\1/
6646 s/["\\]/\\&/g; s/^/"/; s/$/"/
6650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6655 ' <conf$$subs.awk | sed '
6660 ' >>$CONFIG_STATUS || ac_write_fail=1
6661 rm -f conf$$subs.awk
6662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6664 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6665 for (key in S) S_is_set[key] = 1
6671 nfields = split(line, field, "@")
6673 len = length(field[1])
6674 for (i = 2; i < nfields; i++) {
6676 keylen = length(key)
6677 if (S_is_set[key]) {
6679 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6680 len += length(value) + length(field[++i])
6691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6692 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6693 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6696 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6697 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6698 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
6699 { (exit 1); exit 1; }; }
6702 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6703 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6704 # trailing colons and then remove the whole line if VPATH becomes empty
6705 # (actually we leave an empty line to preserve line numbers).
6706 if test "x$srcdir" = x.; then
6707 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6711 s/^\([^=]*=[ ]*\):*/\1/
6717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6718 fi # test -n "$CONFIG_FILES"
6720 # Set up the scripts for CONFIG_HEADERS section.
6721 # No need to generate them if there are no CONFIG_HEADERS.
6722 # This happens for instance with `./config.status Makefile'.
6723 if test -n "$CONFIG_HEADERS"; then
6724 cat >"$tmp/defines.awk" <<\_ACAWK ||
6728 # Transform confdefs.h into an awk script `defines.awk', embedded as
6729 # here-document in config.status, that substitutes the proper values into
6730 # config.h.in to produce config.h.
6732 # Create a delimiter string that does not exist in confdefs.h, to ease
6733 # handling of long lines.
6735 for ac_last_try in false false :; do
6736 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6737 if test -z "$ac_t"; then
6739 elif $ac_last_try; then
6740 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6741 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6742 { (exit 1); exit 1; }; }
6744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6748 # For the awk script, D is an array of macro values keyed by name,
6749 # likewise P contains macro parameters if any. Preserve backslash
6750 # newline sequences.
6752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6754 s/.\{148\}/&'"$ac_delim"'/g
6757 s/^[ ]*#[ ]*define[ ][ ]*/ /
6764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6771 D["\1"]=" \3\\\\\\n"\\/p
6773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6778 s/.\{148\}/&'"$ac_delim"'/g
6783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6788 ' <confdefs.h | sed '
6789 s/'"$ac_delim"'/"\\\
6790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6793 for (key in D) D_is_set[key] = 1
6796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6798 split(line, arg, " ")
6799 if (arg[1] == "#") {
6803 defundef = substr(arg[1], 2)
6806 split(mac1, mac2, "(") #)
6808 prefix = substr(line, 1, index(line, defundef) - 1)
6809 if (D_is_set[macro]) {
6810 # Preserve the white space surrounding the "#".
6811 print prefix "define", macro P[macro] D[macro]
6814 # Replace #undef with comments. This is necessary, for example,
6815 # in the case of _POSIX_SOURCE, which is predefined and required
6816 # on some systems where configure will not decide to define it.
6817 if (defundef == "undef") {
6818 print "/*", prefix defundef, macro, "*/"
6826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6827 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6828 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6829 { (exit 1); exit 1; }; }
6830 fi # test -n "$CONFIG_HEADERS"
6833 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6838 :[FHLC]) ac_mode=$ac_tag; continue;;
6840 case $ac_mode$ac_tag in
6842 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6843 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6844 { (exit 1); exit 1; }; };;
6845 :[FH]-) ac_tag=-:-;;
6846 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6863 -) ac_f="$tmp/stdin";;
6864 *) # Look for the file first in the build tree, then in the source tree
6865 # (if the path is not absolute). The absolute path cannot be DOS-style,
6866 # because $ac_f cannot contain `:'.
6870 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6872 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6873 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6874 { (exit 1); exit 1; }; };;
6876 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6877 ac_file_inputs="$ac_file_inputs '$ac_f'"
6880 # Let's still pretend it is `configure' which instantiates (i.e., don't
6881 # use $as_me), people would be surprised to read:
6882 # /* config.h. Generated by config.status. */
6883 configure_input='Generated from '`
6884 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6886 if test x"$ac_file" != x-; then
6887 configure_input="$ac_file. $configure_input"
6888 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6889 $as_echo "$as_me: creating $ac_file" >&6;}
6891 # Neutralize special characters interpreted by sed in replacement strings.
6892 case $configure_input in #(
6893 *\&* | *\|* | *\\* )
6894 ac_sed_conf_input=`$as_echo "$configure_input" |
6895 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6896 *) ac_sed_conf_input=$configure_input;;
6900 *:-:* | *:-) cat >"$tmp/stdin" \
6901 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6902 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6903 { (exit 1); exit 1; }; } ;;
6908 ac_dir=`$as_dirname -- "$ac_file" ||
6909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6910 X"$ac_file" : 'X\(//\)[^/]' \| \
6911 X"$ac_file" : 'X\(//\)$' \| \
6912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6913 $as_echo X"$ac_file" |
6914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6933 -*) as_dir=./$as_dir;;
6935 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6939 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6940 *) as_qdir=$as_dir;;
6942 as_dirs="'$as_qdir' $as_dirs"
6943 as_dir=`$as_dirname -- "$as_dir" ||
6944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6945 X"$as_dir" : 'X\(//\)[^/]' \| \
6946 X"$as_dir" : 'X\(//\)$' \| \
6947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6948 $as_echo X"$as_dir" |
6949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6966 test -d "$as_dir" && break
6968 test -z "$as_dirs" || eval "mkdir $as_dirs"
6969 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6970 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6971 { (exit 1); exit 1; }; }; }
6975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6977 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6978 # A ".." for each directory in $ac_dir_suffix.
6979 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6980 case $ac_top_builddir_sub in
6981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6985 ac_abs_top_builddir=$ac_pwd
6986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6987 # for backward compatibility:
6988 ac_top_builddir=$ac_top_build_prefix
6991 .) # We are building in place.
6993 ac_top_srcdir=$ac_top_builddir_sub
6994 ac_abs_top_srcdir=$ac_pwd ;;
6995 [\\/]* | ?:[\\/]* ) # Absolute name.
6996 ac_srcdir=$srcdir$ac_dir_suffix;
6997 ac_top_srcdir=$srcdir
6998 ac_abs_top_srcdir=$srcdir ;;
7000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7001 ac_top_srcdir=$ac_top_build_prefix$srcdir
7002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7020 # If the template does not know about datarootdir, expand it.
7021 # FIXME: This hack should be removed a few years after 2.60.
7022 ac_datarootdir_hack=; ac_datarootdir_seen=
7035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7036 *datarootdir*) ac_datarootdir_seen=yes;;
7037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7038 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7039 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7042 ac_datarootdir_hack='
7043 s&@datadir@&$datadir&g
7044 s&@docdir@&$docdir&g
7045 s&@infodir@&$infodir&g
7046 s&@localedir@&$localedir&g
7047 s&@mandir@&$mandir&g
7048 s&\\\${datarootdir}&$datarootdir&g' ;;
7052 # Neutralize VPATH when `$srcdir' = `.'.
7053 # Shell code in configure.ac might set extrasub.
7054 # FIXME: do we really want to maintain this feature?
7055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7056 ac_sed_extra="$ac_vpsub
7059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7062 s|@configure_input@|$ac_sed_conf_input|;t t
7063 s&@top_builddir@&$ac_top_builddir_sub&;t t
7064 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7065 s&@srcdir@&$ac_srcdir&;t t
7066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7067 s&@top_srcdir@&$ac_top_srcdir&;t t
7068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7069 s&@builddir@&$ac_builddir&;t t
7070 s&@abs_builddir@&$ac_abs_builddir&;t t
7071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7072 s&@INSTALL@&$ac_INSTALL&;t t
7073 $ac_datarootdir_hack
7075 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7076 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7077 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7078 { (exit 1); exit 1; }; }
7080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7081 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7083 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7084 which seems to be undefined. Please make sure it is defined." >&5
7085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7086 which seems to be undefined. Please make sure it is defined." >&2;}
7090 -) cat "$tmp/out" && rm -f "$tmp/out";;
7091 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7095 { (exit 1); exit 1; }; }
7101 if test x"$ac_file" != x-; then
7103 $as_echo "/* $configure_input */" \
7104 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7105 } >"$tmp/config.h" \
7106 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7107 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7108 { (exit 1); exit 1; }; }
7109 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7110 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7114 mv "$tmp/config.h" "$ac_file" \
7115 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7117 { (exit 1); exit 1; }; }
7120 $as_echo "/* $configure_input */" \
7121 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7122 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7123 $as_echo "$as_me: error: could not create -" >&2;}
7124 { (exit 1); exit 1; }; }
7134 { (exit 0); exit 0; }
7136 chmod +x $CONFIG_STATUS
7137 ac_clean_files=$ac_clean_files_save
7139 test $ac_write_fail = 0 ||
7140 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7141 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7142 { (exit 1); exit 1; }; }
7145 # configure is writing to config.log, and then calls config.status.
7146 # config.status does its own redirection, appending to config.log.
7147 # Unfortunately, on DOS this fails, as config.log is still kept open
7148 # by configure, so config.status won't be able to write to it; its
7149 # output is simply discarded. So we exec the FD to /dev/null,
7150 # effectively closing config.log, so it can be properly (re)opened and
7151 # appended to by config.status. When coming back to configure, we
7152 # need to make the FD available again.
7153 if test "$no_create" != yes; then
7155 ac_config_status_args=
7156 test "$silent" = yes &&
7157 ac_config_status_args="$ac_config_status_args --quiet"
7159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7162 # would make configure fail if this is the last instruction.
7163 $ac_cs_success || { (exit 1); exit 1; }
7165 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7166 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7167 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}