2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="cpmfs.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_subst_vars='LTLIBOBJS
660 program_transform_name
673 enable_option_checking
680 ac_precious_vars='build_alias
691 # Initialize some variables set by options.
693 ac_init_version=false
694 ac_unrecognized_opts=
696 # The variables have the same names as the options, with
697 # dashes changed to underlines.
705 program_transform_name=s,x,x,
713 # Installation directory options.
714 # These are left unexpanded so users can "make install exec_prefix=/foo"
715 # and all the variables that are supposed to be based on exec_prefix
716 # by default will actually change.
717 # Use braces instead of parens because sh, perl, etc. also accept them.
718 # (The list follows the same order as the GNU Coding Standards.)
719 bindir='${exec_prefix}/bin'
720 sbindir='${exec_prefix}/sbin'
721 libexecdir='${exec_prefix}/libexec'
722 datarootdir='${prefix}/share'
723 datadir='${datarootdir}'
724 sysconfdir='${prefix}/etc'
725 sharedstatedir='${prefix}/com'
726 localstatedir='${prefix}/var'
727 includedir='${prefix}/include'
728 oldincludedir='/usr/include'
729 docdir='${datarootdir}/doc/${PACKAGE}'
730 infodir='${datarootdir}/info'
735 libdir='${exec_prefix}/lib'
736 localedir='${datarootdir}/locale'
737 mandir='${datarootdir}/man'
743 # If the previous option needs an argument, assign it.
744 if test -n "$ac_prev"; then
745 eval $ac_prev=\$ac_option
751 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756 # Accept the important Cygnus configure options, so we can diagnose typos.
758 case $ac_dashdash$ac_option in
762 -bindir | --bindir | --bindi | --bind | --bin | --bi)
764 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767 -build | --build | --buil | --bui | --bu)
768 ac_prev=build_alias ;;
769 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
770 build_alias=$ac_optarg ;;
772 -cache-file | --cache-file | --cache-fil | --cache-fi \
773 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
774 ac_prev=cache_file ;;
775 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
776 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
777 cache_file=$ac_optarg ;;
780 cache_file=config.cache ;;
782 -datadir | --datadir | --datadi | --datad)
784 -datadir=* | --datadir=* | --datadi=* | --datad=*)
785 datadir=$ac_optarg ;;
787 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
788 | --dataroo | --dataro | --datar)
789 ac_prev=datarootdir ;;
790 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
791 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
792 datarootdir=$ac_optarg ;;
794 -disable-* | --disable-*)
795 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
798 as_fn_error $? "invalid feature name: $ac_useropt"
799 ac_useropt_orig=$ac_useropt
800 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
801 case $ac_user_opts in
805 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
806 ac_unrecognized_sep=', ';;
808 eval enable_$ac_useropt=no ;;
810 -docdir | --docdir | --docdi | --doc | --do)
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820 -enable-* | --enable-*)
821 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824 as_fn_error $? "invalid feature name: $ac_useropt"
825 ac_useropt_orig=$ac_useropt
826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
832 ac_unrecognized_sep=', ';;
834 eval enable_$ac_useropt=\$ac_optarg ;;
836 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838 | --exec | --exe | --ex)
839 ac_prev=exec_prefix ;;
840 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842 | --exec=* | --exe=* | --ex=*)
843 exec_prefix=$ac_optarg ;;
845 -gas | --gas | --ga | --g)
846 # Obsolete; use --with-gas.
849 -help | --help | --hel | --he | -h)
851 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852 ac_init_help=recursive ;;
853 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854 ac_init_help=short ;;
856 -host | --host | --hos | --ho)
857 ac_prev=host_alias ;;
858 -host=* | --host=* | --hos=* | --ho=*)
859 host_alias=$ac_optarg ;;
861 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 htmldir=$ac_optarg ;;
867 -includedir | --includedir | --includedi | --included | --include \
868 | --includ | --inclu | --incl | --inc)
869 ac_prev=includedir ;;
870 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871 | --includ=* | --inclu=* | --incl=* | --inc=*)
872 includedir=$ac_optarg ;;
874 -infodir | --infodir | --infodi | --infod | --info | --inf)
876 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877 infodir=$ac_optarg ;;
879 -libdir | --libdir | --libdi | --libd)
881 -libdir=* | --libdir=* | --libdi=* | --libd=*)
884 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885 | --libexe | --libex | --libe)
886 ac_prev=libexecdir ;;
887 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888 | --libexe=* | --libex=* | --libe=*)
889 libexecdir=$ac_optarg ;;
891 -localedir | --localedir | --localedi | --localed | --locale)
893 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894 localedir=$ac_optarg ;;
896 -localstatedir | --localstatedir | --localstatedi | --localstated \
897 | --localstate | --localstat | --localsta | --localst | --locals)
898 ac_prev=localstatedir ;;
899 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901 localstatedir=$ac_optarg ;;
903 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909 # Obsolete; use --without-fp.
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c | -n)
916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922 | --oldin | --oldi | --old | --ol | --o)
923 ac_prev=oldincludedir ;;
924 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927 oldincludedir=$ac_optarg ;;
929 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934 -program-prefix | --program-prefix | --program-prefi | --program-pref \
935 | --program-pre | --program-pr | --program-p)
936 ac_prev=program_prefix ;;
937 -program-prefix=* | --program-prefix=* | --program-prefi=* \
938 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939 program_prefix=$ac_optarg ;;
941 -program-suffix | --program-suffix | --program-suffi | --program-suff \
942 | --program-suf | --program-su | --program-s)
943 ac_prev=program_suffix ;;
944 -program-suffix=* | --program-suffix=* | --program-suffi=* \
945 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946 program_suffix=$ac_optarg ;;
948 -program-transform-name | --program-transform-name \
949 | --program-transform-nam | --program-transform-na \
950 | --program-transform-n | --program-transform- \
951 | --program-transform | --program-transfor \
952 | --program-transfo | --program-transf \
953 | --program-trans | --program-tran \
954 | --progr-tra | --program-tr | --program-t)
955 ac_prev=program_transform_name ;;
956 -program-transform-name=* | --program-transform-name=* \
957 | --program-transform-nam=* | --program-transform-na=* \
958 | --program-transform-n=* | --program-transform-=* \
959 | --program-transform=* | --program-transfor=* \
960 | --program-transfo=* | --program-transf=* \
961 | --program-trans=* | --program-tran=* \
962 | --progr-tra=* | --program-tr=* | --program-t=*)
963 program_transform_name=$ac_optarg ;;
965 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 -psdir | --psdir | --psdi | --psd | --ps)
972 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976 | -silent | --silent | --silen | --sile | --sil)
979 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983 sbindir=$ac_optarg ;;
985 -sharedstatedir | --sharedstatedir | --sharedstatedi \
986 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987 | --sharedst | --shareds | --shared | --share | --shar \
989 ac_prev=sharedstatedir ;;
990 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994 sharedstatedir=$ac_optarg ;;
996 -site | --site | --sit)
998 -site=* | --site=* | --sit=*)
1001 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004 srcdir=$ac_optarg ;;
1006 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007 | --syscon | --sysco | --sysc | --sys | --sy)
1008 ac_prev=sysconfdir ;;
1009 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011 sysconfdir=$ac_optarg ;;
1013 -target | --target | --targe | --targ | --tar | --ta | --t)
1014 ac_prev=target_alias ;;
1015 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016 target_alias=$ac_optarg ;;
1018 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021 -version | --version | --versio | --versi | --vers | -V)
1022 ac_init_version=: ;;
1025 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid package name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1038 eval with_$ac_useropt=\$ac_optarg ;;
1040 -without-* | --without-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid package name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1054 eval with_$ac_useropt=no ;;
1057 # Obsolete; use --with-x.
1060 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061 | --x-incl | --x-inc | --x-in | --x-i)
1062 ac_prev=x_includes ;;
1063 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065 x_includes=$ac_optarg ;;
1067 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1068 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069 ac_prev=x_libraries ;;
1070 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072 x_libraries=$ac_optarg ;;
1074 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1075 Try \`$0 --help' for more information"
1079 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1080 # Reject names that are not valid shell variable names.
1081 case $ac_envvar in #(
1082 '' | [0-9]* | *[!_$as_cr_alnum]* )
1083 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1085 eval $ac_envvar=\$ac_optarg
1086 export $ac_envvar ;;
1089 # FIXME: should be removed in autoconf 3.0.
1090 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1099 if test -n "$ac_prev"; then
1100 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101 as_fn_error $? "missing argument to $ac_option"
1104 if test -n "$ac_unrecognized_opts"; then
1105 case $enable_option_checking in
1107 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1108 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1112 # Check all directory arguments for consistency.
1113 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114 datadir sysconfdir sharedstatedir localstatedir includedir \
1115 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116 libdir localedir mandir
1118 eval ac_val=\$$ac_var
1119 # Remove trailing slashes.
1122 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1123 eval $ac_var=\$ac_val;;
1125 # Be sure to have absolute directory names.
1127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1133 # There might be people who depend on the old broken behavior: `$host'
1134 # used to hold the argument of --host etc.
1135 # FIXME: To remove some day.
1138 target=$target_alias
1140 # FIXME: To remove some day.
1141 if test "x$host_alias" != x; then
1142 if test "x$build_alias" = x; then
1143 cross_compiling=maybe
1144 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1145 If a cross compiler is detected then cross compile mode will be used" >&2
1146 elif test "x$build_alias" != "x$host_alias"; then
1152 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1154 test "$silent" = yes && exec 6>/dev/null
1157 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158 ac_ls_di=`ls -di .` &&
1159 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160 as_fn_error $? "working directory cannot be determined"
1161 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1162 as_fn_error $? "pwd does not report name of working directory"
1165 # Find the source files, if location was not specified.
1166 if test -z "$srcdir"; then
1167 ac_srcdir_defaulted=yes
1168 # Try the directory containing this script, then the parent directory.
1169 ac_confdir=`$as_dirname -- "$as_myself" ||
1170 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171 X"$as_myself" : 'X\(//\)[^/]' \| \
1172 X"$as_myself" : 'X\(//\)$' \| \
1173 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1174 $as_echo X"$as_myself" |
1175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1197 ac_srcdir_defaulted=no
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1201 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1203 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 for ac_var in $ac_precious_vars; do
1218 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219 eval ac_env_${ac_var}_value=\$${ac_var}
1220 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225 # Report the --help message.
1227 if test "$ac_init_help" = "long"; then
1228 # Omit some internal or obsolete options to make the list less imposing.
1229 # This message is too long to be a string in the A/UX 3.1 sh.
1231 \`configure' configures this package to adapt to many kinds of systems.
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE. See below for descriptions of some of the useful variables.
1238 Defaults for the options are specified in brackets.
1241 -h, --help display this help and exit
1242 --help=short display options specific to this package
1243 --help=recursive display the short help of all the included packages
1244 -V, --version display version information and exit
1245 -q, --quiet, --silent do not print \`checking ...' messages
1246 --cache-file=FILE cache test results in FILE [disabled]
1247 -C, --config-cache alias for \`--cache-file=config.cache'
1248 -n, --no-create do not create output files
1249 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1251 Installation directories:
1252 --prefix=PREFIX install architecture-independent files in PREFIX
1253 [$ac_default_prefix]
1254 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1262 For better control, use the options below.
1264 Fine tuning of the installation directories:
1265 --bindir=DIR user executables [EPREFIX/bin]
1266 --sbindir=DIR system admin executables [EPREFIX/sbin]
1267 --libexecdir=DIR program executables [EPREFIX/libexec]
1268 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1269 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1270 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1271 --libdir=DIR object code libraries [EPREFIX/lib]
1272 --includedir=DIR C header files [PREFIX/include]
1273 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1274 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1275 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1276 --infodir=DIR info documentation [DATAROOTDIR/info]
1277 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1278 --mandir=DIR man documentation [DATAROOTDIR/man]
1279 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1280 --htmldir=DIR html documentation [DOCDIR]
1281 --dvidir=DIR dvi documentation [DOCDIR]
1282 --pdfdir=DIR pdf documentation [DOCDIR]
1283 --psdir=DIR ps documentation [DOCDIR]
1289 --build=BUILD configure for building on BUILD [guessed]
1290 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1294 if test -n "$ac_init_help"; then
1299 --disable-option-checking ignore unrecognized --enable/--with options
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --disable-largefile omit support for large files
1305 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1306 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1307 --with-diskdefs Specify diskdefs location
1308 --with-defformat Specify default format (ibm-3740)
1309 --with-libdsk Specify path to libdsk library
1310 --with-dmalloc Specify path to dmalloc library
1312 Some influential environment variables:
1313 CC C compiler command
1314 CFLAGS C compiler flags
1315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1316 nonstandard directory <lib dir>
1317 LIBS libraries to pass to the linker, e.g. -l<library>
1318 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1319 you have headers in a nonstandard directory <include dir>
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1325 Report bugs to the package provider.
1330 if test "$ac_init_help" = "recursive"; then
1331 # If there are subdirs, report their specific --help.
1332 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1333 test -d "$ac_dir" ||
1334 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1342 # A ".." for each directory in $ac_dir_suffix.
1343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1344 case $ac_top_builddir_sub in
1345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1349 ac_abs_top_builddir=$ac_pwd
1350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1351 # for backward compatibility:
1352 ac_top_builddir=$ac_top_build_prefix
1355 .) # We are building in place.
1357 ac_top_srcdir=$ac_top_builddir_sub
1358 ac_abs_top_srcdir=$ac_pwd ;;
1359 [\\/]* | ?:[\\/]* ) # Absolute name.
1360 ac_srcdir=$srcdir$ac_dir_suffix;
1361 ac_top_srcdir=$srcdir
1362 ac_abs_top_srcdir=$srcdir ;;
1364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1365 ac_top_srcdir=$ac_top_build_prefix$srcdir
1366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1370 cd "$ac_dir" || { ac_status=$?; continue; }
1371 # Check for guested configure.
1372 if test -f "$ac_srcdir/configure.gnu"; then
1374 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1375 elif test -f "$ac_srcdir/configure"; then
1377 $SHELL "$ac_srcdir/configure" --help=recursive
1379 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1381 cd "$ac_pwd" || { ac_status=$?; break; }
1385 test -n "$ac_init_help" && exit $ac_status
1386 if $ac_init_version; then
1389 generated by GNU Autoconf 2.68
1391 Copyright (C) 2010 Free Software Foundation, Inc.
1392 This configure script is free software; the Free Software Foundation
1393 gives unlimited permission to copy, distribute and modify it.
1398 ## ------------------------ ##
1399 ## Autoconf initialization. ##
1400 ## ------------------------ ##
1402 # ac_fn_c_try_compile LINENO
1403 # --------------------------
1404 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1405 ac_fn_c_try_compile ()
1407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1408 rm -f conftest.$ac_objext
1409 if { { ac_try="$ac_compile"
1411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1412 *) ac_try_echo=$ac_try;;
1414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1415 $as_echo "$ac_try_echo"; } >&5
1416 (eval "$ac_compile") 2>conftest.err
1418 if test -s conftest.err; then
1419 grep -v '^ *+' conftest.err >conftest.er1
1420 cat conftest.er1 >&5
1421 mv -f conftest.er1 conftest.err
1423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1424 test $ac_status = 0; } && {
1425 test -z "$ac_c_werror_flag" ||
1426 test ! -s conftest.err
1427 } && test -s conftest.$ac_objext; then :
1430 $as_echo "$as_me: failed program was:" >&5
1431 sed 's/^/| /' conftest.$ac_ext >&5
1435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1436 as_fn_set_status $ac_retval
1438 } # ac_fn_c_try_compile
1440 # ac_fn_c_try_cpp LINENO
1441 # ----------------------
1442 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1446 if { { ac_try="$ac_cpp conftest.$ac_ext"
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } > conftest.i && {
1462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1473 as_fn_set_status $ac_retval
1477 # ac_fn_c_try_link LINENO
1478 # -----------------------
1479 # Try to link conftest.$ac_ext, and return whether this succeeded.
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext conftest$ac_exeext
1484 if { { ac_try="$ac_link"
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_link") 2>conftest.err
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest$ac_exeext && {
1503 test "$cross_compiling" = yes ||
1504 $as_test_x conftest$ac_exeext
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1513 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1514 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1515 # interfere with the next link command; also delete a directory that is
1516 # left behind by Apple's compiler. We do this before executing the actions.
1517 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1521 } # ac_fn_c_try_link
1523 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1524 # -------------------------------------------------------
1525 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1526 # the include files in INCLUDES and setting the cache variable VAR
1528 ac_fn_c_check_header_mongrel ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 if eval \${$3+:} false; then :
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1533 $as_echo_n "checking for $2... " >&6; }
1534 if eval \${$3+:} false; then :
1535 $as_echo_n "(cached) " >&6
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1539 $as_echo "$ac_res" >&6; }
1541 # Is the header compilable?
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1543 $as_echo_n "checking $2 usability... " >&6; }
1544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1545 /* end confdefs.h. */
1549 if ac_fn_c_try_compile "$LINENO"; then :
1550 ac_header_compiler=yes
1552 ac_header_compiler=no
1554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1556 $as_echo "$ac_header_compiler" >&6; }
1558 # Is the header present?
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1560 $as_echo_n "checking $2 presence... " >&6; }
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h. */
1565 if ac_fn_c_try_cpp "$LINENO"; then :
1566 ac_header_preproc=yes
1568 ac_header_preproc=no
1570 rm -f conftest.err conftest.i conftest.$ac_ext
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1572 $as_echo "$ac_header_preproc" >&6; }
1574 # So? What about this header?
1575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1578 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1580 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1584 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1586 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1588 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1590 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1592 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if eval \${$3+:} false; then :
1598 $as_echo_n "(cached) " >&6
1600 eval "$3=\$ac_header_compiler"
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 } # ac_fn_c_check_header_mongrel
1610 # ac_fn_c_try_run LINENO
1611 # ----------------------
1612 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1613 # that executables *can* be run.
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_link"
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_link") 2>&5
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1628 { { case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_try") 2>&5
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; }; }; then :
1640 $as_echo "$as_me: program exited with status $ac_status" >&5
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1644 ac_retval=$ac_status
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1684 # -------------------------------------------
1685 # Tests whether TYPE exists after having included INCLUDES, setting cache
1686 # variable VAR accordingly.
1687 ac_fn_c_check_type ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1721 if ac_fn_c_try_compile "$LINENO"; then :
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732 $as_echo "$ac_res" >&6; }
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 } # ac_fn_c_check_type
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below.
1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757 <limits.h> exists even on freestanding compilers. */
1760 # include <limits.h>
1762 # include <assert.h>
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1789 if ac_fn_c_try_link "$LINENO"; then :
1794 rm -f core conftest.err conftest.$ac_objext \
1795 conftest$ac_exeext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 } # ac_fn_c_check_func
1803 cat >config.log <<_ACEOF
1804 This file contains any messages produced by compilers while
1805 running configure, to aid debugging if configure makes a mistake.
1807 It was created by $as_me, which was
1808 generated by GNU Autoconf 2.68. Invocation command line was
1820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1832 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 $as_echo "PATH: $as_dir"
1860 # Keep a trace of the command line.
1861 # Strip out --no-create and --no-recursion so they do not pile up.
1862 # Strip out --silent because we don't want to record it for future runs.
1863 # Also quote any args containing shell meta-characters.
1864 # Make two passes to allow for proper duplicate-argument suppression.
1868 ac_must_keep_next=false
1874 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1876 | -silent | --silent | --silen | --sile | --sil)
1879 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884 as_fn_append ac_configure_args1 " '$ac_arg'"
1885 if test $ac_must_keep_next = true; then
1886 ac_must_keep_next=false # Got value, back to normal.
1889 *=* | --config-cache | -C | -disable-* | --disable-* \
1890 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1891 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1892 | -with-* | --with-* | -without-* | --without-* | --x)
1893 case "$ac_configure_args0 " in
1894 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 -* ) ac_must_keep_next=true ;;
1900 as_fn_append ac_configure_args " '$ac_arg'"
1905 { ac_configure_args0=; unset ac_configure_args0;}
1906 { ac_configure_args1=; unset ac_configure_args1;}
1908 # When interrupted or exit'd, cleanup temporary files, and complete
1909 # config.log. We remove comments because anyway the quotes in there
1910 # would cause problems or look ugly.
1911 # WARNING: Use '\'' to represent an apostrophe within the trap.
1912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1913 trap 'exit_status=$?
1914 # Save into config.log some information that might help in debugging.
1918 $as_echo "## ---------------- ##
1919 ## Cache variables. ##
1920 ## ---------------- ##"
1922 # The following way of writing the cache mishandles newlines in values,
1924 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1925 eval ac_val=\$$ac_var
1929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 _ | IFS | as_nl) ;; #(
1934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1935 *) { eval $ac_var=; unset $ac_var;} ;;
1940 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1941 *${as_nl}ac_space=\ *)
1943 "s/'\''/'\''\\\\'\'''\''/g;
1944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954 $as_echo "## ----------------- ##
1955 ## Output variables. ##
1956 ## ----------------- ##"
1958 for ac_var in $ac_subst_vars
1960 eval ac_val=\$$ac_var
1962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 $as_echo "$ac_var='\''$ac_val'\''"
1968 if test -n "$ac_subst_files"; then
1969 $as_echo "## ------------------- ##
1970 ## File substitutions. ##
1971 ## ------------------- ##"
1973 for ac_var in $ac_subst_files
1975 eval ac_val=\$$ac_var
1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -s confdefs.h; then
1985 $as_echo "## ----------- ##
1992 test "$ac_signal" != 0 &&
1993 $as_echo "$as_me: caught signal $ac_signal"
1994 $as_echo "$as_me: exit $exit_status"
1996 rm -f core *.core core.conftest.* &&
1997 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000 for ac_signal in 1 2 13 15; do
2001 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2005 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2006 rm -f -r conftest* confdefs.h
2008 $as_echo "/* confdefs.h */" > confdefs.h
2010 # Predefined preprocessor variables.
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_NAME "$PACKAGE_NAME"
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_STRING "$PACKAGE_STRING"
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_URL "$PACKAGE_URL"
2037 # Let the site file select an alternate cache file if it wants to.
2038 # Prefer an explicitly selected file to automatically selected ones.
2041 if test -n "$CONFIG_SITE"; then
2042 # We do not want a PATH search for config.site.
2043 case $CONFIG_SITE in #((
2044 -*) ac_site_file1=./$CONFIG_SITE;;
2045 */*) ac_site_file1=$CONFIG_SITE;;
2046 *) ac_site_file1=./$CONFIG_SITE;;
2048 elif test "x$prefix" != xNONE; then
2049 ac_site_file1=$prefix/share/config.site
2050 ac_site_file2=$prefix/etc/config.site
2052 ac_site_file1=$ac_default_prefix/share/config.site
2053 ac_site_file2=$ac_default_prefix/etc/config.site
2055 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057 test "x$ac_site_file" = xNONE && continue
2058 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2060 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2061 sed 's/^/| /' "$ac_site_file" >&5
2063 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2065 as_fn_error $? "failed to load site script $ac_site_file
2066 See \`config.log' for more details" "$LINENO" 5; }
2070 if test -r "$cache_file"; then
2071 # Some versions of bash will fail to source /dev/null (special files
2072 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2073 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2075 $as_echo "$as_me: loading cache $cache_file" >&6;}
2077 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2078 *) . "./$cache_file";;
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2083 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 # Check that the precious variables saved in the cache have kept the same
2089 ac_cache_corrupted=false
2090 for ac_var in $ac_precious_vars; do
2091 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2092 eval ac_new_set=\$ac_env_${ac_var}_set
2093 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2094 eval ac_new_val=\$ac_env_${ac_var}_value
2095 case $ac_old_set,$ac_new_set in
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2098 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2099 ac_cache_corrupted=: ;;
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2106 if test "x$ac_old_val" != "x$ac_new_val"; then
2107 # differences in whitespace do not lead to failure.
2108 ac_old_val_w=`echo x $ac_old_val`
2109 ac_new_val_w=`echo x $ac_new_val`
2110 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2112 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2113 ac_cache_corrupted=:
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2116 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2117 eval $ac_var=\$ac_old_val
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2120 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2122 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2125 # Pass precious variables to config.status.
2126 if test "$ac_new_set" = set; then
2128 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 *) ac_arg=$ac_var=$ac_new_val ;;
2131 case " $ac_configure_args " in
2132 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2133 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 if $ac_cache_corrupted; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2141 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2142 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2144 ## -------------------- ##
2145 ## Main body of script. ##
2146 ## -------------------- ##
2149 ac_cpp='$CPP $CPPFLAGS'
2150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2155 ac_config_headers="$ac_config_headers config.h"
2158 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2159 if test -f "$ac_dir/install-sh"; then
2161 ac_install_sh="$ac_aux_dir/install-sh -c"
2163 elif test -f "$ac_dir/install.sh"; then
2165 ac_install_sh="$ac_aux_dir/install.sh -c"
2167 elif test -f "$ac_dir/shtool"; then
2169 ac_install_sh="$ac_aux_dir/shtool install -c"
2173 if test -z "$ac_aux_dir"; then
2174 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2177 # These three variables are undocumented and unsupported,
2178 # and are intended to be withdrawn in a future Autoconf release.
2179 # They can cause serious problems if a builder's source tree is in a directory
2180 # whose full name contains unusual characters.
2181 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2182 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2183 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2186 # Make sure we can run config.sub.
2187 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2188 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2191 $as_echo_n "checking build system type... " >&6; }
2192 if ${ac_cv_build+:} false; then :
2193 $as_echo_n "(cached) " >&6
2195 ac_build_alias=$build_alias
2196 test "x$ac_build_alias" = x &&
2197 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2198 test "x$ac_build_alias" = x &&
2199 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2200 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2201 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2205 $as_echo "$ac_cv_build" >&6; }
2206 case $ac_cv_build in
2208 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2211 ac_save_IFS=$IFS; IFS='-'
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2221 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2225 $as_echo_n "checking host system type... " >&6; }
2226 if ${ac_cv_host+:} false; then :
2227 $as_echo_n "(cached) " >&6
2229 if test "x$host_alias" = x; then
2230 ac_cv_host=$ac_cv_build
2232 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2233 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2238 $as_echo "$ac_cv_host" >&6; }
2241 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2244 ac_save_IFS=$IFS; IFS='-'
2250 # Remember, the first character of IFS is used to create $*,
2251 # except with old shells:
2254 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2258 UPDATED='November 16, 2013'
2262 if test "$prefix" = NONE
2268 CFLAGS_LIBDSK=-DNOTWINDLL
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if ${ac_cv_prog_CC+:} false; then :
2284 $as_echo_n "(cached) " >&6
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test -n "$CC"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2309 $as_echo "$CC" >&6; }
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2312 $as_echo "no" >&6; }
2317 if test -z "$ac_cv_prog_CC"; then
2319 # Extract the first word of "gcc", so it can be a program name with args.
2320 set dummy gcc; ac_word=$2
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2324 $as_echo_n "(cached) " >&6
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_CC="gcc"
2337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2349 $as_echo "$ac_ct_CC" >&6; }
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352 $as_echo "no" >&6; }
2355 if test "x$ac_ct_CC" = x; then
2358 case $cross_compiling:$ac_tool_warned in
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362 ac_tool_warned=yes ;;
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}cc; ac_word=$2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if ${ac_cv_prog_CC+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_CC="${ac_tool_prefix}cc"
2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2411 if test -z "$CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_CC+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2431 ac_prog_rejected=yes
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457 if test -n "$CC"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459 $as_echo "$CC" >&6; }
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2467 if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in cl.exe
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if ${ac_cv_prog_CC+:} false; then :
2476 $as_echo_n "(cached) " >&6
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 if test -n "$CC"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501 $as_echo "$CC" >&6; }
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2508 test -n "$CC" && break
2511 if test -z "$CC"; then
2513 for ac_prog in cl.exe
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2520 $as_echo_n "(cached) " >&6
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_CC="$ac_prog"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2545 $as_echo "$ac_ct_CC" >&6; }
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2552 test -n "$ac_ct_CC" && break
2555 if test "x$ac_ct_CC" = x; then
2558 case $cross_compiling:$ac_tool_warned in
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2571 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "no acceptable C compiler found in \$PATH
2574 See \`config.log' for more details" "$LINENO" 5; }
2576 # Provide some information about the compiler.
2577 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2580 for ac_option in --version -v -V -qversion; do
2581 { { ac_try="$ac_compiler $ac_option >&5"
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2590 if test -s conftest.err; then
2592 ... rest of stderr output deleted ...
2593 10q' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2596 rm -f conftest.er1 conftest.err
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; }
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2612 ac_clean_files_save=$ac_clean_files
2613 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2614 # Try to create an executable without -o first, disregard a.out.
2615 # It will help us diagnose broken compilers, and finding out an intuition
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2618 $as_echo_n "checking whether the C compiler works... " >&6; }
2619 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2621 # The possible output files:
2622 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2625 for ac_file in $ac_files
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2629 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2634 if { { ac_try="$ac_link_default"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_link_default") 2>&5
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; }; then :
2645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2646 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2647 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2648 # so that the user can short-circuit this test for compilers unknown to
2650 for ac_file in $ac_files ''
2652 test -f "$ac_file" || continue
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2657 # We found the default executable, but exeext='' is most
2661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2665 # We set ac_cv_exeext here because the later test for it is not
2666 # safe: cross compilers may not add the suffix if given an `-o'
2667 # argument, so we may need to know it at that point already.
2668 # Even if this section looks crufty: it has the advantage of
2675 test "$ac_cv_exeext" = no && ac_cv_exeext=
2680 if test -z "$ac_file"; then :
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 as_fn_error 77 "C compiler cannot create executables
2689 See \`config.log' for more details" "$LINENO" 5; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2692 $as_echo "yes" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2695 $as_echo_n "checking for C compiler default output file name... " >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2697 $as_echo "$ac_file" >&6; }
2698 ac_exeext=$ac_cv_exeext
2700 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2701 ac_clean_files=$ac_clean_files_save
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2703 $as_echo_n "checking for suffix of executables... " >&6; }
2704 if { { ac_try="$ac_link"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>&5
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; }; then :
2715 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2716 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2717 # work properly (i.e., refer to `conftest.exe'), while it won't with
2719 for ac_file in conftest.exe conftest conftest.*; do
2720 test -f "$ac_file" || continue
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2723 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2732 See \`config.log' for more details" "$LINENO" 5; }
2734 rm -f conftest conftest$ac_cv_exeext
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2736 $as_echo "$ac_cv_exeext" >&6; }
2738 rm -f conftest.$ac_ext
2739 EXEEXT=$ac_cv_exeext
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2747 FILE *f = fopen ("conftest.out", "w");
2748 return ferror (f) || fclose (f) != 0;
2754 ac_clean_files="$ac_clean_files conftest.out"
2755 # Check that the compiler produces executables we can run. If not, either
2756 # the compiler is broken, or we cross compile.
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2758 $as_echo_n "checking whether we are cross compiling... " >&6; }
2759 if test "$cross_compiling" != yes; then
2760 { { ac_try="$ac_link"
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2766 $as_echo "$ac_try_echo"; } >&5
2767 (eval "$ac_link") 2>&5
2769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770 test $ac_status = 0; }
2771 if { ac_try='./conftest$ac_cv_exeext'
2772 { { case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777 $as_echo "$ac_try_echo"; } >&5
2778 (eval "$ac_try") 2>&5
2780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781 test $ac_status = 0; }; }; then
2784 if test "$cross_compiling" = maybe; then
2787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 as_fn_error $? "cannot run C compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \`config.log' for more details" "$LINENO" 5; }
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2796 $as_echo "$cross_compiling" >&6; }
2798 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2799 ac_clean_files=$ac_clean_files_save
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2801 $as_echo_n "checking for suffix of object files... " >&6; }
2802 if ${ac_cv_objext+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h. */
2816 rm -f conftest.o conftest.obj
2817 if { { ac_try="$ac_compile"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823 $as_echo "$ac_try_echo"; } >&5
2824 (eval "$ac_compile") 2>&5
2826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827 test $ac_status = 0; }; then :
2828 for ac_file in conftest.o conftest.obj conftest.*; do
2829 test -f "$ac_file" || continue;
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2837 $as_echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2842 as_fn_error $? "cannot compute suffix of object files: cannot compile
2843 See \`config.log' for more details" "$LINENO" 5; }
2845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2848 $as_echo "$ac_cv_objext" >&6; }
2849 OBJEXT=$ac_cv_objext
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2852 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2853 if ${ac_cv_c_compiler_gnu+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2870 if ac_fn_c_try_compile "$LINENO"; then :
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2880 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2881 if test $ac_compiler_gnu = yes; then
2886 ac_test_CFLAGS=${CFLAGS+set}
2887 ac_save_CFLAGS=$CFLAGS
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2889 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2890 if ${ac_cv_prog_cc_g+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 ac_save_c_werror_flag=$ac_c_werror_flag
2894 ac_c_werror_flag=yes
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2908 if ac_fn_c_try_compile "$LINENO"; then :
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2923 if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_c_werror_flag=$ac_save_c_werror_flag
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2939 if ac_fn_c_try_compile "$LINENO"; then :
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_c_werror_flag=$ac_save_c_werror_flag
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2950 $as_echo "$ac_cv_prog_cc_g" >&6; }
2951 if test "$ac_test_CFLAGS" = set; then
2952 CFLAGS=$ac_save_CFLAGS
2953 elif test $ac_cv_prog_cc_g = yes; then
2954 if test "$GCC" = yes; then
2960 if test "$GCC" = yes; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2967 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2968 if ${ac_cv_prog_cc_c89+:} false; then :
2969 $as_echo_n "(cached) " >&6
2971 ac_cv_prog_cc_c89=no
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2977 #include <sys/types.h>
2978 #include <sys/stat.h>
2979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2980 struct buf { int x; };
2981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2982 static char *e (p, i)
2988 static char *f (char * (*g) (char **, int), char **p, ...)
2993 s = g (p, va_arg (v,int));
2998 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2999 function prototypes and stuff, but not '\xHH' hex character constants.
3000 These don't provoke an error unfortunately, instead are silently treated
3001 as 'x'. The following induces an error, until -std is added to get
3002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3003 array size at least. It's necessary to write '\x00'==0 to get something
3004 that's true only with -std. */
3005 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3007 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3008 inside strings and character constants. */
3010 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3012 int test (int i, double x);
3013 struct s1 {int (*f) (int a);};
3014 struct s2 {int (*f) (double a);};
3015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3021 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3029 CC="$ac_save_CC $ac_arg"
3030 if ac_fn_c_try_compile "$LINENO"; then :
3031 ac_cv_prog_cc_c89=$ac_arg
3033 rm -f core conftest.err conftest.$ac_objext
3034 test "x$ac_cv_prog_cc_c89" != "xno" && break
3036 rm -f conftest.$ac_ext
3041 case "x$ac_cv_prog_cc_c89" in
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3044 $as_echo "none needed" >&6; } ;;
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3047 $as_echo "unsupported" >&6; } ;;
3049 CC="$CC $ac_cv_prog_cc_c89"
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3051 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3053 if test "x$ac_cv_prog_cc_c89" != xno; then :
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3063 # Find a good install program. We prefer a C program (faster),
3064 # so one script is as good as another. But avoid the broken or
3065 # incompatible versions:
3066 # SysV /etc/install, /usr/sbin/install
3067 # SunOS /usr/etc/install
3068 # IRIX /sbin/install
3070 # AmigaOS /C/install, which installs bootblocks on floppy discs
3071 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3074 # OS/2's system install, which has a completely different semantic
3075 # ./install, which can be erroneously created by make from ./install.sh.
3076 # Reject install programs that cannot install multiple files.
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3078 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3079 if test -z "$INSTALL"; then
3080 if ${ac_cv_path_install+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 # Account for people who put trailing slashes in PATH elements.
3089 case $as_dir/ in #((
3090 ./ | .// | /[cC]/* | \
3091 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3092 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3095 # OSF1 and SCO ODT 3.0 have their own names for install.
3096 # Don't use installbsd from OSF since it installs stuff as root
3098 for ac_prog in ginstall scoinst install; do
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3101 if test $ac_prog = install &&
3102 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3103 # AIX install. It has an incompatible calling convention.
3105 elif test $ac_prog = install &&
3106 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3107 # program-specific install script used by HP pwplus--don't use.
3110 rm -rf conftest.one conftest.two conftest.dir
3111 echo one > conftest.one
3112 echo two > conftest.two
3114 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3115 test -s conftest.one && test -s conftest.two &&
3116 test -s conftest.dir/conftest.one &&
3117 test -s conftest.dir/conftest.two
3119 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3132 rm -rf conftest.one conftest.two conftest.dir
3135 if test "${ac_cv_path_install+set}" = set; then
3136 INSTALL=$ac_cv_path_install
3138 # As a last resort, use the slow shell script. Don't cache a
3139 # value for INSTALL within a source directory, because that will
3140 # break other packages using the cache if that directory is
3141 # removed, or if the value is a relative name.
3142 INSTALL=$ac_install_sh
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3146 $as_echo "$INSTALL" >&6; }
3148 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3149 # It thinks the first close brace ends the variable substitution.
3150 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3152 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3154 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3162 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3163 # On Suns, sometimes $CPP names a directory.
3164 if test -n "$CPP" && test -d "$CPP"; then
3167 if test -z "$CPP"; then
3168 if ${ac_cv_prog_CPP+:} false; then :
3169 $as_echo_n "(cached) " >&6
3171 # Double quotes because CPP needs to be expanded
3172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3175 for ac_c_preproc_warn_flag in '' yes
3177 # Use a header file that comes with gcc, so configuring glibc
3178 # with a fresh cross-compiler works.
3179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3180 # <limits.h> exists even on freestanding compilers.
3181 # On the NeXT, cc -E runs the code through the compiler's parser,
3182 # not just through cpp. "Syntax error" is here to catch this case.
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3186 # include <limits.h>
3188 # include <assert.h>
3192 if ac_fn_c_try_cpp "$LINENO"; then :
3195 # Broken: fails on valid input.
3198 rm -f conftest.err conftest.i conftest.$ac_ext
3200 # OK, works on sane cases. Now check whether nonexistent headers
3201 # can be detected and how.
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3204 #include <ac_nonexistent.h>
3206 if ac_fn_c_try_cpp "$LINENO"; then :
3207 # Broken: success on invalid input.
3210 # Passes both tests.
3214 rm -f conftest.err conftest.i conftest.$ac_ext
3217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3218 rm -f conftest.i conftest.err conftest.$ac_ext
3219 if $ac_preproc_ok; then :
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3232 $as_echo "$CPP" >&6; }
3234 for ac_c_preproc_warn_flag in '' yes
3236 # Use a header file that comes with gcc, so configuring glibc
3237 # with a fresh cross-compiler works.
3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3239 # <limits.h> exists even on freestanding compilers.
3240 # On the NeXT, cc -E runs the code through the compiler's parser,
3241 # not just through cpp. "Syntax error" is here to catch this case.
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3245 # include <limits.h>
3247 # include <assert.h>
3251 if ac_fn_c_try_cpp "$LINENO"; then :
3254 # Broken: fails on valid input.
3257 rm -f conftest.err conftest.i conftest.$ac_ext
3259 # OK, works on sane cases. Now check whether nonexistent headers
3260 # can be detected and how.
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263 #include <ac_nonexistent.h>
3265 if ac_fn_c_try_cpp "$LINENO"; then :
3266 # Broken: success on invalid input.
3269 # Passes both tests.
3273 rm -f conftest.err conftest.i conftest.$ac_ext
3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 rm -f conftest.i conftest.err conftest.$ac_ext
3278 if $ac_preproc_ok; then :
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3284 See \`config.log' for more details" "$LINENO" 5; }
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 if test "$GCC" = yes
3296 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"
3297 LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
3299 CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
3300 LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
3305 *cygwin* ) CYGWIN=yes;;
3311 *mingw32* ) MINGW32=yes;;
3317 DISKDEFS='${datarootdir}/diskdefs'
3319 if test "$CYGWIN" = "yes"
3322 # DISKDEFS='%USERPROFILE%/diskdefs'
3324 if test "$MINGW32" = "yes"
3327 # DISKDEFS='%USERPROFILE%\\diskdefs'
3331 # Check whether --with-diskdefs was given.
3332 if test "${with_diskdefs+set}" = set; then :
3333 withval=$with_diskdefs; DISKDEFS="$withval"
3335 DISKDEFS="$DISKDEFS"
3339 # Check whether --with-defformat was given.
3340 if test "${with_defformat+set}" = set; then :
3341 withval=$with_defformat; DEFFORMAT="$withval"
3343 DEFFORMAT="ibm-3740"
3347 # Check whether --with-libdsk was given.
3348 if test "${with_libdsk+set}" = set; then :
3349 withval=$with_libdsk; LIBDSK="$withval"
3355 # Check whether --with-dmalloc was given.
3356 if test "${with_dmalloc+set}" = set; then :
3357 withval=$with_dmalloc; CPPFLAGS="$CPPFLAGS -I$with_dmalloc/include"
3358 LDFLAGS="$LDFLAGS -L$with_dmalloc/lib"
3359 LIBS="$LIBS -ldmalloc"
3360 $as_echo "#define USE_DMALLOC 1" >>confdefs.h
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printw in -lcurses" >&5
3367 $as_echo_n "checking for printw in -lcurses... " >&6; }
3368 if ${ac_cv_lib_curses_printw+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 ac_check_lib_save_LIBS=$LIBS
3372 LIBS="-lcurses $LIBS"
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3376 /* Override any GCC internal prototype to avoid an error.
3377 Use char because int might match the return type of a GCC
3378 builtin and then its argument prototype would still apply. */
3391 if ac_fn_c_try_link "$LINENO"; then :
3392 ac_cv_lib_curses_printw=yes
3394 ac_cv_lib_curses_printw=no
3396 rm -f core conftest.err conftest.$ac_objext \
3397 conftest$ac_exeext conftest.$ac_ext
3398 LIBS=$ac_check_lib_save_LIBS
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_printw" >&5
3401 $as_echo "$ac_cv_lib_curses_printw" >&6; }
3402 if test "x$ac_cv_lib_curses_printw" = xyes; then :
3403 FSED_CPM=fsed.cpm LIBS="-lcurses $LIBS"
3408 if test x"$FSED_CPM" = x""; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printw in -lncurses" >&5
3410 $as_echo_n "checking for printw in -lncurses... " >&6; }
3411 if ${ac_cv_lib_ncurses_printw+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 ac_check_lib_save_LIBS=$LIBS
3415 LIBS="-lncurses $LIBS"
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3419 /* Override any GCC internal prototype to avoid an error.
3420 Use char because int might match the return type of a GCC
3421 builtin and then its argument prototype would still apply. */
3434 if ac_fn_c_try_link "$LINENO"; then :
3435 ac_cv_lib_ncurses_printw=yes
3437 ac_cv_lib_ncurses_printw=no
3439 rm -f core conftest.err conftest.$ac_objext \
3440 conftest$ac_exeext conftest.$ac_ext
3441 LIBS=$ac_check_lib_save_LIBS
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_printw" >&5
3444 $as_echo "$ac_cv_lib_ncurses_printw" >&6; }
3445 if test "x$ac_cv_lib_ncurses_printw" = xyes; then :
3446 FSED_CPM=fsed.cpm LIBS="-lncurses $LIBS"
3453 if test "$LIBDSK" != ""; then
3455 CPPFLAGS="$CPPFLAGS -I$LIBDSK/include"
3456 CFLAGS="$CFLAGS -I$LIBDSK/include $CFLAGS_LIBDSK"
3457 LDFLAGS="$LDFLAGS -L$LIBDSK/lib"
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsk_open in -ldsk" >&5
3459 $as_echo_n "checking for dsk_open in -ldsk... " >&6; }
3460 if ${ac_cv_lib_dsk_dsk_open+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 ac_check_lib_save_LIBS=$LIBS
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3468 /* Override any GCC internal prototype to avoid an error.
3469 Use char because int might match the return type of a GCC
3470 builtin and then its argument prototype would still apply. */
3483 if ac_fn_c_try_link "$LINENO"; then :
3484 ac_cv_lib_dsk_dsk_open=yes
3486 ac_cv_lib_dsk_dsk_open=no
3488 rm -f core conftest.err conftest.$ac_objext \
3489 conftest$ac_exeext conftest.$ac_ext
3490 LIBS=$ac_check_lib_save_LIBS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dsk_dsk_open" >&5
3493 $as_echo "$ac_cv_lib_dsk_dsk_open" >&6; }
3494 if test "x$ac_cv_lib_dsk_dsk_open" = xyes; then :
3495 cat >>confdefs.h <<_ACEOF
3496 #define HAVE_LIBDSK 1
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3505 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3506 if ${ac_cv_path_GREP+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -z "$GREP"; then
3510 ac_path_GREP_found=false
3511 # Loop through the user's path and test for each of PROGNAME-LIST
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516 test -z "$as_dir" && as_dir=.
3517 for ac_prog in grep ggrep; do
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3520 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3521 # Check for GNU ac_path_GREP and select it if it is found.
3522 # Check for GNU $ac_path_GREP
3523 case `"$ac_path_GREP" --version 2>&1` in
3525 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3528 $as_echo_n 0123456789 >"conftest.in"
3531 cat "conftest.in" "conftest.in" >"conftest.tmp"
3532 mv "conftest.tmp" "conftest.in"
3533 cp "conftest.in" "conftest.nl"
3534 $as_echo 'GREP' >> "conftest.nl"
3535 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3537 as_fn_arith $ac_count + 1 && ac_count=$as_val
3538 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3539 # Best one so far, save it but keep looking for a better one
3540 ac_cv_path_GREP="$ac_path_GREP"
3541 ac_path_GREP_max=$ac_count
3543 # 10*(2^10) chars as input seems more than enough
3544 test $ac_count -gt 10 && break
3546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549 $ac_path_GREP_found && break 3
3554 if test -z "$ac_cv_path_GREP"; then
3555 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3558 ac_cv_path_GREP=$GREP
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3563 $as_echo "$ac_cv_path_GREP" >&6; }
3564 GREP="$ac_cv_path_GREP"
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3568 $as_echo_n "checking for egrep... " >&6; }
3569 if ${ac_cv_path_EGREP+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3573 then ac_cv_path_EGREP="$GREP -E"
3575 if test -z "$EGREP"; then
3576 ac_path_EGREP_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 egrep; do
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3586 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3587 # Check for GNU ac_path_EGREP and select it if it is found.
3588 # Check for GNU $ac_path_EGREP
3589 case `"$ac_path_EGREP" --version 2>&1` in
3591 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
3601 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3603 as_fn_arith $ac_count + 1 && ac_count=$as_val
3604 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3605 # Best one so far, save it but keep looking for a better one
3606 ac_cv_path_EGREP="$ac_path_EGREP"
3607 ac_path_EGREP_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_EGREP_found && break 3
3620 if test -z "$ac_cv_path_EGREP"; then
3621 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3624 ac_cv_path_EGREP=$EGREP
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3630 $as_echo "$ac_cv_path_EGREP" >&6; }
3631 EGREP="$ac_cv_path_EGREP"
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3635 $as_echo_n "checking for ANSI C header files... " >&6; }
3636 if ${ac_cv_header_stdc+:} false; then :
3637 $as_echo_n "(cached) " >&6
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_header_stdc=yes
3657 ac_cv_header_stdc=no
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 if test $ac_cv_header_stdc = yes; then
3662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669 $EGREP "memchr" >/dev/null 2>&1; then :
3672 ac_cv_header_stdc=no
3678 if test $ac_cv_header_stdc = yes; then
3679 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686 $EGREP "free" >/dev/null 2>&1; then :
3689 ac_cv_header_stdc=no
3695 if test $ac_cv_header_stdc = yes; then
3696 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3697 if test "$cross_compiling" = yes; then :
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3704 #if ((' ' & 0x0FF) == 0x020)
3705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3708 # define ISLOWER(c) \
3709 (('a' <= (c) && (c) <= 'i') \
3710 || ('j' <= (c) && (c) <= 'r') \
3711 || ('s' <= (c) && (c) <= 'z'))
3712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3720 for (i = 0; i < 256; i++)
3721 if (XOR (islower (i), ISLOWER (i))
3722 || toupper (i) != TOUPPER (i))
3727 if ac_fn_c_try_run "$LINENO"; then :
3730 ac_cv_header_stdc=no
3732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3733 conftest.$ac_objext conftest.beam conftest.$ac_ext
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3739 $as_echo "$ac_cv_header_stdc" >&6; }
3740 if test $ac_cv_header_stdc = yes; then
3742 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3746 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3747 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3748 inttypes.h stdint.h unistd.h
3750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3751 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3754 cat >>confdefs.h <<_ACEOF
3755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3763 for ac_header in libdsk.h
3765 ac_fn_c_check_header_mongrel "$LINENO" "libdsk.h" "ac_cv_header_libdsk_h" "$ac_includes_default"
3766 if test "x$ac_cv_header_libdsk_h" = xyes; then :
3767 cat >>confdefs.h <<_ACEOF
3768 #define HAVE_LIBDSK_H 1
3772 echo "No libdsk.h - aborting"; exit 1
3779 if test x"$DEVICE" = x"win32"; then
3780 for ac_header in windows.h
3782 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
3783 if test "x$ac_cv_header_windows_h" = xyes; then :
3784 cat >>confdefs.h <<_ACEOF
3785 #define HAVE_WINDOWS_H 1
3789 echo "Device win32, but <windows.h> not found - aborting"; exit 1
3794 for ac_header in winioctl.h
3796 ac_fn_c_check_header_compile "$LINENO" "winioctl.h" "ac_cv_header_winioctl_h" "#ifdef HAVE_WINDOWS_H
3797 #include <windows.h>
3801 if test "x$ac_cv_header_winioctl_h" = xyes; then :
3802 cat >>confdefs.h <<_ACEOF
3803 #define HAVE_WINIOCTL_H 1
3807 echo "Device win32, but <winioctl.h> not found - aborting"; exit 1
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3815 $as_echo_n "checking for ANSI C header files... " >&6; }
3816 if ${ac_cv_header_stdc+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3834 if ac_fn_c_try_compile "$LINENO"; then :
3835 ac_cv_header_stdc=yes
3837 ac_cv_header_stdc=no
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 if test $ac_cv_header_stdc = yes; then
3842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 $EGREP "memchr" >/dev/null 2>&1; then :
3852 ac_cv_header_stdc=no
3858 if test $ac_cv_header_stdc = yes; then
3859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3866 $EGREP "free" >/dev/null 2>&1; then :
3869 ac_cv_header_stdc=no
3875 if test $ac_cv_header_stdc = yes; then
3876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3877 if test "$cross_compiling" = yes; then :
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 #if ((' ' & 0x0FF) == 0x020)
3885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3888 # define ISLOWER(c) \
3889 (('a' <= (c) && (c) <= 'i') \
3890 || ('j' <= (c) && (c) <= 'r') \
3891 || ('s' <= (c) && (c) <= 'z'))
3892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3900 for (i = 0; i < 256; i++)
3901 if (XOR (islower (i), ISLOWER (i))
3902 || toupper (i) != TOUPPER (i))
3907 if ac_fn_c_try_run "$LINENO"; then :
3910 ac_cv_header_stdc=no
3912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3913 conftest.$ac_objext conftest.beam conftest.$ac_ext
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3919 $as_echo "$ac_cv_header_stdc" >&6; }
3920 if test $ac_cv_header_stdc = yes; then
3922 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3926 for ac_header in fcntl.h sys/types.h sys/stat.h limits.h unistd.h
3928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3931 cat >>confdefs.h <<_ACEOF
3932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3941 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3942 if ${ac_cv_c_const+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3951 /* FIXME: Include the comments suggested by Paul. */
3953 /* Ultrix mips cc rejects this. */
3954 typedef int charset[2];
3956 /* SunOS 4.1.1 cc rejects this. */
3957 char const *const *pcpcc;
3959 /* NEC SVR4.0.2 mips cc rejects this. */
3960 struct point {int x, y;};
3961 static struct point const zero = {0,0};
3962 /* AIX XL C 1.02.0.0 rejects this.
3963 It does not let you subtract one const X* pointer from another in
3964 an arm of an if-expression whose if-part is not a constant
3966 const char *g = "string";
3967 pcpcc = &g + (g ? g-g : 0);
3968 /* HPUX 7.0 cc rejects these. */
3970 ppc = (char**) pcpcc;
3971 pcpcc = (char const *const *) ppc;
3972 { /* SCO 3.2v4 cc rejects this. */
3974 char const *s = 0 ? (char *) 0 : (char const *) 0;
3979 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3981 const int *foo = &x[0];
3984 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3985 typedef const int *iptr;
3989 { /* AIX XL C 1.02.0.0 rejects this saying
3990 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3991 struct s { int j; const int *ap[3]; };
3992 struct s *b; b->j = 5;
3994 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3998 return !cs[0] && !zero.x;
4005 if ac_fn_c_try_compile "$LINENO"; then :
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4013 $as_echo "$ac_cv_c_const" >&6; }
4014 if test $ac_cv_c_const = no; then
4016 $as_echo "#define const /**/" >>confdefs.h
4020 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
4021 if test "x$ac_cv_type_mode_t" = xyes; then :
4025 cat >>confdefs.h <<_ACEOF
4031 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4032 if test "x$ac_cv_type_off_t" = xyes; then :
4036 cat >>confdefs.h <<_ACEOF
4037 #define off_t long int
4042 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4043 if test "x$ac_cv_type_pid_t" = xyes; then :
4047 cat >>confdefs.h <<_ACEOF
4053 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4054 if test "x$ac_cv_type_size_t" = xyes; then :
4058 cat >>confdefs.h <<_ACEOF
4059 #define size_t unsigned int
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4065 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4066 if ${ac_cv_struct_tm+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <sys/types.h>
4078 int *p = &tm.tm_sec;
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_struct_tm=time.h
4087 ac_cv_struct_tm=sys/time.h
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4092 $as_echo "$ac_cv_struct_tm" >&6; }
4093 if test $ac_cv_struct_tm = sys/time.h; then
4095 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4101 # Check whether --enable-largefile was given.
4102 if test "${enable_largefile+set}" = set; then :
4103 enableval=$enable_largefile;
4106 if test "$enable_largefile" != no; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4109 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4110 if ${ac_cv_sys_largefile_CC+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 ac_cv_sys_largefile_CC=no
4114 if test "$GCC" != yes; then
4117 # IRIX 6.2 and later do not support large files by default,
4118 # so use the C compiler's -n32 option if that helps.
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <sys/types.h>
4122 /* Check that off_t can represent 2**63 - 1 correctly.
4123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4124 since some C++ compilers masquerading as C compilers
4125 incorrectly reject 9223372036854775807. */
4126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4128 && LARGE_OFF_T % 2147483647 == 1)
4138 if ac_fn_c_try_compile "$LINENO"; then :
4141 rm -f core conftest.err conftest.$ac_objext
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_sys_largefile_CC=' -n32'; break
4146 rm -f core conftest.err conftest.$ac_objext
4150 rm -f conftest.$ac_ext
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4154 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4155 if test "$ac_cv_sys_largefile_CC" != no; then
4156 CC=$CC$ac_cv_sys_largefile_CC
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4160 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4161 if ${ac_cv_sys_file_offset_bits+:} false; then :
4162 $as_echo_n "(cached) " >&6
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <sys/types.h>
4168 /* Check that off_t can represent 2**63 - 1 correctly.
4169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4170 since some C++ compilers masquerading as C compilers
4171 incorrectly reject 9223372036854775807. */
4172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4174 && LARGE_OFF_T % 2147483647 == 1)
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_sys_file_offset_bits=no; break
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 #define _FILE_OFFSET_BITS 64
4191 #include <sys/types.h>
4192 /* Check that off_t can represent 2**63 - 1 correctly.
4193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4194 since some C++ compilers masquerading as C compilers
4195 incorrectly reject 9223372036854775807. */
4196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4198 && LARGE_OFF_T % 2147483647 == 1)
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_sys_file_offset_bits=64; break
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_cv_sys_file_offset_bits=unknown
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4217 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4218 case $ac_cv_sys_file_offset_bits in #(
4221 cat >>confdefs.h <<_ACEOF
4222 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4227 if test $ac_cv_sys_file_offset_bits = unknown; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4229 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4230 if ${ac_cv_sys_large_files+:} false; then :
4231 $as_echo_n "(cached) " >&6
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <sys/types.h>
4237 /* Check that off_t can represent 2**63 - 1 correctly.
4238 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4239 since some C++ compilers masquerading as C compilers
4240 incorrectly reject 9223372036854775807. */
4241 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4242 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4243 && LARGE_OFF_T % 2147483647 == 1)
4253 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_sys_large_files=no; break
4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #define _LARGE_FILES 1
4260 #include <sys/types.h>
4261 /* Check that off_t can represent 2**63 - 1 correctly.
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263 since some C++ compilers masquerading as C compilers
4264 incorrectly reject 9223372036854775807. */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267 && LARGE_OFF_T % 2147483647 == 1)
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_cv_sys_large_files=1; break
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_cv_sys_large_files=unknown
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4286 $as_echo "$ac_cv_sys_large_files" >&6; }
4287 case $ac_cv_sys_large_files in #(
4290 cat >>confdefs.h <<_ACEOF
4291 #define _LARGE_FILES $ac_cv_sys_large_files
4300 if test x"$FSED_CPM" != x""; then
4301 FSED_CPM="$FSED_CPM$EXEEXT"
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4305 $as_echo_n "checking for working memcmp... " >&6; }
4306 if ${ac_cv_func_memcmp_working+:} false; then :
4307 $as_echo_n "(cached) " >&6
4309 if test "$cross_compiling" = yes; then :
4310 ac_cv_func_memcmp_working=no
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 $ac_includes_default
4319 /* Some versions of memcmp are not 8-bit clean. */
4320 char c0 = '\100', c1 = '\200', c2 = '\201';
4321 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4324 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4325 or more and with at least one buffer not starting on a 4-byte boundary.
4326 William Lewis provided this test program. */
4331 for (i = 0; i < 4; i++)
4335 strcpy (a, "--------01111111");
4336 strcpy (b, "--------10000000");
4337 if (memcmp (a, b, 16) >= 0)
4347 if ac_fn_c_try_run "$LINENO"; then :
4348 ac_cv_func_memcmp_working=yes
4350 ac_cv_func_memcmp_working=no
4352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4353 conftest.$ac_objext conftest.beam conftest.$ac_ext
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4358 $as_echo "$ac_cv_func_memcmp_working" >&6; }
4359 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4360 *" memcmp.$ac_objext "* ) ;;
4361 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4366 for ac_func in strftime
4368 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
4369 if test "x$ac_cv_func_strftime" = xyes; then :
4370 cat >>confdefs.h <<_ACEOF
4371 #define HAVE_STRFTIME 1
4375 # strftime is in -lintl on SCO UNIX.
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
4377 $as_echo_n "checking for strftime in -lintl... " >&6; }
4378 if ${ac_cv_lib_intl_strftime+:} false; then :
4379 $as_echo_n "(cached) " >&6
4381 ac_check_lib_save_LIBS=$LIBS
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4386 /* Override any GCC internal prototype to avoid an error.
4387 Use char because int might match the return type of a GCC
4388 builtin and then its argument prototype would still apply. */
4401 if ac_fn_c_try_link "$LINENO"; then :
4402 ac_cv_lib_intl_strftime=yes
4404 ac_cv_lib_intl_strftime=no
4406 rm -f core conftest.err conftest.$ac_objext \
4407 conftest$ac_exeext conftest.$ac_ext
4408 LIBS=$ac_check_lib_save_LIBS
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
4411 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
4412 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
4413 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
4421 for ac_func in mktime strerror
4423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4424 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4425 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4426 cat >>confdefs.h <<_ACEOF
4427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4437 eval DATADIR=$datadir
4443 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"
4445 cat >confcache <<\_ACEOF
4446 # This file is a shell script that caches the results of configure
4447 # tests run on this system so they can be shared between configure
4448 # scripts and configure runs, see configure's option --config-cache.
4449 # It is not useful on other systems. If it contains results you don't
4450 # want to keep, you may remove or edit it.
4452 # config.status only pays attention to the cache file if you give it
4453 # the --recheck option to rerun configure.
4455 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4456 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4461 # The following way of writing the cache mishandles newlines in values,
4462 # but we know of no workaround that is simple, portable, and efficient.
4463 # So, we kill variables containing newlines.
4464 # Ultrix sh set writes to stderr and can't be redirected directly,
4465 # and sets the high bit in the cache file unless we assign to the vars.
4467 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4468 eval ac_val=\$$ac_var
4472 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4473 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4476 _ | IFS | as_nl) ;; #(
4477 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4478 *) { eval $ac_var=; unset $ac_var;} ;;
4484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4485 *${as_nl}ac_space=\ *)
4486 # `set' does not quote correctly, so add quotes: double-quote
4487 # substitution turns \\\\ into \\, and sed turns \\ into \.
4490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4493 # `set' quotes correctly as required by POSIX, so do not add quotes.
4494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4507 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4508 if test -w "$cache_file"; then
4509 if test "x$cache_file" != "x/dev/null"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4511 $as_echo "$as_me: updating cache $cache_file" >&6;}
4512 if test ! -f "$cache_file" || test -h "$cache_file"; then
4513 cat confcache >"$cache_file"
4515 case $cache_file in #(
4517 mv -f confcache "$cache_file"$$ &&
4518 mv -f "$cache_file"$$ "$cache_file" ;; #(
4520 mv -f confcache "$cache_file" ;;
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4526 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4532 # Let make expand exec_prefix.
4533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4535 DEFS=-DHAVE_CONFIG_H
4540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4541 # 1. Remove the extension, and $U if already installed.
4542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4545 # will be set to the directory where LIBOBJS objects are built.
4546 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4547 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4551 LTLIBOBJS=$ac_ltlibobjs
4555 : "${CONFIG_STATUS=./config.status}"
4557 ac_clean_files_save=$ac_clean_files
4558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4564 # Generated by $as_me.
4565 # Run this file to recreate the current configuration.
4566 # Compiler output produced by configure, useful for debugging
4567 # configure, is in config.log if it exists.
4573 SHELL=\${CONFIG_SHELL-$SHELL}
4576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4577 ## -------------------- ##
4578 ## M4sh Initialization. ##
4579 ## -------------------- ##
4581 # Be more Bourne compatible
4582 DUALCASE=1; export DUALCASE # for MKS sh
4583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4587 # is contrary to our usage. Disable this feature.
4588 alias -g '${1+"$@"}'='"$@"'
4589 setopt NO_GLOB_SUBST
4591 case `(set -o) 2>/dev/null` in #(
4603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4607 # Prefer a ksh shell builtin over an external printf program on Solaris,
4608 # but without wasting forks for bash or zsh.
4609 if test -z "$BASH_VERSION$ZSH_VERSION" \
4610 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4611 as_echo='print -r --'
4612 as_echo_n='print -rn --'
4613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4614 as_echo='printf %s\n'
4615 as_echo_n='printf %s'
4617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4619 as_echo_n='/usr/ucb/echo -n'
4621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4622 as_echo_n_body='eval
4626 expr "X$arg" : "X\\(.*\\)$as_nl";
4627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4631 export as_echo_n_body
4632 as_echo_n='sh -c $as_echo_n_body as_echo'
4635 as_echo='sh -c $as_echo_body as_echo'
4638 # The user is always right.
4639 if test "${PATH_SEPARATOR+set}" != set; then
4641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4649 # We need space, tab and new line, in precisely that order. Quoting is
4650 # there to prevent editors from complaining about space-tab.
4651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4652 # splitting by setting IFS to empty value.)
4655 # Find who we are. Look in the path if we contain no directory separator.
4658 *[\\/]* ) as_myself=$0 ;;
4659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 test -z "$as_dir" && as_dir=.
4664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4670 # We did not find ourselves, most probably we were run as `sh COMMAND'
4671 # in which case we are not to be found in the path.
4672 if test "x$as_myself" = x; then
4675 if test ! -f "$as_myself"; then
4676 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4680 # Unset variables that we do not need and which cause bugs (e.g. in
4681 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4682 # suppresses any "Segmentation fault" message there. '((' could
4683 # trigger a bug in pdksh 5.2.14.
4684 for as_var in BASH_ENV ENV MAIL MAILPATH
4685 do eval test x\${$as_var+set} = xset \
4686 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4702 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4703 # ----------------------------------------
4704 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4705 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4706 # script with STATUS, using 1 if that was 0.
4709 as_status=$1; test $as_status -eq 0 && as_status=1
4711 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4712 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4714 $as_echo "$as_me: error: $2" >&2
4715 as_fn_exit $as_status
4719 # as_fn_set_status STATUS
4720 # -----------------------
4721 # Set $? to STATUS, without forking.
4725 } # as_fn_set_status
4729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4739 # Portably unset VAR.
4742 { eval $1=; unset $1;}
4744 as_unset=as_fn_unset
4745 # as_fn_append VAR VALUE
4746 # ----------------------
4747 # Append the text in VALUE to the end of the definition contained in VAR. Take
4748 # advantage of any shell optimizations that allow amortized linear growth over
4749 # repeated appends, instead of the typical quadratic growth present in naive
4751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4752 eval 'as_fn_append ()
4763 # as_fn_arith ARG...
4764 # ------------------
4765 # Perform arithmetic evaluation on the ARGs, and store the result in the
4766 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4767 # must be portable across $(()) and expr.
4768 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4769 eval 'as_fn_arith ()
4776 as_val=`expr "$@" || test $? -eq 1`
4781 if expr a : '\(a\)' >/dev/null 2>&1 &&
4782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4789 as_basename=basename
4794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4800 as_me=`$as_basename -- "$0" ||
4801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4802 X"$0" : 'X\(//\)$' \| \
4803 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4805 sed '/^.*\/\([^/][^/]*\)\/*$/{
4819 # Avoid depending upon Character Ranges.
4820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4823 as_cr_digits='0123456789'
4824 as_cr_alnum=$as_cr_Letters$as_cr_digits
4826 ECHO_C= ECHO_N= ECHO_T=
4827 case `echo -n x` in #(((((
4829 case `echo 'xy\c'` in
4830 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4832 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4839 rm -f conf$$ conf$$.exe conf$$.file
4840 if test -d conf$$.dir; then
4841 rm -f conf$$.dir/conf$$.file
4844 mkdir conf$$.dir 2>/dev/null
4846 if (echo >conf$$.file) 2>/dev/null; then
4847 if ln -s conf$$.file conf$$ 2>/dev/null; then
4849 # ... but there are two gotchas:
4850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4852 # In both cases, we have to default to `cp -p'.
4853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4855 elif ln conf$$.file conf$$ 2>/dev/null; then
4863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4864 rmdir conf$$.dir 2>/dev/null
4869 # Create "$as_dir" as a directory, including parents if necessary.
4874 -*) as_dir=./$as_dir;;
4876 test -d "$as_dir" || eval $as_mkdir_p || {
4880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4881 *) as_qdir=$as_dir;;
4883 as_dirs="'$as_qdir' $as_dirs"
4884 as_dir=`$as_dirname -- "$as_dir" ||
4885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4886 X"$as_dir" : 'X\(//\)[^/]' \| \
4887 X"$as_dir" : 'X\(//\)$' \| \
4888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4889 $as_echo X"$as_dir" |
4890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4907 test -d "$as_dir" && break
4909 test -z "$as_dirs" || eval "mkdir $as_dirs"
4910 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4914 if mkdir -p . 2>/dev/null; then
4915 as_mkdir_p='mkdir -p "$as_dir"'
4917 test -d ./-p && rmdir ./-p
4921 if test -x / >/dev/null 2>&1; then
4924 if ls -dL / >/dev/null 2>&1; then
4931 if test -d "$1"; then
4937 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4938 ???[sx]*):;;*)false;;esac;fi
4942 as_executable_p=$as_test_x
4944 # Sed expression to map a string onto a valid CPP name.
4945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4947 # Sed expression to map a string onto a valid variable name.
4948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4952 ## ----------------------------------- ##
4953 ## Main body of $CONFIG_STATUS script. ##
4954 ## ----------------------------------- ##
4956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4959 # Save the log message, to keep $0 and so on meaningful, and to
4960 # report actual input values of CONFIG_FILES etc. instead of their
4961 # values after options handling.
4963 This file was extended by $as_me, which was
4964 generated by GNU Autoconf 2.68. Invocation command line was
4966 CONFIG_FILES = $CONFIG_FILES
4967 CONFIG_HEADERS = $CONFIG_HEADERS
4968 CONFIG_LINKS = $CONFIG_LINKS
4969 CONFIG_COMMANDS = $CONFIG_COMMANDS
4972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4977 case $ac_config_files in *"
4978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4981 case $ac_config_headers in *"
4982 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4987 # Files that config.status was made for.
4988 config_files="$ac_config_files"
4989 config_headers="$ac_config_headers"
4993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4995 \`$as_me' instantiates files and other configuration actions
4996 from templates according to the current configuration. Unless the files
4997 and actions are specified as TAGs, all are instantiated by default.
4999 Usage: $0 [OPTION]... [TAG]...
5001 -h, --help print this help, then exit
5002 -V, --version print version number and configuration settings, then exit
5003 --config print configuration, then exit
5004 -q, --quiet, --silent
5005 do not print progress messages
5006 -d, --debug don't remove temporary files
5007 --recheck update $as_me by reconfiguring in the same conditions
5008 --file=FILE[:TEMPLATE]
5009 instantiate the configuration file FILE
5010 --header=FILE[:TEMPLATE]
5011 instantiate the configuration header FILE
5013 Configuration files:
5016 Configuration headers:
5019 Report bugs to the package provider."
5022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5023 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5026 configured by $0, generated by GNU Autoconf 2.68,
5027 with options \\"\$ac_cs_config\\"
5029 Copyright (C) 2010 Free Software Foundation, Inc.
5030 This config.status script is free software; the Free Software Foundation
5031 gives unlimited permission to copy, distribute and modify it."
5036 test -n "\$AWK" || AWK=awk
5039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5040 # The default lists apply if the user does not specify any file.
5046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5051 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5063 # Handling of the options.
5064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5066 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5067 $as_echo "$ac_cs_version"; exit ;;
5068 --config | --confi | --conf | --con | --co | --c )
5069 $as_echo "$ac_cs_config"; exit ;;
5070 --debug | --debu | --deb | --de | --d | -d )
5072 --file | --fil | --fi | --f )
5075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5076 '') as_fn_error $? "missing file argument" ;;
5078 as_fn_append CONFIG_FILES " '$ac_optarg'"
5079 ac_need_defaults=false;;
5080 --header | --heade | --head | --hea )
5083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5085 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5086 ac_need_defaults=false;;
5088 # Conflict between --help and --header
5089 as_fn_error $? "ambiguous option: \`$1'
5090 Try \`$0 --help' for more information.";;
5091 --help | --hel | -h )
5092 $as_echo "$ac_cs_usage"; exit ;;
5093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5098 -*) as_fn_error $? "unrecognized option: \`$1'
5099 Try \`$0 --help' for more information." ;;
5101 *) as_fn_append ac_config_targets " $1"
5102 ac_need_defaults=false ;;
5108 ac_configure_extra_args=
5110 if $ac_cs_silent; then
5112 ac_configure_extra_args="$ac_configure_extra_args --silent"
5116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5117 if \$ac_cs_recheck; then
5118 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5121 CONFIG_SHELL='$SHELL'
5127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5132 ## Running $as_me. ##
5138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5143 # Handling of arguments.
5144 for ac_config_target in $ac_config_targets
5146 case $ac_config_target in
5147 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5149 "cpm.5") CONFIG_FILES="$CONFIG_FILES cpm.5" ;;
5150 "cpmchattr.1") CONFIG_FILES="$CONFIG_FILES cpmchattr.1" ;;
5151 "cpmchmod.1") CONFIG_FILES="$CONFIG_FILES cpmchmod.1" ;;
5152 "cpmcp.1") CONFIG_FILES="$CONFIG_FILES cpmcp.1" ;;
5153 "cpmls.1") CONFIG_FILES="$CONFIG_FILES cpmls.1" ;;
5154 "cpmrm.1") CONFIG_FILES="$CONFIG_FILES cpmrm.1" ;;
5155 "fsck.cpm.1") CONFIG_FILES="$CONFIG_FILES fsck.cpm.1" ;;
5156 "fsed.cpm.1") CONFIG_FILES="$CONFIG_FILES fsed.cpm.1" ;;
5157 "mkfs.cpm.1") CONFIG_FILES="$CONFIG_FILES mkfs.cpm.1" ;;
5159 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5164 # If the user did not use the arguments to specify the items to instantiate,
5165 # then the envvar interface is used. Set only those that are not.
5166 # We use the long form for the default assignment because of an extremely
5167 # bizarre bug on SunOS 4.1.3.
5168 if $ac_need_defaults; then
5169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5173 # Have a temporary directory for convenience. Make it in the build tree
5174 # simply because there is no reason against having it here, and in addition,
5175 # creating and moving files from /tmp can sometimes cause problems.
5176 # Hook for its removal unless debugging.
5177 # Note that there is a small window in which the directory will not be cleaned:
5178 # after its creation but before its name has been assigned to `$tmp'.
5182 trap 'exit_status=$?
5184 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5186 trap 'as_fn_exit 1' 1 2 13 15
5188 # Create a (secure) tmp directory for tmp files.
5191 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5195 tmp=./conf$$-$RANDOM
5196 (umask 077 && mkdir "$tmp")
5197 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5200 # Set up the scripts for CONFIG_FILES section.
5201 # No need to generate them if there are no CONFIG_FILES.
5202 # This happens for instance with `./config.status config.h'.
5203 if test -n "$CONFIG_FILES"; then
5206 ac_cr=`echo X | tr X '\015'`
5207 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5208 # But we know of no other shell where ac_cr would be empty at this
5209 # point, so we can use a bashism as a fallback.
5210 if test "x$ac_cr" = x; then
5211 eval ac_cr=\$\'\\r\'
5213 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5220 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5225 echo "cat >conf$$subs.awk <<_ACEOF" &&
5226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5230 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5232 for ac_last_try in false false false false false :; do
5233 . ./conf$$subs.sh ||
5234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5236 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5237 if test $ac_delim_n = $ac_delim_num; then
5239 elif $ac_last_try; then
5240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5248 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5252 s/^/S["/; s/!.*/"]=/
5262 s/\(.\{148\}\)..*/\1/
5264 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5269 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5276 s/\(.\{148\}\)..*/\1/
5278 s/["\\]/\\&/g; s/^/"/; s/$/"/
5282 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5287 ' <conf$$subs.awk | sed '
5292 ' >>$CONFIG_STATUS || ac_write_fail=1
5293 rm -f conf$$subs.awk
5294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5296 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5297 for (key in S) S_is_set[key] = 1
5303 nfields = split(line, field, "@")
5305 len = length(field[1])
5306 for (i = 2; i < nfields; i++) {
5308 keylen = length(key)
5309 if (S_is_set[key]) {
5311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5312 len += length(value) + length(field[++i])
5323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5324 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5325 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5328 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5329 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5332 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5333 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5334 # trailing colons and then remove the whole line if VPATH becomes empty
5335 # (actually we leave an empty line to preserve line numbers).
5336 if test "x$srcdir" = x.; then
5337 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5356 fi # test -n "$CONFIG_FILES"
5358 # Set up the scripts for CONFIG_HEADERS section.
5359 # No need to generate them if there are no CONFIG_HEADERS.
5360 # This happens for instance with `./config.status Makefile'.
5361 if test -n "$CONFIG_HEADERS"; then
5362 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5366 # Transform confdefs.h into an awk script `defines.awk', embedded as
5367 # here-document in config.status, that substitutes the proper values into
5368 # config.h.in to produce config.h.
5370 # Create a delimiter string that does not exist in confdefs.h, to ease
5371 # handling of long lines.
5373 for ac_last_try in false false :; do
5374 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5375 if test -z "$ac_tt"; then
5377 elif $ac_last_try; then
5378 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5384 # For the awk script, D is an array of macro values keyed by name,
5385 # likewise P contains macro parameters if any. Preserve backslash
5386 # newline sequences.
5388 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5390 s/.\{148\}/&'"$ac_delim"'/g
5393 s/^[ ]*#[ ]*define[ ][ ]*/ /
5400 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5402 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5406 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5407 D["\1"]=" \3\\\\\\n"\\/p
5409 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5414 s/.\{148\}/&'"$ac_delim"'/g
5419 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5422 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5424 ' <confdefs.h | sed '
5425 s/'"$ac_delim"'/"\\\
5426 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5429 for (key in D) D_is_set[key] = 1
5432 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5434 split(line, arg, " ")
5435 if (arg[1] == "#") {
5439 defundef = substr(arg[1], 2)
5442 split(mac1, mac2, "(") #)
5444 prefix = substr(line, 1, index(line, defundef) - 1)
5445 if (D_is_set[macro]) {
5446 # Preserve the white space surrounding the "#".
5447 print prefix "define", macro P[macro] D[macro]
5450 # Replace #undef with comments. This is necessary, for example,
5451 # in the case of _POSIX_SOURCE, which is predefined and required
5452 # on some systems where configure will not decide to define it.
5453 if (defundef == "undef") {
5454 print "/*", prefix defundef, macro, "*/"
5462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5463 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5464 fi # test -n "$CONFIG_HEADERS"
5467 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5472 :[FHLC]) ac_mode=$ac_tag; continue;;
5474 case $ac_mode$ac_tag in
5476 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5477 :[FH]-) ac_tag=-:-;;
5478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5495 -) ac_f="$ac_tmp/stdin";;
5496 *) # Look for the file first in the build tree, then in the source tree
5497 # (if the path is not absolute). The absolute path cannot be DOS-style,
5498 # because $ac_f cannot contain `:'.
5502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5504 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5506 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5507 as_fn_append ac_file_inputs " '$ac_f'"
5510 # Let's still pretend it is `configure' which instantiates (i.e., don't
5511 # use $as_me), people would be surprised to read:
5512 # /* config.h. Generated by config.status. */
5513 configure_input='Generated from '`
5514 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5516 if test x"$ac_file" != x-; then
5517 configure_input="$ac_file. $configure_input"
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5519 $as_echo "$as_me: creating $ac_file" >&6;}
5521 # Neutralize special characters interpreted by sed in replacement strings.
5522 case $configure_input in #(
5523 *\&* | *\|* | *\\* )
5524 ac_sed_conf_input=`$as_echo "$configure_input" |
5525 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5526 *) ac_sed_conf_input=$configure_input;;
5530 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5536 ac_dir=`$as_dirname -- "$ac_file" ||
5537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5538 X"$ac_file" : 'X\(//\)[^/]' \| \
5539 X"$ac_file" : 'X\(//\)$' \| \
5540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5541 $as_echo X"$ac_file" |
5542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5559 as_dir="$ac_dir"; as_fn_mkdir_p
5563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5566 # A ".." for each directory in $ac_dir_suffix.
5567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5568 case $ac_top_builddir_sub in
5569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5573 ac_abs_top_builddir=$ac_pwd
5574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5575 # for backward compatibility:
5576 ac_top_builddir=$ac_top_build_prefix
5579 .) # We are building in place.
5581 ac_top_srcdir=$ac_top_builddir_sub
5582 ac_abs_top_srcdir=$ac_pwd ;;
5583 [\\/]* | ?:[\\/]* ) # Absolute name.
5584 ac_srcdir=$srcdir$ac_dir_suffix;
5585 ac_top_srcdir=$srcdir
5586 ac_abs_top_srcdir=$srcdir ;;
5588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5589 ac_top_srcdir=$ac_top_build_prefix$srcdir
5590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5608 # If the template does not know about datarootdir, expand it.
5609 # FIXME: This hack should be removed a few years after 2.60.
5610 ac_datarootdir_hack=; ac_datarootdir_seen=
5621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5622 *datarootdir*) ac_datarootdir_seen=yes;;
5623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5628 ac_datarootdir_hack='
5629 s&@datadir@&$datadir&g
5630 s&@docdir@&$docdir&g
5631 s&@infodir@&$infodir&g
5632 s&@localedir@&$localedir&g
5633 s&@mandir@&$mandir&g
5634 s&\\\${datarootdir}&$datarootdir&g' ;;
5638 # Neutralize VPATH when `$srcdir' = `.'.
5639 # Shell code in configure.ac might set extrasub.
5640 # FIXME: do we really want to maintain this feature?
5641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5642 ac_sed_extra="$ac_vpsub
5645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5648 s|@configure_input@|$ac_sed_conf_input|;t t
5649 s&@top_builddir@&$ac_top_builddir_sub&;t t
5650 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5651 s&@srcdir@&$ac_srcdir&;t t
5652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5653 s&@top_srcdir@&$ac_top_srcdir&;t t
5654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5655 s&@builddir@&$ac_builddir&;t t
5656 s&@abs_builddir@&$ac_abs_builddir&;t t
5657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5658 s&@INSTALL@&$ac_INSTALL&;t t
5659 $ac_datarootdir_hack
5661 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5662 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5664 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5665 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5666 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5667 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5669 which seems to be undefined. Please make sure it is defined" >&5
5670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5671 which seems to be undefined. Please make sure it is defined" >&2;}
5673 rm -f "$ac_tmp/stdin"
5675 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5676 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5684 if test x"$ac_file" != x-; then
5686 $as_echo "/* $configure_input */" \
5687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5688 } >"$ac_tmp/config.h" \
5689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5690 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5695 mv "$ac_tmp/config.h" "$ac_file" \
5696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5699 $as_echo "/* $configure_input */" \
5700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5701 || as_fn_error $? "could not create -" "$LINENO" 5
5713 ac_clean_files=$ac_clean_files_save
5715 test $ac_write_fail = 0 ||
5716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5719 # configure is writing to config.log, and then calls config.status.
5720 # config.status does its own redirection, appending to config.log.
5721 # Unfortunately, on DOS this fails, as config.log is still kept open
5722 # by configure, so config.status won't be able to write to it; its
5723 # output is simply discarded. So we exec the FD to /dev/null,
5724 # effectively closing config.log, so it can be properly (re)opened and
5725 # appended to by config.status. When coming back to configure, we
5726 # need to make the FD available again.
5727 if test "$no_create" != yes; then
5729 ac_config_status_args=
5730 test "$silent" = yes &&
5731 ac_config_status_args="$ac_config_status_args --quiet"
5733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5736 # would make configure fail if this is the last instruction.
5737 $ac_cs_success || as_fn_exit 1
5739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}