kernel - Intel user/kernel separation MMU bug fix part 2/3
[dragonfly.git] / contrib / bmake / configure
blob1a70f3d1bf3e256c38cbda1c8c5a26ee537f3499
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for bmake 20160606.
5 # Report bugs to <sjg@NetBSD.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # 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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
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.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and sjg@NetBSD.org
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='bmake'
551 PACKAGE_TARNAME='bmake'
552 PACKAGE_VERSION='20160606'
553 PACKAGE_STRING='bmake 20160606'
554 PACKAGE_BUGREPORT='sjg@NetBSD.org'
555 PACKAGE_URL=''
557 # Factoring default headers for most tests.
558 ac_includes_default="\
559 #include <stdio.h>
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
562 #endif
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
565 #endif
566 #ifdef STDC_HEADERS
567 # include <stdlib.h>
568 # include <stddef.h>
569 #else
570 # ifdef HAVE_STDLIB_H
571 # include <stdlib.h>
572 # endif
573 #endif
574 #ifdef HAVE_STRING_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
576 # include <memory.h>
577 # endif
578 # include <string.h>
579 #endif
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
582 #endif
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
585 #endif
586 #ifdef HAVE_STDINT_H
587 # include <stdint.h>
588 #endif
589 #ifdef HAVE_UNISTD_H
590 # include <unistd.h>
591 #endif"
593 ac_subst_vars='LTLIBOBJS
594 filemon_h
595 use_meta
596 diff_u
598 INSTALL
599 default_sys_path
600 mksrc
601 machine_arch
602 force_machine
603 machine
604 LIBOBJS
605 bmake_path_max
606 ac_exe_suffix
607 INSTALL_DATA
608 INSTALL_SCRIPT
609 INSTALL_PROGRAM
610 EGREP
611 GREP
613 OBJEXT
614 EXEEXT
615 ac_ct_CC
616 CPPFLAGS
617 LDFLAGS
618 CFLAGS
620 target_alias
621 host_alias
622 build_alias
623 LIBS
624 ECHO_T
625 ECHO_N
626 ECHO_C
627 DEFS
628 mandir
629 localedir
630 libdir
631 psdir
632 pdfdir
633 dvidir
634 htmldir
635 infodir
636 docdir
637 oldincludedir
638 includedir
639 localstatedir
640 sharedstatedir
641 sysconfdir
642 datadir
643 datarootdir
644 libexecdir
645 sbindir
646 bindir
647 program_transform_name
648 prefix
649 exec_prefix
650 PACKAGE_URL
651 PACKAGE_BUGREPORT
652 PACKAGE_STRING
653 PACKAGE_VERSION
654 PACKAGE_TARNAME
655 PACKAGE_NAME
656 PATH_SEPARATOR
657 SHELL'
658 ac_subst_files=''
659 ac_user_opts='
660 enable_option_checking
661 with_defshell
662 with_meta
663 with_filemon
664 with_machine
665 with_force_machine
666 with_force_machine_arch
667 with_machine_arch
668 with_default_sys_path
669 with_path_objdirprefix
670 enable_pwd_override
671 enable_check_make_chdir
672 with_mksrc
674 ac_precious_vars='build_alias
675 host_alias
676 target_alias
678 CFLAGS
679 LDFLAGS
680 LIBS
681 CPPFLAGS
682 CPP'
685 # Initialize some variables set by options.
686 ac_init_help=
687 ac_init_version=false
688 ac_unrecognized_opts=
689 ac_unrecognized_sep=
690 # The variables have the same names as the options, with
691 # dashes changed to underlines.
692 cache_file=/dev/null
693 exec_prefix=NONE
694 no_create=
695 no_recursion=
696 prefix=NONE
697 program_prefix=NONE
698 program_suffix=NONE
699 program_transform_name=s,x,x,
700 silent=
701 site=
702 srcdir=
703 verbose=
704 x_includes=NONE
705 x_libraries=NONE
707 # Installation directory options.
708 # These are left unexpanded so users can "make install exec_prefix=/foo"
709 # and all the variables that are supposed to be based on exec_prefix
710 # by default will actually change.
711 # Use braces instead of parens because sh, perl, etc. also accept them.
712 # (The list follows the same order as the GNU Coding Standards.)
713 bindir='${exec_prefix}/bin'
714 sbindir='${exec_prefix}/sbin'
715 libexecdir='${exec_prefix}/libexec'
716 datarootdir='${prefix}/share'
717 datadir='${datarootdir}'
718 sysconfdir='${prefix}/etc'
719 sharedstatedir='${prefix}/com'
720 localstatedir='${prefix}/var'
721 includedir='${prefix}/include'
722 oldincludedir='/usr/include'
723 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
724 infodir='${datarootdir}/info'
725 htmldir='${docdir}'
726 dvidir='${docdir}'
727 pdfdir='${docdir}'
728 psdir='${docdir}'
729 libdir='${exec_prefix}/lib'
730 localedir='${datarootdir}/locale'
731 mandir='${datarootdir}/man'
733 ac_prev=
734 ac_dashdash=
735 for ac_option
737 # If the previous option needs an argument, assign it.
738 if test -n "$ac_prev"; then
739 eval $ac_prev=\$ac_option
740 ac_prev=
741 continue
744 case $ac_option in
745 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
746 *) ac_optarg=yes ;;
747 esac
749 # Accept the important Cygnus configure options, so we can diagnose typos.
751 case $ac_dashdash$ac_option in
753 ac_dashdash=yes ;;
755 -bindir | --bindir | --bindi | --bind | --bin | --bi)
756 ac_prev=bindir ;;
757 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
758 bindir=$ac_optarg ;;
760 -build | --build | --buil | --bui | --bu)
761 ac_prev=build_alias ;;
762 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
763 build_alias=$ac_optarg ;;
765 -cache-file | --cache-file | --cache-fil | --cache-fi \
766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
767 ac_prev=cache_file ;;
768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
770 cache_file=$ac_optarg ;;
772 --config-cache | -C)
773 cache_file=config.cache ;;
775 -datadir | --datadir | --datadi | --datad)
776 ac_prev=datadir ;;
777 -datadir=* | --datadir=* | --datadi=* | --datad=*)
778 datadir=$ac_optarg ;;
780 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
781 | --dataroo | --dataro | --datar)
782 ac_prev=datarootdir ;;
783 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
784 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
785 datarootdir=$ac_optarg ;;
787 -disable-* | --disable-*)
788 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
791 as_fn_error "invalid feature name: $ac_useropt"
792 ac_useropt_orig=$ac_useropt
793 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
794 case $ac_user_opts in
796 "enable_$ac_useropt"
797 "*) ;;
798 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
799 ac_unrecognized_sep=', ';;
800 esac
801 eval enable_$ac_useropt=no ;;
803 -docdir | --docdir | --docdi | --doc | --do)
804 ac_prev=docdir ;;
805 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
806 docdir=$ac_optarg ;;
808 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
809 ac_prev=dvidir ;;
810 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
811 dvidir=$ac_optarg ;;
813 -enable-* | --enable-*)
814 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error "invalid feature name: $ac_useropt"
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
822 "enable_$ac_useropt"
823 "*) ;;
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
826 esac
827 eval enable_$ac_useropt=\$ac_optarg ;;
829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
831 | --exec | --exe | --ex)
832 ac_prev=exec_prefix ;;
833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
835 | --exec=* | --exe=* | --ex=*)
836 exec_prefix=$ac_optarg ;;
838 -gas | --gas | --ga | --g)
839 # Obsolete; use --with-gas.
840 with_gas=yes ;;
842 -help | --help | --hel | --he | -h)
843 ac_init_help=long ;;
844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
845 ac_init_help=recursive ;;
846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
847 ac_init_help=short ;;
849 -host | --host | --hos | --ho)
850 ac_prev=host_alias ;;
851 -host=* | --host=* | --hos=* | --ho=*)
852 host_alias=$ac_optarg ;;
854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
855 ac_prev=htmldir ;;
856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
857 | --ht=*)
858 htmldir=$ac_optarg ;;
860 -includedir | --includedir | --includedi | --included | --include \
861 | --includ | --inclu | --incl | --inc)
862 ac_prev=includedir ;;
863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
864 | --includ=* | --inclu=* | --incl=* | --inc=*)
865 includedir=$ac_optarg ;;
867 -infodir | --infodir | --infodi | --infod | --info | --inf)
868 ac_prev=infodir ;;
869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
870 infodir=$ac_optarg ;;
872 -libdir | --libdir | --libdi | --libd)
873 ac_prev=libdir ;;
874 -libdir=* | --libdir=* | --libdi=* | --libd=*)
875 libdir=$ac_optarg ;;
877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
878 | --libexe | --libex | --libe)
879 ac_prev=libexecdir ;;
880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
881 | --libexe=* | --libex=* | --libe=*)
882 libexecdir=$ac_optarg ;;
884 -localedir | --localedir | --localedi | --localed | --locale)
885 ac_prev=localedir ;;
886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
887 localedir=$ac_optarg ;;
889 -localstatedir | --localstatedir | --localstatedi | --localstated \
890 | --localstate | --localstat | --localsta | --localst | --locals)
891 ac_prev=localstatedir ;;
892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
894 localstatedir=$ac_optarg ;;
896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
897 ac_prev=mandir ;;
898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
899 mandir=$ac_optarg ;;
901 -nfp | --nfp | --nf)
902 # Obsolete; use --without-fp.
903 with_fp=no ;;
905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
906 | --no-cr | --no-c | -n)
907 no_create=yes ;;
909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
911 no_recursion=yes ;;
913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
915 | --oldin | --oldi | --old | --ol | --o)
916 ac_prev=oldincludedir ;;
917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
920 oldincludedir=$ac_optarg ;;
922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
923 ac_prev=prefix ;;
924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
925 prefix=$ac_optarg ;;
927 -program-prefix | --program-prefix | --program-prefi | --program-pref \
928 | --program-pre | --program-pr | --program-p)
929 ac_prev=program_prefix ;;
930 -program-prefix=* | --program-prefix=* | --program-prefi=* \
931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
932 program_prefix=$ac_optarg ;;
934 -program-suffix | --program-suffix | --program-suffi | --program-suff \
935 | --program-suf | --program-su | --program-s)
936 ac_prev=program_suffix ;;
937 -program-suffix=* | --program-suffix=* | --program-suffi=* \
938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
939 program_suffix=$ac_optarg ;;
941 -program-transform-name | --program-transform-name \
942 | --program-transform-nam | --program-transform-na \
943 | --program-transform-n | --program-transform- \
944 | --program-transform | --program-transfor \
945 | --program-transfo | --program-transf \
946 | --program-trans | --program-tran \
947 | --progr-tra | --program-tr | --program-t)
948 ac_prev=program_transform_name ;;
949 -program-transform-name=* | --program-transform-name=* \
950 | --program-transform-nam=* | --program-transform-na=* \
951 | --program-transform-n=* | --program-transform-=* \
952 | --program-transform=* | --program-transfor=* \
953 | --program-transfo=* | --program-transf=* \
954 | --program-trans=* | --program-tran=* \
955 | --progr-tra=* | --program-tr=* | --program-t=*)
956 program_transform_name=$ac_optarg ;;
958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
959 ac_prev=pdfdir ;;
960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
961 pdfdir=$ac_optarg ;;
963 -psdir | --psdir | --psdi | --psd | --ps)
964 ac_prev=psdir ;;
965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
966 psdir=$ac_optarg ;;
968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969 | -silent | --silent | --silen | --sile | --sil)
970 silent=yes ;;
972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
973 ac_prev=sbindir ;;
974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
975 | --sbi=* | --sb=*)
976 sbindir=$ac_optarg ;;
978 -sharedstatedir | --sharedstatedir | --sharedstatedi \
979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
980 | --sharedst | --shareds | --shared | --share | --shar \
981 | --sha | --sh)
982 ac_prev=sharedstatedir ;;
983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
986 | --sha=* | --sh=*)
987 sharedstatedir=$ac_optarg ;;
989 -site | --site | --sit)
990 ac_prev=site ;;
991 -site=* | --site=* | --sit=*)
992 site=$ac_optarg ;;
994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
995 ac_prev=srcdir ;;
996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
997 srcdir=$ac_optarg ;;
999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1000 | --syscon | --sysco | --sysc | --sys | --sy)
1001 ac_prev=sysconfdir ;;
1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1004 sysconfdir=$ac_optarg ;;
1006 -target | --target | --targe | --targ | --tar | --ta | --t)
1007 ac_prev=target_alias ;;
1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1009 target_alias=$ac_optarg ;;
1011 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1012 verbose=yes ;;
1014 -version | --version | --versio | --versi | --vers | -V)
1015 ac_init_version=: ;;
1017 -with-* | --with-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error "invalid package name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "with_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval with_$ac_useropt=\$ac_optarg ;;
1033 -without-* | --without-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error "invalid package name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "with_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval with_$ac_useropt=no ;;
1049 --x)
1050 # Obsolete; use --with-x.
1051 with_x=yes ;;
1053 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1054 | --x-incl | --x-inc | --x-in | --x-i)
1055 ac_prev=x_includes ;;
1056 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1057 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1058 x_includes=$ac_optarg ;;
1060 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1061 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1062 ac_prev=x_libraries ;;
1063 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1064 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1065 x_libraries=$ac_optarg ;;
1067 -*) as_fn_error "unrecognized option: \`$ac_option'
1068 Try \`$0 --help' for more information."
1071 *=*)
1072 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1073 # Reject names that are not valid shell variable names.
1074 case $ac_envvar in #(
1075 '' | [0-9]* | *[!_$as_cr_alnum]* )
1076 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1077 esac
1078 eval $ac_envvar=\$ac_optarg
1079 export $ac_envvar ;;
1082 # FIXME: should be removed in autoconf 3.0.
1083 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1084 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1086 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 esac
1090 done
1092 if test -n "$ac_prev"; then
1093 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1094 as_fn_error "missing argument to $ac_option"
1097 if test -n "$ac_unrecognized_opts"; then
1098 case $enable_option_checking in
1099 no) ;;
1100 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1101 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1102 esac
1105 # Check all directory arguments for consistency.
1106 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1107 datadir sysconfdir sharedstatedir localstatedir includedir \
1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1109 libdir localedir mandir
1111 eval ac_val=\$$ac_var
1112 # Remove trailing slashes.
1113 case $ac_val in
1114 */ )
1115 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1116 eval $ac_var=\$ac_val;;
1117 esac
1118 # Be sure to have absolute directory names.
1119 case $ac_val in
1120 [\\/$]* | ?:[\\/]* ) continue;;
1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1122 esac
1123 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1124 done
1126 # There might be people who depend on the old broken behavior: `$host'
1127 # used to hold the argument of --host etc.
1128 # FIXME: To remove some day.
1129 build=$build_alias
1130 host=$host_alias
1131 target=$target_alias
1133 # FIXME: To remove some day.
1134 if test "x$host_alias" != x; then
1135 if test "x$build_alias" = x; then
1136 cross_compiling=maybe
1137 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1138 If a cross compiler is detected then cross compile mode will be used." >&2
1139 elif test "x$build_alias" != "x$host_alias"; then
1140 cross_compiling=yes
1144 ac_tool_prefix=
1145 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1147 test "$silent" = yes && exec 6>/dev/null
1150 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1151 ac_ls_di=`ls -di .` &&
1152 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1153 as_fn_error "working directory cannot be determined"
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155 as_fn_error "pwd does not report name of working directory"
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$as_myself" ||
1163 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$as_myself" : 'X\(//\)[^/]' \| \
1165 X"$as_myself" : 'X\(//\)$' \| \
1166 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1167 $as_echo X"$as_myself" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/
1172 /^X\(\/\/\)[^/].*/{
1173 s//\1/
1176 /^X\(\/\/\)$/{
1177 s//\1/
1180 /^X\(\/\).*/{
1181 s//\1/
1184 s/.*/./; q'`
1185 srcdir=$ac_confdir
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 srcdir=..
1189 else
1190 ac_srcdir_defaulted=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1196 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 ac_abs_confdir=`(
1198 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1199 pwd)`
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 srcdir=.
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1207 case $srcdir in
1208 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209 esac
1210 for ac_var in $ac_precious_vars; do
1211 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_${ac_var}_value=\$${ac_var}
1213 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215 done
1218 # Report the --help message.
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1223 cat <<_ACEOF
1224 \`configure' configures bmake 20160606 to adapt to many kinds of systems.
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1231 Defaults for the options are specified in brackets.
1233 Configuration:
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1248 [PREFIX]
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1255 For better control, use the options below.
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/bmake]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1277 _ACEOF
1279 cat <<\_ACEOF
1280 _ACEOF
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short | recursive ) echo "Configuration of bmake 20160606:";;
1286 esac
1287 cat <<\_ACEOF
1289 Optional Features:
1290 --disable-option-checking ignore unrecognized --enable/--with options
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --disable-pwd-override disable \$PWD overriding getcwd()
1294 --disable-check-make-chdir disable make trying to guess
1295 when it should automatically cd \${.CURDIR}
1297 Optional Packages:
1298 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1299 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1300 --with-defshell=SHELL use SHELL by default - must be sh compatible, use sh or ksh to pick the internal definitions
1301 --without-meta dissable use of meta-mode
1302 --with-filemon=path/filemon.h indicate path to filemon.h for meta-mode
1303 --with-machine=MACHINE explicitly set MACHINE
1304 --with-force-machine=MACHINE set FORCE_MACHINE
1305 --with-force-machine-arch=MACHINE set FORCE_MACHINE_ARCH
1306 --with-machine_arch=MACHINE_ARCH explicitly set MACHINE_ARCH
1307 --with-default-sys-path=PATH:DIR:LIST use an explicit _PATH_DEFSYSPATH
1308 MAKESYSPATH is a ':' separated list of directories
1309 that bmake will search for system .mk files.
1310 _PATH_DEFSYSPATH is its default value.
1311 --with-path-objdirprefix=PATH override _PATH_OBJDIRPREFIX
1312 --with-mksrc=PATH tell makefile.boot where to find mk src
1314 Some influential environment variables:
1315 CC C compiler command
1316 CFLAGS C compiler flags
1317 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1318 nonstandard directory <lib dir>
1319 LIBS libraries to pass to the linker, e.g. -l<library>
1320 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1321 you have headers in a nonstandard directory <include dir>
1322 CPP C preprocessor
1324 Use these variables to override the choices made by `configure' or to help
1325 it to find libraries and programs with nonstandard names/locations.
1327 Report bugs to <sjg@NetBSD.org>.
1328 _ACEOF
1329 ac_status=$?
1332 if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help.
1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335 test -d "$ac_dir" ||
1336 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1337 continue
1338 ac_builddir=.
1340 case "$ac_dir" in
1341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1344 # A ".." for each directory in $ac_dir_suffix.
1345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1346 case $ac_top_builddir_sub in
1347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1349 esac ;;
1350 esac
1351 ac_abs_top_builddir=$ac_pwd
1352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1353 # for backward compatibility:
1354 ac_top_builddir=$ac_top_build_prefix
1356 case $srcdir in
1357 .) # We are building in place.
1358 ac_srcdir=.
1359 ac_top_srcdir=$ac_top_builddir_sub
1360 ac_abs_top_srcdir=$ac_pwd ;;
1361 [\\/]* | ?:[\\/]* ) # Absolute name.
1362 ac_srcdir=$srcdir$ac_dir_suffix;
1363 ac_top_srcdir=$srcdir
1364 ac_abs_top_srcdir=$srcdir ;;
1365 *) # Relative name.
1366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1367 ac_top_srcdir=$ac_top_build_prefix$srcdir
1368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1369 esac
1370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372 cd "$ac_dir" || { ac_status=$?; continue; }
1373 # Check for guested configure.
1374 if test -f "$ac_srcdir/configure.gnu"; then
1375 echo &&
1376 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1377 elif test -f "$ac_srcdir/configure"; then
1378 echo &&
1379 $SHELL "$ac_srcdir/configure" --help=recursive
1380 else
1381 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1382 fi || ac_status=$?
1383 cd "$ac_pwd" || { ac_status=$?; break; }
1384 done
1387 test -n "$ac_init_help" && exit $ac_status
1388 if $ac_init_version; then
1389 cat <<\_ACEOF
1390 bmake configure 20160606
1391 generated by GNU Autoconf 2.64
1393 Copyright (C) 2009 Free Software Foundation, Inc.
1394 This configure script is free software; the Free Software Foundation
1395 gives unlimited permission to copy, distribute and modify it.
1396 _ACEOF
1397 exit
1400 ## ------------------------ ##
1401 ## Autoconf initialization. ##
1402 ## ------------------------ ##
1404 # ac_fn_c_try_compile LINENO
1405 # --------------------------
1406 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1407 ac_fn_c_try_compile ()
1409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1410 rm -f conftest.$ac_objext
1411 if { { ac_try="$ac_compile"
1412 case "(($ac_try" in
1413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1414 *) ac_try_echo=$ac_try;;
1415 esac
1416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1417 $as_echo "$ac_try_echo"; } >&5
1418 (eval "$ac_compile") 2>conftest.err
1419 ac_status=$?
1420 if test -s conftest.err; then
1421 grep -v '^ *+' conftest.err >conftest.er1
1422 cat conftest.er1 >&5
1423 mv -f conftest.er1 conftest.err
1425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1426 test $ac_status = 0; } && {
1427 test -z "$ac_c_werror_flag" ||
1428 test ! -s conftest.err
1429 } && test -s conftest.$ac_objext; then :
1430 ac_retval=0
1431 else
1432 $as_echo "$as_me: failed program was:" >&5
1433 sed 's/^/| /' conftest.$ac_ext >&5
1435 ac_retval=1
1437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1438 return $ac_retval
1440 } # ac_fn_c_try_compile
1442 # ac_fn_c_try_cpp LINENO
1443 # ----------------------
1444 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1445 ac_fn_c_try_cpp ()
1447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448 if { { ac_try="$ac_cpp conftest.$ac_ext"
1449 case "(($ac_try" in
1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451 *) ac_try_echo=$ac_try;;
1452 esac
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1456 ac_status=$?
1457 if test -s conftest.err; then
1458 grep -v '^ *+' conftest.err >conftest.er1
1459 cat conftest.er1 >&5
1460 mv -f conftest.er1 conftest.err
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } >/dev/null && {
1464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1466 }; then :
1467 ac_retval=0
1468 else
1469 $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1472 ac_retval=1
1474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475 return $ac_retval
1477 } # ac_fn_c_try_cpp
1479 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1480 # -------------------------------------------------------
1481 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1482 # the include files in INCLUDES and setting the cache variable VAR
1483 # accordingly.
1484 ac_fn_c_check_header_mongrel ()
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1489 $as_echo_n "checking for $2... " >&6; }
1490 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1491 $as_echo_n "(cached) " >&6
1493 eval ac_res=\$$3
1494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1495 $as_echo "$ac_res" >&6; }
1496 else
1497 # Is the header compilable?
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1499 $as_echo_n "checking $2 usability... " >&6; }
1500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1501 /* end confdefs.h. */
1503 #include <$2>
1504 _ACEOF
1505 if ac_fn_c_try_compile "$LINENO"; then :
1506 ac_header_compiler=yes
1507 else
1508 ac_header_compiler=no
1510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1512 $as_echo "$ac_header_compiler" >&6; }
1514 # Is the header present?
1515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1516 $as_echo_n "checking $2 presence... " >&6; }
1517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1518 /* end confdefs.h. */
1519 #include <$2>
1520 _ACEOF
1521 if ac_fn_c_try_cpp "$LINENO"; then :
1522 ac_header_preproc=yes
1523 else
1524 ac_header_preproc=no
1526 rm -f conftest.err conftest.$ac_ext
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1528 $as_echo "$ac_header_preproc" >&6; }
1530 # So? What about this header?
1531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1532 yes:no: )
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1534 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1536 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1538 no:yes:* )
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1540 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1542 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1544 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1546 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1548 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1549 ( cat <<\_ASBOX
1550 ## ----------------------------- ##
1551 ## Report this to sjg@NetBSD.org ##
1552 ## ----------------------------- ##
1553 _ASBOX
1554 ) | sed "s/^/$as_me: WARNING: /" >&2
1556 esac
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558 $as_echo_n "checking for $2... " >&6; }
1559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1560 $as_echo_n "(cached) " >&6
1561 else
1562 eval "$3=\$ac_header_compiler"
1564 eval ac_res=\$$3
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566 $as_echo "$ac_res" >&6; }
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 } # ac_fn_c_check_header_mongrel
1572 # ac_fn_c_try_run LINENO
1573 # ----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1575 # that executables *can* be run.
1576 ac_fn_c_try_run ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_link"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>&5
1587 ac_status=$?
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1590 { { case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_try") 2>&5
1597 ac_status=$?
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; }; }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: program exited with status $ac_status" >&5
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=$ac_status
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1612 } # ac_fn_c_try_run
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632 eval "$3=yes"
1633 else
1634 eval "$3=no"
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_compile
1645 # ac_fn_c_try_link LINENO
1646 # -----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_link ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 rm -f conftest.$ac_objext conftest$ac_exeext
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>conftest.err
1660 ac_status=$?
1661 if test -s conftest.err; then
1662 grep -v '^ *+' conftest.err >conftest.er1
1663 cat conftest.er1 >&5
1664 mv -f conftest.er1 conftest.err
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && {
1668 test -z "$ac_c_werror_flag" ||
1669 test ! -s conftest.err
1670 } && test -s conftest$ac_exeext && {
1671 test "$cross_compiling" = yes ||
1672 $as_test_x conftest$ac_exeext
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=1
1681 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1682 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1683 # interfere with the next link command; also delete a directory that is
1684 # left behind by Apple's compiler. We do this before executing the actions.
1685 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687 return $ac_retval
1689 } # ac_fn_c_try_link
1691 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1692 # -------------------------------------------
1693 # Tests whether TYPE exists after having included INCLUDES, setting cache
1694 # variable VAR accordingly.
1695 ac_fn_c_check_type ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 eval "$3=no"
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1708 main ()
1710 if (sizeof ($2))
1711 return 0;
1713 return 0;
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1721 main ()
1723 if (sizeof (($2)))
1724 return 0;
1726 return 0;
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1731 else
1732 eval "$3=yes"
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 } # ac_fn_c_check_type
1745 # ac_fn_c_find_uintX_t LINENO BITS VAR
1746 # ------------------------------------
1747 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1748 # accordingly.
1749 ac_fn_c_find_uintX_t ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1753 $as_echo_n "checking for uint$2_t... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 eval "$3=no"
1758 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1759 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 $ac_includes_default
1764 main ()
1766 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1767 test_array [0] = 0
1770 return 0;
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 case $ac_type in #(
1775 uint$2_t) :
1776 eval "$3=yes" ;; #(
1777 *) :
1778 eval "$3=\$ac_type" ;;
1779 esac
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 eval as_val=\$$3
1783 if test "x$as_val" = x""no; then :
1785 else
1786 break
1788 done
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 } # ac_fn_c_find_uintX_t
1797 # ac_fn_c_check_decl LINENO SYMBOL VAR
1798 # ------------------------------------
1799 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1800 ac_fn_c_check_decl ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1804 $as_echo_n "checking whether $2 is declared... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1812 main ()
1814 #ifndef $2
1815 (void) $2;
1816 #endif
1819 return 0;
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_decl
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1864 #undef $2
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1881 main ()
1883 return $2 ();
1885 return 0;
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 } # ac_fn_c_check_func
1903 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1904 # ----------------------------------------------------
1905 # Tries to find if the field MEMBER exists in type AGGR, after including
1906 # INCLUDES, setting cache variable VAR accordingly.
1907 ac_fn_c_check_member ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1911 $as_echo_n "checking for $2.$3... " >&6; }
1912 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 main ()
1921 static $2 ac_aggr;
1922 if (ac_aggr.$3)
1923 return 0;
1925 return 0;
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$4=yes"
1930 else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1935 main ()
1937 static $2 ac_aggr;
1938 if (sizeof ac_aggr.$3)
1939 return 0;
1941 return 0;
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945 eval "$4=yes"
1946 else
1947 eval "$4=no"
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 eval ac_res=\$$4
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 } # ac_fn_c_check_member
1959 cat >config.log <<_ACEOF
1960 This file contains any messages produced by compilers while
1961 running configure, to aid debugging if configure makes a mistake.
1963 It was created by bmake $as_me 20160606, which was
1964 generated by GNU Autoconf 2.64. Invocation command line was
1966 $ $0 $@
1968 _ACEOF
1969 exec 5>>config.log
1971 cat <<_ASUNAME
1972 ## --------- ##
1973 ## Platform. ##
1974 ## --------- ##
1976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1988 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1993 _ASUNAME
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 $as_echo "PATH: $as_dir"
2001 done
2002 IFS=$as_save_IFS
2004 } >&5
2006 cat >&5 <<_ACEOF
2009 ## ----------- ##
2010 ## Core tests. ##
2011 ## ----------- ##
2013 _ACEOF
2016 # Keep a trace of the command line.
2017 # Strip out --no-create and --no-recursion so they do not pile up.
2018 # Strip out --silent because we don't want to record it for future runs.
2019 # Also quote any args containing shell meta-characters.
2020 # Make two passes to allow for proper duplicate-argument suppression.
2021 ac_configure_args=
2022 ac_configure_args0=
2023 ac_configure_args1=
2024 ac_must_keep_next=false
2025 for ac_pass in 1 2
2027 for ac_arg
2029 case $ac_arg in
2030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032 | -silent | --silent | --silen | --sile | --sil)
2033 continue ;;
2034 *\'*)
2035 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2036 esac
2037 case $ac_pass in
2038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040 as_fn_append ac_configure_args1 " '$ac_arg'"
2041 if test $ac_must_keep_next = true; then
2042 ac_must_keep_next=false # Got value, back to normal.
2043 else
2044 case $ac_arg in
2045 *=* | --config-cache | -C | -disable-* | --disable-* \
2046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2048 | -with-* | --with-* | -without-* | --without-* | --x)
2049 case "$ac_configure_args0 " in
2050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051 esac
2053 -* ) ac_must_keep_next=true ;;
2054 esac
2056 as_fn_append ac_configure_args " '$ac_arg'"
2058 esac
2059 done
2060 done
2061 { ac_configure_args0=; unset ac_configure_args0;}
2062 { ac_configure_args1=; unset ac_configure_args1;}
2064 # When interrupted or exit'd, cleanup temporary files, and complete
2065 # config.log. We remove comments because anyway the quotes in there
2066 # would cause problems or look ugly.
2067 # WARNING: Use '\'' to represent an apostrophe within the trap.
2068 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2069 trap 'exit_status=$?
2070 # Save into config.log some information that might help in debugging.
2072 echo
2074 cat <<\_ASBOX
2075 ## ---------------- ##
2076 ## Cache variables. ##
2077 ## ---------------- ##
2078 _ASBOX
2079 echo
2080 # The following way of writing the cache mishandles newlines in values,
2082 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in #(
2085 *${as_nl}*)
2086 case $ac_var in #(
2087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2088 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2089 esac
2090 case $ac_var in #(
2091 _ | IFS | as_nl) ;; #(
2092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2093 *) { eval $ac_var=; unset $ac_var;} ;;
2094 esac ;;
2095 esac
2096 done
2097 (set) 2>&1 |
2098 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099 *${as_nl}ac_space=\ *)
2100 sed -n \
2101 "s/'\''/'\''\\\\'\'''\''/g;
2102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2103 ;; #(
2105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2107 esac |
2108 sort
2110 echo
2112 cat <<\_ASBOX
2113 ## ----------------- ##
2114 ## Output variables. ##
2115 ## ----------------- ##
2116 _ASBOX
2117 echo
2118 for ac_var in $ac_subst_vars
2120 eval ac_val=\$$ac_var
2121 case $ac_val in
2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123 esac
2124 $as_echo "$ac_var='\''$ac_val'\''"
2125 done | sort
2126 echo
2128 if test -n "$ac_subst_files"; then
2129 cat <<\_ASBOX
2130 ## ------------------- ##
2131 ## File substitutions. ##
2132 ## ------------------- ##
2133 _ASBOX
2134 echo
2135 for ac_var in $ac_subst_files
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
2142 done | sort
2143 echo
2146 if test -s confdefs.h; then
2147 cat <<\_ASBOX
2148 ## ----------- ##
2149 ## confdefs.h. ##
2150 ## ----------- ##
2151 _ASBOX
2152 echo
2153 cat confdefs.h
2154 echo
2156 test "$ac_signal" != 0 &&
2157 $as_echo "$as_me: caught signal $ac_signal"
2158 $as_echo "$as_me: exit $exit_status"
2159 } >&5
2160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2162 exit $exit_status
2164 for ac_signal in 1 2 13 15; do
2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2166 done
2167 ac_signal=0
2169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2170 rm -f -r conftest* confdefs.h
2172 $as_echo "/* confdefs.h */" > confdefs.h
2174 # Predefined preprocessor variables.
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_NAME "$PACKAGE_NAME"
2178 _ACEOF
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182 _ACEOF
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_STRING "$PACKAGE_STRING"
2190 _ACEOF
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_URL "$PACKAGE_URL"
2198 _ACEOF
2201 # Let the site file select an alternate cache file if it wants to.
2202 # Prefer an explicitly selected file to automatically selected ones.
2203 ac_site_file1=NONE
2204 ac_site_file2=NONE
2205 if test -n "$CONFIG_SITE"; then
2206 ac_site_file1=$CONFIG_SITE
2207 elif test "x$prefix" != xNONE; then
2208 ac_site_file1=$prefix/share/config.site
2209 ac_site_file2=$prefix/etc/config.site
2210 else
2211 ac_site_file1=$ac_default_prefix/share/config.site
2212 ac_site_file2=$ac_default_prefix/etc/config.site
2214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2216 test "x$ac_site_file" = xNONE && continue
2217 if test -r "$ac_site_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220 sed 's/^/| /' "$ac_site_file" >&5
2221 . "$ac_site_file"
2223 done
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special
2227 # files actually), so we avoid doing that.
2228 if test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231 case $cache_file in
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
2234 esac
2236 else
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2239 >$cache_file
2242 # Check that the precious variables saved in the cache have kept the same
2243 # value.
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2251 set,)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,set)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,);;
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2278 fi;;
2279 esac
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2282 case $ac_new_val in
2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg=$ac_var=$ac_new_val ;;
2285 esac
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2289 esac
2291 done
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 ac_config_headers="$ac_config_headers config.h"
2313 case "$srcdir" in
2314 /*) ;;
2315 *) srcdir=`cd $srcdir && pwd`;;
2316 esac
2319 # Check whether --with-defshell was given.
2320 if test "${with_defshell+set}" = set; then :
2321 withval=$with_defshell; case "${withval}" in
2322 yes) as_fn_error "bad value ${withval} given for bmake DEFSHELL" "$LINENO" 5 ;;
2323 no) ;;
2324 *) case "$with_defshell" in
2325 sh) DEFSHELL_INDEX=DEFSHELL_INDEX_SH;; # it's the default anyway
2326 ksh) DEFSHELL_INDEX=DEFSHELL_INDEX_KSH;;
2327 csh) DEFSHELL_INDEX=DEFSHELL_INDEX_CSH;; # kidding right?
2328 *) defshell_path=$with_defshell;; # better be sh compatible!
2329 esac
2331 esac
2334 use_meta=yes
2336 # Check whether --with-meta was given.
2337 if test "${with_meta+set}" = set; then :
2338 withval=$with_meta; case "${withval}" in
2339 yes|no) use_meta=${withval};;
2340 *) as_fn_error "bad value ${withval} given for meta" "$LINENO" 5 ;;
2341 esac
2345 # Check whether --with-filemon was given.
2346 if test "${with_filemon+set}" = set; then :
2347 withval=$with_filemon; case "/${withval}" in
2348 /no|*/filemon.h) filemon_h="${withval}";;
2349 */filemon*) filemon_h="${withval}/filemon.h";;
2350 *) as_fn_error "bad value ${withval} given for filemon" "$LINENO" 5 ;;
2351 esac
2352 else
2354 OS=`uname -s`
2355 for d in "/usr/include/dev/filemon" "$prefix/include/dev/filemon" "$srcdir/filemon" "$srcdir/../filemon" "$srcdir/../../sys/dev/filemon"
2357 for x in "/$OS" ""
2359 filemon_h="$d$x/filemon.h"
2360 test -s "$filemon_h" && break
2361 done
2362 test -s "$filemon_h" && break
2363 done
2364 test -s "${filemon_h:-/dev/null}" || filemon_h=no
2368 case "$use_meta" in
2369 yes)
2370 case "$filemon_h" in
2371 *.h) echo "Using: filemon=$filemon_h" >&6;;
2372 esac
2374 esac
2375 ac_ext=c
2376 ac_cpp='$CPP $CPPFLAGS'
2377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380 if test -n "$ac_tool_prefix"; then
2381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if test "${ac_cv_prog_CC+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2394 IFS=$as_save_IFS
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 break 2
2402 done
2403 done
2404 IFS=$as_save_IFS
2408 CC=$ac_cv_prog_CC
2409 if test -n "$CC"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411 $as_echo "$CC" >&6; }
2412 else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2419 if test -z "$ac_cv_prog_CC"; then
2420 ac_ct_CC=$CC
2421 # Extract the first word of "gcc", so it can be a program name with args.
2422 set dummy gcc; ac_word=$2
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2426 $as_echo_n "(cached) " >&6
2427 else
2428 if test -n "$ac_ct_CC"; then
2429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_ac_ct_CC="gcc"
2439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2442 done
2443 done
2444 IFS=$as_save_IFS
2448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449 if test -n "$ac_ct_CC"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2451 $as_echo "$ac_ct_CC" >&6; }
2452 else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2457 if test "x$ac_ct_CC" = x; then
2458 CC=""
2459 else
2460 case $cross_compiling:$ac_tool_warned in
2461 yes:)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464 ac_tool_warned=yes ;;
2465 esac
2466 CC=$ac_ct_CC
2468 else
2469 CC="$ac_cv_prog_CC"
2472 if test -z "$CC"; then
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}cc; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_CC="${ac_tool_prefix}cc"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2495 done
2496 done
2497 IFS=$as_save_IFS
2501 CC=$ac_cv_prog_CC
2502 if test -n "$CC"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2504 $as_echo "$CC" >&6; }
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2513 if test -z "$CC"; then
2514 # Extract the first word of "cc", so it can be a program name with args.
2515 set dummy cc; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524 ac_prog_rejected=no
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2533 ac_prog_rejected=yes
2534 continue
2536 ac_cv_prog_CC="cc"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2540 done
2541 done
2542 IFS=$as_save_IFS
2544 if test $ac_prog_rejected = yes; then
2545 # We found a bogon in the path, so make sure we never use it.
2546 set dummy $ac_cv_prog_CC
2547 shift
2548 if test $# != 0; then
2549 # We chose a different compiler from the bogus one.
2550 # However, it has the same basename, so the bogon will be chosen
2551 # first if we set CC to just the basename; use the full file name.
2552 shift
2553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2561 $as_echo "$CC" >&6; }
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2569 if test -z "$CC"; then
2570 if test -n "$ac_tool_prefix"; then
2571 for ac_prog in cl.exe
2573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2594 done
2595 done
2596 IFS=$as_save_IFS
2600 CC=$ac_cv_prog_CC
2601 if test -n "$CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603 $as_echo "$CC" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2610 test -n "$CC" && break
2611 done
2613 if test -z "$CC"; then
2614 ac_ct_CC=$CC
2615 for ac_prog in cl.exe
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if test -n "$ac_ct_CC"; then
2625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_ac_ct_CC="$ac_prog"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2638 done
2639 done
2640 IFS=$as_save_IFS
2644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2645 if test -n "$ac_ct_CC"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2647 $as_echo "$ac_ct_CC" >&6; }
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2654 test -n "$ac_ct_CC" && break
2655 done
2657 if test "x$ac_ct_CC" = x; then
2658 CC=""
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664 ac_tool_warned=yes ;;
2665 esac
2666 CC=$ac_ct_CC
2673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 as_fn_error "no acceptable C compiler found in \$PATH
2676 See \`config.log' for more details." "$LINENO" 5; }
2678 # Provide some information about the compiler.
2679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2680 set X $ac_compile
2681 ac_compiler=$2
2682 for ac_option in --version -v -V -qversion; do
2683 { { ac_try="$ac_compiler $ac_option >&5"
2684 case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687 esac
2688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689 $as_echo "$ac_try_echo"; } >&5
2690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2691 ac_status=$?
2692 if test -s conftest.err; then
2693 sed '10a\
2694 ... rest of stderr output deleted ...
2695 10q' conftest.err >conftest.er1
2696 cat conftest.er1 >&5
2697 rm -f conftest.er1 conftest.err
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }
2701 done
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2705 #include <stdio.h>
2707 main ()
2709 FILE *f = fopen ("conftest.out", "w");
2710 return ferror (f) || fclose (f) != 0;
2713 return 0;
2715 _ACEOF
2716 ac_clean_files_save=$ac_clean_files
2717 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2718 # Try to create an executable without -o first, disregard a.out.
2719 # It will help us diagnose broken compilers, and finding out an intuition
2720 # of exeext.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2722 $as_echo_n "checking for C compiler default output file name... " >&6; }
2723 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2725 # The possible output files:
2726 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2728 ac_rmfiles=
2729 for ac_file in $ac_files
2731 case $ac_file in
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2734 esac
2735 done
2736 rm -f $ac_rmfiles
2738 if { { ac_try="$ac_link_default"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_link_default") 2>&5
2746 ac_status=$?
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
2749 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2750 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2751 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2752 # so that the user can short-circuit this test for compilers unknown to
2753 # Autoconf.
2754 for ac_file in $ac_files ''
2756 test -f "$ac_file" || continue
2757 case $ac_file in
2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2760 [ab].out )
2761 # We found the default executable, but exeext='' is most
2762 # certainly right.
2763 break;;
2764 *.* )
2765 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2766 then :; else
2767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 # We set ac_cv_exeext here because the later test for it is not
2770 # safe: cross compilers may not add the suffix if given an `-o'
2771 # argument, so we may need to know it at that point already.
2772 # Even if this section looks crufty: it has the advantage of
2773 # actually working.
2774 break;;
2776 break;;
2777 esac
2778 done
2779 test "$ac_cv_exeext" = no && ac_cv_exeext=
2781 else
2782 ac_file=''
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2785 $as_echo "$ac_file" >&6; }
2786 if test -z "$ac_file"; then :
2787 $as_echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 { as_fn_set_status 77
2793 as_fn_error "C compiler cannot create executables
2794 See \`config.log' for more details." "$LINENO" 5; }; }
2796 ac_exeext=$ac_cv_exeext
2798 # Check that the compiler produces executables we can run. If not, either
2799 # the compiler is broken, or we cross compile.
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2801 $as_echo_n "checking whether the C compiler works... " >&6; }
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804 if { ac_try='./$ac_file'
2805 { { case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2810 $as_echo "$ac_try_echo"; } >&5
2811 (eval "$ac_try") 2>&5
2812 ac_status=$?
2813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2814 test $ac_status = 0; }; }; then
2815 cross_compiling=no
2816 else
2817 if test "$cross_compiling" = maybe; then
2818 cross_compiling=yes
2819 else
2820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 as_fn_error "cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." "$LINENO" 5; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2831 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run. If not, either
2834 # the compiler is broken, or we cross compile.
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2836 $as_echo_n "checking whether we are cross compiling... " >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2838 $as_echo "$cross_compiling" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2841 $as_echo_n "checking for suffix of executables... " >&6; }
2842 if { { ac_try="$ac_link"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848 $as_echo "$ac_try_echo"; } >&5
2849 (eval "$ac_link") 2>&5
2850 ac_status=$?
2851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2852 test $ac_status = 0; }; then :
2853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 # `rm'.
2857 for ac_file in conftest.exe conftest conftest.*; do
2858 test -f "$ac_file" || continue
2859 case $ac_file in
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862 break;;
2863 * ) break;;
2864 esac
2865 done
2866 else
2867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error "cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." "$LINENO" 5; }
2872 rm -f conftest$ac_cv_exeext
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2874 $as_echo "$ac_cv_exeext" >&6; }
2876 rm -f conftest.$ac_ext
2877 EXEEXT=$ac_cv_exeext
2878 ac_exeext=$EXEEXT
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2880 $as_echo_n "checking for suffix of object files... " >&6; }
2881 if test "${ac_cv_objext+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2888 main ()
2892 return 0;
2894 _ACEOF
2895 rm -f conftest.o conftest.obj
2896 if { { ac_try="$ac_compile"
2897 case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 $as_echo "$ac_try_echo"; } >&5
2903 (eval "$ac_compile") 2>&5
2904 ac_status=$?
2905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }; then :
2907 for ac_file in conftest.o conftest.obj conftest.*; do
2908 test -f "$ac_file" || continue;
2909 case $ac_file in
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2912 break;;
2913 esac
2914 done
2915 else
2916 $as_echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 as_fn_error "cannot compute suffix of object files: cannot compile
2922 See \`config.log' for more details." "$LINENO" 5; }
2924 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2927 $as_echo "$ac_cv_objext" >&6; }
2928 OBJEXT=$ac_cv_objext
2929 ac_objext=$OBJEXT
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2931 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2932 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2939 main ()
2941 #ifndef __GNUC__
2942 choke me
2943 #endif
2946 return 0;
2948 _ACEOF
2949 if ac_fn_c_try_compile "$LINENO"; then :
2950 ac_compiler_gnu=yes
2951 else
2952 ac_compiler_gnu=no
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2959 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2960 if test $ac_compiler_gnu = yes; then
2961 GCC=yes
2962 else
2963 GCC=
2965 ac_test_CFLAGS=${CFLAGS+set}
2966 ac_save_CFLAGS=$CFLAGS
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2968 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2969 if test "${ac_cv_prog_cc_g+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 ac_save_c_werror_flag=$ac_c_werror_flag
2973 ac_c_werror_flag=yes
2974 ac_cv_prog_cc_g=no
2975 CFLAGS="-g"
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2980 main ()
2984 return 0;
2986 _ACEOF
2987 if ac_fn_c_try_compile "$LINENO"; then :
2988 ac_cv_prog_cc_g=yes
2989 else
2990 CFLAGS=""
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
2995 main ()
2999 return 0;
3001 _ACEOF
3002 if ac_fn_c_try_compile "$LINENO"; then :
3004 else
3005 ac_c_werror_flag=$ac_save_c_werror_flag
3006 CFLAGS="-g"
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3011 main ()
3015 return 0;
3017 _ACEOF
3018 if ac_fn_c_try_compile "$LINENO"; then :
3019 ac_cv_prog_cc_g=yes
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3026 ac_c_werror_flag=$ac_save_c_werror_flag
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3029 $as_echo "$ac_cv_prog_cc_g" >&6; }
3030 if test "$ac_test_CFLAGS" = set; then
3031 CFLAGS=$ac_save_CFLAGS
3032 elif test $ac_cv_prog_cc_g = yes; then
3033 if test "$GCC" = yes; then
3034 CFLAGS="-g -O2"
3035 else
3036 CFLAGS="-g"
3038 else
3039 if test "$GCC" = yes; then
3040 CFLAGS="-O2"
3041 else
3042 CFLAGS=
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3047 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3049 else
3050 ac_cv_prog_cc_c89=no
3051 ac_save_CC=$CC
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3054 #include <stdarg.h>
3055 #include <stdio.h>
3056 #include <sys/types.h>
3057 #include <sys/stat.h>
3058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3059 struct buf { int x; };
3060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3061 static char *e (p, i)
3062 char **p;
3063 int i;
3065 return p[i];
3067 static char *f (char * (*g) (char **, int), char **p, ...)
3069 char *s;
3070 va_list v;
3071 va_start (v,p);
3072 s = g (p, va_arg (v,int));
3073 va_end (v);
3074 return s;
3077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3078 function prototypes and stuff, but not '\xHH' hex character constants.
3079 These don't provoke an error unfortunately, instead are silently treated
3080 as 'x'. The following induces an error, until -std is added to get
3081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3082 array size at least. It's necessary to write '\x00'==0 to get something
3083 that's true only with -std. */
3084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3087 inside strings and character constants. */
3088 #define FOO(x) 'x'
3089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3091 int test (int i, double x);
3092 struct s1 {int (*f) (int a);};
3093 struct s2 {int (*f) (double a);};
3094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3095 int argc;
3096 char **argv;
3098 main ()
3100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3102 return 0;
3104 _ACEOF
3105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3108 CC="$ac_save_CC $ac_arg"
3109 if ac_fn_c_try_compile "$LINENO"; then :
3110 ac_cv_prog_cc_c89=$ac_arg
3112 rm -f core conftest.err conftest.$ac_objext
3113 test "x$ac_cv_prog_cc_c89" != "xno" && break
3114 done
3115 rm -f conftest.$ac_ext
3116 CC=$ac_save_CC
3119 # AC_CACHE_VAL
3120 case "x$ac_cv_prog_cc_c89" in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3123 $as_echo "none needed" >&6; } ;;
3124 xno)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3126 $as_echo "unsupported" >&6; } ;;
3128 CC="$CC $ac_cv_prog_cc_c89"
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3131 esac
3132 if test "x$ac_cv_prog_cc_c89" != xno; then :
3136 ac_ext=c
3137 ac_cpp='$CPP $CPPFLAGS'
3138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3149 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3150 # On Suns, sometimes $CPP names a directory.
3151 if test -n "$CPP" && test -d "$CPP"; then
3152 CPP=
3154 if test -z "$CPP"; then
3155 if test "${ac_cv_prog_CPP+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 # Double quotes because CPP needs to be expanded
3159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3161 ac_preproc_ok=false
3162 for ac_c_preproc_warn_flag in '' yes
3164 # Use a header file that comes with gcc, so configuring glibc
3165 # with a fresh cross-compiler works.
3166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3167 # <limits.h> exists even on freestanding compilers.
3168 # On the NeXT, cc -E runs the code through the compiler's parser,
3169 # not just through cpp. "Syntax error" is here to catch this case.
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172 #ifdef __STDC__
3173 # include <limits.h>
3174 #else
3175 # include <assert.h>
3176 #endif
3177 Syntax error
3178 _ACEOF
3179 if ac_fn_c_try_cpp "$LINENO"; then :
3181 else
3182 # Broken: fails on valid input.
3183 continue
3185 rm -f conftest.err conftest.$ac_ext
3187 # OK, works on sane cases. Now check whether nonexistent headers
3188 # can be detected and how.
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3191 #include <ac_nonexistent.h>
3192 _ACEOF
3193 if ac_fn_c_try_cpp "$LINENO"; then :
3194 # Broken: success on invalid input.
3195 continue
3196 else
3197 # Passes both tests.
3198 ac_preproc_ok=:
3199 break
3201 rm -f conftest.err conftest.$ac_ext
3203 done
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then :
3207 break
3210 done
3211 ac_cv_prog_CPP=$CPP
3214 CPP=$ac_cv_prog_CPP
3215 else
3216 ac_cv_prog_CPP=$CPP
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3219 $as_echo "$CPP" >&6; }
3220 ac_preproc_ok=false
3221 for ac_c_preproc_warn_flag in '' yes
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3231 #ifdef __STDC__
3232 # include <limits.h>
3233 #else
3234 # include <assert.h>
3235 #endif
3236 Syntax error
3237 _ACEOF
3238 if ac_fn_c_try_cpp "$LINENO"; then :
3240 else
3241 # Broken: fails on valid input.
3242 continue
3244 rm -f conftest.err conftest.$ac_ext
3246 # OK, works on sane cases. Now check whether nonexistent headers
3247 # can be detected and how.
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250 #include <ac_nonexistent.h>
3251 _ACEOF
3252 if ac_fn_c_try_cpp "$LINENO"; then :
3253 # Broken: success on invalid input.
3254 continue
3255 else
3256 # Passes both tests.
3257 ac_preproc_ok=:
3258 break
3260 rm -f conftest.err conftest.$ac_ext
3262 done
3263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3264 rm -f conftest.err conftest.$ac_ext
3265 if $ac_preproc_ok; then :
3267 else
3268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3271 See \`config.log' for more details." "$LINENO" 5; }
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3282 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3283 if test "${ac_cv_path_GREP+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test -z "$GREP"; then
3287 ac_path_GREP_found=false
3288 # Loop through the user's path and test for each of PROGNAME-LIST
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_prog in grep ggrep; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3297 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3298 # Check for GNU ac_path_GREP and select it if it is found.
3299 # Check for GNU $ac_path_GREP
3300 case `"$ac_path_GREP" --version 2>&1` in
3301 *GNU*)
3302 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3304 ac_count=0
3305 $as_echo_n 0123456789 >"conftest.in"
3306 while :
3308 cat "conftest.in" "conftest.in" >"conftest.tmp"
3309 mv "conftest.tmp" "conftest.in"
3310 cp "conftest.in" "conftest.nl"
3311 $as_echo 'GREP' >> "conftest.nl"
3312 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3314 as_fn_arith $ac_count + 1 && ac_count=$as_val
3315 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3316 # Best one so far, save it but keep looking for a better one
3317 ac_cv_path_GREP="$ac_path_GREP"
3318 ac_path_GREP_max=$ac_count
3320 # 10*(2^10) chars as input seems more than enough
3321 test $ac_count -gt 10 && break
3322 done
3323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3324 esac
3326 $ac_path_GREP_found && break 3
3327 done
3328 done
3329 done
3330 IFS=$as_save_IFS
3331 if test -z "$ac_cv_path_GREP"; then
3332 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3334 else
3335 ac_cv_path_GREP=$GREP
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3340 $as_echo "$ac_cv_path_GREP" >&6; }
3341 GREP="$ac_cv_path_GREP"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3345 $as_echo_n "checking for egrep... " >&6; }
3346 if test "${ac_cv_path_EGREP+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3350 then ac_cv_path_EGREP="$GREP -E"
3351 else
3352 if test -z "$EGREP"; then
3353 ac_path_EGREP_found=false
3354 # Loop through the user's path and test for each of PROGNAME-LIST
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_prog in egrep; do
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3363 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3364 # Check for GNU ac_path_EGREP and select it if it is found.
3365 # Check for GNU $ac_path_EGREP
3366 case `"$ac_path_EGREP" --version 2>&1` in
3367 *GNU*)
3368 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3370 ac_count=0
3371 $as_echo_n 0123456789 >"conftest.in"
3372 while :
3374 cat "conftest.in" "conftest.in" >"conftest.tmp"
3375 mv "conftest.tmp" "conftest.in"
3376 cp "conftest.in" "conftest.nl"
3377 $as_echo 'EGREP' >> "conftest.nl"
3378 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3380 as_fn_arith $ac_count + 1 && ac_count=$as_val
3381 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3382 # Best one so far, save it but keep looking for a better one
3383 ac_cv_path_EGREP="$ac_path_EGREP"
3384 ac_path_EGREP_max=$ac_count
3386 # 10*(2^10) chars as input seems more than enough
3387 test $ac_count -gt 10 && break
3388 done
3389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3390 esac
3392 $ac_path_EGREP_found && break 3
3393 done
3394 done
3395 done
3396 IFS=$as_save_IFS
3397 if test -z "$ac_cv_path_EGREP"; then
3398 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3400 else
3401 ac_cv_path_EGREP=$EGREP
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3407 $as_echo "$ac_cv_path_EGREP" >&6; }
3408 EGREP="$ac_cv_path_EGREP"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3412 $as_echo_n "checking for ANSI C header files... " >&6; }
3413 if test "${ac_cv_header_stdc+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418 #include <stdlib.h>
3419 #include <stdarg.h>
3420 #include <string.h>
3421 #include <float.h>
3424 main ()
3428 return 0;
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432 ac_cv_header_stdc=yes
3433 else
3434 ac_cv_header_stdc=no
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 if test $ac_cv_header_stdc = yes; then
3439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442 #include <string.h>
3444 _ACEOF
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "memchr" >/dev/null 2>&1; then :
3448 else
3449 ac_cv_header_stdc=no
3451 rm -f conftest*
3455 if test $ac_cv_header_stdc = yes; then
3456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459 #include <stdlib.h>
3461 _ACEOF
3462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3463 $EGREP "free" >/dev/null 2>&1; then :
3465 else
3466 ac_cv_header_stdc=no
3468 rm -f conftest*
3472 if test $ac_cv_header_stdc = yes; then
3473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3474 if test "$cross_compiling" = yes; then :
3476 else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 #include <ctype.h>
3480 #include <stdlib.h>
3481 #if ((' ' & 0x0FF) == 0x020)
3482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3484 #else
3485 # define ISLOWER(c) \
3486 (('a' <= (c) && (c) <= 'i') \
3487 || ('j' <= (c) && (c) <= 'r') \
3488 || ('s' <= (c) && (c) <= 'z'))
3489 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3490 #endif
3492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3494 main ()
3496 int i;
3497 for (i = 0; i < 256; i++)
3498 if (XOR (islower (i), ISLOWER (i))
3499 || toupper (i) != TOUPPER (i))
3500 return 2;
3501 return 0;
3503 _ACEOF
3504 if ac_fn_c_try_run "$LINENO"; then :
3506 else
3507 ac_cv_header_stdc=no
3509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3510 conftest.$ac_objext conftest.beam conftest.$ac_ext
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3516 $as_echo "$ac_cv_header_stdc" >&6; }
3517 if test $ac_cv_header_stdc = yes; then
3519 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3525 inttypes.h stdint.h unistd.h
3526 do :
3527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3530 eval as_val=\$$as_ac_Header
3531 if test "x$as_val" = x""yes; then :
3532 cat >>confdefs.h <<_ACEOF
3533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3534 _ACEOF
3538 done
3542 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3543 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3544 MINIX=yes
3545 else
3546 MINIX=
3550 if test "$MINIX" = yes; then
3552 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3555 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3558 $as_echo "#define _MINIX 1" >>confdefs.h
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3564 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3565 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3571 # define __EXTENSIONS__ 1
3572 $ac_includes_default
3574 main ()
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_safe_to_define___extensions__=yes
3583 else
3584 ac_cv_safe_to_define___extensions__=no
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3589 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3590 test $ac_cv_safe_to_define___extensions__ = yes &&
3591 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3593 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3595 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3597 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3599 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3602 ac_ext=c
3603 ac_cpp='$CPP $CPPFLAGS'
3604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3646 if test -z "$ac_cv_prog_CC"; then
3647 ac_ct_CC=$CC
3648 # Extract the first word of "gcc", so it can be a program name with args.
3649 set dummy gcc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_ac_ct_CC="gcc"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676 if test -n "$ac_ct_CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678 $as_echo "$ac_ct_CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3684 if test "x$ac_ct_CC" = x; then
3685 CC=""
3686 else
3687 case $cross_compiling:$ac_tool_warned in
3688 yes:)
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691 ac_tool_warned=yes ;;
3692 esac
3693 CC=$ac_ct_CC
3695 else
3696 CC="$ac_cv_prog_CC"
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}cc; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_CC="${ac_tool_prefix}cc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3722 done
3723 done
3724 IFS=$as_save_IFS
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3740 if test -z "$CC"; then
3741 # Extract the first word of "cc", so it can be a program name with args.
3742 set dummy cc; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if test "${ac_cv_prog_CC+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 else
3751 ac_prog_rejected=no
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760 ac_prog_rejected=yes
3761 continue
3763 ac_cv_prog_CC="cc"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3767 done
3768 done
3769 IFS=$as_save_IFS
3771 if test $ac_prog_rejected = yes; then
3772 # We found a bogon in the path, so make sure we never use it.
3773 set dummy $ac_cv_prog_CC
3774 shift
3775 if test $# != 0; then
3776 # We chose a different compiler from the bogus one.
3777 # However, it has the same basename, so the bogon will be chosen
3778 # first if we set CC to just the basename; use the full file name.
3779 shift
3780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3785 CC=$ac_cv_prog_CC
3786 if test -n "$CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788 $as_echo "$CC" >&6; }
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3796 if test -z "$CC"; then
3797 if test -n "$ac_tool_prefix"; then
3798 for ac_prog in cl.exe
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if test "${ac_cv_prog_CC+set}" = set; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3821 done
3822 done
3823 IFS=$as_save_IFS
3827 CC=$ac_cv_prog_CC
3828 if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3837 test -n "$CC" && break
3838 done
3840 if test -z "$CC"; then
3841 ac_ct_CC=$CC
3842 for ac_prog in cl.exe
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3853 else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_prog_ac_ct_CC="$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3865 done
3866 done
3867 IFS=$as_save_IFS
3871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872 if test -n "$ac_ct_CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874 $as_echo "$ac_ct_CC" >&6; }
3875 else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3881 test -n "$ac_ct_CC" && break
3882 done
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 CC=$ac_ct_CC
3900 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902 as_fn_error "no acceptable C compiler found in \$PATH
3903 See \`config.log' for more details." "$LINENO" 5; }
3905 # Provide some information about the compiler.
3906 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3907 set X $ac_compile
3908 ac_compiler=$2
3909 for ac_option in --version -v -V -qversion; do
3910 { { ac_try="$ac_compiler $ac_option >&5"
3911 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3918 ac_status=$?
3919 if test -s conftest.err; then
3920 sed '10a\
3921 ... rest of stderr output deleted ...
3922 10q' conftest.err >conftest.er1
3923 cat conftest.er1 >&5
3924 rm -f conftest.er1 conftest.err
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 done
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3931 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3932 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3939 main ()
3941 #ifndef __GNUC__
3942 choke me
3943 #endif
3946 return 0;
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_compiler_gnu=yes
3951 else
3952 ac_compiler_gnu=no
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3959 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3960 if test $ac_compiler_gnu = yes; then
3961 GCC=yes
3962 else
3963 GCC=
3965 ac_test_CFLAGS=${CFLAGS+set}
3966 ac_save_CFLAGS=$CFLAGS
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3968 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3969 if test "${ac_cv_prog_cc_g+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 ac_save_c_werror_flag=$ac_c_werror_flag
3973 ac_c_werror_flag=yes
3974 ac_cv_prog_cc_g=no
3975 CFLAGS="-g"
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3980 main ()
3984 return 0;
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_g=yes
3989 else
3990 CFLAGS=""
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3995 main ()
3999 return 0;
4001 _ACEOF
4002 if ac_fn_c_try_compile "$LINENO"; then :
4004 else
4005 ac_c_werror_flag=$ac_save_c_werror_flag
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_g=yes
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4029 $as_echo "$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4034 CFLAGS="-g -O2"
4035 else
4036 CFLAGS="-g"
4038 else
4039 if test "$GCC" = yes; then
4040 CFLAGS="-O2"
4041 else
4042 CFLAGS=
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4047 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 ac_cv_prog_cc_c89=no
4051 ac_save_CC=$CC
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <stdarg.h>
4055 #include <stdio.h>
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4062 char **p;
4063 int i;
4065 return p[i];
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4069 char *s;
4070 va_list v;
4071 va_start (v,p);
4072 s = g (p, va_arg (v,int));
4073 va_end (v);
4074 return s;
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4088 #define FOO(x) 'x'
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 int argc;
4096 char **argv;
4098 main ()
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4102 return 0;
4104 _ACEOF
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 CC="$ac_save_CC $ac_arg"
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_prog_cc_c89=$ac_arg
4112 rm -f core conftest.err conftest.$ac_objext
4113 test "x$ac_cv_prog_cc_c89" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC
4119 # AC_CACHE_VAL
4120 case "x$ac_cv_prog_cc_c89" in
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4123 $as_echo "none needed" >&6; } ;;
4124 xno)
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126 $as_echo "unsupported" >&6; } ;;
4128 CC="$CC $ac_cv_prog_cc_c89"
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4131 esac
4132 if test "x$ac_cv_prog_cc_c89" != xno; then :
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142 if test $ac_cv_c_compiler_gnu = yes; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4144 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4145 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 ac_pattern="Autoconf.*'x'"
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <sgtty.h>
4152 Autoconf TIOCGETP
4153 _ACEOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4156 ac_cv_prog_gcc_traditional=yes
4157 else
4158 ac_cv_prog_gcc_traditional=no
4160 rm -f conftest*
4163 if test $ac_cv_prog_gcc_traditional = no; then
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <termio.h>
4167 Autoconf TCGETA
4168 _ACEOF
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4171 ac_cv_prog_gcc_traditional=yes
4173 rm -f conftest*
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4178 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4179 if test $ac_cv_prog_gcc_traditional = yes; then
4180 CC="$CC -traditional"
4184 ac_aux_dir=
4185 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4186 for ac_t in install-sh install.sh shtool; do
4187 if test -f "$ac_dir/$ac_t"; then
4188 ac_aux_dir=$ac_dir
4189 ac_install_sh="$ac_aux_dir/$ac_t -c"
4190 break 2
4192 done
4193 done
4194 if test -z "$ac_aux_dir"; then
4195 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4198 # These three variables are undocumented and unsupported,
4199 # and are intended to be withdrawn in a future Autoconf release.
4200 # They can cause serious problems if a builder's source tree is in a directory
4201 # whose full name contains unusual characters.
4202 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4203 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4204 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4207 # Find a good install program. We prefer a C program (faster),
4208 # so one script is as good as another. But avoid the broken or
4209 # incompatible versions:
4210 # SysV /etc/install, /usr/sbin/install
4211 # SunOS /usr/etc/install
4212 # IRIX /sbin/install
4213 # AIX /bin/install
4214 # AmigaOS /C/install, which installs bootblocks on floppy discs
4215 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4218 # OS/2's system install, which has a completely different semantic
4219 # ./install, which can be erroneously created by make from ./install.sh.
4220 # Reject install programs that cannot install multiple files.
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4222 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4223 if test -z "$INSTALL"; then
4224 if test "${ac_cv_path_install+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
4232 # Account for people who put trailing slashes in PATH elements.
4233 case $as_dir/ in #((
4234 ./ | .// | /[cC]/* | \
4235 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4236 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4237 /usr/ucb/* ) ;;
4239 # OSF1 and SCO ODT 3.0 have their own names for install.
4240 # Don't use installbsd from OSF since it installs stuff as root
4241 # by default.
4242 for ac_prog in ginstall scoinst install; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4245 if test $ac_prog = install &&
4246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4247 # AIX install. It has an incompatible calling convention.
4249 elif test $ac_prog = install &&
4250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4251 # program-specific install script used by HP pwplus--don't use.
4253 else
4254 rm -rf conftest.one conftest.two conftest.dir
4255 echo one > conftest.one
4256 echo two > conftest.two
4257 mkdir conftest.dir
4258 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4259 test -s conftest.one && test -s conftest.two &&
4260 test -s conftest.dir/conftest.one &&
4261 test -s conftest.dir/conftest.two
4262 then
4263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4264 break 3
4268 done
4269 done
4271 esac
4273 done
4274 IFS=$as_save_IFS
4276 rm -rf conftest.one conftest.two conftest.dir
4279 if test "${ac_cv_path_install+set}" = set; then
4280 INSTALL=$ac_cv_path_install
4281 else
4282 # As a last resort, use the slow shell script. Don't cache a
4283 # value for INSTALL within a source directory, because that will
4284 # break other packages using the cache if that directory is
4285 # removed, or if the value is a relative name.
4286 INSTALL=$ac_install_sh
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4290 $as_echo "$INSTALL" >&6; }
4292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4293 # It thinks the first close brace ends the variable substitution.
4294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4300 if test -x /usr/bin/getconf; then
4301 bmake_path_max=`getconf PATH_MAX / 2> /dev/null`
4302 # only a numeric response is useful
4303 test ${bmake_path_max:-0} -gt 0 2> /dev/null || bmake_path_max=
4305 bmake_path_max=${bmake_path_max:-1024}
4306 if test $bmake_path_max -gt 1024; then
4307 # this is all we expect
4308 bmake_path_max=1024
4310 echo "Using: BMAKE_PATH_MAX=$bmake_path_max" >&6
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4313 $as_echo_n "checking for ANSI C header files... " >&6; }
4314 if test "${ac_cv_header_stdc+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 #include <stdlib.h>
4320 #include <stdarg.h>
4321 #include <string.h>
4322 #include <float.h>
4325 main ()
4329 return 0;
4331 _ACEOF
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333 ac_cv_header_stdc=yes
4334 else
4335 ac_cv_header_stdc=no
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 if test $ac_cv_header_stdc = yes; then
4340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <string.h>
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "memchr" >/dev/null 2>&1; then :
4349 else
4350 ac_cv_header_stdc=no
4352 rm -f conftest*
4356 if test $ac_cv_header_stdc = yes; then
4357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <stdlib.h>
4362 _ACEOF
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "free" >/dev/null 2>&1; then :
4366 else
4367 ac_cv_header_stdc=no
4369 rm -f conftest*
4373 if test $ac_cv_header_stdc = yes; then
4374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4375 if test "$cross_compiling" = yes; then :
4377 else
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <ctype.h>
4381 #include <stdlib.h>
4382 #if ((' ' & 0x0FF) == 0x020)
4383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4385 #else
4386 # define ISLOWER(c) \
4387 (('a' <= (c) && (c) <= 'i') \
4388 || ('j' <= (c) && (c) <= 'r') \
4389 || ('s' <= (c) && (c) <= 'z'))
4390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4391 #endif
4393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4395 main ()
4397 int i;
4398 for (i = 0; i < 256; i++)
4399 if (XOR (islower (i), ISLOWER (i))
4400 || toupper (i) != TOUPPER (i))
4401 return 2;
4402 return 0;
4404 _ACEOF
4405 if ac_fn_c_try_run "$LINENO"; then :
4407 else
4408 ac_cv_header_stdc=no
4410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4411 conftest.$ac_objext conftest.beam conftest.$ac_ext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4417 $as_echo "$ac_cv_header_stdc" >&6; }
4418 if test $ac_cv_header_stdc = yes; then
4420 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4425 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4426 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 #include <sys/wait.h>
4433 #ifndef WEXITSTATUS
4434 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4435 #endif
4436 #ifndef WIFEXITED
4437 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4438 #endif
4441 main ()
4443 int s;
4444 wait (&s);
4445 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4447 return 0;
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_cv_header_sys_wait_h=yes
4452 else
4453 ac_cv_header_sys_wait_h=no
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4458 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4459 if test $ac_cv_header_sys_wait_h = yes; then
4461 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4465 ac_header_dirent=no
4466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4467 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4469 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 #include <sys/types.h>
4476 #include <$ac_hdr>
4479 main ()
4481 if ((DIR *) 0)
4482 return 0;
4484 return 0;
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 eval "$as_ac_Header=yes"
4489 else
4490 eval "$as_ac_Header=no"
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 eval ac_res=\$$as_ac_Header
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4496 $as_echo "$ac_res" >&6; }
4497 eval as_val=\$$as_ac_Header
4498 if test "x$as_val" = x""yes; then :
4499 cat >>confdefs.h <<_ACEOF
4500 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4501 _ACEOF
4503 ac_header_dirent=$ac_hdr; break
4506 done
4507 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4508 if test $ac_header_dirent = dirent.h; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4510 $as_echo_n "checking for library containing opendir... " >&6; }
4511 if test "${ac_cv_search_opendir+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 ac_func_search_save_LIBS=$LIBS
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4518 /* Override any GCC internal prototype to avoid an error.
4519 Use char because int might match the return type of a GCC
4520 builtin and then its argument prototype would still apply. */
4521 #ifdef __cplusplus
4522 extern "C"
4523 #endif
4524 char opendir ();
4526 main ()
4528 return opendir ();
4530 return 0;
4532 _ACEOF
4533 for ac_lib in '' dir; do
4534 if test -z "$ac_lib"; then
4535 ac_res="none required"
4536 else
4537 ac_res=-l$ac_lib
4538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4540 if ac_fn_c_try_link "$LINENO"; then :
4541 ac_cv_search_opendir=$ac_res
4543 rm -f core conftest.err conftest.$ac_objext \
4544 conftest$ac_exeext
4545 if test "${ac_cv_search_opendir+set}" = set; then :
4546 break
4548 done
4549 if test "${ac_cv_search_opendir+set}" = set; then :
4551 else
4552 ac_cv_search_opendir=no
4554 rm conftest.$ac_ext
4555 LIBS=$ac_func_search_save_LIBS
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4558 $as_echo "$ac_cv_search_opendir" >&6; }
4559 ac_res=$ac_cv_search_opendir
4560 if test "$ac_res" != no; then :
4561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4567 $as_echo_n "checking for library containing opendir... " >&6; }
4568 if test "${ac_cv_search_opendir+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 ac_func_search_save_LIBS=$LIBS
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 /* Override any GCC internal prototype to avoid an error.
4576 Use char because int might match the return type of a GCC
4577 builtin and then its argument prototype would still apply. */
4578 #ifdef __cplusplus
4579 extern "C"
4580 #endif
4581 char opendir ();
4583 main ()
4585 return opendir ();
4587 return 0;
4589 _ACEOF
4590 for ac_lib in '' x; do
4591 if test -z "$ac_lib"; then
4592 ac_res="none required"
4593 else
4594 ac_res=-l$ac_lib
4595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4597 if ac_fn_c_try_link "$LINENO"; then :
4598 ac_cv_search_opendir=$ac_res
4600 rm -f core conftest.err conftest.$ac_objext \
4601 conftest$ac_exeext
4602 if test "${ac_cv_search_opendir+set}" = set; then :
4603 break
4605 done
4606 if test "${ac_cv_search_opendir+set}" = set; then :
4608 else
4609 ac_cv_search_opendir=no
4611 rm conftest.$ac_ext
4612 LIBS=$ac_func_search_save_LIBS
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4615 $as_echo "$ac_cv_search_opendir" >&6; }
4616 ac_res=$ac_cv_search_opendir
4617 if test "$ac_res" != no; then :
4618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4624 for ac_header in sys/param.h
4625 do :
4626 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4627 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
4628 cat >>confdefs.h <<_ACEOF
4629 #define HAVE_SYS_PARAM_H 1
4630 _ACEOF
4634 done
4636 for ac_header in sys/sysctl.h
4637 do :
4638 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#ifdef HAVE_SYS_PARAM_H
4639 # include <sys/param.h>
4640 # endif
4643 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
4644 cat >>confdefs.h <<_ACEOF
4645 #define HAVE_SYS_SYSCTL_H 1
4646 _ACEOF
4650 done
4653 for ac_header in \
4654 ar.h \
4655 err.h \
4656 fcntl.h \
4657 libgen.h \
4658 limits.h \
4659 paths.h \
4660 poll.h \
4661 ranlib.h \
4662 string.h \
4663 sys/mman.h \
4664 sys/select.h \
4665 sys/socket.h \
4666 sys/time.h \
4667 sys/uio.h \
4668 unistd.h \
4669 utime.h \
4671 do :
4672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4673 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4674 eval as_val=\$$as_ac_Header
4675 if test "x$as_val" = x""yes; then :
4676 cat >>confdefs.h <<_ACEOF
4677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 _ACEOF
4682 done
4685 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
4686 if test "x$ac_cv_header_sys_cdefs_h" = x""yes; then :
4687 echo $ECHO_N "checking whether sys/cdefs.h is compatible... $ECHO_C" >&6
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <sys/cdefs.h>
4691 #ifdef __RCSID
4693 #endif
4695 _ACEOF
4696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4697 $EGREP "yes" >/dev/null 2>&1; then :
4698 echo yes >&6
4699 else
4700 echo no >&6; CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd` -DNEED_HOST_CDEFS_H"
4702 rm -f conftest*
4704 else
4705 CPPFLAGS="${CPPFLAGS} -I`cd ${srcdir}/missing && pwd`"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
4712 $as_echo_n "checking for __attribute__... " >&6; }
4713 if test "${ac_cv___attribute__+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4720 #include <stdlib.h>
4723 main ()
4726 static void foo(void) __attribute__ ((noreturn));
4728 static void
4729 foo(void)
4731 exit(1);
4735 return 0;
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_cv___attribute__=yes
4740 else
4741 ac_cv___attribute__=no
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 if test "$ac_cv___attribute__" = "yes"; then
4748 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
4752 $as_echo "$ac_cv___attribute__" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4756 if test "${ac_cv_c_bigendian+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 ac_cv_c_bigendian=unknown
4760 # See if we're dealing with a universal compiler.
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 #ifndef __APPLE_CC__
4764 not a universal capable compiler
4765 #endif
4766 typedef int dummy;
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4771 # Check for potential -arch flags. It is not universal unless
4772 # there are at least two -arch flags with different values.
4773 ac_arch=
4774 ac_prev=
4775 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4776 if test -n "$ac_prev"; then
4777 case $ac_word in
4778 i?86 | x86_64 | ppc | ppc64)
4779 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4780 ac_arch=$ac_word
4781 else
4782 ac_cv_c_bigendian=universal
4783 break
4786 esac
4787 ac_prev=
4788 elif test "x$ac_word" = "x-arch"; then
4789 ac_prev=arch
4791 done
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 if test $ac_cv_c_bigendian = unknown; then
4795 # See if sys/param.h defines the BYTE_ORDER macro.
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <sys/types.h>
4799 #include <sys/param.h>
4802 main ()
4804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4806 && LITTLE_ENDIAN)
4807 bogus endian macros
4808 #endif
4811 return 0;
4813 _ACEOF
4814 if ac_fn_c_try_compile "$LINENO"; then :
4815 # It does; now see whether it defined to BIG_ENDIAN or not.
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <sys/types.h>
4819 #include <sys/param.h>
4822 main ()
4824 #if BYTE_ORDER != BIG_ENDIAN
4825 not big endian
4826 #endif
4829 return 0;
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_c_bigendian=yes
4834 else
4835 ac_cv_c_bigendian=no
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 if test $ac_cv_c_bigendian = unknown; then
4842 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 #include <limits.h>
4848 main ()
4850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4851 bogus endian macros
4852 #endif
4855 return 0;
4857 _ACEOF
4858 if ac_fn_c_try_compile "$LINENO"; then :
4859 # It does; now see whether it defined to _BIG_ENDIAN or not.
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 #include <limits.h>
4865 main ()
4867 #ifndef _BIG_ENDIAN
4868 not big endian
4869 #endif
4872 return 0;
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_cv_c_bigendian=yes
4877 else
4878 ac_cv_c_bigendian=no
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 if test $ac_cv_c_bigendian = unknown; then
4885 # Compile a test program.
4886 if test "$cross_compiling" = yes; then :
4887 # Try to guess by grepping values from an object file.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 short int ascii_mm[] =
4891 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4892 short int ascii_ii[] =
4893 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4894 int use_ascii (int i) {
4895 return ascii_mm[i] + ascii_ii[i];
4897 short int ebcdic_ii[] =
4898 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4899 short int ebcdic_mm[] =
4900 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4901 int use_ebcdic (int i) {
4902 return ebcdic_mm[i] + ebcdic_ii[i];
4904 extern int foo;
4907 main ()
4909 return use_ascii (foo) == use_ebcdic (foo);
4911 return 0;
4913 _ACEOF
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4916 ac_cv_c_bigendian=yes
4918 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4919 if test "$ac_cv_c_bigendian" = unknown; then
4920 ac_cv_c_bigendian=no
4921 else
4922 # finding both strings is unlikely to happen, but who knows?
4923 ac_cv_c_bigendian=unknown
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 else
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 $ac_includes_default
4933 main ()
4936 /* Are we little or big endian? From Harbison&Steele. */
4937 union
4939 long int l;
4940 char c[sizeof (long int)];
4941 } u;
4942 u.l = 1;
4943 return u.c[sizeof (long int) - 1] == 1;
4946 return 0;
4948 _ACEOF
4949 if ac_fn_c_try_run "$LINENO"; then :
4950 ac_cv_c_bigendian=no
4951 else
4952 ac_cv_c_bigendian=yes
4954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4955 conftest.$ac_objext conftest.beam conftest.$ac_ext
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4961 $as_echo "$ac_cv_c_bigendian" >&6; }
4962 case $ac_cv_c_bigendian in #(
4963 yes)
4964 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4965 ;; #(
4967 ;; #(
4968 universal)
4970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4972 ;; #(
4974 as_fn_error "unknown endianness
4975 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4976 esac
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4979 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4980 if test "${ac_cv_c_const+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4987 main ()
4989 /* FIXME: Include the comments suggested by Paul. */
4990 #ifndef __cplusplus
4991 /* Ultrix mips cc rejects this. */
4992 typedef int charset[2];
4993 const charset cs;
4994 /* SunOS 4.1.1 cc rejects this. */
4995 char const *const *pcpcc;
4996 char **ppc;
4997 /* NEC SVR4.0.2 mips cc rejects this. */
4998 struct point {int x, y;};
4999 static struct point const zero = {0,0};
5000 /* AIX XL C 1.02.0.0 rejects this.
5001 It does not let you subtract one const X* pointer from another in
5002 an arm of an if-expression whose if-part is not a constant
5003 expression */
5004 const char *g = "string";
5005 pcpcc = &g + (g ? g-g : 0);
5006 /* HPUX 7.0 cc rejects these. */
5007 ++pcpcc;
5008 ppc = (char**) pcpcc;
5009 pcpcc = (char const *const *) ppc;
5010 { /* SCO 3.2v4 cc rejects this. */
5011 char *t;
5012 char const *s = 0 ? (char *) 0 : (char const *) 0;
5014 *t++ = 0;
5015 if (s) return 0;
5017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5018 int x[] = {25, 17};
5019 const int *foo = &x[0];
5020 ++foo;
5022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5023 typedef const int *iptr;
5024 iptr p = 0;
5025 ++p;
5027 { /* AIX XL C 1.02.0.0 rejects this saying
5028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5029 struct s { int j; const int *ap[3]; };
5030 struct s *b; b->j = 5;
5032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5033 const int foo = 10;
5034 if (!foo) return 0;
5036 return !cs[0] && !zero.x;
5037 #endif
5040 return 0;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_c_const=yes
5045 else
5046 ac_cv_c_const=no
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5051 $as_echo "$ac_cv_c_const" >&6; }
5052 if test $ac_cv_c_const = no; then
5054 $as_echo "#define const /**/" >>confdefs.h
5058 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5059 if test "x$ac_cv_type_mode_t" = x""yes; then :
5061 else
5063 cat >>confdefs.h <<_ACEOF
5064 #define mode_t int
5065 _ACEOF
5069 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5070 if test "x$ac_cv_type_off_t" = x""yes; then :
5072 else
5074 cat >>confdefs.h <<_ACEOF
5075 #define off_t long int
5076 _ACEOF
5080 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5081 if test "x$ac_cv_type_pid_t" = x""yes; then :
5083 else
5085 cat >>confdefs.h <<_ACEOF
5086 #define pid_t int
5087 _ACEOF
5091 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5092 if test "x$ac_cv_type_size_t" = x""yes; then :
5094 else
5096 cat >>confdefs.h <<_ACEOF
5097 #define size_t unsigned int
5098 _ACEOF
5102 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5103 case $ac_cv_c_uint32_t in #(
5104 no|yes) ;; #(
5107 $as_echo "#define _UINT32_T 1" >>confdefs.h
5110 cat >>confdefs.h <<_ACEOF
5111 #define uint32_t $ac_cv_c_uint32_t
5112 _ACEOF
5114 esac
5116 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
5117 /* NetBSD declares sys_siglist in unistd.h. */
5118 #ifdef HAVE_UNISTD_H
5119 # include <unistd.h>
5120 #endif
5123 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
5124 ac_have_decl=1
5125 else
5126 ac_have_decl=0
5129 cat >>confdefs.h <<_ACEOF
5130 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
5131 _ACEOF
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5135 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5136 if test "${ac_cv_header_time+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5141 #include <sys/types.h>
5142 #include <sys/time.h>
5143 #include <time.h>
5146 main ()
5148 if ((struct tm *) 0)
5149 return 0;
5151 return 0;
5153 _ACEOF
5154 if ac_fn_c_try_compile "$LINENO"; then :
5155 ac_cv_header_time=yes
5156 else
5157 ac_cv_header_time=no
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5162 $as_echo "$ac_cv_header_time" >&6; }
5163 if test $ac_cv_header_time = yes; then
5165 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5170 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5171 if test "${ac_cv_struct_tm+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <sys/types.h>
5177 #include <time.h>
5180 main ()
5182 struct tm tm;
5183 int *p = &tm.tm_sec;
5184 return !p;
5186 return 0;
5188 _ACEOF
5189 if ac_fn_c_try_compile "$LINENO"; then :
5190 ac_cv_struct_tm=time.h
5191 else
5192 ac_cv_struct_tm=sys/time.h
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5197 $as_echo "$ac_cv_struct_tm" >&6; }
5198 if test $ac_cv_struct_tm = sys/time.h; then
5200 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5206 $as_echo_n "checking return type of signal handlers... " >&6; }
5207 if test "${ac_cv_type_signal+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <sys/types.h>
5213 #include <signal.h>
5216 main ()
5218 return *(signal (0, 0)) (0) == 1;
5220 return 0;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"; then :
5224 ac_cv_type_signal=int
5225 else
5226 ac_cv_type_signal=void
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5231 $as_echo "$ac_cv_type_signal" >&6; }
5233 cat >>confdefs.h <<_ACEOF
5234 #define RETSIGTYPE $ac_cv_type_signal
5235 _ACEOF
5238 for ac_header in vfork.h
5239 do :
5240 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5242 cat >>confdefs.h <<_ACEOF
5243 #define HAVE_VFORK_H 1
5244 _ACEOF
5248 done
5250 for ac_func in fork vfork
5251 do :
5252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5254 eval as_val=\$$as_ac_var
5255 if test "x$as_val" = x""yes; then :
5256 cat >>confdefs.h <<_ACEOF
5257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5258 _ACEOF
5261 done
5263 if test "x$ac_cv_func_fork" = xyes; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5265 $as_echo_n "checking for working fork... " >&6; }
5266 if test "${ac_cv_func_fork_works+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test "$cross_compiling" = yes; then :
5270 ac_cv_func_fork_works=cross
5271 else
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 $ac_includes_default
5276 main ()
5279 /* By Ruediger Kuhlmann. */
5280 return fork () < 0;
5283 return 0;
5285 _ACEOF
5286 if ac_fn_c_try_run "$LINENO"; then :
5287 ac_cv_func_fork_works=yes
5288 else
5289 ac_cv_func_fork_works=no
5291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5292 conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5297 $as_echo "$ac_cv_func_fork_works" >&6; }
5299 else
5300 ac_cv_func_fork_works=$ac_cv_func_fork
5302 if test "x$ac_cv_func_fork_works" = xcross; then
5303 case $host in
5304 *-*-amigaos* | *-*-msdosdjgpp*)
5305 # Override, as these systems have only a dummy fork() stub
5306 ac_cv_func_fork_works=no
5309 ac_cv_func_fork_works=yes
5311 esac
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5313 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5315 ac_cv_func_vfork_works=$ac_cv_func_vfork
5316 if test "x$ac_cv_func_vfork" = xyes; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5318 $as_echo_n "checking for working vfork... " >&6; }
5319 if test "${ac_cv_func_vfork_works+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test "$cross_compiling" = yes; then :
5323 ac_cv_func_vfork_works=cross
5324 else
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 /* Thanks to Paul Eggert for this test. */
5328 $ac_includes_default
5329 #include <sys/wait.h>
5330 #ifdef HAVE_VFORK_H
5331 # include <vfork.h>
5332 #endif
5333 /* On some sparc systems, changes by the child to local and incoming
5334 argument registers are propagated back to the parent. The compiler
5335 is told about this with #include <vfork.h>, but some compilers
5336 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5337 static variable whose address is put into a register that is
5338 clobbered by the vfork. */
5339 static void
5340 #ifdef __cplusplus
5341 sparc_address_test (int arg)
5342 # else
5343 sparc_address_test (arg) int arg;
5344 #endif
5346 static pid_t child;
5347 if (!child) {
5348 child = vfork ();
5349 if (child < 0) {
5350 perror ("vfork");
5351 _exit(2);
5353 if (!child) {
5354 arg = getpid();
5355 write(-1, "", 0);
5356 _exit (arg);
5362 main ()
5364 pid_t parent = getpid ();
5365 pid_t child;
5367 sparc_address_test (0);
5369 child = vfork ();
5371 if (child == 0) {
5372 /* Here is another test for sparc vfork register problems. This
5373 test uses lots of local variables, at least as many local
5374 variables as main has allocated so far including compiler
5375 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5376 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5377 reuse the register of parent for one of the local variables,
5378 since it will think that parent can't possibly be used any more
5379 in this routine. Assigning to the local variable will thus
5380 munge parent in the parent process. */
5381 pid_t
5382 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5383 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5384 /* Convince the compiler that p..p7 are live; otherwise, it might
5385 use the same hardware register for all 8 local variables. */
5386 if (p != p1 || p != p2 || p != p3 || p != p4
5387 || p != p5 || p != p6 || p != p7)
5388 _exit(1);
5390 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5391 from child file descriptors. If the child closes a descriptor
5392 before it execs or exits, this munges the parent's descriptor
5393 as well. Test for this by closing stdout in the child. */
5394 _exit(close(fileno(stdout)) != 0);
5395 } else {
5396 int status;
5397 struct stat st;
5399 while (wait(&status) != child)
5401 return (
5402 /* Was there some problem with vforking? */
5403 child < 0
5405 /* Did the child fail? (This shouldn't happen.) */
5406 || status
5408 /* Did the vfork/compiler bug occur? */
5409 || parent != getpid()
5411 /* Did the file descriptor bug occur? */
5412 || fstat(fileno(stdout), &st) != 0
5416 _ACEOF
5417 if ac_fn_c_try_run "$LINENO"; then :
5418 ac_cv_func_vfork_works=yes
5419 else
5420 ac_cv_func_vfork_works=no
5422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5423 conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5428 $as_echo "$ac_cv_func_vfork_works" >&6; }
5431 if test "x$ac_cv_func_fork_works" = xcross; then
5432 ac_cv_func_vfork_works=$ac_cv_func_vfork
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5434 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5437 if test "x$ac_cv_func_vfork_works" = xyes; then
5439 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5441 else
5443 $as_echo "#define vfork fork" >>confdefs.h
5446 if test "x$ac_cv_func_fork_works" = xyes; then
5448 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5452 for ac_func in vprintf
5453 do :
5454 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5455 if test "x$ac_cv_func_vprintf" = x""yes; then :
5456 cat >>confdefs.h <<_ACEOF
5457 #define HAVE_VPRINTF 1
5458 _ACEOF
5460 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5461 if test "x$ac_cv_func__doprnt" = x""yes; then :
5463 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5468 done
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
5472 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
5473 if test "${ac_cv_func_wait3_rusage+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test "$cross_compiling" = yes; then :
5477 ac_cv_func_wait3_rusage=no
5478 else
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 #include <sys/time.h>
5483 #include <sys/resource.h>
5484 #include <sys/wait.h>
5485 /* HP-UX has wait3 but does not fill in rusage at all. */
5487 main ()
5489 struct rusage r;
5490 int i;
5491 /* Use a field that we can force nonzero --
5492 voluntary context switches.
5493 For systems like NeXT and OSF/1 that don't set it,
5494 also use the system CPU time. And page faults (I/O) for Linux. */
5495 r.ru_nvcsw = 0;
5496 r.ru_stime.tv_sec = 0;
5497 r.ru_stime.tv_usec = 0;
5498 r.ru_majflt = r.ru_minflt = 0;
5499 switch (fork ())
5501 case 0: /* Child. */
5502 sleep(1); /* Give up the CPU. */
5503 _exit(0);
5504 break;
5505 case -1: /* What can we do? */
5506 _exit(0);
5507 break;
5508 default: /* Parent. */
5509 wait3(&i, 0, &r);
5510 /* Avoid "text file busy" from rm on fast HP-UX machines. */
5511 sleep(2);
5512 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
5513 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
5516 _ACEOF
5517 if ac_fn_c_try_run "$LINENO"; then :
5518 ac_cv_func_wait3_rusage=yes
5519 else
5520 ac_cv_func_wait3_rusage=no
5522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5523 conftest.$ac_objext conftest.beam conftest.$ac_ext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
5528 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
5529 if test $ac_cv_func_wait3_rusage = yes; then
5531 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
5535 for ac_func in \
5536 err \
5537 errx \
5538 getcwd \
5539 getenv \
5540 getopt \
5541 getwd \
5542 killpg \
5543 mmap \
5544 putenv \
5545 select \
5546 setenv \
5547 setpgid \
5548 setsid \
5549 sigaction \
5550 sigvec \
5551 snprintf \
5552 strerror \
5553 strftime \
5554 strsep \
5555 strtod \
5556 strtol \
5557 sysctl \
5558 unsetenv \
5559 vsnprintf \
5560 wait3 \
5561 wait4 \
5562 waitpid \
5563 warn \
5564 warnx \
5566 do :
5567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5568 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5569 eval as_val=\$$as_ac_var
5570 if test "x$as_val" = x""yes; then :
5571 cat >>confdefs.h <<_ACEOF
5572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5573 _ACEOF
5576 done
5579 for ac_func in \
5580 realpath \
5581 dirname \
5582 stresep \
5583 strlcpy \
5585 do :
5586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5588 eval as_val=\$$as_ac_var
5589 if test "x$as_val" = x""yes; then :
5590 cat >>confdefs.h <<_ACEOF
5591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5592 _ACEOF
5594 else
5595 case " $LIBOBJS " in
5596 *" $ac_func.$ac_objext "* ) ;;
5597 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5599 esac
5602 done
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for emalloc in -lutil" >&5
5607 $as_echo_n "checking for emalloc in -lutil... " >&6; }
5608 if test "${ac_cv_lib_util_emalloc+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 ac_check_lib_save_LIBS=$LIBS
5612 LIBS="-lutil $LIBS"
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5616 /* Override any GCC internal prototype to avoid an error.
5617 Use char because int might match the return type of a GCC
5618 builtin and then its argument prototype would still apply. */
5619 #ifdef __cplusplus
5620 extern "C"
5621 #endif
5622 char emalloc ();
5624 main ()
5626 return emalloc ();
5628 return 0;
5630 _ACEOF
5631 if ac_fn_c_try_link "$LINENO"; then :
5632 ac_cv_lib_util_emalloc=yes
5633 else
5634 ac_cv_lib_util_emalloc=no
5636 rm -f core conftest.err conftest.$ac_objext \
5637 conftest$ac_exeext conftest.$ac_ext
5638 LIBS=$ac_check_lib_save_LIBS
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_emalloc" >&5
5641 $as_echo "$ac_cv_lib_util_emalloc" >&6; }
5642 if test "x$ac_cv_lib_util_emalloc" = x""yes; then :
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erealloc in -lutil" >&5
5644 $as_echo_n "checking for erealloc in -lutil... " >&6; }
5645 if test "${ac_cv_lib_util_erealloc+set}" = set; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 ac_check_lib_save_LIBS=$LIBS
5649 LIBS="-lutil $LIBS"
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5653 /* Override any GCC internal prototype to avoid an error.
5654 Use char because int might match the return type of a GCC
5655 builtin and then its argument prototype would still apply. */
5656 #ifdef __cplusplus
5657 extern "C"
5658 #endif
5659 char erealloc ();
5661 main ()
5663 return erealloc ();
5665 return 0;
5667 _ACEOF
5668 if ac_fn_c_try_link "$LINENO"; then :
5669 ac_cv_lib_util_erealloc=yes
5670 else
5671 ac_cv_lib_util_erealloc=no
5673 rm -f core conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext conftest.$ac_ext
5675 LIBS=$ac_check_lib_save_LIBS
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_erealloc" >&5
5678 $as_echo "$ac_cv_lib_util_erealloc" >&6; }
5679 if test "x$ac_cv_lib_util_erealloc" = x""yes; then :
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrdup in -lutil" >&5
5681 $as_echo_n "checking for estrdup in -lutil... " >&6; }
5682 if test "${ac_cv_lib_util_estrdup+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_check_lib_save_LIBS=$LIBS
5686 LIBS="-lutil $LIBS"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5690 /* Override any GCC internal prototype to avoid an error.
5691 Use char because int might match the return type of a GCC
5692 builtin and then its argument prototype would still apply. */
5693 #ifdef __cplusplus
5694 extern "C"
5695 #endif
5696 char estrdup ();
5698 main ()
5700 return estrdup ();
5702 return 0;
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 ac_cv_lib_util_estrdup=yes
5707 else
5708 ac_cv_lib_util_estrdup=no
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 LIBS=$ac_check_lib_save_LIBS
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrdup" >&5
5715 $as_echo "$ac_cv_lib_util_estrdup" >&6; }
5716 if test "x$ac_cv_lib_util_estrdup" = x""yes; then :
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for estrndup in -lutil" >&5
5718 $as_echo_n "checking for estrndup in -lutil... " >&6; }
5719 if test "${ac_cv_lib_util_estrndup+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 ac_check_lib_save_LIBS=$LIBS
5723 LIBS="-lutil $LIBS"
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5727 /* Override any GCC internal prototype to avoid an error.
5728 Use char because int might match the return type of a GCC
5729 builtin and then its argument prototype would still apply. */
5730 #ifdef __cplusplus
5731 extern "C"
5732 #endif
5733 char estrndup ();
5735 main ()
5737 return estrndup ();
5739 return 0;
5741 _ACEOF
5742 if ac_fn_c_try_link "$LINENO"; then :
5743 ac_cv_lib_util_estrndup=yes
5744 else
5745 ac_cv_lib_util_estrndup=no
5747 rm -f core conftest.err conftest.$ac_objext \
5748 conftest$ac_exeext conftest.$ac_ext
5749 LIBS=$ac_check_lib_save_LIBS
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_estrndup" >&5
5752 $as_echo "$ac_cv_lib_util_estrndup" >&6; }
5753 if test "x$ac_cv_lib_util_estrndup" = x""yes; then :
5754 LIBS="$LIBS -lutil"
5755 CPPFLAGS="$CPPFLAGS -DUSE_EMALLOC"
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5766 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5767 if test "${ac_cv_header_stat_broken+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 #include <sys/types.h>
5773 #include <sys/stat.h>
5775 #if defined S_ISBLK && defined S_IFDIR
5776 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5777 #endif
5779 #if defined S_ISBLK && defined S_IFCHR
5780 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5781 #endif
5783 #if defined S_ISLNK && defined S_IFREG
5784 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5785 #endif
5787 #if defined S_ISSOCK && defined S_IFREG
5788 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5789 #endif
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_header_stat_broken=no
5794 else
5795 ac_cv_header_stat_broken=yes
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5800 $as_echo "$ac_cv_header_stat_broken" >&6; }
5801 if test $ac_cv_header_stat_broken = yes; then
5803 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5807 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5808 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5810 cat >>confdefs.h <<_ACEOF
5811 #define HAVE_STRUCT_STAT_ST_RDEV 1
5812 _ACEOF
5815 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
5820 echo "checking if compiler supports __func__" >&6
5821 ac_ext=c
5822 ac_cpp='$CPP $CPPFLAGS'
5823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5831 main ()
5833 const char *func = __func__;
5835 return 0;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"; then :
5840 else
5842 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 echo $ECHO_N "checking if diff -u works... $ECHO_C" >&6
5847 if diff -u /dev/null /dev/null > /dev/null 2>&1; then
5848 diff_u=-u
5849 echo yes >&6
5850 else
5851 diff_u=
5852 echo no >&6
5854 echo "checking for MACHINE & MACHINE_ARCH..." >&6
5855 cat > conftest.$ac_ext <<EOF
5856 #include "confdefs.h"
5857 #include <sys/param.h>
5858 #ifdef MACHINE
5859 machine=MACHINE
5860 #endif
5861 #ifdef MACHINE_ARCH
5862 machine_arch=MACHINE_ARCH
5863 #endif
5866 default_machine=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867 egrep machine= | tr -d ' "'`
5868 rm -rf conftest*
5869 if test "$default_machine"; then
5870 eval "$default_machine"
5872 machine=${machine:-`$srcdir/machine.sh`}
5873 machine_arch=${machine_arch:-`$srcdir/machine.sh arch`}
5874 echo "defaults: MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5876 # Check whether --with-machine was given.
5877 if test "${with_machine+set}" = set; then :
5878 withval=$with_machine; case "${withval}" in
5879 yes) as_fn_error "bad value ${withval} given for bmake MACHINE" "$LINENO" 5 ;;
5880 no) ;;
5881 generic) machine=`$srcdir/machine.sh`;;
5882 *) machine=$with_machine;;
5883 esac
5886 force_machine=
5888 # Check whether --with-force_machine was given.
5889 if test "${with_force_machine+set}" = set; then :
5890 withval=$with_force_machine; case "${withval}" in
5891 yes) force_machine=FORCE_;;
5892 no) ;;
5893 *) force_machine=FORCE_; machine=$with_force_machine;;
5894 esac
5897 force_machine_arch=
5899 # Check whether --with-force_machine_arch was given.
5900 if test "${with_force_machine_arch+set}" = set; then :
5901 withval=$with_force_machine_arch; case "${withval}" in
5902 yes) force_machine_arch=FORCE_;;
5903 no) ;;
5904 *) force_machine_arch=FORCE_; machine_arch=$with_force_machine;;
5905 esac
5909 # Check whether --with-machine_arch was given.
5910 if test "${with_machine_arch+set}" = set; then :
5911 withval=$with_machine_arch; case "${withval}" in
5912 yes) as_fn_error "bad value ${withval} given for bmake MACHINE_ARCH" "$LINENO" 5 ;;
5913 no) ;;
5914 *) machine_arch=$with_machine_arch;;
5915 esac
5918 echo "Using: ${force_machine}MACHINE=$machine, MACHINE_ARCH=$machine_arch" 1>&6
5919 default_sys_path=\${prefix}/share/mk
5921 # Check whether --with-default-sys-path was given.
5922 if test "${with_default_sys_path+set}" = set; then :
5923 withval=$with_default_sys_path; case "${withval}" in
5924 yes) as_fn_error "bad value ${withval} given for bmake _PATH_DEFSYSPATH" "$LINENO" 5 ;;
5925 no) ;;
5926 *) default_sys_path="$with_default_sys_path"
5928 esac
5932 # Check whether --with-path-objdirprefix was given.
5933 if test "${with_path_objdirprefix+set}" = set; then :
5934 withval=$with_path_objdirprefix; case "${withval}" in
5935 yes) as_fn_error "bad value ${withval} given for bmake _PATH_OBJDIRPREFIX" "$LINENO" 5 ;;
5936 no) CPPFLAGS="$CPPFLAGS -DNO_PATH_OBJDIRPREFIX" ;;
5937 *) CPPFLAGS="$CPPFLAGS \"-D_PATH_OBJDIRPREFIX=\\\"$with_path-objdir\\\"\"" ;;
5938 esac
5941 # Check whether --enable-pwd-override was given.
5942 if test "${enable_pwd_override+set}" = set; then :
5943 enableval=$enable_pwd_override; case "${enableval}" in
5944 yes) ;;
5945 no) CPPFLAGS="$CPPFLAGS -DNO_PWD_OVERRIDE" ;;
5946 *) as_fn_error "bad value ${enableval} given for pwd-override option" "$LINENO" 5 ;;
5947 esac
5950 # Check whether --enable-check-make-chdir was given.
5951 if test "${enable_check_make_chdir+set}" = set; then :
5952 enableval=$enable_check_make_chdir; case "${enableval}" in
5953 yes) ;;
5954 no) CPPFLAGS="$CPPFLAGS -DNO_CHECK_MAKE_CHDIR" ;;
5955 *) as_fn_error "bad value ${enableval} given for check-make-chdir option" "$LINENO" 5 ;;
5956 esac
5960 # Check whether --with-mksrc was given.
5961 if test "${with_mksrc+set}" = set; then :
5962 withval=$with_mksrc; case "${withval}" in
5963 ""|yes|no) ;;
5964 *) test -s $withval/install-mk && mksrc=$withval ||
5965 as_fn_error "bad value ${withval} given for mksrc cannot find install-mk" "$LINENO" 5
5967 esac
5971 srcdir=`cd $srcdir && pwd`
5972 for mksrc in $mksrc $srcdir/mk $srcdir/../mk mk
5974 test -s $mksrc/install-mk || continue
5975 mksrc=`cd $mksrc && pwd`
5976 break
5977 done
5978 mksrc=`echo $mksrc | sed "s,$srcdir,\\\${srcdir},"`
5979 echo "Using: MKSRC=$mksrc" 1>&6
5980 if test -x /usr/xpg4/bin/sh; then
5981 defshell_path=${defshell_path:-/usr/xpg4/bin/sh}
5983 if test -n "$defshell_path"; then
5984 echo "Using: SHELL=$defshell_path" >&6
5986 cat >>confdefs.h <<_ACEOF
5987 #define DEFSHELL_CUSTOM "$defshell_path"
5988 _ACEOF
5991 if test -n "$DEFSHELL_INDEX"; then
5993 cat >>confdefs.h <<_ACEOF
5994 #define DEFSHELL_INDEX $DEFSHELL_INDEX
5995 _ACEOF
6008 ac_config_files="$ac_config_files makefile Makefile.config make-bootstrap.sh unit-tests/Makefile"
6010 cat >confcache <<\_ACEOF
6011 # This file is a shell script that caches the results of configure
6012 # tests run on this system so they can be shared between configure
6013 # scripts and configure runs, see configure's option --config-cache.
6014 # It is not useful on other systems. If it contains results you don't
6015 # want to keep, you may remove or edit it.
6017 # config.status only pays attention to the cache file if you give it
6018 # the --recheck option to rerun configure.
6020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6022 # following values.
6024 _ACEOF
6026 # The following way of writing the cache mishandles newlines in values,
6027 # but we know of no workaround that is simple, portable, and efficient.
6028 # So, we kill variables containing newlines.
6029 # Ultrix sh set writes to stderr and can't be redirected directly,
6030 # and sets the high bit in the cache file unless we assign to the vars.
6032 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6033 eval ac_val=\$$ac_var
6034 case $ac_val in #(
6035 *${as_nl}*)
6036 case $ac_var in #(
6037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6039 esac
6040 case $ac_var in #(
6041 _ | IFS | as_nl) ;; #(
6042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6043 *) { eval $ac_var=; unset $ac_var;} ;;
6044 esac ;;
6045 esac
6046 done
6048 (set) 2>&1 |
6049 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6050 *${as_nl}ac_space=\ *)
6051 # `set' does not quote correctly, so add quotes: double-quote
6052 # substitution turns \\\\ into \\, and sed turns \\ into \.
6053 sed -n \
6054 "s/'/'\\\\''/g;
6055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6056 ;; #(
6058 # `set' quotes correctly as required by POSIX, so do not add quotes.
6059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6061 esac |
6062 sort
6064 sed '
6065 /^ac_cv_env_/b end
6066 t clear
6067 :clear
6068 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6069 t end
6070 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6071 :end' >>confcache
6072 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6073 if test -w "$cache_file"; then
6074 test "x$cache_file" != "x/dev/null" &&
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6076 $as_echo "$as_me: updating cache $cache_file" >&6;}
6077 cat confcache >$cache_file
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6080 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6083 rm -f confcache
6085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6086 # Let make expand exec_prefix.
6087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6089 DEFS=-DHAVE_CONFIG_H
6091 ac_libobjs=
6092 ac_ltlibobjs=
6093 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6094 # 1. Remove the extension, and $U if already installed.
6095 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6096 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6097 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6098 # will be set to the directory where LIBOBJS objects are built.
6099 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6100 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6101 done
6102 LIBOBJS=$ac_libobjs
6104 LTLIBOBJS=$ac_ltlibobjs
6109 : ${CONFIG_STATUS=./config.status}
6110 ac_write_fail=0
6111 ac_clean_files_save=$ac_clean_files
6112 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6114 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6115 as_write_fail=0
6116 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6117 #! $SHELL
6118 # Generated by $as_me.
6119 # Run this file to recreate the current configuration.
6120 # Compiler output produced by configure, useful for debugging
6121 # configure, is in config.log if it exists.
6123 debug=false
6124 ac_cs_recheck=false
6125 ac_cs_silent=false
6127 SHELL=\${CONFIG_SHELL-$SHELL}
6128 export SHELL
6129 _ASEOF
6130 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6131 ## -------------------- ##
6132 ## M4sh Initialization. ##
6133 ## -------------------- ##
6135 # Be more Bourne compatible
6136 DUALCASE=1; export DUALCASE # for MKS sh
6137 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6138 emulate sh
6139 NULLCMD=:
6140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6141 # is contrary to our usage. Disable this feature.
6142 alias -g '${1+"$@"}'='"$@"'
6143 setopt NO_GLOB_SUBST
6144 else
6145 case `(set -o) 2>/dev/null` in #(
6146 *posix*) :
6147 set -o posix ;; #(
6148 *) :
6150 esac
6154 as_nl='
6156 export as_nl
6157 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6158 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6161 # Prefer a ksh shell builtin over an external printf program on Solaris,
6162 # but without wasting forks for bash or zsh.
6163 if test -z "$BASH_VERSION$ZSH_VERSION" \
6164 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6165 as_echo='print -r --'
6166 as_echo_n='print -rn --'
6167 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6168 as_echo='printf %s\n'
6169 as_echo_n='printf %s'
6170 else
6171 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6172 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6173 as_echo_n='/usr/ucb/echo -n'
6174 else
6175 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6176 as_echo_n_body='eval
6177 arg=$1;
6178 case $arg in #(
6179 *"$as_nl"*)
6180 expr "X$arg" : "X\\(.*\\)$as_nl";
6181 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6182 esac;
6183 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6185 export as_echo_n_body
6186 as_echo_n='sh -c $as_echo_n_body as_echo'
6188 export as_echo_body
6189 as_echo='sh -c $as_echo_body as_echo'
6192 # The user is always right.
6193 if test "${PATH_SEPARATOR+set}" != set; then
6194 PATH_SEPARATOR=:
6195 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6196 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6197 PATH_SEPARATOR=';'
6202 # IFS
6203 # We need space, tab and new line, in precisely that order. Quoting is
6204 # there to prevent editors from complaining about space-tab.
6205 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6206 # splitting by setting IFS to empty value.)
6207 IFS=" "" $as_nl"
6209 # Find who we are. Look in the path if we contain no directory separator.
6210 case $0 in #((
6211 *[\\/]* ) as_myself=$0 ;;
6212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6218 done
6219 IFS=$as_save_IFS
6222 esac
6223 # We did not find ourselves, most probably we were run as `sh COMMAND'
6224 # in which case we are not to be found in the path.
6225 if test "x$as_myself" = x; then
6226 as_myself=$0
6228 if test ! -f "$as_myself"; then
6229 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6230 exit 1
6233 # Unset variables that we do not need and which cause bugs (e.g. in
6234 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6235 # suppresses any "Segmentation fault" message there. '((' could
6236 # trigger a bug in pdksh 5.2.14.
6237 for as_var in BASH_ENV ENV MAIL MAILPATH
6238 do eval test x\${$as_var+set} = xset \
6239 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6240 done
6241 PS1='$ '
6242 PS2='> '
6243 PS4='+ '
6245 # NLS nuisances.
6246 LC_ALL=C
6247 export LC_ALL
6248 LANGUAGE=C
6249 export LANGUAGE
6251 # CDPATH.
6252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6255 # as_fn_error ERROR [LINENO LOG_FD]
6256 # ---------------------------------
6257 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6258 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6259 # script with status $?, using 1 if that was 0.
6260 as_fn_error ()
6262 as_status=$?; test $as_status -eq 0 && as_status=1
6263 if test "$3"; then
6264 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6265 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6267 $as_echo "$as_me: error: $1" >&2
6268 as_fn_exit $as_status
6269 } # as_fn_error
6272 # as_fn_set_status STATUS
6273 # -----------------------
6274 # Set $? to STATUS, without forking.
6275 as_fn_set_status ()
6277 return $1
6278 } # as_fn_set_status
6280 # as_fn_exit STATUS
6281 # -----------------
6282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6283 as_fn_exit ()
6285 set +e
6286 as_fn_set_status $1
6287 exit $1
6288 } # as_fn_exit
6290 # as_fn_unset VAR
6291 # ---------------
6292 # Portably unset VAR.
6293 as_fn_unset ()
6295 { eval $1=; unset $1;}
6297 as_unset=as_fn_unset
6298 # as_fn_append VAR VALUE
6299 # ----------------------
6300 # Append the text in VALUE to the end of the definition contained in VAR. Take
6301 # advantage of any shell optimizations that allow amortized linear growth over
6302 # repeated appends, instead of the typical quadratic growth present in naive
6303 # implementations.
6304 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6305 eval 'as_fn_append ()
6307 eval $1+=\$2
6309 else
6310 as_fn_append ()
6312 eval $1=\$$1\$2
6314 fi # as_fn_append
6316 # as_fn_arith ARG...
6317 # ------------------
6318 # Perform arithmetic evaluation on the ARGs, and store the result in the
6319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6320 # must be portable across $(()) and expr.
6321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6322 eval 'as_fn_arith ()
6324 as_val=$(( $* ))
6326 else
6327 as_fn_arith ()
6329 as_val=`expr "$@" || test $? -eq 1`
6331 fi # as_fn_arith
6334 if expr a : '\(a\)' >/dev/null 2>&1 &&
6335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6336 as_expr=expr
6337 else
6338 as_expr=false
6341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6342 as_basename=basename
6343 else
6344 as_basename=false
6347 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6348 as_dirname=dirname
6349 else
6350 as_dirname=false
6353 as_me=`$as_basename -- "$0" ||
6354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6355 X"$0" : 'X\(//\)$' \| \
6356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6357 $as_echo X/"$0" |
6358 sed '/^.*\/\([^/][^/]*\)\/*$/{
6359 s//\1/
6362 /^X\/\(\/\/\)$/{
6363 s//\1/
6366 /^X\/\(\/\).*/{
6367 s//\1/
6370 s/.*/./; q'`
6372 # Avoid depending upon Character Ranges.
6373 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6374 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6375 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6376 as_cr_digits='0123456789'
6377 as_cr_alnum=$as_cr_Letters$as_cr_digits
6379 ECHO_C= ECHO_N= ECHO_T=
6380 case `echo -n x` in #(((((
6381 -n*)
6382 case `echo 'xy\c'` in
6383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6384 xy) ECHO_C='\c';;
6385 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6386 ECHO_T=' ';;
6387 esac;;
6389 ECHO_N='-n';;
6390 esac
6392 rm -f conf$$ conf$$.exe conf$$.file
6393 if test -d conf$$.dir; then
6394 rm -f conf$$.dir/conf$$.file
6395 else
6396 rm -f conf$$.dir
6397 mkdir conf$$.dir 2>/dev/null
6399 if (echo >conf$$.file) 2>/dev/null; then
6400 if ln -s conf$$.file conf$$ 2>/dev/null; then
6401 as_ln_s='ln -s'
6402 # ... but there are two gotchas:
6403 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6404 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6405 # In both cases, we have to default to `cp -p'.
6406 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6407 as_ln_s='cp -p'
6408 elif ln conf$$.file conf$$ 2>/dev/null; then
6409 as_ln_s=ln
6410 else
6411 as_ln_s='cp -p'
6413 else
6414 as_ln_s='cp -p'
6416 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6417 rmdir conf$$.dir 2>/dev/null
6420 # as_fn_mkdir_p
6421 # -------------
6422 # Create "$as_dir" as a directory, including parents if necessary.
6423 as_fn_mkdir_p ()
6426 case $as_dir in #(
6427 -*) as_dir=./$as_dir;;
6428 esac
6429 test -d "$as_dir" || eval $as_mkdir_p || {
6430 as_dirs=
6431 while :; do
6432 case $as_dir in #(
6433 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6434 *) as_qdir=$as_dir;;
6435 esac
6436 as_dirs="'$as_qdir' $as_dirs"
6437 as_dir=`$as_dirname -- "$as_dir" ||
6438 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6439 X"$as_dir" : 'X\(//\)[^/]' \| \
6440 X"$as_dir" : 'X\(//\)$' \| \
6441 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6442 $as_echo X"$as_dir" |
6443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6444 s//\1/
6447 /^X\(\/\/\)[^/].*/{
6448 s//\1/
6451 /^X\(\/\/\)$/{
6452 s//\1/
6455 /^X\(\/\).*/{
6456 s//\1/
6459 s/.*/./; q'`
6460 test -d "$as_dir" && break
6461 done
6462 test -z "$as_dirs" || eval "mkdir $as_dirs"
6463 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6466 } # as_fn_mkdir_p
6467 if mkdir -p . 2>/dev/null; then
6468 as_mkdir_p='mkdir -p "$as_dir"'
6469 else
6470 test -d ./-p && rmdir ./-p
6471 as_mkdir_p=false
6474 if test -x / >/dev/null 2>&1; then
6475 as_test_x='test -x'
6476 else
6477 if ls -dL / >/dev/null 2>&1; then
6478 as_ls_L_option=L
6479 else
6480 as_ls_L_option=
6482 as_test_x='
6483 eval sh -c '\''
6484 if test -d "$1"; then
6485 test -d "$1/.";
6486 else
6487 case $1 in #(
6488 -*)set "./$1";;
6489 esac;
6490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6491 ???[sx]*):;;*)false;;esac;fi
6492 '\'' sh
6495 as_executable_p=$as_test_x
6497 # Sed expression to map a string onto a valid CPP name.
6498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6500 # Sed expression to map a string onto a valid variable name.
6501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6504 exec 6>&1
6505 ## ----------------------------------- ##
6506 ## Main body of $CONFIG_STATUS script. ##
6507 ## ----------------------------------- ##
6508 _ASEOF
6509 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6512 # Save the log message, to keep $0 and so on meaningful, and to
6513 # report actual input values of CONFIG_FILES etc. instead of their
6514 # values after options handling.
6515 ac_log="
6516 This file was extended by bmake $as_me 20160606, which was
6517 generated by GNU Autoconf 2.64. Invocation command line was
6519 CONFIG_FILES = $CONFIG_FILES
6520 CONFIG_HEADERS = $CONFIG_HEADERS
6521 CONFIG_LINKS = $CONFIG_LINKS
6522 CONFIG_COMMANDS = $CONFIG_COMMANDS
6523 $ $0 $@
6525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6528 _ACEOF
6530 case $ac_config_files in *"
6531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6532 esac
6534 case $ac_config_headers in *"
6535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6536 esac
6539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6540 # Files that config.status was made for.
6541 config_files="$ac_config_files"
6542 config_headers="$ac_config_headers"
6544 _ACEOF
6546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6547 ac_cs_usage="\
6548 \`$as_me' instantiates files and other configuration actions
6549 from templates according to the current configuration. Unless the files
6550 and actions are specified as TAGs, all are instantiated by default.
6552 Usage: $0 [OPTION]... [TAG]...
6554 -h, --help print this help, then exit
6555 -V, --version print version number and configuration settings, then exit
6556 -q, --quiet, --silent
6557 do not print progress messages
6558 -d, --debug don't remove temporary files
6559 --recheck update $as_me by reconfiguring in the same conditions
6560 --file=FILE[:TEMPLATE]
6561 instantiate the configuration file FILE
6562 --header=FILE[:TEMPLATE]
6563 instantiate the configuration header FILE
6565 Configuration files:
6566 $config_files
6568 Configuration headers:
6569 $config_headers
6571 Report bugs to <sjg@NetBSD.org>."
6573 _ACEOF
6574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6575 ac_cs_version="\\
6576 bmake config.status 20160606
6577 configured by $0, generated by GNU Autoconf 2.64,
6578 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6580 Copyright (C) 2009 Free Software Foundation, Inc.
6581 This config.status script is free software; the Free Software Foundation
6582 gives unlimited permission to copy, distribute and modify it."
6584 ac_pwd='$ac_pwd'
6585 srcdir='$srcdir'
6586 INSTALL='$INSTALL'
6587 test -n "\$AWK" || AWK=awk
6588 _ACEOF
6590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6591 # The default lists apply if the user does not specify any file.
6592 ac_need_defaults=:
6593 while test $# != 0
6595 case $1 in
6596 --*=*)
6597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6599 ac_shift=:
6602 ac_option=$1
6603 ac_optarg=$2
6604 ac_shift=shift
6606 esac
6608 case $ac_option in
6609 # Handling of the options.
6610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6611 ac_cs_recheck=: ;;
6612 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6613 $as_echo "$ac_cs_version"; exit ;;
6614 --debug | --debu | --deb | --de | --d | -d )
6615 debug=: ;;
6616 --file | --fil | --fi | --f )
6617 $ac_shift
6618 case $ac_optarg in
6619 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6620 esac
6621 as_fn_append CONFIG_FILES " '$ac_optarg'"
6622 ac_need_defaults=false;;
6623 --header | --heade | --head | --hea )
6624 $ac_shift
6625 case $ac_optarg in
6626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6627 esac
6628 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6629 ac_need_defaults=false;;
6630 --he | --h)
6631 # Conflict between --help and --header
6632 as_fn_error "ambiguous option: \`$1'
6633 Try \`$0 --help' for more information.";;
6634 --help | --hel | -h )
6635 $as_echo "$ac_cs_usage"; exit ;;
6636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6637 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6638 ac_cs_silent=: ;;
6640 # This is an error.
6641 -*) as_fn_error "unrecognized option: \`$1'
6642 Try \`$0 --help' for more information." ;;
6644 *) as_fn_append ac_config_targets " $1"
6645 ac_need_defaults=false ;;
6647 esac
6648 shift
6649 done
6651 ac_configure_extra_args=
6653 if $ac_cs_silent; then
6654 exec 6>/dev/null
6655 ac_configure_extra_args="$ac_configure_extra_args --silent"
6658 _ACEOF
6659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6660 if \$ac_cs_recheck; then
6661 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6662 shift
6663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6664 CONFIG_SHELL='$SHELL'
6665 export CONFIG_SHELL
6666 exec "\$@"
6669 _ACEOF
6670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6671 exec 5>>config.log
6673 echo
6674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6675 ## Running $as_me. ##
6676 _ASBOX
6677 $as_echo "$ac_log"
6678 } >&5
6680 _ACEOF
6681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6682 _ACEOF
6684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6686 # Handling of arguments.
6687 for ac_config_target in $ac_config_targets
6689 case $ac_config_target in
6690 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6691 "makefile") CONFIG_FILES="$CONFIG_FILES makefile" ;;
6692 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
6693 "make-bootstrap.sh") CONFIG_FILES="$CONFIG_FILES make-bootstrap.sh" ;;
6694 "unit-tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/Makefile" ;;
6696 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6697 esac
6698 done
6701 # If the user did not use the arguments to specify the items to instantiate,
6702 # then the envvar interface is used. Set only those that are not.
6703 # We use the long form for the default assignment because of an extremely
6704 # bizarre bug on SunOS 4.1.3.
6705 if $ac_need_defaults; then
6706 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6707 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6710 # Have a temporary directory for convenience. Make it in the build tree
6711 # simply because there is no reason against having it here, and in addition,
6712 # creating and moving files from /tmp can sometimes cause problems.
6713 # Hook for its removal unless debugging.
6714 # Note that there is a small window in which the directory will not be cleaned:
6715 # after its creation but before its name has been assigned to `$tmp'.
6716 $debug ||
6718 tmp=
6719 trap 'exit_status=$?
6720 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6722 trap 'as_fn_exit 1' 1 2 13 15
6724 # Create a (secure) tmp directory for tmp files.
6727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6728 test -n "$tmp" && test -d "$tmp"
6729 } ||
6731 tmp=./conf$$-$RANDOM
6732 (umask 077 && mkdir "$tmp")
6733 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6735 # Set up the scripts for CONFIG_FILES section.
6736 # No need to generate them if there are no CONFIG_FILES.
6737 # This happens for instance with `./config.status config.h'.
6738 if test -n "$CONFIG_FILES"; then
6741 ac_cr=`echo X | tr X '\015'`
6742 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6743 # But we know of no other shell where ac_cr would be empty at this
6744 # point, so we can use a bashism as a fallback.
6745 if test "x$ac_cr" = x; then
6746 eval ac_cr=\$\'\\r\'
6748 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6749 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6750 ac_cs_awk_cr='\r'
6751 else
6752 ac_cs_awk_cr=$ac_cr
6755 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6756 _ACEOF
6760 echo "cat >conf$$subs.awk <<_ACEOF" &&
6761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6762 echo "_ACEOF"
6763 } >conf$$subs.sh ||
6764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6765 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6766 ac_delim='%!_!# '
6767 for ac_last_try in false false false false false :; do
6768 . ./conf$$subs.sh ||
6769 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6772 if test $ac_delim_n = $ac_delim_num; then
6773 break
6774 elif $ac_last_try; then
6775 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6776 else
6777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6779 done
6780 rm -f conf$$subs.sh
6782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6783 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6784 _ACEOF
6785 sed -n '
6787 s/^/S["/; s/!.*/"]=/
6790 s/^[^!]*!//
6791 :repl
6792 t repl
6793 s/'"$ac_delim"'$//
6794 t delim
6797 s/\(.\{148\}\).*/\1/
6798 t more1
6799 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6802 b repl
6803 :more1
6804 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6807 s/.\{148\}//
6808 t nl
6809 :delim
6811 s/\(.\{148\}\).*/\1/
6812 t more2
6813 s/["\\]/\\&/g; s/^/"/; s/$/"/
6816 :more2
6817 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6820 s/.\{148\}//
6821 t delim
6822 ' <conf$$subs.awk | sed '
6823 /^[^""]/{
6825 s/\n//
6827 ' >>$CONFIG_STATUS || ac_write_fail=1
6828 rm -f conf$$subs.awk
6829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6830 _ACAWK
6831 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6832 for (key in S) S_is_set[key] = 1
6833 FS = "\a"
6837 line = $ 0
6838 nfields = split(line, field, "@")
6839 substed = 0
6840 len = length(field[1])
6841 for (i = 2; i < nfields; i++) {
6842 key = field[i]
6843 keylen = length(key)
6844 if (S_is_set[key]) {
6845 value = S[key]
6846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6847 len += length(value) + length(field[++i])
6848 substed = 1
6849 } else
6850 len += 1 + keylen
6853 print line
6856 _ACAWK
6857 _ACEOF
6858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6859 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6860 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6861 else
6863 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6864 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6865 _ACEOF
6867 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6868 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6869 # trailing colons and then remove the whole line if VPATH becomes empty
6870 # (actually we leave an empty line to preserve line numbers).
6871 if test "x$srcdir" = x.; then
6872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6873 s/:*\$(srcdir):*/:/
6874 s/:*\${srcdir}:*/:/
6875 s/:*@srcdir@:*/:/
6876 s/^\([^=]*=[ ]*\):*/\1/
6877 s/:*$//
6878 s/^[^=]*=[ ]*$//
6882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6883 fi # test -n "$CONFIG_FILES"
6885 # Set up the scripts for CONFIG_HEADERS section.
6886 # No need to generate them if there are no CONFIG_HEADERS.
6887 # This happens for instance with `./config.status Makefile'.
6888 if test -n "$CONFIG_HEADERS"; then
6889 cat >"$tmp/defines.awk" <<\_ACAWK ||
6890 BEGIN {
6891 _ACEOF
6893 # Transform confdefs.h into an awk script `defines.awk', embedded as
6894 # here-document in config.status, that substitutes the proper values into
6895 # config.h.in to produce config.h.
6897 # Create a delimiter string that does not exist in confdefs.h, to ease
6898 # handling of long lines.
6899 ac_delim='%!_!# '
6900 for ac_last_try in false false :; do
6901 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6902 if test -z "$ac_t"; then
6903 break
6904 elif $ac_last_try; then
6905 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6906 else
6907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6909 done
6911 # For the awk script, D is an array of macro values keyed by name,
6912 # likewise P contains macro parameters if any. Preserve backslash
6913 # newline sequences.
6915 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6916 sed -n '
6917 s/.\{148\}/&'"$ac_delim"'/g
6918 t rset
6919 :rset
6920 s/^[ ]*#[ ]*define[ ][ ]*/ /
6921 t def
6923 :def
6924 s/\\$//
6925 t bsnl
6926 s/["\\]/\\&/g
6927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6928 D["\1"]=" \3"/p
6929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6931 :bsnl
6932 s/["\\]/\\&/g
6933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6934 D["\1"]=" \3\\\\\\n"\\/p
6935 t cont
6936 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6937 t cont
6939 :cont
6941 s/.\{148\}/&'"$ac_delim"'/g
6942 t clear
6943 :clear
6944 s/\\$//
6945 t bsnlc
6946 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6948 :bsnlc
6949 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6950 b cont
6951 ' <confdefs.h | sed '
6952 s/'"$ac_delim"'/"\\\
6953 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6956 for (key in D) D_is_set[key] = 1
6957 FS = "\a"
6959 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6960 line = \$ 0
6961 split(line, arg, " ")
6962 if (arg[1] == "#") {
6963 defundef = arg[2]
6964 mac1 = arg[3]
6965 } else {
6966 defundef = substr(arg[1], 2)
6967 mac1 = arg[2]
6969 split(mac1, mac2, "(") #)
6970 macro = mac2[1]
6971 prefix = substr(line, 1, index(line, defundef) - 1)
6972 if (D_is_set[macro]) {
6973 # Preserve the white space surrounding the "#".
6974 print prefix "define", macro P[macro] D[macro]
6975 next
6976 } else {
6977 # Replace #undef with comments. This is necessary, for example,
6978 # in the case of _POSIX_SOURCE, which is predefined and required
6979 # on some systems where configure will not decide to define it.
6980 if (defundef == "undef") {
6981 print "/*", prefix defundef, macro, "*/"
6982 next
6986 { print }
6987 _ACAWK
6988 _ACEOF
6989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6990 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6991 fi # test -n "$CONFIG_HEADERS"
6994 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6995 shift
6996 for ac_tag
6998 case $ac_tag in
6999 :[FHLC]) ac_mode=$ac_tag; continue;;
7000 esac
7001 case $ac_mode$ac_tag in
7002 :[FHL]*:*);;
7003 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7004 :[FH]-) ac_tag=-:-;;
7005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7006 esac
7007 ac_save_IFS=$IFS
7008 IFS=:
7009 set x $ac_tag
7010 IFS=$ac_save_IFS
7011 shift
7012 ac_file=$1
7013 shift
7015 case $ac_mode in
7016 :L) ac_source=$1;;
7017 :[FH])
7018 ac_file_inputs=
7019 for ac_f
7021 case $ac_f in
7022 -) ac_f="$tmp/stdin";;
7023 *) # Look for the file first in the build tree, then in the source tree
7024 # (if the path is not absolute). The absolute path cannot be DOS-style,
7025 # because $ac_f cannot contain `:'.
7026 test -f "$ac_f" ||
7027 case $ac_f in
7028 [\\/$]*) false;;
7029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7030 esac ||
7031 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7032 esac
7033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7034 as_fn_append ac_file_inputs " '$ac_f'"
7035 done
7037 # Let's still pretend it is `configure' which instantiates (i.e., don't
7038 # use $as_me), people would be surprised to read:
7039 # /* config.h. Generated by config.status. */
7040 configure_input='Generated from '`
7041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7042 `' by configure.'
7043 if test x"$ac_file" != x-; then
7044 configure_input="$ac_file. $configure_input"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7046 $as_echo "$as_me: creating $ac_file" >&6;}
7048 # Neutralize special characters interpreted by sed in replacement strings.
7049 case $configure_input in #(
7050 *\&* | *\|* | *\\* )
7051 ac_sed_conf_input=`$as_echo "$configure_input" |
7052 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7053 *) ac_sed_conf_input=$configure_input;;
7054 esac
7056 case $ac_tag in
7057 *:-:* | *:-) cat >"$tmp/stdin" \
7058 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7059 esac
7061 esac
7063 ac_dir=`$as_dirname -- "$ac_file" ||
7064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7065 X"$ac_file" : 'X\(//\)[^/]' \| \
7066 X"$ac_file" : 'X\(//\)$' \| \
7067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7068 $as_echo X"$ac_file" |
7069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7070 s//\1/
7073 /^X\(\/\/\)[^/].*/{
7074 s//\1/
7077 /^X\(\/\/\)$/{
7078 s//\1/
7081 /^X\(\/\).*/{
7082 s//\1/
7085 s/.*/./; q'`
7086 as_dir="$ac_dir"; as_fn_mkdir_p
7087 ac_builddir=.
7089 case "$ac_dir" in
7090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7093 # A ".." for each directory in $ac_dir_suffix.
7094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7095 case $ac_top_builddir_sub in
7096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7098 esac ;;
7099 esac
7100 ac_abs_top_builddir=$ac_pwd
7101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7102 # for backward compatibility:
7103 ac_top_builddir=$ac_top_build_prefix
7105 case $srcdir in
7106 .) # We are building in place.
7107 ac_srcdir=.
7108 ac_top_srcdir=$ac_top_builddir_sub
7109 ac_abs_top_srcdir=$ac_pwd ;;
7110 [\\/]* | ?:[\\/]* ) # Absolute name.
7111 ac_srcdir=$srcdir$ac_dir_suffix;
7112 ac_top_srcdir=$srcdir
7113 ac_abs_top_srcdir=$srcdir ;;
7114 *) # Relative name.
7115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7116 ac_top_srcdir=$ac_top_build_prefix$srcdir
7117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7118 esac
7119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7122 case $ac_mode in
7125 # CONFIG_FILE
7128 case $INSTALL in
7129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7131 esac
7132 _ACEOF
7134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7135 # If the template does not know about datarootdir, expand it.
7136 # FIXME: This hack should be removed a few years after 2.60.
7137 ac_datarootdir_hack=; ac_datarootdir_seen=
7138 ac_sed_dataroot='
7139 /datarootdir/ {
7143 /@datadir@/p
7144 /@docdir@/p
7145 /@infodir@/p
7146 /@localedir@/p
7147 /@mandir@/p'
7148 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7149 *datarootdir*) ac_datarootdir_seen=yes;;
7150 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7152 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7153 _ACEOF
7154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7155 ac_datarootdir_hack='
7156 s&@datadir@&$datadir&g
7157 s&@docdir@&$docdir&g
7158 s&@infodir@&$infodir&g
7159 s&@localedir@&$localedir&g
7160 s&@mandir@&$mandir&g
7161 s&\\\${datarootdir}&$datarootdir&g' ;;
7162 esac
7163 _ACEOF
7165 # Neutralize VPATH when `$srcdir' = `.'.
7166 # Shell code in configure.ac might set extrasub.
7167 # FIXME: do we really want to maintain this feature?
7168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7169 ac_sed_extra="$ac_vpsub
7170 $extrasub
7171 _ACEOF
7172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7175 s|@configure_input@|$ac_sed_conf_input|;t t
7176 s&@top_builddir@&$ac_top_builddir_sub&;t t
7177 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7178 s&@srcdir@&$ac_srcdir&;t t
7179 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7180 s&@top_srcdir@&$ac_top_srcdir&;t t
7181 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7182 s&@builddir@&$ac_builddir&;t t
7183 s&@abs_builddir@&$ac_abs_builddir&;t t
7184 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7185 s&@INSTALL@&$ac_INSTALL&;t t
7186 $ac_datarootdir_hack
7188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7189 || as_fn_error "could not create $ac_file" "$LINENO" 5
7191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7192 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7195 which seems to be undefined. Please make sure it is defined." >&5
7196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7197 which seems to be undefined. Please make sure it is defined." >&2;}
7199 rm -f "$tmp/stdin"
7200 case $ac_file in
7201 -) cat "$tmp/out" && rm -f "$tmp/out";;
7202 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7203 esac \
7204 || as_fn_error "could not create $ac_file" "$LINENO" 5
7208 # CONFIG_HEADER
7210 if test x"$ac_file" != x-; then
7212 $as_echo "/* $configure_input */" \
7213 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7214 } >"$tmp/config.h" \
7215 || as_fn_error "could not create $ac_file" "$LINENO" 5
7216 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7219 else
7220 rm -f "$ac_file"
7221 mv "$tmp/config.h" "$ac_file" \
7222 || as_fn_error "could not create $ac_file" "$LINENO" 5
7224 else
7225 $as_echo "/* $configure_input */" \
7226 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7227 || as_fn_error "could not create -" "$LINENO" 5
7232 esac
7234 done # for ac_tag
7237 as_fn_exit 0
7238 _ACEOF
7239 ac_clean_files=$ac_clean_files_save
7241 test $ac_write_fail = 0 ||
7242 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7245 # configure is writing to config.log, and then calls config.status.
7246 # config.status does its own redirection, appending to config.log.
7247 # Unfortunately, on DOS this fails, as config.log is still kept open
7248 # by configure, so config.status won't be able to write to it; its
7249 # output is simply discarded. So we exec the FD to /dev/null,
7250 # effectively closing config.log, so it can be properly (re)opened and
7251 # appended to by config.status. When coming back to configure, we
7252 # need to make the FD available again.
7253 if test "$no_create" != yes; then
7254 ac_cs_success=:
7255 ac_config_status_args=
7256 test "$silent" = yes &&
7257 ac_config_status_args="$ac_config_status_args --quiet"
7258 exec 5>/dev/null
7259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7260 exec 5>>config.log
7261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7262 # would make configure fail if this is the last instruction.
7263 $ac_cs_success || as_fn_exit $?
7265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7271 cat <<EOF
7273 You can now run
7275 sh ./make-bootstrap.sh
7277 to produce a fully functional bmake.