2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bmake 20200524.
5 # Report bugs to <sjg@NetBSD.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='bmake'
583 PACKAGE_VERSION='20200524'
584 PACKAGE_STRING='bmake 20200524'
585 PACKAGE_BUGREPORT='sjg@NetBSD.org'
588 # Factoring default headers for most tests.
589 ac_includes_default="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 ac_subst_vars='LTLIBOBJS
680 program_transform_name
693 enable_option_checking
700 with_force_machine_arch
702 with_default_sys_path
703 with_path_objdirprefix
705 enable_check_make_chdir
708 ac_precious_vars='build_alias
719 # Initialize some variables set by options.
721 ac_init_version=false
722 ac_unrecognized_opts=
724 # The variables have the same names as the options, with
725 # dashes changed to underlines.
733 program_transform_name=s,x,x,
741 # Installation directory options.
742 # These are left unexpanded so users can "make install exec_prefix=/foo"
743 # and all the variables that are supposed to be based on exec_prefix
744 # by default will actually change.
745 # Use braces instead of parens because sh, perl, etc. also accept them.
746 # (The list follows the same order as the GNU Coding Standards.)
747 bindir='${exec_prefix}/bin'
748 sbindir='${exec_prefix}/sbin'
749 libexecdir='${exec_prefix}/libexec'
750 datarootdir='${prefix}/share'
751 datadir='${datarootdir}'
752 sysconfdir='${prefix}/etc'
753 sharedstatedir='${prefix}/com'
754 localstatedir='${prefix}/var'
755 includedir='${prefix}/include'
756 oldincludedir='/usr/include'
757 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
758 infodir='${datarootdir}/info'
763 libdir='${exec_prefix}/lib'
764 localedir='${datarootdir}/locale'
765 mandir='${datarootdir}/man'
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\$ac_option
779 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 # Accept the important Cygnus configure options, so we can diagnose typos.
786 case $ac_dashdash$ac_option in
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
808 cache_file=config.cache ;;
810 -datadir | --datadir | --datadi | --datad)
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error $? "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
836 eval enable_$ac_useropt=no ;;
838 -docdir | --docdir | --docdi | --doc | --do)
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
862 eval enable_$ac_useropt=\$ac_optarg ;;
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
877 -help | --help | --hel | --he | -h)
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 htmldir=$ac_optarg ;;
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
907 -libdir | --libdir | --libdi | --libd)
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
919 -localedir | --localedir | --localedi | --localed | --locale)
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 # Obsolete; use --without-fp.
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 -psdir | --psdir | --psdi | --psd | --ps)
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 sbindir=$ac_optarg ;;
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 sharedstatedir=$ac_optarg ;;
1024 -site | --site | --sit)
1026 -site=* | --site=* | --sit=*)
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval with_$ac_useropt=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval with_$ac_useropt=no ;;
1085 # Obsolete; use --with-x.
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1103 Try \`$0 --help' for more information"
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error $? "missing argument to $ac_option"
1132 if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1135 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 # Check all directory arguments for consistency.
1141 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
1153 # Be sure to have absolute directory names.
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1166 target=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 elif test "x$build_alias" != "x$host_alias"; then
1178 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1180 test "$silent" = yes && exec 6>/dev/null
1183 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1184 ac_ls_di=`ls -di .` &&
1185 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1186 as_fn_error $? "working directory cannot be determined"
1187 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188 as_fn_error $? "pwd does not report name of working directory"
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$as_myself" ||
1196 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$as_myself" : 'X\(//\)[^/]' \| \
1198 X"$as_myself" : 'X\(//\)$' \| \
1199 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1200 $as_echo X"$as_myself" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1223 ac_srcdir_defaulted=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1229 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1241 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 # Report the --help message.
1253 if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1257 \`configure' configures bmake 20200524 to adapt to many kinds of systems.
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE. See below for descriptions of some of the useful variables.
1264 Defaults for the options are specified in brackets.
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print \`checking ...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277 Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 By default, \`make install' will install all the files in
1284 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286 for instance \`--prefix=\$HOME'.
1288 For better control, use the options below.
1290 Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
1305 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake]
1306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
1316 if test -n "$ac_init_help"; then
1317 case $ac_init_help in
1318 short | recursive ) echo "Configuration of bmake 20200524:";;
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --disable-pwd-override disable \$PWD overriding getcwd()
1327 --disable-check-make-chdir disable make trying to guess
1328 when it should automatically cd \${.CURDIR}
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1334 --without-makefile dissable use of generated makefile
1335 --without-meta dissable use of meta-mode
1336 --with-filemon={no,dev,ktrace,path/filemon.h} indicate filemon method for meta-mode. Path to filemon.h implies dev
1337 --with-machine=MACHINE explicitly set MACHINE
1338 --with-force-machine=MACHINE set FORCE_MACHINE
1339 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH
1340 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1341 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1342 MAKESYSPATH is a ':' separated list of directories
1343 that bmake will search for system .mk files.
1344 _PATH_DEFSYSPATH is its default value.
1345 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1346 --with-mksrc=PATH tell makefile.boot where to find mk src
1348 Some influential environment variables:
1349 CC C compiler command
1350 CFLAGS C compiler flags
1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1352 nonstandard directory <lib dir>
1353 LIBS libraries to pass to the linker, e.g. -l<library>
1354 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355 you have headers in a nonstandard directory <include dir>
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1361 Report bugs to <sjg@NetBSD.org>.
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" ||
1370 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1391 .) # We are building in place.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1415 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1424 bmake configure 20200524
1425 generated by GNU Autoconf 2.69
1427 Copyright (C) 2012 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1434 ## ------------------------ ##
1435 ## Autoconf initialization. ##
1436 ## ------------------------ ##
1438 # ac_fn_c_try_compile LINENO
1439 # --------------------------
1440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1441 ac_fn_c_try_compile ()
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 rm -f conftest.$ac_objext
1445 if { { ac_try="$ac_compile"
1447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448 *) ac_try_echo=$ac_try;;
1450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_compile") 2>conftest.err
1454 if test -s conftest.err; then
1455 grep -v '^ *+' conftest.err >conftest.er1
1456 cat conftest.er1 >&5
1457 mv -f conftest.er1 conftest.err
1459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460 test $ac_status = 0; } && {
1461 test -z "$ac_c_werror_flag" ||
1462 test ! -s conftest.err
1463 } && test -s conftest.$ac_objext; then :
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.$ac_ext >&5
1471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1472 as_fn_set_status $ac_retval
1474 } # ac_fn_c_try_compile
1476 # ac_fn_c_try_cpp LINENO
1477 # ----------------------
1478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 if { { ac_try="$ac_cpp conftest.$ac_ext"
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } > conftest.i && {
1498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1509 as_fn_set_status $ac_retval
1513 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1514 # -------------------------------------------------------
1515 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1516 # the include files in INCLUDES and setting the cache variable VAR
1518 ac_fn_c_check_header_mongrel ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if eval \${$3+:} false; then :
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1523 $as_echo_n "checking for $2... " >&6; }
1524 if eval \${$3+:} false; then :
1525 $as_echo_n "(cached) " >&6
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1529 $as_echo "$ac_res" >&6; }
1531 # Is the header compilable?
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1533 $as_echo_n "checking $2 usability... " >&6; }
1534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535 /* end confdefs.h. */
1539 if ac_fn_c_try_compile "$LINENO"; then :
1540 ac_header_compiler=yes
1542 ac_header_compiler=no
1544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1546 $as_echo "$ac_header_compiler" >&6; }
1548 # Is the header present?
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1550 $as_echo_n "checking $2 presence... " >&6; }
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552 /* end confdefs.h. */
1555 if ac_fn_c_try_cpp "$LINENO"; then :
1556 ac_header_preproc=yes
1558 ac_header_preproc=no
1560 rm -f conftest.err conftest.i conftest.$ac_ext
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1562 $as_echo "$ac_header_preproc" >&6; }
1564 # So? What about this header?
1565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1568 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1570 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1574 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1576 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1578 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1580 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1583 ( $as_echo "## ----------------------------- ##
1584 ## Report this to sjg@NetBSD.org ##
1585 ## ----------------------------- ##"
1586 ) | sed "s/^/$as_me: WARNING: /" >&2
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1590 $as_echo_n "checking for $2... " >&6; }
1591 if eval \${$3+:} false; then :
1592 $as_echo_n "(cached) " >&6
1594 eval "$3=\$ac_header_compiler"
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1598 $as_echo "$ac_res" >&6; }
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 } # ac_fn_c_check_header_mongrel
1604 # ac_fn_c_try_run LINENO
1605 # ----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1607 # that executables *can* be run.
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_link"
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>&5
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1622 { { case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_try") 2>&5
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; }; }; then :
1634 $as_echo "$as_me: program exited with status $ac_status" >&5
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1638 ac_retval=$ac_status
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1646 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists and can be compiled using the include files in
1649 # INCLUDES, setting the cache variable VAR accordingly.
1650 ac_fn_c_check_header_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1663 if ac_fn_c_try_compile "$LINENO"; then :
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 } # ac_fn_c_check_header_compile
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 test -x conftest$ac_exeext
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_link
1723 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1724 # -------------------------------------------
1725 # Tests whether TYPE exists after having included INCLUDES, setting cache
1726 # variable VAR accordingly.
1727 ac_fn_c_check_type ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1761 if ac_fn_c_try_compile "$LINENO"; then :
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 } # ac_fn_c_check_type
1777 # ac_fn_c_find_uintX_t LINENO BITS VAR
1778 # ------------------------------------
1779 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1781 ac_fn_c_find_uintX_t ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1785 $as_echo_n "checking for uint$2_t... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1790 # Order is important - never check a type that is potentially smaller
1791 # than half of the expected target width.
1792 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1793 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $ac_includes_default
1800 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1802 return test_array [0];
1808 if ac_fn_c_try_compile "$LINENO"; then :
1813 eval "$3=\$ac_type" ;;
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 if eval test \"x\$"$3"\" = x"no"; then :
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_find_uintX_t
1831 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1832 # ---------------------------------------------
1833 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1835 ac_fn_c_check_decl ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 as_decl_name=`echo $2|sed 's/ *(.*//'`
1839 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1841 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1842 if eval \${$3+:} false; then :
1843 $as_echo_n "(cached) " >&6
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1851 #ifndef $as_decl_name
1853 (void) $as_decl_use;
1855 (void) $as_decl_name;
1863 if ac_fn_c_try_compile "$LINENO"; then :
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_decl
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_func
1944 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945 # ----------------------------------------------------
1946 # Tries to find if the field MEMBER exists in type AGGR, after including
1947 # INCLUDES, setting cache variable VAR accordingly.
1948 ac_fn_c_check_member ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952 $as_echo_n "checking for $2.$3... " >&6; }
1953 if eval \${$4+:} false; then :
1954 $as_echo_n "(cached) " >&6
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1979 if (sizeof ac_aggr.$3)
1985 if ac_fn_c_try_compile "$LINENO"; then :
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_member
2000 cat >config.log <<_ACEOF
2001 This file contains any messages produced by compilers while
2002 running configure, to aid debugging if configure makes a mistake.
2004 It was created by bmake $as_me 20200524, which was
2005 generated by GNU Autoconf 2.69. Invocation command line was
2017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2024 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2026 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2027 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2029 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2030 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2031 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2032 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 $as_echo "PATH: $as_dir"
2057 # Keep a trace of the command line.
2058 # Strip out --no-create and --no-recursion so they do not pile up.
2059 # Strip out --silent because we don't want to record it for future runs.
2060 # Also quote any args containing shell meta-characters.
2061 # Make two passes to allow for proper duplicate-argument suppression.
2065 ac_must_keep_next=false
2071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2073 | -silent | --silent | --silen | --sile | --sil)
2076 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2079 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2081 as_fn_append ac_configure_args1 " '$ac_arg'"
2082 if test $ac_must_keep_next = true; then
2083 ac_must_keep_next=false # Got value, back to normal.
2086 *=* | --config-cache | -C | -disable-* | --disable-* \
2087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2089 | -with-* | --with-* | -without-* | --without-* | --x)
2090 case "$ac_configure_args0 " in
2091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2094 -* ) ac_must_keep_next=true ;;
2097 as_fn_append ac_configure_args " '$ac_arg'"
2102 { ac_configure_args0=; unset ac_configure_args0;}
2103 { ac_configure_args1=; unset ac_configure_args1;}
2105 # When interrupted or exit'd, cleanup temporary files, and complete
2106 # config.log. We remove comments because anyway the quotes in there
2107 # would cause problems or look ugly.
2108 # WARNING: Use '\'' to represent an apostrophe within the trap.
2109 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2110 trap 'exit_status=$?
2111 # Save into config.log some information that might help in debugging.
2115 $as_echo "## ---------------- ##
2116 ## Cache variables. ##
2117 ## ---------------- ##"
2119 # The following way of writing the cache mishandles newlines in values,
2121 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2122 eval ac_val=\$$ac_var
2126 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2127 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2130 _ | IFS | as_nl) ;; #(
2131 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2132 *) { eval $ac_var=; unset $ac_var;} ;;
2137 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2138 *${as_nl}ac_space=\ *)
2140 "s/'\''/'\''\\\\'\'''\''/g;
2141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2151 $as_echo "## ----------------- ##
2152 ## Output variables. ##
2153 ## ----------------- ##"
2155 for ac_var in $ac_subst_vars
2157 eval ac_val=\$$ac_var
2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 $as_echo "$ac_var='\''$ac_val'\''"
2165 if test -n "$ac_subst_files"; then
2166 $as_echo "## ------------------- ##
2167 ## File substitutions. ##
2168 ## ------------------- ##"
2170 for ac_var in $ac_subst_files
2172 eval ac_val=\$$ac_var
2174 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 $as_echo "$ac_var='\''$ac_val'\''"
2181 if test -s confdefs.h; then
2182 $as_echo "## ----------- ##
2189 test "$ac_signal" != 0 &&
2190 $as_echo "$as_me: caught signal $ac_signal"
2191 $as_echo "$as_me: exit $exit_status"
2193 rm -f core *.core core.conftest.* &&
2194 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2197 for ac_signal in 1 2 13 15; do
2198 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2202 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2203 rm -f -r conftest* confdefs.h
2205 $as_echo "/* confdefs.h */" > confdefs.h
2207 # Predefined preprocessor variables.
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_NAME "$PACKAGE_NAME"
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_STRING "$PACKAGE_STRING"
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_URL "$PACKAGE_URL"
2234 # Let the site file select an alternate cache file if it wants to.
2235 # Prefer an explicitly selected file to automatically selected ones.
2238 if test -n "$CONFIG_SITE"; then
2239 # We do not want a PATH search for config.site.
2240 case $CONFIG_SITE in #((
2241 -*) ac_site_file1=./$CONFIG_SITE;;
2242 */*) ac_site_file1=$CONFIG_SITE;;
2243 *) ac_site_file1=./$CONFIG_SITE;;
2245 elif test "x$prefix" != xNONE; then
2246 ac_site_file1=$prefix/share/config.site
2247 ac_site_file2=$prefix/etc/config.site
2249 ac_site_file1=$ac_default_prefix/share/config.site
2250 ac_site_file2=$ac_default_prefix/etc/config.site
2252 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2254 test "x$ac_site_file" = xNONE && continue
2255 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2257 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2258 sed 's/^/| /' "$ac_site_file" >&5
2260 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2262 as_fn_error $? "failed to load site script $ac_site_file
2263 See \`config.log' for more details" "$LINENO" 5; }
2267 if test -r "$cache_file"; then
2268 # Some versions of bash will fail to source /dev/null (special files
2269 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2270 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2272 $as_echo "$as_me: loading cache $cache_file" >&6;}
2274 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2275 *) . "./$cache_file";;
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2280 $as_echo "$as_me: creating cache $cache_file" >&6;}
2284 # Check that the precious variables saved in the cache have kept the same
2286 ac_cache_corrupted=false
2287 for ac_var in $ac_precious_vars; do
2288 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2289 eval ac_new_set=\$ac_env_${ac_var}_set
2290 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2291 eval ac_new_val=\$ac_env_${ac_var}_value
2292 case $ac_old_set,$ac_new_set in
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2295 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2296 ac_cache_corrupted=: ;;
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2303 if test "x$ac_old_val" != "x$ac_new_val"; then
2304 # differences in whitespace do not lead to failure.
2305 ac_old_val_w=`echo x $ac_old_val`
2306 ac_new_val_w=`echo x $ac_new_val`
2307 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2309 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2310 ac_cache_corrupted=:
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2313 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2314 eval $ac_var=\$ac_old_val
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2317 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2319 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2322 # Pass precious variables to config.status.
2323 if test "$ac_new_set" = set; then
2325 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2326 *) ac_arg=$ac_var=$ac_new_val ;;
2328 case " $ac_configure_args " in
2329 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2330 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2334 if $ac_cache_corrupted; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2338 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2339 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2341 ## -------------------- ##
2342 ## Main body of script. ##
2343 ## -------------------- ##
2346 ac_cpp='$CPP $CPPFLAGS'
2347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352 ac_config_headers="$ac_config_headers config.h"
2357 *) srcdir=`cd $srcdir && pwd`;;
2364 # Check whether --with-defshell was given.
2365 if test "${with_defshell+set}" = set; then :
2366 withval=$with_defshell; case "${withval}" in
2367 yes) as_fn_error $? "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2369 *) case "$with_defshell" in
2370 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;; # it's the default anyway
2371 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2372 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right?
2373 *) defshell_path=$with_defshell;; # better be sh compatible!
2380 CYGWIN*|MINGW*) use_makefile=no;;
2381 *) use_makefile=yes;;
2384 # Check whether --with-makefile was given.
2385 if test "${with_makefile+set}" = set; then :
2386 withval=$with_makefile; case "${withval}" in
2387 yes|no) use_makefile=${withval};;
2388 *) as_fn_error $? "bad value ${withval} given for makefile" "$LINENO" 5 ;;
2394 # Check whether --with-meta was given.
2395 if test "${with_meta+set}" = set; then :
2396 withval=$with_meta; case "${withval}" in
2397 yes|no) use_meta=${withval};;
2398 *) as_fn_error $? "bad value ${withval} given for meta" "$LINENO" 5 ;;
2403 # Check whether --with-filemon was given.
2404 if test "${with_filemon+set}" = set; then :
2405 withval=$with_filemon; case "/${withval}" in
2406 /no) use_filemon=no;;
2407 /*trace) filemon_h=no use_filemon="${withval}";;
2408 */filemon.h) filemon_h="${withval}";;
2409 */filemon*) filemon_h="${withval}/filemon.h";;
2410 *) as_fn_error $? "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2412 case "$use_filemon,$filemon_h" in
2413 ,*.h) use_filemon=dev;;
2419 NetBSD) filemon_h=no use_filemon=ktrace;;
2421 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/../../sys/dev/filemon"
2425 filemon_h="$d$x/filemon.h"
2426 test -s "$filemon_h" && break
2428 test -s "$filemon_h" && { use_filemon=dev; break; }
2432 use_filemon=${use_filemon:-no}
2433 case "$use_filemon" in
2442 case "$use_filemon" in
2444 *) echo "Using: filemon_${use_filemon}.c" >&6;;
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_CC+:} false; then :
2459 $as_echo_n "(cached) " >&6
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 if test -n "$CC"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484 $as_echo "$CC" >&6; }
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2492 if test -z "$ac_cv_prog_CC"; then
2494 # Extract the first word of "gcc", so it can be a program name with args.
2495 set dummy gcc; ac_word=$2
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 $as_echo_n "checking for $ac_word... " >&6; }
2498 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2499 $as_echo_n "(cached) " >&6
2501 if test -n "$ac_ct_CC"; then
2502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511 ac_cv_prog_ac_ct_CC="gcc"
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2522 if test -n "$ac_ct_CC"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2524 $as_echo "$ac_ct_CC" >&6; }
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527 $as_echo "no" >&6; }
2530 if test "x$ac_ct_CC" = x; then
2533 case $cross_compiling:$ac_tool_warned in
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537 ac_tool_warned=yes ;;
2545 if test -z "$CC"; then
2546 if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}cc; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if ${ac_cv_prog_CC+:} false; then :
2552 $as_echo_n "(cached) " >&6
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2564 ac_cv_prog_CC="${ac_tool_prefix}cc"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 if test -n "$CC"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2577 $as_echo "$CC" >&6; }
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2586 if test -z "$CC"; then
2587 # Extract the first word of "cc", so it can be a program name with args.
2588 set dummy cc; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_CC+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2606 ac_prog_rejected=yes
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test $ac_prog_rejected = yes; then
2618 # We found a bogon in the path, so make sure we never use it.
2619 set dummy $ac_cv_prog_CC
2621 if test $# != 0; then
2622 # We chose a different compiler from the bogus one.
2623 # However, it has the same basename, so the bogon will be chosen
2624 # first if we set CC to just the basename; use the full file name.
2626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2632 if test -n "$CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634 $as_echo "$CC" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2642 if test -z "$CC"; then
2643 if test -n "$ac_tool_prefix"; then
2644 for ac_prog in cl.exe
2646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_CC+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2683 test -n "$CC" && break
2686 if test -z "$CC"; then
2688 for ac_prog in cl.exe
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$ac_ct_CC"; then
2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_ac_ct_CC="$ac_prog"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718 if test -n "$ac_ct_CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2720 $as_echo "$ac_ct_CC" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$ac_ct_CC" && break
2730 if test "x$ac_ct_CC" = x; then
2733 case $cross_compiling:$ac_tool_warned in
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2737 ac_tool_warned=yes ;;
2746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 as_fn_error $? "no acceptable C compiler found in \$PATH
2749 See \`config.log' for more details" "$LINENO" 5; }
2751 # Provide some information about the compiler.
2752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2755 for ac_option in --version -v -V -qversion; do
2756 { { ac_try="$ac_compiler $ac_option >&5"
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762 $as_echo "$ac_try_echo"; } >&5
2763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2765 if test -s conftest.err; then
2767 ... rest of stderr output deleted ...
2768 10q' conftest.err >conftest.er1
2769 cat conftest.er1 >&5
2771 rm -f conftest.er1 conftest.err
2772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2773 test $ac_status = 0; }
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2787 ac_clean_files_save=$ac_clean_files
2788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2789 # Try to create an executable without -o first, disregard a.out.
2790 # It will help us diagnose broken compilers, and finding out an intuition
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2793 $as_echo_n "checking whether the C compiler works... " >&6; }
2794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2796 # The possible output files:
2797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2800 for ac_file in $ac_files
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2809 if { { ac_try="$ac_link_default"
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816 (eval "$ac_link_default") 2>&5
2818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819 test $ac_status = 0; }; then :
2820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2825 for ac_file in $ac_files ''
2827 test -f "$ac_file" || continue
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2832 # We found the default executable, but exeext='' is most
2836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840 # We set ac_cv_exeext here because the later test for it is not
2841 # safe: cross compilers may not add the suffix if given an `-o'
2842 # argument, so we may need to know it at that point already.
2843 # Even if this section looks crufty: it has the advantage of
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2855 if test -z "$ac_file"; then :
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 $as_echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2863 as_fn_error 77 "C compiler cannot create executables
2864 See \`config.log' for more details" "$LINENO" 5; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2867 $as_echo "yes" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2870 $as_echo_n "checking for C compiler default output file name... " >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2872 $as_echo "$ac_file" >&6; }
2873 ac_exeext=$ac_cv_exeext
2875 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2876 ac_clean_files=$ac_clean_files_save
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878 $as_echo_n "checking for suffix of executables... " >&6; }
2879 if { { ac_try="$ac_link"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link") 2>&5
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details" "$LINENO" 5; }
2909 rm -f conftest conftest$ac_cv_exeext
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911 $as_echo "$ac_cv_exeext" >&6; }
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2922 FILE *f = fopen ("conftest.out", "w");
2923 return ferror (f) || fclose (f) != 0;
2929 ac_clean_files="$ac_clean_files conftest.out"
2930 # Check that the compiler produces executables we can run. If not, either
2931 # the compiler is broken, or we cross compile.
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2933 $as_echo_n "checking whether we are cross compiling... " >&6; }
2934 if test "$cross_compiling" != yes; then
2935 { { ac_try="$ac_link"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941 $as_echo "$ac_try_echo"; } >&5
2942 (eval "$ac_link") 2>&5
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }
2946 if { ac_try='./conftest$ac_cv_exeext'
2947 { { case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_try") 2>&5
2955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2956 test $ac_status = 0; }; }; then
2959 if test "$cross_compiling" = maybe; then
2962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964 as_fn_error $? "cannot run C compiled programs.
2965 If you meant to cross compile, use \`--host'.
2966 See \`config.log' for more details" "$LINENO" 5; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2971 $as_echo "$cross_compiling" >&6; }
2973 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2974 ac_clean_files=$ac_clean_files_save
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2976 $as_echo_n "checking for suffix of object files... " >&6; }
2977 if ${ac_cv_objext+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981 /* end confdefs.h. */
2991 rm -f conftest.o conftest.obj
2992 if { { ac_try="$ac_compile"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_compile") 2>&5
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
3003 for ac_file in conftest.o conftest.obj conftest.*; do
3004 test -f "$ac_file" || continue;
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3007 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3012 $as_echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017 as_fn_error $? "cannot compute suffix of object files: cannot compile
3018 See \`config.log' for more details" "$LINENO" 5; }
3020 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3023 $as_echo "$ac_cv_objext" >&6; }
3024 OBJEXT=$ac_cv_objext
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3027 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3028 if ${ac_cv_c_compiler_gnu+:} false; then :
3029 $as_echo_n "(cached) " >&6
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3045 if ac_fn_c_try_compile "$LINENO"; then :
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3055 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3056 if test $ac_compiler_gnu = yes; then
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3064 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3065 if ${ac_cv_prog_cc_g+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3083 if ac_fn_c_try_compile "$LINENO"; then :
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3098 if ac_fn_c_try_compile "$LINENO"; then :
3101 ac_c_werror_flag=$ac_save_c_werror_flag
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3114 if ac_fn_c_try_compile "$LINENO"; then :
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 ac_c_werror_flag=$ac_save_c_werror_flag
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3125 $as_echo "$ac_cv_prog_cc_g" >&6; }
3126 if test "$ac_test_CFLAGS" = set; then
3127 CFLAGS=$ac_save_CFLAGS
3128 elif test $ac_cv_prog_cc_g = yes; then
3129 if test "$GCC" = yes; then
3135 if test "$GCC" = yes; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3142 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3143 if ${ac_cv_prog_cc_c89+:} false; then :
3144 $as_echo_n "(cached) " >&6
3146 ac_cv_prog_cc_c89=no
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3154 struct buf { int x; };
3155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156 static char *e (p, i)
3162 static char *f (char * (*g) (char **, int), char **p, ...)
3167 s = g (p, va_arg (v,int));
3172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3173 function prototypes and stuff, but not '\xHH' hex character constants.
3174 These don't provoke an error unfortunately, instead are silently treated
3175 as 'x'. The following induces an error, until -std is added to get
3176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3177 array size at least. It's necessary to write '\x00'==0 to get something
3178 that's true only with -std. */
3179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3182 inside strings and character constants. */
3184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3186 int test (int i, double x);
3187 struct s1 {int (*f) (int a);};
3188 struct s2 {int (*f) (double a);};
3189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3195 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3201 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3203 CC="$ac_save_CC $ac_arg"
3204 if ac_fn_c_try_compile "$LINENO"; then :
3205 ac_cv_prog_cc_c89=$ac_arg
3207 rm -f core conftest.err conftest.$ac_objext
3208 test "x$ac_cv_prog_cc_c89" != "xno" && break
3210 rm -f conftest.$ac_ext
3215 case "x$ac_cv_prog_cc_c89" in
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3218 $as_echo "none needed" >&6; } ;;
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3221 $as_echo "unsupported" >&6; } ;;
3223 CC="$CC $ac_cv_prog_cc_c89"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3225 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3227 if test "x$ac_cv_prog_cc_c89" != xno; then :
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3245 # On Suns, sometimes $CPP names a directory.
3246 if test -n "$CPP" && test -d "$CPP"; then
3249 if test -z "$CPP"; then
3250 if ${ac_cv_prog_CPP+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 # Double quotes because CPP needs to be expanded
3254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3257 for ac_c_preproc_warn_flag in '' yes
3259 # Use a header file that comes with gcc, so configuring glibc
3260 # with a fresh cross-compiler works.
3261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262 # <limits.h> exists even on freestanding compilers.
3263 # On the NeXT, cc -E runs the code through the compiler's parser,
3264 # not just through cpp. "Syntax error" is here to catch this case.
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3268 # include <limits.h>
3270 # include <assert.h>
3274 if ac_fn_c_try_cpp "$LINENO"; then :
3277 # Broken: fails on valid input.
3280 rm -f conftest.err conftest.i conftest.$ac_ext
3282 # OK, works on sane cases. Now check whether nonexistent headers
3283 # can be detected and how.
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3286 #include <ac_nonexistent.h>
3288 if ac_fn_c_try_cpp "$LINENO"; then :
3289 # Broken: success on invalid input.
3292 # Passes both tests.
3296 rm -f conftest.err conftest.i conftest.$ac_ext
3299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300 rm -f conftest.i conftest.err conftest.$ac_ext
3301 if $ac_preproc_ok; then :
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3314 $as_echo "$CPP" >&6; }
3316 for ac_c_preproc_warn_flag in '' yes
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3327 # include <limits.h>
3329 # include <assert.h>
3333 if ac_fn_c_try_cpp "$LINENO"; then :
3336 # Broken: fails on valid input.
3339 rm -f conftest.err conftest.i conftest.$ac_ext
3341 # OK, works on sane cases. Now check whether nonexistent headers
3342 # can be detected and how.
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3345 #include <ac_nonexistent.h>
3347 if ac_fn_c_try_cpp "$LINENO"; then :
3348 # Broken: success on invalid input.
3351 # Passes both tests.
3355 rm -f conftest.err conftest.i conftest.$ac_ext
3358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3359 rm -f conftest.i conftest.err conftest.$ac_ext
3360 if $ac_preproc_ok; then :
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3366 See \`config.log' for more details" "$LINENO" 5; }
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3377 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3378 if ${ac_cv_path_GREP+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -z "$GREP"; then
3382 ac_path_GREP_found=false
3383 # Loop through the user's path and test for each of PROGNAME-LIST
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3388 test -z "$as_dir" && as_dir=.
3389 for ac_prog in grep ggrep; do
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3392 as_fn_executable_p "$ac_path_GREP" || continue
3393 # Check for GNU ac_path_GREP and select it if it is found.
3394 # Check for GNU $ac_path_GREP
3395 case `"$ac_path_GREP" --version 2>&1` in
3397 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3400 $as_echo_n 0123456789 >"conftest.in"
3403 cat "conftest.in" "conftest.in" >"conftest.tmp"
3404 mv "conftest.tmp" "conftest.in"
3405 cp "conftest.in" "conftest.nl"
3406 $as_echo 'GREP' >> "conftest.nl"
3407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3409 as_fn_arith $ac_count + 1 && ac_count=$as_val
3410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3411 # Best one so far, save it but keep looking for a better one
3412 ac_cv_path_GREP="$ac_path_GREP"
3413 ac_path_GREP_max=$ac_count
3415 # 10*(2^10) chars as input seems more than enough
3416 test $ac_count -gt 10 && break
3418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3421 $ac_path_GREP_found && break 3
3426 if test -z "$ac_cv_path_GREP"; then
3427 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3430 ac_cv_path_GREP=$GREP
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3435 $as_echo "$ac_cv_path_GREP" >&6; }
3436 GREP="$ac_cv_path_GREP"
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3440 $as_echo_n "checking for egrep... " >&6; }
3441 if ${ac_cv_path_EGREP+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3445 then ac_cv_path_EGREP="$GREP -E"
3447 if test -z "$EGREP"; then
3448 ac_path_EGREP_found=false
3449 # Loop through the user's path and test for each of PROGNAME-LIST
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3454 test -z "$as_dir" && as_dir=.
3455 for ac_prog in egrep; do
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3458 as_fn_executable_p "$ac_path_EGREP" || continue
3459 # Check for GNU ac_path_EGREP and select it if it is found.
3460 # Check for GNU $ac_path_EGREP
3461 case `"$ac_path_EGREP" --version 2>&1` in
3463 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3466 $as_echo_n 0123456789 >"conftest.in"
3469 cat "conftest.in" "conftest.in" >"conftest.tmp"
3470 mv "conftest.tmp" "conftest.in"
3471 cp "conftest.in" "conftest.nl"
3472 $as_echo 'EGREP' >> "conftest.nl"
3473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3475 as_fn_arith $ac_count + 1 && ac_count=$as_val
3476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3477 # Best one so far, save it but keep looking for a better one
3478 ac_cv_path_EGREP="$ac_path_EGREP"
3479 ac_path_EGREP_max=$ac_count
3481 # 10*(2^10) chars as input seems more than enough
3482 test $ac_count -gt 10 && break
3484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3487 $ac_path_EGREP_found && break 3
3492 if test -z "$ac_cv_path_EGREP"; then
3493 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3496 ac_cv_path_EGREP=$EGREP
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3502 $as_echo "$ac_cv_path_EGREP" >&6; }
3503 EGREP="$ac_cv_path_EGREP"
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3507 $as_echo_n "checking for ANSI C header files... " >&6; }
3508 if ${ac_cv_header_stdc+:} false; then :
3509 $as_echo_n "(cached) " >&6
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_cv_header_stdc=yes
3529 ac_cv_header_stdc=no
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 if test $ac_cv_header_stdc = yes; then
3534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 $EGREP "memchr" >/dev/null 2>&1; then :
3544 ac_cv_header_stdc=no
3550 if test $ac_cv_header_stdc = yes; then
3551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3558 $EGREP "free" >/dev/null 2>&1; then :
3561 ac_cv_header_stdc=no
3567 if test $ac_cv_header_stdc = yes; then
3568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3569 if test "$cross_compiling" = yes; then :
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3576 #if ((' ' & 0x0FF) == 0x020)
3577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3580 # define ISLOWER(c) \
3581 (('a' <= (c) && (c) <= 'i') \
3582 || ('j' <= (c) && (c) <= 'r') \
3583 || ('s' <= (c) && (c) <= 'z'))
3584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3592 for (i = 0; i < 256; i++)
3593 if (XOR (islower (i), ISLOWER (i))
3594 || toupper (i) != TOUPPER (i))
3599 if ac_fn_c_try_run "$LINENO"; then :
3602 ac_cv_header_stdc=no
3604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3605 conftest.$ac_objext conftest.beam conftest.$ac_ext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3611 $as_echo "$ac_cv_header_stdc" >&6; }
3612 if test $ac_cv_header_stdc = yes; then
3614 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3618 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3620 inttypes.h stdint.h unistd.h
3622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3623 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3626 cat >>confdefs.h <<_ACEOF
3627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3636 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3637 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3644 if test "$MINIX" = yes; then
3646 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3649 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3652 $as_echo "#define _MINIX 1" >>confdefs.h
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3658 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3659 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3665 # define __EXTENSIONS__ 1
3666 $ac_includes_default
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_safe_to_define___extensions__=yes
3678 ac_cv_safe_to_define___extensions__=no
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3683 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3684 test $ac_cv_safe_to_define___extensions__ = yes &&
3685 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3687 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3689 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3691 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3693 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3697 ac_cpp='$CPP $CPPFLAGS'
3698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3703 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if ${ac_cv_prog_CC+:} false; then :
3707 $as_echo_n "(cached) " >&6
3709 if test -n "$CC"; then
3710 ac_cv_prog_CC="$CC" # Let the user override the test.
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3740 if test -z "$ac_cv_prog_CC"; then
3742 # Extract the first word of "gcc", so it can be a program name with args.
3743 set dummy gcc; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$ac_ct_CC"; then
3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_ac_ct_CC="gcc"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3770 if test -n "$ac_ct_CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3772 $as_echo "$ac_ct_CC" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3778 if test "x$ac_ct_CC" = x; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3793 if test -z "$CC"; then
3794 if test -n "$ac_tool_prefix"; then
3795 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3796 set dummy ${ac_tool_prefix}cc; ac_word=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if ${ac_cv_prog_CC+:} false; then :
3800 $as_echo_n "(cached) " >&6
3802 if test -n "$CC"; then
3803 ac_cv_prog_CC="$CC" # Let the user override the test.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_CC="${ac_tool_prefix}cc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825 $as_echo "$CC" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3834 if test -z "$CC"; then
3835 # Extract the first word of "cc", so it can be a program name with args.
3836 set dummy cc; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if ${ac_cv_prog_CC+:} false; then :
3840 $as_echo_n "(cached) " >&6
3842 if test -n "$CC"; then
3843 ac_cv_prog_CC="$CC" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3854 ac_prog_rejected=yes
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 if test $ac_prog_rejected = yes; then
3866 # We found a bogon in the path, so make sure we never use it.
3867 set dummy $ac_cv_prog_CC
3869 if test $# != 0; then
3870 # We chose a different compiler from the bogus one.
3871 # However, it has the same basename, so the bogon will be chosen
3872 # first if we set CC to just the basename; use the full file name.
3874 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3880 if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882 $as_echo "$CC" >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3890 if test -z "$CC"; then
3891 if test -n "$ac_tool_prefix"; then
3892 for ac_prog in cl.exe
3894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if ${ac_cv_prog_CC+:} false; then :
3899 $as_echo_n "(cached) " >&6
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 if test -n "$CC"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3924 $as_echo "$CC" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3931 test -n "$CC" && break
3934 if test -z "$CC"; then
3936 for ac_prog in cl.exe
3938 # Extract the first word of "$ac_prog", so it can be a program name with args.
3939 set dummy $ac_prog; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 if test -n "$ac_ct_CC"; then
3946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_ac_ct_CC="$ac_prog"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3966 if test -n "$ac_ct_CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3968 $as_echo "$ac_ct_CC" >&6; }
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3975 test -n "$ac_ct_CC" && break
3978 if test "x$ac_ct_CC" = x; then
3981 case $cross_compiling:$ac_tool_warned in
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985 ac_tool_warned=yes ;;
3994 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "no acceptable C compiler found in \$PATH
3997 See \`config.log' for more details" "$LINENO" 5; }
3999 # Provide some information about the compiler.
4000 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4003 for ac_option in --version -v -V -qversion; do
4004 { { ac_try="$ac_compiler $ac_option >&5"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4013 if test -s conftest.err; then
4015 ... rest of stderr output deleted ...
4016 10q' conftest.err >conftest.er1
4017 cat conftest.er1 >&5
4019 rm -f conftest.er1 conftest.err
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4025 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4026 if ${ac_cv_c_compiler_gnu+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4043 if ac_fn_c_try_compile "$LINENO"; then :
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4053 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4054 if test $ac_compiler_gnu = yes; then
4059 ac_test_CFLAGS=${CFLAGS+set}
4060 ac_save_CFLAGS=$CFLAGS
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4062 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4063 if ${ac_cv_prog_cc_g+:} false; then :
4064 $as_echo_n "(cached) " >&6
4066 ac_save_c_werror_flag=$ac_c_werror_flag
4067 ac_c_werror_flag=yes
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4081 if ac_fn_c_try_compile "$LINENO"; then :
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4096 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_c_werror_flag=$ac_save_c_werror_flag
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile "$LINENO"; then :
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 ac_c_werror_flag=$ac_save_c_werror_flag
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4123 $as_echo "$ac_cv_prog_cc_g" >&6; }
4124 if test "$ac_test_CFLAGS" = set; then
4125 CFLAGS=$ac_save_CFLAGS
4126 elif test $ac_cv_prog_cc_g = yes; then
4127 if test "$GCC" = yes; then
4133 if test "$GCC" = yes; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4140 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4141 if ${ac_cv_prog_cc_c89+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 ac_cv_prog_cc_c89=no
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4152 struct buf { int x; };
4153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4154 static char *e (p, i)
4160 static char *f (char * (*g) (char **, int), char **p, ...)
4165 s = g (p, va_arg (v,int));
4170 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4171 function prototypes and stuff, but not '\xHH' hex character constants.
4172 These don't provoke an error unfortunately, instead are silently treated
4173 as 'x'. The following induces an error, until -std is added to get
4174 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4175 array size at least. It's necessary to write '\x00'==0 to get something
4176 that's true only with -std. */
4177 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4179 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4180 inside strings and character constants. */
4182 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4184 int test (int i, double x);
4185 struct s1 {int (*f) (int a);};
4186 struct s2 {int (*f) (double a);};
4187 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4193 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4198 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4199 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4201 CC="$ac_save_CC $ac_arg"
4202 if ac_fn_c_try_compile "$LINENO"; then :
4203 ac_cv_prog_cc_c89=$ac_arg
4205 rm -f core conftest.err conftest.$ac_objext
4206 test "x$ac_cv_prog_cc_c89" != "xno" && break
4208 rm -f conftest.$ac_ext
4213 case "x$ac_cv_prog_cc_c89" in
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4216 $as_echo "none needed" >&6; } ;;
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4219 $as_echo "unsupported" >&6; } ;;
4221 CC="$CC $ac_cv_prog_cc_c89"
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4223 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4225 if test "x$ac_cv_prog_cc_c89" != xno; then :
4230 ac_cpp='$CPP $CPPFLAGS'
4231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4236 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4237 if ${ac_cv_prog_cc_c99+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 ac_cv_prog_cc_c99=no
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4245 #include <stdbool.h>
4250 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4251 #define debug(...) fprintf (stderr, __VA_ARGS__)
4252 #define showlist(...) puts (#__VA_ARGS__)
4253 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4255 test_varargs_macros (void)
4260 debug ("X = %d\n", x);
4261 showlist (The first, second, and third items.);
4262 report (x>y, "x is %d but y is %d", x, y);
4265 // Check long long types.
4266 #define BIG64 18446744073709551615ull
4267 #define BIG32 4294967295ul
4268 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4270 your preprocessor is broken;
4274 your preprocessor is broken;
4276 static long long int bignum = -9223372036854775807LL;
4277 static unsigned long long int ubignum = BIG64;
4279 struct incomplete_array
4287 const wchar_t *name;
4291 typedef const char *ccp;
4294 test_restrict (ccp restrict text)
4296 // See if C++-style comments work.
4297 // Iterate through items via the restricted pointer.
4298 // Also check for declarations in for loops.
4299 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4304 // Check varargs and va_copy.
4306 test_varargs (const char *format, ...)
4309 va_start (args, format);
4311 va_copy (args_copy, args);
4322 str = va_arg (args_copy, const char *);
4325 number = va_arg (args_copy, int);
4328 fnumber = va_arg (args_copy, double);
4343 _Bool success = false;
4346 if (test_restrict ("String literal") == 0)
4348 char *restrict newvar = "Another string";
4351 test_varargs ("s, d' f .", "string", 65, 34.234);
4352 test_varargs_macros ();
4354 // Check flexible array members.
4355 struct incomplete_array *ia =
4356 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4358 for (int i = 0; i < ia->datasize; ++i)
4359 ia->data[i] = i * 1.234;
4361 // Check named initializers.
4362 struct named_init ni = {
4364 .name = L"Test wide string",
4365 .average = 543.34343,
4370 int dynamic_array[ni.number];
4371 dynamic_array[ni.number - 1] = 543;
4373 // work around unused variable warnings
4374 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4375 || dynamic_array[ni.number - 1] != 543);
4381 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4383 CC="$ac_save_CC $ac_arg"
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385 ac_cv_prog_cc_c99=$ac_arg
4387 rm -f core conftest.err conftest.$ac_objext
4388 test "x$ac_cv_prog_cc_c99" != "xno" && break
4390 rm -f conftest.$ac_ext
4395 case "x$ac_cv_prog_cc_c99" in
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4398 $as_echo "none needed" >&6; } ;;
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4401 $as_echo "unsupported" >&6; } ;;
4403 CC="$CC $ac_cv_prog_cc_c99"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4405 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4407 if test "x$ac_cv_prog_cc_c99" != xno; then :
4413 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4414 if test -f "$ac_dir/install-sh"; then
4416 ac_install_sh="$ac_aux_dir/install-sh -c"
4418 elif test -f "$ac_dir/install.sh"; then
4420 ac_install_sh="$ac_aux_dir/install.sh -c"
4422 elif test -f "$ac_dir/shtool"; then
4424 ac_install_sh="$ac_aux_dir/shtool install -c"
4428 if test -z "$ac_aux_dir"; then
4429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4432 # These three variables are undocumented and unsupported,
4433 # and are intended to be withdrawn in a future Autoconf release.
4434 # They can cause serious problems if a builder's source tree is in a directory
4435 # whose full name contains unusual characters.
4436 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4437 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4438 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4441 # Find a good install program. We prefer a C program (faster),
4442 # so one script is as good as another. But avoid the broken or
4443 # incompatible versions:
4444 # SysV /etc/install, /usr/sbin/install
4445 # SunOS /usr/etc/install
4446 # IRIX /sbin/install
4448 # AmigaOS /C/install, which installs bootblocks on floppy discs
4449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4452 # OS/2's system install, which has a completely different semantic
4453 # ./install, which can be erroneously created by make from ./install.sh.
4454 # Reject install programs that cannot install multiple files.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4457 if test -z "$INSTALL"; then
4458 if ${ac_cv_path_install+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 # Account for people who put trailing slashes in PATH elements.
4467 case $as_dir/ in #((
4468 ./ | .// | /[cC]/* | \
4469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4470 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4473 # OSF1 and SCO ODT 3.0 have their own names for install.
4474 # Don't use installbsd from OSF since it installs stuff as root
4476 for ac_prog in ginstall scoinst install; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4479 if test $ac_prog = install &&
4480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4481 # AIX install. It has an incompatible calling convention.
4483 elif test $ac_prog = install &&
4484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4485 # program-specific install script used by HP pwplus--don't use.
4488 rm -rf conftest.one conftest.two conftest.dir
4489 echo one > conftest.one
4490 echo two > conftest.two
4492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4493 test -s conftest.one && test -s conftest.two &&
4494 test -s conftest.dir/conftest.one &&
4495 test -s conftest.dir/conftest.two
4497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4510 rm -rf conftest.one conftest.two conftest.dir
4513 if test "${ac_cv_path_install+set}" = set; then
4514 INSTALL=$ac_cv_path_install
4516 # As a last resort, use the slow shell script. Don't cache a
4517 # value for INSTALL within a source directory, because that will
4518 # break other packages using the cache if that directory is
4519 # removed, or if the value is a relative name.
4520 INSTALL=$ac_install_sh
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4524 $as_echo "$INSTALL" >&6; }
4526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4527 # It thinks the first close brace ends the variable substitution.
4528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4534 if test -x /usr/bin/getconf; then
4535 bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4536 # only a numeric response is useful
4537 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4539 bmake_path_max=${bmake_path_max:-1024}
4540 if test $bmake_path_max -gt 1024; then
4541 # this is all we expect
4544 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4547 $as_echo_n "checking for ANSI C header files... " >&6; }
4548 if ${ac_cv_header_stdc+:} false; then :
4549 $as_echo_n "(cached) " >&6
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 ac_cv_header_stdc=yes
4569 ac_cv_header_stdc=no
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 if test $ac_cv_header_stdc = yes; then
4574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4581 $EGREP "memchr" >/dev/null 2>&1; then :
4584 ac_cv_header_stdc=no
4590 if test $ac_cv_header_stdc = yes; then
4591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "free" >/dev/null 2>&1; then :
4601 ac_cv_header_stdc=no
4607 if test $ac_cv_header_stdc = yes; then
4608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609 if test "$cross_compiling" = yes; then :
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 #if ((' ' & 0x0FF) == 0x020)
4617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4620 # define ISLOWER(c) \
4621 (('a' <= (c) && (c) <= 'i') \
4622 || ('j' <= (c) && (c) <= 'r') \
4623 || ('s' <= (c) && (c) <= 'z'))
4624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4632 for (i = 0; i < 256; i++)
4633 if (XOR (islower (i), ISLOWER (i))
4634 || toupper (i) != TOUPPER (i))
4639 if ac_fn_c_try_run "$LINENO"; then :
4642 ac_cv_header_stdc=no
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4645 conftest.$ac_objext conftest.beam conftest.$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4651 $as_echo "$ac_cv_header_stdc" >&6; }
4652 if test $ac_cv_header_stdc = yes; then
4654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4659 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4660 if ${ac_cv_header_sys_wait_h+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <sys/types.h>
4666 #include <sys/wait.h>
4668 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4671 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4679 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 ac_cv_header_sys_wait_h=yes
4687 ac_cv_header_sys_wait_h=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4692 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4693 if test $ac_cv_header_sys_wait_h = yes; then
4695 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4700 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4701 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4703 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4704 if eval \${$as_ac_Header+:} false; then :
4705 $as_echo_n "(cached) " >&6
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <sys/types.h>
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 eval "$as_ac_Header=yes"
4724 eval "$as_ac_Header=no"
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 eval ac_res=\$$as_ac_Header
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4730 $as_echo "$ac_res" >&6; }
4731 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4732 cat >>confdefs.h <<_ACEOF
4733 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4736 ac_header_dirent=$ac_hdr; break
4740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4741 if test $ac_header_dirent = dirent.h; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4743 $as_echo_n "checking for library containing opendir... " >&6; }
4744 if ${ac_cv_search_opendir+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 ac_func_search_save_LIBS=$LIBS
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4751 /* Override any GCC internal prototype to avoid an error.
4752 Use char because int might match the return type of a GCC
4753 builtin and then its argument prototype would still apply. */
4766 for ac_lib in '' dir; do
4767 if test -z "$ac_lib"; then
4768 ac_res="none required"
4771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4773 if ac_fn_c_try_link "$LINENO"; then :
4774 ac_cv_search_opendir=$ac_res
4776 rm -f core conftest.err conftest.$ac_objext \
4778 if ${ac_cv_search_opendir+:} false; then :
4782 if ${ac_cv_search_opendir+:} false; then :
4785 ac_cv_search_opendir=no
4788 LIBS=$ac_func_search_save_LIBS
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4791 $as_echo "$ac_cv_search_opendir" >&6; }
4792 ac_res=$ac_cv_search_opendir
4793 if test "$ac_res" != no; then :
4794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4800 $as_echo_n "checking for library containing opendir... " >&6; }
4801 if ${ac_cv_search_opendir+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 ac_func_search_save_LIBS=$LIBS
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4808 /* Override any GCC internal prototype to avoid an error.
4809 Use char because int might match the return type of a GCC
4810 builtin and then its argument prototype would still apply. */
4823 for ac_lib in '' x; do
4824 if test -z "$ac_lib"; then
4825 ac_res="none required"
4828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4830 if ac_fn_c_try_link "$LINENO"; then :
4831 ac_cv_search_opendir=$ac_res
4833 rm -f core conftest.err conftest.$ac_objext \
4835 if ${ac_cv_search_opendir+:} false; then :
4839 if ${ac_cv_search_opendir+:} false; then :
4842 ac_cv_search_opendir=no
4845 LIBS=$ac_func_search_save_LIBS
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4848 $as_echo "$ac_cv_search_opendir" >&6; }
4849 ac_res=$ac_cv_search_opendir
4850 if test "$ac_res" != no; then :
4851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4857 for ac_header in sys/param.h
4859 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4860 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4861 cat >>confdefs.h <<_ACEOF
4862 #define HAVE_SYS_PARAM_H 1
4869 for ac_header in sys/sysctl.h
4871 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
4872 # include <sys/param.h>
4876 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
4877 cat >>confdefs.h <<_ACEOF
4878 #define HAVE_SYS_SYSCTL_H 1
4905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4907 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4908 cat >>confdefs.h <<_ACEOF
4909 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4918 if test "x$ac_cv_header_sys_cdefs_h" = xyes; then :
4919 echo $ECHO_N "checking whether sys/cdefs.h is compatible... $ECHO_C" >&6
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 #include <sys/cdefs.h>
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "yes" >/dev/null 2>&1; then :
4932 echo no >&6; CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd` -DNEED_HOST_CDEFS_H"
4937 CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4944 $as_echo_n "checking for __attribute__... " >&6; }
4945 if ${ac_cv___attribute__+:} false; then :
4946 $as_echo_n "(cached) " >&6
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4954 static void foo(void) __attribute__ ((noreturn));
4963 main(int argc, char **argv)
4969 if ac_fn_c_try_link "$LINENO"; then :
4970 ac_cv___attribute__=yes
4972 ac_cv___attribute__=no
4974 rm -f core conftest.err conftest.$ac_objext \
4975 conftest$ac_exeext conftest.$ac_ext
4978 if test "$ac_cv___attribute__" = "yes"; then
4980 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4984 $as_echo "$ac_cv___attribute__" >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4987 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4988 if ${ac_cv_c_bigendian+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 ac_cv_c_bigendian=unknown
4992 # See if we're dealing with a universal compiler.
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995 #ifndef __APPLE_CC__
4996 not a universal capable compiler
5001 if ac_fn_c_try_compile "$LINENO"; then :
5003 # Check for potential -arch flags. It is not universal unless
5004 # there are at least two -arch flags with different values.
5007 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5008 if test -n "$ac_prev"; then
5010 i?86 | x86_64 | ppc | ppc64)
5011 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5014 ac_cv_c_bigendian=universal
5020 elif test "x$ac_word" = "x-arch"; then
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026 if test $ac_cv_c_bigendian = unknown; then
5027 # See if sys/param.h defines the BYTE_ORDER macro.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <sys/types.h>
5031 #include <sys/param.h>
5036 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5037 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 # It does; now see whether it defined to BIG_ENDIAN or not.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #include <sys/types.h>
5051 #include <sys/param.h>
5056 #if BYTE_ORDER != BIG_ENDIAN
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 ac_cv_c_bigendian=yes
5067 ac_cv_c_bigendian=no
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 if test $ac_cv_c_bigendian = unknown; then
5074 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5082 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5090 if ac_fn_c_try_compile "$LINENO"; then :
5091 # It does; now see whether it defined to _BIG_ENDIAN or not.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 ac_cv_c_bigendian=yes
5110 ac_cv_c_bigendian=no
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 if test $ac_cv_c_bigendian = unknown; then
5117 # Compile a test program.
5118 if test "$cross_compiling" = yes; then :
5119 # Try to guess by grepping values from an object file.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 short int ascii_mm[] =
5123 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5124 short int ascii_ii[] =
5125 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5126 int use_ascii (int i) {
5127 return ascii_mm[i] + ascii_ii[i];
5129 short int ebcdic_ii[] =
5130 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5131 short int ebcdic_mm[] =
5132 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5133 int use_ebcdic (int i) {
5134 return ebcdic_mm[i] + ebcdic_ii[i];
5141 return use_ascii (foo) == use_ebcdic (foo);
5146 if ac_fn_c_try_compile "$LINENO"; then :
5147 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5148 ac_cv_c_bigendian=yes
5150 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5151 if test "$ac_cv_c_bigendian" = unknown; then
5152 ac_cv_c_bigendian=no
5154 # finding both strings is unlikely to happen, but who knows?
5155 ac_cv_c_bigendian=unknown
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 $ac_includes_default
5168 /* Are we little or big endian? From Harbison&Steele. */
5172 char c[sizeof (long int)];
5175 return u.c[sizeof (long int) - 1] == 1;
5181 if ac_fn_c_try_run "$LINENO"; then :
5182 ac_cv_c_bigendian=no
5184 ac_cv_c_bigendian=yes
5186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5187 conftest.$ac_objext conftest.beam conftest.$ac_ext
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5193 $as_echo "$ac_cv_c_bigendian" >&6; }
5194 case $ac_cv_c_bigendian in #(
5196 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5202 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5206 as_fn_error $? "unknown endianness
5207 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5211 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5212 if ${ac_cv_c_const+:} false; then :
5213 $as_echo_n "(cached) " >&6
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5223 /* Ultrix mips cc rejects this sort of thing. */
5224 typedef int charset[2];
5225 const charset cs = { 0, 0 };
5226 /* SunOS 4.1.1 cc rejects this. */
5227 char const *const *pcpcc;
5229 /* NEC SVR4.0.2 mips cc rejects this. */
5230 struct point {int x, y;};
5231 static struct point const zero = {0,0};
5232 /* AIX XL C 1.02.0.0 rejects this.
5233 It does not let you subtract one const X* pointer from another in
5234 an arm of an if-expression whose if-part is not a constant
5236 const char *g = "string";
5237 pcpcc = &g + (g ? g-g : 0);
5238 /* HPUX 7.0 cc rejects these. */
5240 ppc = (char**) pcpcc;
5241 pcpcc = (char const *const *) ppc;
5242 { /* SCO 3.2v4 cc rejects this sort of thing. */
5245 char const *s = 0 ? (char *) 0 : (char const *) 0;
5250 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5252 const int *foo = &x[0];
5255 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5256 typedef const int *iptr;
5260 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5261 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5262 struct s { int j; const int *ap[3]; } bx;
5263 struct s *b = &bx; b->j = 5;
5265 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5269 return !cs[0] && !zero.x;
5276 if ac_fn_c_try_compile "$LINENO"; then :
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5284 $as_echo "$ac_cv_c_const" >&6; }
5285 if test $ac_cv_c_const = no; then
5287 $as_echo "#define const /**/" >>confdefs.h
5291 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5292 if test "x$ac_cv_type_mode_t" = xyes; then :
5296 cat >>confdefs.h <<_ACEOF
5302 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5303 if test "x$ac_cv_type_off_t" = xyes; then :
5307 cat >>confdefs.h <<_ACEOF
5308 #define off_t long int
5313 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5314 if test "x$ac_cv_type_pid_t" = xyes; then :
5318 cat >>confdefs.h <<_ACEOF
5324 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5325 if test "x$ac_cv_type_size_t" = xyes; then :
5329 cat >>confdefs.h <<_ACEOF
5330 #define size_t unsigned int
5335 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5336 case $ac_cv_c_uint32_t in #(
5340 $as_echo "#define _UINT32_T 1" >>confdefs.h
5343 cat >>confdefs.h <<_ACEOF
5344 #define uint32_t $ac_cv_c_uint32_t
5349 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5350 /* NetBSD declares sys_siglist in unistd.h. */
5351 #ifdef HAVE_UNISTD_H
5352 # include <unistd.h>
5356 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
5362 cat >>confdefs.h <<_ACEOF
5363 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5368 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5369 if ${ac_cv_header_time+:} false; then :
5370 $as_echo_n "(cached) " >&6
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374 #include <sys/types.h>
5375 #include <sys/time.h>
5381 if ((struct tm *) 0)
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_header_time=yes
5390 ac_cv_header_time=no
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5395 $as_echo "$ac_cv_header_time" >&6; }
5396 if test $ac_cv_header_time = yes; then
5398 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5403 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5404 if ${ac_cv_struct_tm+:} false; then :
5405 $as_echo_n "(cached) " >&6
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <sys/types.h>
5416 int *p = &tm.tm_sec;
5422 if ac_fn_c_try_compile "$LINENO"; then :
5423 ac_cv_struct_tm=time.h
5425 ac_cv_struct_tm=sys/time.h
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5430 $as_echo "$ac_cv_struct_tm" >&6; }
5431 if test $ac_cv_struct_tm = sys/time.h; then
5433 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5439 $as_echo_n "checking return type of signal handlers... " >&6; }
5440 if ${ac_cv_type_signal+:} false; then :
5441 $as_echo_n "(cached) " >&6
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <sys/types.h>
5451 return *(signal (0, 0)) (0) == 1;
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_type_signal=int
5459 ac_cv_type_signal=void
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5464 $as_echo "$ac_cv_type_signal" >&6; }
5466 cat >>confdefs.h <<_ACEOF
5467 #define RETSIGTYPE $ac_cv_type_signal
5471 for ac_header in vfork.h
5473 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5474 if test "x$ac_cv_header_vfork_h" = xyes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define HAVE_VFORK_H 1
5483 for ac_func in fork vfork
5485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5488 cat >>confdefs.h <<_ACEOF
5489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5495 if test "x$ac_cv_func_fork" = xyes; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5497 $as_echo_n "checking for working fork... " >&6; }
5498 if ${ac_cv_func_fork_works+:} false; then :
5499 $as_echo_n "(cached) " >&6
5501 if test "$cross_compiling" = yes; then :
5502 ac_cv_func_fork_works=cross
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 $ac_includes_default
5511 /* By Ruediger Kuhlmann. */
5518 if ac_fn_c_try_run "$LINENO"; then :
5519 ac_cv_func_fork_works=yes
5521 ac_cv_func_fork_works=no
5523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5524 conftest.$ac_objext conftest.beam conftest.$ac_ext
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5529 $as_echo "$ac_cv_func_fork_works" >&6; }
5532 ac_cv_func_fork_works=$ac_cv_func_fork
5534 if test "x$ac_cv_func_fork_works" = xcross; then
5536 *-*-amigaos* | *-*-msdosdjgpp*)
5537 # Override, as these systems have only a dummy fork() stub
5538 ac_cv_func_fork_works=no
5541 ac_cv_func_fork_works=yes
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5545 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5547 ac_cv_func_vfork_works=$ac_cv_func_vfork
5548 if test "x$ac_cv_func_vfork" = xyes; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5550 $as_echo_n "checking for working vfork... " >&6; }
5551 if ${ac_cv_func_vfork_works+:} false; then :
5552 $as_echo_n "(cached) " >&6
5554 if test "$cross_compiling" = yes; then :
5555 ac_cv_func_vfork_works=cross
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 /* Thanks to Paul Eggert for this test. */
5560 $ac_includes_default
5561 #include <sys/wait.h>
5565 /* On some sparc systems, changes by the child to local and incoming
5566 argument registers are propagated back to the parent. The compiler
5567 is told about this with #include <vfork.h>, but some compilers
5568 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5569 static variable whose address is put into a register that is
5570 clobbered by the vfork. */
5573 sparc_address_test (int arg)
5575 sparc_address_test (arg) int arg;
5596 pid_t parent = getpid ();
5599 sparc_address_test (0);
5604 /* Here is another test for sparc vfork register problems. This
5605 test uses lots of local variables, at least as many local
5606 variables as main has allocated so far including compiler
5607 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5608 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5609 reuse the register of parent for one of the local variables,
5610 since it will think that parent can't possibly be used any more
5611 in this routine. Assigning to the local variable will thus
5612 munge parent in the parent process. */
5614 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5615 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5616 /* Convince the compiler that p..p7 are live; otherwise, it might
5617 use the same hardware register for all 8 local variables. */
5618 if (p != p1 || p != p2 || p != p3 || p != p4
5619 || p != p5 || p != p6 || p != p7)
5622 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5623 from child file descriptors. If the child closes a descriptor
5624 before it execs or exits, this munges the parent's descriptor
5625 as well. Test for this by closing stdout in the child. */
5626 _exit(close(fileno(stdout)) != 0);
5631 while (wait(&status) != child)
5634 /* Was there some problem with vforking? */
5637 /* Did the child fail? (This shouldn't happen.) */
5640 /* Did the vfork/compiler bug occur? */
5641 || parent != getpid()
5643 /* Did the file descriptor bug occur? */
5644 || fstat(fileno(stdout), &st) != 0
5649 if ac_fn_c_try_run "$LINENO"; then :
5650 ac_cv_func_vfork_works=yes
5652 ac_cv_func_vfork_works=no
5654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5655 conftest.$ac_objext conftest.beam conftest.$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5660 $as_echo "$ac_cv_func_vfork_works" >&6; }
5663 if test "x$ac_cv_func_fork_works" = xcross; then
5664 ac_cv_func_vfork_works=$ac_cv_func_vfork
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5666 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5669 if test "x$ac_cv_func_vfork_works" = xyes; then
5671 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5675 $as_echo "#define vfork fork" >>confdefs.h
5678 if test "x$ac_cv_func_fork_works" = xyes; then
5680 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5684 for ac_func in vprintf
5686 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5687 if test "x$ac_cv_func_vprintf" = xyes; then :
5688 cat >>confdefs.h <<_ACEOF
5689 #define HAVE_VPRINTF 1
5692 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5693 if test "x$ac_cv_func__doprnt" = xyes; then :
5695 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5704 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5705 if ${ac_cv_func_wait3_rusage+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 if test "$cross_compiling" = yes; then :
5709 ac_cv_func_wait3_rusage=no
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 $ac_includes_default
5714 #include <sys/time.h>
5715 #include <sys/resource.h>
5716 #include <sys/wait.h>
5717 /* HP-UX has wait3 but does not fill in rusage at all. */
5723 /* Use a field that we can force nonzero --
5724 voluntary context switches.
5725 For systems like NeXT and OSF/1 that don't set it,
5726 also use the system CPU time. And page faults (I/O) for Linux. */
5728 r.ru_stime.tv_sec = 0;
5729 r.ru_stime.tv_usec = 0;
5730 r.ru_majflt = r.ru_minflt = 0;
5733 case 0: /* Child. */
5734 sleep(1); /* Give up the CPU. */
5737 case -1: /* What can we do? */
5740 default: /* Parent. */
5742 /* Avoid "text file busy" from rm on fast HP-UX machines. */
5744 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5745 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5749 if ac_fn_c_try_run "$LINENO"; then :
5750 ac_cv_func_wait3_rusage=yes
5752 ac_cv_func_wait3_rusage=no
5754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5755 conftest.$ac_objext conftest.beam conftest.$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5760 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
5761 if test $ac_cv_func_wait3_rusage = yes; then
5763 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
5799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5801 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5802 cat >>confdefs.h <<_ACEOF
5803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5810 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
5811 if test "x$ac_cv_func_realpath" = xyes; then :
5812 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
5815 case " $LIBOBJS " in
5816 *" realpath.$ac_objext "* ) ;;
5817 *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
5823 ac_fn_c_check_func "$LINENO" "dirname" "ac_cv_func_dirname"
5824 if test "x$ac_cv_func_dirname" = xyes; then :
5825 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
5828 case " $LIBOBJS " in
5829 *" dirname.$ac_objext "* ) ;;
5830 *) LIBOBJS="$LIBOBJS dirname.$ac_objext"
5836 ac_fn_c_check_func "$LINENO" "stresep" "ac_cv_func_stresep"
5837 if test "x$ac_cv_func_stresep" = xyes; then :
5838 $as_echo "#define HAVE_STRESEP 1" >>confdefs.h
5841 case " $LIBOBJS " in
5842 *" stresep.$ac_objext "* ) ;;
5843 *) LIBOBJS="$LIBOBJS stresep.$ac_objext"
5849 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5850 if test "x$ac_cv_func_strlcpy" = xyes; then :
5851 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
5854 case " $LIBOBJS " in
5855 *" strlcpy.$ac_objext "* ) ;;
5856 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
5865 $as_echo_n "checking for emalloc in -lutil... " >&6; }
5866 if ${ac_cv_lib_util_emalloc+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 ac_check_lib_save_LIBS=$LIBS
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5874 /* Override any GCC internal prototype to avoid an error.
5875 Use char because int might match the return type of a GCC
5876 builtin and then its argument prototype would still apply. */
5889 if ac_fn_c_try_link "$LINENO"; then :
5890 ac_cv_lib_util_emalloc=yes
5892 ac_cv_lib_util_emalloc=no
5894 rm -f core conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5896 LIBS=$ac_check_lib_save_LIBS
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
5899 $as_echo "$ac_cv_lib_util_emalloc" >&6; }
5900 if test "x$ac_cv_lib_util_emalloc" = xyes; then :
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
5902 $as_echo_n "checking for erealloc in -lutil... " >&6; }
5903 if ${ac_cv_lib_util_erealloc+:} false; then :
5904 $as_echo_n "(cached) " >&6
5906 ac_check_lib_save_LIBS=$LIBS
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5911 /* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
5926 if ac_fn_c_try_link "$LINENO"; then :
5927 ac_cv_lib_util_erealloc=yes
5929 ac_cv_lib_util_erealloc=no
5931 rm -f core conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
5936 $as_echo "$ac_cv_lib_util_erealloc" >&6; }
5937 if test "x$ac_cv_lib_util_erealloc" = xyes; then :
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
5939 $as_echo_n "checking for estrdup in -lutil... " >&6; }
5940 if ${ac_cv_lib_util_estrdup+:} false; then :
5941 $as_echo_n "(cached) " >&6
5943 ac_check_lib_save_LIBS=$LIBS
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5948 /* Override any GCC internal prototype to avoid an error.
5949 Use char because int might match the return type of a GCC
5950 builtin and then its argument prototype would still apply. */
5963 if ac_fn_c_try_link "$LINENO"; then :
5964 ac_cv_lib_util_estrdup=yes
5966 ac_cv_lib_util_estrdup=no
5968 rm -f core conftest.err conftest.$ac_objext \
5969 conftest$ac_exeext conftest.$ac_ext
5970 LIBS=$ac_check_lib_save_LIBS
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
5973 $as_echo "$ac_cv_lib_util_estrdup" >&6; }
5974 if test "x$ac_cv_lib_util_estrdup" = xyes; then :
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
5976 $as_echo_n "checking for estrndup in -lutil... " >&6; }
5977 if ${ac_cv_lib_util_estrndup+:} false; then :
5978 $as_echo_n "(cached) " >&6
5980 ac_check_lib_save_LIBS=$LIBS
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5985 /* Override any GCC internal prototype to avoid an error.
5986 Use char because int might match the return type of a GCC
5987 builtin and then its argument prototype would still apply. */
6000 if ac_fn_c_try_link "$LINENO"; then :
6001 ac_cv_lib_util_estrndup=yes
6003 ac_cv_lib_util_estrndup=no
6005 rm -f core conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext conftest.$ac_ext
6007 LIBS=$ac_check_lib_save_LIBS
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
6010 $as_echo "$ac_cv_lib_util_estrndup" >&6; }
6011 if test "x$ac_cv_lib_util_estrndup" = xyes; then :
6013 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6024 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6025 if ${ac_cv_header_stat_broken+:} false; then :
6026 $as_echo_n "(cached) " >&6
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 #include <sys/types.h>
6031 #include <sys/stat.h>
6033 #if defined S_ISBLK && defined S_IFDIR
6034 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6037 #if defined S_ISBLK && defined S_IFCHR
6038 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6041 #if defined S_ISLNK && defined S_IFREG
6042 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6045 #if defined S_ISSOCK && defined S_IFREG
6046 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6050 if ac_fn_c_try_compile "$LINENO"; then :
6051 ac_cv_header_stat_broken=no
6053 ac_cv_header_stat_broken=yes
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6058 $as_echo "$ac_cv_header_stat_broken" >&6; }
6059 if test $ac_cv_header_stat_broken = yes; then
6061 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6065 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6066 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6068 cat >>confdefs.h <<_ACEOF
6069 #define HAVE_STRUCT_STAT_ST_RDEV 1
6073 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6078 echo "checking if compiler supports __func__" >&6
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6091 const char *func = __func__;
6096 if ac_fn_c_try_compile "$LINENO"; then :
6100 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6
6105 if diff -u /dev/null /dev/null > /dev/null 2>&1; then
6112 echo "checking for MACHINE & MACHINE_ARCH..." >&6
6113 cat > conftest.$ac_ext <<EOF
6114 #include "confdefs.h"
6115 #include <sys/param.h>
6120 machine_arch=MACHINE_ARCH
6124 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125 egrep machine= | tr -d ' "'`
6127 if test "$default_machine"; then
6128 eval "$default_machine"
6130 machine=${machine:-`$srcdir/machine.sh`}
6131 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
6132 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6134 # Check whether --with-machine was given.
6135 if test "${with_machine+set}" = set; then :
6136 withval=$with_machine; case "${withval}" in
6137 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
6139 generic) machine=`$srcdir/machine.sh`;;
6140 *) machine=$with_machine;;
6146 # Check whether --with-force_machine was given.
6147 if test "${with_force_machine+set}" = set; then :
6148 withval=$with_force_machine; case "${withval}" in
6149 yes) force_machine=FORCE_;;
6151 *) force_machine=FORCE_; machine=$with_force_machine;;
6157 # Check whether --with-force_machine_arch was given.
6158 if test "${with_force_machine_arch+set}" = set; then :
6159 withval=$with_force_machine_arch; case "${withval}" in
6160 yes) force_machine_arch=FORCE_;;
6162 *) force_machine_arch=FORCE_; machine_arch=$with_force_machine;;
6167 # Check whether --with-machine_arch was given.
6168 if test "${with_machine_arch+set}" = set; then :
6169 withval=$with_machine_arch; case "${withval}" in
6170 yes) as_fn_error $? "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
6172 *) machine_arch=$with_machine_arch;;
6176 echo "Using: ${force_machine}MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
6177 default_sys_path=\${prefix}/share/mk
6179 # Check whether --with-default-sys-path was given.
6180 if test "${with_default_sys_path+set}" = set; then :
6181 withval=$with_default_sys_path; case "${withval}" in
6182 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
6184 *) default_sys_path="$with_default_sys_path"
6190 # Check whether --with-path-objdirprefix was given.
6191 if test "${with_path_objdirprefix+set}" = set; then :
6192 withval=$with_path_objdirprefix; case "${withval}" in
6193 yes) as_fn_error $? "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
6194 no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
6195 *) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
6199 # Check whether --enable-pwd-override was given.
6200 if test "${enable_pwd_override+set}" = set; then :
6201 enableval=$enable_pwd_override; case "${enableval}" in
6203 no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
6204 *) as_fn_error $? "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
6208 # Check whether --enable-check-make-chdir was given.
6209 if test "${enable_check_make_chdir+set}" = set; then :
6210 enableval=$enable_check_make_chdir; case "${enableval}" in
6212 no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
6213 *) as_fn_error $? "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
6218 # Check whether --with-mksrc was given.
6219 if test "${with_mksrc+set}" = set; then :
6220 withval=$with_mksrc; case "${withval}" in
6222 *) test -s $withval/install-mk && mksrc=$withval ||
6223 as_fn_error $? "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
6229 srcdir=`cd $srcdir && pwd`
6230 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
6232 test -s $mksrc/install-mk || continue
6233 mksrc=`cd $mksrc && pwd`
6236 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
6237 echo "Using: MKSRC=$mksrc" 1>&6
6238 if test -x /usr/xpg4/bin/sh; then
6239 defshell_path=${defshell_path:-/usr/xpg4/bin/sh}
6241 if test -n "$defshell_path"; then
6242 echo "Using: SHELL=$defshell_path" >&6
6244 cat >>confdefs.h <<_ACEOF
6245 #define DEFSHELL_CUSTOM "$defshell_path"
6249 if test -n "$DEFSHELL_INDEX"; then
6251 cat >>confdefs.h <<_ACEOF
6252 #define DEFSHELL_INDEX $DEFSHELL_INDEX
6268 bm_outfiles="Makefile.config unit-tests/Makefile.config make-bootstrap.sh"
6269 if test $use_makefile = yes; then
6270 bm_outfiles="makefile $bm_outfiles"
6272 ac_config_files="$ac_config_files $bm_outfiles"
6274 cat >confcache <<\_ACEOF
6275 # This file is a shell script that caches the results of configure
6276 # tests run on this system so they can be shared between configure
6277 # scripts and configure runs, see configure's option --config-cache.
6278 # It is not useful on other systems. If it contains results you don't
6279 # want to keep, you may remove or edit it.
6281 # config.status only pays attention to the cache file if you give it
6282 # the --recheck option to rerun configure.
6284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6290 # The following way of writing the cache mishandles newlines in values,
6291 # but we know of no workaround that is simple, portable, and efficient.
6292 # So, we kill variables containing newlines.
6293 # Ultrix sh set writes to stderr and can't be redirected directly,
6294 # and sets the high bit in the cache file unless we assign to the vars.
6296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6297 eval ac_val=\$$ac_var
6301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6305 _ | IFS | as_nl) ;; #(
6306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6307 *) { eval $ac_var=; unset $ac_var;} ;;
6313 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6314 *${as_nl}ac_space=\ *)
6315 # `set' does not quote correctly, so add quotes: double-quote
6316 # substitution turns \\\\ into \\, and sed turns \\ into \.
6319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6322 # `set' quotes correctly as required by POSIX, so do not add quotes.
6323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6336 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6337 if test -w "$cache_file"; then
6338 if test "x$cache_file" != "x/dev/null"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6340 $as_echo "$as_me: updating cache $cache_file" >&6;}
6341 if test ! -f "$cache_file" || test -h "$cache_file"; then
6342 cat confcache >"$cache_file"
6344 case $cache_file in #(
6346 mv -f confcache "$cache_file"$$ &&
6347 mv -f "$cache_file"$$ "$cache_file" ;; #(
6349 mv -f confcache "$cache_file" ;;
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6355 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6361 # Let make expand exec_prefix.
6362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6364 DEFS=-DHAVE_CONFIG_H
6369 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6370 # 1. Remove the extension, and $U if already installed.
6371 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6372 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6373 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6374 # will be set to the directory where LIBOBJS objects are built.
6375 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6376 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6380 LTLIBOBJS=$ac_ltlibobjs
6385 : "${CONFIG_STATUS=./config.status}"
6387 ac_clean_files_save=$ac_clean_files
6388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6394 # Generated by $as_me.
6395 # Run this file to recreate the current configuration.
6396 # Compiler output produced by configure, useful for debugging
6397 # configure, is in config.log if it exists.
6403 SHELL=\${CONFIG_SHELL-$SHELL}
6406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6407 ## -------------------- ##
6408 ## M4sh Initialization. ##
6409 ## -------------------- ##
6411 # Be more Bourne compatible
6412 DUALCASE=1; export DUALCASE # for MKS sh
6413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6417 # is contrary to our usage. Disable this feature.
6418 alias -g '${1+"$@"}'='"$@"'
6419 setopt NO_GLOB_SUBST
6421 case `(set -o) 2>/dev/null` in #(
6433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6434 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6437 # Prefer a ksh shell builtin over an external printf program on Solaris,
6438 # but without wasting forks for bash or zsh.
6439 if test -z "$BASH_VERSION$ZSH_VERSION" \
6440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6441 as_echo='print -r --'
6442 as_echo_n='print -rn --'
6443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6444 as_echo='printf %s\n'
6445 as_echo_n='printf %s'
6447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6449 as_echo_n='/usr/ucb/echo -n'
6451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6452 as_echo_n_body='eval
6456 expr "X$arg" : "X\\(.*\\)$as_nl";
6457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6461 export as_echo_n_body
6462 as_echo_n='sh -c $as_echo_n_body as_echo'
6465 as_echo='sh -c $as_echo_body as_echo'
6468 # The user is always right.
6469 if test "${PATH_SEPARATOR+set}" != set; then
6471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6479 # We need space, tab and new line, in precisely that order. Quoting is
6480 # there to prevent editors from complaining about space-tab.
6481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6482 # splitting by setting IFS to empty value.)
6485 # Find who we are. Look in the path if we contain no directory separator.
6488 *[\\/]* ) as_myself=$0 ;;
6489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6500 # We did not find ourselves, most probably we were run as `sh COMMAND'
6501 # in which case we are not to be found in the path.
6502 if test "x$as_myself" = x; then
6505 if test ! -f "$as_myself"; then
6506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6510 # Unset variables that we do not need and which cause bugs (e.g. in
6511 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6512 # suppresses any "Segmentation fault" message there. '((' could
6513 # trigger a bug in pdksh 5.2.14.
6514 for as_var in BASH_ENV ENV MAIL MAILPATH
6515 do eval test x\${$as_var+set} = xset \
6516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6532 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6533 # ----------------------------------------
6534 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6535 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6536 # script with STATUS, using 1 if that was 0.
6539 as_status=$1; test $as_status -eq 0 && as_status=1
6541 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6544 $as_echo "$as_me: error: $2" >&2
6545 as_fn_exit $as_status
6549 # as_fn_set_status STATUS
6550 # -----------------------
6551 # Set $? to STATUS, without forking.
6555 } # as_fn_set_status
6559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6569 # Portably unset VAR.
6572 { eval $1=; unset $1;}
6574 as_unset=as_fn_unset
6575 # as_fn_append VAR VALUE
6576 # ----------------------
6577 # Append the text in VALUE to the end of the definition contained in VAR. Take
6578 # advantage of any shell optimizations that allow amortized linear growth over
6579 # repeated appends, instead of the typical quadratic growth present in naive
6581 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6582 eval 'as_fn_append ()
6593 # as_fn_arith ARG...
6594 # ------------------
6595 # Perform arithmetic evaluation on the ARGs, and store the result in the
6596 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6597 # must be portable across $(()) and expr.
6598 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6599 eval 'as_fn_arith ()
6606 as_val=`expr "$@" || test $? -eq 1`
6611 if expr a : '\(a\)' >/dev/null 2>&1 &&
6612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6619 as_basename=basename
6624 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6630 as_me=`$as_basename -- "$0" ||
6631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6632 X"$0" : 'X\(//\)$' \| \
6633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6635 sed '/^.*\/\([^/][^/]*\)\/*$/{
6649 # Avoid depending upon Character Ranges.
6650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6653 as_cr_digits='0123456789'
6654 as_cr_alnum=$as_cr_Letters$as_cr_digits
6656 ECHO_C= ECHO_N= ECHO_T=
6657 case `echo -n x` in #(((((
6659 case `echo 'xy\c'` in
6660 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6669 rm -f conf$$ conf$$.exe conf$$.file
6670 if test -d conf$$.dir; then
6671 rm -f conf$$.dir/conf$$.file
6674 mkdir conf$$.dir 2>/dev/null
6676 if (echo >conf$$.file) 2>/dev/null; then
6677 if ln -s conf$$.file conf$$ 2>/dev/null; then
6679 # ... but there are two gotchas:
6680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6682 # In both cases, we have to default to `cp -pR'.
6683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6685 elif ln conf$$.file conf$$ 2>/dev/null; then
6693 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6694 rmdir conf$$.dir 2>/dev/null
6699 # Create "$as_dir" as a directory, including parents if necessary.
6704 -*) as_dir=./$as_dir;;
6706 test -d "$as_dir" || eval $as_mkdir_p || {
6710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6711 *) as_qdir=$as_dir;;
6713 as_dirs="'$as_qdir' $as_dirs"
6714 as_dir=`$as_dirname -- "$as_dir" ||
6715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6716 X"$as_dir" : 'X\(//\)[^/]' \| \
6717 X"$as_dir" : 'X\(//\)$' \| \
6718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6719 $as_echo X"$as_dir" |
6720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6737 test -d "$as_dir" && break
6739 test -z "$as_dirs" || eval "mkdir $as_dirs"
6740 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6744 if mkdir -p . 2>/dev/null; then
6745 as_mkdir_p='mkdir -p "$as_dir"'
6747 test -d ./-p && rmdir ./-p
6752 # as_fn_executable_p FILE
6753 # -----------------------
6754 # Test if FILE is an executable regular file.
6755 as_fn_executable_p ()
6757 test -f "$1" && test -x "$1"
6758 } # as_fn_executable_p
6760 as_executable_p=as_fn_executable_p
6762 # Sed expression to map a string onto a valid CPP name.
6763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6765 # Sed expression to map a string onto a valid variable name.
6766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6770 ## ----------------------------------- ##
6771 ## Main body of $CONFIG_STATUS script. ##
6772 ## ----------------------------------- ##
6774 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6777 # Save the log message, to keep $0 and so on meaningful, and to
6778 # report actual input values of CONFIG_FILES etc. instead of their
6779 # values after options handling.
6781 This file was extended by bmake $as_me 20200524, which was
6782 generated by GNU Autoconf 2.69. Invocation command line was
6784 CONFIG_FILES = $CONFIG_FILES
6785 CONFIG_HEADERS = $CONFIG_HEADERS
6786 CONFIG_LINKS = $CONFIG_LINKS
6787 CONFIG_COMMANDS = $CONFIG_COMMANDS
6790 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6795 case $ac_config_files in *"
6796 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6799 case $ac_config_headers in *"
6800 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6805 # Files that config.status was made for.
6806 config_files="$ac_config_files"
6807 config_headers="$ac_config_headers"
6811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6813 \`$as_me' instantiates files and other configuration actions
6814 from templates according to the current configuration. Unless the files
6815 and actions are specified as TAGs, all are instantiated by default.
6817 Usage: $0 [OPTION]... [TAG]...
6819 -h, --help print this help, then exit
6820 -V, --version print version number and configuration settings, then exit
6821 --config print configuration, then exit
6822 -q, --quiet, --silent
6823 do not print progress messages
6824 -d, --debug don't remove temporary files
6825 --recheck update $as_me by reconfiguring in the same conditions
6826 --file=FILE[:TEMPLATE]
6827 instantiate the configuration file FILE
6828 --header=FILE[:TEMPLATE]
6829 instantiate the configuration header FILE
6831 Configuration files:
6834 Configuration headers:
6837 Report bugs to <sjg@NetBSD.org>."
6840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6843 bmake config.status 20200524
6844 configured by $0, generated by GNU Autoconf 2.69,
6845 with options \\"\$ac_cs_config\\"
6847 Copyright (C) 2012 Free Software Foundation, Inc.
6848 This config.status script is free software; the Free Software Foundation
6849 gives unlimited permission to copy, distribute and modify it."
6854 test -n "\$AWK" || AWK=awk
6857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6858 # The default lists apply if the user does not specify any file.
6864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6865 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6869 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6881 # Handling of the options.
6882 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6884 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6885 $as_echo "$ac_cs_version"; exit ;;
6886 --config | --confi | --conf | --con | --co | --c )
6887 $as_echo "$ac_cs_config"; exit ;;
6888 --debug | --debu | --deb | --de | --d | -d )
6890 --file | --fil | --fi | --f )
6893 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6894 '') as_fn_error $? "missing file argument" ;;
6896 as_fn_append CONFIG_FILES " '$ac_optarg'"
6897 ac_need_defaults=false;;
6898 --header | --heade | --head | --hea )
6901 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6903 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6904 ac_need_defaults=false;;
6906 # Conflict between --help and --header
6907 as_fn_error $? "ambiguous option: \`$1'
6908 Try \`$0 --help' for more information.";;
6909 --help | --hel | -h )
6910 $as_echo "$ac_cs_usage"; exit ;;
6911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6912 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6916 -*) as_fn_error $? "unrecognized option: \`$1'
6917 Try \`$0 --help' for more information." ;;
6919 *) as_fn_append ac_config_targets " $1"
6920 ac_need_defaults=false ;;
6926 ac_configure_extra_args=
6928 if $ac_cs_silent; then
6930 ac_configure_extra_args="$ac_configure_extra_args --silent"
6934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6935 if \$ac_cs_recheck; then
6936 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6938 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6939 CONFIG_SHELL='$SHELL'
6945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6950 ## Running $as_me. ##
6956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6961 # Handling of arguments.
6962 for ac_config_target in $ac_config_targets
6964 case $ac_config_target in
6965 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6966 "$bm_outfiles") CONFIG_FILES="$CONFIG_FILES $bm_outfiles" ;;
6968 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6973 # If the user did not use the arguments to specify the items to instantiate,
6974 # then the envvar interface is used. Set only those that are not.
6975 # We use the long form for the default assignment because of an extremely
6976 # bizarre bug on SunOS 4.1.3.
6977 if $ac_need_defaults; then
6978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6982 # Have a temporary directory for convenience. Make it in the build tree
6983 # simply because there is no reason against having it here, and in addition,
6984 # creating and moving files from /tmp can sometimes cause problems.
6985 # Hook for its removal unless debugging.
6986 # Note that there is a small window in which the directory will not be cleaned:
6987 # after its creation but before its name has been assigned to `$tmp'.
6991 trap 'exit_status=$?
6993 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6995 trap 'as_fn_exit 1' 1 2 13 15
6997 # Create a (secure) tmp directory for tmp files.
7000 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7004 tmp=./conf$$-$RANDOM
7005 (umask 077 && mkdir "$tmp")
7006 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7009 # Set up the scripts for CONFIG_FILES section.
7010 # No need to generate them if there are no CONFIG_FILES.
7011 # This happens for instance with `./config.status config.h'.
7012 if test -n "$CONFIG_FILES"; then
7015 ac_cr=`echo X | tr X '\015'`
7016 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7017 # But we know of no other shell where ac_cr would be empty at this
7018 # point, so we can use a bashism as a fallback.
7019 if test "x$ac_cr" = x; then
7020 eval ac_cr=\$\'\\r\'
7022 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7023 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7029 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7034 echo "cat >conf$$subs.awk <<_ACEOF" &&
7035 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7038 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7039 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7041 for ac_last_try in false false false false false :; do
7042 . ./conf$$subs.sh ||
7043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7045 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7046 if test $ac_delim_n = $ac_delim_num; then
7048 elif $ac_last_try; then
7049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7051 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7057 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7061 s/^/S["/; s/!.*/"]=/
7071 s/\(.\{148\}\)..*/\1/
7073 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7078 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7085 s/\(.\{148\}\)..*/\1/
7087 s/["\\]/\\&/g; s/^/"/; s/$/"/
7091 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7096 ' <conf$$subs.awk | sed '
7101 ' >>$CONFIG_STATUS || ac_write_fail=1
7102 rm -f conf$$subs.awk
7103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7105 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7106 for (key in S) S_is_set[key] = 1
7112 nfields = split(line, field, "@")
7114 len = length(field[1])
7115 for (i = 2; i < nfields; i++) {
7117 keylen = length(key)
7118 if (S_is_set[key]) {
7120 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7121 len += length(value) + length(field[++i])
7132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7133 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7134 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7137 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7138 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7141 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7142 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7143 # trailing colons and then remove the whole line if VPATH becomes empty
7144 # (actually we leave an empty line to preserve line numbers).
7145 if test "x$srcdir" = x.; then
7146 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7165 fi # test -n "$CONFIG_FILES"
7167 # Set up the scripts for CONFIG_HEADERS section.
7168 # No need to generate them if there are no CONFIG_HEADERS.
7169 # This happens for instance with `./config.status Makefile'.
7170 if test -n "$CONFIG_HEADERS"; then
7171 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7175 # Transform confdefs.h into an awk script `defines.awk', embedded as
7176 # here-document in config.status, that substitutes the proper values into
7177 # config.h.in to produce config.h.
7179 # Create a delimiter string that does not exist in confdefs.h, to ease
7180 # handling of long lines.
7182 for ac_last_try in false false :; do
7183 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7184 if test -z "$ac_tt"; then
7186 elif $ac_last_try; then
7187 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7193 # For the awk script, D is an array of macro values keyed by name,
7194 # likewise P contains macro parameters if any. Preserve backslash
7195 # newline sequences.
7197 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7199 s/.\{148\}/&'"$ac_delim"'/g
7202 s/^[ ]*#[ ]*define[ ][ ]*/ /
7209 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7211 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7215 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7216 D["\1"]=" \3\\\\\\n"\\/p
7218 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7223 s/.\{148\}/&'"$ac_delim"'/g
7228 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7231 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7233 ' <confdefs.h | sed '
7234 s/'"$ac_delim"'/"\\\
7235 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7238 for (key in D) D_is_set[key] = 1
7241 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7243 split(line, arg, " ")
7244 if (arg[1] == "#") {
7248 defundef = substr(arg[1], 2)
7251 split(mac1, mac2, "(") #)
7253 prefix = substr(line, 1, index(line, defundef) - 1)
7254 if (D_is_set[macro]) {
7255 # Preserve the white space surrounding the "#".
7256 print prefix "define", macro P[macro] D[macro]
7259 # Replace #undef with comments. This is necessary, for example,
7260 # in the case of _POSIX_SOURCE, which is predefined and required
7261 # on some systems where configure will not decide to define it.
7262 if (defundef == "undef") {
7263 print "/*", prefix defundef, macro, "*/"
7271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7272 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7273 fi # test -n "$CONFIG_HEADERS"
7276 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7281 :[FHLC]) ac_mode=$ac_tag; continue;;
7283 case $ac_mode$ac_tag in
7285 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7286 :[FH]-) ac_tag=-:-;;
7287 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7304 -) ac_f="$ac_tmp/stdin";;
7305 *) # Look for the file first in the build tree, then in the source tree
7306 # (if the path is not absolute). The absolute path cannot be DOS-style,
7307 # because $ac_f cannot contain `:'.
7311 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7313 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7315 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7316 as_fn_append ac_file_inputs " '$ac_f'"
7319 # Let's still pretend it is `configure' which instantiates (i.e., don't
7320 # use $as_me), people would be surprised to read:
7321 # /* config.h. Generated by config.status. */
7322 configure_input='Generated from '`
7323 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7325 if test x"$ac_file" != x-; then
7326 configure_input="$ac_file. $configure_input"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7328 $as_echo "$as_me: creating $ac_file" >&6;}
7330 # Neutralize special characters interpreted by sed in replacement strings.
7331 case $configure_input in #(
7332 *\&* | *\|* | *\\* )
7333 ac_sed_conf_input=`$as_echo "$configure_input" |
7334 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7335 *) ac_sed_conf_input=$configure_input;;
7339 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7345 ac_dir=`$as_dirname -- "$ac_file" ||
7346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7347 X"$ac_file" : 'X\(//\)[^/]' \| \
7348 X"$ac_file" : 'X\(//\)$' \| \
7349 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7350 $as_echo X"$ac_file" |
7351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7368 as_dir="$ac_dir"; as_fn_mkdir_p
7372 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7375 # A ".." for each directory in $ac_dir_suffix.
7376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7377 case $ac_top_builddir_sub in
7378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7382 ac_abs_top_builddir=$ac_pwd
7383 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7384 # for backward compatibility:
7385 ac_top_builddir=$ac_top_build_prefix
7388 .) # We are building in place.
7390 ac_top_srcdir=$ac_top_builddir_sub
7391 ac_abs_top_srcdir=$ac_pwd ;;
7392 [\\/]* | ?:[\\/]* ) # Absolute name.
7393 ac_srcdir=$srcdir$ac_dir_suffix;
7394 ac_top_srcdir=$srcdir
7395 ac_abs_top_srcdir=$srcdir ;;
7397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7398 ac_top_srcdir=$ac_top_build_prefix$srcdir
7399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7401 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7411 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7412 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7417 # If the template does not know about datarootdir, expand it.
7418 # FIXME: This hack should be removed a few years after 2.60.
7419 ac_datarootdir_hack=; ac_datarootdir_seen=
7430 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7431 *datarootdir*) ac_datarootdir_seen=yes;;
7432 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7434 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7437 ac_datarootdir_hack='
7438 s&@datadir@&$datadir&g
7439 s&@docdir@&$docdir&g
7440 s&@infodir@&$infodir&g
7441 s&@localedir@&$localedir&g
7442 s&@mandir@&$mandir&g
7443 s&\\\${datarootdir}&$datarootdir&g' ;;
7447 # Neutralize VPATH when `$srcdir' = `.'.
7448 # Shell code in configure.ac might set extrasub.
7449 # FIXME: do we really want to maintain this feature?
7450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7451 ac_sed_extra="$ac_vpsub
7454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7457 s|@configure_input@|$ac_sed_conf_input|;t t
7458 s&@top_builddir@&$ac_top_builddir_sub&;t t
7459 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7460 s&@srcdir@&$ac_srcdir&;t t
7461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7462 s&@top_srcdir@&$ac_top_srcdir&;t t
7463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7464 s&@builddir@&$ac_builddir&;t t
7465 s&@abs_builddir@&$ac_abs_builddir&;t t
7466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7467 s&@INSTALL@&$ac_INSTALL&;t t
7468 $ac_datarootdir_hack
7470 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7471 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7473 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7474 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7475 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7476 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7478 which seems to be undefined. Please make sure it is defined" >&5
7479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7480 which seems to be undefined. Please make sure it is defined" >&2;}
7482 rm -f "$ac_tmp/stdin"
7484 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7485 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7493 if test x"$ac_file" != x-; then
7495 $as_echo "/* $configure_input */" \
7496 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7497 } >"$ac_tmp/config.h" \
7498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7499 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7501 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7504 mv "$ac_tmp/config.h" "$ac_file" \
7505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7508 $as_echo "/* $configure_input */" \
7509 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7510 || as_fn_error $? "could not create -" "$LINENO" 5
7522 ac_clean_files=$ac_clean_files_save
7524 test $ac_write_fail = 0 ||
7525 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7528 # configure is writing to config.log, and then calls config.status.
7529 # config.status does its own redirection, appending to config.log.
7530 # Unfortunately, on DOS this fails, as config.log is still kept open
7531 # by configure, so config.status won't be able to write to it; its
7532 # output is simply discarded. So we exec the FD to /dev/null,
7533 # effectively closing config.log, so it can be properly (re)opened and
7534 # appended to by config.status. When coming back to configure, we
7535 # need to make the FD available again.
7536 if test "$no_create" != yes; then
7538 ac_config_status_args=
7539 test "$silent" = yes &&
7540 ac_config_status_args="$ac_config_status_args --quiet"
7542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7545 # would make configure fail if this is the last instruction.
7546 $ac_cs_success || as_fn_exit 1
7548 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7550 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7557 sh ./make-bootstrap.sh
7559 to produce a fully functional bmake.